@spscommerce/asst-api 4.2.3 → 4.3.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.
- package/dist/{SpsItemIdResponse-CkHdH_QJ.d.cts → SpsItemIdResponse-0VgfCmG_.d.cts} +26 -1
- package/dist/{SpsItemIdResponse-CkHdH_QJ.d.ts → SpsItemIdResponse-0VgfCmG_.d.ts} +26 -1
- package/dist/{CompanyBriefByOrg-Dy2omcT0.d.cts → SpsItemIdResponse-CI_Ao86P.d.cts} +29 -37
- package/dist/{CompanyBriefByOrg-Dy2omcT0.d.ts → SpsItemIdResponse-CI_Ao86P.d.ts} +29 -37
- package/dist/chunk-355LPVI6.js +126 -0
- package/dist/{chunk-BVCWT7AV.js → chunk-55ECRTUX.js} +1 -1
- package/dist/chunk-63KIELUR.js +128 -0
- package/dist/{chunk-C73WZRUL.js → chunk-CI3ZSIT4.js} +1 -1
- package/dist/chunk-DK2OMRWR.js +134 -0
- package/dist/{chunk-HHJDDPFR.js → chunk-LKUGPDIT.js} +21 -11
- package/dist/{chunk-SPR77CVW.js → chunk-NFZI7D22.js} +29 -14
- package/dist/{chunk-MH76527N.js → chunk-NUUQDRHD.js} +14 -7
- package/dist/index.cjs +8 -4
- package/dist/index.d.cts +18 -7
- package/dist/index.d.ts +18 -7
- package/dist/index.js +5 -17
- package/dist/msw.cjs +65 -19
- package/dist/msw.d.cts +58 -4
- package/dist/msw.d.ts +58 -4
- package/dist/msw.js +61 -13
- package/dist/{zod-VuA-QJOT.d.ts → zod-C41Rts8D.d.cts} +11 -23
- package/dist/{zod-CFNzalN6.d.ts → zod-CJmsC_DX.d.cts} +60 -39
- package/dist/zod-COyz02Lh.d.ts +5903 -0
- package/dist/{zod-BRmUARvM.d.cts → zod-CzPw-bfk.d.cts} +60 -39
- package/dist/{zod-jDi_gO0s.d.cts → zod-vDuspd-x.d.ts} +29 -44
- package/dist/zod-xWM6u1LJ.d.ts +5900 -0
- package/dist/zod.cjs +8 -4
- package/dist/zod.d.cts +2 -2
- package/dist/zod.d.ts +2 -2
- package/dist/zod.js +2 -2
- package/package.json +3 -3
- package/dist/CompanyBriefByOrg-57oGCtjK.d.ts +0 -3427
- package/dist/CompanyBriefByOrg-LTdsUKm4.d.ts +0 -3427
- package/dist/CompanyBriefByOrg-itus4RMD.d.cts +0 -131
- package/dist/CompanyBriefByOrg-itus4RMD.d.ts +0 -131
- package/dist/chunk-27XV7TS2.js +0 -522
- package/dist/chunk-2ETQHIXC.js +0 -528
- package/dist/chunk-2VJS5KPH.js +0 -5182
- package/dist/chunk-2W3LZ4AO.js +0 -513
- package/dist/chunk-3XNXQYIB.js +0 -521
- package/dist/chunk-4C475UZX.js +0 -5164
- package/dist/chunk-4RARACQK.js +0 -528
- package/dist/chunk-5AROSGQB.js +0 -5034
- package/dist/chunk-7CGKH3QQ.js +0 -528
- package/dist/chunk-7F5CQRS2.js +0 -567
- package/dist/chunk-7OEXJIWW.js +0 -565
- package/dist/chunk-A22SEYVL.js +0 -530
- package/dist/chunk-AH5MG2WF.js +0 -5040
- package/dist/chunk-BDSSH6MN.js +0 -574
- package/dist/chunk-BFIQVABZ.js +0 -528
- package/dist/chunk-BJTO4CRW.js +0 -558
- package/dist/chunk-BLMS4KUD.js +0 -5164
- package/dist/chunk-BTNVA4NZ.js +0 -568
- package/dist/chunk-CNQTNX3M.js +0 -567
- package/dist/chunk-CUVSWUIQ.js +0 -5040
- package/dist/chunk-DP2ZMQG5.js +0 -4881
- package/dist/chunk-EMBJNPTB.js +0 -5040
- package/dist/chunk-EO2UMCWY.js +0 -574
- package/dist/chunk-FTB465WY.js +0 -575
- package/dist/chunk-G6A4EVAL.js +0 -528
- package/dist/chunk-GDARBI5R.js +0 -5185
- package/dist/chunk-HY2SRD5L.js +0 -5003
- package/dist/chunk-ISQ3LQRI.js +0 -565
- package/dist/chunk-KKX3CXHP.js +0 -558
- package/dist/chunk-LCK4AEWB.js +0 -79
- package/dist/chunk-LJVJ4SYE.js +0 -568
- package/dist/chunk-LYMA4XGG.js +0 -5181
- package/dist/chunk-MLAU3LFL.js +0 -527
- package/dist/chunk-MQREZR54.js +0 -5164
- package/dist/chunk-N4A4BVKV.js +0 -5163
- package/dist/chunk-QVEV57JA.js +0 -5185
- package/dist/chunk-SI7CWAHC.js +0 -574
- package/dist/chunk-SK6U2JDX.js +0 -566
- package/dist/chunk-SQBB5K5J.js +0 -574
- package/dist/chunk-TQ2IQDSM.js +0 -568
- package/dist/chunk-TTT6PM27.js +0 -558
- package/dist/chunk-VFMKDLXO.js +0 -570
- package/dist/chunk-VKPQOGVS.js +0 -565
- package/dist/chunk-VLLI4AYA.js +0 -520
- package/dist/chunk-VNFLJ5FV.js +0 -530
- package/dist/chunk-WNCDQJEM.js +0 -5034
- package/dist/chunk-XYZVRJF3.js +0 -5162
- package/dist/chunk-YJCJB4OT.js +0 -79
- package/dist/chunk-YJMQ4PGM.js +0 -559
- package/dist/chunk-Z6PXGHNC.js +0 -570
- package/dist/chunk-ZQ32XEVW.js +0 -79
- package/dist/chunk-ZXXDLGW7.js +0 -513
- package/dist/index-9KKchLwe.d.cts +0 -14
- package/dist/index-B8ovDTs5.d.cts +0 -14
- package/dist/index-BFKgtuVI.d.ts +0 -14
- package/dist/index-DeivEdv0.d.ts +0 -14
- package/dist/index-Zz-6wNSh.d.ts +0 -106
- package/dist/index-fgr_c5Wj.d.ts +0 -106
- package/dist/zod-6gU8y6oS.d.cts +0 -6712
- package/dist/zod-B4sIVoVX.d.ts +0 -6712
- package/dist/zod-BI81QHVK.d.ts +0 -6715
- package/dist/zod-BUCQsGOm.d.ts +0 -6712
- package/dist/zod-BdDmL7rg.d.ts +0 -6718
- package/dist/zod-Bl_5j5Nx.d.ts +0 -6712
- package/dist/zod-Bxu34bbp.d.ts +0 -6718
- package/dist/zod-C4kEHhO8.d.cts +0 -6718
- package/dist/zod-C5pRCHei.d.ts +0 -6712
- package/dist/zod-CIacR1Kf.d.cts +0 -6712
- package/dist/zod-DBbdP-KT.d.cts +0 -6718
- package/dist/zod-DyBGOUbG.d.ts +0 -5876
- package/dist/zod-DzhoVlw_.d.cts +0 -6712
- package/dist/zod-FdtLO2-F.d.cts +0 -6715
- package/dist/zod-NE2xXWlK.d.ts +0 -3416
- package/dist/zod-lSiFMzqK.d.cts +0 -6712
- package/dist/zod-rs54beS2.d.cts +0 -5876
- package/dist/zod-zxqlYYMG.d.ts +0 -3416
|
@@ -4034,14 +4034,14 @@ var ostring = () => stringType().optional();
|
|
|
4034
4034
|
var onumber = () => numberType().optional();
|
|
4035
4035
|
var oboolean = () => booleanType().optional();
|
|
4036
4036
|
var coerce = {
|
|
4037
|
-
string: (arg) => ZodString.create({ ...arg, coerce: true }),
|
|
4038
|
-
number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
|
|
4039
|
-
boolean: (arg) => ZodBoolean.create({
|
|
4037
|
+
string: ((arg) => ZodString.create({ ...arg, coerce: true })),
|
|
4038
|
+
number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
|
|
4039
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
4040
4040
|
...arg,
|
|
4041
4041
|
coerce: true
|
|
4042
|
-
}),
|
|
4043
|
-
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
|
|
4044
|
-
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
4042
|
+
})),
|
|
4043
|
+
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
|
|
4044
|
+
date: ((arg) => ZodDate.create({ ...arg, coerce: true }))
|
|
4045
4045
|
};
|
|
4046
4046
|
var NEVER = INVALID;
|
|
4047
4047
|
|
|
@@ -4108,13 +4108,17 @@ var vendorPartnerAttGroupsSchema = external_exports.object({
|
|
|
4108
4108
|
partnerAttributeGroups: external_exports.array(external_exports.number())
|
|
4109
4109
|
});
|
|
4110
4110
|
|
|
4111
|
+
// lib/_common/ApplicationType.ts
|
|
4112
|
+
var applicationTypeSchema = external_exports.enum(["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]);
|
|
4113
|
+
|
|
4111
4114
|
// lib/imports/models/GenerateImportTemplateParams.ts
|
|
4112
4115
|
var generateImportTemplateParamsSchema = external_exports.object({
|
|
4113
4116
|
"multi-sheet": external_exports.boolean(),
|
|
4117
|
+
callingApplicationType: applicationTypeSchema.optional(),
|
|
4114
4118
|
gids: external_exports.string().optional(),
|
|
4115
|
-
productTypeIds: external_exports.string().optional(),
|
|
4116
4119
|
groupTypeId: external_exports.number().optional(),
|
|
4117
|
-
includeGuides: external_exports.boolean().optional()
|
|
4120
|
+
includeGuides: external_exports.boolean().optional(),
|
|
4121
|
+
productTypeIds: external_exports.string().optional()
|
|
4118
4122
|
});
|
|
4119
4123
|
|
|
4120
4124
|
// lib/productTypes/models/AttrProdType.ts
|
|
@@ -4154,7 +4158,7 @@ var companyRelationshipUpsertBodySchema = external_exports.object({
|
|
|
4154
4158
|
retailerId: external_exports.number(),
|
|
4155
4159
|
catalogId: external_exports.number(),
|
|
4156
4160
|
active: external_exports.boolean(),
|
|
4157
|
-
applicationType: external_exports.array(
|
|
4161
|
+
applicationType: external_exports.array(applicationTypeSchema).default([])
|
|
4158
4162
|
});
|
|
4159
4163
|
|
|
4160
4164
|
// lib/tradingPartners/models/ItemPartner.ts
|
|
@@ -4166,7 +4170,7 @@ var itemPartnerSchema = external_exports.object({
|
|
|
4166
4170
|
isActive: external_exports.number(),
|
|
4167
4171
|
createdDate: external_exports.string(),
|
|
4168
4172
|
modifiedDate: external_exports.string(),
|
|
4169
|
-
applications: external_exports.array(
|
|
4173
|
+
applications: external_exports.array(applicationTypeSchema)
|
|
4170
4174
|
});
|
|
4171
4175
|
|
|
4172
4176
|
// lib/tradingPartners/models/TradingPartnerAccessByCompanyId.ts
|
|
@@ -4180,6 +4184,9 @@ var tradingPartnerAccessByCompanyIdSchema = external_exports.object({
|
|
|
4180
4184
|
});
|
|
4181
4185
|
|
|
4182
4186
|
// lib/categories/models/ItemCategory.ts
|
|
4187
|
+
var categoryTypeSchema = external_exports.enum(["CATALOG", "SELECTION_CODE", "PRODUCT_CODE", "EXPORT"]);
|
|
4188
|
+
var PRODUCT_CODE_DEFAULT_VALUE = "DEFAULT";
|
|
4189
|
+
var SELECTION_CODE_DEFAULT_VALUE = "000";
|
|
4183
4190
|
var itemCategorySchema = external_exports.object({
|
|
4184
4191
|
categoryid: external_exports.number(),
|
|
4185
4192
|
encodedCategoryId: external_exports.string(),
|
|
@@ -4189,7 +4196,7 @@ var itemCategorySchema = external_exports.object({
|
|
|
4189
4196
|
createdDate: external_exports.number().nullish(),
|
|
4190
4197
|
categorytimestamp: external_exports.number().nullish(),
|
|
4191
4198
|
typeId: external_exports.number(),
|
|
4192
|
-
type:
|
|
4199
|
+
type: categoryTypeSchema,
|
|
4193
4200
|
categorykey: external_exports.string().nullish(),
|
|
4194
4201
|
description: external_exports.string().nullish(),
|
|
4195
4202
|
categoryCatalogName: external_exports.string().nullish()
|
|
@@ -4836,6 +4843,9 @@ export {
|
|
|
4836
4843
|
companyRelationshipUpsertBodySchema,
|
|
4837
4844
|
itemPartnerSchema,
|
|
4838
4845
|
tradingPartnerAccessByCompanyIdSchema,
|
|
4846
|
+
categoryTypeSchema,
|
|
4847
|
+
PRODUCT_CODE_DEFAULT_VALUE,
|
|
4848
|
+
SELECTION_CODE_DEFAULT_VALUE,
|
|
4839
4849
|
itemCategorySchema,
|
|
4840
4850
|
itemCategoriesSearchSchema,
|
|
4841
4851
|
itemHierarchyResponseSchema,
|
|
@@ -13,13 +13,14 @@ import {
|
|
|
13
13
|
itemHierarchyResponseSchema,
|
|
14
14
|
itemSearchViewSchema,
|
|
15
15
|
itemStatusResponseSchema,
|
|
16
|
+
itemStatusV2ResponseSchema,
|
|
16
17
|
localeSchema,
|
|
17
18
|
spreadsheetTemplateSchema,
|
|
18
19
|
spsItemIdResponseSchema,
|
|
19
20
|
tradingPartnerAccessByCompanyIdSchema,
|
|
20
21
|
userAccountSchema,
|
|
21
22
|
vendorPartnerAttGroupsSchema
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LKUGPDIT.js";
|
|
23
24
|
|
|
24
25
|
// lib/imports/index.ts
|
|
25
26
|
var BASE_URL = "imports";
|
|
@@ -386,11 +387,23 @@ function createItemsApi(client) {
|
|
|
386
387
|
};
|
|
387
388
|
}
|
|
388
389
|
|
|
390
|
+
// lib/items/v2/index.ts
|
|
391
|
+
var BASE_URL13 = "v2/items";
|
|
392
|
+
function createItemsApiV2(client) {
|
|
393
|
+
async function getItemStatus(itemIds) {
|
|
394
|
+
const data = await client.post(`${BASE_URL13}/status`, { json: { itemIds } }).json();
|
|
395
|
+
return itemStatusV2ResponseSchema.parse(data);
|
|
396
|
+
}
|
|
397
|
+
return {
|
|
398
|
+
getItemStatus
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
|
|
389
402
|
// lib/errors/v1/index.ts
|
|
390
|
-
var
|
|
403
|
+
var BASE_URL14 = "errors";
|
|
391
404
|
function createErrorsApi(client) {
|
|
392
405
|
async function getInvalidItemErrorDetails(itemInfoId, signal) {
|
|
393
|
-
const data = await client.get(`${
|
|
406
|
+
const data = await client.get(`${BASE_URL14}/items/${itemInfoId}`, {
|
|
394
407
|
signal
|
|
395
408
|
}).json();
|
|
396
409
|
return itemErrorDetailsResultSchema.parse(data);
|
|
@@ -401,7 +414,7 @@ function createErrorsApi(client) {
|
|
|
401
414
|
}
|
|
402
415
|
|
|
403
416
|
// lib/errors/v2/index.ts
|
|
404
|
-
var
|
|
417
|
+
var BASE_URL15 = "errors/v2";
|
|
405
418
|
function createErrorsApiV2(client) {
|
|
406
419
|
async function getItemErrorSummary(params, signal) {
|
|
407
420
|
const searchParams = new URLSearchParams();
|
|
@@ -414,11 +427,11 @@ function createErrorsApiV2(client) {
|
|
|
414
427
|
if (params.limit) searchParams.append("limit", params.limit.toString());
|
|
415
428
|
if (params.docInEventId) searchParams.append("docInEventId", params.docInEventId);
|
|
416
429
|
if (params.importId) searchParams.append("importId", params.importId);
|
|
417
|
-
const data = await client.get(`${
|
|
430
|
+
const data = await client.get(`${BASE_URL15}/summary`, { signal, searchParams }).json();
|
|
418
431
|
return itemErrorSummaryResultV2Schema.parse(data);
|
|
419
432
|
}
|
|
420
433
|
async function getItemErrorDetails(itemInfoId, signal) {
|
|
421
|
-
const data = await client.get(`${
|
|
434
|
+
const data = await client.get(`${BASE_URL15}/items/${itemInfoId}`, { signal }).json();
|
|
422
435
|
return itemErrorDetailsResultV2Schema.parse(data);
|
|
423
436
|
}
|
|
424
437
|
return {
|
|
@@ -458,17 +471,17 @@ var FlattenedItemIdentifierKeysSchema = external_exports.enum(
|
|
|
458
471
|
);
|
|
459
472
|
|
|
460
473
|
// lib/uniqueCriteria/index.ts
|
|
461
|
-
var
|
|
474
|
+
var BASE_URL16 = "uniquecriteria";
|
|
462
475
|
function createUniqueCriteriaApi(client) {
|
|
463
476
|
async function getUniqueCriteriaByOrg(params, signal) {
|
|
464
|
-
const data = await client.get(`${
|
|
477
|
+
const data = await client.get(`${BASE_URL16}/org`, {
|
|
465
478
|
searchParams: params,
|
|
466
479
|
signal
|
|
467
480
|
}).json();
|
|
468
481
|
return external_exports.array(external_exports.string()).parse(data);
|
|
469
482
|
}
|
|
470
483
|
async function getProductUniqueCriteriaByOrg(params, signal) {
|
|
471
|
-
const data = await client.get(`${
|
|
484
|
+
const data = await client.get(`${BASE_URL16}/product/org`, {
|
|
472
485
|
searchParams: params,
|
|
473
486
|
signal
|
|
474
487
|
}).json();
|
|
@@ -478,10 +491,10 @@ function createUniqueCriteriaApi(client) {
|
|
|
478
491
|
}
|
|
479
492
|
|
|
480
493
|
// lib/companies/index.ts
|
|
481
|
-
var
|
|
494
|
+
var BASE_URL17 = "companys";
|
|
482
495
|
function createCompaniesApi(client) {
|
|
483
496
|
async function getCompanyBriefInfoByOrg(params, signal) {
|
|
484
|
-
const data = await client.get(`${
|
|
497
|
+
const data = await client.get(`${BASE_URL17}/brief`, {
|
|
485
498
|
searchParams: params,
|
|
486
499
|
signal
|
|
487
500
|
}).json();
|
|
@@ -518,12 +531,14 @@ export {
|
|
|
518
531
|
BASE_URL12,
|
|
519
532
|
createItemsApi,
|
|
520
533
|
BASE_URL13,
|
|
521
|
-
|
|
534
|
+
createItemsApiV2,
|
|
522
535
|
BASE_URL14,
|
|
536
|
+
createErrorsApi,
|
|
537
|
+
BASE_URL15,
|
|
523
538
|
createErrorsApiV2,
|
|
524
539
|
FlattenedItemIdentifierKeysSchema,
|
|
525
|
-
BASE_URL15,
|
|
526
|
-
createUniqueCriteriaApi,
|
|
527
540
|
BASE_URL16,
|
|
541
|
+
createUniqueCriteriaApi,
|
|
542
|
+
BASE_URL17,
|
|
528
543
|
createCompaniesApi
|
|
529
544
|
};
|
|
@@ -4034,14 +4034,14 @@ var ostring = () => stringType().optional();
|
|
|
4034
4034
|
var onumber = () => numberType().optional();
|
|
4035
4035
|
var oboolean = () => booleanType().optional();
|
|
4036
4036
|
var coerce = {
|
|
4037
|
-
string: (arg) => ZodString.create({ ...arg, coerce: true }),
|
|
4038
|
-
number: (arg) => ZodNumber.create({ ...arg, coerce: true }),
|
|
4039
|
-
boolean: (arg) => ZodBoolean.create({
|
|
4037
|
+
string: ((arg) => ZodString.create({ ...arg, coerce: true })),
|
|
4038
|
+
number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
|
|
4039
|
+
boolean: ((arg) => ZodBoolean.create({
|
|
4040
4040
|
...arg,
|
|
4041
4041
|
coerce: true
|
|
4042
|
-
}),
|
|
4043
|
-
bigint: (arg) => ZodBigInt.create({ ...arg, coerce: true }),
|
|
4044
|
-
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
4042
|
+
})),
|
|
4043
|
+
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
|
|
4044
|
+
date: ((arg) => ZodDate.create({ ...arg, coerce: true }))
|
|
4045
4045
|
};
|
|
4046
4046
|
var NEVER = INVALID;
|
|
4047
4047
|
|
|
@@ -4823,6 +4823,12 @@ var companyBriefByOrgSchema = external_exports.object({
|
|
|
4823
4823
|
dc4Id: external_exports.number()
|
|
4824
4824
|
});
|
|
4825
4825
|
|
|
4826
|
+
// lib/companies/models/CompanyType.ts
|
|
4827
|
+
var companyTypeEnumSchema = external_exports.enum([
|
|
4828
|
+
"RETAILER",
|
|
4829
|
+
"SUPPLIER"
|
|
4830
|
+
]);
|
|
4831
|
+
|
|
4826
4832
|
export {
|
|
4827
4833
|
external_exports,
|
|
4828
4834
|
importDetailSchema,
|
|
@@ -4888,5 +4894,6 @@ export {
|
|
|
4888
4894
|
itemErrorSummaryResultV2Schema,
|
|
4889
4895
|
itemErrorDetailsV2Schema,
|
|
4890
4896
|
itemErrorDetailsResultV2Schema,
|
|
4891
|
-
companyBriefByOrgSchema
|
|
4897
|
+
companyBriefByOrgSchema,
|
|
4898
|
+
companyTypeEnumSchema
|
|
4892
4899
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -4231,13 +4231,17 @@ 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
|
|
|
4243
4247
|
// lib/imports/index.ts
|
|
@@ -4383,7 +4387,7 @@ var companyRelationshipUpsertBodySchema = external_exports.object({
|
|
|
4383
4387
|
retailerId: external_exports.number(),
|
|
4384
4388
|
catalogId: external_exports.number(),
|
|
4385
4389
|
active: external_exports.boolean(),
|
|
4386
|
-
applicationType: external_exports.array(
|
|
4390
|
+
applicationType: external_exports.array(applicationTypeSchema).default([])
|
|
4387
4391
|
});
|
|
4388
4392
|
|
|
4389
4393
|
// lib/tradingPartners/models/ItemPartner.ts
|
|
@@ -4395,7 +4399,7 @@ var itemPartnerSchema = external_exports.object({
|
|
|
4395
4399
|
isActive: external_exports.number(),
|
|
4396
4400
|
createdDate: external_exports.string(),
|
|
4397
4401
|
modifiedDate: external_exports.string(),
|
|
4398
|
-
applications: external_exports.array(
|
|
4402
|
+
applications: external_exports.array(applicationTypeSchema)
|
|
4399
4403
|
});
|
|
4400
4404
|
|
|
4401
4405
|
// lib/tradingPartners/models/TradingPartnerAccessByCompanyId.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { A as AsstClient, S as SpsItemIdResponse } from './
|
|
2
|
-
export { a as AsstClientOptions, b as AsstUrl, B as BASE_URLS,
|
|
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,
|
|
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-
|
|
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-C41Rts8D.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-C41Rts8D.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { c as createCompaniesApi } from './index-9KKchLwe.cjs';
|
|
7
6
|
import 'ky';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -138,7 +137,8 @@ declare function createWhoAmIApi(client: AsstClient): {
|
|
|
138
137
|
whoAmI: (signal?: AbortSignal) => Promise<UserAccount>;
|
|
139
138
|
};
|
|
140
139
|
|
|
141
|
-
|
|
140
|
+
declare const applicationTypeSchema: z.ZodEnum<["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]>;
|
|
141
|
+
type ApplicationType = z.infer<typeof applicationTypeSchema>;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Initialize Company Features Api functions
|
|
@@ -716,4 +716,15 @@ declare function createUniqueCriteriaApi(client: AsstClient): {
|
|
|
716
716
|
}, signal?: AbortSignal) => Promise<FlattenedItemIdentifiers[]>;
|
|
717
717
|
};
|
|
718
718
|
|
|
719
|
-
|
|
719
|
+
/**
|
|
720
|
+
* Initialize Companies Api functions
|
|
721
|
+
* @param client Assortment Client instance
|
|
722
|
+
* @returns A CompanyBriefByOrg object containing Companies API functions
|
|
723
|
+
*/
|
|
724
|
+
declare function createCompaniesApi(client: AsstClient): {
|
|
725
|
+
getCompanyBriefInfoByOrg: (params?: {
|
|
726
|
+
orgId?: string;
|
|
727
|
+
}, signal?: AbortSignal) => Promise<CompanyBriefByOrg>;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
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, UserAccount, VendorPartnerAttGroups, createCategoriesApi, createCompaniesApi, createCompanyFeaturesApi, createErrorsApi, createErrorsApiV2, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { A as AsstClient, S as SpsItemIdResponse } from './
|
|
2
|
-
export { a as AsstClientOptions, b as AsstUrl, B as BASE_URLS,
|
|
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,
|
|
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-
|
|
1
|
+
import { A as AsstClient, I as ItemHierarchyResponse, S as SpsItemIdResponse } from './SpsItemIdResponse-s0vCXepG.js';
|
|
2
|
+
export { a as AsstClientOptions, b as AsstUrl, B as BASE_URLS, E as Env, e as envSchema } from './SpsItemIdResponse-s0vCXepG.js';
|
|
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-COyz02Lh.js';
|
|
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-COyz02Lh.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { c as createCompaniesApi } from './index-DeivEdv0.js';
|
|
7
6
|
import 'ky';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -138,7 +137,8 @@ declare function createWhoAmIApi(client: AsstClient): {
|
|
|
138
137
|
whoAmI: (signal?: AbortSignal) => Promise<UserAccount>;
|
|
139
138
|
};
|
|
140
139
|
|
|
141
|
-
|
|
140
|
+
declare const applicationTypeSchema: z.ZodEnum<["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]>;
|
|
141
|
+
type ApplicationType = z.infer<typeof applicationTypeSchema>;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Initialize Company Features Api functions
|
|
@@ -716,4 +716,15 @@ declare function createUniqueCriteriaApi(client: AsstClient): {
|
|
|
716
716
|
}, signal?: AbortSignal) => Promise<FlattenedItemIdentifiers[]>;
|
|
717
717
|
};
|
|
718
718
|
|
|
719
|
-
|
|
719
|
+
/**
|
|
720
|
+
* Initialize Companies Api functions
|
|
721
|
+
* @param client Assortment Client instance
|
|
722
|
+
* @returns A CompanyBriefByOrg object containing Companies API functions
|
|
723
|
+
*/
|
|
724
|
+
declare function createCompaniesApi(client: AsstClient): {
|
|
725
|
+
getCompanyBriefInfoByOrg: (params?: {
|
|
726
|
+
orgId?: string;
|
|
727
|
+
}, signal?: AbortSignal) => Promise<CompanyBriefByOrg>;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
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, UserAccount, VendorPartnerAttGroups, createCategoriesApi, createCompaniesApi, createCompanyFeaturesApi, createErrorsApi, createErrorsApiV2, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
createFeatureFlagsApi,
|
|
9
9
|
createImportsApi,
|
|
10
10
|
createItemsApi,
|
|
11
|
+
createItemsApiV2,
|
|
11
12
|
createLocaleApi,
|
|
12
13
|
createProductTypesApi,
|
|
13
14
|
createSpreadsheetTemplateApi,
|
|
@@ -15,29 +16,16 @@ import {
|
|
|
15
16
|
createTradingPartnerSettingsApi,
|
|
16
17
|
createUniqueCriteriaApi,
|
|
17
18
|
createWhoAmIApi
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NFZI7D22.js";
|
|
19
20
|
import {
|
|
20
21
|
AsstClient,
|
|
21
22
|
BASE_URLS,
|
|
22
23
|
envSchema
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-55ECRTUX.js";
|
|
24
25
|
import {
|
|
25
26
|
PRODUCT_CODE_DEFAULT_VALUE,
|
|
26
|
-
SELECTION_CODE_DEFAULT_VALUE
|
|
27
|
-
|
|
28
|
-
} from "./chunk-L4AWOEED.js";
|
|
29
|
-
|
|
30
|
-
// lib/items/v2/index.ts
|
|
31
|
-
var BASE_URL = "v2/items";
|
|
32
|
-
function createItemsApiV2(client) {
|
|
33
|
-
async function getItemStatus(itemIds) {
|
|
34
|
-
const data = await client.post(`${BASE_URL}/status`, { json: { itemIds } }).json();
|
|
35
|
-
return itemStatusV2ResponseSchema.parse(data);
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
getItemStatus
|
|
39
|
-
};
|
|
40
|
-
}
|
|
27
|
+
SELECTION_CODE_DEFAULT_VALUE
|
|
28
|
+
} from "./chunk-LKUGPDIT.js";
|
|
41
29
|
export {
|
|
42
30
|
AsstClient,
|
|
43
31
|
BASE_URLS,
|
package/dist/msw.cjs
CHANGED
|
@@ -21,7 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var msw_exports = {};
|
|
22
22
|
__export(msw_exports, {
|
|
23
23
|
createCategoriesApiHandlers: () => createCategoriesApiHandlers,
|
|
24
|
-
|
|
24
|
+
createCompaniesApiHandlers: () => createCompaniesApiHandlers,
|
|
25
25
|
createCompanyFeaturesApiHandlers: () => createCompanyFeaturesApiHandlers,
|
|
26
26
|
createErrorsApiHandlers: () => createErrorsApiHandlers,
|
|
27
27
|
createErrorsApiV2Handlers: () => createErrorsApiV2Handlers,
|
|
@@ -29,6 +29,7 @@ __export(msw_exports, {
|
|
|
29
29
|
createFeatureFlagsApiHandlers: () => createFeatureFlagsApiHandlers,
|
|
30
30
|
createImportsApiHandlers: () => createImportsApiHandlers,
|
|
31
31
|
createItemsApiHandlers: () => createItemsApiHandlers,
|
|
32
|
+
createItemsApiV2Handlers: () => createItemsApiV2Handlers,
|
|
32
33
|
createLocaleApiHandlers: () => createLocaleApiHandlers,
|
|
33
34
|
createProductTypesApiHandlers: () => createProductTypesApiHandlers,
|
|
34
35
|
createSpreadsheetTemplateApiHandlers: () => createSpreadsheetTemplateApiHandlers,
|
|
@@ -4147,13 +4148,17 @@ var vendorPartnerAttGroupsSchema = external_exports.object({
|
|
|
4147
4148
|
partnerAttributeGroups: external_exports.array(external_exports.number())
|
|
4148
4149
|
});
|
|
4149
4150
|
|
|
4151
|
+
// lib/_common/ApplicationType.ts
|
|
4152
|
+
var applicationTypeSchema = external_exports.enum(["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]);
|
|
4153
|
+
|
|
4150
4154
|
// lib/imports/models/GenerateImportTemplateParams.ts
|
|
4151
4155
|
var generateImportTemplateParamsSchema = external_exports.object({
|
|
4152
4156
|
"multi-sheet": external_exports.boolean(),
|
|
4157
|
+
callingApplicationType: applicationTypeSchema.optional(),
|
|
4153
4158
|
gids: external_exports.string().optional(),
|
|
4154
|
-
productTypeIds: external_exports.string().optional(),
|
|
4155
4159
|
groupTypeId: external_exports.number().optional(),
|
|
4156
|
-
includeGuides: external_exports.boolean().optional()
|
|
4160
|
+
includeGuides: external_exports.boolean().optional(),
|
|
4161
|
+
productTypeIds: external_exports.string().optional()
|
|
4157
4162
|
});
|
|
4158
4163
|
|
|
4159
4164
|
// lib/imports/index.ts
|
|
@@ -4299,8 +4304,19 @@ function createCategoriesApiHandlers(client) {
|
|
|
4299
4304
|
);
|
|
4300
4305
|
}
|
|
4301
4306
|
getCategory.generateData = () => (0, import_zod_mock2.generateMock)(itemCategoriesSearchSchema);
|
|
4307
|
+
function getItemHierarchy(resolver = (_info) => {
|
|
4308
|
+
const data = (0, import_zod_mock2.generateMock)(itemHierarchyResponseSchema);
|
|
4309
|
+
return import_msw2.HttpResponse.json(data);
|
|
4310
|
+
}) {
|
|
4311
|
+
return import_msw2.http.post(
|
|
4312
|
+
`${client.getBaseUrl()}${BASE_URL2}/item-hierarchy`,
|
|
4313
|
+
resolver
|
|
4314
|
+
);
|
|
4315
|
+
}
|
|
4316
|
+
getItemHierarchy.generateData = () => (0, import_zod_mock2.generateMock)(itemHierarchyResponseSchema);
|
|
4302
4317
|
return {
|
|
4303
|
-
getCategory
|
|
4318
|
+
getCategory,
|
|
4319
|
+
getItemHierarchy
|
|
4304
4320
|
};
|
|
4305
4321
|
}
|
|
4306
4322
|
|
|
@@ -4394,7 +4410,7 @@ var companyRelationshipUpsertBodySchema = external_exports.object({
|
|
|
4394
4410
|
retailerId: external_exports.number(),
|
|
4395
4411
|
catalogId: external_exports.number(),
|
|
4396
4412
|
active: external_exports.boolean(),
|
|
4397
|
-
applicationType: external_exports.array(
|
|
4413
|
+
applicationType: external_exports.array(applicationTypeSchema).default([])
|
|
4398
4414
|
});
|
|
4399
4415
|
|
|
4400
4416
|
// lib/tradingPartners/models/ItemPartner.ts
|
|
@@ -4406,7 +4422,7 @@ var itemPartnerSchema = external_exports.object({
|
|
|
4406
4422
|
isActive: external_exports.number(),
|
|
4407
4423
|
createdDate: external_exports.string(),
|
|
4408
4424
|
modifiedDate: external_exports.string(),
|
|
4409
|
-
applications: external_exports.array(
|
|
4425
|
+
applications: external_exports.array(applicationTypeSchema)
|
|
4410
4426
|
});
|
|
4411
4427
|
|
|
4412
4428
|
// lib/tradingPartners/models/TradingPartnerAccessByCompanyId.ts
|
|
@@ -5328,10 +5344,10 @@ function createFeatureFlagsApiHandlers(client) {
|
|
|
5328
5344
|
const data = (0, import_zod_mock13.generateMock)(external_exports.boolean());
|
|
5329
5345
|
return import_msw14.HttpResponse.json(data);
|
|
5330
5346
|
}) {
|
|
5331
|
-
const baseUrl = `${client.getBaseUrl()}${BASE_URL14}/enable-items-api-uom-conversion-rules
|
|
5347
|
+
const baseUrl = `${client.getBaseUrl()}${BASE_URL14}/enable-items-api-uom-conversion-rules`;
|
|
5332
5348
|
return [
|
|
5333
|
-
import_msw14.http.get(`${baseUrl}
|
|
5334
|
-
import_msw14.http.get(`${baseUrl}/:companyId
|
|
5349
|
+
import_msw14.http.get(`${baseUrl}/`, resolver),
|
|
5350
|
+
import_msw14.http.get(`${baseUrl}/:companyId/`, resolver)
|
|
5335
5351
|
// Handles requests with companyId
|
|
5336
5352
|
];
|
|
5337
5353
|
}
|
|
@@ -5401,6 +5417,10 @@ function createUniqueCriteriaApiHandlers(client) {
|
|
|
5401
5417
|
};
|
|
5402
5418
|
}
|
|
5403
5419
|
|
|
5420
|
+
// lib/companies/mockHandlers.ts
|
|
5421
|
+
var import_zod_mock15 = require("@anatine/zod-mock");
|
|
5422
|
+
var import_msw16 = require("msw");
|
|
5423
|
+
|
|
5404
5424
|
// lib/companies/models/CompanyBriefByOrg.ts
|
|
5405
5425
|
var companyBriefByOrgSchema = external_exports.object({
|
|
5406
5426
|
companyId: external_exports.number(),
|
|
@@ -5415,20 +5435,45 @@ var companyBriefByOrgSchema = external_exports.object({
|
|
|
5415
5435
|
|
|
5416
5436
|
// lib/companies/index.ts
|
|
5417
5437
|
var BASE_URL16 = "companys";
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5438
|
+
|
|
5439
|
+
// lib/companies/mockHandlers.ts
|
|
5440
|
+
function createCompaniesApiHandlers(client) {
|
|
5441
|
+
function getCompanyBriefInfoByOrg(resolver = (_info) => {
|
|
5442
|
+
const data = (0, import_zod_mock15.generateMock)(companyBriefByOrgSchema);
|
|
5443
|
+
return import_msw16.HttpResponse.json(data);
|
|
5444
|
+
}) {
|
|
5445
|
+
return import_msw16.http.get(`${client.getBaseUrl()}${BASE_URL16}/brief`, resolver);
|
|
5446
|
+
}
|
|
5447
|
+
getCompanyBriefInfoByOrg.generateData = () => (0, import_zod_mock15.generateMock)(companyBriefByOrgSchema);
|
|
5448
|
+
return {
|
|
5449
|
+
getCompanyBriefInfoByOrg
|
|
5450
|
+
};
|
|
5451
|
+
}
|
|
5452
|
+
|
|
5453
|
+
// lib/items/v2/mockHandlers.ts
|
|
5454
|
+
var import_zod_mock16 = require("@anatine/zod-mock");
|
|
5455
|
+
var import_msw17 = require("msw");
|
|
5456
|
+
|
|
5457
|
+
// lib/items/v2/index.ts
|
|
5458
|
+
var BASE_URL17 = "v2/items";
|
|
5459
|
+
|
|
5460
|
+
// lib/items/v2/mockHandlers.ts
|
|
5461
|
+
function createItemsApiV2Handlers(client) {
|
|
5462
|
+
function getItemStatus(resolver = (_info) => {
|
|
5463
|
+
const data = (0, import_zod_mock16.generateMock)(itemStatusV2ResponseSchema);
|
|
5464
|
+
return import_msw17.HttpResponse.json(data);
|
|
5465
|
+
}) {
|
|
5466
|
+
return import_msw17.http.post(`${client.getBaseUrl()}${BASE_URL17}/status`, resolver);
|
|
5467
|
+
}
|
|
5468
|
+
getItemStatus.generateData = () => (0, import_zod_mock16.generateMock)(itemStatusV2ResponseSchema);
|
|
5469
|
+
return {
|
|
5470
|
+
getItemStatus
|
|
5471
|
+
};
|
|
5427
5472
|
}
|
|
5428
5473
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5429
5474
|
0 && (module.exports = {
|
|
5430
5475
|
createCategoriesApiHandlers,
|
|
5431
|
-
|
|
5476
|
+
createCompaniesApiHandlers,
|
|
5432
5477
|
createCompanyFeaturesApiHandlers,
|
|
5433
5478
|
createErrorsApiHandlers,
|
|
5434
5479
|
createErrorsApiV2Handlers,
|
|
@@ -5436,6 +5481,7 @@ function createCompaniesApi(client) {
|
|
|
5436
5481
|
createFeatureFlagsApiHandlers,
|
|
5437
5482
|
createImportsApiHandlers,
|
|
5438
5483
|
createItemsApiHandlers,
|
|
5484
|
+
createItemsApiV2Handlers,
|
|
5439
5485
|
createLocaleApiHandlers,
|
|
5440
5486
|
createProductTypesApiHandlers,
|
|
5441
5487
|
createSpreadsheetTemplateApiHandlers,
|