@spscommerce/asst-api 0.0.1-beta.6 → 0.0.1-beta.7
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/ItemErrorDetails-1614b511.d.ts +3137 -0
- package/dist/ItemErrorDetailsResult-0b4a628c.d.ts +3032 -0
- package/dist/chunk-4WER3ZLX.js +4576 -0
- package/dist/chunk-ETURPA7W.js +326 -0
- package/dist/index.cjs +813 -27
- package/dist/index.d.ts +86 -46
- package/dist/index.js +18 -5
- package/dist/msw.cjs +925 -62
- package/dist/msw.d.ts +581 -74
- package/dist/msw.js +246 -54
- package/dist/zod.cjs +718 -16
- package/dist/zod.d.ts +3 -2
- package/dist/zod.js +103 -55
- package/package.json +3 -4
package/dist/zod.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
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-0b4a628c.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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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-4WER3ZLX.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
|
+
"version": "0.0.1-beta.7",
|
|
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.
|
|
56
|
-
"ky-universal": "0.
|
|
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"
|