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

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 (47) hide show
  1. package/dist/ItemErrorDetails-1614b511.d.ts +3137 -0
  2. package/dist/ItemErrorDetailsResult-c12c4eac.d.ts +3032 -0
  3. package/dist/{chunk-D3ML6E4G.js → chunk-3JRE7YYE.js} +805 -16
  4. package/dist/chunk-OVOZIZA2.js +326 -0
  5. package/dist/index.cjs +814 -28
  6. package/dist/index.d.ts +86 -46
  7. package/dist/index.js +18 -5
  8. package/dist/msw.cjs +926 -63
  9. package/dist/msw.d.ts +582 -75
  10. package/dist/msw.js +246 -54
  11. package/dist/zod.cjs +719 -17
  12. package/dist/zod.d.ts +3 -2
  13. package/dist/zod.js +103 -55
  14. package/package.json +3 -4
  15. package/dist/ImportsStatus-52d26b01.d.ts +0 -134
  16. package/dist/ImportsStatusEnum-22c03a0b.d.ts +0 -51
  17. package/dist/ItemCategoriesSearch-1bb945de.d.ts +0 -275
  18. package/dist/ItemCategoriesSearch-44b87663.d.ts +0 -318
  19. package/dist/ItemCategoriesSearch-e0870a34.d.ts +0 -318
  20. package/dist/ItemCategoriesSearch-e3298650.d.ts +0 -319
  21. package/dist/ItemCategoriesSearch-ec43591f.d.ts +0 -319
  22. package/dist/ItemCategory-14816deb.d.ts +0 -99
  23. package/dist/ItemCategory-768179bd.d.ts +0 -99
  24. package/dist/TradingPartnerAccessByCompanyId-29866586.d.ts +0 -97
  25. package/dist/TradingPartnerAccessByCompanyId-43f83fb6.d.ts +0 -130
  26. package/dist/TradingPartnerAccessByCompanyId-479e3e57.d.ts +0 -124
  27. package/dist/TradingPartnerAccessByCompanyId-53b868a8.d.ts +0 -125
  28. package/dist/TradingPartnerAccessByCompanyId-b227f0c5.d.ts +0 -125
  29. package/dist/TradingPartnerAccessByCompanyId-e7a1d443.d.ts +0 -129
  30. package/dist/asstClient-f6a1693a.d.ts +0 -29
  31. package/dist/chunk-3FMMM7IS.js +0 -80
  32. package/dist/chunk-6ZNFOWTV.js +0 -78
  33. package/dist/chunk-7HCJJATJ.js +0 -40
  34. package/dist/chunk-B7B2ACF4.js +0 -3794
  35. package/dist/chunk-F3KCLICG.js +0 -77
  36. package/dist/chunk-FS6LHGAR.js +0 -87
  37. package/dist/chunk-GDFX3WTX.js +0 -78
  38. package/dist/chunk-LGP22FRF.js +0 -0
  39. package/dist/chunk-LYMGZWSR.js +0 -80
  40. package/dist/chunk-N2OYWNHF.js +0 -80
  41. package/dist/chunk-OA6PO3QG.js +0 -78
  42. package/dist/chunk-OBXZRDPY.js +0 -77
  43. package/dist/chunk-OI47EFQH.js +0 -82
  44. package/dist/chunk-RNUSCCKB.js +0 -183
  45. package/dist/chunk-T3UCSW2B.js +0 -81
  46. package/dist/chunk-XMNYZGXF.js +0 -84
  47. package/dist/chunk-YCQUK6KV.js +0 -85
