@spscommerce/asst-api 0.0.1-beta.9 → 0.0.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 (61) hide show
  1. package/dist/{ItemErrorDetailsResult-c62caeae.d.ts → ItemErrorDetailsResult-317fbe3e.d.ts} +166 -156
  2. package/dist/ItemStatusResponse-7f871d5a.d.ts +91 -0
  3. package/dist/{chunk-IHIEBLQV.js → chunk-HEFVXX2V.js} +82 -23
  4. package/dist/{chunk-ITWMRXLD.js → chunk-HG7MCO42.js} +77 -16
  5. package/dist/index.cjs +148 -36
  6. package/dist/index.d.ts +119 -6
  7. package/dist/index.js +4 -2
  8. package/dist/msw.cjs +158 -29
  9. package/dist/msw.d.ts +110 -69
  10. package/dist/msw.js +82 -11
  11. package/dist/{ItemErrorDetails-e6e400aa.d.ts → zod-1c4396f8.d.ts} +179 -103
  12. package/dist/zod.cjs +84 -22
  13. package/dist/zod.d.ts +2 -2
  14. package/dist/zod.js +9 -1
  15. package/package.json +1 -1
  16. package/dist/ImportsStatus-52d26b01.d.ts +0 -134
  17. package/dist/ImportsStatusEnum-22c03a0b.d.ts +0 -51
  18. package/dist/ItemCategoriesSearch-1bb945de.d.ts +0 -275
  19. package/dist/ItemCategoriesSearch-44b87663.d.ts +0 -318
  20. package/dist/ItemCategoriesSearch-e0870a34.d.ts +0 -318
  21. package/dist/ItemCategoriesSearch-e3298650.d.ts +0 -319
  22. package/dist/ItemCategoriesSearch-ec43591f.d.ts +0 -319
  23. package/dist/ItemCategory-14816deb.d.ts +0 -99
  24. package/dist/ItemCategory-768179bd.d.ts +0 -99
  25. package/dist/ItemErrorDetails-1614b511.d.ts +0 -3137
  26. package/dist/ItemErrorDetails-1bd2821e.d.ts +0 -3137
  27. package/dist/ItemErrorDetailsResult-0b4a628c.d.ts +0 -3032
  28. package/dist/ItemErrorDetailsResult-859368da.d.ts +0 -3032
  29. package/dist/ItemErrorDetailsResult-9ac97c24.d.ts +0 -3032
  30. package/dist/ItemErrorDetailsResult-c12c4eac.d.ts +0 -3032
  31. package/dist/TradingPartnerAccessByCompanyId-29866586.d.ts +0 -97
  32. package/dist/TradingPartnerAccessByCompanyId-43f83fb6.d.ts +0 -130
  33. package/dist/TradingPartnerAccessByCompanyId-479e3e57.d.ts +0 -124
  34. package/dist/TradingPartnerAccessByCompanyId-53b868a8.d.ts +0 -125
  35. package/dist/TradingPartnerAccessByCompanyId-b227f0c5.d.ts +0 -125
  36. package/dist/TradingPartnerAccessByCompanyId-e7a1d443.d.ts +0 -129
  37. package/dist/asstClient-f6a1693a.d.ts +0 -29
  38. package/dist/chunk-3FMMM7IS.js +0 -80
  39. package/dist/chunk-3JRE7YYE.js +0 -4576
  40. package/dist/chunk-4WER3ZLX.js +0 -4576
  41. package/dist/chunk-6ZNFOWTV.js +0 -78
  42. package/dist/chunk-7HCJJATJ.js +0 -40
  43. package/dist/chunk-B7B2ACF4.js +0 -3794
  44. package/dist/chunk-D3ML6E4G.js +0 -3787
  45. package/dist/chunk-ETURPA7W.js +0 -326
  46. package/dist/chunk-F3KCLICG.js +0 -77
  47. package/dist/chunk-FS6LHGAR.js +0 -87
  48. package/dist/chunk-G36FM5OA.js +0 -327
  49. package/dist/chunk-GDFX3WTX.js +0 -78
  50. package/dist/chunk-LGP22FRF.js +0 -0
  51. package/dist/chunk-LYMGZWSR.js +0 -80
  52. package/dist/chunk-N2OYWNHF.js +0 -80
  53. package/dist/chunk-OA6PO3QG.js +0 -78
  54. package/dist/chunk-OBXZRDPY.js +0 -77
  55. package/dist/chunk-OI47EFQH.js +0 -82
  56. package/dist/chunk-OVOZIZA2.js +0 -326
  57. package/dist/chunk-RNUSCCKB.js +0 -183
  58. package/dist/chunk-RRGAJ4ZS.js +0 -4576
  59. package/dist/chunk-T3UCSW2B.js +0 -81
  60. package/dist/chunk-XMNYZGXF.js +0 -84
  61. package/dist/chunk-YCQUK6KV.js +0 -85
@@ -1,318 +0,0 @@
1
- import * as ky_universal from 'ky-universal';
2
- import { Options } from 'ky';
3
- import { z } from 'zod';
4
-
5
- declare const baseUrlsSchema: z.ZodObject<{
6
- local: z.ZodLiteral<"https://localhost:8443">;
7
- test: z.ZodLiteral<"https://integration.api.spscommerce.com/assortment/gateway">;
8
- prod: z.ZodLiteral<"https://api.spscommerce.com/assortment/gateway">;
9
- }, "strip", z.ZodTypeAny, {
10
- local: "https://localhost:8443";
11
- test: "https://integration.api.spscommerce.com/assortment/gateway";
12
- prod: "https://api.spscommerce.com/assortment/gateway";
13
- }, {
14
- local: "https://localhost:8443";
15
- test: "https://integration.api.spscommerce.com/assortment/gateway";
16
- prod: "https://api.spscommerce.com/assortment/gateway";
17
- }>;
18
- type BaseUrls = z.infer<typeof baseUrlsSchema>;
19
- declare const BASE_URLS: BaseUrls;
20
- declare const envSchema: z.ZodEnum<["local", "test", "prod"]>;
21
- type Env = z.infer<typeof envSchema>;
22
- type AsstUrl = BaseUrls[Env];
23
- interface AsstClientOptions extends Options {
24
- prefixUrl?: AsstUrl;
25
- }
26
- type Input = string | URL | Request;
27
- declare class AsstClient {
28
- #private;
29
- constructor(options: AsstClientOptions);
30
- updateConfig(options: AsstClientOptions): void;
31
- getBaseUrl(): AsstUrl;
32
- /**
33
- * Subscribe to config changes. The callback will be immediately invoked with the current config.
34
- * @param subscriptionCallback Function that will be called with the new config every time it is changed
35
- */
36
- subscribeToConfigChange(subscriptionCallback: (newConfig: AsstClientOptions) => void): void;
37
- unsubscribeToConfigChange(): void;
38
- get(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
39
- post(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
40
- put(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
41
- patch(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
42
- head(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
43
- delete(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
44
- }
45
-
46
- declare const importSchema: z.ZodObject<{
47
- count: z.ZodNumber;
48
- imports: z.ZodArray<z.ZodObject<{
49
- completedAt: z.ZodNullable<z.ZodNumber>;
50
- errorCount: z.ZodNumber;
51
- importId: z.ZodNumber;
52
- name: z.ZodString;
53
- startedAt: z.ZodNullable<z.ZodString>;
54
- status: z.ZodString;
55
- uploadedAt: z.ZodString;
56
- }, "strip", z.ZodTypeAny, {
57
- status: string;
58
- completedAt: number | null;
59
- errorCount: number;
60
- importId: number;
61
- name: string;
62
- startedAt: string | null;
63
- uploadedAt: string;
64
- }, {
65
- status: string;
66
- completedAt: number | null;
67
- errorCount: number;
68
- importId: number;
69
- name: string;
70
- startedAt: string | null;
71
- uploadedAt: string;
72
- }>, "many">;
73
- }, "strip", z.ZodTypeAny, {
74
- count: number;
75
- imports: {
76
- status: string;
77
- completedAt: number | null;
78
- errorCount: number;
79
- importId: number;
80
- name: string;
81
- startedAt: string | null;
82
- uploadedAt: string;
83
- }[];
84
- }, {
85
- count: number;
86
- imports: {
87
- status: string;
88
- completedAt: number | null;
89
- errorCount: number;
90
- importId: number;
91
- name: string;
92
- startedAt: string | null;
93
- uploadedAt: string;
94
- }[];
95
- }>;
96
- type Import = z.infer<typeof importSchema>;
97
-
98
- declare const importErrorsSchema: z.ZodObject<{
99
- count: z.ZodNumber;
100
- errors: z.ZodArray<z.ZodObject<{
101
- attribute: z.ZodString;
102
- description: z.ZodString;
103
- importErrorId: z.ZodNumber;
104
- row: z.ZodNumber;
105
- }, "strip", z.ZodTypeAny, {
106
- attribute: string;
107
- description: string;
108
- importErrorId: number;
109
- row: number;
110
- }, {
111
- attribute: string;
112
- description: string;
113
- importErrorId: number;
114
- row: number;
115
- }>, "many">;
116
- hasNext: z.ZodBoolean;
117
- importId: z.ZodNumber;
118
- totalCount: z.ZodNumber;
119
- }, "strip", z.ZodTypeAny, {
120
- importId: number;
121
- count: number;
122
- errors: {
123
- attribute: string;
124
- description: string;
125
- importErrorId: number;
126
- row: number;
127
- }[];
128
- hasNext: boolean;
129
- totalCount: number;
130
- }, {
131
- importId: number;
132
- count: number;
133
- errors: {
134
- attribute: string;
135
- description: string;
136
- importErrorId: number;
137
- row: number;
138
- }[];
139
- hasNext: boolean;
140
- totalCount: number;
141
- }>;
142
- type ImportErrors = z.infer<typeof importErrorsSchema>;
143
-
144
- declare const importsStatusSchema: z.ZodObject<{
145
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
- docInEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
- errorCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
148
- importId: z.ZodNumber;
149
- invalidItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
150
- name: z.ZodString;
151
- status: z.ZodEnum<["QUEUED_FOR_IMPORT", "IN_PROGRESS", "DOC_FAILED", "VALIDATION_FAILED", "COMPLETED"]>;
152
- totalItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
153
- validItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
- }, "strip", z.ZodTypeAny, {
155
- status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
156
- importId: number;
157
- name: string;
158
- completedAt?: string | null | undefined;
159
- docInEventId?: string | null | undefined;
160
- errorCount?: number | null | undefined;
161
- invalidItemCount?: number | null | undefined;
162
- totalItemCount?: number | null | undefined;
163
- validItemCount?: number | null | undefined;
164
- }, {
165
- status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
166
- importId: number;
167
- name: string;
168
- completedAt?: string | null | undefined;
169
- docInEventId?: string | null | undefined;
170
- errorCount?: number | null | undefined;
171
- invalidItemCount?: number | null | undefined;
172
- totalItemCount?: number | null | undefined;
173
- validItemCount?: number | null | undefined;
174
- }>;
175
- type ImportsStatus = z.infer<typeof importsStatusSchema>;
176
-
177
- declare const exportSchema: z.ZodObject<{
178
- exportName: z.ZodString;
179
- exportDescription: z.ZodString;
180
- isActive: z.ZodBoolean;
181
- exportType: z.ZodEnum<["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]>;
182
- exportFrequency: z.ZodEnum<["IMMEDIATE", "ONETIME", "DAILY", "WEEKLY", "MONTHLY"]>;
183
- includeValidAttributes: z.ZodOptional<z.ZodBoolean>;
184
- dayOfMonth: z.ZodOptional<z.ZodNumber>;
185
- dayOfWeek: z.ZodOptional<z.ZodEnum<["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]>>;
186
- hourOfDay: z.ZodOptional<z.ZodNumber>;
187
- date: z.ZodOptional<z.ZodString>;
188
- catalogIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
189
- itemInfoIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
190
- excludeItemInfoIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
191
- selectionCodeIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
192
- productCodeIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
193
- productTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
194
- deliveryType: z.ZodOptional<z.ZodString>;
195
- spreadsheetTemplateId: z.ZodOptional<z.ZodNumber>;
196
- emailAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
197
- subjectLine: z.ZodOptional<z.ZodString>;
198
- additionalLocales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
199
- }, "strip", z.ZodTypeAny, {
200
- exportName: string;
201
- exportDescription: string;
202
- isActive: boolean;
203
- exportType: "ALL" | "UPDATES" | "DELTAS_UPDATE" | "NO_BUYER_PART_NUMBER";
204
- exportFrequency: "IMMEDIATE" | "ONETIME" | "DAILY" | "WEEKLY" | "MONTHLY";
205
- includeValidAttributes?: boolean | undefined;
206
- dayOfMonth?: number | undefined;
207
- dayOfWeek?: "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN" | undefined;
208
- hourOfDay?: number | undefined;
209
- date?: string | undefined;
210
- catalogIds?: number[] | undefined;
211
- itemInfoIds?: number[] | undefined;
212
- excludeItemInfoIds?: number[] | undefined;
213
- selectionCodeIds?: number[] | undefined;
214
- productCodeIds?: number[] | undefined;
215
- productTypes?: string[] | undefined;
216
- deliveryType?: string | undefined;
217
- spreadsheetTemplateId?: number | undefined;
218
- emailAddresses?: string[] | undefined;
219
- subjectLine?: string | undefined;
220
- additionalLocales?: string[] | undefined;
221
- }, {
222
- exportName: string;
223
- exportDescription: string;
224
- isActive: boolean;
225
- exportType: "ALL" | "UPDATES" | "DELTAS_UPDATE" | "NO_BUYER_PART_NUMBER";
226
- exportFrequency: "IMMEDIATE" | "ONETIME" | "DAILY" | "WEEKLY" | "MONTHLY";
227
- includeValidAttributes?: boolean | undefined;
228
- dayOfMonth?: number | undefined;
229
- dayOfWeek?: "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN" | undefined;
230
- hourOfDay?: number | undefined;
231
- date?: string | undefined;
232
- catalogIds?: number[] | undefined;
233
- itemInfoIds?: number[] | undefined;
234
- excludeItemInfoIds?: number[] | undefined;
235
- selectionCodeIds?: number[] | undefined;
236
- productCodeIds?: number[] | undefined;
237
- productTypes?: string[] | undefined;
238
- deliveryType?: string | undefined;
239
- spreadsheetTemplateId?: number | undefined;
240
- emailAddresses?: string[] | undefined;
241
- subjectLine?: string | undefined;
242
- additionalLocales?: string[] | undefined;
243
- }>;
244
- type Export = z.infer<typeof exportSchema>;
245
-
246
- declare const itemCategoriesSearchSchema: z.ZodObject<{
247
- count: z.ZodNumber;
248
- data: z.ZodArray<z.ZodObject<{
249
- categoryid: z.ZodNumber;
250
- companyId: z.ZodNumber;
251
- name: z.ZodString;
252
- isActive: z.ZodNumber;
253
- createdDate: z.ZodNullable<z.ZodNumber>;
254
- categorytimestamp: z.ZodNullable<z.ZodNumber>;
255
- typeId: z.ZodNumber;
256
- type: z.ZodString;
257
- categorykey: z.ZodOptional<z.ZodString>;
258
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
- categoryCatalogName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
260
- }, "strip", z.ZodTypeAny, {
261
- type: string;
262
- name: string;
263
- isActive: number;
264
- createdDate: number | null;
265
- companyId: number;
266
- categoryid: number;
267
- categorytimestamp: number | null;
268
- typeId: number;
269
- categorykey?: string | undefined;
270
- description?: string | null | undefined;
271
- categoryCatalogName?: string | null | undefined;
272
- }, {
273
- type: string;
274
- name: string;
275
- isActive: number;
276
- createdDate: number | null;
277
- companyId: number;
278
- categoryid: number;
279
- categorytimestamp: number | null;
280
- typeId: number;
281
- categorykey?: string | undefined;
282
- description?: string | null | undefined;
283
- categoryCatalogName?: string | null | undefined;
284
- }>, "many">;
285
- }, "strip", z.ZodTypeAny, {
286
- data: {
287
- type: string;
288
- name: string;
289
- isActive: number;
290
- createdDate: number | null;
291
- companyId: number;
292
- categoryid: number;
293
- categorytimestamp: number | null;
294
- typeId: number;
295
- categorykey?: string | undefined;
296
- description?: string | null | undefined;
297
- categoryCatalogName?: string | null | undefined;
298
- }[];
299
- count: number;
300
- }, {
301
- data: {
302
- type: string;
303
- name: string;
304
- isActive: number;
305
- createdDate: number | null;
306
- companyId: number;
307
- categoryid: number;
308
- categorytimestamp: number | null;
309
- typeId: number;
310
- categorykey?: string | undefined;
311
- description?: string | null | undefined;
312
- categoryCatalogName?: string | null | undefined;
313
- }[];
314
- count: number;
315
- }>;
316
- type ItemCategoriesSearch = z.infer<typeof itemCategoriesSearchSchema>;
317
-
318
- export { AsstClient as A, BASE_URLS as B, Export as E, Import as I, ImportsStatus as a, ItemCategoriesSearch as b, AsstClientOptions as c, AsstUrl as d, Env as e, ImportErrors as f, envSchema as g, importSchema as h, importErrorsSchema as i, importsStatusSchema as j, exportSchema as k, itemCategoriesSearchSchema as l };
@@ -1,318 +0,0 @@
1
- import * as ky_universal from 'ky-universal';
2
- import { Options } from 'ky';
3
- import { z } from 'zod';
4
-
5
- declare const baseUrlsSchema: z.ZodObject<{
6
- local: z.ZodLiteral<"https://localhost:8443">;
7
- test: z.ZodLiteral<"https://integration.api.spscommerce.com/assortment/gateway">;
8
- prod: z.ZodLiteral<"https://api.spscommerce.com/assortment/gateway">;
9
- }, "strip", z.ZodTypeAny, {
10
- local: "https://localhost:8443";
11
- test: "https://integration.api.spscommerce.com/assortment/gateway";
12
- prod: "https://api.spscommerce.com/assortment/gateway";
13
- }, {
14
- local: "https://localhost:8443";
15
- test: "https://integration.api.spscommerce.com/assortment/gateway";
16
- prod: "https://api.spscommerce.com/assortment/gateway";
17
- }>;
18
- type BaseUrls = z.infer<typeof baseUrlsSchema>;
19
- declare const BASE_URLS: BaseUrls;
20
- declare const envSchema: z.ZodEnum<["local", "test", "prod"]>;
21
- type Env = z.infer<typeof envSchema>;
22
- type AsstUrl = BaseUrls[Env];
23
- interface AsstClientOptions extends Options {
24
- prefixUrl?: AsstUrl;
25
- }
26
- type Input = string | URL | Request;
27
- declare class AsstClient {
28
- #private;
29
- constructor(options?: AsstClientOptions);
30
- updateConfig(options: AsstClientOptions): void;
31
- getBaseUrl(): AsstUrl;
32
- /**
33
- * Subscribe to config changes. The callback will be immediately invoked with the current config.
34
- * @param subscriptionCallback Function that will be called with the new config every time it is changed
35
- */
36
- subscribeToConfigChange(subscriptionCallback: (newConfig: AsstClientOptions) => void): void;
37
- unsubscribeToConfigChange(): void;
38
- get(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
39
- post(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
40
- put(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
41
- patch(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
42
- head(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
43
- delete(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
44
- }
45
-
46
- declare const importSchema: z.ZodObject<{
47
- count: z.ZodNumber;
48
- imports: z.ZodArray<z.ZodObject<{
49
- completedAt: z.ZodNullable<z.ZodNumber>;
50
- errorCount: z.ZodNumber;
51
- importId: z.ZodNumber;
52
- name: z.ZodString;
53
- startedAt: z.ZodNullable<z.ZodString>;
54
- status: z.ZodString;
55
- uploadedAt: z.ZodString;
56
- }, "strip", z.ZodTypeAny, {
57
- status: string;
58
- completedAt: number | null;
59
- errorCount: number;
60
- importId: number;
61
- name: string;
62
- startedAt: string | null;
63
- uploadedAt: string;
64
- }, {
65
- status: string;
66
- completedAt: number | null;
67
- errorCount: number;
68
- importId: number;
69
- name: string;
70
- startedAt: string | null;
71
- uploadedAt: string;
72
- }>, "many">;
73
- }, "strip", z.ZodTypeAny, {
74
- count: number;
75
- imports: {
76
- status: string;
77
- completedAt: number | null;
78
- errorCount: number;
79
- importId: number;
80
- name: string;
81
- startedAt: string | null;
82
- uploadedAt: string;
83
- }[];
84
- }, {
85
- count: number;
86
- imports: {
87
- status: string;
88
- completedAt: number | null;
89
- errorCount: number;
90
- importId: number;
91
- name: string;
92
- startedAt: string | null;
93
- uploadedAt: string;
94
- }[];
95
- }>;
96
- type Import = z.infer<typeof importSchema>;
97
-
98
- declare const importErrorsSchema: z.ZodObject<{
99
- count: z.ZodNumber;
100
- errors: z.ZodArray<z.ZodObject<{
101
- attribute: z.ZodString;
102
- description: z.ZodString;
103
- importErrorId: z.ZodNumber;
104
- row: z.ZodNumber;
105
- }, "strip", z.ZodTypeAny, {
106
- attribute: string;
107
- description: string;
108
- importErrorId: number;
109
- row: number;
110
- }, {
111
- attribute: string;
112
- description: string;
113
- importErrorId: number;
114
- row: number;
115
- }>, "many">;
116
- hasNext: z.ZodBoolean;
117
- importId: z.ZodNumber;
118
- totalCount: z.ZodNumber;
119
- }, "strip", z.ZodTypeAny, {
120
- importId: number;
121
- count: number;
122
- errors: {
123
- attribute: string;
124
- description: string;
125
- importErrorId: number;
126
- row: number;
127
- }[];
128
- hasNext: boolean;
129
- totalCount: number;
130
- }, {
131
- importId: number;
132
- count: number;
133
- errors: {
134
- attribute: string;
135
- description: string;
136
- importErrorId: number;
137
- row: number;
138
- }[];
139
- hasNext: boolean;
140
- totalCount: number;
141
- }>;
142
- type ImportErrors = z.infer<typeof importErrorsSchema>;
143
-
144
- declare const importsStatusSchema: z.ZodObject<{
145
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
- docInEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
- errorCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
148
- importId: z.ZodNumber;
149
- invalidItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
150
- name: z.ZodString;
151
- status: z.ZodEnum<["QUEUED_FOR_IMPORT", "IN_PROGRESS", "DOC_FAILED", "VALIDATION_FAILED", "COMPLETED"]>;
152
- totalItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
153
- validItemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
154
- }, "strip", z.ZodTypeAny, {
155
- status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
156
- importId: number;
157
- name: string;
158
- completedAt?: string | null | undefined;
159
- docInEventId?: string | null | undefined;
160
- errorCount?: number | null | undefined;
161
- invalidItemCount?: number | null | undefined;
162
- totalItemCount?: number | null | undefined;
163
- validItemCount?: number | null | undefined;
164
- }, {
165
- status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
166
- importId: number;
167
- name: string;
168
- completedAt?: string | null | undefined;
169
- docInEventId?: string | null | undefined;
170
- errorCount?: number | null | undefined;
171
- invalidItemCount?: number | null | undefined;
172
- totalItemCount?: number | null | undefined;
173
- validItemCount?: number | null | undefined;
174
- }>;
175
- type ImportsStatus = z.infer<typeof importsStatusSchema>;
176
-
177
- declare const exportSchema: z.ZodObject<{
178
- exportName: z.ZodString;
179
- exportDescription: z.ZodString;
180
- isActive: z.ZodBoolean;
181
- exportType: z.ZodEnum<["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]>;
182
- exportFrequency: z.ZodEnum<["IMMEDIATE", "ONETIME", "DAILY", "WEEKLY", "MONTHLY"]>;
183
- includeValidAttributes: z.ZodOptional<z.ZodBoolean>;
184
- dayOfMonth: z.ZodOptional<z.ZodNumber>;
185
- dayOfWeek: z.ZodOptional<z.ZodEnum<["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]>>;
186
- hourOfDay: z.ZodOptional<z.ZodNumber>;
187
- date: z.ZodOptional<z.ZodString>;
188
- catalogIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
189
- itemInfoIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
190
- excludeItemInfoIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
191
- selectionCodeIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
192
- productCodeIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
193
- productTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
194
- deliveryType: z.ZodOptional<z.ZodString>;
195
- spreadsheetTemplateId: z.ZodOptional<z.ZodNumber>;
196
- emailAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
197
- subjectLine: z.ZodOptional<z.ZodString>;
198
- additionalLocales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
199
- }, "strip", z.ZodTypeAny, {
200
- exportName: string;
201
- exportDescription: string;
202
- isActive: boolean;
203
- exportType: "ALL" | "UPDATES" | "DELTAS_UPDATE" | "NO_BUYER_PART_NUMBER";
204
- exportFrequency: "IMMEDIATE" | "ONETIME" | "DAILY" | "WEEKLY" | "MONTHLY";
205
- includeValidAttributes?: boolean | undefined;
206
- dayOfMonth?: number | undefined;
207
- dayOfWeek?: "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN" | undefined;
208
- hourOfDay?: number | undefined;
209
- date?: string | undefined;
210
- catalogIds?: number[] | undefined;
211
- itemInfoIds?: number[] | undefined;
212
- excludeItemInfoIds?: number[] | undefined;
213
- selectionCodeIds?: number[] | undefined;
214
- productCodeIds?: number[] | undefined;
215
- productTypes?: string[] | undefined;
216
- deliveryType?: string | undefined;
217
- spreadsheetTemplateId?: number | undefined;
218
- emailAddresses?: string[] | undefined;
219
- subjectLine?: string | undefined;
220
- additionalLocales?: string[] | undefined;
221
- }, {
222
- exportName: string;
223
- exportDescription: string;
224
- isActive: boolean;
225
- exportType: "ALL" | "UPDATES" | "DELTAS_UPDATE" | "NO_BUYER_PART_NUMBER";
226
- exportFrequency: "IMMEDIATE" | "ONETIME" | "DAILY" | "WEEKLY" | "MONTHLY";
227
- includeValidAttributes?: boolean | undefined;
228
- dayOfMonth?: number | undefined;
229
- dayOfWeek?: "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN" | undefined;
230
- hourOfDay?: number | undefined;
231
- date?: string | undefined;
232
- catalogIds?: number[] | undefined;
233
- itemInfoIds?: number[] | undefined;
234
- excludeItemInfoIds?: number[] | undefined;
235
- selectionCodeIds?: number[] | undefined;
236
- productCodeIds?: number[] | undefined;
237
- productTypes?: string[] | undefined;
238
- deliveryType?: string | undefined;
239
- spreadsheetTemplateId?: number | undefined;
240
- emailAddresses?: string[] | undefined;
241
- subjectLine?: string | undefined;
242
- additionalLocales?: string[] | undefined;
243
- }>;
244
- type Export = z.infer<typeof exportSchema>;
245
-
246
- declare const itemCategoriesSearchSchema: z.ZodObject<{
247
- count: z.ZodNumber;
248
- data: z.ZodArray<z.ZodObject<{
249
- categoryid: z.ZodNumber;
250
- companyId: z.ZodNumber;
251
- name: z.ZodString;
252
- isActive: z.ZodNumber;
253
- createdDate: z.ZodNullable<z.ZodNumber>;
254
- categorytimestamp: z.ZodNullable<z.ZodNumber>;
255
- typeId: z.ZodNumber;
256
- type: z.ZodString;
257
- categorykey: z.ZodOptional<z.ZodString>;
258
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
259
- categoryCatalogName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
260
- }, "strip", z.ZodTypeAny, {
261
- type: string;
262
- name: string;
263
- isActive: number;
264
- createdDate: number | null;
265
- companyId: number;
266
- categoryid: number;
267
- categorytimestamp: number | null;
268
- typeId: number;
269
- categorykey?: string | undefined;
270
- description?: string | null | undefined;
271
- categoryCatalogName?: string | null | undefined;
272
- }, {
273
- type: string;
274
- name: string;
275
- isActive: number;
276
- createdDate: number | null;
277
- companyId: number;
278
- categoryid: number;
279
- categorytimestamp: number | null;
280
- typeId: number;
281
- categorykey?: string | undefined;
282
- description?: string | null | undefined;
283
- categoryCatalogName?: string | null | undefined;
284
- }>, "many">;
285
- }, "strip", z.ZodTypeAny, {
286
- data: {
287
- type: string;
288
- name: string;
289
- isActive: number;
290
- createdDate: number | null;
291
- companyId: number;
292
- categoryid: number;
293
- categorytimestamp: number | null;
294
- typeId: number;
295
- categorykey?: string | undefined;
296
- description?: string | null | undefined;
297
- categoryCatalogName?: string | null | undefined;
298
- }[];
299
- count: number;
300
- }, {
301
- data: {
302
- type: string;
303
- name: string;
304
- isActive: number;
305
- createdDate: number | null;
306
- companyId: number;
307
- categoryid: number;
308
- categorytimestamp: number | null;
309
- typeId: number;
310
- categorykey?: string | undefined;
311
- description?: string | null | undefined;
312
- categoryCatalogName?: string | null | undefined;
313
- }[];
314
- count: number;
315
- }>;
316
- type ItemCategoriesSearch = z.infer<typeof itemCategoriesSearchSchema>;
317
-
318
- export { AsstClient as A, BASE_URLS as B, Export as E, Import as I, ImportsStatus as a, ItemCategoriesSearch as b, AsstClientOptions as c, AsstUrl as d, Env as e, ImportErrors as f, envSchema as g, importSchema as h, importErrorsSchema as i, importsStatusSchema as j, exportSchema as k, itemCategoriesSearchSchema as l };