@spscommerce/asst-api 0.0.1-beta.8 → 0.0.1-beta.9

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 (56) hide show
  1. package/dist/ImportsStatus-52d26b01.d.ts +134 -0
  2. package/dist/ImportsStatusEnum-22c03a0b.d.ts +51 -0
  3. package/dist/ItemCategoriesSearch-1bb945de.d.ts +275 -0
  4. package/dist/ItemCategoriesSearch-44b87663.d.ts +318 -0
  5. package/dist/ItemCategoriesSearch-e0870a34.d.ts +318 -0
  6. package/dist/ItemCategoriesSearch-e3298650.d.ts +319 -0
  7. package/dist/ItemCategoriesSearch-ec43591f.d.ts +319 -0
  8. package/dist/ItemCategory-14816deb.d.ts +99 -0
  9. package/dist/ItemCategory-768179bd.d.ts +99 -0
  10. package/dist/ItemErrorDetails-1bd2821e.d.ts +3137 -0
  11. package/dist/ItemErrorDetails-e6e400aa.d.ts +3197 -0
  12. package/dist/ItemErrorDetailsResult-0b4a628c.d.ts +3032 -0
  13. package/dist/ItemErrorDetailsResult-859368da.d.ts +3032 -0
  14. package/dist/ItemErrorDetailsResult-9ac97c24.d.ts +3032 -0
  15. package/dist/ItemErrorDetailsResult-c62caeae.d.ts +3092 -0
  16. package/dist/TradingPartnerAccessByCompanyId-29866586.d.ts +97 -0
  17. package/dist/TradingPartnerAccessByCompanyId-43f83fb6.d.ts +130 -0
  18. package/dist/TradingPartnerAccessByCompanyId-479e3e57.d.ts +124 -0
  19. package/dist/TradingPartnerAccessByCompanyId-53b868a8.d.ts +125 -0
  20. package/dist/TradingPartnerAccessByCompanyId-b227f0c5.d.ts +125 -0
  21. package/dist/TradingPartnerAccessByCompanyId-e7a1d443.d.ts +129 -0
  22. package/dist/asstClient-f6a1693a.d.ts +29 -0
  23. package/dist/chunk-3FMMM7IS.js +80 -0
  24. package/dist/chunk-4WER3ZLX.js +4576 -0
  25. package/dist/chunk-6ZNFOWTV.js +78 -0
  26. package/dist/chunk-7HCJJATJ.js +40 -0
  27. package/dist/chunk-B7B2ACF4.js +3794 -0
  28. package/dist/chunk-D3ML6E4G.js +3787 -0
  29. package/dist/chunk-ETURPA7W.js +326 -0
  30. package/dist/chunk-F3KCLICG.js +77 -0
  31. package/dist/chunk-FS6LHGAR.js +87 -0
  32. package/dist/chunk-G36FM5OA.js +327 -0
  33. package/dist/chunk-GDFX3WTX.js +78 -0
  34. package/dist/chunk-IHIEBLQV.js +4576 -0
  35. package/dist/chunk-ITWMRXLD.js +328 -0
  36. package/dist/chunk-LGP22FRF.js +0 -0
  37. package/dist/chunk-LYMGZWSR.js +80 -0
  38. package/dist/chunk-N2OYWNHF.js +80 -0
  39. package/dist/chunk-OA6PO3QG.js +78 -0
  40. package/dist/chunk-OBXZRDPY.js +77 -0
  41. package/dist/chunk-OI47EFQH.js +82 -0
  42. package/dist/chunk-RNUSCCKB.js +183 -0
  43. package/dist/chunk-RRGAJ4ZS.js +4576 -0
  44. package/dist/chunk-T3UCSW2B.js +81 -0
  45. package/dist/chunk-XMNYZGXF.js +84 -0
  46. package/dist/chunk-YCQUK6KV.js +85 -0
  47. package/dist/index.cjs +10 -8
  48. package/dist/index.d.ts +4 -4
  49. package/dist/index.js +2 -2
  50. package/dist/msw.cjs +4 -4
  51. package/dist/msw.d.ts +41 -25
  52. package/dist/msw.js +2 -2
  53. package/dist/zod.cjs +4 -4
  54. package/dist/zod.d.ts +2 -2
  55. package/dist/zod.js +1 -1
  56. package/package.json +1 -1
