@spscommerce/asst-api 4.1.0 → 4.1.1
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/CompanyBriefByOrg-57oGCtjK.d.ts +3427 -0
- package/dist/CompanyBriefByOrg-Dy2omcT0.d.cts +95 -0
- package/dist/CompanyBriefByOrg-Dy2omcT0.d.ts +95 -0
- package/dist/CompanyBriefByOrg-LTdsUKm4.d.ts +3427 -0
- package/dist/chunk-27XV7TS2.js +522 -0
- package/dist/chunk-2ETQHIXC.js +528 -0
- package/dist/chunk-2VJS5KPH.js +5182 -0
- package/dist/chunk-2W3LZ4AO.js +513 -0
- package/dist/chunk-3XNXQYIB.js +521 -0
- package/dist/chunk-4C475UZX.js +5164 -0
- package/dist/chunk-5AROSGQB.js +5034 -0
- package/dist/chunk-7F5CQRS2.js +567 -0
- package/dist/chunk-7OEXJIWW.js +565 -0
- package/dist/chunk-A22SEYVL.js +530 -0
- package/dist/chunk-AH5MG2WF.js +5040 -0
- package/dist/chunk-BDSSH6MN.js +574 -0
- package/dist/chunk-BFIQVABZ.js +528 -0
- package/dist/chunk-BJTO4CRW.js +558 -0
- package/dist/chunk-BTNVA4NZ.js +568 -0
- package/dist/chunk-CNQTNX3M.js +567 -0
- package/dist/chunk-CUVSWUIQ.js +5040 -0
- package/dist/chunk-DP2ZMQG5.js +4881 -0
- package/dist/chunk-EMBJNPTB.js +5040 -0
- package/dist/chunk-EO2UMCWY.js +574 -0
- package/dist/chunk-FTB465WY.js +575 -0
- package/dist/chunk-G6A4EVAL.js +528 -0
- package/dist/chunk-GDARBI5R.js +5185 -0
- package/dist/chunk-HHJDDPFR.js +4886 -0
- package/dist/chunk-HY2SRD5L.js +5003 -0
- package/dist/chunk-ISQ3LQRI.js +565 -0
- package/dist/chunk-KKX3CXHP.js +558 -0
- package/dist/chunk-LCK4AEWB.js +79 -0
- package/dist/chunk-LJVJ4SYE.js +568 -0
- package/dist/chunk-LYMA4XGG.js +5181 -0
- package/dist/chunk-MLAU3LFL.js +527 -0
- package/dist/chunk-MQREZR54.js +5164 -0
- package/dist/chunk-N4A4BVKV.js +5163 -0
- package/dist/chunk-QVEV57JA.js +5185 -0
- package/dist/chunk-SK6U2JDX.js +566 -0
- package/dist/chunk-SQBB5K5J.js +574 -0
- package/dist/chunk-TQ2IQDSM.js +568 -0
- package/dist/chunk-TTT6PM27.js +558 -0
- package/dist/chunk-VFMKDLXO.js +570 -0
- package/dist/chunk-VKPQOGVS.js +565 -0
- package/dist/chunk-VLLI4AYA.js +520 -0
- package/dist/chunk-VNFLJ5FV.js +530 -0
- package/dist/chunk-WNCDQJEM.js +5034 -0
- package/dist/chunk-XYZVRJF3.js +5162 -0
- package/dist/chunk-YJCJB4OT.js +79 -0
- package/dist/chunk-YJMQ4PGM.js +559 -0
- package/dist/chunk-Z6PXGHNC.js +570 -0
- package/dist/chunk-ZQ32XEVW.js +79 -0
- package/dist/chunk-ZXXDLGW7.js +513 -0
- package/dist/index-9KKchLwe.d.cts +14 -0
- package/dist/index-DeivEdv0.d.ts +14 -0
- package/dist/index-Zz-6wNSh.d.ts +106 -0
- package/dist/index-fgr_c5Wj.d.ts +106 -0
- package/dist/index.cjs +225 -458
- package/dist/index.d.cts +6 -24
- package/dist/index.d.ts +6 -24
- package/dist/index.js +5 -5
- package/dist/msw.cjs +225 -510
- package/dist/msw.d.cts +10 -197
- package/dist/msw.d.ts +10 -197
- package/dist/msw.js +51 -117
- package/dist/zod-6gU8y6oS.d.cts +6712 -0
- package/dist/zod-B4sIVoVX.d.ts +6712 -0
- package/dist/zod-BI81QHVK.d.ts +6715 -0
- package/dist/zod-BUCQsGOm.d.ts +6712 -0
- package/dist/zod-Bl_5j5Nx.d.ts +6712 -0
- package/dist/zod-Bxu34bbp.d.ts +6718 -0
- package/dist/zod-C4kEHhO8.d.cts +6718 -0
- package/dist/zod-C5pRCHei.d.ts +6712 -0
- package/dist/zod-CIacR1Kf.d.cts +6712 -0
- package/dist/zod-DyBGOUbG.d.ts +5876 -0
- package/dist/zod-DzhoVlw_.d.cts +6712 -0
- package/dist/zod-FdtLO2-F.d.cts +6715 -0
- package/dist/zod-NE2xXWlK.d.ts +3416 -0
- package/dist/zod-lSiFMzqK.d.cts +6712 -0
- package/dist/zod-rs54beS2.d.cts +5876 -0
- package/dist/zod-zxqlYYMG.d.ts +3416 -0
- package/dist/zod.cjs +30 -178
- package/dist/zod.d.cts +2 -2
- package/dist/zod.d.ts +2 -2
- package/dist/zod.js +62 -21
- package/package.json +4 -4
package/dist/zod.cjs
CHANGED
|
@@ -30,15 +30,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// lib/zod.ts
|
|
31
31
|
var zod_exports = {};
|
|
32
32
|
__export(zod_exports, {
|
|
33
|
-
attrDatatypeNameEnumSchema: () => attrDatatypeNameEnumSchema,
|
|
34
33
|
attrProdTypeSchema: () => attrProdTypeSchema,
|
|
35
|
-
attributeDefinitionSchema: () => attributeDefinitionSchema,
|
|
36
34
|
attributeDetailSchema: () => attributeDetailSchema,
|
|
37
|
-
attributeGroupSchema: () => attributeGroupSchema,
|
|
38
|
-
attributeMetaDataSchema: () => attributeMetaDataSchema,
|
|
39
|
-
attributeSummarySchema: () => attributeSummarySchema,
|
|
40
|
-
attributeValidValuesSchema: () => attributeValidValuesSchema,
|
|
41
|
-
attributesByCompanySchema: () => attributesByCompanySchema,
|
|
42
35
|
bulbSchema: () => bulbSchema,
|
|
43
36
|
categoryEnumSchema: () => categoryEnumSchema,
|
|
44
37
|
companyBriefByOrgSchema: () => companyBriefByOrgSchema,
|
|
@@ -107,7 +100,7 @@ module.exports = __toCommonJS(zod_exports);
|
|
|
107
100
|
// lib/asstClient.ts
|
|
108
101
|
var import_ky = __toESM(require("ky"), 1);
|
|
109
102
|
|
|
110
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
103
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
|
|
111
104
|
var external_exports = {};
|
|
112
105
|
__export(external_exports, {
|
|
113
106
|
BRAND: () => BRAND,
|
|
@@ -219,7 +212,7 @@ __export(external_exports, {
|
|
|
219
212
|
void: () => voidType
|
|
220
213
|
});
|
|
221
214
|
|
|
222
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
215
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js
|
|
223
216
|
var util;
|
|
224
217
|
(function(util2) {
|
|
225
218
|
util2.assertEqual = (_) => {
|
|
@@ -353,7 +346,7 @@ var getParsedType = (data) => {
|
|
|
353
346
|
}
|
|
354
347
|
};
|
|
355
348
|
|
|
356
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
349
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js
|
|
357
350
|
var ZodIssueCode = util.arrayToEnum([
|
|
358
351
|
"invalid_type",
|
|
359
352
|
"invalid_literal",
|
|
@@ -453,8 +446,9 @@ var ZodError = class _ZodError extends Error {
|
|
|
453
446
|
const formErrors = [];
|
|
454
447
|
for (const sub of this.issues) {
|
|
455
448
|
if (sub.path.length > 0) {
|
|
456
|
-
|
|
457
|
-
fieldErrors[
|
|
449
|
+
const firstEl = sub.path[0];
|
|
450
|
+
fieldErrors[firstEl] = fieldErrors[firstEl] || [];
|
|
451
|
+
fieldErrors[firstEl].push(mapper(sub));
|
|
458
452
|
} else {
|
|
459
453
|
formErrors.push(mapper(sub));
|
|
460
454
|
}
|
|
@@ -470,7 +464,7 @@ ZodError.create = (issues) => {
|
|
|
470
464
|
return error;
|
|
471
465
|
};
|
|
472
466
|
|
|
473
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
467
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
474
468
|
var errorMap = (issue, _ctx) => {
|
|
475
469
|
let message;
|
|
476
470
|
switch (issue.code) {
|
|
@@ -532,6 +526,8 @@ var errorMap = (issue, _ctx) => {
|
|
|
532
526
|
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
533
527
|
else if (issue.type === "number")
|
|
534
528
|
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
529
|
+
else if (issue.type === "bigint")
|
|
530
|
+
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
535
531
|
else if (issue.type === "date")
|
|
536
532
|
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
537
533
|
else
|
|
@@ -571,7 +567,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
571
567
|
};
|
|
572
568
|
var en_default = errorMap;
|
|
573
569
|
|
|
574
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
570
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.js
|
|
575
571
|
var overrideErrorMap = en_default;
|
|
576
572
|
function setErrorMap(map) {
|
|
577
573
|
overrideErrorMap = map;
|
|
@@ -580,7 +576,7 @@ function getErrorMap() {
|
|
|
580
576
|
return overrideErrorMap;
|
|
581
577
|
}
|
|
582
578
|
|
|
583
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
579
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
584
580
|
var makeIssue = (params) => {
|
|
585
581
|
const { data, path, errorMaps, issueData } = params;
|
|
586
582
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -690,14 +686,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
690
686
|
var isValid = (x) => x.status === "valid";
|
|
691
687
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
692
688
|
|
|
693
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
689
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
|
|
694
690
|
var errorUtil;
|
|
695
691
|
(function(errorUtil2) {
|
|
696
692
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
697
693
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
698
694
|
})(errorUtil || (errorUtil = {}));
|
|
699
695
|
|
|
700
|
-
// ../../node_modules/.pnpm/zod@3.25.
|
|
696
|
+
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
|
|
701
697
|
var ParseInputLazyPath = class {
|
|
702
698
|
constructor(parent, value, path, key) {
|
|
703
699
|
this._cachedPath = [];
|
|
@@ -1096,6 +1092,8 @@ function isValidJWT(jwt, alg) {
|
|
|
1096
1092
|
return false;
|
|
1097
1093
|
try {
|
|
1098
1094
|
const [header] = jwt.split(".");
|
|
1095
|
+
if (!header)
|
|
1096
|
+
return false;
|
|
1099
1097
|
const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
|
|
1100
1098
|
const decoded = JSON.parse(atob(base64));
|
|
1101
1099
|
if (typeof decoded !== "object" || decoded === null)
|
|
@@ -4332,160 +4330,6 @@ var itemHierarchyResponseSchema = external_exports.object({
|
|
|
4332
4330
|
)
|
|
4333
4331
|
});
|
|
4334
4332
|
|
|
4335
|
-
// lib/attributes/models/AttributeMetaData.ts
|
|
4336
|
-
var attributeMetaDataSchema = external_exports.object({
|
|
4337
|
-
dbName: external_exports.string(),
|
|
4338
|
-
label: external_exports.string(),
|
|
4339
|
-
group: external_exports.string(),
|
|
4340
|
-
aliases: external_exports.array(external_exports.string()),
|
|
4341
|
-
orderBy: external_exports.string().or(external_exports.number()),
|
|
4342
|
-
type: external_exports.string(),
|
|
4343
|
-
storageType: external_exports.string(),
|
|
4344
|
-
rsxPath: external_exports.string(),
|
|
4345
|
-
indexed: external_exports.boolean(),
|
|
4346
|
-
repeatable: external_exports.boolean(),
|
|
4347
|
-
extended: external_exports.boolean(),
|
|
4348
|
-
hybrid: external_exports.boolean(),
|
|
4349
|
-
userVisible: external_exports.boolean(),
|
|
4350
|
-
retailerOwnedId: external_exports.number().nullish()
|
|
4351
|
-
});
|
|
4352
|
-
|
|
4353
|
-
// lib/attributes/models/AttributeSummary.ts
|
|
4354
|
-
var attributeSummarySchema = external_exports.object({
|
|
4355
|
-
attributeId: external_exports.number(),
|
|
4356
|
-
attributeName: external_exports.string(),
|
|
4357
|
-
displayName: external_exports.string(),
|
|
4358
|
-
modifiedBy: external_exports.string(),
|
|
4359
|
-
modifiedDate: external_exports.number(),
|
|
4360
|
-
retailerOwnedId: external_exports.number().nullish(),
|
|
4361
|
-
clusterAttrGroupId: external_exports.number().nullish(),
|
|
4362
|
-
attributeType: external_exports.string()
|
|
4363
|
-
});
|
|
4364
|
-
|
|
4365
|
-
// lib/attributes/models/AttributesByCompany.ts
|
|
4366
|
-
var attributesByCompanySchema = external_exports.object({
|
|
4367
|
-
next: external_exports.string().nullish(),
|
|
4368
|
-
previous: external_exports.string().nullish(),
|
|
4369
|
-
count: external_exports.number(),
|
|
4370
|
-
results: external_exports.array(attributeSummarySchema)
|
|
4371
|
-
});
|
|
4372
|
-
|
|
4373
|
-
// lib/attributes/models/AttrDatatypeNameEnum.ts
|
|
4374
|
-
var attrDatatypeNameEnumSchema = external_exports.enum([
|
|
4375
|
-
"TEXT",
|
|
4376
|
-
"SET",
|
|
4377
|
-
"INTEGER",
|
|
4378
|
-
"FLOAT",
|
|
4379
|
-
"BOOLEAN",
|
|
4380
|
-
"DATE",
|
|
4381
|
-
"KEYVALUE",
|
|
4382
|
-
"STRING",
|
|
4383
|
-
"REAL"
|
|
4384
|
-
]);
|
|
4385
|
-
|
|
4386
|
-
// lib/attributes/models/AttributeGroup.ts
|
|
4387
|
-
var attributeGroupSchema = external_exports.object({
|
|
4388
|
-
attrGroupId: external_exports.number(),
|
|
4389
|
-
attrGroupType: external_exports.object({
|
|
4390
|
-
attrGroupTypeId: external_exports.number(),
|
|
4391
|
-
groupTypeName: external_exports.string(),
|
|
4392
|
-
primary: external_exports.boolean(),
|
|
4393
|
-
restricted: external_exports.boolean()
|
|
4394
|
-
}),
|
|
4395
|
-
attrGroupTypeId: external_exports.number(),
|
|
4396
|
-
groupName: external_exports.string(),
|
|
4397
|
-
isDefault: external_exports.boolean(),
|
|
4398
|
-
orderWeight: external_exports.number(),
|
|
4399
|
-
primary: external_exports.boolean()
|
|
4400
|
-
});
|
|
4401
|
-
|
|
4402
|
-
// lib/attributes/models/AttributeDefinition.ts
|
|
4403
|
-
var parentAttributeSchema = external_exports.object({
|
|
4404
|
-
attrDataTypeId: external_exports.number(),
|
|
4405
|
-
attrDatatype: external_exports.object({
|
|
4406
|
-
attrDatatypeId: external_exports.number(),
|
|
4407
|
-
datatypeName: attrDatatypeNameEnumSchema,
|
|
4408
|
-
displayOnly: external_exports.boolean()
|
|
4409
|
-
}),
|
|
4410
|
-
attrGroupId: external_exports.number(),
|
|
4411
|
-
attrGroups: external_exports.array(attributeGroupSchema),
|
|
4412
|
-
attrRoundId: external_exports.number(),
|
|
4413
|
-
attrStorageId: external_exports.number(),
|
|
4414
|
-
attributeId: external_exports.number(),
|
|
4415
|
-
attributeName: external_exports.string(),
|
|
4416
|
-
createdBy: external_exports.string(),
|
|
4417
|
-
createdDate: external_exports.number(),
|
|
4418
|
-
description: external_exports.string().optional(),
|
|
4419
|
-
displayName: external_exports.string(),
|
|
4420
|
-
modifiedDate: external_exports.number(),
|
|
4421
|
-
orderWeight: external_exports.number(),
|
|
4422
|
-
parentAttributeId: external_exports.number().optional(),
|
|
4423
|
-
primaryAttrGroup: attributeGroupSchema
|
|
4424
|
-
});
|
|
4425
|
-
var attributeDefinitionSchema = external_exports.object({
|
|
4426
|
-
attrDataTypeId: external_exports.number(),
|
|
4427
|
-
attrDatatype: external_exports.object({
|
|
4428
|
-
attrDatatypeId: external_exports.number(),
|
|
4429
|
-
datatypeName: attrDatatypeNameEnumSchema,
|
|
4430
|
-
displayOnly: external_exports.boolean()
|
|
4431
|
-
}),
|
|
4432
|
-
attrGroupId: external_exports.number(),
|
|
4433
|
-
attrGroups: external_exports.array(attributeGroupSchema),
|
|
4434
|
-
attrRestrictions: external_exports.array(
|
|
4435
|
-
external_exports.object({
|
|
4436
|
-
attrRestrictId: external_exports.number(),
|
|
4437
|
-
ignoreGlobal: external_exports.boolean().optional(),
|
|
4438
|
-
isDefault: external_exports.boolean(),
|
|
4439
|
-
isEssential: external_exports.boolean(),
|
|
4440
|
-
locale: external_exports.string(),
|
|
4441
|
-
mandatory: external_exports.boolean(),
|
|
4442
|
-
repeatable: external_exports.boolean(),
|
|
4443
|
-
minLength: external_exports.number().optional(),
|
|
4444
|
-
maxLength: external_exports.number().optional()
|
|
4445
|
-
})
|
|
4446
|
-
).optional(),
|
|
4447
|
-
attrRoundId: external_exports.number(),
|
|
4448
|
-
attrStorage: external_exports.object({
|
|
4449
|
-
attrStorageId: external_exports.number(),
|
|
4450
|
-
storageName: external_exports.string()
|
|
4451
|
-
}),
|
|
4452
|
-
attrStorageId: external_exports.number(),
|
|
4453
|
-
attrValues: external_exports.array(
|
|
4454
|
-
external_exports.object({
|
|
4455
|
-
attrKeyPair: external_exports.string(),
|
|
4456
|
-
attrValueId: external_exports.number().optional(),
|
|
4457
|
-
isDefault: external_exports.boolean(),
|
|
4458
|
-
locale: external_exports.string(),
|
|
4459
|
-
value: external_exports.string()
|
|
4460
|
-
})
|
|
4461
|
-
).optional(),
|
|
4462
|
-
attributeId: external_exports.number(),
|
|
4463
|
-
attributeName: external_exports.string(),
|
|
4464
|
-
createdBy: external_exports.string(),
|
|
4465
|
-
createdDate: external_exports.number(),
|
|
4466
|
-
description: external_exports.string().optional(),
|
|
4467
|
-
displayName: external_exports.string(),
|
|
4468
|
-
modifiedDate: external_exports.number(),
|
|
4469
|
-
orderWeight: external_exports.number().optional(),
|
|
4470
|
-
parentAttribute: parentAttributeSchema.optional(),
|
|
4471
|
-
parentAttributeId: external_exports.number().optional(),
|
|
4472
|
-
primaryAttrGroup: attributeGroupSchema
|
|
4473
|
-
});
|
|
4474
|
-
|
|
4475
|
-
// lib/attributes/models/AttributeValidValues.ts
|
|
4476
|
-
var attributeValidValuesSchema = external_exports.object({
|
|
4477
|
-
value: external_exports.string(),
|
|
4478
|
-
isDefault: external_exports.boolean(),
|
|
4479
|
-
locale: external_exports.string(),
|
|
4480
|
-
createdBy: external_exports.string(),
|
|
4481
|
-
createdDate: external_exports.number(),
|
|
4482
|
-
modifiedDate: external_exports.number(),
|
|
4483
|
-
modifiedBy: external_exports.string(),
|
|
4484
|
-
attributeId: external_exports.number(),
|
|
4485
|
-
attrValueId: external_exports.number(),
|
|
4486
|
-
attrKeyPair: external_exports.string()
|
|
4487
|
-
});
|
|
4488
|
-
|
|
4489
4333
|
// lib/items/v1/models/ItemHeader.ts
|
|
4490
4334
|
var itemHeaderSchema = external_exports.object({
|
|
4491
4335
|
status: external_exports.string().optional(),
|
|
@@ -4555,6 +4399,21 @@ var itemSearchViewSchema = external_exports.object({
|
|
|
4555
4399
|
count: external_exports.number()
|
|
4556
4400
|
});
|
|
4557
4401
|
|
|
4402
|
+
// lib/items/v1/models/AttrDatatypeNameEnum.ts
|
|
4403
|
+
var attrDatatypeNameEnumSchema = external_exports.enum([
|
|
4404
|
+
"TEXT",
|
|
4405
|
+
"SET",
|
|
4406
|
+
"INTEGER",
|
|
4407
|
+
"FLOAT",
|
|
4408
|
+
"BOOLEAN",
|
|
4409
|
+
"DATE",
|
|
4410
|
+
"KEYVALUE",
|
|
4411
|
+
"REFERENCE",
|
|
4412
|
+
// Not used anymore
|
|
4413
|
+
"STRING",
|
|
4414
|
+
"REAL"
|
|
4415
|
+
]);
|
|
4416
|
+
|
|
4558
4417
|
// lib/items/v1/models/AttributeDetail.ts
|
|
4559
4418
|
var attributeDetailSchema = external_exports.object({
|
|
4560
4419
|
type: attrDatatypeNameEnumSchema,
|
|
@@ -5124,15 +4983,8 @@ var companyBriefByOrgSchema = external_exports.object({
|
|
|
5124
4983
|
});
|
|
5125
4984
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5126
4985
|
0 && (module.exports = {
|
|
5127
|
-
attrDatatypeNameEnumSchema,
|
|
5128
4986
|
attrProdTypeSchema,
|
|
5129
|
-
attributeDefinitionSchema,
|
|
5130
4987
|
attributeDetailSchema,
|
|
5131
|
-
attributeGroupSchema,
|
|
5132
|
-
attributeMetaDataSchema,
|
|
5133
|
-
attributeSummarySchema,
|
|
5134
|
-
attributeValidValuesSchema,
|
|
5135
|
-
attributesByCompanySchema,
|
|
5136
4988
|
bulbSchema,
|
|
5137
4989
|
categoryEnumSchema,
|
|
5138
4990
|
companyBriefByOrgSchema,
|
package/dist/zod.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { c as companyBriefByOrgSchema, e as envSchema, s as spsItemIdResponseSchema } from './CompanyBriefByOrg-Dy2omcT0.cjs';
|
|
2
|
+
export { aL as attrProdTypeSchema, aB as attributeDetailSchema, at as bulbSchema, ay as categoryEnumSchema, aR as companyRelationshipUpsertBodySchema, aD as componentDetailsSchema, aO as connectionSchema, aj as downLoadItemsParamsSchema, af as exportDayOfWeekEnum, ag as exportFrequencyEnum, ai as exportSchema, ah as exportTypeEnum, ad as generateImportTemplateParamsSchema, aH as groupedAttributeListSchema, aF as groupedAttributesSchema, ax as groupedItemSchema, aG as hierarchyCategorySchema, aE as hierarchyDetailsSchema, aS as identityServiceDatetimePreferencesSchema, aT as identityServiceOrganizationMetadataSchema, aU as identityServiceOrganizationSchema, aV as identityServicePreferencesSchema, aW as identityServiceUserSchema, a7 as importDetailSchema, a8 as importErrorSchema, a9 as importErrorsSchema, aa as importSchema, ac as importStatusEnumSchema, ab as importsStatusSchema, ak as itemCategoriesSearchSchema, al as itemCategorySchema, aw as itemDetailSchema, aA as itemDetailViewSchema, aZ as itemErrorDetailsResultSchema, a$ as itemErrorDetailsResultV2Schema, a_ as itemErrorDetailsSchema, b1 as itemErrorDetailsV2Schema, b3 as itemErrorSummaryResultV2Schema, b0 as itemErrorSummaryV2Schema, an as itemHeaderSchema, am as itemHierarchyResponseSchema, ao as itemMapSchema, aQ as itemPartnerSchema, au as itemPriceSchema, ap as itemSearchViewSchema, aq as itemTableSchema, aK as localeSchema, av as mediaItemSchema, aI as packComponentDetailsSchema, aJ as packComponentItemInfoSchema, az as packComponentSchema, ar as phaseEnumSchema, aX as registeredServiceSchema, aC as repeatableGroupSchema, aM as spreadsheetTemplateCompanySchema, aN as spreadsheetTemplateSchema, aP as tradingPartnerAccessByCompanyIdSchema, as as tradingPartnerStageSchema, b2 as tradingPartnerStageV2Schema, aY as userAccountSchema, ae as vendorPartnerAttGroupsSchema } from './zod-rs54beS2.cjs';
|
|
3
3
|
import 'ky';
|
|
4
4
|
import 'zod';
|
package/dist/zod.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { c as companyBriefByOrgSchema, e as envSchema, s as spsItemIdResponseSchema } from './CompanyBriefByOrg-Dy2omcT0.js';
|
|
2
|
+
export { aL as attrProdTypeSchema, aB as attributeDetailSchema, at as bulbSchema, ay as categoryEnumSchema, aR as companyRelationshipUpsertBodySchema, aD as componentDetailsSchema, aO as connectionSchema, aj as downLoadItemsParamsSchema, af as exportDayOfWeekEnum, ag as exportFrequencyEnum, ai as exportSchema, ah as exportTypeEnum, ad as generateImportTemplateParamsSchema, aH as groupedAttributeListSchema, aF as groupedAttributesSchema, ax as groupedItemSchema, aG as hierarchyCategorySchema, aE as hierarchyDetailsSchema, aS as identityServiceDatetimePreferencesSchema, aT as identityServiceOrganizationMetadataSchema, aU as identityServiceOrganizationSchema, aV as identityServicePreferencesSchema, aW as identityServiceUserSchema, a7 as importDetailSchema, a8 as importErrorSchema, a9 as importErrorsSchema, aa as importSchema, ac as importStatusEnumSchema, ab as importsStatusSchema, ak as itemCategoriesSearchSchema, al as itemCategorySchema, aw as itemDetailSchema, aA as itemDetailViewSchema, aZ as itemErrorDetailsResultSchema, a$ as itemErrorDetailsResultV2Schema, a_ as itemErrorDetailsSchema, b1 as itemErrorDetailsV2Schema, b3 as itemErrorSummaryResultV2Schema, b0 as itemErrorSummaryV2Schema, an as itemHeaderSchema, am as itemHierarchyResponseSchema, ao as itemMapSchema, aQ as itemPartnerSchema, au as itemPriceSchema, ap as itemSearchViewSchema, aq as itemTableSchema, aK as localeSchema, av as mediaItemSchema, aI as packComponentDetailsSchema, aJ as packComponentItemInfoSchema, az as packComponentSchema, ar as phaseEnumSchema, aX as registeredServiceSchema, aC as repeatableGroupSchema, aM as spreadsheetTemplateCompanySchema, aN as spreadsheetTemplateSchema, aP as tradingPartnerAccessByCompanyIdSchema, as as tradingPartnerStageSchema, b2 as tradingPartnerStageV2Schema, aY as userAccountSchema, ae as vendorPartnerAttGroupsSchema } from './zod-DyBGOUbG.js';
|
|
3
3
|
import 'ky';
|
|
4
4
|
import 'zod';
|
package/dist/zod.js
CHANGED
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
envSchema
|
|
3
|
+
} from "./chunk-LCK4AEWB.js";
|
|
4
|
+
import {
|
|
3
5
|
attrProdTypeSchema,
|
|
4
|
-
attributeDefinitionSchema,
|
|
5
6
|
attributeDetailSchema,
|
|
6
|
-
attributeGroupSchema,
|
|
7
|
-
attributeMetaDataSchema,
|
|
8
|
-
attributeSummarySchema,
|
|
9
|
-
attributeValidValuesSchema,
|
|
10
|
-
attributesByCompanySchema,
|
|
11
7
|
bulbSchema,
|
|
12
8
|
categoryEnumSchema,
|
|
13
9
|
companyBriefByOrgSchema,
|
|
14
10
|
companyRelationshipUpsertBodySchema,
|
|
15
11
|
componentDetailsSchema,
|
|
16
12
|
connectionSchema,
|
|
17
|
-
|
|
18
|
-
envSchema,
|
|
19
|
-
exportDayOfWeekEnum,
|
|
20
|
-
exportFrequencyEnum,
|
|
21
|
-
exportSchema,
|
|
22
|
-
exportTypeEnum,
|
|
13
|
+
external_exports,
|
|
23
14
|
generateImportTemplateParamsSchema,
|
|
24
15
|
groupedAttributeListSchema,
|
|
25
16
|
groupedAttributesSchema,
|
|
@@ -70,17 +61,67 @@ import {
|
|
|
70
61
|
tradingPartnerStageV2Schema,
|
|
71
62
|
userAccountSchema,
|
|
72
63
|
vendorPartnerAttGroupsSchema
|
|
73
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-HHJDDPFR.js";
|
|
65
|
+
|
|
66
|
+
// lib/exports/models/ExportType.ts
|
|
67
|
+
var exportTypeEnum = external_exports.enum(["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]);
|
|
68
|
+
|
|
69
|
+
// lib/exports/models/ExportFrequency.ts
|
|
70
|
+
var exportFrequencyEnum = external_exports.enum([
|
|
71
|
+
"IMMEDIATE",
|
|
72
|
+
"ONETIME",
|
|
73
|
+
"DAILY",
|
|
74
|
+
"WEEKLY",
|
|
75
|
+
"MONTHLY"
|
|
76
|
+
]);
|
|
77
|
+
|
|
78
|
+
// lib/exports/models/ExportDayOfWeek.ts
|
|
79
|
+
var exportDayOfWeekEnum = external_exports.enum([
|
|
80
|
+
"MON",
|
|
81
|
+
"TUE",
|
|
82
|
+
"WED",
|
|
83
|
+
"THU",
|
|
84
|
+
"FRI",
|
|
85
|
+
"SAT",
|
|
86
|
+
"SUN"
|
|
87
|
+
]);
|
|
88
|
+
|
|
89
|
+
// lib/exports/models/Export.ts
|
|
90
|
+
var exportSchema = external_exports.object({
|
|
91
|
+
exportName: external_exports.string(),
|
|
92
|
+
exportDescription: external_exports.string(),
|
|
93
|
+
isActive: external_exports.boolean(),
|
|
94
|
+
exportType: exportTypeEnum,
|
|
95
|
+
exportFrequency: exportFrequencyEnum,
|
|
96
|
+
includeValidAttributes: external_exports.optional(external_exports.boolean()),
|
|
97
|
+
dayOfMonth: external_exports.optional(external_exports.number()),
|
|
98
|
+
dayOfWeek: external_exports.optional(exportDayOfWeekEnum),
|
|
99
|
+
hourOfDay: external_exports.optional(external_exports.number()),
|
|
100
|
+
date: external_exports.optional(external_exports.string()),
|
|
101
|
+
catalogIds: external_exports.optional(external_exports.array(external_exports.number())),
|
|
102
|
+
itemInfoIds: external_exports.optional(external_exports.array(external_exports.number())),
|
|
103
|
+
excludeItemInfoIds: external_exports.optional(external_exports.array(external_exports.number())),
|
|
104
|
+
selectionCodeIds: external_exports.optional(external_exports.array(external_exports.number())),
|
|
105
|
+
productCodeIds: external_exports.optional(external_exports.array(external_exports.number())),
|
|
106
|
+
productTypes: external_exports.optional(external_exports.array(external_exports.string())),
|
|
107
|
+
deliveryType: external_exports.optional(external_exports.string()),
|
|
108
|
+
spreadsheetTemplateId: external_exports.optional(external_exports.number()),
|
|
109
|
+
emailAddresses: external_exports.optional(external_exports.array(external_exports.string())),
|
|
110
|
+
subjectLine: external_exports.optional(external_exports.string()),
|
|
111
|
+
additionalLocales: external_exports.optional(external_exports.array(external_exports.string())),
|
|
112
|
+
availableAttributeList: external_exports.optional(external_exports.array(external_exports.string()))
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// lib/exports/models/DownloadItemsParams.ts
|
|
116
|
+
var downLoadItemsParamsSchema = external_exports.object({
|
|
117
|
+
"multi-sheet": external_exports.boolean(),
|
|
118
|
+
ids: external_exports.array(external_exports.string()),
|
|
119
|
+
availableAttributes: external_exports.array(external_exports.string()).optional(),
|
|
120
|
+
orgId: external_exports.string().optional()
|
|
121
|
+
});
|
|
74
122
|
export {
|
|
75
|
-
attrDatatypeNameEnumSchema,
|
|
76
123
|
attrProdTypeSchema,
|
|
77
|
-
attributeDefinitionSchema,
|
|
78
124
|
attributeDetailSchema,
|
|
79
|
-
attributeGroupSchema,
|
|
80
|
-
attributeMetaDataSchema,
|
|
81
|
-
attributeSummarySchema,
|
|
82
|
-
attributeValidValuesSchema,
|
|
83
|
-
attributesByCompanySchema,
|
|
84
125
|
bulbSchema,
|
|
85
126
|
categoryEnumSchema,
|
|
86
127
|
companyBriefByOrgSchema,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Assortment Api is a collection of HTTP functions to use Assortment endpoints",
|
|
4
4
|
"author": "Assortment",
|
|
5
5
|
"repository": "https://github.com/SPSCommerce/assortment-main/tree/main/ui/packages/asst-api",
|
|
6
|
-
"version": "4.1.
|
|
6
|
+
"version": "4.1.1",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@anatine/zod-mock": "^3.13.4",
|
|
37
37
|
"@faker-js/faker": "^8.4.1",
|
|
38
|
-
"msw": "^2.
|
|
38
|
+
"msw": "^2.10.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@anatine/zod-mock": {
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"@anatine/zod-mock": "^3.13.4",
|
|
53
53
|
"@faker-js/faker": "^8.4.1",
|
|
54
54
|
"@microsoft/api-extractor": "^7.47.9",
|
|
55
|
-
"msw": "^2.
|
|
55
|
+
"msw": "^2.10.3",
|
|
56
56
|
"tsup": "^8.3.0",
|
|
57
|
-
"vite": "^
|
|
57
|
+
"vite": "^6.2.6"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"ky": "0.25.1",
|