@spscommerce/asst-api 0.2.0 → 1.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.
@@ -0,0 +1,616 @@
1
+ import { A as AsstClient, a as Import, b as ImportsStatus, V as VendorPartnerAttGroups, E as Export, m as AttrProdType, T as TradingPartnerAccessByCompanyId, e as CompanyRelationshipUpsertBody, c as ItemCategoriesSearch, i as AttributeMetaData, j as AttributesByCompany, k as AttributeDefinition, l as AttributeValidValues, L as Locale, S as SpreadsheetTemplate, U as UserAccount, g as ItemSearchView, h as ItemDetailView, f as ItemErrorDetailsResult } from './CompanyBriefByOrg-HsKxilwl.js';
2
+ export { o as AsstClientOptions, p as AsstUrl, B as BASE_URLS, C as CompanyBriefByOrg, q as Env, I as ImportErrors, n as envSchema } from './CompanyBriefByOrg-HsKxilwl.js';
3
+ import { G as GenerateImportTemplateParams, D as DownLoadItemsParams, I as ItemPartner, a as ItemHierarchyResponse, b as ItemDetail, S as SpsItemIdResponse } from './zod-9pZn6tpQ.js';
4
+ export { i as AttrDatatypeNameEnum, t as AttributeDetail, j as AttributeGroup, A as AttributeSummary, J as Bulb, u as CategoryEnum, v as ComponentDetails, C as Connection, E as ExportDayOfWeek, f as ExportFrequency, g as ExportType, w as GroupedAttributeList, x as GroupedAttributes, y as GroupedItem, H as HierarchyCategory, z as HierarchyDetails, m as IdentityServiceDatetimePreferences, n as IdentityServiceOrganization, l as IdentityServiceOrganizationMetadata, o as IdentityServicePreferences, p as IdentityServiceUser, c as ImportDetails, d as ImportError, e as ImportStatusEnum, h as ItemCategory, O as ItemErrorDetails, q as ItemHeader, r as ItemMap, B as ItemPrice, s as ItemTable, M as MediaItem, K as PackComponent, F as PackComponentDetails, N as PackComponentItemInfo, P as PhaseEnum, R as RegisteredService, L as RepeatableGroup, k as SpreadsheetTemplateCompany, T as TradingPartnerStage } from './zod-9pZn6tpQ.js';
5
+ import { R as RetailerTradingPartnerStages, I as ItemStatusResponse } from './index-wuCGfJSu.js';
6
+ export { c as createCompaniesApi } from './index-wuCGfJSu.js';
7
+ import { z } from 'zod';
8
+ import 'ky-universal';
9
+ import 'ky';
10
+
11
+ /**
12
+ * Initialize Imports Api functions
13
+ * @param client Assortment Client instance
14
+ * @returns An object containing Imports API functions
15
+ */
16
+ declare function createImportsApi(client: AsstClient): {
17
+ getImportErrors: (importId: number, params?: {
18
+ offset?: number;
19
+ limit?: number;
20
+ }, signal?: AbortSignal) => Promise<{
21
+ importId: number;
22
+ count: number;
23
+ errors: {
24
+ description: string;
25
+ importErrorId: number;
26
+ row: number;
27
+ attribute?: string | null | undefined;
28
+ }[];
29
+ hasNext: boolean;
30
+ totalCount: number;
31
+ }>;
32
+ getImports: (params?: {
33
+ status: string;
34
+ }, signal?: AbortSignal) => Promise<Import>;
35
+ getImportsStatus: (signal?: AbortSignal) => Promise<ImportsStatus[]>;
36
+ uploadImport: (file: FormData) => Promise<void>;
37
+ getVendorPartnerGroups: (signal?: AbortSignal) => Promise<VendorPartnerAttGroups[]>;
38
+ generateImportTemplate: (params: GenerateImportTemplateParams) => Promise<void>;
39
+ };
40
+
41
+ /**
42
+ * Initialize Exports Api functions
43
+ * @param client Assortment Client instance
44
+ * @returns An object containing Exports API functions
45
+ */
46
+ declare function createExportsApi(client: AsstClient): {
47
+ createExport: (data: Export, params?: {
48
+ orgId?: string;
49
+ }) => Promise<void>;
50
+ downloadItems: (params: DownLoadItemsParams) => Promise<void>;
51
+ };
52
+
53
+ /**
54
+ * Initialize Product Types Api functions
55
+ * @param client Assortment Client instance
56
+ * @returns An object containing Product Types API functions
57
+ */
58
+ declare function createProductTypesApi(client: AsstClient): {
59
+ getProductTypes: (params?: {
60
+ retailerIds: number[];
61
+ }, signal?: AbortSignal) => Promise<AttrProdType[]>;
62
+ };
63
+
64
+ /**
65
+ * Initialize Trading Partner Access Api functions
66
+ * @param client Assortment Client instance
67
+ * @returns An object containing Trading Partner Access API functions
68
+ */
69
+ declare function createTradingPartnerAccessApi(client: AsstClient): {
70
+ getAllTradingPartners: (params?: {
71
+ orgId?: string;
72
+ }, signal?: AbortSignal) => Promise<TradingPartnerAccessByCompanyId>;
73
+ upsertRelationship: (data: CompanyRelationshipUpsertBody) => Promise<ItemPartner>;
74
+ upsertHierarchy: (data: CompanyRelationshipUpsertBody) => Promise<void>;
75
+ };
76
+
77
+ /**
78
+ * Initialize Trading Partner Settings Api functions
79
+ * @param client Assortment Client instance
80
+ * @returns An object containing Trading Partner Settings API functions
81
+ */
82
+ declare function createTradingPartnerSettingsApi(client: AsstClient): {
83
+ getRetailerStages: (signal?: AbortSignal) => Promise<RetailerTradingPartnerStages>;
84
+ };
85
+
86
+ type CategoriesApi = {
87
+ getCatalogs: (params?: {
88
+ categoryName?: string;
89
+ orgId?: string;
90
+ }, signal?: AbortSignal) => Promise<ItemCategoriesSearch>;
91
+ getProductCodes: (params?: {
92
+ categoryName?: string;
93
+ catalogId?: string;
94
+ selectionCodeId?: string;
95
+ orgId?: string;
96
+ }, signal?: AbortSignal) => Promise<ItemCategoriesSearch>;
97
+ getSelectionCodes: (params?: {
98
+ categoryName?: string;
99
+ catalogId?: string;
100
+ orgId?: string;
101
+ }, signal?: AbortSignal) => Promise<ItemCategoriesSearch>;
102
+ getItemHierarchy: (itemIds: string[]) => Promise<ItemHierarchyResponse>;
103
+ };
104
+ /**
105
+ * Initialize Categories Api functions
106
+ * @param client Assortment Client instance
107
+ * @returns An object containing Categories API functions
108
+ */
109
+ declare function createCategoriesApi(client: AsstClient): CategoriesApi;
110
+
111
+ /**
112
+ * Initialize Attributes Api functions
113
+ * @param client Assortment Client instance
114
+ * @returns An object containing Attributes API functions
115
+ */
116
+ declare function createAttributesApi(client: AsstClient): {
117
+ getAllAttributes: (signal?: AbortSignal) => Promise<AttributeMetaData[]>;
118
+ getAllAttributesByCompany: (params?: {
119
+ offset?: number;
120
+ limit?: number;
121
+ }, signal?: AbortSignal) => Promise<AttributesByCompany>;
122
+ getAttributesExtensiveInfo: (signal?: AbortSignal) => Promise<AttributeDefinition[]>;
123
+ getAttributeValidValues: (attributeDbName: string, signal?: AbortSignal) => Promise<AttributeValidValues[]>;
124
+ getCompanyInterestedAttributes: (params?: {
125
+ orgId?: string;
126
+ }, signal?: AbortSignal) => Promise<string[]>;
127
+ };
128
+
129
+ /**
130
+ * Initialize Locale Api functions
131
+ * @param client Assortment Client instance
132
+ * @returns An object containing Locale API functions
133
+ */
134
+ declare function createLocaleApi(client: AsstClient): {
135
+ getLocale: (signal?: AbortSignal) => Promise<Locale[]>;
136
+ };
137
+
138
+ /**
139
+ * Initialize Spreadsheet Template Api functions
140
+ * @param client Assortment Client instance
141
+ * @returns An object containing Spreadsheet Template API functions
142
+ */
143
+ declare function createSpreadsheetTemplateApi(client: AsstClient): {
144
+ getTemplates: (params?: {
145
+ orgId?: string;
146
+ }, signal?: AbortSignal) => Promise<SpreadsheetTemplate[]>;
147
+ };
148
+
149
+ /**
150
+ * Initialize WhoAmI Api functions
151
+ * @param client Assortment Client instance
152
+ * @returns An object containing WhoAmI API functions
153
+ */
154
+ declare function createWhoAmIApi(client: AsstClient): {
155
+ whoAmI: (signal?: AbortSignal) => Promise<UserAccount>;
156
+ };
157
+
158
+ type ApplicationType = "ASSORTMENT" | "ITEM-XREF";
159
+
160
+ /**
161
+ * Initialize Company Features Api functions
162
+ * @param client Assortment Client instance
163
+ * @returns An object containing Company Features API functions
164
+ */
165
+ declare function createCompanyFeaturesApi(client: AsstClient): {
166
+ checkIfStageItemSetupIsEnabled: (signal?: AbortSignal) => Promise<boolean>;
167
+ };
168
+
169
+ /**
170
+ * Initialize Feature Flags Api functions
171
+ * @param client Assortment Client instance
172
+ * @returns An object containing feature flags utility functions
173
+ */
174
+ declare function createFeatureFlagsApi(client: AsstClient): {
175
+ checkEnableItemsLevelMSIS: (signal?: AbortSignal) => Promise<boolean>;
176
+ };
177
+
178
+ declare const itemStatusSchema: z.ZodObject<{
179
+ itemId: z.ZodString;
180
+ itemOrgStatuses: z.ZodArray<z.ZodObject<{
181
+ org: z.ZodObject<{
182
+ ref: z.ZodString;
183
+ id: z.ZodString;
184
+ name: z.ZodString;
185
+ }, "strip", z.ZodTypeAny, {
186
+ name: string;
187
+ id: string;
188
+ ref: string;
189
+ }, {
190
+ name: string;
191
+ id: string;
192
+ ref: string;
193
+ }>;
194
+ lowestInvalidStage: z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED", "STANDARD_REQUIREMENTS"]>>;
195
+ validForRelationship: z.ZodBoolean;
196
+ }, "strip", z.ZodTypeAny, {
197
+ org: {
198
+ name: string;
199
+ id: string;
200
+ ref: string;
201
+ };
202
+ lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
203
+ validForRelationship: boolean;
204
+ }, {
205
+ org: {
206
+ name: string;
207
+ id: string;
208
+ ref: string;
209
+ };
210
+ lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
211
+ validForRelationship: boolean;
212
+ }>, "many">;
213
+ }, "strip", z.ZodTypeAny, {
214
+ itemId: string;
215
+ itemOrgStatuses: {
216
+ org: {
217
+ name: string;
218
+ id: string;
219
+ ref: string;
220
+ };
221
+ lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
222
+ validForRelationship: boolean;
223
+ }[];
224
+ }, {
225
+ itemId: string;
226
+ itemOrgStatuses: {
227
+ org: {
228
+ name: string;
229
+ id: string;
230
+ ref: string;
231
+ };
232
+ lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
233
+ validForRelationship: boolean;
234
+ }[];
235
+ }>;
236
+ type ItemStatus = z.infer<typeof itemStatusSchema>;
237
+
238
+ declare const itemOrgStatusSchema: z.ZodObject<{
239
+ org: z.ZodObject<{
240
+ ref: z.ZodString;
241
+ id: z.ZodString;
242
+ name: z.ZodString;
243
+ }, "strip", z.ZodTypeAny, {
244
+ name: string;
245
+ id: string;
246
+ ref: string;
247
+ }, {
248
+ name: string;
249
+ id: string;
250
+ ref: string;
251
+ }>;
252
+ lowestInvalidStage: z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED", "STANDARD_REQUIREMENTS"]>>;
253
+ validForRelationship: z.ZodBoolean;
254
+ }, "strip", z.ZodTypeAny, {
255
+ org: {
256
+ name: string;
257
+ id: string;
258
+ ref: string;
259
+ };
260
+ lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
261
+ validForRelationship: boolean;
262
+ }, {
263
+ org: {
264
+ name: string;
265
+ id: string;
266
+ ref: string;
267
+ };
268
+ lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
269
+ validForRelationship: boolean;
270
+ }>;
271
+ type ItemOrgStatus = z.infer<typeof itemOrgStatusSchema>;
272
+
273
+ /**
274
+ * Initialize Items Api functions
275
+ * @param client Assortment Client instance
276
+ * @returns An object containing Items API functions
277
+ */
278
+ declare function createItemsApi(client: AsstClient): {
279
+ searchItems: (params?: {
280
+ url: string;
281
+ limit?: number;
282
+ offset?: number;
283
+ applicationType?: ApplicationType;
284
+ }, signal?: AbortSignal) => Promise<ItemSearchView>;
285
+ getItem: (itemId: string, locale?: string, signal?: AbortSignal) => Promise<ItemDetailView>;
286
+ updateItem: (itemId: string, item: ItemDetail) => Promise<void>;
287
+ deleteItem: (itemId: number) => Promise<void>;
288
+ deleteItems: (itemIds: string[]) => Promise<void>;
289
+ getItemInfoId: (spsItemId: string, signal?: AbortSignal) => Promise<number>;
290
+ getSpsItemId: (itemInfoId: string, signal?: AbortSignal) => Promise<SpsItemIdResponse>;
291
+ getItemStatus: (itemIds: string[]) => Promise<ItemStatusResponse>;
292
+ };
293
+
294
+ declare const itemOrgStageDetailsSchema: z.ZodObject<{
295
+ /**
296
+ * When called as retailer, the vendor, else when vendor, the retailer.
297
+ * */
298
+ orgSummary: z.ZodObject<{
299
+ ref: z.ZodString;
300
+ id: z.ZodString;
301
+ name: z.ZodString;
302
+ }, "strip", z.ZodTypeAny, {
303
+ name: string;
304
+ id: string;
305
+ ref: string;
306
+ }, {
307
+ name: string;
308
+ id: string;
309
+ ref: string;
310
+ }>;
311
+ /**
312
+ * The company id of the retailer or vendor used for matching ItemOrgStageDetails to TradingPartnerStage for ErrorService
313
+ */
314
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
315
+ /**
316
+ * "Standard Requirements" (null) UNLESS the retailer of the item is MSIS Enabled
317
+ * OTHERWISE the retailer default Stage UNLESS there's a currently active vendor-specific Stage defined
318
+ * OTHERWISE the trading partnership Stage UNLESS there's a currently active Item Level override defined
319
+ * OTHERWISE the item level override */
320
+ stage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED"]>>>;
321
+ /**
322
+ * If the item is valid for the active stage. Note that for "Standard Requirements" or
323
+ * "Enriched" this cam come directly from the item_doc table, but anything else requires validation
324
+ */
325
+ isValid: z.ZodBoolean;
326
+ /**
327
+ * Not null if there's an item level policy override for this trading partnership
328
+ */
329
+ itemPolicyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ /**
331
+ * Start date for the Item level Stage if applicable
332
+ */
333
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodNumber, z.ZodDate>>>;
334
+ /**
335
+ * End date for the Item level Stage if applicable
336
+ */
337
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodNumber, z.ZodDate>>>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ isValid: boolean;
340
+ orgSummary: {
341
+ name: string;
342
+ id: string;
343
+ ref: string;
344
+ };
345
+ companyId?: number | null | undefined;
346
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
347
+ itemPolicyId?: string | null | undefined;
348
+ startDate?: Date | null | undefined;
349
+ endDate?: Date | null | undefined;
350
+ }, {
351
+ isValid: boolean;
352
+ orgSummary: {
353
+ name: string;
354
+ id: string;
355
+ ref: string;
356
+ };
357
+ companyId?: number | null | undefined;
358
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
359
+ itemPolicyId?: string | null | undefined;
360
+ startDate?: number | null | undefined;
361
+ endDate?: number | null | undefined;
362
+ }>;
363
+ type ItemOrgStageDetails = z.infer<typeof itemOrgStageDetailsSchema>;
364
+
365
+ declare const itemStatusV2Schema: z.ZodObject<{
366
+ itemId: z.ZodString;
367
+ mostRestrictiveRetailerStage: z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED"]>>;
368
+ itemOrgStageDetails: z.ZodArray<z.ZodObject<{
369
+ orgSummary: z.ZodObject<{
370
+ ref: z.ZodString;
371
+ id: z.ZodString;
372
+ name: z.ZodString;
373
+ }, "strip", z.ZodTypeAny, {
374
+ name: string;
375
+ id: string;
376
+ ref: string;
377
+ }, {
378
+ name: string;
379
+ id: string;
380
+ ref: string;
381
+ }>;
382
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
383
+ stage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED"]>>>;
384
+ isValid: z.ZodBoolean;
385
+ itemPolicyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
386
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodNumber, z.ZodDate>>>;
387
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodNumber, z.ZodDate>>>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ isValid: boolean;
390
+ orgSummary: {
391
+ name: string;
392
+ id: string;
393
+ ref: string;
394
+ };
395
+ companyId?: number | null | undefined;
396
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
397
+ itemPolicyId?: string | null | undefined;
398
+ startDate?: Date | null | undefined;
399
+ endDate?: Date | null | undefined;
400
+ }, {
401
+ isValid: boolean;
402
+ orgSummary: {
403
+ name: string;
404
+ id: string;
405
+ ref: string;
406
+ };
407
+ companyId?: number | null | undefined;
408
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
409
+ itemPolicyId?: string | null | undefined;
410
+ startDate?: number | null | undefined;
411
+ endDate?: number | null | undefined;
412
+ }>, "many">;
413
+ }, "strip", z.ZodTypeAny, {
414
+ itemId: string;
415
+ mostRestrictiveRetailerStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null;
416
+ itemOrgStageDetails: {
417
+ isValid: boolean;
418
+ orgSummary: {
419
+ name: string;
420
+ id: string;
421
+ ref: string;
422
+ };
423
+ companyId?: number | null | undefined;
424
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
425
+ itemPolicyId?: string | null | undefined;
426
+ startDate?: Date | null | undefined;
427
+ endDate?: Date | null | undefined;
428
+ }[];
429
+ }, {
430
+ itemId: string;
431
+ mostRestrictiveRetailerStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null;
432
+ itemOrgStageDetails: {
433
+ isValid: boolean;
434
+ orgSummary: {
435
+ name: string;
436
+ id: string;
437
+ ref: string;
438
+ };
439
+ companyId?: number | null | undefined;
440
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
441
+ itemPolicyId?: string | null | undefined;
442
+ startDate?: number | null | undefined;
443
+ endDate?: number | null | undefined;
444
+ }[];
445
+ }>;
446
+ type ItemStatusV2 = z.infer<typeof itemStatusV2Schema>;
447
+
448
+ declare const itemStatusV2ResponseSchema: z.ZodObject<{
449
+ itemStatuses: z.ZodArray<z.ZodObject<{
450
+ itemId: z.ZodString;
451
+ mostRestrictiveRetailerStage: z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED"]>>;
452
+ itemOrgStageDetails: z.ZodArray<z.ZodObject<{
453
+ orgSummary: z.ZodObject<{
454
+ ref: z.ZodString;
455
+ id: z.ZodString;
456
+ name: z.ZodString;
457
+ }, "strip", z.ZodTypeAny, {
458
+ name: string;
459
+ id: string;
460
+ ref: string;
461
+ }, {
462
+ name: string;
463
+ id: string;
464
+ ref: string;
465
+ }>;
466
+ companyId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
467
+ stage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED"]>>>;
468
+ isValid: z.ZodBoolean;
469
+ itemPolicyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodNumber, z.ZodDate>>>;
471
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodNumber, z.ZodDate>>>;
472
+ }, "strip", z.ZodTypeAny, {
473
+ isValid: boolean;
474
+ orgSummary: {
475
+ name: string;
476
+ id: string;
477
+ ref: string;
478
+ };
479
+ companyId?: number | null | undefined;
480
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
481
+ itemPolicyId?: string | null | undefined;
482
+ startDate?: Date | null | undefined;
483
+ endDate?: Date | null | undefined;
484
+ }, {
485
+ isValid: boolean;
486
+ orgSummary: {
487
+ name: string;
488
+ id: string;
489
+ ref: string;
490
+ };
491
+ companyId?: number | null | undefined;
492
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
493
+ itemPolicyId?: string | null | undefined;
494
+ startDate?: number | null | undefined;
495
+ endDate?: number | null | undefined;
496
+ }>, "many">;
497
+ }, "strip", z.ZodTypeAny, {
498
+ itemId: string;
499
+ mostRestrictiveRetailerStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null;
500
+ itemOrgStageDetails: {
501
+ isValid: boolean;
502
+ orgSummary: {
503
+ name: string;
504
+ id: string;
505
+ ref: string;
506
+ };
507
+ companyId?: number | null | undefined;
508
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
509
+ itemPolicyId?: string | null | undefined;
510
+ startDate?: Date | null | undefined;
511
+ endDate?: Date | null | undefined;
512
+ }[];
513
+ }, {
514
+ itemId: string;
515
+ mostRestrictiveRetailerStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null;
516
+ itemOrgStageDetails: {
517
+ isValid: boolean;
518
+ orgSummary: {
519
+ name: string;
520
+ id: string;
521
+ ref: string;
522
+ };
523
+ companyId?: number | null | undefined;
524
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
525
+ itemPolicyId?: string | null | undefined;
526
+ startDate?: number | null | undefined;
527
+ endDate?: number | null | undefined;
528
+ }[];
529
+ }>, "many">;
530
+ }, "strip", z.ZodTypeAny, {
531
+ itemStatuses: {
532
+ itemId: string;
533
+ mostRestrictiveRetailerStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null;
534
+ itemOrgStageDetails: {
535
+ isValid: boolean;
536
+ orgSummary: {
537
+ name: string;
538
+ id: string;
539
+ ref: string;
540
+ };
541
+ companyId?: number | null | undefined;
542
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
543
+ itemPolicyId?: string | null | undefined;
544
+ startDate?: Date | null | undefined;
545
+ endDate?: Date | null | undefined;
546
+ }[];
547
+ }[];
548
+ }, {
549
+ itemStatuses: {
550
+ itemId: string;
551
+ mostRestrictiveRetailerStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null;
552
+ itemOrgStageDetails: {
553
+ isValid: boolean;
554
+ orgSummary: {
555
+ name: string;
556
+ id: string;
557
+ ref: string;
558
+ };
559
+ companyId?: number | null | undefined;
560
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
561
+ itemPolicyId?: string | null | undefined;
562
+ startDate?: number | null | undefined;
563
+ endDate?: number | null | undefined;
564
+ }[];
565
+ }[];
566
+ }>;
567
+ type ItemStatusV2Response = z.infer<typeof itemStatusV2ResponseSchema>;
568
+
569
+ declare const orgSummarySchema: z.ZodObject<{
570
+ ref: z.ZodString;
571
+ id: z.ZodString;
572
+ name: z.ZodString;
573
+ }, "strip", z.ZodTypeAny, {
574
+ name: string;
575
+ id: string;
576
+ ref: string;
577
+ }, {
578
+ name: string;
579
+ id: string;
580
+ ref: string;
581
+ }>;
582
+ type OrgSummary = z.infer<typeof orgSummarySchema>;
583
+
584
+ declare const stageSchema: z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED"]>;
585
+ type Stage = z.infer<typeof stageSchema>;
586
+
587
+ /**
588
+ * Initialize Items Api functions
589
+ * @param client Assortment Client instance
590
+ * @returns An object containing Items API functions
591
+ */
592
+ declare function createItemsApiV2(client: AsstClient): {
593
+ getItemStatus: (itemIds: string[]) => Promise<ItemStatusV2Response>;
594
+ };
595
+
596
+ /**
597
+ * Initialize Errors Api functions
598
+ * @param client Assortment Client instance
599
+ * @returns An object containing Errors API functions
600
+ */
601
+ declare function createErrorsApi(client: AsstClient): {
602
+ getInvalidItemErrorDetails: (itemInfoId: string, signal?: AbortSignal) => Promise<ItemErrorDetailsResult>;
603
+ };
604
+
605
+ /**
606
+ * Initialize UniqueCriteria Api functions
607
+ * @param client Assortment Client instance
608
+ * @returns An object containing UniqueCriteria API functions
609
+ */
610
+ declare function createUniqueCriteriaApi(client: AsstClient): {
611
+ getUniqueCriteriaByOrg: (params?: {
612
+ orgId?: string;
613
+ }, signal?: AbortSignal) => Promise<string[]>;
614
+ };
615
+
616
+ export { type ApplicationType, AsstClient, AttrProdType, AttributeDefinition, AttributeMetaData, AttributeValidValues, AttributesByCompany, type CategoriesApi, CompanyRelationshipUpsertBody, DownLoadItemsParams, Export, GenerateImportTemplateParams, Import, ImportsStatus, ItemCategoriesSearch, ItemDetail, ItemDetailView, ItemErrorDetailsResult, ItemHierarchyResponse, type ItemOrgStageDetails, type ItemOrgStatus, ItemPartner, ItemSearchView, type ItemStatus, ItemStatusResponse, type ItemStatusV2, type ItemStatusV2Response, Locale, type OrgSummary, RetailerTradingPartnerStages, SpreadsheetTemplate, SpsItemIdResponse, type Stage, TradingPartnerAccessByCompanyId, UserAccount, VendorPartnerAttGroups, createAttributesApi, createCategoriesApi, createCompanyFeaturesApi, createErrorsApi, createExportsApi, createFeatureFlagsApi, createImportsApi, createItemsApi, createItemsApiV2, createLocaleApi, createProductTypesApi, createSpreadsheetTemplateApi, createTradingPartnerAccessApi, createTradingPartnerSettingsApi, createUniqueCriteriaApi, createWhoAmIApi };