@spscommerce/asst-api 0.0.1-beta.8 → 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.
- package/dist/{ItemErrorDetailsResult-c12c4eac.d.ts → ItemErrorDetailsResult-317fbe3e.d.ts} +368 -298
- package/dist/ItemStatusResponse-7f871d5a.d.ts +91 -0
- package/dist/{chunk-3JRE7YYE.js → chunk-HEFVXX2V.js} +86 -27
- package/dist/{chunk-OVOZIZA2.js → chunk-HG7MCO42.js} +81 -18
- package/dist/index.cjs +156 -42
- package/dist/index.d.ts +119 -6
- package/dist/index.js +4 -2
- package/dist/msw.cjs +162 -33
- package/dist/msw.d.ts +118 -61
- package/dist/msw.js +82 -11
- package/dist/{ItemErrorDetails-1614b511.d.ts → zod-1c4396f8.d.ts} +377 -241
- package/dist/zod.cjs +88 -26
- package/dist/zod.d.ts +2 -2
- package/dist/zod.js +9 -1
- package/package.json +1 -1
package/dist/zod.cjs
CHANGED
|
@@ -55,6 +55,7 @@ __export(zod_exports, {
|
|
|
55
55
|
groupedItemSchema: () => groupedItemSchema,
|
|
56
56
|
hierarchyCategorySchema: () => hierarchyCategorySchema,
|
|
57
57
|
hierarchyDetailsSchema: () => hierarchyDetailsSchema,
|
|
58
|
+
hierarchySchema: () => hierarchySchema,
|
|
58
59
|
identityServiceDatetimePreferencesSchema: () => identityServiceDatetimePreferencesSchema,
|
|
59
60
|
identityServiceOrganizationMetadataSchema: () => identityServiceOrganizationMetadataSchema,
|
|
60
61
|
identityServiceOrganizationSchema: () => identityServiceOrganizationSchema,
|
|
@@ -73,6 +74,8 @@ __export(zod_exports, {
|
|
|
73
74
|
itemErrorDetailsResultSchema: () => itemErrorDetailsResultSchema,
|
|
74
75
|
itemErrorDetailsSchema: () => itemErrorDetailsSchema,
|
|
75
76
|
itemHeaderSchema: () => itemHeaderSchema,
|
|
77
|
+
itemHierarchyResponseSchema: () => itemHierarchyResponseSchema,
|
|
78
|
+
itemHierarchySchema: () => itemHierarchySchema,
|
|
76
79
|
itemMapSchema: () => itemMapSchema,
|
|
77
80
|
itemPriceSchema: () => itemPriceSchema,
|
|
78
81
|
itemSearchViewSchema: () => itemSearchViewSchema,
|
|
@@ -87,6 +90,7 @@ __export(zod_exports, {
|
|
|
87
90
|
repeatableGroupSchema: () => repeatableGroupSchema,
|
|
88
91
|
spreadsheetTemplateCompanySchema: () => spreadsheetTemplateCompanySchema,
|
|
89
92
|
spreadsheetTemplateSchema: () => spreadsheetTemplateSchema,
|
|
93
|
+
spsItemIdResponseSchema: () => spsItemIdResponseSchema,
|
|
90
94
|
tradingPartnerAccessByCompanyIdSchema: () => tradingPartnerAccessByCompanyIdSchema,
|
|
91
95
|
tradingPartnerStageSchema: () => tradingPartnerStageSchema,
|
|
92
96
|
userAccountSchema: () => userAccountSchema,
|
|
@@ -3925,6 +3929,7 @@ var downLoadItemsParamsSchema = z.object({
|
|
|
3925
3929
|
// lib/categories/models/ItemCategory.ts
|
|
3926
3930
|
var itemCategorySchema = z.object({
|
|
3927
3931
|
categoryid: z.number(),
|
|
3932
|
+
encodedCategoryId: z.string(),
|
|
3928
3933
|
companyId: z.number(),
|
|
3929
3934
|
name: z.string(),
|
|
3930
3935
|
isActive: z.number(),
|
|
@@ -3943,6 +3948,30 @@ var itemCategoriesSearchSchema = z.object({
|
|
|
3943
3948
|
data: z.array(itemCategorySchema)
|
|
3944
3949
|
});
|
|
3945
3950
|
|
|
3951
|
+
// lib/categories/models/Hierarchy.ts
|
|
3952
|
+
var baseHierarchySchema = z.object({
|
|
3953
|
+
id: z.string(),
|
|
3954
|
+
name: z.string().nullish(),
|
|
3955
|
+
description: z.string().nullish(),
|
|
3956
|
+
type: z.string().nullish()
|
|
3957
|
+
});
|
|
3958
|
+
var hierarchySchema = baseHierarchySchema.extend(
|
|
3959
|
+
{
|
|
3960
|
+
child: z.lazy(() => hierarchySchema).nullable()
|
|
3961
|
+
}
|
|
3962
|
+
);
|
|
3963
|
+
|
|
3964
|
+
// lib/categories/models/ItemHierarchy.ts
|
|
3965
|
+
var itemHierarchySchema = z.object({
|
|
3966
|
+
itemId: z.string(),
|
|
3967
|
+
hierarchies: z.array(hierarchySchema)
|
|
3968
|
+
});
|
|
3969
|
+
|
|
3970
|
+
// lib/categories/models/ItemHierarchyResponse.ts
|
|
3971
|
+
var itemHierarchyResponseSchema = z.object({
|
|
3972
|
+
itemHierarchies: z.array(itemHierarchySchema)
|
|
3973
|
+
});
|
|
3974
|
+
|
|
3946
3975
|
// lib/attributes/models/AttributeMetaData.ts
|
|
3947
3976
|
var attributeMetaDataSchema = z.object({
|
|
3948
3977
|
dbName: z.string(),
|
|
@@ -4148,10 +4177,10 @@ var itemMapSchema = z.object({
|
|
|
4148
4177
|
consumeravailabledatestring: z.string().nullish(),
|
|
4149
4178
|
status: z.string().nullish(),
|
|
4150
4179
|
nrfcolorcode: z.array(z.string()).nullish(),
|
|
4151
|
-
nrfsizecode: z.string().nullish(),
|
|
4180
|
+
nrfsizecode: z.array(z.string()).nullish(),
|
|
4152
4181
|
productcolordescription: z.array(z.string()).nullish(),
|
|
4153
4182
|
productsizedescription: z.array(z.string()).nullish()
|
|
4154
|
-
});
|
|
4183
|
+
}).passthrough();
|
|
4155
4184
|
|
|
4156
4185
|
// lib/items/models/ItemTable.ts
|
|
4157
4186
|
var itemTableSchema = z.object({
|
|
@@ -4370,6 +4399,34 @@ var itemDetailSchema = z.object({
|
|
|
4370
4399
|
packs: z.array(packComponentSchema)
|
|
4371
4400
|
});
|
|
4372
4401
|
|
|
4402
|
+
// lib/items/models/SpsItemIdResponse.ts
|
|
4403
|
+
var spsItemIdResponseSchema = z.object({
|
|
4404
|
+
id: z.string(),
|
|
4405
|
+
ref: z.string()
|
|
4406
|
+
});
|
|
4407
|
+
|
|
4408
|
+
// lib/items/models/ItemOrgStatus.ts
|
|
4409
|
+
var itemOrgStatusSchema = z.object({
|
|
4410
|
+
org: z.object({
|
|
4411
|
+
ref: z.string(),
|
|
4412
|
+
id: z.string(),
|
|
4413
|
+
name: z.string()
|
|
4414
|
+
}),
|
|
4415
|
+
lowestInvalidStage: phaseEnumSchema.nullable(),
|
|
4416
|
+
validForRelationship: z.boolean()
|
|
4417
|
+
});
|
|
4418
|
+
|
|
4419
|
+
// lib/items/models/ItemStatus.ts
|
|
4420
|
+
var itemStatusSchema = z.object({
|
|
4421
|
+
itemId: z.string(),
|
|
4422
|
+
itemOrgStatuses: z.array(itemOrgStatusSchema)
|
|
4423
|
+
});
|
|
4424
|
+
|
|
4425
|
+
// lib/items/models/ItemStatusResponse.ts
|
|
4426
|
+
var itemStatusResponseSchema = z.object({
|
|
4427
|
+
itemStatuses: z.array(itemStatusSchema)
|
|
4428
|
+
});
|
|
4429
|
+
|
|
4373
4430
|
// lib/locale/models/Locale.ts
|
|
4374
4431
|
var localeSchema = z.object({
|
|
4375
4432
|
localeCode: z.string(),
|
|
@@ -4412,9 +4469,10 @@ var spreadsheetTemplateSchema = z.object({
|
|
|
4412
4469
|
// lib/tradingPartners/models/Connection.ts
|
|
4413
4470
|
var connectionSchema = z.object({
|
|
4414
4471
|
catalog_id: z.number(),
|
|
4415
|
-
catalog_name: z.string(),
|
|
4472
|
+
catalog_name: z.string().nullable(),
|
|
4416
4473
|
partner_company_name: z.string(),
|
|
4417
|
-
partner_company_id: z.number()
|
|
4474
|
+
partner_company_id: z.number(),
|
|
4475
|
+
partner_org_id: z.string()
|
|
4418
4476
|
});
|
|
4419
4477
|
|
|
4420
4478
|
// lib/tradingPartners/models/TradingPartnerAccessByCompanyId.ts
|
|
@@ -4446,9 +4504,9 @@ var identityServiceOrganizationMetadataSchema = z.object({
|
|
|
4446
4504
|
|
|
4447
4505
|
// lib/whoami/models/IdentityServiceOrganization.ts
|
|
4448
4506
|
var identityServiceOrganizationSchema = z.object({
|
|
4449
|
-
organization_name: z.string(),
|
|
4450
|
-
organization_site: z.string(),
|
|
4451
|
-
namespace: z.string(),
|
|
4507
|
+
organization_name: z.string().optional(),
|
|
4508
|
+
organization_site: z.string().optional(),
|
|
4509
|
+
namespace: z.string().optional(),
|
|
4452
4510
|
id: z.string(),
|
|
4453
4511
|
permissions: z.array(z.string()).optional(),
|
|
4454
4512
|
metadata: identityServiceOrganizationMetadataSchema.optional()
|
|
@@ -4466,26 +4524,26 @@ var identityServicePreferencesSchema = z.object({
|
|
|
4466
4524
|
// lib/whoami/models/IdentityServiceUser.ts
|
|
4467
4525
|
var identityServiceUserSchema = z.object({
|
|
4468
4526
|
id: z.string(),
|
|
4469
|
-
email: z.string(),
|
|
4470
|
-
first_name: z.string(),
|
|
4471
|
-
last_name: z.string(),
|
|
4472
|
-
job_title: z.string(),
|
|
4473
|
-
externally_managed: z.boolean(),
|
|
4474
|
-
city: z.string(),
|
|
4527
|
+
email: z.string().optional(),
|
|
4528
|
+
first_name: z.string().optional(),
|
|
4529
|
+
last_name: z.string().optional(),
|
|
4530
|
+
job_title: z.string().optional(),
|
|
4531
|
+
externally_managed: z.boolean().optional(),
|
|
4532
|
+
city: z.string().optional(),
|
|
4475
4533
|
name: z.string(),
|
|
4476
|
-
state: z.string(),
|
|
4477
|
-
country: z.string(),
|
|
4478
|
-
user_type: z.string(),
|
|
4479
|
-
token_type: z.string(),
|
|
4480
|
-
avatar_image_id: z.string(),
|
|
4481
|
-
avatar_image_url: z.string(),
|
|
4482
|
-
origin_avatar_image_id: z.string(),
|
|
4483
|
-
bio: z.string(),
|
|
4484
|
-
phone_number: z.string(),
|
|
4485
|
-
twitter_handle: z.string(),
|
|
4486
|
-
linkedin_url: z.string(),
|
|
4534
|
+
state: z.string().optional(),
|
|
4535
|
+
country: z.string().optional(),
|
|
4536
|
+
user_type: z.string().optional(),
|
|
4537
|
+
token_type: z.string().optional(),
|
|
4538
|
+
avatar_image_id: z.string().optional(),
|
|
4539
|
+
avatar_image_url: z.string().optional(),
|
|
4540
|
+
origin_avatar_image_id: z.string().optional(),
|
|
4541
|
+
bio: z.string().optional(),
|
|
4542
|
+
phone_number: z.string().optional(),
|
|
4543
|
+
twitter_handle: z.string().optional(),
|
|
4544
|
+
linkedin_url: z.string().optional(),
|
|
4487
4545
|
description: z.string().optional(),
|
|
4488
|
-
preferences: identityServicePreferencesSchema,
|
|
4546
|
+
preferences: identityServicePreferencesSchema.optional(),
|
|
4489
4547
|
roles: z.array(z.string()),
|
|
4490
4548
|
organization: identityServiceOrganizationSchema,
|
|
4491
4549
|
password: z.string(),
|
|
@@ -4523,7 +4581,7 @@ var userAccountSchema = z.object({
|
|
|
4523
4581
|
// lib/errors/models/ItemErrorDetails.ts
|
|
4524
4582
|
var itemErrorDetailsSchema = z.object({
|
|
4525
4583
|
errorMessage: z.string(),
|
|
4526
|
-
attributeName: z.string(),
|
|
4584
|
+
attributeName: z.string().nullable(),
|
|
4527
4585
|
tradingPartnerNames: z.array(z.string()),
|
|
4528
4586
|
phases: z.array(phaseEnumSchema),
|
|
4529
4587
|
attributeDbNames: z.array(z.string()),
|
|
@@ -4569,6 +4627,7 @@ var itemErrorDetailsResultSchema = z.object({
|
|
|
4569
4627
|
groupedItemSchema,
|
|
4570
4628
|
hierarchyCategorySchema,
|
|
4571
4629
|
hierarchyDetailsSchema,
|
|
4630
|
+
hierarchySchema,
|
|
4572
4631
|
identityServiceDatetimePreferencesSchema,
|
|
4573
4632
|
identityServiceOrganizationMetadataSchema,
|
|
4574
4633
|
identityServiceOrganizationSchema,
|
|
@@ -4587,6 +4646,8 @@ var itemErrorDetailsResultSchema = z.object({
|
|
|
4587
4646
|
itemErrorDetailsResultSchema,
|
|
4588
4647
|
itemErrorDetailsSchema,
|
|
4589
4648
|
itemHeaderSchema,
|
|
4649
|
+
itemHierarchyResponseSchema,
|
|
4650
|
+
itemHierarchySchema,
|
|
4590
4651
|
itemMapSchema,
|
|
4591
4652
|
itemPriceSchema,
|
|
4592
4653
|
itemSearchViewSchema,
|
|
@@ -4601,6 +4662,7 @@ var itemErrorDetailsResultSchema = z.object({
|
|
|
4601
4662
|
repeatableGroupSchema,
|
|
4602
4663
|
spreadsheetTemplateCompanySchema,
|
|
4603
4664
|
spreadsheetTemplateSchema,
|
|
4665
|
+
spsItemIdResponseSchema,
|
|
4604
4666
|
tradingPartnerAccessByCompanyIdSchema,
|
|
4605
4667
|
tradingPartnerStageSchema,
|
|
4606
4668
|
userAccountSchema,
|
package/dist/zod.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { d 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-317fbe3e.js';
|
|
2
|
+
export { a4 as attrDatatypeNameEnumSchema, aj as attributeDetailSchema, a5 as attributeGroupSchema, a6 as attributeSummarySchema, ac as bulbSchema, ah as categoryEnumSchema, al as componentDetailsSchema, au as connectionSchema, $ as downLoadItemsParamsSchema, Y as exportDayOfWeekEnum, Z as exportFrequencyEnum, _ as exportTypeEnum, X as generateImportTemplateParamsSchema, ap as groupedAttributeListSchema, an as groupedAttributesSchema, ag as groupedItemSchema, ao as hierarchyCategorySchema, am as hierarchyDetailsSchema, a1 as hierarchySchema, av as identityServiceDatetimePreferencesSchema, aw as identityServiceOrganizationMetadataSchema, ax as identityServiceOrganizationSchema, ay as identityServicePreferencesSchema, az as identityServiceUserSchema, U as importDetailSchema, V as importErrorSchema, W as importStatusEnumSchema, a0 as itemCategorySchema, af as itemDetailSchema, aB as itemErrorDetailsSchema, a7 as itemHeaderSchema, a2 as itemHierarchyResponseSchema, a3 as itemHierarchySchema, a8 as itemMapSchema, ad as itemPriceSchema, a9 as itemTableSchema, ae as mediaItemSchema, aq as packComponentDetailsSchema, ar as packComponentItemInfoSchema, ai as packComponentSchema, aa as phaseEnumSchema, aA as registeredServiceSchema, ak as repeatableGroupSchema, at as spreadsheetTemplateCompanySchema, as as spsItemIdResponseSchema, ab as tradingPartnerStageSchema } from './zod-1c4396f8.js';
|
|
3
3
|
import 'ky-universal';
|
|
4
4
|
import 'ky';
|
|
5
5
|
import 'zod';
|
package/dist/zod.js
CHANGED
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
groupedItemSchema,
|
|
25
25
|
hierarchyCategorySchema,
|
|
26
26
|
hierarchyDetailsSchema,
|
|
27
|
+
hierarchySchema,
|
|
27
28
|
identityServiceDatetimePreferencesSchema,
|
|
28
29
|
identityServiceOrganizationMetadataSchema,
|
|
29
30
|
identityServiceOrganizationSchema,
|
|
@@ -42,6 +43,8 @@ import {
|
|
|
42
43
|
itemErrorDetailsResultSchema,
|
|
43
44
|
itemErrorDetailsSchema,
|
|
44
45
|
itemHeaderSchema,
|
|
46
|
+
itemHierarchyResponseSchema,
|
|
47
|
+
itemHierarchySchema,
|
|
45
48
|
itemMapSchema,
|
|
46
49
|
itemPriceSchema,
|
|
47
50
|
itemSearchViewSchema,
|
|
@@ -56,11 +59,12 @@ import {
|
|
|
56
59
|
repeatableGroupSchema,
|
|
57
60
|
spreadsheetTemplateCompanySchema,
|
|
58
61
|
spreadsheetTemplateSchema,
|
|
62
|
+
spsItemIdResponseSchema,
|
|
59
63
|
tradingPartnerAccessByCompanyIdSchema,
|
|
60
64
|
tradingPartnerStageSchema,
|
|
61
65
|
userAccountSchema,
|
|
62
66
|
vendorPartnerAttGroupsSchema
|
|
63
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-HEFVXX2V.js";
|
|
64
68
|
export {
|
|
65
69
|
attrDatatypeNameEnumSchema,
|
|
66
70
|
attrProdTypeSchema,
|
|
@@ -87,6 +91,7 @@ export {
|
|
|
87
91
|
groupedItemSchema,
|
|
88
92
|
hierarchyCategorySchema,
|
|
89
93
|
hierarchyDetailsSchema,
|
|
94
|
+
hierarchySchema,
|
|
90
95
|
identityServiceDatetimePreferencesSchema,
|
|
91
96
|
identityServiceOrganizationMetadataSchema,
|
|
92
97
|
identityServiceOrganizationSchema,
|
|
@@ -105,6 +110,8 @@ export {
|
|
|
105
110
|
itemErrorDetailsResultSchema,
|
|
106
111
|
itemErrorDetailsSchema,
|
|
107
112
|
itemHeaderSchema,
|
|
113
|
+
itemHierarchyResponseSchema,
|
|
114
|
+
itemHierarchySchema,
|
|
108
115
|
itemMapSchema,
|
|
109
116
|
itemPriceSchema,
|
|
110
117
|
itemSearchViewSchema,
|
|
@@ -119,6 +126,7 @@ export {
|
|
|
119
126
|
repeatableGroupSchema,
|
|
120
127
|
spreadsheetTemplateCompanySchema,
|
|
121
128
|
spreadsheetTemplateSchema,
|
|
129
|
+
spsItemIdResponseSchema,
|
|
122
130
|
tradingPartnerAccessByCompanyIdSchema,
|
|
123
131
|
tradingPartnerStageSchema,
|
|
124
132
|
userAccountSchema,
|
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
|
|
6
|
+
"version": "0.0.1",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|