@spscommerce/asst-api 4.2.3 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/{chunk-FCUIJXCD.js → chunk-V2XRXJIJ.js} +129 -33
  2. package/dist/{chunk-RPGGEEFE.js → chunk-WODMKML4.js} +1 -1
  3. package/dist/{chunk-L4AWOEED.js → chunk-YT2B4UAK.js} +41 -4
  4. package/dist/index.cjs +165 -36
  5. package/dist/index.d.cts +142 -15
  6. package/dist/index.d.ts +142 -15
  7. package/dist/index.js +5 -17
  8. package/dist/msw.cjs +134 -19
  9. package/dist/msw.d.cts +85 -10
  10. package/dist/msw.d.ts +85 -10
  11. package/dist/msw.js +94 -13
  12. package/dist/{zod-C3fOiO-H.d.cts → zod-CJ7lvFQH.d.cts} +53 -50
  13. package/dist/{zod-CJ6AFTQr.d.ts → zod-j6CrX5vY.d.ts} +53 -50
  14. package/dist/zod.cjs +39 -4
  15. package/dist/zod.d.cts +2 -2
  16. package/dist/zod.d.ts +2 -2
  17. package/dist/zod.js +2 -2
  18. package/package.json +3 -3
  19. package/dist/CompanyBriefByOrg-57oGCtjK.d.ts +0 -3427
  20. package/dist/CompanyBriefByOrg-Dy2omcT0.d.cts +0 -95
  21. package/dist/CompanyBriefByOrg-Dy2omcT0.d.ts +0 -95
  22. package/dist/CompanyBriefByOrg-LTdsUKm4.d.ts +0 -3427
  23. package/dist/CompanyBriefByOrg-itus4RMD.d.cts +0 -131
  24. package/dist/CompanyBriefByOrg-itus4RMD.d.ts +0 -131
  25. package/dist/SpsItemIdResponse-CkHdH_QJ.d.cts +0 -59
  26. package/dist/SpsItemIdResponse-CkHdH_QJ.d.ts +0 -59
  27. package/dist/chunk-27XV7TS2.js +0 -522
  28. package/dist/chunk-2ETQHIXC.js +0 -528
  29. package/dist/chunk-2VJS5KPH.js +0 -5182
  30. package/dist/chunk-2W3LZ4AO.js +0 -513
  31. package/dist/chunk-3XNXQYIB.js +0 -521
  32. package/dist/chunk-4C475UZX.js +0 -5164
  33. package/dist/chunk-4RARACQK.js +0 -528
  34. package/dist/chunk-5AROSGQB.js +0 -5034
  35. package/dist/chunk-7CGKH3QQ.js +0 -528
  36. package/dist/chunk-7F5CQRS2.js +0 -567
  37. package/dist/chunk-7OEXJIWW.js +0 -565
  38. package/dist/chunk-A22SEYVL.js +0 -530
  39. package/dist/chunk-AH5MG2WF.js +0 -5040
  40. package/dist/chunk-BDSSH6MN.js +0 -574
  41. package/dist/chunk-BFIQVABZ.js +0 -528
  42. package/dist/chunk-BJTO4CRW.js +0 -558
  43. package/dist/chunk-BLMS4KUD.js +0 -5164
  44. package/dist/chunk-BTNVA4NZ.js +0 -568
  45. package/dist/chunk-BVCWT7AV.js +0 -79
  46. package/dist/chunk-C73WZRUL.js +0 -544
  47. package/dist/chunk-CNQTNX3M.js +0 -567
  48. package/dist/chunk-CUVSWUIQ.js +0 -5040
  49. package/dist/chunk-DP2ZMQG5.js +0 -4881
  50. package/dist/chunk-EMBJNPTB.js +0 -5040
  51. package/dist/chunk-EO2UMCWY.js +0 -574
  52. package/dist/chunk-FTB465WY.js +0 -575
  53. package/dist/chunk-G6A4EVAL.js +0 -528
  54. package/dist/chunk-GDARBI5R.js +0 -5185
  55. package/dist/chunk-HHJDDPFR.js +0 -4886
  56. package/dist/chunk-HY2SRD5L.js +0 -5003
  57. package/dist/chunk-ISQ3LQRI.js +0 -565
  58. package/dist/chunk-KKX3CXHP.js +0 -558
  59. package/dist/chunk-LCK4AEWB.js +0 -79
  60. package/dist/chunk-LJVJ4SYE.js +0 -568
  61. package/dist/chunk-LYMA4XGG.js +0 -5181
  62. package/dist/chunk-MH76527N.js +0 -4892
  63. package/dist/chunk-MLAU3LFL.js +0 -527
  64. package/dist/chunk-MQREZR54.js +0 -5164
  65. package/dist/chunk-N4A4BVKV.js +0 -5163
  66. package/dist/chunk-QVEV57JA.js +0 -5185
  67. package/dist/chunk-SI7CWAHC.js +0 -574
  68. package/dist/chunk-SK6U2JDX.js +0 -566
  69. package/dist/chunk-SPR77CVW.js +0 -529
  70. package/dist/chunk-SQBB5K5J.js +0 -574
  71. package/dist/chunk-TQ2IQDSM.js +0 -568
  72. package/dist/chunk-TTT6PM27.js +0 -558
  73. package/dist/chunk-VFMKDLXO.js +0 -570
  74. package/dist/chunk-VKPQOGVS.js +0 -565
  75. package/dist/chunk-VLLI4AYA.js +0 -520
  76. package/dist/chunk-VNFLJ5FV.js +0 -530
  77. package/dist/chunk-WNCDQJEM.js +0 -5034
  78. package/dist/chunk-XYZVRJF3.js +0 -5162
  79. package/dist/chunk-YJCJB4OT.js +0 -79
  80. package/dist/chunk-YJMQ4PGM.js +0 -559
  81. package/dist/chunk-Z6PXGHNC.js +0 -570
  82. package/dist/chunk-ZQ32XEVW.js +0 -79
  83. package/dist/chunk-ZXXDLGW7.js +0 -513
  84. package/dist/index-9KKchLwe.d.cts +0 -14
  85. package/dist/index-B8ovDTs5.d.cts +0 -14
  86. package/dist/index-BFKgtuVI.d.ts +0 -14
  87. package/dist/index-DeivEdv0.d.ts +0 -14
  88. package/dist/index-Zz-6wNSh.d.ts +0 -106
  89. package/dist/index-fgr_c5Wj.d.ts +0 -106
  90. package/dist/zod-6gU8y6oS.d.cts +0 -6712
  91. package/dist/zod-B4sIVoVX.d.ts +0 -6712
  92. package/dist/zod-BI81QHVK.d.ts +0 -6715
  93. package/dist/zod-BRmUARvM.d.cts +0 -5879
  94. package/dist/zod-BUCQsGOm.d.ts +0 -6712
  95. package/dist/zod-BdDmL7rg.d.ts +0 -6718
  96. package/dist/zod-Bl_5j5Nx.d.ts +0 -6712
  97. package/dist/zod-Bxu34bbp.d.ts +0 -6718
  98. package/dist/zod-C4kEHhO8.d.cts +0 -6718
  99. package/dist/zod-C5pRCHei.d.ts +0 -6712
  100. package/dist/zod-CFNzalN6.d.ts +0 -5879
  101. package/dist/zod-CIacR1Kf.d.cts +0 -6712
  102. package/dist/zod-DBbdP-KT.d.cts +0 -6718
  103. package/dist/zod-DyBGOUbG.d.ts +0 -5876
  104. package/dist/zod-DzhoVlw_.d.cts +0 -6712
  105. package/dist/zod-FdtLO2-F.d.cts +0 -6715
  106. package/dist/zod-NE2xXWlK.d.ts +0 -3416
  107. package/dist/zod-VuA-QJOT.d.ts +0 -5915
  108. package/dist/zod-jDi_gO0s.d.cts +0 -5915
  109. package/dist/zod-lSiFMzqK.d.cts +0 -6712
  110. package/dist/zod-rs54beS2.d.cts +0 -5876
  111. package/dist/zod-zxqlYYMG.d.ts +0 -3416