package/dist/zod.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { g as envSchema, k as exportSchema, i as importErrorsSchema, h as importSchema, j as importsStatusSchema, l as itemCategoriesSearchSchema } from './ItemCategoriesSearch-e3298650.js';
2
- export { h as exportDayOfWeekEnum, j as exportFrequencyEnum, k as exportTypeEnum, i as importDetailSchema, f as importErrorSchema, g as importStatusEnumSchema, l as itemCategorySchema } from './ItemCategory-14816deb.js';
1
+ export { o as attrProdTypeSchema, w as attributeDefinitionSchema, x as attributeMetaDataSchema, z as attributeValidValuesSchema, y as attributesByCompanySchema, p as envSchema, t as exportSchema, q as importErrorsSchema, r as importSchema, s as importsStatusSchema, u as itemCategoriesSearchSchema, D as itemDetailViewSchema, K as itemErrorDetailsResultSchema, C as itemSearchViewSchema, F as localeSchema, G as spreadsheetTemplateSchema, H as tradingPartnerAccessByCompanyIdSchema, J as userAccountSchema, v as vendorPartnerAttGroupsSchema } from './ItemErrorDetailsResult-c12c4eac.js';
2
+ export { Z as attrDatatypeNameEnumSchema, ac as attributeDetailSchema, _ as attributeGroupSchema, $ as attributeSummarySchema, a5 as bulbSchema, aa as categoryEnumSchema, ae as componentDetailsSchema, am as connectionSchema, X as downLoadItemsParamsSchema, U as exportDayOfWeekEnum, V as exportFrequencyEnum, W as exportTypeEnum, Q as generateImportTemplateParamsSchema, ai as groupedAttributeListSchema, ag as groupedAttributesSchema, a9 as groupedItemSchema, ah as hierarchyCategorySchema, af as hierarchyDetailsSchema, an as identityServiceDatetimePreferencesSchema, ao as identityServiceOrganizationMetadataSchema, ap as identityServiceOrganizationSchema, aq as identityServicePreferencesSchema, ar as identityServiceUserSchema, L as importDetailSchema, N as importErrorSchema, O as importStatusEnumSchema, Y as itemCategorySchema, a8 as itemDetailSchema, at as itemErrorDetailsSchema, a0 as itemHeaderSchema, a1 as itemMapSchema, a6 as itemPriceSchema, a2 as itemTableSchema, a7 as mediaItemSchema, aj as packComponentDetailsSchema, ak as packComponentItemInfoSchema, ab as packComponentSchema, a3 as phaseEnumSchema, as as registeredServiceSchema, ad as repeatableGroupSchema, al as spreadsheetTemplateCompanySchema, a4 as tradingPartnerStageSchema } from './ItemErrorDetails-1614b511.js';
3
+ import 'ky-universal';
3
4
  import 'ky';
4
5
  import 'zod';