@@ -0,0 +1,134 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const importSchema: z.ZodObject<{
4
+ count: z.ZodNumber;
5
+ imports: z.ZodArray<z.ZodObject<{
6
+ completedAt: z.ZodString;
7
+ errorCount: z.ZodNumber;
8
+ importId: z.ZodNumber;
9
+ name: z.ZodString;
10
+ startedAt: z.ZodString;
11
+ status: z.ZodString;
12
+ uploadedAt: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ completedAt: string;
15
+ errorCount: number;
16
+ importId: number;
17
+ name: string;
18
+ startedAt: string;
19
+ status: string;
20
+ uploadedAt: string;
21
+ }, {
22
+ completedAt: string;
23
+ errorCount: number;
24
+ importId: number;
25
+ name: string;
26
+ startedAt: string;
27
+ status: string;
28
+ uploadedAt: string;
29
+ }>, "many">;
30
+ }, "strip", z.ZodTypeAny, {
31
+ count: number;
32
+ imports: {
33
+ completedAt: string;
34
+ errorCount: number;
35
+ importId: number;
36
+ name: string;
37
+ startedAt: string;
38
+ status: string;
39
+ uploadedAt: string;
40
+ }[];
41
+ }, {
42
+ count: number;
43
+ imports: {
44
+ completedAt: string;
45
+ errorCount: number;
46
+ importId: number;
47
+ name: string;
48
+ startedAt: string;
49
+ status: string;
50
+ uploadedAt: string;
51
+ }[];
52
+ }>;
53
+ type Import = z.infer<typeof importSchema>;
54
+
55
+ declare const importErrorsSchema: z.ZodObject<{
56
+ count: z.ZodNumber;
57
+ errors: z.ZodArray<z.ZodObject<{
58
+ attribute: z.ZodString;
59
+ description: z.ZodString;
60
+ importErrorId: z.ZodNumber;
61
+ row: z.ZodNumber;
62
+ }, "strip", z.ZodTypeAny, {
63
+ attribute: string;
64
+ description: string;
65
+ importErrorId: number;
66
+ row: number;
67
+ }, {
68
+ attribute: string;
69
+ description: string;
70
+ importErrorId: number;
71
+ row: number;
72
+ }>, "many">;
73
+ hasNext: z.ZodBoolean;
74
+ importId: z.ZodNumber;
75
+ totalCount: z.ZodNumber;
76
+ }, "strip", z.ZodTypeAny, {
77
+ importId: number;
78
+ count: number;
79
+ errors: {
80
+ attribute: string;
81
+ description: string;
82
+ importErrorId: number;
83
+ row: number;
84
+ }[];
85
+ hasNext: boolean;
86
+ totalCount: number;
87
+ }, {
88
+ importId: number;
89
+ count: number;
90
+ errors: {
91
+ attribute: string;
92
+ description: string;
93
+ importErrorId: number;
94
+ row: number;
95
+ }[];
96
+ hasNext: boolean;
97
+ totalCount: number;
98
+ }>;
99
+ type ImportErrors = z.infer<typeof importErrorsSchema>;
100
+
101
+ declare const importsStatusSchema: z.ZodObject<{
102
+ completedAt: z.ZodOptional<z.ZodString>;
103
+ docInEventId: z.ZodOptional<z.ZodString>;
104
+ errorCount: z.ZodOptional<z.ZodNumber>;
105
+ importId: z.ZodNumber;
106
+ invalidItemCount: z.ZodOptional<z.ZodNumber>;
107
+ name: z.ZodString;
108
+ status: z.ZodEnum<["QUEUED_FOR_IMPORT", "IN_PROGRESS", "DOC_FAILED", "VALIDATION_FAILED", "COMPLETED"]>;
109
+ totalItemCount: z.ZodOptional<z.ZodNumber>;
110
+ validItemCount: z.ZodOptional<z.ZodNumber>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ importId: number;
113
+ name: string;
114
+ status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
115
+ completedAt?: string | undefined;
116
+ docInEventId?: string | undefined;
117
+ errorCount?: number | undefined;
118
+ invalidItemCount?: number | undefined;
119
+ totalItemCount?: number | undefined;
120
+ validItemCount?: number | undefined;
121
+ }, {
122
+ importId: number;
123
+ name: string;
124
+ status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
125
+ completedAt?: string | undefined;
126
+ docInEventId?: string | undefined;
127
+ errorCount?: number | undefined;
128
+ invalidItemCount?: number | undefined;
129
+ totalItemCount?: number | undefined;
130
+ validItemCount?: number | undefined;
131
+ }>;
132
+ type ImportsStatus = z.infer<typeof importsStatusSchema>;
133
+
134
+ export { Import as I, ImportsStatus as a, ImportErrors as b, importSchema as c, importsStatusSchema as d, importErrorsSchema as i };
@@ -0,0 +1,51 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const importDetailSchema: z.ZodObject<{
4
+ completedAt: z.ZodString;
5
+ errorCount: z.ZodNumber;
6
+ importId: z.ZodNumber;
7
+ name: z.ZodString;
8
+ startedAt: z.ZodString;
9
+ status: z.ZodString;
10
+ uploadedAt: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ completedAt: string;
13
+ errorCount: number;
14
+ importId: number;
15
+ name: string;
16
+ startedAt: string;
17
+ status: string;
18
+ uploadedAt: string;
19
+ }, {
20
+ completedAt: string;
21
+ errorCount: number;
22
+ importId: number;
23
+ name: string;
24
+ startedAt: string;
25
+ status: string;
26
+ uploadedAt: string;
27
+ }>;
28
+ type ImportDetails = z.infer<typeof importDetailSchema>;
29
+
30
+ declare const importErrorSchema: z.ZodObject<{
31
+ attribute: z.ZodString;
32
+ description: z.ZodString;
33
+ importErrorId: z.ZodNumber;
34
+ row: z.ZodNumber;
35
+ }, "strip", z.ZodTypeAny, {
36
+ attribute: string;
37
+ description: string;
38
+ importErrorId: number;
39
+ row: number;
40
+ }, {
41
+ attribute: string;
42
+ description: string;
43
+ importErrorId: number;
44
+ row: number;
45
+ }>;
46
+ type ImportError = z.infer<typeof importErrorSchema>;
47
+
48
+ declare const importStatusEnumSchema: z.ZodEnum<["QUEUED_FOR_IMPORT", "IN_PROGRESS", "DOC_FAILED", "VALIDATION_FAILED", "COMPLETED"]>;
49
+ type ImportStatusEnum = z.infer<typeof importStatusEnumSchema>;
50
+
51
+ export { ImportDetails as I, ImportError as a, ImportStatusEnum as b, importErrorSchema as c, importStatusEnumSchema as d, importDetailSchema as i };
@@ -0,0 +1,275 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const importSchema: z.ZodObject<{
4
+ count: z.ZodNumber;
5
+ imports: z.ZodArray<z.ZodObject<{
6
+ completedAt: z.ZodNullable<z.ZodNumber>;
7
+ errorCount: z.ZodNumber;
8
+ importId: z.ZodNumber;
9
+ name: z.ZodString;
10
+ startedAt: z.ZodNullable<z.ZodString>;
11
+ status: z.ZodString;
12
+ uploadedAt: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ completedAt: number | null;
15
+ status: string;
16
+ errorCount: number;
17
+ importId: number;
18
+ name: string;
19
+ startedAt: string | null;
20
+ uploadedAt: string;
21
+ }, {
22
+ completedAt: number | null;
23
+ status: string;
24
+ errorCount: number;
25
+ importId: number;
26
+ name: string;
27
+ startedAt: string | null;
28
+ uploadedAt: string;
29
+ }>, "many">;
30
+ }, "strip", z.ZodTypeAny, {
31
+ count: number;
32
+ imports: {
33
+ completedAt: number | null;
34
+ status: string;
35
+ errorCount: number;
36
+ importId: number;
37
+ name: string;
38
+ startedAt: string | null;
39
+ uploadedAt: string;
40
+ }[];
41
+ }, {
42
+ count: number;
43
+ imports: {
44
+ completedAt: number | null;
45
+ status: string;
46
+ errorCount: number;
47
+ importId: number;
48
+ name: string;
49
+ startedAt: string | null;
50
+ uploadedAt: string;
51
+ }[];
52
+ }>;
53
+ type Import = z.infer<typeof importSchema>;
54
+
55
+ declare const importErrorsSchema: z.ZodObject<{
56
+ count: z.ZodNumber;
57
+ errors: z.ZodArray<z.ZodObject<{
58
+ attribute: z.ZodString;
59
+ description: z.ZodString;
60
+ importErrorId: z.ZodNumber;
61
+ row: z.ZodNumber;
62
+ }, "strip", z.ZodTypeAny, {
63
+ attribute: string;
64
+ description: string;
65
+ importErrorId: number;
66
+ row: number;
67
+ }, {
68
+ attribute: string;
69
+ description: string;
70
+ importErrorId: number;
71
+ row: number;
72
+ }>, "many">;
73
+ hasNext: z.ZodBoolean;
74
+ importId: z.ZodNumber;
75
+ totalCount: z.ZodNumber;
76
+ }, "strip", z.ZodTypeAny, {
77
+ importId: number;
78
+ count: number;
79
+ errors: {
80
+ attribute: string;
81
+ description: string;
82
+ importErrorId: number;
83
+ row: number;
84
+ }[];
85
+ hasNext: boolean;
86
+ totalCount: number;
87
+ }, {
88
+ importId: number;
89
+ count: number;
90
+ errors: {
91
+ attribute: string;
92
+ description: string;
93
+ importErrorId: number;
94
+ row: number;
95
+ }[];
96
+ hasNext: boolean;
97
+ totalCount: number;
98
+ }>;
99
+ type ImportErrors = z.infer<typeof importErrorsSchema>;
100
+
101
+ declare const importsStatusSchema: z.ZodObject<{
102
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ docInEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ errorCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
105
+ importId: z.ZodNumber;
106
+ invalidItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
107
+ name: z.ZodString;
108
+ status: z.ZodEnum<["QUEUED_FOR_IMPORT", "IN_PROGRESS", "DOC_FAILED", "VALIDATION_FAILED", "COMPLETED"]>;
109
+ totalItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
110
+ validItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
113
+ importId: number;
114
+ name: string;
115
+ completedAt?: string | null | undefined;
116
+ docInEventId?: string | null | undefined;
117
+ errorCount?: number | null | undefined;
118
+ invalidItemCount?: number | null | undefined;
119
+ totalItemCount?: number | null | undefined;
120
+ validItemCount?: number | null | undefined;
121
+ }, {
122
+ status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
123
+ importId: number;
124
+ name: string;
125
+ completedAt?: string | null | undefined;
126
+ docInEventId?: string | null | undefined;
127
+ errorCount?: number | null | undefined;
128
+ invalidItemCount?: number | null | undefined;
129
+ totalItemCount?: number | null | undefined;
130
+ validItemCount?: number | null | undefined;
131
+ }>;
132
+ type ImportsStatus = z.infer<typeof importsStatusSchema>;
133
+
134
+ declare const exportSchema: z.ZodObject<{
135
+ exportName: z.ZodString;
136
+ exportDescription: z.ZodString;
137
+ isActive: z.ZodBoolean;
138
+ exportType: z.ZodEnum<["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]>;
139
+ exportFrequency: z.ZodEnum<["IMMEDIATE", "ONETIME", "DAILY", "WEEKLY", "MONTHLY"]>;
140
+ includeValidAttributes: z.ZodOptional<z.ZodBoolean>;
141
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
142
+ dayOfWeek: z.ZodOptional<z.ZodEnum<["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]>>;
143
+ hourOfDay: z.ZodOptional<z.ZodNumber>;
144
+ date: z.ZodOptional<z.ZodString>;
145
+ catalogIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
146
+ itemInfoIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
147
+ excludeItemInfoIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
148
+ selectionCodeIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
149
+ productCodeIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
150
+ productTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
151
+ deliveryType: z.ZodOptional<z.ZodString>;
152
+ spreadsheetTemplateId: z.ZodOptional<z.ZodNumber>;
153
+ emailAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
154
+ subjectLine: z.ZodOptional<z.ZodString>;
155
+ additionalLocales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ exportName: string;
158
+ exportDescription: string;
159
+ isActive: boolean;
160
+ exportType: "ALL" | "UPDATES" | "DELTAS_UPDATE" | "NO_BUYER_PART_NUMBER";
161
+ exportFrequency: "IMMEDIATE" | "ONETIME" | "DAILY" | "WEEKLY" | "MONTHLY";
162
+ includeValidAttributes?: boolean | undefined;
163
+ dayOfMonth?: number | undefined;
164
+ dayOfWeek?: "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN" | undefined;
165
+ hourOfDay?: number | undefined;
166
+ date?: string | undefined;
167
+ catalogIds?: number[] | undefined;
168
+ itemInfoIds?: number[] | undefined;
169
+ excludeItemInfoIds?: number[] | undefined;
170
+ selectionCodeIds?: number[] | undefined;
171
+ productCodeIds?: number[] | undefined;
172
+ productTypes?: string[] | undefined;
173
+ deliveryType?: string | undefined;
174
+ spreadsheetTemplateId?: number | undefined;
175
+ emailAddresses?: string[] | undefined;
176
+ subjectLine?: string | undefined;
177
+ additionalLocales?: string[] | undefined;
178
+ }, {
179
+ exportName: string;
180
+ exportDescription: string;
181
+ isActive: boolean;
182
+ exportType: "ALL" | "UPDATES" | "DELTAS_UPDATE" | "NO_BUYER_PART_NUMBER";
183
+ exportFrequency: "IMMEDIATE" | "ONETIME" | "DAILY" | "WEEKLY" | "MONTHLY";
184
+ includeValidAttributes?: boolean | undefined;
185
+ dayOfMonth?: number | undefined;
186
+ dayOfWeek?: "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN" | undefined;
187
+ hourOfDay?: number | undefined;
188
+ date?: string | undefined;
189
+ catalogIds?: number[] | undefined;
190
+ itemInfoIds?: number[] | undefined;
191
+ excludeItemInfoIds?: number[] | undefined;
192
+ selectionCodeIds?: number[] | undefined;
193
+ productCodeIds?: number[] | undefined;
194
+ productTypes?: string[] | undefined;
195
+ deliveryType?: string | undefined;
196
+ spreadsheetTemplateId?: number | undefined;
197
+ emailAddresses?: string[] | undefined;
198
+ subjectLine?: string | undefined;
199
+ additionalLocales?: string[] | undefined;
200
+ }>;
201
+ type Export = z.infer<typeof exportSchema>;
202
+
203
+ declare const itemCategoriesSearchSchema: z.ZodObject<{
204
+ count: z.ZodNumber;
205
+ data: z.ZodArray<z.ZodObject<{
206
+ categoryid: z.ZodNumber;
207
+ companyId: z.ZodNumber;
208
+ name: z.ZodString;
209
+ isActive: z.ZodNumber;
210
+ createdDate: z.ZodNullable<z.ZodNumber>;
211
+ categorytimestamp: z.ZodNullable<z.ZodNumber>;
212
+ typeId: z.ZodNumber;
213
+ type: z.ZodString;
214
+ categorykey: z.ZodOptional<z.ZodString>;
215
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ categoryCatalogName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ type: string;
219
+ name: string;
220
+ isActive: number;
221
+ createdDate: number | null;
222
+ companyId: number;
223
+ categoryid: number;
224
+ categorytimestamp: number | null;
225
+ typeId: number;
226
+ categorykey?: string | undefined;
227
+ description?: string | null | undefined;
228
+ categoryCatalogName?: string | null | undefined;
229
+ }, {
230
+ type: string;
231
+ name: string;
232
+ isActive: number;
233
+ createdDate: number | null;
234
+ companyId: number;
235
+ categoryid: number;
236
+ categorytimestamp: number | null;
237
+ typeId: number;
238
+ categorykey?: string | undefined;
239
+ description?: string | null | undefined;
240
+ categoryCatalogName?: string | null | undefined;
241
+ }>, "many">;
242
+ }, "strip", z.ZodTypeAny, {
243
+ data: {
244
+ type: string;
245
+ name: string;
246
+ isActive: number;
247
+ createdDate: number | null;
248
+ companyId: number;
249
+ categoryid: number;
250
+ categorytimestamp: number | null;
251
+ typeId: number;
252
+ categorykey?: string | undefined;
253
+ description?: string | null | undefined;
254
+ categoryCatalogName?: string | null | undefined;
255
+ }[];
256
+ count: number;
257
+ }, {
258
+ data: {
259
+ type: string;
260
+ name: string;
261
+ isActive: number;
262
+ createdDate: number | null;
263
+ companyId: number;
264
+ categoryid: number;
265
+ categorytimestamp: number | null;
266
+ typeId: number;
267
+ categorykey?: string | undefined;
268
+ description?: string | null | undefined;
269
+ categoryCatalogName?: string | null | undefined;
270
+ }[];
271
+ count: number;
272
+ }>;
273
+ type ItemCategoriesSearch = z.infer<typeof itemCategoriesSearchSchema>;
274
+
275
+ export { Export as E, Import as I, ImportsStatus as a, ItemCategoriesSearch as b, ImportErrors as c, importSchema as d, importsStatusSchema as e, exportSchema as f, itemCategoriesSearchSchema as g, importErrorsSchema as i };