@spscommerce/asst-api 4.1.0 → 4.2.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/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.57/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.57/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.57/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.57/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.57/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.57/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,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.57/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.57/node_modules/zod/dist/esm/v3/types.js
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 { 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-DBbdP-KT.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-BdDmL7rg.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-BLMS4KUD.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": "4.1.0",
6
+ "version": "4.2.0",
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.7.5"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "@anatine/zod-mock": {
@@ -52,7 +52,7 @@
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.7.5",
56
56
  "tsup": "^8.3.0",
57
57
  "vite": "^5.4.7"
58
58
  },