@spscommerce/asst-api 0.0.1-beta.1 → 0.0.1-beta.11
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/ItemCategoriesSearch-44b87663.d.ts +318 -0
- package/dist/ItemCategoriesSearch-e0870a34.d.ts +318 -0
- package/dist/ItemCategoriesSearch-e3298650.d.ts +319 -0
- package/dist/ItemCategoriesSearch-ec43591f.d.ts +319 -0
- package/dist/ItemCategory-14816deb.d.ts +99 -0
- package/dist/ItemErrorDetails-0eed9761.d.ts +3200 -0
- package/dist/ItemErrorDetails-1614b511.d.ts +3137 -0
- package/dist/ItemErrorDetails-1bd2821e.d.ts +3137 -0
- package/dist/ItemErrorDetails-b2c79d10.d.ts +3197 -0
- package/dist/ItemErrorDetails-ba155b70.d.ts +3269 -0
- package/dist/ItemErrorDetails-bc465036.d.ts +3200 -0
- package/dist/ItemErrorDetails-e6e400aa.d.ts +3197 -0
- package/dist/ItemErrorDetailsResult-0b4a628c.d.ts +3032 -0
- package/dist/ItemErrorDetailsResult-8317ab6e.d.ts +3092 -0
- package/dist/ItemErrorDetailsResult-859368da.d.ts +3032 -0
- package/dist/ItemErrorDetailsResult-9ac97c24.d.ts +3032 -0
- package/dist/ItemErrorDetailsResult-ae90f329.d.ts +3097 -0
- package/dist/ItemErrorDetailsResult-c12c4eac.d.ts +3032 -0
- package/dist/ItemErrorDetailsResult-c62caeae.d.ts +3092 -0
- package/dist/ItemErrorDetailsResult-fbc33a43.d.ts +3097 -0
- package/dist/ItemStatusResponse-7f871d5a.d.ts +91 -0
- package/dist/TradingPartnerAccessByCompanyId-29866586.d.ts +97 -0
- package/dist/TradingPartnerAccessByCompanyId-43f83fb6.d.ts +130 -0
- package/dist/TradingPartnerAccessByCompanyId-53b868a8.d.ts +125 -0
- package/dist/TradingPartnerAccessByCompanyId-b227f0c5.d.ts +125 -0
- package/dist/TradingPartnerAccessByCompanyId-e7a1d443.d.ts +129 -0
- package/dist/chunk-3CJG5LDN.js +360 -0
- package/dist/chunk-3FMMM7IS.js +80 -0
- package/dist/chunk-3JRE7YYE.js +4576 -0
- package/dist/chunk-4HWZ3JEH.js +328 -0
- package/dist/chunk-4WER3ZLX.js +4576 -0
- package/dist/chunk-5YWAQNT6.js +4634 -0
- package/dist/chunk-6ZNFOWTV.js +78 -0
- package/dist/chunk-CB3PVPHS.js +344 -0
- package/dist/chunk-ETURPA7W.js +326 -0
- package/dist/chunk-F3KCLICG.js +77 -0
- package/dist/chunk-FS6LHGAR.js +87 -0
- package/dist/chunk-G36FM5OA.js +327 -0
- package/dist/chunk-GDFX3WTX.js +78 -0
- package/dist/chunk-GSUSBCHT.js +4576 -0
- package/dist/chunk-IHIEBLQV.js +4576 -0
- package/dist/chunk-ITWMRXLD.js +328 -0
- package/dist/chunk-J3A66IGS.js +389 -0
- package/dist/chunk-LYMGZWSR.js +80 -0
- package/dist/chunk-N2OYWNHF.js +80 -0
- package/dist/chunk-OA6PO3QG.js +78 -0
- package/dist/chunk-OBXZRDPY.js +77 -0
- package/dist/chunk-OI47EFQH.js +82 -0
- package/dist/chunk-OVOZIZA2.js +326 -0
- package/dist/chunk-RRGAJ4ZS.js +4576 -0
- package/dist/chunk-T3UCSW2B.js +81 -0
- package/dist/chunk-VNFU2PUV.js +4577 -0
- package/dist/chunk-WN2FPUF3.js +4577 -0
- package/dist/chunk-XMNYZGXF.js +84 -0
- package/dist/chunk-YCQUK6KV.js +85 -0
- package/dist/index.cjs +1001 -84
- package/dist/index.d.ts +197 -46
- package/dist/index.js +23 -56
- package/dist/msw.cjs +1056 -65
- package/dist/msw.d.ts +638 -76
- package/dist/msw.js +317 -54
- package/dist/zod.cjs +812 -17
- package/dist/zod.d.ts +4 -2
- package/dist/zod.js +112 -52
- package/package.json +2 -3
package/dist/zod.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,15 +17,50 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// lib/zod.ts
|
|
21
31
|
var zod_exports = {};
|
|
22
32
|
__export(zod_exports, {
|
|
33
|
+
attrDatatypeNameEnumSchema: () => attrDatatypeNameEnumSchema,
|
|
34
|
+
attrProdTypeSchema: () => attrProdTypeSchema,
|
|
35
|
+
attributeDefinitionSchema: () => attributeDefinitionSchema,
|
|
36
|
+
attributeDetailSchema: () => attributeDetailSchema,
|
|
37
|
+
attributeGroupSchema: () => attributeGroupSchema,
|
|
38
|
+
attributeMetaDataSchema: () => attributeMetaDataSchema,
|
|
39
|
+
attributeSummarySchema: () => attributeSummarySchema,
|
|
40
|
+
attributeValidValuesSchema: () => attributeValidValuesSchema,
|
|
41
|
+
attributesByCompanySchema: () => attributesByCompanySchema,
|
|
42
|
+
bulbSchema: () => bulbSchema,
|
|
43
|
+
categoryEnumSchema: () => categoryEnumSchema,
|
|
44
|
+
componentDetailsSchema: () => componentDetailsSchema,
|
|
45
|
+
connectionSchema: () => connectionSchema,
|
|
46
|
+
downLoadItemsParamsSchema: () => downLoadItemsParamsSchema,
|
|
47
|
+
envSchema: () => envSchema,
|
|
23
48
|
exportDayOfWeekEnum: () => exportDayOfWeekEnum,
|
|
24
49
|
exportFrequencyEnum: () => exportFrequencyEnum,
|
|
25
50
|
exportSchema: () => exportSchema,
|
|
26
51
|
exportTypeEnum: () => exportTypeEnum,
|
|
52
|
+
generateImportTemplateParamsSchema: () => generateImportTemplateParamsSchema,
|
|
53
|
+
groupedAttributeListSchema: () => groupedAttributeListSchema,
|
|
54
|
+
groupedAttributesSchema: () => groupedAttributesSchema,
|
|
55
|
+
groupedItemSchema: () => groupedItemSchema,
|
|
56
|
+
hierarchyCategorySchema: () => hierarchyCategorySchema,
|
|
57
|
+
hierarchyDetailsSchema: () => hierarchyDetailsSchema,
|
|
58
|
+
hierarchySchema: () => hierarchySchema,
|
|
59
|
+
identityServiceDatetimePreferencesSchema: () => identityServiceDatetimePreferencesSchema,
|
|
60
|
+
identityServiceOrganizationMetadataSchema: () => identityServiceOrganizationMetadataSchema,
|
|
61
|
+
identityServiceOrganizationSchema: () => identityServiceOrganizationSchema,
|
|
62
|
+
identityServicePreferencesSchema: () => identityServicePreferencesSchema,
|
|
63
|
+
identityServiceUserSchema: () => identityServiceUserSchema,
|
|
27
64
|
importDetailSchema: () => importDetailSchema,
|
|
28
65
|
importErrorSchema: () => importErrorSchema,
|
|
29
66
|
importErrorsSchema: () => importErrorsSchema,
|
|
@@ -31,10 +68,39 @@ __export(zod_exports, {
|
|
|
31
68
|
importStatusEnumSchema: () => importStatusEnumSchema,
|
|
32
69
|
importsStatusSchema: () => importsStatusSchema,
|
|
33
70
|
itemCategoriesSearchSchema: () => itemCategoriesSearchSchema,
|
|
34
|
-
itemCategorySchema: () => itemCategorySchema
|
|
71
|
+
itemCategorySchema: () => itemCategorySchema,
|
|
72
|
+
itemDetailSchema: () => itemDetailSchema,
|
|
73
|
+
itemDetailViewSchema: () => itemDetailViewSchema,
|
|
74
|
+
itemErrorDetailsResultSchema: () => itemErrorDetailsResultSchema,
|
|
75
|
+
itemErrorDetailsSchema: () => itemErrorDetailsSchema,
|
|
76
|
+
itemHeaderSchema: () => itemHeaderSchema,
|
|
77
|
+
itemHierarchyResponseSchema: () => itemHierarchyResponseSchema,
|
|
78
|
+
itemHierarchySchema: () => itemHierarchySchema,
|
|
79
|
+
itemMapSchema: () => itemMapSchema,
|
|
80
|
+
itemPriceSchema: () => itemPriceSchema,
|
|
81
|
+
itemSearchViewSchema: () => itemSearchViewSchema,
|
|
82
|
+
itemTableSchema: () => itemTableSchema,
|
|
83
|
+
localeSchema: () => localeSchema,
|
|
84
|
+
mediaItemSchema: () => mediaItemSchema,
|
|
85
|
+
packComponentDetailsSchema: () => packComponentDetailsSchema,
|
|
86
|
+
packComponentItemInfoSchema: () => packComponentItemInfoSchema,
|
|
87
|
+
packComponentSchema: () => packComponentSchema,
|
|
88
|
+
phaseEnumSchema: () => phaseEnumSchema,
|
|
89
|
+
registeredServiceSchema: () => registeredServiceSchema,
|
|
90
|
+
repeatableGroupSchema: () => repeatableGroupSchema,
|
|
91
|
+
spreadsheetTemplateCompanySchema: () => spreadsheetTemplateCompanySchema,
|
|
92
|
+
spreadsheetTemplateSchema: () => spreadsheetTemplateSchema,
|
|
93
|
+
spsItemIdResponseSchema: () => spsItemIdResponseSchema,
|
|
94
|
+
tradingPartnerAccessByCompanyIdSchema: () => tradingPartnerAccessByCompanyIdSchema,
|
|
95
|
+
tradingPartnerStageSchema: () => tradingPartnerStageSchema,
|
|
96
|
+
userAccountSchema: () => userAccountSchema,
|
|
97
|
+
vendorPartnerAttGroupsSchema: () => vendorPartnerAttGroupsSchema
|
|
35
98
|
});
|
|
36
99
|
module.exports = __toCommonJS(zod_exports);
|
|
37
100
|
|
|
101
|
+
// lib/asstClient.ts
|
|
102
|
+
var import_ky_universal = __toESM(require("ky-universal"), 1);
|
|
103
|
+
|
|
38
104
|
// ../../node_modules/.pnpm/zod@3.21.4/node_modules/zod/lib/index.mjs
|
|
39
105
|
var util;
|
|
40
106
|
(function(util2) {
|
|
@@ -3717,13 +3783,30 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
3717
3783
|
ZodError
|
|
3718
3784
|
});
|
|
3719
3785
|
|
|
3786
|
+
// lib/asstClient.ts
|
|
3787
|
+
var baseUrlsSchema = z.object({
|
|
3788
|
+
local: z.literal("https://localhost:8443"),
|
|
3789
|
+
test: z.literal("https://integration.api.spscommerce.com/assortment/gateway"),
|
|
3790
|
+
prod: z.literal("https://api.spscommerce.com/assortment/gateway")
|
|
3791
|
+
});
|
|
3792
|
+
var BASE_URLS = {
|
|
3793
|
+
local: "https://localhost:8443",
|
|
3794
|
+
test: "https://integration.api.spscommerce.com/assortment/gateway",
|
|
3795
|
+
prod: "https://api.spscommerce.com/assortment/gateway"
|
|
3796
|
+
};
|
|
3797
|
+
var envSchema = baseUrlsSchema.keyof();
|
|
3798
|
+
var initialConfig = {
|
|
3799
|
+
prefixUrl: BASE_URLS["test"],
|
|
3800
|
+
retry: 0
|
|
3801
|
+
};
|
|
3802
|
+
|
|
3720
3803
|
// lib/imports/models/ImportDetail.ts
|
|
3721
3804
|
var importDetailSchema = z.object({
|
|
3722
|
-
completedAt: z.
|
|
3805
|
+
completedAt: z.number().nullish(),
|
|
3723
3806
|
errorCount: z.number(),
|
|
3724
3807
|
importId: z.number(),
|
|
3725
3808
|
name: z.string(),
|
|
3726
|
-
startedAt: z.
|
|
3809
|
+
startedAt: z.string().nullish(),
|
|
3727
3810
|
status: z.string(),
|
|
3728
3811
|
uploadedAt: z.string()
|
|
3729
3812
|
});
|
|
@@ -3736,7 +3819,7 @@ var importSchema = z.object({
|
|
|
3736
3819
|
|
|
3737
3820
|
// lib/imports/models/ImportError.ts
|
|
3738
3821
|
var importErrorSchema = z.object({
|
|
3739
|
-
attribute: z.string(),
|
|
3822
|
+
attribute: z.string().nullish(),
|
|
3740
3823
|
description: z.string(),
|
|
3741
3824
|
importErrorId: z.number(),
|
|
3742
3825
|
row: z.number()
|
|
@@ -3762,15 +3845,15 @@ var importStatusEnumSchema = z.enum([
|
|
|
3762
3845
|
|
|
3763
3846
|
// lib/imports/models/ImportsStatus.ts
|
|
3764
3847
|
var importsStatusSchema = z.object({
|
|
3765
|
-
completedAt: z.
|
|
3766
|
-
docInEventId: z.
|
|
3767
|
-
errorCount: z.
|
|
3848
|
+
completedAt: z.string().nullish(),
|
|
3849
|
+
docInEventId: z.string().nullish(),
|
|
3850
|
+
errorCount: z.number().nullish(),
|
|
3768
3851
|
importId: z.number(),
|
|
3769
|
-
invalidItemCount: z.
|
|
3770
|
-
name: z.string(),
|
|
3852
|
+
invalidItemCount: z.number().nullish(),
|
|
3853
|
+
name: z.string().nullish(),
|
|
3771
3854
|
status: importStatusEnumSchema,
|
|
3772
|
-
totalItemCount: z.
|
|
3773
|
-
validItemCount: z.
|
|
3855
|
+
totalItemCount: z.number().nullish(),
|
|
3856
|
+
validItemCount: z.number().nullish()
|
|
3774
3857
|
});
|
|
3775
3858
|
|
|
3776
3859
|
// lib/imports/models/VendorPartnerAttGroups.ts
|
|
@@ -3837,19 +3920,25 @@ var exportSchema = z.object({
|
|
|
3837
3920
|
additionalLocales: z.optional(z.array(z.string()))
|
|
3838
3921
|
});
|
|
3839
3922
|
|
|
3923
|
+
// lib/exports/models/DownloadItemsParams.ts
|
|
3924
|
+
var downLoadItemsParamsSchema = z.object({
|
|
3925
|
+
"multi-sheet": z.boolean(),
|
|
3926
|
+
ids: z.array(z.string())
|
|
3927
|
+
});
|
|
3928
|
+
|
|
3840
3929
|
// lib/categories/models/ItemCategory.ts
|
|
3841
3930
|
var itemCategorySchema = z.object({
|
|
3842
3931
|
categoryid: z.number(),
|
|
3843
3932
|
companyId: z.number(),
|
|
3844
3933
|
name: z.string(),
|
|
3845
3934
|
isActive: z.number(),
|
|
3846
|
-
createdDate: z.
|
|
3847
|
-
categorytimestamp: z.
|
|
3935
|
+
createdDate: z.number().nullish(),
|
|
3936
|
+
categorytimestamp: z.number().nullish(),
|
|
3848
3937
|
typeId: z.number(),
|
|
3849
3938
|
type: z.string(),
|
|
3850
|
-
categorykey: z.
|
|
3851
|
-
description: z.
|
|
3852
|
-
categoryCatalogName: z.
|
|
3939
|
+
categorykey: z.string().nullish(),
|
|
3940
|
+
description: z.string().nullish(),
|
|
3941
|
+
categoryCatalogName: z.string().nullish()
|
|
3853
3942
|
});
|
|
3854
3943
|
|
|
3855
3944
|
// lib/categories/models/ItemCategoriesSearch.ts
|
|
@@ -3857,12 +3946,692 @@ var itemCategoriesSearchSchema = z.object({
|
|
|
3857
3946
|
count: z.number(),
|
|
3858
3947
|
data: z.array(itemCategorySchema)
|
|
3859
3948
|
});
|
|
3949
|
+
|
|
3950
|
+
// lib/categories/models/Hierarchy.ts
|
|
3951
|
+
var baseHierarchySchema = z.object({
|
|
3952
|
+
id: z.string(),
|
|
3953
|
+
name: z.string().nullish(),
|
|
3954
|
+
description: z.string().nullish(),
|
|
3955
|
+
type: z.string().nullish()
|
|
3956
|
+
});
|
|
3957
|
+
var hierarchySchema = baseHierarchySchema.extend(
|
|
3958
|
+
{
|
|
3959
|
+
child: z.lazy(() => hierarchySchema).nullable()
|
|
3960
|
+
}
|
|
3961
|
+
);
|
|
3962
|
+
|
|
3963
|
+
// lib/categories/models/ItemHierarchy.ts
|
|
3964
|
+
var itemHierarchySchema = z.object({
|
|
3965
|
+
itemId: z.string(),
|
|
3966
|
+
hierarchies: z.array(hierarchySchema)
|
|
3967
|
+
});
|
|
3968
|
+
|
|
3969
|
+
// lib/categories/models/ItemHierarchyResponse.ts
|
|
3970
|
+
var itemHierarchyResponseSchema = z.object({
|
|
3971
|
+
itemHierarchies: z.array(itemHierarchySchema)
|
|
3972
|
+
});
|
|
3973
|
+
|
|
3974
|
+
// lib/attributes/models/AttributeMetaData.ts
|
|
3975
|
+
var attributeMetaDataSchema = z.object({
|
|
3976
|
+
dbName: z.string(),
|
|
3977
|
+
label: z.string(),
|
|
3978
|
+
group: z.string(),
|
|
3979
|
+
aliases: z.array(z.string()),
|
|
3980
|
+
orderBy: z.string().or(z.number()),
|
|
3981
|
+
type: z.string(),
|
|
3982
|
+
storageType: z.string(),
|
|
3983
|
+
rsxPath: z.string(),
|
|
3984
|
+
indexed: z.boolean(),
|
|
3985
|
+
repeatable: z.boolean(),
|
|
3986
|
+
extended: z.boolean(),
|
|
3987
|
+
hybrid: z.boolean(),
|
|
3988
|
+
userVisible: z.boolean(),
|
|
3989
|
+
retailerOwnedId: z.number().nullish()
|
|
3990
|
+
});
|
|
3991
|
+
|
|
3992
|
+
// lib/attributes/models/AttributeSummary.ts
|
|
3993
|
+
var attributeSummarySchema = z.object({
|
|
3994
|
+
attributeId: z.number(),
|
|
3995
|
+
attributeName: z.string(),
|
|
3996
|
+
displayName: z.string(),
|
|
3997
|
+
modifiedBy: z.string(),
|
|
3998
|
+
modifiedDate: z.number(),
|
|
3999
|
+
retailerOwnedId: z.number().nullish(),
|
|
4000
|
+
clusterAttrGroupId: z.number().nullish(),
|
|
4001
|
+
attributeType: z.string()
|
|
4002
|
+
});
|
|
4003
|
+
|
|
4004
|
+
// lib/attributes/models/AttributesByCompany.ts
|
|
4005
|
+
var attributesByCompanySchema = z.object({
|
|
4006
|
+
next: z.string().nullish(),
|
|
4007
|
+
previous: z.string().nullish(),
|
|
4008
|
+
count: z.number(),
|
|
4009
|
+
results: z.array(attributeSummarySchema)
|
|
4010
|
+
});
|
|
4011
|
+
|
|
4012
|
+
// lib/attributes/models/AttrDatatypeNameEnum.ts
|
|
4013
|
+
var attrDatatypeNameEnumSchema = z.enum([
|
|
4014
|
+
"TEXT",
|
|
4015
|
+
"SET",
|
|
4016
|
+
"INTEGER",
|
|
4017
|
+
"FLOAT",
|
|
4018
|
+
"BOOLEAN",
|
|
4019
|
+
"DATE",
|
|
4020
|
+
"KEYVALUE",
|
|
4021
|
+
"STRING",
|
|
4022
|
+
"REAL"
|
|
4023
|
+
]);
|
|
4024
|
+
|
|
4025
|
+
// lib/attributes/models/AttributeGroup.ts
|
|
4026
|
+
var attributeGroupSchema = z.object({
|
|
4027
|
+
attrGroupId: z.number(),
|
|
4028
|
+
attrGroupType: z.object({
|
|
4029
|
+
attrGroupTypeId: z.number(),
|
|
4030
|
+
groupTypeName: z.string(),
|
|
4031
|
+
primary: z.boolean(),
|
|
4032
|
+
restricted: z.boolean()
|
|
4033
|
+
}),
|
|
4034
|
+
attrGroupTypeId: z.number(),
|
|
4035
|
+
groupName: z.string(),
|
|
4036
|
+
isDefault: z.boolean(),
|
|
4037
|
+
orderWeight: z.number(),
|
|
4038
|
+
primary: z.boolean()
|
|
4039
|
+
});
|
|
4040
|
+
|
|
4041
|
+
// lib/attributes/models/AttributeDefinition.ts
|
|
4042
|
+
var parentAttributeSchema = z.object({
|
|
4043
|
+
attrDataTypeId: z.number(),
|
|
4044
|
+
attrDatatype: z.object({
|
|
4045
|
+
attrDatatypeId: z.number(),
|
|
4046
|
+
datatypeName: attrDatatypeNameEnumSchema,
|
|
4047
|
+
displayOnly: z.boolean()
|
|
4048
|
+
}),
|
|
4049
|
+
attrGroupId: z.number(),
|
|
4050
|
+
attrGroups: z.array(attributeGroupSchema),
|
|
4051
|
+
attrRoundId: z.number(),
|
|
4052
|
+
attrStorageId: z.number(),
|
|
4053
|
+
attributeId: z.number(),
|
|
4054
|
+
attributeName: z.string(),
|
|
4055
|
+
createdBy: z.string(),
|
|
4056
|
+
createdDate: z.number(),
|
|
4057
|
+
description: z.string().optional(),
|
|
4058
|
+
displayName: z.string(),
|
|
4059
|
+
modifiedDate: z.number(),
|
|
4060
|
+
orderWeight: z.number(),
|
|
4061
|
+
parentAttributeId: z.number().optional(),
|
|
4062
|
+
primaryAttrGroup: attributeGroupSchema
|
|
4063
|
+
});
|
|
4064
|
+
var attributeDefinitionSchema = z.object({
|
|
4065
|
+
attrDataTypeId: z.number(),
|
|
4066
|
+
attrDatatype: z.object({
|
|
4067
|
+
attrDatatypeId: z.number(),
|
|
4068
|
+
datatypeName: attrDatatypeNameEnumSchema,
|
|
4069
|
+
displayOnly: z.boolean()
|
|
4070
|
+
}),
|
|
4071
|
+
attrGroupId: z.number(),
|
|
4072
|
+
attrGroups: z.array(attributeGroupSchema),
|
|
4073
|
+
attrRestrictions: z.array(
|
|
4074
|
+
z.object({
|
|
4075
|
+
attrRestrictId: z.number(),
|
|
4076
|
+
ignoreGlobal: z.boolean().optional(),
|
|
4077
|
+
isDefault: z.boolean(),
|
|
4078
|
+
isEssential: z.boolean(),
|
|
4079
|
+
locale: z.string(),
|
|
4080
|
+
mandatory: z.boolean(),
|
|
4081
|
+
repeatable: z.boolean(),
|
|
4082
|
+
minLength: z.number().optional(),
|
|
4083
|
+
maxLength: z.number().optional()
|
|
4084
|
+
})
|
|
4085
|
+
).optional(),
|
|
4086
|
+
attrRoundId: z.number(),
|
|
4087
|
+
attrStorage: z.object({
|
|
4088
|
+
attrStorageId: z.number(),
|
|
4089
|
+
storageName: z.string()
|
|
4090
|
+
}),
|
|
4091
|
+
attrStorageId: z.number(),
|
|
4092
|
+
attrValues: z.array(
|
|
4093
|
+
z.object({
|
|
4094
|
+
attrKeyPair: z.string(),
|
|
4095
|
+
attrValueId: z.number().optional(),
|
|
4096
|
+
isDefault: z.boolean(),
|
|
4097
|
+
locale: z.string(),
|
|
4098
|
+
value: z.string()
|
|
4099
|
+
})
|
|
4100
|
+
).optional(),
|
|
4101
|
+
attributeId: z.number(),
|
|
4102
|
+
attributeName: z.string(),
|
|
4103
|
+
createdBy: z.string(),
|
|
4104
|
+
createdDate: z.number(),
|
|
4105
|
+
description: z.string().optional(),
|
|
4106
|
+
displayName: z.string(),
|
|
4107
|
+
modifiedDate: z.number(),
|
|
4108
|
+
orderWeight: z.number().optional(),
|
|
4109
|
+
parentAttribute: parentAttributeSchema.optional(),
|
|
4110
|
+
parentAttributeId: z.number().optional(),
|
|
4111
|
+
primaryAttrGroup: attributeGroupSchema
|
|
4112
|
+
});
|
|
4113
|
+
|
|
4114
|
+
// lib/attributes/models/AttributeValidValues.ts
|
|
4115
|
+
var attributeValidValuesSchema = z.object({
|
|
4116
|
+
value: z.string(),
|
|
4117
|
+
isDefault: z.boolean(),
|
|
4118
|
+
locale: z.string(),
|
|
4119
|
+
createdBy: z.string(),
|
|
4120
|
+
createdDate: z.number(),
|
|
4121
|
+
modifiedDate: z.number(),
|
|
4122
|
+
modifiedBy: z.string(),
|
|
4123
|
+
attributeId: z.number(),
|
|
4124
|
+
attrValueId: z.number(),
|
|
4125
|
+
attrKeyPair: z.string()
|
|
4126
|
+
});
|
|
4127
|
+
|
|
4128
|
+
// lib/items/models/ItemHeader.ts
|
|
4129
|
+
var itemHeaderSchema = z.object({
|
|
4130
|
+
status: z.string().optional(),
|
|
4131
|
+
catalogName: z.string(),
|
|
4132
|
+
productCodeName: z.string(),
|
|
4133
|
+
selectionCodeName: z.string(),
|
|
4134
|
+
gtin: z.string(),
|
|
4135
|
+
upc: z.string(),
|
|
4136
|
+
ean: z.string(),
|
|
4137
|
+
isbn: z.string(),
|
|
4138
|
+
partNumber: z.string(),
|
|
4139
|
+
lastUpdatedDateString: z.string(),
|
|
4140
|
+
companyId: z.string(),
|
|
4141
|
+
itemInfoId: z.string()
|
|
4142
|
+
});
|
|
4143
|
+
|
|
4144
|
+
// lib/items/models/PhaseEnum.ts
|
|
4145
|
+
var phaseEnumSchema = z.enum([
|
|
4146
|
+
"CORE",
|
|
4147
|
+
"CORE_PLUS",
|
|
4148
|
+
"CORE_ADVANCED",
|
|
4149
|
+
"ENRICHED",
|
|
4150
|
+
"STANDARD_REQUIREMENTS"
|
|
4151
|
+
]);
|
|
4152
|
+
|
|
4153
|
+
// lib/items/models/TradingPartnerStage.ts
|
|
4154
|
+
var tradingPartnerStageSchema = z.object({
|
|
4155
|
+
companyId: z.number(),
|
|
4156
|
+
companyName: z.string(),
|
|
4157
|
+
stage: z.nullable(phaseEnumSchema),
|
|
4158
|
+
isValid: z.boolean()
|
|
4159
|
+
});
|
|
4160
|
+
|
|
4161
|
+
// lib/items/models/ItemMap.ts
|
|
4162
|
+
var itemMapSchema = z.object({
|
|
4163
|
+
rn: z.number().optional(),
|
|
4164
|
+
iteminfoid: z.string(),
|
|
4165
|
+
tradingPartnerStages: z.array(tradingPartnerStageSchema).optional(),
|
|
4166
|
+
gtin: z.string().nullish(),
|
|
4167
|
+
catalogname: z.string().nullish(),
|
|
4168
|
+
isbn: z.string().nullish(),
|
|
4169
|
+
lastupdateddatestring: z.string().nullish(),
|
|
4170
|
+
upc: z.string().nullish(),
|
|
4171
|
+
productcodename: z.string().nullish(),
|
|
4172
|
+
ean: z.string().nullish(),
|
|
4173
|
+
selectioncodename: z.string().nullish(),
|
|
4174
|
+
createddatestring: z.string().nullish(),
|
|
4175
|
+
partnumber: z.string().nullish(),
|
|
4176
|
+
consumeravailabledatestring: z.string().nullish(),
|
|
4177
|
+
status: z.string().nullish(),
|
|
4178
|
+
nrfcolorcode: z.array(z.string()).nullish(),
|
|
4179
|
+
nrfsizecode: z.array(z.string()).nullish(),
|
|
4180
|
+
productcolordescription: z.array(z.string()).nullish(),
|
|
4181
|
+
productsizedescription: z.array(z.string()).nullish()
|
|
4182
|
+
}).passthrough();
|
|
4183
|
+
|
|
4184
|
+
// lib/items/models/ItemTable.ts
|
|
4185
|
+
var itemTableSchema = z.object({
|
|
4186
|
+
headers: itemHeaderSchema,
|
|
4187
|
+
itemMaps: z.array(itemMapSchema)
|
|
4188
|
+
});
|
|
4189
|
+
|
|
4190
|
+
// lib/items/models/ItemSearchView.ts
|
|
4191
|
+
var itemSearchViewSchema = z.object({
|
|
4192
|
+
itemTable: itemTableSchema,
|
|
4193
|
+
hasNext: z.boolean(),
|
|
4194
|
+
count: z.number()
|
|
4195
|
+
});
|
|
4196
|
+
|
|
4197
|
+
// lib/items/models/AttributeDetail.ts
|
|
4198
|
+
var attributeDetailSchema = z.object({
|
|
4199
|
+
type: attrDatatypeNameEnumSchema,
|
|
4200
|
+
name: z.string(),
|
|
4201
|
+
value: z.string().or(z.number()).or(z.array(z.string())).or(z.array(z.number())).nullable(),
|
|
4202
|
+
label: z.string(),
|
|
4203
|
+
group: z.string(),
|
|
4204
|
+
orderBy: z.number().or(z.string()).nullish()
|
|
4205
|
+
});
|
|
4206
|
+
|
|
4207
|
+
// lib/items/models/CategoryEnum.ts
|
|
4208
|
+
var categoryEnumSchema = z.enum([
|
|
4209
|
+
"AKA",
|
|
4210
|
+
"CATALOG",
|
|
4211
|
+
"EXPORT",
|
|
4212
|
+
"LABEL",
|
|
4213
|
+
"LEGACY_PRODUCT_TYPE",
|
|
4214
|
+
"PRODUCT_CLASSIFICATION",
|
|
4215
|
+
"PRODUCT_CODE",
|
|
4216
|
+
"SELECTION_CODE",
|
|
4217
|
+
"TAXONOMY_ROOT"
|
|
4218
|
+
]);
|
|
4219
|
+
|
|
4220
|
+
// lib/items/models/ComponentDetails.ts
|
|
4221
|
+
var componentDetailsSchema = z.object({
|
|
4222
|
+
itemInfoId: z.number(),
|
|
4223
|
+
description: z.string(),
|
|
4224
|
+
saleable: z.boolean(),
|
|
4225
|
+
valid: z.boolean(),
|
|
4226
|
+
uniqueCriteria: z.array(
|
|
4227
|
+
z.object({
|
|
4228
|
+
name: z.string(),
|
|
4229
|
+
value: z.string()
|
|
4230
|
+
})
|
|
4231
|
+
)
|
|
4232
|
+
});
|
|
4233
|
+
|
|
4234
|
+
// lib/items/models/RepeatableGroup.ts
|
|
4235
|
+
var repeatableGroupSchema = z.object({
|
|
4236
|
+
repeatableGroupId: z.string(),
|
|
4237
|
+
repeatableNumber: z.number()
|
|
4238
|
+
});
|
|
4239
|
+
|
|
4240
|
+
// lib/items/models/GroupedAttributeList.ts
|
|
4241
|
+
var groupedAttributeListSchema = z.object({
|
|
4242
|
+
type: z.string(),
|
|
4243
|
+
rows: z.array(z.array(attributeDetailSchema)),
|
|
4244
|
+
repeatableGroups: z.array(repeatableGroupSchema)
|
|
4245
|
+
});
|
|
4246
|
+
|
|
4247
|
+
// lib/items/models/GroupedAttributes.ts
|
|
4248
|
+
var groupedAttributesSchema = z.object({
|
|
4249
|
+
type: z.string(),
|
|
4250
|
+
attributes: z.array(attributeDetailSchema),
|
|
4251
|
+
attributeGroups: z.array(groupedAttributeListSchema)
|
|
4252
|
+
});
|
|
4253
|
+
|
|
4254
|
+
// lib/items/models/HierarchyCategory.ts
|
|
4255
|
+
var hierarchyCategorySchema = z.object({
|
|
4256
|
+
name: z.string(),
|
|
4257
|
+
description: z.string().nullish(),
|
|
4258
|
+
id: z.number(),
|
|
4259
|
+
companyId: z.number(),
|
|
4260
|
+
type: categoryEnumSchema
|
|
4261
|
+
});
|
|
4262
|
+
|
|
4263
|
+
// lib/items/models/HierarchyDetails.ts
|
|
4264
|
+
var hierarchyDetailsSchema = z.object({
|
|
4265
|
+
catalogs: z.array(hierarchyCategorySchema),
|
|
4266
|
+
selectionCodes: z.array(hierarchyCategorySchema),
|
|
4267
|
+
productCodes: z.array(hierarchyCategorySchema)
|
|
4268
|
+
});
|
|
4269
|
+
|
|
4270
|
+
// lib/items/models/PackComponentItemInfo.ts
|
|
4271
|
+
var packComponentItemInfoSchema = z.object({
|
|
4272
|
+
companyid: z.number(),
|
|
4273
|
+
createddate: z.number(),
|
|
4274
|
+
isServiceApi: z.boolean(),
|
|
4275
|
+
isactive: z.number(),
|
|
4276
|
+
isvalid: z.number(),
|
|
4277
|
+
itemType: z.string(),
|
|
4278
|
+
iteminfoid: z.number(),
|
|
4279
|
+
itemtimestamp: z.number(),
|
|
4280
|
+
serviceId: z.number(),
|
|
4281
|
+
attributes: z.record(z.string(), z.string().or(z.array(z.string())))
|
|
4282
|
+
});
|
|
4283
|
+
|
|
4284
|
+
// lib/items/models/ItemPrice.ts
|
|
4285
|
+
var itemPriceSchema = z.object({
|
|
4286
|
+
amount: z.number(),
|
|
4287
|
+
currency: z.string(),
|
|
4288
|
+
id: z.number().nullish(),
|
|
4289
|
+
priceDivision: z.string().nullish(),
|
|
4290
|
+
iteminfoid: z.number().nullish(),
|
|
4291
|
+
startdate: z.string().nullish(),
|
|
4292
|
+
enddate: z.string().nullish(),
|
|
4293
|
+
qualifier: z.string(),
|
|
4294
|
+
region: z.string().nullish(),
|
|
4295
|
+
regionqualifier: z.string().nullish(),
|
|
4296
|
+
regiondescription: z.string().nullish(),
|
|
4297
|
+
partnercompanyid: z.string().nullish(),
|
|
4298
|
+
itempricetimestamp: z.number().nullish(),
|
|
4299
|
+
range_type: z.string().nullish(),
|
|
4300
|
+
date_range_type: z.string().nullish(),
|
|
4301
|
+
min_range: z.number().nullish(),
|
|
4302
|
+
gtin: z.string().nullish(),
|
|
4303
|
+
priceConditionDescription: z.string().nullish(),
|
|
4304
|
+
priceUnitQuantity: z.number().nullish(),
|
|
4305
|
+
priceUnitQuantityUOM: z.string().nullish()
|
|
4306
|
+
});
|
|
4307
|
+
|
|
4308
|
+
// lib/items/models/PackComponentDetails.ts
|
|
4309
|
+
var packComponentDetailsSchema = z.object({
|
|
4310
|
+
itemInfo: packComponentItemInfoSchema,
|
|
4311
|
+
itemPrices: z.array(itemPriceSchema)
|
|
4312
|
+
});
|
|
4313
|
+
|
|
4314
|
+
// lib/items/models/GroupedItem.ts
|
|
4315
|
+
var groupedItemSchema = z.object({
|
|
4316
|
+
iteminfoid: z.number(),
|
|
4317
|
+
companyid: z.number(),
|
|
4318
|
+
status: z.string(),
|
|
4319
|
+
createdDate: z.string(),
|
|
4320
|
+
lastUpdatedDate: z.string(),
|
|
4321
|
+
identifiers: z.record(z.string(), z.any()),
|
|
4322
|
+
hierarchyDetails: hierarchyDetailsSchema,
|
|
4323
|
+
groupedAttributes: z.array(groupedAttributesSchema),
|
|
4324
|
+
packComponentDetails: z.array(packComponentDetailsSchema),
|
|
4325
|
+
childComponentDetails: z.array(componentDetailsSchema),
|
|
4326
|
+
parentComponentDetails: z.array(componentDetailsSchema),
|
|
4327
|
+
locales: z.array(z.string())
|
|
4328
|
+
});
|
|
4329
|
+
|
|
4330
|
+
// lib/items/models/ItemDetailView.ts
|
|
4331
|
+
var itemDetailViewSchema = z.object({
|
|
4332
|
+
item: groupedItemSchema
|
|
4333
|
+
});
|
|
4334
|
+
|
|
4335
|
+
// lib/items/models/Bulb.ts
|
|
4336
|
+
var bulbSchema = z.object({
|
|
4337
|
+
iteminfoid: z.number(),
|
|
4338
|
+
id: z.number(),
|
|
4339
|
+
shape: z.string(),
|
|
4340
|
+
position: z.number(),
|
|
4341
|
+
quantity: z.number(),
|
|
4342
|
+
basetype: z.string(),
|
|
4343
|
+
maxwatt: z.number(),
|
|
4344
|
+
createdat: z.string(),
|
|
4345
|
+
modifiedat: z.string(),
|
|
4346
|
+
bulbtype: z.string(),
|
|
4347
|
+
bulbincluded: z.string(),
|
|
4348
|
+
bulbsize: z.string(),
|
|
4349
|
+
replacementbulb: z.string(),
|
|
4350
|
+
threewaybulb: z.string()
|
|
4351
|
+
});
|
|
4352
|
+
|
|
4353
|
+
// lib/items/models/PackComponent.ts
|
|
4354
|
+
var packComponentSchema = z.object({
|
|
4355
|
+
itemInfoId: z.number().nullish(),
|
|
4356
|
+
attributes: z.record(z.string(), z.string().or(z.array(z.string()))),
|
|
4357
|
+
prices: z.array(itemPriceSchema)
|
|
4358
|
+
});
|
|
4359
|
+
|
|
4360
|
+
// lib/items/models/MediaItem.ts
|
|
4361
|
+
var mediaItemSchema = z.object({
|
|
4362
|
+
id: z.number(),
|
|
4363
|
+
iteminfoid: z.number(),
|
|
4364
|
+
medianame: z.string(),
|
|
4365
|
+
height: z.number().nullish(),
|
|
4366
|
+
filename: z.string(),
|
|
4367
|
+
mediafilename: z.string().nullish(),
|
|
4368
|
+
description: z.string().nullish(),
|
|
4369
|
+
filesize: z.number().nullish(),
|
|
4370
|
+
format: z.string().nullish(),
|
|
4371
|
+
orientation: z.string().nullish(),
|
|
4372
|
+
pixeldensity: z.string().nullish(),
|
|
4373
|
+
purpose: z.string().nullish(),
|
|
4374
|
+
width: z.number().nullish(),
|
|
4375
|
+
mediatype: z.string(),
|
|
4376
|
+
mediaviewtype: z.string().nullish(),
|
|
4377
|
+
compressionquality: z.string().nullish(),
|
|
4378
|
+
thumbnailflag: z.string().nullish()
|
|
4379
|
+
});
|
|
4380
|
+
|
|
4381
|
+
// lib/items/models/ItemDetail.ts
|
|
4382
|
+
var itemDetailSchema = z.object({
|
|
4383
|
+
attributes: z.record(z.string(), z.any()),
|
|
4384
|
+
clusters: z.record(
|
|
4385
|
+
z.string(),
|
|
4386
|
+
z.array(
|
|
4387
|
+
z.object({
|
|
4388
|
+
itemInfoAttributes: z.record(
|
|
4389
|
+
z.string(),
|
|
4390
|
+
z.string().or(z.number()).or(z.boolean())
|
|
4391
|
+
)
|
|
4392
|
+
})
|
|
4393
|
+
)
|
|
4394
|
+
),
|
|
4395
|
+
prices: z.array(itemPriceSchema),
|
|
4396
|
+
bulbs: z.array(bulbSchema),
|
|
4397
|
+
media: z.array(mediaItemSchema),
|
|
4398
|
+
packs: z.array(packComponentSchema)
|
|
4399
|
+
});
|
|
4400
|
+
|
|
4401
|
+
// lib/items/models/SpsItemIdResponse.ts
|
|
4402
|
+
var spsItemIdResponseSchema = z.object({
|
|
4403
|
+
id: z.string(),
|
|
4404
|
+
ref: z.string()
|
|
4405
|
+
});
|
|
4406
|
+
|
|
4407
|
+
// lib/items/models/ItemOrgStatus.ts
|
|
4408
|
+
var itemOrgStatusSchema = z.object({
|
|
4409
|
+
org: z.object({
|
|
4410
|
+
ref: z.string(),
|
|
4411
|
+
id: z.string(),
|
|
4412
|
+
name: z.string()
|
|
4413
|
+
}),
|
|
4414
|
+
lowestInvalidStage: phaseEnumSchema.nullable(),
|
|
4415
|
+
validForRelationship: z.boolean()
|
|
4416
|
+
});
|
|
4417
|
+
|
|
4418
|
+
// lib/items/models/ItemStatus.ts
|
|
4419
|
+
var itemStatusSchema = z.object({
|
|
4420
|
+
itemId: z.string(),
|
|
4421
|
+
itemOrgStatuses: z.array(itemOrgStatusSchema)
|
|
4422
|
+
});
|
|
4423
|
+
|
|
4424
|
+
// lib/items/models/ItemStatusResponse.ts
|
|
4425
|
+
var itemStatusResponseSchema = z.object({
|
|
4426
|
+
itemStatuses: z.array(itemStatusSchema)
|
|
4427
|
+
});
|
|
4428
|
+
|
|
4429
|
+
// lib/locale/models/Locale.ts
|
|
4430
|
+
var localeSchema = z.object({
|
|
4431
|
+
localeCode: z.string(),
|
|
4432
|
+
localeDescription: z.string()
|
|
4433
|
+
});
|
|
4434
|
+
|
|
4435
|
+
// lib/productTypes/models/AttrProdType.ts
|
|
4436
|
+
var attrProdTypeSchema = z.object({
|
|
4437
|
+
attrProdTypeId: z.number(),
|
|
4438
|
+
productType: z.string(),
|
|
4439
|
+
description: z.string(),
|
|
4440
|
+
createdDate: z.number(),
|
|
4441
|
+
createdBy: z.string(),
|
|
4442
|
+
modifiedDate: z.number().optional(),
|
|
4443
|
+
modifiedBy: z.string().optional(),
|
|
4444
|
+
retailerId: z.number().optional()
|
|
4445
|
+
});
|
|
4446
|
+
|
|
4447
|
+
// lib/spreadsheetTemplate/models/SpreadsheetTemplateCompany.ts
|
|
4448
|
+
var spreadsheetTemplateCompanySchema = z.object({
|
|
4449
|
+
companyName: z.string(),
|
|
4450
|
+
companyId: z.number(),
|
|
4451
|
+
createdAt: z.number()
|
|
4452
|
+
});
|
|
4453
|
+
|
|
4454
|
+
// lib/spreadsheetTemplate/models/SpreadsheetTemplate.ts
|
|
4455
|
+
var spreadsheetTemplateSchema = z.object({
|
|
4456
|
+
id: z.number(),
|
|
4457
|
+
fileLocation: z.string(),
|
|
4458
|
+
name: z.string(),
|
|
4459
|
+
templateType: z.string(),
|
|
4460
|
+
maxItemsPerDoc: z.number(),
|
|
4461
|
+
companies: z.array(spreadsheetTemplateCompanySchema),
|
|
4462
|
+
createdBy: z.string().nullish(),
|
|
4463
|
+
createdAt: z.number().nullish(),
|
|
4464
|
+
modifiedBy: z.string().nullish(),
|
|
4465
|
+
modifiedAt: z.number().nullish()
|
|
4466
|
+
});
|
|
4467
|
+
|
|
4468
|
+
// lib/tradingPartners/models/Connection.ts
|
|
4469
|
+
var connectionSchema = z.object({
|
|
4470
|
+
catalog_id: z.number(),
|
|
4471
|
+
catalog_name: z.string().nullable(),
|
|
4472
|
+
partner_company_name: z.string(),
|
|
4473
|
+
partner_company_id: z.number(),
|
|
4474
|
+
partner_org_id: z.string()
|
|
4475
|
+
});
|
|
4476
|
+
|
|
4477
|
+
// lib/tradingPartners/models/TradingPartnerAccessByCompanyId.ts
|
|
4478
|
+
var tradingPartnerAccessByCompanyIdSchema = z.object({
|
|
4479
|
+
companyId: z.number(),
|
|
4480
|
+
companyType: z.string(),
|
|
4481
|
+
identityOrgId: z.string(),
|
|
4482
|
+
companyName: z.string(),
|
|
4483
|
+
count: z.number(),
|
|
4484
|
+
connections: z.array(connectionSchema)
|
|
4485
|
+
});
|
|
4486
|
+
|
|
4487
|
+
// lib/whoami/models/IdentityServiceDatetimePreferences.ts
|
|
4488
|
+
var identityServiceDatetimePreferencesSchema = z.object({
|
|
4489
|
+
DATE_TIME: z.string(),
|
|
4490
|
+
TIME: z.string(),
|
|
4491
|
+
SHORT_DATE: z.string(),
|
|
4492
|
+
LONG_DATETIME: z.string(),
|
|
4493
|
+
LONG_TIME: z.string(),
|
|
4494
|
+
DATE: z.string()
|
|
4495
|
+
});
|
|
4496
|
+
|
|
4497
|
+
// lib/whoami/models/IdentityServiceOrganizationMetadata.ts
|
|
4498
|
+
var identityServiceOrganizationMetadataSchema = z.object({
|
|
4499
|
+
namespace: z.string(),
|
|
4500
|
+
key: z.string(),
|
|
4501
|
+
value: z.string()
|
|
4502
|
+
});
|
|
4503
|
+
|
|
4504
|
+
// lib/whoami/models/IdentityServiceOrganization.ts
|
|
4505
|
+
var identityServiceOrganizationSchema = z.object({
|
|
4506
|
+
organization_name: z.string().optional(),
|
|
4507
|
+
organization_site: z.string().optional(),
|
|
4508
|
+
namespace: z.string().optional(),
|
|
4509
|
+
id: z.string(),
|
|
4510
|
+
permissions: z.array(z.string()).optional(),
|
|
4511
|
+
metadata: identityServiceOrganizationMetadataSchema.optional()
|
|
4512
|
+
});
|
|
4513
|
+
|
|
4514
|
+
// lib/whoami/models/IdentityServicePreferences.ts
|
|
4515
|
+
var identityServicePreferencesSchema = z.object({
|
|
4516
|
+
locale: z.string(),
|
|
4517
|
+
timezone: z.string(),
|
|
4518
|
+
cpUpgrade: z.string().optional(),
|
|
4519
|
+
language: z.array(z.string()),
|
|
4520
|
+
datetime: identityServiceDatetimePreferencesSchema
|
|
4521
|
+
});
|
|
4522
|
+
|
|
4523
|
+
// lib/whoami/models/IdentityServiceUser.ts
|
|
4524
|
+
var identityServiceUserSchema = z.object({
|
|
4525
|
+
id: z.string(),
|
|
4526
|
+
email: z.string().optional(),
|
|
4527
|
+
first_name: z.string().optional(),
|
|
4528
|
+
last_name: z.string().optional(),
|
|
4529
|
+
job_title: z.string().optional(),
|
|
4530
|
+
externally_managed: z.boolean().optional(),
|
|
4531
|
+
city: z.string().optional(),
|
|
4532
|
+
name: z.string(),
|
|
4533
|
+
state: z.string().optional(),
|
|
4534
|
+
country: z.string().optional(),
|
|
4535
|
+
user_type: z.string().optional(),
|
|
4536
|
+
token_type: z.string().optional(),
|
|
4537
|
+
avatar_image_id: z.string().optional(),
|
|
4538
|
+
avatar_image_url: z.string().optional(),
|
|
4539
|
+
origin_avatar_image_id: z.string().optional(),
|
|
4540
|
+
bio: z.string().optional(),
|
|
4541
|
+
phone_number: z.string().optional(),
|
|
4542
|
+
twitter_handle: z.string().optional(),
|
|
4543
|
+
linkedin_url: z.string().optional(),
|
|
4544
|
+
description: z.string().optional(),
|
|
4545
|
+
preferences: identityServicePreferencesSchema.optional(),
|
|
4546
|
+
roles: z.array(z.string()),
|
|
4547
|
+
organization: identityServiceOrganizationSchema,
|
|
4548
|
+
password: z.string(),
|
|
4549
|
+
verified: z.boolean()
|
|
4550
|
+
});
|
|
4551
|
+
|
|
4552
|
+
// lib/whoami/models/RegisteredService.ts
|
|
4553
|
+
var registeredServiceSchema = z.object({
|
|
4554
|
+
serviceId: z.number(),
|
|
4555
|
+
identityServiceId: z.number(),
|
|
4556
|
+
name: z.string(),
|
|
4557
|
+
isActive: z.boolean()
|
|
4558
|
+
});
|
|
4559
|
+
|
|
4560
|
+
// lib/whoami/models/UserAccount.ts
|
|
4561
|
+
var userAccountSchema = z.object({
|
|
4562
|
+
identityUser: identityServiceUserSchema,
|
|
4563
|
+
companyId: z.number(),
|
|
4564
|
+
companyName: z.string(),
|
|
4565
|
+
name: z.string(),
|
|
4566
|
+
assortmentPartnerCompanyId: z.number().nullish(),
|
|
4567
|
+
retailer: z.boolean(),
|
|
4568
|
+
supplier: z.boolean(),
|
|
4569
|
+
registeredService: registeredServiceSchema,
|
|
4570
|
+
uniqueAttributes: z.array(z.string()),
|
|
4571
|
+
admin: z.boolean(),
|
|
4572
|
+
adminToolUser: z.boolean(),
|
|
4573
|
+
attributeRegistryAdmin: z.boolean(),
|
|
4574
|
+
attributeRegistryDev: z.boolean(),
|
|
4575
|
+
attributeRegistryRsx: z.boolean(),
|
|
4576
|
+
attributeRegistryUser: z.boolean(),
|
|
4577
|
+
attributeRegistryViewer: z.boolean()
|
|
4578
|
+
});
|
|
4579
|
+
|
|
4580
|
+
// lib/errors/models/ItemErrorDetails.ts
|
|
4581
|
+
var itemErrorDetailsSchema = z.object({
|
|
4582
|
+
errorMessage: z.string(),
|
|
4583
|
+
attributeName: z.string().nullable(),
|
|
4584
|
+
tradingPartnerNames: z.array(z.string()),
|
|
4585
|
+
phases: z.array(phaseEnumSchema),
|
|
4586
|
+
attributeDbNames: z.array(z.string()),
|
|
4587
|
+
tradingPartnerStages: z.array(tradingPartnerStageSchema),
|
|
4588
|
+
repeatableGroupId: z.string().nullish()
|
|
4589
|
+
});
|
|
4590
|
+
|
|
4591
|
+
// lib/errors/models/ItemErrorDetailsResult.ts
|
|
4592
|
+
var itemErrorDetailsResultSchema = z.object({
|
|
4593
|
+
itemInfoId: z.number(),
|
|
4594
|
+
upc: z.string().nullish(),
|
|
4595
|
+
isbn: z.string().nullish(),
|
|
4596
|
+
gtin: z.string().nullish(),
|
|
4597
|
+
partnumber: z.string().nullish(),
|
|
4598
|
+
ean: z.string().nullish(),
|
|
4599
|
+
itemName: z.string().nullable(),
|
|
4600
|
+
itemErrorDetails: z.array(itemErrorDetailsSchema)
|
|
4601
|
+
});
|
|
3860
4602
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3861
4603
|
0 && (module.exports = {
|
|
4604
|
+
attrDatatypeNameEnumSchema,
|
|
4605
|
+
attrProdTypeSchema,
|
|
4606
|
+
attributeDefinitionSchema,
|
|
4607
|
+
attributeDetailSchema,
|
|
4608
|
+
attributeGroupSchema,
|
|
4609
|
+
attributeMetaDataSchema,
|
|
4610
|
+
attributeSummarySchema,
|
|
4611
|
+
attributeValidValuesSchema,
|
|
4612
|
+
attributesByCompanySchema,
|
|
4613
|
+
bulbSchema,
|
|
4614
|
+
categoryEnumSchema,
|
|
4615
|
+
componentDetailsSchema,
|
|
4616
|
+
connectionSchema,
|
|
4617
|
+
downLoadItemsParamsSchema,
|
|
4618
|
+
envSchema,
|
|
3862
4619
|
exportDayOfWeekEnum,
|
|
3863
4620
|
exportFrequencyEnum,
|
|
3864
4621
|
exportSchema,
|
|
3865
4622
|
exportTypeEnum,
|
|
4623
|
+
generateImportTemplateParamsSchema,
|
|
4624
|
+
groupedAttributeListSchema,
|
|
4625
|
+
groupedAttributesSchema,
|
|
4626
|
+
groupedItemSchema,
|
|
4627
|
+
hierarchyCategorySchema,
|
|
4628
|
+
hierarchyDetailsSchema,
|
|
4629
|
+
hierarchySchema,
|
|
4630
|
+
identityServiceDatetimePreferencesSchema,
|
|
4631
|
+
identityServiceOrganizationMetadataSchema,
|
|
4632
|
+
identityServiceOrganizationSchema,
|
|
4633
|
+
identityServicePreferencesSchema,
|
|
4634
|
+
identityServiceUserSchema,
|
|
3866
4635
|
importDetailSchema,
|
|
3867
4636
|
importErrorSchema,
|
|
3868
4637
|
importErrorsSchema,
|
|
@@ -3870,5 +4639,31 @@ var itemCategoriesSearchSchema = z.object({
|
|
|
3870
4639
|
importStatusEnumSchema,
|
|
3871
4640
|
importsStatusSchema,
|
|
3872
4641
|
itemCategoriesSearchSchema,
|
|
3873
|
-
itemCategorySchema
|
|
4642
|
+
itemCategorySchema,
|
|
4643
|
+
itemDetailSchema,
|
|
4644
|
+
itemDetailViewSchema,
|
|
4645
|
+
itemErrorDetailsResultSchema,
|
|
4646
|
+
itemErrorDetailsSchema,
|
|
4647
|
+
itemHeaderSchema,
|
|
4648
|
+
itemHierarchyResponseSchema,
|
|
4649
|
+
itemHierarchySchema,
|
|
4650
|
+
itemMapSchema,
|
|
4651
|
+
itemPriceSchema,
|
|
4652
|
+
itemSearchViewSchema,
|
|
4653
|
+
itemTableSchema,
|
|
4654
|
+
localeSchema,
|
|
4655
|
+
mediaItemSchema,
|
|
4656
|
+
packComponentDetailsSchema,
|
|
4657
|
+
packComponentItemInfoSchema,
|
|
4658
|
+
packComponentSchema,
|
|
4659
|
+
phaseEnumSchema,
|
|
4660
|
+
registeredServiceSchema,
|
|
4661
|
+
repeatableGroupSchema,
|
|
4662
|
+
spreadsheetTemplateCompanySchema,
|
|
4663
|
+
spreadsheetTemplateSchema,
|
|
4664
|
+
spsItemIdResponseSchema,
|
|
4665
|
+
tradingPartnerAccessByCompanyIdSchema,
|
|
4666
|
+
tradingPartnerStageSchema,
|
|
4667
|
+
userAccountSchema,
|
|
4668
|
+
vendorPartnerAttGroupsSchema
|
|
3874
4669
|
});
|