package/dist/zod.js CHANGED
@@ -1,8 +1,34 @@
1
1
  import {
2
- envSchema
3
- } from "./chunk-OBXZRDPY.js";
4
- import "./chunk-LGP22FRF.js";
5
- import {
2
+ attrDatatypeNameEnumSchema,
3
+ attrProdTypeSchema,
4
+ attributeDefinitionSchema,
5
+ attributeDetailSchema,
6
+ attributeGroupSchema,
7
+ attributeMetaDataSchema,
8
+ attributeSummarySchema,
9
+ attributeValidValuesSchema,
10
+ attributesByCompanySchema,
11
+ bulbSchema,
12
+ categoryEnumSchema,
13
+ componentDetailsSchema,
14
+ connectionSchema,
15
+ downLoadItemsParamsSchema,
16
+ envSchema,
17
+ exportDayOfWeekEnum,
18
+ exportFrequencyEnum,
19
+ exportSchema,
20
+ exportTypeEnum,
21
+ generateImportTemplateParamsSchema,
22
+ groupedAttributeListSchema,
23
+ groupedAttributesSchema,
24
+ groupedItemSchema,
25
+ hierarchyCategorySchema,
26
+ hierarchyDetailsSchema,
27
+ identityServiceDatetimePreferencesSchema,
28
+ identityServiceOrganizationMetadataSchema,
29
+ identityServiceOrganizationSchema,
30
+ identityServicePreferencesSchema,
31
+ identityServiceUserSchema,
6
32
  importDetailSchema,
7
33
  importErrorSchema,
8
34
  importErrorsSchema,
@@ -11,62 +37,61 @@ import {
11
37
  importsStatusSchema,
12
38
  itemCategoriesSearchSchema,
13
39
  itemCategorySchema,
14
- z
15
- } from "./chunk-D3ML6E4G.js";
16
-
17
- // lib/exports/models/ExportType.ts
18
- var exportTypeEnum = z.enum(["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]);
19
-
20
- // lib/exports/models/ExportFrequency.ts
21
- var exportFrequencyEnum = z.enum([
22
- "IMMEDIATE",
23
- "ONETIME",
24
- "DAILY",
25
- "WEEKLY",
26
- "MONTHLY"
27
- ]);
28
-
29
- // lib/exports/models/ExportDayOfWeek.ts
30
- var exportDayOfWeekEnum = z.enum([
31
- "MON",
32
- "TUE",
33
- "WED",
34
- "THU",
35
- "FRI",
36
- "SAT",
37
- "SUN"
38
- ]);
39
-
40
- // lib/exports/models/Export.ts
41
- var exportSchema = z.object({
42
- exportName: z.string(),
43
- exportDescription: z.string(),
44
- isActive: z.boolean(),
45
- exportType: exportTypeEnum,
46
- exportFrequency: exportFrequencyEnum,
47
- includeValidAttributes: z.optional(z.boolean()),
48
- dayOfMonth: z.optional(z.number()),
49
- dayOfWeek: z.optional(exportDayOfWeekEnum),
50
- hourOfDay: z.optional(z.number()),
51
- date: z.optional(z.string()),
52
- catalogIds: z.optional(z.array(z.number())),
53
- itemInfoIds: z.optional(z.array(z.number())),
54
- excludeItemInfoIds: z.optional(z.array(z.number())),
55
- selectionCodeIds: z.optional(z.array(z.number())),
56
- productCodeIds: z.optional(z.array(z.number())),
57
- productTypes: z.optional(z.array(z.string())),
58
- deliveryType: z.optional(z.string()),
59
- spreadsheetTemplateId: z.optional(z.number()),
60
- emailAddresses: z.optional(z.array(z.string())),
61
- subjectLine: z.optional(z.string()),
62
- additionalLocales: z.optional(z.array(z.string()))
63
- });
40
+ itemDetailSchema,
41
+ itemDetailViewSchema,
42
+ itemErrorDetailsResultSchema,
43
+ itemErrorDetailsSchema,
44
+ itemHeaderSchema,
45
+ itemMapSchema,
46
+ itemPriceSchema,
47
+ itemSearchViewSchema,
48
+ itemTableSchema,
49
+ localeSchema,
50
+ mediaItemSchema,
51
+ packComponentDetailsSchema,
52
+ packComponentItemInfoSchema,
53
+ packComponentSchema,
54
+ phaseEnumSchema,
55
+ registeredServiceSchema,
56
+ repeatableGroupSchema,
57
+ spreadsheetTemplateCompanySchema,
58
+ spreadsheetTemplateSchema,
59
+ tradingPartnerAccessByCompanyIdSchema,
60
+ tradingPartnerStageSchema,
61
+ userAccountSchema,
62
+ vendorPartnerAttGroupsSchema
63
+ } from "./chunk-3JRE7YYE.js";
64
64
  export {
65
+ attrDatatypeNameEnumSchema,
66
+ attrProdTypeSchema,
67
+ attributeDefinitionSchema,
68
+ attributeDetailSchema,
69
+ attributeGroupSchema,
70
+ attributeMetaDataSchema,
71
+ attributeSummarySchema,
72
+ attributeValidValuesSchema,
73
+ attributesByCompanySchema,
74
+ bulbSchema,
75
+ categoryEnumSchema,
76
+ componentDetailsSchema,
77
+ connectionSchema,
78
+ downLoadItemsParamsSchema,
65
79
  envSchema,
66
80
  exportDayOfWeekEnum,
67
81
  exportFrequencyEnum,
68
82
  exportSchema,
69
83
  exportTypeEnum,
84
+ generateImportTemplateParamsSchema,
85
+ groupedAttributeListSchema,
86
+ groupedAttributesSchema,
87
+ groupedItemSchema,
88
+ hierarchyCategorySchema,
89
+ hierarchyDetailsSchema,
90
+ identityServiceDatetimePreferencesSchema,
91
+ identityServiceOrganizationMetadataSchema,
92
+ identityServiceOrganizationSchema,
93
+ identityServicePreferencesSchema,
94
+ identityServiceUserSchema,
70
95
  importDetailSchema,
71
96
  importErrorSchema,
72
97
  importErrorsSchema,
@@ -74,5 +99,28 @@ export {
74
99
  importStatusEnumSchema,
75
100
  importsStatusSchema,
76
101
  itemCategoriesSearchSchema,
77
- itemCategorySchema
102
+ itemCategorySchema,
103
+ itemDetailSchema,
104
+ itemDetailViewSchema,
105
+ itemErrorDetailsResultSchema,
106
+ itemErrorDetailsSchema,
107
+ itemHeaderSchema,
108
+ itemMapSchema,
109
+ itemPriceSchema,
110
+ itemSearchViewSchema,
111
+ itemTableSchema,
112
+ localeSchema,
113
+ mediaItemSchema,
114
+ packComponentDetailsSchema,
115
+ packComponentItemInfoSchema,
116
+ packComponentSchema,
117
+ phaseEnumSchema,
118
+ registeredServiceSchema,
119
+ repeatableGroupSchema,
120
+ spreadsheetTemplateCompanySchema,
121
+ spreadsheetTemplateSchema,
122
+ tradingPartnerAccessByCompanyIdSchema,
123
+ tradingPartnerStageSchema,
124
+ userAccountSchema,
125
+ vendorPartnerAttGroupsSchema
78
126
  };
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": "0.0.1-beta.6",
6
+ "version": "0.0.1-beta.8",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
@@ -52,9 +52,8 @@
52
52
  "vite": "^4.1.0"
53
53
  },
54
54
  "dependencies": {
55
- "ky": "0.25.1",
56
- "ky-universal": "0.8.2",
57
- "query-string": "7.1.3"
55
+ "ky": "^0.33.3",
56
+ "ky-universal": "^0.11.0"
58
57
  },
59
58
  "msw": {
60
59
  "workerDirectory": "public"
@@ -1,134 +0,0 @@
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 };
@@ -1,51 +0,0 @@
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 };
@@ -1,275 +0,0 @@
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 };