package/dist/index.cjs CHANGED
@@ -4231,18 +4231,34 @@ var vendorPartnerAttGroupsSchema = external_exports.object({
4231
4231
  partnerAttributeGroups: external_exports.array(external_exports.number())
4232
4232
  });
4233
4233
 
4234
+ // lib/_common/ApplicationType.ts
4235
+ var applicationTypeSchema = external_exports.enum(["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]);
4236
+
4234
4237
  // lib/imports/models/GenerateImportTemplateParams.ts
4235
4238
  var generateImportTemplateParamsSchema = external_exports.object({
4236
4239
  "multi-sheet": external_exports.boolean(),
4240
+ callingApplicationType: applicationTypeSchema.optional(),
4237
4241
  gids: external_exports.string().optional(),
4238
- productTypeIds: external_exports.string().optional(),
4239
4242
  groupTypeId: external_exports.number().optional(),
4240
- includeGuides: external_exports.boolean().optional()
4243
+ includeGuides: external_exports.boolean().optional(),
4244
+ productTypeIds: external_exports.string().optional()
4241
4245
  });
4242
4246
 
4247
+ // lib/util.ts
4248
+ function getCompanyTypeSearchParams({
4249
+ params,
4250
+ companyType
4251
+ }) {
4252
+ const merged = {
4253
+ ...params ?? {},
4254
+ ...companyType ? { companyType } : {}
4255
+ };
4256
+ return Object.keys(merged).length > 0 ? merged : void 0;
4257
+ }
4258
+
4243
4259
  // lib/imports/index.ts
4244
4260
  var BASE_URL = "imports";
4245
- function createImportsApi(client) {
4261
+ function createImportsApi(client, companyType) {
4246
4262
  async function getImportErrors(importId, params, signal) {
4247
4263
  const data = await client.get(`${BASE_URL}/${importId}/errors`, { searchParams: params, signal }).json();
4248
4264
  return importErrorsSchema.parse(data);
@@ -4255,22 +4271,28 @@ function createImportsApi(client) {
4255
4271
  return importSchema.parse(data);
4256
4272
  }
4257
4273
  async function getImportsStatus(signal) {
4258
- const data = await client.get(`${BASE_URL}/status`, { signal }).json();
4274
+ const data = await client.get(`${BASE_URL}/status`, {
4275
+ signal,
4276
+ searchParams: getCompanyTypeSearchParams({ companyType })
4277
+ }).json();
4259
4278
  return external_exports.array(importsStatusSchema).parse(data);
4260
4279
  }
4261
4280
  async function uploadImport(file) {
4262
4281
  await client.post(`${BASE_URL}`, { body: file });
4263
4282
  }
4264
4283
  async function getVendorPartnerGroups(signal) {
4265
- const data = await client.get(`${BASE_URL}/template/vendor-partner-groups`, { signal }).json();
4284
+ const data = await client.get(`${BASE_URL}/template/vendor-partner-groups`, {
4285
+ signal,
4286
+ searchParams: getCompanyTypeSearchParams({ companyType })
4287
+ }).json();
4266
4288
  return external_exports.array(vendorPartnerAttGroupsSchema).parse(data);
4267
4289
  }
4268
4290
  async function generateImportTemplate(params) {
4269
4291
  const response = await client.get(`${BASE_URL}/template/generate`, {
4270
- searchParams: params,
4271
4292
  headers: {
4272
4293
  Accept: "application/octet-stream"
4273
4294
  },
4295
+ searchParams: getCompanyTypeSearchParams({ params, companyType }),
4274
4296
  timeout: false
4275
4297
  });
4276
4298
  const disposition = response.headers.get("content-disposition") || "";
@@ -4300,7 +4322,7 @@ function createImportsApi(client) {
4300
4322
  // lib/exports/index.ts
4301
4323
  var BASE_URL2 = "exports";
4302
4324
  var BASE_URL_V2 = "v2/exports";
4303
- function createExportsApi(client) {
4325
+ function createExportsApi(client, companyType) {
4304
4326
  async function createExport(data, params) {
4305
4327
  await client.post(`${BASE_URL_V2}/add`, {
4306
4328
  json: data,
@@ -4314,7 +4336,7 @@ function createExportsApi(client) {
4314
4336
  availableAttributes: params.availableAttributes?.join(",") ?? ""
4315
4337
  };
4316
4338
  const response = await client.get(`${BASE_URL2}/spreadsheet/by-item`, {
4317
- searchParams,
4339
+ searchParams: getCompanyTypeSearchParams({ params: searchParams, companyType }),
4318
4340
  headers: {
4319
4341
  Accept: "application/octet-stream"
4320
4342
  },
@@ -4383,7 +4405,7 @@ var companyRelationshipUpsertBodySchema = external_exports.object({
4383
4405
  retailerId: external_exports.number(),
4384
4406
  catalogId: external_exports.number(),
4385
4407
  active: external_exports.boolean(),
4386
- applicationType: external_exports.array(external_exports.enum(["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"])).default([])
4408
+ applicationType: external_exports.array(applicationTypeSchema).default([])
4387
4409
  });
4388
4410
 
4389
4411
  // lib/tradingPartners/models/ItemPartner.ts
@@ -4395,7 +4417,7 @@ var itemPartnerSchema = external_exports.object({
4395
4417
  isActive: external_exports.number(),
4396
4418
  createdDate: external_exports.string(),
4397
4419
  modifiedDate: external_exports.string(),
4398
- applications: external_exports.array(external_exports.enum(["ASSORTMENT", "ITEM-XREF"]))
4420
+ applications: external_exports.array(applicationTypeSchema)
4399
4421
  });
4400
4422
 
4401
4423
  // lib/tradingPartners/models/TradingPartnerAccessByCompanyId.ts
@@ -4444,9 +4466,10 @@ var retailerTradingPartnerStages = external_exports.array(
4444
4466
 
4445
4467
  // lib/tradingPartnerSettings/index.ts
4446
4468
  var BASE_URL5 = "trading-partner-settings";
4447
- function createTradingPartnerSettingsApi(client) {
4469
+ function createTradingPartnerSettingsApi(client, companyType) {
4448
4470
  async function getRetailerStages(signal) {
4449
4471
  const data = await client.get(`${BASE_URL5}/stages/retailer-configured`, {
4472
+ searchParams: getCompanyTypeSearchParams({ companyType }),
4450
4473
  signal
4451
4474
  }).json();
4452
4475
  return retailerTradingPartnerStages.parse(data);
@@ -4500,6 +4523,34 @@ var itemHierarchyResponseSchema = external_exports.object({
4500
4523
  )
4501
4524
  });
4502
4525
 
4526
+ // lib/categories/models/CatalogManagement.ts
4527
+ var catalogCreateRequestSchema = external_exports.object({
4528
+ categoryName: external_exports.string(),
4529
+ categoryCompanyId: external_exports.number(),
4530
+ categoryTypeId: external_exports.number(),
4531
+ categoryDescription: external_exports.string().optional()
4532
+ });
4533
+ var catalogCreateResponseSchema = external_exports.object({
4534
+ categoryId: external_exports.number()
4535
+ });
4536
+ var catalogSearchParamsSchema = external_exports.object({
4537
+ ownerCompanyIds: external_exports.array(external_exports.number()).optional(),
4538
+ searchTerms: external_exports.string().optional(),
4539
+ categoryType: external_exports.literal("CATALOG")
4540
+ });
4541
+ var catalogBriefResponseSchema = external_exports.object({
4542
+ categoryId: external_exports.number(),
4543
+ categoryName: external_exports.string(),
4544
+ categoryDescription: external_exports.string(),
4545
+ categoryDescriptionExt: external_exports.string(),
4546
+ ownerCompanyId: external_exports.string(),
4547
+ categoryTypeId: external_exports.number(),
4548
+ createdAt: external_exports.string(),
4549
+ modifiedAt: external_exports.string(),
4550
+ createdBy: external_exports.string(),
4551
+ modifiedBy: external_exports.string()
4552
+ });
4553
+
4503
4554
  // lib/categories/index.ts
4504
4555
  var BASE_URL6 = "categories";
4505
4556
  function createCategoriesApi(client) {
@@ -4552,11 +4603,41 @@ function createCategoriesApi(client) {
4552
4603
  const data = await client.post(`${BASE_URL6}/item-hierarchy`, { json: { itemIds } }).json();
4553
4604
  return itemHierarchyResponseSchema.parse(data);
4554
4605
  }
4606
+ async function createCatalog(params, signal) {
4607
+ const data = await client.post("category", {
4608
+ json: params,
4609
+ signal
4610
+ }).json();
4611
+ return catalogCreateResponseSchema.parse(data);
4612
+ }
4613
+ async function searchCatalogsByCompany(params, signal) {
4614
+ const url = "category/brief/CATALOG/search";
4615
+ const searchParams = new URLSearchParams();
4616
+ if (params.ownerCompanyIds?.length) {
4617
+ for (const id of params.ownerCompanyIds) {
4618
+ searchParams.append("ownerCompanyIds", id.toString());
4619
+ }
4620
+ }
4621
+ if (params.searchTerms) {
4622
+ searchParams.set("searchTerms", params.searchTerms);
4623
+ }
4624
+ const data = await client.get(url, {
4625
+ searchParams,
4626
+ signal
4627
+ }).json();
4628
+ return external_exports.array(catalogBriefResponseSchema).parse(data);
4629
+ }
4630
+ async function createCategoryHierarchy(searchParams) {
4631
+ return await client.post(`${BASE_URL6}/hierarchy`, { searchParams }).json();
4632
+ }
4555
4633
  return {
4556
4634
  getCatalogs,
4557
4635
  getProductCodes,
4558
4636
  getSelectionCodes,
4559
- getItemHierarchy
4637
+ getItemHierarchy,
4638
+ createCatalog,
4639
+ searchCatalogsByCompany,
4640
+ createCategoryHierarchy
4560
4641
  };
4561
4642
  }
4562
4643
 
@@ -4718,10 +4799,14 @@ function createWhoAmIApi(client) {
4718
4799
 
4719
4800
  // lib/companyFeatures/index.ts
4720
4801
  var BASE_URL10 = "feature";
4721
- function createCompanyFeaturesApi(client) {
4802
+ function createCompanyFeaturesApi(client, companyType) {
4803
+ function getSearchParams() {
4804
+ return companyType && { companyType };
4805
+ }
4722
4806
  async function checkIfStageItemSetupIsEnabled(signal) {
4723
4807
  const data = await client.get(`${BASE_URL10}/isphaseditemsetupenabled`, {
4724
- signal
4808
+ signal,
4809
+ searchParams: getSearchParams()
4725
4810
  }).json();
4726
4811
  return external_exports.boolean().parse(data);
4727
4812
  }
@@ -4753,10 +4838,19 @@ function createFeatureFlagsApi(client) {
4753
4838
  }).json();
4754
4839
  return external_exports.boolean().parse(data);
4755
4840
  }
4841
+ async function checkIfItemMatchEnabled(flagOptions = {}) {
4842
+ const { companyId, signal } = flagOptions;
4843
+ const path = companyId ? `${BASE_URL11}/enable-item-match-section/${companyId}/` : `${BASE_URL11}/enable-item-match-section/`;
4844
+ const data = await client.get(path, {
4845
+ signal
4846
+ }).json();
4847
+ return external_exports.boolean().parse(data);
4848
+ }
4756
4849
  return {
4757
4850
  checkEnableItemsLevelMSIS,
4758
4851
  checkIfEnabledForPackagingHierarchies,
4759
- checkIfEnabledForItemUomConversionRules
4852
+ checkIfEnabledForItemUomConversionRules,
4853
+ checkIfItemMatchEnabled
4760
4854
  };
4761
4855
  }
4762
4856
 
@@ -5078,18 +5172,17 @@ var itemStatusResponseSchema = external_exports.object({
5078
5172
 
5079
5173
  // lib/items/v1/index.ts
5080
5174
  var BASE_URL12 = "items";
5081
- function createItemsApi(client) {
5082
- function createQueryParameterString(params = {}) {
5083
- const searchParams = new URLSearchParams();
5084
- const { limit, offset, applicationType, url } = params ?? {};
5085
- if (limit) searchParams.append("limit", limit.toString());
5086
- if (offset) searchParams.append("offset", offset.toString());
5087
- if (applicationType) searchParams.append("application", applicationType);
5088
- const queryParameterString = searchParams.toString();
5089
- return url ? `${queryParameterString}&${url}` : queryParameterString;
5175
+ function createItemsApi(client, companyType) {
5176
+ function getCoalescedParams(params = {}) {
5177
+ const queryParams = {};
5178
+ if (params.limit !== void 0) queryParams.limit = params.limit.toString();
5179
+ if (params.offset !== void 0) queryParams.offset = params.offset.toString();
5180
+ if (params.applicationType) queryParams.application = params.applicationType;
5181
+ if (params.url) queryParams.url = params.url;
5182
+ return Object.keys(queryParams).length > 0 ? queryParams : void 0;
5090
5183
  }
5091
5184
  async function searchItems(params, signal) {
5092
- const searchParams = createQueryParameterString(params);
5185
+ const searchParams = getCompanyTypeSearchParams({ params: getCoalescedParams(params), companyType });
5093
5186
  const data = await client.get(`${BASE_URL12}`, { searchParams, signal }).json();
5094
5187
  return itemSearchViewSchema.parse(data);
5095
5188
  }
@@ -5100,6 +5193,7 @@ function createItemsApi(client) {
5100
5193
  async function updateItem(itemId, item) {
5101
5194
  await client.put(`${BASE_URL12}/details/${itemId}`, {
5102
5195
  json: { ...item },
5196
+ searchParams: getCompanyTypeSearchParams({ companyType }),
5103
5197
  timeout: 45e3
5104
5198
  }).json();
5105
5199
  }
@@ -5114,7 +5208,9 @@ function createItemsApi(client) {
5114
5208
  await client.delete(`${BASE_URL12}`, { searchParams: params });
5115
5209
  }
5116
5210
  async function getItemInfoId(spsItemId, signal) {
5117
- const data = await client.get(`${BASE_URL12}/${spsItemId}/itemInfoId`, { signal }).json();
5211
+ const data = await client.get(`${BASE_URL12}/${spsItemId}/itemInfoId`, { searchParams: getCompanyTypeSearchParams({
5212
+ companyType
5213
+ }), signal }).json();
5118
5214
  return external_exports.number().parse(data);
5119
5215
  }
5120
5216
  async function getSpsItemId(itemInfoId, signal) {
@@ -5122,7 +5218,10 @@ function createItemsApi(client) {
5122
5218
  return spsItemIdResponseSchema.parse(data);
5123
5219
  }
5124
5220
  async function getItemStatus(itemIds) {
5125
- const data = await client.post(`${BASE_URL12}/status`, { json: { itemIds } }).json();
5221
+ const data = await client.post(`${BASE_URL12}/status`, {
5222
+ json: { itemIds },
5223
+ searchParams: getCompanyTypeSearchParams({ companyType })
5224
+ }).json();
5126
5225
  return itemStatusResponseSchema.parse(data);
5127
5226
  }
5128
5227
  return {
@@ -5201,9 +5300,12 @@ var itemStatusV2ResponseSchema = external_exports.object({
5201
5300
 
5202
5301
  // lib/items/v2/index.ts
5203
5302
  var BASE_URL13 = "v2/items";
5204
- function createItemsApiV2(client) {
5303
+ function createItemsApiV2(client, companyType) {
5205
5304
  async function getItemStatus(itemIds) {
5206
- const data = await client.post(`${BASE_URL13}/status`, { json: { itemIds } }).json();
5305
+ const data = await client.post(`${BASE_URL13}/status`, {
5306
+ json: { itemIds },
5307
+ searchParams: getCompanyTypeSearchParams({ companyType })
5308
+ }).json();
5207
5309
  return itemStatusV2ResponseSchema.parse(data);
5208
5310
  }
5209
5311
  return {
@@ -5236,9 +5338,10 @@ var itemErrorDetailsResultSchema = external_exports.object({
5236
5338
 
5237
5339
  // lib/errors/v1/index.ts
5238
5340
  var BASE_URL14 = "errors";
5239
- function createErrorsApi(client) {
5341
+ function createErrorsApi(client, companyType) {
5240
5342
  async function getInvalidItemErrorDetails(itemInfoId, signal) {
5241
5343
  const data = await client.get(`${BASE_URL14}/items/${itemInfoId}`, {
5344
+ searchParams: getCompanyTypeSearchParams({ companyType }),
5242
5345
  signal
5243
5346
  }).json();
5244
5347
  return itemErrorDetailsResultSchema.parse(data);
@@ -5317,23 +5420,31 @@ var itemErrorDetailsResultV2Schema = external_exports.object({
5317
5420
 
5318
5421
  // lib/errors/v2/index.ts
5319
5422
  var BASE_URL15 = "errors/v2";
5320
- function createErrorsApiV2(client) {
5423
+ function createErrorsApiV2(client, companyType) {
5321
5424
  async function getItemErrorSummary(params, signal) {
5322
5425
  const searchParams = new URLSearchParams();
5323
- if (params.searchField) searchParams.append("searchField", params.searchField);
5426
+ if (params.searchField)
5427
+ searchParams.append("searchField", params.searchField);
5324
5428
  if (params.searchText) searchParams.append("searchText", params.searchText);
5325
5429
  if (params.tradingPartnerIds) {
5326
- params.tradingPartnerIds.forEach((id) => searchParams.append("tradingPartnerIds", id.toString()));
5430
+ params.tradingPartnerIds.forEach(
5431
+ (id) => searchParams.append("tradingPartnerIds", id.toString())
5432
+ );
5327
5433
  }
5328
5434
  if (params.offset) searchParams.append("offset", params.offset.toString());
5329
5435
  if (params.limit) searchParams.append("limit", params.limit.toString());
5330
- if (params.docInEventId) searchParams.append("docInEventId", params.docInEventId);
5436
+ if (params.docInEventId)
5437
+ searchParams.append("docInEventId", params.docInEventId);
5331
5438
  if (params.importId) searchParams.append("importId", params.importId);
5439
+ if (companyType) searchParams.append("companyType", companyType);
5332
5440
  const data = await client.get(`${BASE_URL15}/summary`, { signal, searchParams }).json();
5333
5441
  return itemErrorSummaryResultV2Schema.parse(data);
5334
5442
  }
5335
5443
  async function getItemErrorDetails(itemInfoId, signal) {
5336
- const data = await client.get(`${BASE_URL15}/items/${itemInfoId}`, { signal }).json();
5444
+ const data = await client.get(`${BASE_URL15}/items/${itemInfoId}`, {
5445
+ searchParams: getCompanyTypeSearchParams({ companyType }),
5446
+ signal
5447
+ }).json();
5337
5448
  return itemErrorDetailsResultV2Schema.parse(data);
5338
5449
  }
5339
5450
  return {
@@ -5372,9 +5483,20 @@ var FlattenedItemIdentifierKeysSchema = external_exports.enum(
5372
5483
  FlattenedItemIdentifierKeys
5373
5484
  );
5374
5485
 
5486
+ // lib/uniqueCriteria/models/UniqueCriteriaOptionsSchema.ts
5487
+ var uniqueCriteriaOptions = external_exports.object({
5488
+ name: external_exports.string(),
5489
+ value: external_exports.string()
5490
+ });
5491
+ var uniqueCriteriaOptionsSchema = external_exports.array(uniqueCriteriaOptions);
5492
+
5375
5493
  // lib/uniqueCriteria/index.ts
5376
5494
  var BASE_URL16 = "uniquecriteria";
5377
5495
  function createUniqueCriteriaApi(client) {
5496
+ async function getUniqueCriteriaOptions() {
5497
+ const data = await client.get(`${BASE_URL16}`).json();
5498
+ return uniqueCriteriaOptionsSchema.parse(data);
5499
+ }
5378
5500
  async function getUniqueCriteriaByOrg(params, signal) {
5379
5501
  const data = await client.get(`${BASE_URL16}/org`, {
5380
5502
  searchParams: params,
@@ -5389,7 +5511,11 @@ function createUniqueCriteriaApi(client) {
5389
5511
  }).json();
5390
5512
  return external_exports.array(FlattenedItemIdentifierKeysSchema).parse(data);
5391
5513
  }
5392
- return { getUniqueCriteriaByOrg, getProductUniqueCriteriaByOrg };
5514
+ return {
5515
+ getUniqueCriteriaOptions,
5516
+ getUniqueCriteriaByOrg,
5517
+ getProductUniqueCriteriaByOrg
5518
+ };
5393
5519
  }
5394
5520
 
5395
5521
  // lib/companies/models/CompanyBriefByOrg.ts
@@ -5404,6 +5530,9 @@ var companyBriefByOrgSchema = external_exports.object({
5404
5530
  dc4Id: external_exports.number()
5405
5531
  });
5406
5532
 
5533
+ // lib/companies/models/CompanyType.ts
5534
+ var companyTypeSchema = external_exports.enum(["SUPPLIER", "RETAILER"]);
5535
+
5407
5536
  // lib/companies/index.ts
5408
5537
  var BASE_URL17 = "companys";
5409
5538
  function createCompaniesApi(client) {
package/dist/index.d.cts CHANGED
@@ -1,17 +1,19 @@
1
- import { A as AsstClient, S as SpsItemIdResponse } from './CompanyBriefByOrg-Dy2omcT0.cjs';
2
- export { a as AsstClientOptions, b as AsstUrl, B as BASE_URLS, C as CompanyBriefByOrg, E as Env, e as envSchema } from './CompanyBriefByOrg-Dy2omcT0.cjs';
3
- import { I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, G as GenerateImportTemplateParams, E as Export, D as DownLoadItemsParams, A as AttrProdType, T as TradingPartnerAccessByCompanyId, C as CompanyRelationshipUpsertBody, b as ItemPartner, c as ItemCategoriesSearch, d as ItemHierarchyResponse, L as Locale, S as SpreadsheetTemplate, U as UserAccount, e as ItemSearchView, f as ItemDetailView, g as ItemDetail, h as ItemErrorDetailsResult, i as ItemErrorSummaryResultV2, j as ItemErrorDetailsResultV2 } from './zod-BRmUARvM.cjs';
4
- export { M as AttributeDetail, a1 as Bulb, N as CategoryEnum, O as ComponentDetails, r as Connection, o as ExportDayOfWeek, p as ExportFrequency, q as ExportType, Q as GroupedAttributeList, W as GroupedAttributes, X as GroupedItem, Y as HierarchyCategory, Z as HierarchyDetails, w as IdentityServiceDatetimePreferences, x as IdentityServiceOrganization, v as IdentityServiceOrganizationMetadata, y as IdentityServicePreferences, z as IdentityServiceUser, k as ImportDetails, l as ImportError, m as ImportErrors, n as ImportStatusEnum, t as ItemCategory, a5 as ItemErrorDetails, a7 as ItemErrorDetailsV2, a6 as ItemErrorSummaryV2, B as ItemHeader, F as ItemMap, _ as ItemPrice, H as ItemTable, a0 as MediaItem, P as PRODUCT_CODE_DEFAULT_VALUE, a2 as PackComponent, $ as PackComponentDetails, a4 as PackComponentItemInfo, J as PhaseEnum, R as RegisteredService, a3 as RepeatableGroup, s as SELECTION_CODE_DEFAULT_VALUE, u as SpreadsheetTemplateCompany, K as TradingPartnerStage, a8 as TradingPartnerStageV2 } from './zod-BRmUARvM.cjs';
1
+ import { A as AsstClient, I as ItemHierarchyResponse, S as SpsItemIdResponse } from './SpsItemIdResponse-s0vCXepG.cjs';
2
+ export { a as AsstClientOptions, b as AsstUrl, B as BASE_URLS, E as Env, e as envSchema } from './SpsItemIdResponse-s0vCXepG.cjs';
3
+ import { I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, G as GenerateImportTemplateParams, E as Export, D as DownLoadItemsParams, A as AttrProdType, T as TradingPartnerAccessByCompanyId, C as CompanyRelationshipUpsertBody, b as ItemPartner, c as ItemCategoriesSearch, L as Locale, S as SpreadsheetTemplate, U as UserAccount, d as ItemSearchView, e as ItemDetailView, f as ItemDetail, g as ItemErrorDetailsResult, h as ItemErrorSummaryResultV2, i as ItemErrorDetailsResultV2, j as CompanyBriefByOrg } from './zod-CJ7lvFQH.cjs';
4
+ export { M as AttributeDetail, a1 as Bulb, N as CategoryEnum, O as ComponentDetails, r as Connection, o as ExportDayOfWeek, p as ExportFrequency, q as ExportType, Q as GroupedAttributeList, W as GroupedAttributes, X as GroupedItem, Y as HierarchyCategory, Z as HierarchyDetails, w as IdentityServiceDatetimePreferences, x as IdentityServiceOrganization, v as IdentityServiceOrganizationMetadata, y as IdentityServicePreferences, z as IdentityServiceUser, k as ImportDetails, l as ImportError, m as ImportErrors, n as ImportStatusEnum, t as ItemCategory, a5 as ItemErrorDetails, a7 as ItemErrorDetailsV2, a6 as ItemErrorSummaryV2, B as ItemHeader, F as ItemMap, _ as ItemPrice, H as ItemTable, a0 as MediaItem, P as PRODUCT_CODE_DEFAULT_VALUE, a2 as PackComponent, $ as PackComponentDetails, a4 as PackComponentItemInfo, J as PhaseEnum, R as RegisteredService, a3 as RepeatableGroup, s as SELECTION_CODE_DEFAULT_VALUE, u as SpreadsheetTemplateCompany, K as TradingPartnerStage, a8 as TradingPartnerStageV2 } from './zod-CJ7lvFQH.cjs';
5
5
  import { z } from 'zod';
6
- export { c as createCompaniesApi } from './index-9KKchLwe.cjs';
7
6
  import 'ky';
8
7
 
8
+ declare const companyTypeSchema: z.ZodEnum<["SUPPLIER", "RETAILER"]>;
9
+ type CompanyType = z.infer<typeof companyTypeSchema>;
10
+
9
11
  /**
10
12
  * Initialize Imports Api functions
11
13
  * @param client Assortment Client instance
12
14
  * @returns An object containing Imports API functions
13
15
  */
14
- declare function createImportsApi(client: AsstClient): {
16
+ declare function createImportsApi(client: AsstClient, companyType?: CompanyType): {
15
17
  getImportErrors: (importId: string, params?: {
16
18
  offset?: number;
17
19
  limit?: number;
@@ -39,9 +41,10 @@ declare function createImportsApi(client: AsstClient): {
39
41
  /**
40
42
  * Initialize Exports Api functions
41
43
  * @param client Assortment Client instance
44
+ * @param companyType Company type for perspective
42
45
  * @returns An object containing Exports API functions
43
46
  */
44
- declare function createExportsApi(client: AsstClient): {
47
+ declare function createExportsApi(client: AsstClient, companyType?: CompanyType): {
45
48
  createExport: (data: Export, params?: {
46
49
  orgId?: string;
47
50
  }) => Promise<void>;
@@ -78,12 +81,100 @@ type RetailerTradingPartnerStages = z.infer<typeof retailerTradingPartnerStages>
78
81
  /**
79
82
  * Initialize Trading Partner Settings Api functions
80
83
  * @param client Assortment Client instance
84
+ * @param companyType Company type for perspective
81
85
  * @returns An object containing Trading Partner Settings API functions
82
86
  */
83
- declare function createTradingPartnerSettingsApi(client: AsstClient): {
87
+ declare function createTradingPartnerSettingsApi(client: AsstClient, companyType?: CompanyType): {
84
88
  getRetailerStages: (signal?: AbortSignal) => Promise<RetailerTradingPartnerStages>;
85
89
  };
86
90
 
91
+ /**
92
+ * Request payload for creating a new catalog
93
+ */
94
+ declare const catalogCreateRequestSchema: z.ZodObject<{
95
+ categoryName: z.ZodString;
96
+ categoryCompanyId: z.ZodNumber;
97
+ categoryTypeId: z.ZodNumber;
98
+ categoryDescription: z.ZodOptional<z.ZodString>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ categoryName: string;
101
+ categoryCompanyId: number;
102
+ categoryTypeId: number;
103
+ categoryDescription?: string | undefined;
104
+ }, {
105
+ categoryName: string;
106
+ categoryCompanyId: number;
107
+ categoryTypeId: number;
108
+ categoryDescription?: string | undefined;
109
+ }>;
110
+ type CatalogCreateRequest = z.infer<typeof catalogCreateRequestSchema>;
111
+ /**
112
+ * Response from creating a new catalog
113
+ */
114
+ declare const catalogCreateResponseSchema: z.ZodObject<{
115
+ categoryId: z.ZodNumber;
116
+ }, "strip", z.ZodTypeAny, {
117
+ categoryId: number;
118
+ }, {
119
+ categoryId: number;
120
+ }>;
121
+ type CatalogCreateResponse = z.infer<typeof catalogCreateResponseSchema>;
122
+ /**
123
+ * Parameters for searching catalogs by company
124
+ */
125
+ declare const catalogSearchParamsSchema: z.ZodObject<{
126
+ ownerCompanyIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
127
+ searchTerms: z.ZodOptional<z.ZodString>;
128
+ categoryType: z.ZodLiteral<"CATALOG">;
129
+ }, "strip", z.ZodTypeAny, {
130
+ categoryType: "CATALOG";
131
+ ownerCompanyIds?: number[] | undefined;
132
+ searchTerms?: string | undefined;
133
+ }, {
134
+ categoryType: "CATALOG";
135
+ ownerCompanyIds?: number[] | undefined;
136
+ searchTerms?: string | undefined;
137
+ }>;
138
+ type CatalogSearchParams = z.infer<typeof catalogSearchParamsSchema>;
139
+ /**
140
+ * Brief catalog information returned from search
141
+ */
142
+ declare const catalogBriefResponseSchema: z.ZodObject<{
143
+ categoryId: z.ZodNumber;
144
+ categoryName: z.ZodString;
145
+ categoryDescription: z.ZodString;
146
+ categoryDescriptionExt: z.ZodString;
147
+ ownerCompanyId: z.ZodString;
148
+ categoryTypeId: z.ZodNumber;
149
+ createdAt: z.ZodString;
150
+ modifiedAt: z.ZodString;
151
+ createdBy: z.ZodString;
152
+ modifiedBy: z.ZodString;
153
+ }, "strip", z.ZodTypeAny, {
154
+ createdBy: string;
155
+ modifiedBy: string;
156
+ categoryName: string;
157
+ categoryTypeId: number;
158
+ categoryDescription: string;
159
+ categoryId: number;
160
+ categoryDescriptionExt: string;
161
+ ownerCompanyId: string;
162
+ createdAt: string;
163
+ modifiedAt: string;
164
+ }, {
165
+ createdBy: string;
166
+ modifiedBy: string;
167
+ categoryName: string;
168
+ categoryTypeId: number;
169
+ categoryDescription: string;
170
+ categoryId: number;
171
+ categoryDescriptionExt: string;
172
+ ownerCompanyId: string;
173
+ createdAt: string;
174
+ modifiedAt: string;
175
+ }>;
176
+ type CatalogBriefResponse = z.infer<typeof catalogBriefResponseSchema>;
177
+
87
178
  type CategoriesApi = {
88
179
  getCatalogs: (params?: {
89
180
  categoryName?: string;
@@ -101,6 +192,11 @@ type CategoriesApi = {
101
192
  orgId?: string;
102
193
  }, signal?: AbortSignal) => Promise<ItemCategoriesSearch>;
103
194
  getItemHierarchy: (itemIds: string[]) => Promise<ItemHierarchyResponse>;
195
+ createCatalog: (params: CatalogCreateRequest, signal?: AbortSignal) => Promise<CatalogCreateResponse>;
196
+ searchCatalogsByCompany: (params: CatalogSearchParams, signal?: AbortSignal) => Promise<CatalogBriefResponse[]>;
197
+ createCategoryHierarchy: (params?: {
198
+ orgId?: string;
199
+ }) => Promise<string[]>;
104
200
  };
105
201
  /**
106
202
  * Initialize Categories Api functions
@@ -138,14 +234,16 @@ declare function createWhoAmIApi(client: AsstClient): {
138
234
  whoAmI: (signal?: AbortSignal) => Promise<UserAccount>;
139
235
  };
140
236
 
141
- type ApplicationType = "ASSORTMENT" | "ITEM-XREF";
237
+ declare const applicationTypeSchema: z.ZodEnum<["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]>;
238
+ type ApplicationType = z.infer<typeof applicationTypeSchema>;
142
239
 
143
240
  /**
144
241
  * Initialize Company Features Api functions
145
242
  * @param client Assortment Client instance
243
+ * @param companyType Company type for perspective on hybrid organisations
146
244
  * @returns An object containing Company Features API functions
147
245
  */
148
- declare function createCompanyFeaturesApi(client: AsstClient): {
246
+ declare function createCompanyFeaturesApi(client: AsstClient, companyType?: CompanyType): {
149
247
  checkIfStageItemSetupIsEnabled: (signal?: AbortSignal) => Promise<boolean>;
150
248
  };
151
249
 
@@ -162,6 +260,7 @@ declare function createFeatureFlagsApi(client: AsstClient): {
162
260
  checkEnableItemsLevelMSIS: (signal?: AbortSignal) => Promise<boolean>;
163
261
  checkIfEnabledForPackagingHierarchies: (signal?: AbortSignal) => Promise<boolean>;
164
262
  checkIfEnabledForItemUomConversionRules: (flagOptions?: FlagOptions) => Promise<boolean>;
263
+ checkIfItemMatchEnabled: (flagOptions?: FlagOptions) => Promise<boolean>;
165
264
  };
166
265
 
167
266
  declare const itemStatusResponseSchema: z.ZodObject<{
@@ -365,9 +464,10 @@ type ItemsApi = {
365
464
  /**
366
465
  * Initialize Items Api functions
367
466
  * @param client Assortment Client instance
467
+ * @param companyType Optional company type eg "RETAILER" | "SUPPLIER"
368
468
  * @returns An object containing Items API functions
369
469
  */
370
- declare function createItemsApi(client: AsstClient): ItemsApi;
470
+ declare function createItemsApi(client: AsstClient, companyType?: CompanyType): ItemsApi;
371
471
 
372
472
  declare const itemOrgStageDetailsSchema: z.ZodObject<{
373
473
  /**
@@ -665,18 +765,20 @@ type Stage = z.infer<typeof stageSchema>;
665
765
  /**
666
766
  * Initialize Items Api functions
667
767
  * @param client Assortment Client instance
768
+ * @param companyType Company type for perspective
668
769
  * @returns An object containing Items API functions
669
770
  */
670
- declare function createItemsApiV2(client: AsstClient): {
771
+ declare function createItemsApiV2(client: AsstClient, companyType?: CompanyType): {
671
772
  getItemStatus: (itemIds: string[]) => Promise<ItemStatusV2Response>;
672
773
  };
673
774
 
674
775
  /**
675
776
  * Initialize Errors Api functions
676
777
  * @param client Assortment Client instance
778
+ * @param companyType Company type for perspective
677
779
  * @returns An object containing Errors API functions
678
780
  */
679
- declare function createErrorsApi(client: AsstClient): {
781
+ declare function createErrorsApi(client: AsstClient, companyType?: CompanyType): {
680
782
  getInvalidItemErrorDetails: (itemInfoId: string, signal?: AbortSignal) => Promise<ItemErrorDetailsResult>;
681
783
  };
682
784
 
@@ -692,9 +794,10 @@ type GetItemErrorSummaryParams = {
692
794
  /**
693
795
  * Initialize Errors Api functions
694
796
  * @param client Assortment Client instance
797
+ * @param companyType Company type for perspective
695
798
  * @returns An object containing Errors API functions
696
799
  */
697
- declare function createErrorsApiV2(client: AsstClient): {
800
+ declare function createErrorsApiV2(client: AsstClient, companyType?: CompanyType): {
698
801
  getItemErrorSummary: (params: GetItemErrorSummaryParams, signal?: AbortSignal) => Promise<ItemErrorSummaryResultV2>;
699
802
  getItemErrorDetails: (itemInfoId: number, signal?: AbortSignal) => Promise<ItemErrorDetailsResultV2>;
700
803
  };
@@ -702,12 +805,25 @@ declare function createErrorsApiV2(client: AsstClient): {
702
805
  declare const FlattenedItemIdentifierKeys: readonly ["eaneight", "upc", "ean", "gtin", "upcCaseCode", "buyerPartNumber", "partnumber", "isbn", "sku", "nationalDrugCode", "drugIdentificationNumber", "nationalHealthRelatedItemCode", "manufacturersPartNumber", "internationalStandardSerialNumber", "nabcaNumber", "erpId", "componentId"];
703
806
  type FlattenedItemIdentifiers = (typeof FlattenedItemIdentifierKeys)[number];
704
807
 
808
+ declare const uniqueCriteriaOptionsSchema: z.ZodArray<z.ZodObject<{
809
+ name: z.ZodString;
810
+ value: z.ZodString;
811
+ }, "strip", z.ZodTypeAny, {
812
+ value: string;
813
+ name: string;
814
+ }, {
815
+ value: string;
816
+ name: string;
817
+ }>, "many">;
818
+ type UniqueCriteriaOptions = z.infer<typeof uniqueCriteriaOptionsSchema>;
819
+
705
820
  /**
706
821
  * Initialize UniqueCriteria Api functions
707
822
  * @param client Assortment Client instance
708
823
  * @returns An object containing UniqueCriteria API functions
709
824
  */
710
825
  declare function createUniqueCriteriaApi(client: AsstClient): {
826
+ getUniqueCriteriaOptions: () => Promise<UniqueCriteriaOptions>;
711
827
  getUniqueCriteriaByOrg: (params?: {
712
828
  orgId?: string;
713
829
  }, signal?: AbortSignal) => Promise<string[]>;
@@ -716,4 +832,15 @@ declare function createUniqueCriteriaApi(client: AsstClient): {
716
832
  }, signal?: AbortSignal) => Promise<FlattenedItemIdentifiers[]>;
717
833
  };
718
834
 
719
- export { type ApplicationType, AsstClient, AttrProdType, type CategoriesApi, CompanyRelationshipUpsertBody, DownLoadItemsParams, Export, type FlagOptions, type FlattenedItemIdentifiers, GenerateImportTemplateParams, type GetItemErrorSummaryParams, Import, ImportsStatus, ItemCategoriesSearch, ItemDetail, ItemDetailView, ItemErrorDetailsResult, ItemErrorDetailsResultV2, ItemErrorSummaryResultV2, ItemHierarchyResponse, type ItemOrgStageDetails, type ItemOrgStatus, ItemPartner, ItemSearchView, type ItemStatus, type ItemStatusResponse, type ItemStatusV2, type ItemStatusV2Response, type ItemsApi, Locale, type OrgSummary, type RetailerTradingPartnerStages, SpreadsheetTemplate, SpsItemIdResponse, type Stage, TradingPartnerAccessByCompanyId, UserAccount, VendorPartnerAttGroups, createCategoriesApi, createCompanyFeaturesApi, createErrorsApi, createErrorsApiV2, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };
835
+ /**
836
+ * Initialize Companies Api functions
837
+ * @param client Assortment Client instance
838
+ * @returns A CompanyBriefByOrg object containing Companies API functions
839
+ */
840
+ declare function createCompaniesApi(client: AsstClient): {
841
+ getCompanyBriefInfoByOrg: (params?: {
842
+ orgId?: string;
843
+ }, signal?: AbortSignal) => Promise<CompanyBriefByOrg>;
844
+ };
845
+
846
+ export { type ApplicationType, AsstClient, AttrProdType, type CategoriesApi, CompanyBriefByOrg, CompanyRelationshipUpsertBody, DownLoadItemsParams, Export, type FlagOptions, type FlattenedItemIdentifiers, GenerateImportTemplateParams, type GetItemErrorSummaryParams, Import, ImportsStatus, ItemCategoriesSearch, ItemDetail, ItemDetailView, ItemErrorDetailsResult, ItemErrorDetailsResultV2, ItemErrorSummaryResultV2, ItemHierarchyResponse, type ItemOrgStageDetails, type ItemOrgStatus, ItemPartner, ItemSearchView, type ItemStatus, type ItemStatusResponse, type ItemStatusV2, type ItemStatusV2Response, type ItemsApi, Locale, type OrgSummary, type RetailerTradingPartnerStages, SpreadsheetTemplate, SpsItemIdResponse, type Stage, TradingPartnerAccessByCompanyId, type UniqueCriteriaOptions, UserAccount, VendorPartnerAttGroups, createCategoriesApi, createCompaniesApi, createCompanyFeaturesApi, createErrorsApi, createErrorsApiV2, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };