@spscommerce/asst-api 5.3.2 → 5.3.4

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { d as companyBriefByOrgSchema, e as envSchema, i as itemHierarchyResponseSchema, s as spsItemIdResponseSchema } from './SpsItemIdResponse-Duo9fy_R.js';
2
- export { a8 as attrProdTypeSchema, a9 as attributeDetailSchema, aa as bulbSchema, ab as categoryEnumSchema, ac as categoryTypeSchema, ad as companyRelationshipUpsertBodySchema, ae as componentDetailsSchema, af as connectionSchema, ag as downLoadItemsParamsSchema, ah as exportDayOfWeekEnum, ai as exportFrequencyEnum, aj as exportSchema, ak as exportTypeEnum, al as generateImportTemplateParamsSchema, am as groupedAttributeListSchema, an as groupedAttributesSchema, ao as groupedItemSchema, ap as hierarchyCategorySchema, aq as hierarchyDetailsSchema, ar as identityServiceDatetimePreferencesSchema, as as identityServiceOrganizationMetadataSchema, at as identityServiceOrganizationSchema, au as identityServicePreferencesSchema, av as identityServiceUserSchema, aw as importDetailSchema, ax as importErrorSchema, ay as importErrorsSchema, az as importSchema, aA as importStatusEnumSchema, aB as importsStatusSchema, aC as itemCategoriesSearchSchema, aD as itemCategorySchema, aE as itemDetailSchema, aF as itemDetailViewSchema, aG as itemErrorDetailsResultSchema, aH as itemErrorDetailsResultV2Schema, aI as itemErrorDetailsSchema, aJ as itemErrorDetailsV2Schema, aK as itemErrorSummaryResultV2Schema, aL as itemErrorSummaryV2Schema, aM as itemHeaderSchema, aN as itemMapSchema, aO as itemPartnerSchema, aP as itemPriceSchema, aQ as itemSearchViewSchema, aR as itemTableSchema, aS as localeSchema, aT as mediaItemSchema, aU as packComponentDetailsSchema, aV as packComponentItemInfoSchema, aW as packComponentSchema, aX as phaseEnumSchema, aY as registeredServiceSchema, aZ as repeatableGroupSchema, a_ as spreadsheetTemplateCompanySchema, a$ as spreadsheetTemplateSchema, b0 as tradingPartnerAccessByCompanyIdSchema, b1 as tradingPartnerStageSchema, b2 as tradingPartnerStageV2Schema, b3 as userAccountSchema, b4 as vendorPartnerAttGroupsSchema } from './zod-f4vmP6zY.js';
1
+ export { d as companyBriefByOrgSchema, e as envSchema, i as itemHierarchyResponseSchema, s as spsItemIdResponseSchema } from './SpsItemIdResponse-CorAaMf-.js';
2
+ export { a9 as attrProdTypeSchema, aa as attributeDetailSchema, ab as bulbSchema, ac as categoryEnumSchema, ad as categoryTypeSchema, ae as companyRelationshipUpsertBodySchema, af as componentDetailsSchema, ag as connectionSchema, ah as downloadCatalogedItemsParamsSchema, ai as downloadItemsParamsSchema, aj as exportDayOfWeekEnum, ak as exportFrequencyEnum, al as exportSchema, am as exportTypeEnum, an as generateImportTemplateParamsSchema, ao as groupedAttributeListSchema, ap as groupedAttributesSchema, aq as groupedItemSchema, ar as hierarchyCategorySchema, as as hierarchyDetailsSchema, at as identityServiceDatetimePreferencesSchema, au as identityServiceOrganizationMetadataSchema, av as identityServiceOrganizationSchema, aw as identityServicePreferencesSchema, ax as identityServiceUserSchema, ay as importDetailSchema, az as importErrorSchema, aA as importErrorsSchema, aB as importSchema, aC as importStatusEnumSchema, aD as importsStatusSchema, aE as itemCategoriesSearchSchema, aF as itemCategorySchema, aG as itemDetailSchema, aH as itemDetailViewSchema, aI as itemErrorDetailsResultSchema, aJ as itemErrorDetailsResultV2Schema, aK as itemErrorDetailsSchema, aL as itemErrorDetailsV2Schema, aM as itemErrorSummaryResultV2Schema, aN as itemErrorSummaryV2Schema, aO as itemHeaderSchema, aP as itemMapSchema, aQ as itemPartnerSchema, aR as itemPriceSchema, aS as itemSearchViewSchema, aT as itemTableSchema, aU as localeSchema, aV as mediaItemSchema, aW as packComponentDetailsSchema, aX as packComponentItemInfoSchema, aY as packComponentSchema, aZ as phaseEnumSchema, a_ as registeredServiceSchema, a$ as repeatableGroupSchema, b0 as spreadsheetTemplateCompanySchema, b1 as spreadsheetTemplateSchema, b2 as tradingPartnerAccessByCompanyIdSchema, b3 as tradingPartnerStageSchema, b4 as tradingPartnerStageV2Schema, b5 as userAccountSchema, b6 as vendorPartnerAttGroupsSchema } from './zod-BTAcqNX0.js';
3
3
  import 'zod';
4
4
  import 'ky';
package/dist/zod.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  envSchema
3
- } from "./chunk-XSWAONLH.js";
3
+ } from "./chunk-JOTJ2YCI.js";
4
4
  import {
5
5
  attrProdTypeSchema,
6
6
  attributeDetailSchema,
@@ -11,7 +11,6 @@ import {
11
11
  companyRelationshipUpsertBodySchema,
12
12
  componentDetailsSchema,
13
13
  connectionSchema,
14
- external_exports,
15
14
  generateImportTemplateParamsSchema,
16
15
  groupedAttributeListSchema,
17
16
  groupedAttributesSchema,
@@ -62,13 +61,18 @@ import {
62
61
  tradingPartnerStageV2Schema,
63
62
  userAccountSchema,
64
63
  vendorPartnerAttGroupsSchema
65
- } from "./chunk-3H53DOKQ.js";
64
+ } from "./chunk-ATHXI7QZ.js";
65
+
66
+ // lib/exports/models/Export.ts
67
+ import { z as z4 } from "zod";
66
68
 
67
69
  // lib/exports/models/ExportType.ts
68
- var exportTypeEnum = external_exports.enum(["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]);
70
+ import { z } from "zod";
71
+ var exportTypeEnum = z.enum(["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]);
69
72
 
70
73
  // lib/exports/models/ExportFrequency.ts
71
- var exportFrequencyEnum = external_exports.enum([
74
+ import { z as z2 } from "zod";
75
+ var exportFrequencyEnum = z2.enum([
72
76
  "IMMEDIATE",
73
77
  "ONETIME",
74
78
  "DAILY",
@@ -77,7 +81,8 @@ var exportFrequencyEnum = external_exports.enum([
77
81
  ]);
78
82
 
79
83
  // lib/exports/models/ExportDayOfWeek.ts
80
- var exportDayOfWeekEnum = external_exports.enum([
84
+ import { z as z3 } from "zod";
85
+ var exportDayOfWeekEnum = z3.enum([
81
86
  "MON",
82
87
  "TUE",
83
88
  "WED",
@@ -88,40 +93,47 @@ var exportDayOfWeekEnum = external_exports.enum([
88
93
  ]);
89
94
 
90
95
  // lib/exports/models/Export.ts
91
- var exportSchema = external_exports.object({
92
- exportName: external_exports.string(),
93
- exportDescription: external_exports.string(),
94
- isActive: external_exports.boolean(),
96
+ var exportSchema = z4.object({
97
+ exportName: z4.string(),
98
+ exportDescription: z4.string(),
99
+ isActive: z4.boolean(),
95
100
  exportType: exportTypeEnum,
96
101
  exportFrequency: exportFrequencyEnum,
97
- includeValidAttributes: external_exports.optional(external_exports.boolean()),
98
- dayOfMonth: external_exports.optional(external_exports.number()),
99
- dayOfWeek: external_exports.optional(exportDayOfWeekEnum),
100
- hourOfDay: external_exports.optional(external_exports.number()),
101
- date: external_exports.optional(external_exports.string()),
102
- reportType: external_exports.optional(external_exports.enum(["SUPPLIER_REPORT", "RETAILER_REPORT"])),
103
- catalogIds: external_exports.optional(external_exports.array(external_exports.number())),
104
- itemInfoIds: external_exports.optional(external_exports.array(external_exports.number())),
105
- excludeItemInfoIds: external_exports.optional(external_exports.array(external_exports.number())),
106
- selectionCodeIds: external_exports.optional(external_exports.array(external_exports.number())),
107
- productCodeIds: external_exports.optional(external_exports.array(external_exports.number())),
108
- productTypes: external_exports.optional(external_exports.array(external_exports.string())),
109
- deliveryType: external_exports.optional(external_exports.string()),
110
- spreadsheetTemplateId: external_exports.optional(external_exports.number()),
111
- emailAddresses: external_exports.optional(external_exports.array(external_exports.string())),
112
- subjectLine: external_exports.optional(external_exports.string()),
113
- additionalLocales: external_exports.optional(external_exports.array(external_exports.string())),
114
- availableAttributeList: external_exports.optional(external_exports.array(external_exports.string())),
115
- systemInstanceId: external_exports.optional(external_exports.string()),
116
- includeUncatalogedItems: external_exports.optional(external_exports.boolean())
102
+ includeValidAttributes: z4.optional(z4.boolean()),
103
+ dayOfMonth: z4.optional(z4.number()),
104
+ dayOfWeek: z4.optional(exportDayOfWeekEnum),
105
+ hourOfDay: z4.optional(z4.number()),
106
+ date: z4.optional(z4.string()),
107
+ reportType: z4.optional(z4.enum(["SUPPLIER_REPORT", "RETAILER_REPORT"])),
108
+ catalogIds: z4.optional(z4.array(z4.number())),
109
+ itemInfoIds: z4.optional(z4.array(z4.number())),
110
+ excludeItemInfoIds: z4.optional(z4.array(z4.number())),
111
+ selectionCodeIds: z4.optional(z4.array(z4.number())),
112
+ productCodeIds: z4.optional(z4.array(z4.number())),
113
+ productTypes: z4.optional(z4.array(z4.string())),
114
+ deliveryType: z4.optional(z4.string()),
115
+ spreadsheetTemplateId: z4.optional(z4.number()),
116
+ emailAddresses: z4.optional(z4.array(z4.string())),
117
+ subjectLine: z4.optional(z4.string()),
118
+ additionalLocales: z4.optional(z4.array(z4.string())),
119
+ availableAttributeList: z4.optional(z4.array(z4.string())),
120
+ systemInstanceId: z4.optional(z4.string()),
121
+ includeUncatalogedItems: z4.optional(z4.boolean())
117
122
  });
118
123
 
119
124
  // lib/exports/models/DownloadItemsParams.ts
120
- var downLoadItemsParamsSchema = external_exports.object({
121
- "multi-sheet": external_exports.boolean(),
122
- ids: external_exports.array(external_exports.string()),
123
- availableAttributes: external_exports.array(external_exports.string()).optional(),
124
- orgId: external_exports.string().optional()
125
+ import { z as z5 } from "zod";
126
+ var downloadItemsParamsSchema = z5.object({
127
+ "multi-sheet": z5.boolean(),
128
+ ids: z5.array(z5.string()),
129
+ availableAttributes: z5.array(z5.string()).optional(),
130
+ ownerOrgId: z5.string().optional()
131
+ });
132
+ var downloadCatalogedItemsParamsSchema = z5.object({
133
+ "multi-sheet": z5.boolean(),
134
+ ids: z5.array(z5.string()),
135
+ availableAttributes: z5.array(z5.string()).optional(),
136
+ orgId: z5.string().optional()
125
137
  });
126
138
  export {
127
139
  attrProdTypeSchema,
@@ -133,7 +145,8 @@ export {
133
145
  companyRelationshipUpsertBodySchema,
134
146
  componentDetailsSchema,
135
147
  connectionSchema,
136
- downLoadItemsParamsSchema,
148
+ downloadCatalogedItemsParamsSchema,
149
+ downloadItemsParamsSchema,
137
150
  envSchema,
138
151
  exportDayOfWeekEnum,
139
152
  exportFrequencyEnum,
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": "5.3.2",
6
+ "version": "5.3.4",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
@@ -30,7 +30,8 @@
30
30
  "peerDependencies": {
31
31
  "@anatine/zod-mock": "^3.13.4",
32
32
  "@faker-js/faker": "^8.4.1",
33
- "msw": "^2"
33
+ "msw": "^2",
34
+ "zod": "^3"
34
35
  },
35
36
  "peerDependenciesMeta": {
36
37
  "@anatine/zod-mock": {
@@ -41,14 +42,20 @@
41
42
  },
42
43
  "msw": {
43
44
  "optional": true
45
+ },
46
+ "zod": {
47
+ "optional": false
44
48
  }
45
49
  },
46
50
  "devDependencies": {
47
51
  "@anatine/zod-mock": "^3.13.4",
48
52
  "@faker-js/faker": "^8.4.1",
49
53
  "@microsoft/api-extractor": "^7.47.9",
54
+ "msw": "^2.11.3",
50
55
  "tsup": "^8.3.0",
51
- "vite": "^6.2.6"
56
+ "typescript": "~5.8.3",
57
+ "vite": "^8.0.16",
58
+ "zod": "^3.23.8"
52
59
  },
53
60
  "dependencies": {
54
61
  "ky": "^1.7.2"