@spscommerce/asst-api 0.0.1-beta.5 → 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/zod.cjs CHANGED
@@ -30,11 +30,36 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // lib/zod.ts
31
31
  var zod_exports = {};
32
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,
33
47
  envSchema: () => envSchema,
34
48
  exportDayOfWeekEnum: () => exportDayOfWeekEnum,
35
49
  exportFrequencyEnum: () => exportFrequencyEnum,
36
50
  exportSchema: () => exportSchema,
37
51
  exportTypeEnum: () => exportTypeEnum,
52
+ generateImportTemplateParamsSchema: () => generateImportTemplateParamsSchema,
53
+ groupedAttributeListSchema: () => groupedAttributeListSchema,
54
+ groupedAttributesSchema: () => groupedAttributesSchema,
55
+ groupedItemSchema: () => groupedItemSchema,
56
+ hierarchyCategorySchema: () => hierarchyCategorySchema,
57
+ hierarchyDetailsSchema: () => hierarchyDetailsSchema,
58
+ identityServiceDatetimePreferencesSchema: () => identityServiceDatetimePreferencesSchema,
59
+ identityServiceOrganizationMetadataSchema: () => identityServiceOrganizationMetadataSchema,
60
+ identityServiceOrganizationSchema: () => identityServiceOrganizationSchema,
61
+ identityServicePreferencesSchema: () => identityServicePreferencesSchema,
62
+ identityServiceUserSchema: () => identityServiceUserSchema,
38
63
  importDetailSchema: () => importDetailSchema,
39
64
  importErrorSchema: () => importErrorSchema,
40
65
  importErrorsSchema: () => importErrorsSchema,
@@ -42,7 +67,30 @@ __export(zod_exports, {
42
67
  importStatusEnumSchema: () => importStatusEnumSchema,
43
68
  importsStatusSchema: () => importsStatusSchema,
44
69
  itemCategoriesSearchSchema: () => itemCategoriesSearchSchema,
45
- itemCategorySchema: () => itemCategorySchema
70
+ itemCategorySchema: () => itemCategorySchema,
71
+ itemDetailSchema: () => itemDetailSchema,
72
+ itemDetailViewSchema: () => itemDetailViewSchema,
73
+ itemErrorDetailsResultSchema: () => itemErrorDetailsResultSchema,
74
+ itemErrorDetailsSchema: () => itemErrorDetailsSchema,
75
+ itemHeaderSchema: () => itemHeaderSchema,
76
+ itemMapSchema: () => itemMapSchema,
77
+ itemPriceSchema: () => itemPriceSchema,
78
+ itemSearchViewSchema: () => itemSearchViewSchema,
79
+ itemTableSchema: () => itemTableSchema,
80
+ localeSchema: () => localeSchema,
81
+ mediaItemSchema: () => mediaItemSchema,
82
+ packComponentDetailsSchema: () => packComponentDetailsSchema,
83
+ packComponentItemInfoSchema: () => packComponentItemInfoSchema,
84
+ packComponentSchema: () => packComponentSchema,
85
+ phaseEnumSchema: () => phaseEnumSchema,
86
+ registeredServiceSchema: () => registeredServiceSchema,
87
+ repeatableGroupSchema: () => repeatableGroupSchema,
88
+ spreadsheetTemplateCompanySchema: () => spreadsheetTemplateCompanySchema,
89
+ spreadsheetTemplateSchema: () => spreadsheetTemplateSchema,
90
+ tradingPartnerAccessByCompanyIdSchema: () => tradingPartnerAccessByCompanyIdSchema,
91
+ tradingPartnerStageSchema: () => tradingPartnerStageSchema,
92
+ userAccountSchema: () => userAccountSchema,
93
+ vendorPartnerAttGroupsSchema: () => vendorPartnerAttGroupsSchema
46
94
  });
47
95
  module.exports = __toCommonJS(zod_exports);
48
96
 
