MCPcopy Create free account

hub / github.com/SGFGOV/medusa-strapi-repo / functions

Functions308 in github.com/SGFGOV/medusa-strapi-repo

↓ 81 callersMethodstrapiPluginLog
(logType: string, message: string, data?: Record<string, any>)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:514
↓ 27 callersMethodgetEntitiesFromStrapi
(params: GetFromStrapiParams)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:360
↓ 26 callersFunctionisMockEnabled
()
packages/medusa-plugin-strapi-ts/src/services/__mocks__/service-mocks.ts:671
↓ 23 callersFunctioncreateMedusaDefaultController
(uid)
packages/medusa-strapi/src/utils/utils.js:479
↓ 17 callersMethodgetLoggedInUserStrapiCreds
()
packages/medusa-plugin-strapi-ts/src/subscribers/strapi.ts:172
↓ 15 callersFunctionhandleError
(strapi, e)
packages/medusa-strapi/src/utils/utils.js:84
↓ 14 callersMethodshouldIgnore_
(id, side)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:301
↓ 12 callersMethodcreateProductInStrapi
(productId, authInterface: AuthInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:406
↓ 11 callersFunctiongetStrapiDataByMedusaId
(uid, strapi, medusa_id, fields)
packages/medusa-strapi/src/utils/utils.js:394
↓ 9 callersMethodcreateEntryInStrapi
(command: StrapiSendParams)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1661
↓ 9 callersFunctioncreateNestedEntity
(uid, strapi, dataReceived, callBack)
packages/medusa-strapi/src/utils/utils.js:359
↓ 9 callersMethoddeleteProductInStrapi
(data, authInterface: AuthInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1178
↓ 9 callersMethodregisterOrLoginDefaultMedusaUser
()
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2413
↓ 8 callersMethod_axiosError
(error: AxiosError, id?: string, type?: string, data?: any, method?: Method, endPoint?: string)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2015
↓ 8 callersFunctiongetTrad
(id)
packages/strapi-plugin-multi-country-select/admin/src/utils/getTrad.js:3
↓ 8 callersMethodisEntity
(data: any)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1735
↓ 8 callersMethodwithTransaction
(transactionManager?: EntityManager)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:257
↓ 7 callersMethodcreateProductVariantInStrapi
(variantId, authInterface: AuthInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:645
↓ 7 callersMethoddeleteEntryInStrapi
(command: StrapiSendParams)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1728
↓ 7 callersMethodverifyDataContainsFields
(data: any, updateFields: any[])
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2422
↓ 6 callersFunctioncheckFileExistsBeforeUpload
(files)
packages/medusa-strapi/src/bootstrap.js:100
↓ 6 callersMethoddeleteDefaultMedusaUser
* Deletes the service account * @returns the deleted default user
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1441
↓ 6 callersMethodgetRoleId
(requestedRole: string)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1621
↓ 6 callersFunctionhasMedusaRole
()
packages/strapi-plugin-medusajs/server/services/setup.ts:28
↓ 6 callersMethodupdateEntryInStrapi
(command: StrapiSendParams)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1703
↓ 5 callersFunctioncontainsMediaType
(schema)
packages/medusa-strapi/tests/helpers/strapi.js:300
↓ 5 callersFunctioncreateEntry
({ model, entry })
packages/medusa-strapi/src/bootstrap.js:88
↓ 5 callersFunctioncreateTestDataObjects
(path, includeUnqiueFields, processedRelations = [], unchangingUnique)
packages/medusa-strapi/tests/helpers/strapi.js:160
↓ 5 callersFunctiondisableMocks
()
packages/medusa-plugin-strapi-ts/src/services/__mocks__/service-mocks.ts:678
↓ 5 callersFunctionenableCrudMocks
(mock: MockAdapter, expressionSingle, expressionPlural, data)
packages/medusa-plugin-strapi-ts/src/services/__mocks__/service-mocks.ts:682
↓ 5 callersMethodgetAdminUserInStrapi
(email: string)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2269
↓ 5 callersFunctiongetTrad
(id)
packages/strapi-plugin-sso-medusa/admin/src/utils/getTrad.js:3
↓ 5 callersMethodprocessStrapiEntry
(command: StrapiSendParams)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1637
↓ 5 callersMethodstrapiAdminSendDatalayer
* * send the command using elevated privileges
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2181
↓ 5 callersMethodwaitForHealth
* Blocks the process until strapi is healthy * *
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1910
↓ 4 callersMethodadjustProductAndUpdateInStrapi
( product: Product, data: Partial<Product>, authInterface: AuthInterface )
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1047
↓ 4 callersMethodcheckType
(type, authInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1074
↓ 4 callersMethodcreateProductMetafieldInStrapi
* Product metafields id is the same as product id * @param data * @param authInterface * @returns
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:794
↓ 4 callersMethoddeleteCollectionInStrapi
(data, authInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1277
↓ 4 callersMethoddeleteProductVariantInStrapi
(data, authInterface: AuthInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1228
↓ 4 callersFunctionenableMocks
(axios)
packages/medusa-plugin-strapi-ts/src/services/__mocks__/service-mocks.ts:674
↓ 4 callersFunctionformatMessage
(intlLabel)
packages/strapi-plugin-multi-country-select/admin/src/components/CountrySelect/index.js:41
↓ 4 callersFunctionsanitizeData
(data)
packages/medusa-strapi/tests/helpers/strapi.js:242
↓ 4 callersFunctionsendSignalToMedusa
( message = 'Ok', code = 200, data?: Record<string, any> )
packages/strapi-plugin-medusajs/server/services/setup.ts:193
↓ 4 callersMethodstrapiLoginSendDatalayer
( authInterface: AuthInterface = { email: this.defaultUserEmail, password: this.defaultUserPassword,
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1566
↓ 3 callersFunctionaddIgnore_
(id: string, side: string, client: any, ignore_threshold?: any)
packages/medusa-plugin-strapi-ts/src/utils/redis-key-manager.ts:3
↓ 3 callersFunctionattachOrCreateStrapiIdFromMedusaId
* retrieves the strapi id of the received medusa data and attaches it to the data. * @param {*} uid - the application uid * @param {*} strapi - the
packages/medusa-strapi/src/utils/utils.js:230
↓ 3 callersFunctioncleanupStrapi
()
packages/medusa-strapi/tests/helpers/strapi.js:43
↓ 3 callersMethodcreateProductTypeInStrapi
(productTypeId: string, authInterface: AuthInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:394
↓ 3 callersMethoddeleteProductTypeInStrapi
(data, authInterface: AuthInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1204
↓ 3 callersMethodexecuteLoginAsStrapiSuperAdmin
()
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2314
↓ 3 callersMethodexecuteStrapiAdminSend
( method: Method, type: string, id?: string, action?: string, data?: any, query?: string )
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2079
↓ 3 callersFunctiongetDirectories
(source)
packages/medusa-strapi/tests/3.apis.test.js:35
↓ 3 callersMethodgetEntriesInStrapi
(command: StrapiSendParams)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1691
↓ 3 callersFunctiongetStrapiIdFromMedusaId
(uid, strapi, medusa_id)
packages/medusa-strapi/src/utils/utils.js:205
↓ 3 callersMethodgetType
(type: string, authInterface: AuthInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1324
↓ 3 callersFunctiongrantPrivilege
(roleID = 1, path, enabled = true, policy = '')
packages/medusa-strapi/tests/helpers/strapi.js:65
↓ 3 callersFunctionisEmptyObject
(obj)
packages/medusa-plugin-strapi-ts/src/services/update-medusa.ts:15
↓ 3 callersMethodloginAsDefaultMedusaUser
()
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2399
↓ 3 callersMethodregisterAdminUserInStrapi
( email: string, firstname: string, password = passwordGen.generate({ length: 16, numbers: true,
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2206
↓ 3 callersMethodregisterOrLoginAdmin
()
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2385
↓ 3 callersFunctionsetupStrapi
()
packages/medusa-strapi/tests/helpers/strapi.js:29
↓ 3 callersFunctionshouldIgnore_
(id: string, side: string, client: any)
packages/medusa-plugin-strapi-ts/src/utils/redis-key-manager.ts:8
↓ 3 callersMethodstrapiSendDataLayer
(params: StrapiSendParams)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1844
↓ 3 callersMethodtranslateDataToStrapiFormat
(dataToSend: StrapiEntity)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1789
↓ 3 callersMethodupdateProductInStrapi
( data: Partial<Product>, authInterface: AuthInterface = this.defaultAuthInterface )
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:944
↓ 3 callersMethodupdateProductMetafieldInStrapi
( data: { id: string; value: Record<string, unknown> }, authInterface: AuthInterface )
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:819
↓ 3 callersMethodupdateProductVariantInStrapi
(data, authInterface: AuthInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1086
↓ 2 callersMethodappendIdToStrapiFilter
(query: string, id?: string)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1997
↓ 2 callersFunctioncheckMedusaReady
(medusaServer: string, timeout = 30e3, attempts = 1000)
packages/strapi-plugin-medusajs/server/services/setup.ts:371
↓ 2 callersMethodcheckStrapiHealth
()
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1380
↓ 2 callersFunctionclearStrapiDb
()
packages/medusa-strapi/tests/helpers/strapi.js:22
↓ 2 callersFunctionconfigValidation
()
packages/strapi-plugin-sso-medusa/server/controllers/cognito.js:6
↓ 2 callersFunctionconfigValidation
()
packages/strapi-plugin-sso-medusa/server/controllers/google.js:5
↓ 2 callersMethodcreateCategoryInStrapi
(categoryId: string, authInterface: AuthInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:615
↓ 2 callersMethodcreateRegionInStrapi
(regionId, authInterface: AuthInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:704
↓ 2 callersMethodcreateStrapiRestQuery
* This function allows you to create a strapi query
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2442
↓ 2 callersFunctioncreateUserWithAdminRole
(params: RoleParams, role: { id: number })
packages/strapi-plugin-medusajs/server/bootstrap.ts:50
↓ 2 callersMethoddeleteAdminUserInStrapi
(email: string, role = 'Author')
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:2297
↓ 2 callersMethoddeleteCategoryInStrapi
(data, authInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1300
↓ 2 callersMethoddeleteRegionInStrapi
(data, authInterface)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1253
↓ 2 callersFunctionexecuteLoginAsStrapiAdmin
(email, password, strapi)
packages/medusa-strapi/tests/helpers/strapi.js:305
↓ 2 callersMethodexecuteStrapiHealthCheck
()
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1333
↓ 2 callersMethodexecuteStrapiSend
({ method, type, token, id, data, query, }: { method: Method; type: string; token: string;
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1923
↓ 2 callersMethodexecuteSync
* @Todo Create API based access async fetchMedusaUserApiKey(emailAddress) { return await this.strapiAdminSend("get") }
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1487
↓ 2 callersFunctionfindContentUid
(name, strapi)
packages/medusa-strapi/src/utils/utils.js:209
↓ 2 callersFunctiongenerateTestData
(attribute, includeUnqiueFields, processedRelations = [], unchangingUnique = false)
packages/medusa-strapi/tests/helpers/strapi.js:84
↓ 2 callersFunctiongetDirectories
(source)
packages/medusa-strapi/tests/2.services.test.js:28
↓ 2 callersFunctiongetSchemaFromApi
(strapi, apiNameOrig)
packages/medusa-strapi/tests/2.services.test.js:49
↓ 2 callersFunctionhandleChange
(val)
packages/strapi-plugin-multi-country-select/admin/src/components/MultiCountriesSelect/index.js:55
↓ 2 callersFunctionmockServer
()
packages/medusa-plugin-strapi-ts/src/services/__mocks__/service-mocks.ts:828
↓ 2 callersMethodretrieveRefreshedToken
(authInterface: AuthInterface, errorCode?: string | number)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1535
↓ 2 callersFunctionscheduleTestPost
(apiSingular, unchangingUnique)
packages/medusa-strapi/tests/3.apis.test.js:190
↓ 2 callersFunctionsleep
(ms)
packages/medusa-strapi/tests/helpers/strapi.js:154
↓ 2 callersMethodstartInterface
()
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:281
↓ 2 callersFunctiontestGet
(apiName, id, isSingleType)
packages/medusa-strapi/tests/3.apis.test.js:138
↓ 2 callersFunctiontranslateIdsToMedusaIds
( dataToSend: StrapiSeedType )
packages/medusa-plugin-strapi-ts/src/api/controllers/hooks/seed.ts:225
↓ 2 callersMethodtranslateRelationNamesToMedusaFormat
(dataReceived: StrapiGetResult, key: string)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1765
↓ 2 callersMethodtranslateRelationNamesToStrapiFormat
(dataToSend: StrapiEntity, key: string)
packages/medusa-plugin-strapi-ts/src/services/update-strapi.ts:1742
↓ 2 callersFunctionupdateBlocks
(blocks)
packages/medusa-strapi/src/bootstrap.js:130
next →1–100 of 308, ranked by callers