@spscommerce/asst-api 3.0.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.
Files changed (86) hide show
  1. package/dist/CompanyBriefByOrg-57oGCtjK.d.ts +3427 -0
  2. package/dist/CompanyBriefByOrg-Dy2omcT0.d.cts +95 -0
  3. package/dist/CompanyBriefByOrg-Dy2omcT0.d.ts +95 -0
  4. package/dist/CompanyBriefByOrg-LTdsUKm4.d.ts +3427 -0
  5. package/dist/chunk-27XV7TS2.js +522 -0
  6. package/dist/chunk-2ETQHIXC.js +528 -0
  7. package/dist/chunk-2VJS5KPH.js +5182 -0
  8. package/dist/chunk-2W3LZ4AO.js +513 -0
  9. package/dist/chunk-3XNXQYIB.js +521 -0
  10. package/dist/chunk-4C475UZX.js +5164 -0
  11. package/dist/chunk-5AROSGQB.js +5034 -0
  12. package/dist/chunk-7F5CQRS2.js +567 -0
  13. package/dist/chunk-7OEXJIWW.js +565 -0
  14. package/dist/chunk-A22SEYVL.js +530 -0
  15. package/dist/chunk-AH5MG2WF.js +5040 -0
  16. package/dist/chunk-BDSSH6MN.js +574 -0
  17. package/dist/chunk-BFIQVABZ.js +528 -0
  18. package/dist/chunk-BJTO4CRW.js +558 -0
  19. package/dist/chunk-BLMS4KUD.js +5164 -0
  20. package/dist/chunk-BTNVA4NZ.js +568 -0
  21. package/dist/chunk-CNQTNX3M.js +567 -0
  22. package/dist/chunk-CUVSWUIQ.js +5040 -0
  23. package/dist/chunk-DP2ZMQG5.js +4881 -0
  24. package/dist/chunk-EMBJNPTB.js +5040 -0
  25. package/dist/chunk-EO2UMCWY.js +574 -0
  26. package/dist/chunk-FTB465WY.js +575 -0
  27. package/dist/chunk-G6A4EVAL.js +528 -0
  28. package/dist/chunk-HHJDDPFR.js +4886 -0
  29. package/dist/chunk-HY2SRD5L.js +5003 -0
  30. package/dist/chunk-ISQ3LQRI.js +565 -0
  31. package/dist/chunk-KKX3CXHP.js +558 -0
  32. package/dist/chunk-LCK4AEWB.js +79 -0
  33. package/dist/chunk-LJVJ4SYE.js +568 -0
  34. package/dist/chunk-LYMA4XGG.js +5181 -0
  35. package/dist/chunk-MLAU3LFL.js +527 -0
  36. package/dist/chunk-MQREZR54.js +5164 -0
  37. package/dist/chunk-N4A4BVKV.js +5163 -0
  38. package/dist/chunk-QVEV57JA.js +5185 -0
  39. package/dist/chunk-SI7CWAHC.js +574 -0
  40. package/dist/chunk-SK6U2JDX.js +566 -0
  41. package/dist/chunk-SQBB5K5J.js +574 -0
  42. package/dist/chunk-TQ2IQDSM.js +568 -0
  43. package/dist/chunk-TTT6PM27.js +558 -0
  44. package/dist/chunk-VFMKDLXO.js +570 -0
  45. package/dist/chunk-VKPQOGVS.js +565 -0
  46. package/dist/chunk-VLLI4AYA.js +520 -0
  47. package/dist/chunk-VNFLJ5FV.js +530 -0
  48. package/dist/chunk-WNCDQJEM.js +5034 -0
  49. package/dist/chunk-XYZVRJF3.js +5162 -0
  50. package/dist/chunk-YJCJB4OT.js +79 -0
  51. package/dist/chunk-YJMQ4PGM.js +559 -0
  52. package/dist/chunk-ZQ32XEVW.js +79 -0
  53. package/dist/chunk-ZXXDLGW7.js +513 -0
  54. package/dist/index-9KKchLwe.d.cts +14 -0
  55. package/dist/index-DeivEdv0.d.ts +14 -0
  56. package/dist/index-Zz-6wNSh.d.ts +106 -0
  57. package/dist/index-fgr_c5Wj.d.ts +106 -0
  58. package/dist/index.cjs +238 -488
  59. package/dist/index.d.cts +6 -24
  60. package/dist/index.d.ts +6 -24
  61. package/dist/index.js +5 -5
  62. package/dist/msw.cjs +233 -539
  63. package/dist/msw.d.cts +10 -197
  64. package/dist/msw.d.ts +10 -197
  65. package/dist/msw.js +51 -117
  66. package/dist/zod-B4sIVoVX.d.ts +6712 -0
  67. package/dist/zod-BI81QHVK.d.ts +6715 -0
  68. package/dist/zod-BdDmL7rg.d.ts +6718 -0
  69. package/dist/zod-Bl_5j5Nx.d.ts +6712 -0
  70. package/dist/zod-Bxu34bbp.d.ts +6718 -0
  71. package/dist/zod-C4kEHhO8.d.cts +6718 -0
  72. package/dist/zod-C5pRCHei.d.ts +6712 -0
  73. package/dist/zod-CIacR1Kf.d.cts +6712 -0
  74. package/dist/zod-DBbdP-KT.d.cts +6718 -0
  75. package/dist/zod-DyBGOUbG.d.ts +5876 -0
  76. package/dist/zod-DzhoVlw_.d.cts +6712 -0
  77. package/dist/zod-FdtLO2-F.d.cts +6715 -0
  78. package/dist/zod-NE2xXWlK.d.ts +3416 -0
  79. package/dist/zod-lSiFMzqK.d.cts +6712 -0
  80. package/dist/zod-rs54beS2.d.cts +5876 -0
  81. package/dist/zod-zxqlYYMG.d.ts +3416 -0
  82. package/dist/zod.cjs +41 -210
  83. package/dist/zod.d.cts +2 -2
  84. package/dist/zod.d.ts +2 -2
  85. package/dist/zod.js +62 -21
  86. 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.30/node_modules/zod/dist/esm/v3/external.js
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.30/node_modules/zod/dist/esm/v3/helpers/util.js
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.30/node_modules/zod/dist/esm/v3/ZodError.js
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
- fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
457
- fieldErrors[sub.path[0]].push(mapper(sub));
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.30/node_modules/zod/dist/esm/v3/locales/en.js
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.30/node_modules/zod/dist/esm/v3/errors.js
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.30/node_modules/zod/dist/esm/v3/helpers/parseUtil.js
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,27 +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.30/node_modules/zod/dist/esm/v3/helpers/errorUtil.js
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.30/node_modules/zod/dist/esm/v3/types.js
701
- var __classPrivateFieldGet = function(receiver, state, kind, f) {
702
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
703
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
704
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
705
- };
706
- var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
707
- if (kind === "m") throw new TypeError("Private method is not writable");
708
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
709
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
710
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
711
- };
712
- var _ZodEnum_cache;
713
- var _ZodNativeEnum_cache;
696
+ // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
714
697
  var ParseInputLazyPath = class {
715
698
  constructor(parent, value, path, key) {
716
699
  this._cachedPath = [];
@@ -1109,6 +1092,8 @@ function isValidJWT(jwt, alg) {
1109
1092
  return false;
1110
1093
  try {
1111
1094
  const [header] = jwt.split(".");
1095
+ if (!header)
1096
+ return false;
1112
1097
  const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
1113
1098
  const decoded = JSON.parse(atob(base64));
1114
1099
  if (typeof decoded !== "object" || decoded === null)
@@ -3535,10 +3520,6 @@ function createZodEnum(values, params) {
3535
3520
  });
3536
3521
  }
3537
3522
  var ZodEnum = class _ZodEnum extends ZodType {
3538
- constructor() {
3539
- super(...arguments);
3540
- _ZodEnum_cache.set(this, void 0);
3541
- }
3542
3523
  _parse(input) {
3543
3524
  if (typeof input.data !== "string") {
3544
3525
  const ctx = this._getOrReturnCtx(input);
@@ -3550,10 +3531,10 @@ var ZodEnum = class _ZodEnum extends ZodType {
3550
3531
  });
3551
3532
  return INVALID;
3552
3533
  }
3553
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {
3554
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
3534
+ if (!this._cache) {
3535
+ this._cache = new Set(this._def.values);
3555
3536
  }
3556
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {
3537
+ if (!this._cache.has(input.data)) {
3557
3538
  const ctx = this._getOrReturnCtx(input);
3558
3539
  const expectedValues = this._def.values;
3559
3540
  addIssueToContext(ctx, {
@@ -3602,13 +3583,8 @@ var ZodEnum = class _ZodEnum extends ZodType {
3602
3583
  });
3603
3584
  }
3604
3585
  };
3605
- _ZodEnum_cache = /* @__PURE__ */ new WeakMap();
3606
3586
  ZodEnum.create = createZodEnum;
3607
3587
  var ZodNativeEnum = class extends ZodType {
3608
- constructor() {
3609
- super(...arguments);
3610
- _ZodNativeEnum_cache.set(this, void 0);
3611
- }
3612
3588
  _parse(input) {
3613
3589
  const nativeEnumValues = util.getValidEnumValues(this._def.values);
3614
3590
  const ctx = this._getOrReturnCtx(input);
@@ -3621,10 +3597,10 @@ var ZodNativeEnum = class extends ZodType {
3621
3597
  });
3622
3598
  return INVALID;
3623
3599
  }
3624
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {
3625
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f");
3600
+ if (!this._cache) {
3601
+ this._cache = new Set(util.getValidEnumValues(this._def.values));
3626
3602
  }
3627
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) {
3603
+ if (!this._cache.has(input.data)) {
3628
3604
  const expectedValues = util.objectValues(nativeEnumValues);
3629
3605
  addIssueToContext(ctx, {
3630
3606
  received: ctx.data,
@@ -3639,7 +3615,6 @@ var ZodNativeEnum = class extends ZodType {
3639
3615
  return this._def.values;
3640
3616
  }
3641
3617
  };
3642
- _ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
3643
3618
  ZodNativeEnum.create = (values, params) => {
3644
3619
  return new ZodNativeEnum({
3645
3620
  values,
@@ -3780,7 +3755,7 @@ var ZodEffects = class extends ZodType {
3780
3755
  parent: ctx
3781
3756
  });
3782
3757
  if (!isValid(base))
3783
- return base;
3758
+ return INVALID;
3784
3759
  const result = effect.transform(base.value, checkCtx);
3785
3760
  if (result instanceof Promise) {
3786
3761
  throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
@@ -3789,7 +3764,7 @@ var ZodEffects = class extends ZodType {
3789
3764
  } else {
3790
3765
  return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
3791
3766
  if (!isValid(base))
3792
- return base;
3767
+ return INVALID;
3793
3768
  return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
3794
3769
  status: status.value,
3795
3770
  value: result
@@ -4309,7 +4284,9 @@ var exportSchema = external_exports.object({
4309
4284
  // lib/exports/models/DownloadItemsParams.ts
4310
4285
  var downLoadItemsParamsSchema = external_exports.object({
4311
4286
  "multi-sheet": external_exports.boolean(),
4312
- ids: external_exports.array(external_exports.string())
4287
+ ids: external_exports.array(external_exports.string()),
4288
+ availableAttributes: external_exports.array(external_exports.string()).optional(),
4289
+ orgId: external_exports.string().optional()
4313
4290
  });
4314
4291
 
4315
4292
  // lib/categories/models/ItemCategory.ts
@@ -4353,160 +4330,6 @@ var itemHierarchyResponseSchema = external_exports.object({
4353
4330
  )
4354
4331
  });
4355
4332
 
4356
- // lib/attributes/models/AttributeMetaData.ts
4357
- var attributeMetaDataSchema = external_exports.object({
4358
- dbName: external_exports.string(),
4359
- label: external_exports.string(),
4360
- group: external_exports.string(),
4361
- aliases: external_exports.array(external_exports.string()),
4362
- orderBy: external_exports.string().or(external_exports.number()),
4363
- type: external_exports.string(),
4364
- storageType: external_exports.string(),
4365
- rsxPath: external_exports.string(),
4366
- indexed: external_exports.boolean(),
4367
- repeatable: external_exports.boolean(),
4368
- extended: external_exports.boolean(),
4369
- hybrid: external_exports.boolean(),
4370
- userVisible: external_exports.boolean(),
4371
- retailerOwnedId: external_exports.number().nullish()
4372
- });
4373
-
4374
- // lib/attributes/models/AttributeSummary.ts
4375
- var attributeSummarySchema = external_exports.object({
4376
- attributeId: external_exports.number(),
4377
- attributeName: external_exports.string(),
4378
- displayName: external_exports.string(),
4379
- modifiedBy: external_exports.string(),
4380
- modifiedDate: external_exports.number(),
4381
- retailerOwnedId: external_exports.number().nullish(),
4382
- clusterAttrGroupId: external_exports.number().nullish(),
4383
- attributeType: external_exports.string()
4384
- });
4385
-
4386
- // lib/attributes/models/AttributesByCompany.ts
4387
- var attributesByCompanySchema = external_exports.object({
4388
- next: external_exports.string().nullish(),
4389
- previous: external_exports.string().nullish(),
4390
- count: external_exports.number(),
4391
- results: external_exports.array(attributeSummarySchema)
4392
- });
4393
-
4394
- // lib/attributes/models/AttrDatatypeNameEnum.ts
4395
- var attrDatatypeNameEnumSchema = external_exports.enum([
4396
- "TEXT",
4397
- "SET",
4398
- "INTEGER",
4399
- "FLOAT",
4400
- "BOOLEAN",
4401
- "DATE",
4402
- "KEYVALUE",
4403
- "STRING",
4404
- "REAL"
4405
- ]);
4406
-
4407
- // lib/attributes/models/AttributeGroup.ts
4408
- var attributeGroupSchema = external_exports.object({
4409
- attrGroupId: external_exports.number(),
4410
- attrGroupType: external_exports.object({
4411
- attrGroupTypeId: external_exports.number(),
4412
- groupTypeName: external_exports.string(),
4413
- primary: external_exports.boolean(),
4414
- restricted: external_exports.boolean()
4415
- }),
4416
- attrGroupTypeId: external_exports.number(),
4417
- groupName: external_exports.string(),
4418
- isDefault: external_exports.boolean(),
4419
- orderWeight: external_exports.number(),
4420
- primary: external_exports.boolean()
4421
- });
4422
-
4423
- // lib/attributes/models/AttributeDefinition.ts
4424
- var parentAttributeSchema = external_exports.object({
4425
- attrDataTypeId: external_exports.number(),
4426
- attrDatatype: external_exports.object({
4427
- attrDatatypeId: external_exports.number(),
4428
- datatypeName: attrDatatypeNameEnumSchema,
4429
- displayOnly: external_exports.boolean()
4430
- }),
4431
- attrGroupId: external_exports.number(),
4432
- attrGroups: external_exports.array(attributeGroupSchema),
4433
- attrRoundId: external_exports.number(),
4434
- attrStorageId: external_exports.number(),
4435
- attributeId: external_exports.number(),
4436
- attributeName: external_exports.string(),
4437
- createdBy: external_exports.string(),
4438
- createdDate: external_exports.number(),
4439
- description: external_exports.string().optional(),
4440
- displayName: external_exports.string(),
4441
- modifiedDate: external_exports.number(),
4442
- orderWeight: external_exports.number(),
4443
- parentAttributeId: external_exports.number().optional(),
4444
- primaryAttrGroup: attributeGroupSchema
4445
- });
4446
- var attributeDefinitionSchema = external_exports.object({
4447
- attrDataTypeId: external_exports.number(),
4448
- attrDatatype: external_exports.object({
4449
- attrDatatypeId: external_exports.number(),
4450
- datatypeName: attrDatatypeNameEnumSchema,
4451
- displayOnly: external_exports.boolean()
4452
- }),
4453
- attrGroupId: external_exports.number(),
4454
- attrGroups: external_exports.array(attributeGroupSchema),
4455
- attrRestrictions: external_exports.array(
4456
- external_exports.object({
4457
- attrRestrictId: external_exports.number(),
4458
- ignoreGlobal: external_exports.boolean().optional(),
4459
- isDefault: external_exports.boolean(),
4460
- isEssential: external_exports.boolean(),
4461
- locale: external_exports.string(),
4462
- mandatory: external_exports.boolean(),
4463
- repeatable: external_exports.boolean(),
4464
- minLength: external_exports.number().optional(),
4465
- maxLength: external_exports.number().optional()
4466
- })
4467
- ).optional(),
4468
- attrRoundId: external_exports.number(),
4469
- attrStorage: external_exports.object({
4470
- attrStorageId: external_exports.number(),
4471
- storageName: external_exports.string()
4472
- }),
4473
- attrStorageId: external_exports.number(),
4474
- attrValues: external_exports.array(
4475
- external_exports.object({
4476
- attrKeyPair: external_exports.string(),
4477
- attrValueId: external_exports.number().optional(),
4478
- isDefault: external_exports.boolean(),
4479
- locale: external_exports.string(),
4480
- value: external_exports.string()
4481
- })
4482
- ).optional(),
4483
- attributeId: external_exports.number(),
4484
- attributeName: external_exports.string(),
4485
- createdBy: external_exports.string(),
4486
- createdDate: external_exports.number(),
4487
- description: external_exports.string().optional(),
4488
- displayName: external_exports.string(),
4489
- modifiedDate: external_exports.number(),
4490
- orderWeight: external_exports.number().optional(),
4491
- parentAttribute: parentAttributeSchema.optional(),
4492
- parentAttributeId: external_exports.number().optional(),
4493
- primaryAttrGroup: attributeGroupSchema
4494
- });
4495
-
4496
- // lib/attributes/models/AttributeValidValues.ts
4497
- var attributeValidValuesSchema = external_exports.object({
4498
- value: external_exports.string(),
4499
- isDefault: external_exports.boolean(),
4500
- locale: external_exports.string(),
4501
- createdBy: external_exports.string(),
4502
- createdDate: external_exports.number(),
4503
- modifiedDate: external_exports.number(),
4504
- modifiedBy: external_exports.string(),
4505
- attributeId: external_exports.number(),
4506
- attrValueId: external_exports.number(),
4507
- attrKeyPair: external_exports.string()
4508
- });
4509
-
4510
4333
  // lib/items/v1/models/ItemHeader.ts
4511
4334
  var itemHeaderSchema = external_exports.object({
4512
4335
  status: external_exports.string().optional(),
@@ -4576,6 +4399,21 @@ var itemSearchViewSchema = external_exports.object({
4576
4399
  count: external_exports.number()
4577
4400
  });
4578
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
+
4579
4417
  // lib/items/v1/models/AttributeDetail.ts
4580
4418
  var attributeDetailSchema = external_exports.object({
4581
4419
  type: attrDatatypeNameEnumSchema,
@@ -5145,15 +4983,8 @@ var companyBriefByOrgSchema = external_exports.object({
5145
4983
  });
5146
4984
  // Annotate the CommonJS export names for ESM import in node:
5147
4985
  0 && (module.exports = {
5148
- attrDatatypeNameEnumSchema,
5149
4986
  attrProdTypeSchema,
5150
- attributeDefinitionSchema,
5151
4987
  attributeDetailSchema,
5152
- attributeGroupSchema,
5153
- attributeMetaDataSchema,
5154
- attributeSummarySchema,
5155
- attributeValidValuesSchema,
5156
- attributesByCompanySchema,
5157
4988
  bulbSchema,
5158
4989
  categoryEnumSchema,
5159
4990
  companyBriefByOrgSchema,
package/dist/zod.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { d as attributeValidValuesSchema, f as companyBriefByOrgSchema, e as envSchema, s as spsItemIdResponseSchema } from './CompanyBriefByOrg-itus4RMD.cjs';
2
- export { at as attrDatatypeNameEnumSchema, aX as attrProdTypeSchema, au as attributeDefinitionSchema, aN as attributeDetailSchema, av as attributeGroupSchema, aw as attributeMetaDataSchema, ax as attributeSummarySchema, ay as attributesByCompanySchema, aF as bulbSchema, aK as categoryEnumSchema, b1 as companyRelationshipUpsertBodySchema, aP as componentDetailsSchema, a_ as connectionSchema, ap as downLoadItemsParamsSchema, al as exportDayOfWeekEnum, am as exportFrequencyEnum, ao as exportSchema, an as exportTypeEnum, aj as generateImportTemplateParamsSchema, aT as groupedAttributeListSchema, aR as groupedAttributesSchema, aJ as groupedItemSchema, aS as hierarchyCategorySchema, aQ as hierarchyDetailsSchema, b2 as identityServiceDatetimePreferencesSchema, b3 as identityServiceOrganizationMetadataSchema, b4 as identityServiceOrganizationSchema, b5 as identityServicePreferencesSchema, b6 as identityServiceUserSchema, ad as importDetailSchema, ae as importErrorSchema, af as importErrorsSchema, ag as importSchema, ai as importStatusEnumSchema, ah as importsStatusSchema, aq as itemCategoriesSearchSchema, ar as itemCategorySchema, aI as itemDetailSchema, aM as itemDetailViewSchema, b9 as itemErrorDetailsResultSchema, bb as itemErrorDetailsResultV2Schema, ba as itemErrorDetailsSchema, bd as itemErrorDetailsV2Schema, bf as itemErrorSummaryResultV2Schema, bc as itemErrorSummaryV2Schema, az as itemHeaderSchema, as as itemHierarchyResponseSchema, aA as itemMapSchema, b0 as itemPartnerSchema, aG as itemPriceSchema, aB as itemSearchViewSchema, aC as itemTableSchema, aW as localeSchema, aH as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aL as packComponentSchema, aD as phaseEnumSchema, b7 as registeredServiceSchema, aO as repeatableGroupSchema, aY as spreadsheetTemplateCompanySchema, aZ as spreadsheetTemplateSchema, a$ as tradingPartnerAccessByCompanyIdSchema, aE as tradingPartnerStageSchema, be as tradingPartnerStageV2Schema, b8 as userAccountSchema, ak as vendorPartnerAttGroupsSchema } from './zod-6gU8y6oS.cjs';
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 { d as attributeValidValuesSchema, f as companyBriefByOrgSchema, e as envSchema, s as spsItemIdResponseSchema } from './CompanyBriefByOrg-itus4RMD.js';
2
- export { at as attrDatatypeNameEnumSchema, aX as attrProdTypeSchema, au as attributeDefinitionSchema, aN as attributeDetailSchema, av as attributeGroupSchema, aw as attributeMetaDataSchema, ax as attributeSummarySchema, ay as attributesByCompanySchema, aF as bulbSchema, aK as categoryEnumSchema, b1 as companyRelationshipUpsertBodySchema, aP as componentDetailsSchema, a_ as connectionSchema, ap as downLoadItemsParamsSchema, al as exportDayOfWeekEnum, am as exportFrequencyEnum, ao as exportSchema, an as exportTypeEnum, aj as generateImportTemplateParamsSchema, aT as groupedAttributeListSchema, aR as groupedAttributesSchema, aJ as groupedItemSchema, aS as hierarchyCategorySchema, aQ as hierarchyDetailsSchema, b2 as identityServiceDatetimePreferencesSchema, b3 as identityServiceOrganizationMetadataSchema, b4 as identityServiceOrganizationSchema, b5 as identityServicePreferencesSchema, b6 as identityServiceUserSchema, ad as importDetailSchema, ae as importErrorSchema, af as importErrorsSchema, ag as importSchema, ai as importStatusEnumSchema, ah as importsStatusSchema, aq as itemCategoriesSearchSchema, ar as itemCategorySchema, aI as itemDetailSchema, aM as itemDetailViewSchema, b9 as itemErrorDetailsResultSchema, bb as itemErrorDetailsResultV2Schema, ba as itemErrorDetailsSchema, bd as itemErrorDetailsV2Schema, bf as itemErrorSummaryResultV2Schema, bc as itemErrorSummaryV2Schema, az as itemHeaderSchema, as as itemHierarchyResponseSchema, aA as itemMapSchema, b0 as itemPartnerSchema, aG as itemPriceSchema, aB as itemSearchViewSchema, aC as itemTableSchema, aW as localeSchema, aH as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aL as packComponentSchema, aD as phaseEnumSchema, b7 as registeredServiceSchema, aO as repeatableGroupSchema, aY as spreadsheetTemplateCompanySchema, aZ as spreadsheetTemplateSchema, a$ as tradingPartnerAccessByCompanyIdSchema, aE as tradingPartnerStageSchema, be as tradingPartnerStageV2Schema, b8 as userAccountSchema, ak as vendorPartnerAttGroupsSchema } from './zod-BUCQsGOm.js';
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
- attrDatatypeNameEnumSchema,
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
- downLoadItemsParamsSchema,
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-GDARBI5R.js";
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": "3.0.0",
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.4.9"
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.4.9",
55
+ "msw": "^2.10.3",
56
56
  "tsup": "^8.3.0",
57
- "vite": "^5.4.7"
57
+ "vite": "^6.2.6"
58
58
  },
59
59
  "dependencies": {
60
60
  "ky": "0.25.1",