@@ -3750,11 +3798,11 @@ var initialConfig = {
3750
3798
 
3751
3799
  // lib/imports/models/ImportDetail.ts
3752
3800
  var importDetailSchema = z.object({
3753
- completedAt: z.nullable(z.number()),
3801
+ completedAt: z.number().nullish(),
3754
3802
  errorCount: z.number(),
3755
3803
  importId: z.number(),
3756
3804
  name: z.string(),
3757
- startedAt: z.nullable(z.string()),
3805
+ startedAt: z.string().nullish(),
3758
3806
  status: z.string(),
3759
3807
  uploadedAt: z.string()
3760
3808
  });
@@ -3767,7 +3815,7 @@ var importSchema = z.object({
3767
3815
 
3768
3816
  // lib/imports/models/ImportError.ts
3769
3817
  var importErrorSchema = z.object({
3770
- attribute: z.string(),
3818
+ attribute: z.string().nullish(),
3771
3819
  description: z.string(),
3772
3820
  importErrorId: z.number(),
3773
3821
  row: z.number()
@@ -3793,15 +3841,15 @@ var importStatusEnumSchema = z.enum([
3793
3841
 
3794
3842
  // lib/imports/models/ImportsStatus.ts
3795
3843
  var importsStatusSchema = z.object({
3796
- completedAt: z.nullable(z.string()).optional(),
3797
- docInEventId: z.nullable(z.string()).optional(),
3798
- errorCount: z.nullable(z.number()).optional(),
3844
+ completedAt: z.string().nullish(),
3845
+ docInEventId: z.string().nullish(),
3846
+ errorCount: z.number().nullish(),
3799
3847
  importId: z.number(),
3800
- invalidItemCount: z.nullable(z.number()).optional(),
3848
+ invalidItemCount: z.number().nullish(),
3801
3849
  name: z.string(),
3802
3850
  status: importStatusEnumSchema,
3803
- totalItemCount: z.nullable(z.number()).optional(),
3804
- validItemCount: z.nullable(z.number()).optional()
3851
+ totalItemCount: z.number().nullish(),
3852
+ validItemCount: z.number().nullish()
3805
3853
  });
3806
3854
 
3807
3855
  // lib/imports/models/VendorPartnerAttGroups.ts
@@ -3868,19 +3916,25 @@ var exportSchema = z.object({
3868
3916
  additionalLocales: z.optional(z.array(z.string()))
3869
3917
  });
3870
3918
 
3919
+ // lib/exports/models/DownloadItemsParams.ts
3920
+ var downLoadItemsParamsSchema = z.object({
3921
+ "multi-sheet": z.boolean(),
3922
+ ids: z.array(z.string())
3923
+ });
3924
+
3871
3925
  // lib/categories/models/ItemCategory.ts
3872
3926
  var itemCategorySchema = z.object({
3873
3927
  categoryid: z.number(),
3874
3928
  companyId: z.number(),
3875
3929
  name: z.string(),
3876
3930
  isActive: z.number(),
3877
- createdDate: z.nullable(z.number()),
3878
- categorytimestamp: z.nullable(z.number()),
3931
+ createdDate: z.number().nullish(),
3932
+ categorytimestamp: z.number().nullish(),
3879
3933
  typeId: z.number(),
3880
3934
  type: z.string(),
3881
- categorykey: z.optional(z.string()),
3882
- description: z.nullable(z.string()).optional(),
3883
- categoryCatalogName: z.nullable(z.string()).optional()
3935
+ categorykey: z.string().nullish(),
3936
+ description: z.string().nullish(),
3937
+ categoryCatalogName: z.string().nullish()
3884
3938
  });
3885
3939
 
3886
3940
  // lib/categories/models/ItemCategoriesSearch.ts
@@ -3888,13 +3942,638 @@ var itemCategoriesSearchSchema = z.object({
3888
3942
  count: z.number(),
3889
3943
  data: z.array(itemCategorySchema)
3890
3944
  });
3945
+
3946
+ // lib/attributes/models/AttributeMetaData.ts
3947
+ var attributeMetaDataSchema = z.object({
3948
+ dbName: z.string(),
3949
+ label: z.string(),
3950
+ group: z.string(),
3951
+ aliases: z.array(z.string()),
3952
+ orderBy: z.string().or(z.number()),
3953
+ type: z.string(),
3954
+ storageType: z.string(),
3955
+ rsxPath: z.string(),
3956
+ indexed: z.boolean(),
3957
+ repeatable: z.boolean(),
3958
+ extended: z.boolean(),
3959
+ hybrid: z.boolean(),
3960
+ userVisible: z.boolean(),
3961
+ retailerOwnedId: z.number().nullish()
3962
+ });
3963
+
3964
+ // lib/attributes/models/AttributeSummary.ts
3965
+ var attributeSummarySchema = z.object({
3966
+ attributeId: z.number(),
3967
+ attributeName: z.string(),
3968
+ displayName: z.string(),
3969
+ modifiedBy: z.string(),
3970
+ modifiedDate: z.number(),
3971
+ retailerOwnedId: z.number().nullish(),
3972
+ clusterAttrGroupId: z.number().nullish(),
3973
+ attributeType: z.string()
3974
+ });
3975
+
3976
+ // lib/attributes/models/AttributesByCompany.ts
3977
+ var attributesByCompanySchema = z.object({
3978
+ next: z.string().nullish(),
3979
+ previous: z.string().nullish(),
3980
+ count: z.number(),
3981
+ results: z.array(attributeSummarySchema)
3982
+ });
3983
+
3984
+ // lib/attributes/models/AttrDatatypeNameEnum.ts
3985
+ var attrDatatypeNameEnumSchema = z.enum([
3986
+ "TEXT",
3987
+ "SET",
3988
+ "INTEGER",
3989
+ "FLOAT",
3990
+ "BOOLEAN",
3991
+ "DATE",
3992
+ "KEYVALUE",
3993
+ "STRING",
3994
+ "REAL"
3995
+ ]);
3996
+
3997
+ // lib/attributes/models/AttributeGroup.ts
3998
+ var attributeGroupSchema = z.object({
3999
+ attrGroupId: z.number(),
4000
+ attrGroupType: z.object({
4001
+ attrGroupTypeId: z.number(),
4002
+ groupTypeName: z.string(),
4003
+ primary: z.boolean(),
4004
+ restricted: z.boolean()
4005
+ }),
4006
+ attrGroupTypeId: z.number(),
4007
+ groupName: z.string(),
4008
+ isDefault: z.boolean(),
4009
+ orderWeight: z.number(),
4010
+ primary: z.boolean()
4011
+ });
4012
+
4013
+ // lib/attributes/models/AttributeDefinition.ts
4014
+ var parentAttributeSchema = z.object({
4015
+ attrDataTypeId: z.number(),
4016
+ attrDatatype: z.object({
4017
+ attrDatatypeId: z.number(),
4018
+ datatypeName: attrDatatypeNameEnumSchema,
4019
+ displayOnly: z.boolean()
4020
+ }),
4021
+ attrGroupId: z.number(),
4022
+ attrGroups: z.array(attributeGroupSchema),
4023
+ attrRoundId: z.number(),
4024
+ attrStorageId: z.number(),
4025
+ attributeId: z.number(),
4026
+ attributeName: z.string(),
4027
+ createdBy: z.string(),
4028
+ createdDate: z.number(),
4029
+ description: z.string().optional(),
4030
+ displayName: z.string(),
4031
+ modifiedDate: z.number(),
4032
+ orderWeight: z.number(),
4033
+ parentAttributeId: z.number().optional(),
4034
+ primaryAttrGroup: attributeGroupSchema
4035
+ });
4036
+ var attributeDefinitionSchema = z.object({
4037
+ attrDataTypeId: z.number(),
4038
+ attrDatatype: z.object({
4039
+ attrDatatypeId: z.number(),
4040
+ datatypeName: attrDatatypeNameEnumSchema,
4041
+ displayOnly: z.boolean()
4042
+ }),
4043
+ attrGroupId: z.number(),
4044
+ attrGroups: z.array(attributeGroupSchema),
4045
+ attrRestrictions: z.array(
4046
+ z.object({
4047
+ attrRestrictId: z.number(),
4048
+ ignoreGlobal: z.boolean().optional(),
4049
+ isDefault: z.boolean(),
4050
+ isEssential: z.boolean(),
4051
+ locale: z.string(),
4052
+ mandatory: z.boolean(),
4053
+ repeatable: z.boolean(),
4054
+ minLength: z.number().optional(),
4055
+ maxLength: z.number().optional()
4056
+ })
4057
+ ),
4058
+ attrRoundId: z.number(),
4059
+ attrStorage: z.object({
4060
+ attrStorageId: z.number(),
4061
+ storageName: z.string()
4062
+ }),
4063
+ attrStorageId: z.number(),
4064
+ attrValues: z.array(
4065
+ z.object({
4066
+ attrKeyPair: z.string(),
4067
+ attrValueId: z.number().optional(),
4068
+ isDefault: z.boolean(),
4069
+ locale: z.string(),
4070
+ value: z.string()
4071
+ })
4072
+ ).optional(),
4073
+ attributeId: z.number(),
4074
+ attributeName: z.string(),
4075
+ createdBy: z.string(),
4076
+ createdDate: z.number(),
4077
+ description: z.string().optional(),
4078
+ displayName: z.string(),
4079
+ modifiedDate: z.number(),
4080
+ orderWeight: z.number().optional(),
4081
+ parentAttribute: parentAttributeSchema.optional(),
4082
+ parentAttributeId: z.number().optional(),
4083
+ primaryAttrGroup: attributeGroupSchema
4084
+ });
4085
+
4086
+ // lib/attributes/models/AttributeValidValues.ts
4087
+ var attributeValidValuesSchema = z.object({
4088
+ value: z.string(),
4089
+ isDefault: z.boolean(),
4090
+ locale: z.string(),
4091
+ createdBy: z.string(),
4092
+ createdDate: z.number(),
4093
+ modifiedDate: z.number(),
4094
+ modifiedBy: z.string(),
4095
+ attributeId: z.number(),
4096
+ attrValueId: z.number(),
4097
+ attrKeyPair: z.string()
4098
+ });
4099
+
4100
+ // lib/items/models/ItemHeader.ts
4101
+ var itemHeaderSchema = z.object({
4102
+ status: z.string().optional(),
4103
+ catalogName: z.string(),
4104
+ productCodeName: z.string(),
4105
+ selectionCodeName: z.string(),
4106
+ gtin: z.string(),
4107
+ upc: z.string(),
4108
+ ean: z.string(),
4109
+ isbn: z.string(),
4110
+ partNumber: z.string(),
4111
+ lastUpdatedDateString: z.string(),
4112
+ companyId: z.string(),
4113
+ itemInfoId: z.string()
4114
+ });
4115
+
4116
+ // lib/items/models/PhaseEnum.ts
4117
+ var phaseEnumSchema = z.enum([
4118
+ "CORE",
4119
+ "CORE_PLUS",
4120
+ "CORE_ADVANCED",
4121
+ "ENRICHED",
4122
+ "STANDARD_REQUIREMENTS"
4123
+ ]);
4124
+
4125
+ // lib/items/models/TradingPartnerStage.ts
4126
+ var tradingPartnerStageSchema = z.object({
4127
+ companyId: z.number(),
4128
+ companyName: z.string(),
4129
+ stage: z.nullable(phaseEnumSchema),
4130
+ isValid: z.boolean()
4131
+ });
4132
+
4133
+ // lib/items/models/ItemMap.ts
4134
+ var itemMapSchema = z.object({
4135
+ rn: z.number().optional(),
4136
+ iteminfoid: z.string(),
4137
+ tradingPartnerStages: z.array(tradingPartnerStageSchema).optional(),
4138
+ gtin: z.string().nullish(),
4139
+ catalogname: z.string().nullish(),
4140
+ isbn: z.string().nullish(),
4141
+ lastupdateddatestring: z.string().nullish(),
4142
+ upc: z.string().nullish(),
4143
+ productcodename: z.string().nullish(),
4144
+ ean: z.string().nullish(),
4145
+ selectioncodename: z.string().nullish(),
4146
+ createddatestring: z.string().nullish(),
4147
+ partnumber: z.string().nullish(),
4148
+ consumeravailabledatestring: z.string().nullish(),
4149
+ status: z.string().nullish(),
4150
+ nrfcolorcode: z.array(z.string()).nullish(),
4151
+ nrfsizecode: z.string().nullish(),
4152
+ productcolordescription: z.array(z.string()).nullish(),
4153
+ productsizedescription: z.array(z.string()).nullish()
4154
+ });
4155
+
4156
+ // lib/items/models/ItemTable.ts
4157
+ var itemTableSchema = z.object({
4158
+ headers: itemHeaderSchema,
4159
+ itemMaps: z.array(itemMapSchema)
4160
+ });
4161
+
4162
+ // lib/items/models/ItemSearchView.ts
4163
+ var itemSearchViewSchema = z.object({
4164
+ itemTable: itemTableSchema,
4165
+ hasNext: z.boolean(),
4166
+ count: z.number()
4167
+ });
4168
+
4169
+ // lib/items/models/AttributeDetail.ts
4170
+ var attributeDetailSchema = z.object({
4171
+ type: attrDatatypeNameEnumSchema,
4172
+ name: z.string(),
4173
+ value: z.string().or(z.number()).or(z.array(z.string())).or(z.array(z.number())).nullable(),
4174
+ label: z.string(),
4175
+ group: z.string(),
4176
+ orderBy: z.number().or(z.string()).nullish()
4177
+ });
4178
+
4179
+ // lib/items/models/CategoryEnum.ts
4180
+ var categoryEnumSchema = z.enum([
4181
+ "AKA",
4182
+ "CATALOG",
4183
+ "EXPORT",
4184
+ "LABEL",
4185
+ "LEGACY_PRODUCT_TYPE",
4186
+ "PRODUCT_CLASSIFICATION",
4187
+ "PRODUCT_CODE",
4188
+ "SELECTION_CODE",
4189
+ "TAXONOMY_ROOT"
4190
+ ]);
4191
+
4192
+ // lib/items/models/ComponentDetails.ts
4193
+ var componentDetailsSchema = z.object({
4194
+ itemInfoId: z.number(),
4195
+ description: z.string(),
4196
+ saleable: z.boolean(),
4197
+ valid: z.boolean(),
4198
+ uniqueCriteria: z.array(
4199
+ z.object({
4200
+ name: z.string(),
4201
+ value: z.string()
4202
+ })
4203
+ )
4204
+ });
4205
+
4206
+ // lib/items/models/RepeatableGroup.ts
4207
+ var repeatableGroupSchema = z.object({
4208
+ repeatableGroupId: z.string(),
4209
+ repeatableNumber: z.number()
4210
+ });
4211
+
4212
+ // lib/items/models/GroupedAttributeList.ts
4213
+ var groupedAttributeListSchema = z.object({
4214
+ type: z.string(),
4215
+ rows: z.array(z.array(attributeDetailSchema)),
4216
+ repeatableGroups: z.array(repeatableGroupSchema)
4217
+ });
4218
+
4219
+ // lib/items/models/GroupedAttributes.ts
4220
+ var groupedAttributesSchema = z.object({
4221
+ type: z.string(),
4222
+ attributes: z.array(attributeDetailSchema),
4223
+ attributeGroups: z.array(groupedAttributeListSchema)
4224
+ });
4225
+
4226
+ // lib/items/models/HierarchyCategory.ts
4227
+ var hierarchyCategorySchema = z.object({
4228
+ name: z.string(),
4229
+ description: z.string().nullish(),
4230
+ id: z.number(),
4231
+ companyId: z.number(),
4232
+ type: categoryEnumSchema
4233
+ });
4234
+
4235
+ // lib/items/models/HierarchyDetails.ts
4236
+ var hierarchyDetailsSchema = z.object({
4237
+ catalogs: z.array(hierarchyCategorySchema),
4238
+ selectionCodes: z.array(hierarchyCategorySchema),
4239
+ productCodes: z.array(hierarchyCategorySchema)
4240
+ });
4241
+
4242
+ // lib/items/models/PackComponentItemInfo.ts
4243
+ var packComponentItemInfoSchema = z.object({
4244
+ companyid: z.number(),
4245
+ createddate: z.number(),
4246
+ isServiceApi: z.boolean(),
4247
+ isactive: z.number(),
4248
+ isvalid: z.number(),
4249
+ itemType: z.string(),
4250
+ iteminfoid: z.number(),
4251
+ itemtimestamp: z.number(),
4252
+ serviceId: z.number(),
4253
+ attributes: z.record(z.string(), z.string().or(z.array(z.string())))
4254
+ });
4255
+
4256
+ // lib/items/models/ItemPrice.ts
4257
+ var itemPriceSchema = z.object({
4258
+ amount: z.number(),
4259
+ currency: z.string(),
4260
+ id: z.number().nullish(),
4261
+ priceDivision: z.string().nullish(),
4262
+ iteminfoid: z.number().nullish(),
4263
+ startdate: z.string().nullish(),
4264
+ enddate: z.string().nullish(),
4265
+ qualifier: z.string(),
4266
+ region: z.string().nullish(),
4267
+ regionqualifier: z.string().nullish(),
4268
+ regiondescription: z.string().nullish(),
4269
+ partnercompanyid: z.string().nullish(),
4270
+ itempricetimestamp: z.number().nullish(),
4271
+ range_type: z.string().nullish(),
4272
+ date_range_type: z.string().nullish(),
4273
+ min_range: z.number().nullish(),
4274
+ gtin: z.string().nullish(),
4275
+ priceConditionDescription: z.string().nullish(),
4276
+ priceUnitQuantity: z.number().nullish(),
4277
+ priceUnitQuantityUOM: z.string().nullish()
4278
+ });
4279
+
4280
+ // lib/items/models/PackComponentDetails.ts
4281
+ var packComponentDetailsSchema = z.object({
4282
+ itemInfo: packComponentItemInfoSchema,
4283
+ itemPrices: z.array(itemPriceSchema)
4284
+ });
4285
+
4286
+ // lib/items/models/GroupedItem.ts
4287
+ var groupedItemSchema = z.object({
4288
+ iteminfoid: z.number(),
4289
+ companyid: z.number(),
4290
+ status: z.string(),
4291
+ createdDate: z.string(),
4292
+ lastUpdatedDate: z.string(),
4293
+ identifiers: z.record(z.string(), z.any()),
4294
+ hierarchyDetails: hierarchyDetailsSchema,
4295
+ groupedAttributes: z.array(groupedAttributesSchema),
4296
+ packComponentDetails: z.array(packComponentDetailsSchema),
4297
+ childComponentDetails: z.array(componentDetailsSchema),
4298
+ parentComponentDetails: z.array(componentDetailsSchema),
4299
+ locales: z.array(z.string())
4300
+ });
4301
+
4302
+ // lib/items/models/ItemDetailView.ts
4303
+ var itemDetailViewSchema = z.object({
4304
+ item: groupedItemSchema
4305
+ });
4306
+
4307
+ // lib/items/models/Bulb.ts
4308
+ var bulbSchema = z.object({
4309
+ iteminfoid: z.number(),
4310
+ id: z.number(),
4311
+ shape: z.string(),
4312
+ position: z.number(),
4313
+ quantity: z.number(),
4314
+ basetype: z.string(),
4315
+ maxwatt: z.number(),
4316
+ createdat: z.string(),
4317
+ modifiedat: z.string(),
4318
+ bulbtype: z.string(),
4319
+ bulbincluded: z.string(),
4320
+ bulbsize: z.string(),
4321
+ replacementbulb: z.string(),
4322
+ threewaybulb: z.string()
4323
+ });
4324
+
4325
+ // lib/items/models/PackComponent.ts
4326
+ var packComponentSchema = z.object({
4327
+ itemInfoId: z.number().nullish(),
4328
+ attributes: z.record(z.string(), z.string().or(z.array(z.string()))),
4329
+ prices: z.array(itemPriceSchema)
4330
+ });
4331
+
4332
+ // lib/items/models/MediaItem.ts
4333
+ var mediaItemSchema = z.object({
4334
+ id: z.number(),
4335
+ iteminfoid: z.number(),
4336
+ medianame: z.string(),
4337
+ height: z.number().nullish(),
4338
+ filename: z.string(),
4339
+ mediafilename: z.string().nullish(),
4340
+ description: z.string().nullish(),
4341
+ filesize: z.number().nullish(),
4342
+ format: z.string().nullish(),
4343
+ orientation: z.string().nullish(),
4344
+ pixeldensity: z.string().nullish(),
4345
+ purpose: z.string().nullish(),
4346
+ width: z.number().nullish(),
4347
+ mediatype: z.string(),
4348
+ mediaviewtype: z.string().nullish(),
4349
+ compressionquality: z.string().nullish(),
4350
+ thumbnailflag: z.string().nullish()
4351
+ });
4352
+
4353
+ // lib/items/models/ItemDetail.ts
4354
+ var itemDetailSchema = z.object({
4355
+ attributes: z.record(z.string(), z.any()),
4356
+ clusters: z.record(
4357
+ z.string(),
4358
+ z.array(
4359
+ z.object({
4360
+ itemInfoAttributes: z.record(
4361
+ z.string(),
4362
+ z.string().or(z.number()).or(z.boolean())
4363
+ )
4364
+ })
4365
+ )
4366
+ ),
4367
+ prices: z.array(itemPriceSchema),
4368
+ bulbs: z.array(bulbSchema),
4369
+ media: z.array(mediaItemSchema),
4370
+ packs: z.array(packComponentSchema)
4371
+ });
4372
+
4373
+ // lib/locale/models/Locale.ts
4374
+ var localeSchema = z.object({
4375
+ localeCode: z.string(),
4376
+ localeDescription: z.string()
4377
+ });
4378
+
4379
+ // lib/productTypes/models/AttrProdType.ts
4380
+ var attrProdTypeSchema = z.object({
4381
+ attrProdTypeId: z.number(),
4382
+ productType: z.string(),
4383
+ description: z.string(),
4384
+ createdDate: z.number(),
4385
+ createdBy: z.string(),
4386
+ modifiedDate: z.number().optional(),
4387
+ modifiedBy: z.string().optional(),
4388
+ retailerId: z.number().optional()
4389
+ });
4390
+
4391
+ // lib/spreadsheetTemplate/models/SpreadsheetTemplateCompany.ts
4392
+ var spreadsheetTemplateCompanySchema = z.object({
4393
+ companyName: z.string(),
4394
+ companyId: z.number(),
4395
+ createdAt: z.number()
4396
+ });
4397
+
4398
+ // lib/spreadsheetTemplate/models/SpreadsheetTemplate.ts
4399
+ var spreadsheetTemplateSchema = z.object({
4400
+ id: z.number(),
4401
+ fileLocation: z.string(),
4402
+ name: z.string(),
4403
+ templateType: z.string(),
4404
+ maxItemsPerDoc: z.number(),
4405
+ companies: z.array(spreadsheetTemplateCompanySchema),
4406
+ createdBy: z.string().nullish(),
4407
+ createdAt: z.number().nullish(),
4408
+ modifiedBy: z.string().nullish(),
4409
+ modifiedAt: z.number().nullish()
4410
+ });
4411
+
4412
+ // lib/tradingPartners/models/Connection.ts
4413
+ var connectionSchema = z.object({
4414
+ catalog_id: z.number(),
4415
+ catalog_name: z.string(),
4416
+ partner_company_name: z.string(),
4417
+ partner_company_id: z.number()
4418
+ });
4419
+
4420
+ // lib/tradingPartners/models/TradingPartnerAccessByCompanyId.ts
4421
+ var tradingPartnerAccessByCompanyIdSchema = z.object({
4422
+ companyId: z.number(),
4423
+ companyType: z.string(),
4424
+ identityOrgId: z.string(),
4425
+ companyName: z.string(),
4426
+ count: z.number(),
4427
+ connections: z.array(connectionSchema)
4428
+ });
4429
+
4430
+ // lib/whoami/models/IdentityServiceDatetimePreferences.ts
4431
+ var identityServiceDatetimePreferencesSchema = z.object({
4432
+ DATE_TIME: z.string(),
4433
+ TIME: z.string(),
4434
+ SHORT_DATE: z.string(),
4435
+ LONG_DATETIME: z.string(),
4436
+ LONG_TIME: z.string(),
4437
+ DATE: z.string()
4438
+ });
4439
+
4440
+ // lib/whoami/models/IdentityServiceOrganizationMetadata.ts
4441
+ var identityServiceOrganizationMetadataSchema = z.object({
4442
+ namespace: z.string(),
4443
+ key: z.string(),
4444
+ value: z.string()
4445
+ });
4446
+
4447
+ // lib/whoami/models/IdentityServiceOrganization.ts
4448
+ var identityServiceOrganizationSchema = z.object({
4449
+ organization_name: z.string(),
4450
+ organization_site: z.string(),
4451
+ namespace: z.string(),
4452
+ id: z.string(),
4453
+ permissions: z.array(z.string()).optional(),
4454
+ metadata: identityServiceOrganizationMetadataSchema.optional()
4455
+ });
4456
+
4457
+ // lib/whoami/models/IdentityServicePreferences.ts
4458
+ var identityServicePreferencesSchema = z.object({
4459
+ locale: z.string(),
4460
+ timezone: z.string(),
4461
+ cpUpgrade: z.string().optional(),
4462
+ language: z.array(z.string()),
4463
+ datetime: identityServiceDatetimePreferencesSchema
4464
+ });
4465
+
4466
+ // lib/whoami/models/IdentityServiceUser.ts
4467
+ var identityServiceUserSchema = z.object({
4468
+ 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(),
4475
+ 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(),
4487
+ description: z.string().optional(),
4488
+ preferences: identityServicePreferencesSchema,
4489
+ roles: z.array(z.string()),
4490
+ organization: identityServiceOrganizationSchema,
4491
+ password: z.string(),
4492
+ verified: z.boolean()
4493
+ });
4494
+
4495
+ // lib/whoami/models/RegisteredService.ts
4496
+ var registeredServiceSchema = z.object({
4497
+ serviceId: z.number(),
4498
+ identityServiceId: z.number(),
4499
+ name: z.string(),
4500
+ isActive: z.boolean()
4501
+ });
4502
+
4503
+ // lib/whoami/models/UserAccount.ts
4504
+ var userAccountSchema = z.object({
4505
+ identityUser: identityServiceUserSchema,
4506
+ companyId: z.number(),
4507
+ companyName: z.string(),
4508
+ name: z.string(),
4509
+ assortmentPartnerCompanyId: z.number().nullish(),
4510
+ retailer: z.boolean(),
4511
+ supplier: z.boolean(),
4512
+ registeredService: registeredServiceSchema,
4513
+ uniqueAttributes: z.array(z.string()),
4514
+ admin: z.boolean(),
4515
+ adminToolUser: z.boolean(),
4516
+ attributeRegistryAdmin: z.boolean(),
4517
+ attributeRegistryDev: z.boolean(),
4518
+ attributeRegistryRsx: z.boolean(),
4519
+ attributeRegistryUser: z.boolean(),
4520
+ attributeRegistryViewer: z.boolean()
4521
+ });
4522
+
4523
+ // lib/errors/models/ItemErrorDetails.ts
4524
+ var itemErrorDetailsSchema = z.object({
4525
+ errorMessage: z.string(),
4526
+ attributeName: z.string(),
4527
+ tradingPartnerNames: z.array(z.string()),
4528
+ phases: z.array(phaseEnumSchema),
4529
+ attributeDbNames: z.array(z.string()),
4530
+ tradingPartnerStages: z.array(tradingPartnerStageSchema),
4531
+ repeatableGroupId: z.string().nullish()
4532
+ });
4533
+
4534
+ // lib/errors/models/ItemErrorDetailsResult.ts
4535
+ var itemErrorDetailsResultSchema = z.object({
4536
+ itemInfoId: z.number(),
4537
+ upc: z.string().nullish(),
4538
+ isbn: z.string().nullish(),
4539
+ gtin: z.string().nullish(),
4540
+ partnumber: z.string().nullish(),
4541
+ ean: z.string().nullish(),
4542
+ itemName: z.string().nullable(),
4543
+ itemErrorDetails: z.array(itemErrorDetailsSchema)
4544
+ });
3891
4545
  // Annotate the CommonJS export names for ESM import in node:
3892
4546
  0 && (module.exports = {
4547
+ attrDatatypeNameEnumSchema,
4548
+ attrProdTypeSchema,
4549
+ attributeDefinitionSchema,
4550
+ attributeDetailSchema,
4551
+ attributeGroupSchema,
4552
+ attributeMetaDataSchema,
4553
+ attributeSummarySchema,
4554
+ attributeValidValuesSchema,
4555
+ attributesByCompanySchema,
4556
+ bulbSchema,
4557
+ categoryEnumSchema,
4558
+ componentDetailsSchema,
4559
+ connectionSchema,
4560
+ downLoadItemsParamsSchema,
3893
4561
  envSchema,
3894
4562
  exportDayOfWeekEnum,
3895
4563
  exportFrequencyEnum,
3896
4564
  exportSchema,
3897
4565
  exportTypeEnum,
4566
+ generateImportTemplateParamsSchema,
4567
+ groupedAttributeListSchema,
4568
+ groupedAttributesSchema,
4569
+ groupedItemSchema,
4570
+ hierarchyCategorySchema,
4571
+ hierarchyDetailsSchema,
4572
+ identityServiceDatetimePreferencesSchema,
4573
+ identityServiceOrganizationMetadataSchema,
4574
+ identityServiceOrganizationSchema,
4575
+ identityServicePreferencesSchema,
4576
+ identityServiceUserSchema,
3898
4577
  importDetailSchema,
3899
4578
  importErrorSchema,
3900
4579
  importErrorsSchema,
@@ -3902,5 +4581,28 @@ var itemCategoriesSearchSchema = z.object({
3902
4581
  importStatusEnumSchema,
3903
4582
  importsStatusSchema,
3904
4583
  itemCategoriesSearchSchema,
3905
- itemCategorySchema
4584
+ itemCategorySchema,
4585
+ itemDetailSchema,
4586
+ itemDetailViewSchema,
4587
+ itemErrorDetailsResultSchema,
4588
+ itemErrorDetailsSchema,
4589
+ itemHeaderSchema,
4590
+ itemMapSchema,
4591
+ itemPriceSchema,
4592
+ itemSearchViewSchema,
4593
+ itemTableSchema,
4594
+ localeSchema,
4595
+ mediaItemSchema,
4596
+ packComponentDetailsSchema,
4597
+ packComponentItemInfoSchema,
4598
+ packComponentSchema,
4599
+ phaseEnumSchema,
4600
+ registeredServiceSchema,
4601
+ repeatableGroupSchema,
4602
+ spreadsheetTemplateCompanySchema,
4603
+ spreadsheetTemplateSchema,
4604
+ tradingPartnerAccessByCompanyIdSchema,
4605
+ tradingPartnerStageSchema,
4606
+ userAccountSchema,
4607
+ vendorPartnerAttGroupsSchema
3906
4608
  });