@spscommerce/asst-api 5.3.0 → 5.3.2
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/{SpsItemIdResponse-CSZKx_Tz.d.cts → SpsItemIdResponse-Duo9fy_R.d.ts} +5 -5
- package/dist/index.cjs +829 -13
- package/dist/index.d.ts +4 -4
- package/dist/msw.d.ts +1 -1
- package/dist/{zod-CFHO1Ktc.d.cts → zod-f4vmP6zY.d.ts} +1 -1
- package/dist/zod.cjs +0 -13
- package/dist/zod.d.ts +2 -2
- package/package.json +8 -9
- package/dist/CompanySearch-7_L0_02Y.d.cts +0 -313
- package/dist/SpsItemIdResponse-CSZKx_Tz.d.ts +0 -102
- package/dist/index.d.cts +0 -994
- package/dist/msw.d.cts +0 -808
- package/dist/zod-DOSs4Eg9.d.ts +0 -5876
- package/dist/zod.d.cts +0 -4
package/dist/msw.d.cts
DELETED
|
@@ -1,808 +0,0 @@
|
|
|
1
|
-
import * as msw from 'msw';
|
|
2
|
-
import { ResponseResolver, HttpResponseResolver, HttpHandler } from 'msw';
|
|
3
|
-
import { A as AsstClient, I as ItemHierarchyResponse, S as SpsItemIdResponse, C as CompanyBriefByOrg } from './SpsItemIdResponse-CSZKx_Tz.cjs';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { C as CompanySearch, a as Company } from './CompanySearch-7_L0_02Y.cjs';
|
|
6
|
-
import 'ky';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Generate collection of MSW request handlers for `ImportsApi`
|
|
10
|
-
* @param client Assortment Client instance
|
|
11
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
12
|
-
*/
|
|
13
|
-
declare function createImportsApiHandlers(client: AsstClient): {
|
|
14
|
-
getImportErrors: {
|
|
15
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
16
|
-
generateData(): {
|
|
17
|
-
importId: number;
|
|
18
|
-
count: number;
|
|
19
|
-
errors: {
|
|
20
|
-
description: string;
|
|
21
|
-
importErrorId: number;
|
|
22
|
-
row: number;
|
|
23
|
-
attribute?: string | null | undefined;
|
|
24
|
-
}[];
|
|
25
|
-
hasNext: boolean;
|
|
26
|
-
totalCount: number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
getImports: {
|
|
30
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
31
|
-
generateData(): {
|
|
32
|
-
count: number;
|
|
33
|
-
imports: {
|
|
34
|
-
status: string;
|
|
35
|
-
name: string;
|
|
36
|
-
errorCount: number;
|
|
37
|
-
importId: number;
|
|
38
|
-
uploadedAt: string;
|
|
39
|
-
completedAt?: number | null | undefined;
|
|
40
|
-
startedAt?: string | null | undefined;
|
|
41
|
-
}[];
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
getImportsStatus: {
|
|
45
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
46
|
-
generateData(): {
|
|
47
|
-
status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
|
|
48
|
-
importId: number;
|
|
49
|
-
name?: string | null | undefined;
|
|
50
|
-
completedAt?: string | null | undefined;
|
|
51
|
-
errorCount?: number | null | undefined;
|
|
52
|
-
docInEventId?: string | null | undefined;
|
|
53
|
-
invalidItemCount?: number | null | undefined;
|
|
54
|
-
totalItemCount?: number | null | undefined;
|
|
55
|
-
validItemCount?: number | null | undefined;
|
|
56
|
-
}[];
|
|
57
|
-
};
|
|
58
|
-
getVendorPartnerGroups: {
|
|
59
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
60
|
-
generateData(): {
|
|
61
|
-
partnerCompanyId: number;
|
|
62
|
-
partnerCompanyName: string;
|
|
63
|
-
partnerAttributeGroups: number[];
|
|
64
|
-
}[];
|
|
65
|
-
};
|
|
66
|
-
uploadImport: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
67
|
-
generateImportTemplate: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Generate collection of MSW request handlers for `CategoriesApi`
|
|
72
|
-
* @param client Assortment Client instance
|
|
73
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
74
|
-
*/
|
|
75
|
-
declare function createCategoriesApiHandlers(client: AsstClient): {
|
|
76
|
-
getCategory: {
|
|
77
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
78
|
-
generateData(): {
|
|
79
|
-
count: number;
|
|
80
|
-
data: {
|
|
81
|
-
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT";
|
|
82
|
-
companyId: number;
|
|
83
|
-
name: string;
|
|
84
|
-
categoryid: number;
|
|
85
|
-
encodedCategoryId: string;
|
|
86
|
-
isActive: number;
|
|
87
|
-
typeId: number;
|
|
88
|
-
createdDate?: number | null | undefined;
|
|
89
|
-
description?: string | null | undefined;
|
|
90
|
-
categorytimestamp?: number | null | undefined;
|
|
91
|
-
categorykey?: string | null | undefined;
|
|
92
|
-
categoryCatalogName?: string | null | undefined;
|
|
93
|
-
}[];
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
getItemHierarchy: {
|
|
97
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
98
|
-
generateData(): ItemHierarchyResponse;
|
|
99
|
-
};
|
|
100
|
-
createCatalog: {
|
|
101
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
102
|
-
generateData(): {
|
|
103
|
-
categoryid: number;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
searchCatalogsByCompany: {
|
|
107
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
108
|
-
generateData(): {
|
|
109
|
-
createdAt: string;
|
|
110
|
-
modifiedAt: string;
|
|
111
|
-
createdBy: string;
|
|
112
|
-
modifiedBy: string;
|
|
113
|
-
categoryId: number;
|
|
114
|
-
categoryName: string;
|
|
115
|
-
categoryDescription: string;
|
|
116
|
-
categoryDescriptionExt: string;
|
|
117
|
-
ownerCompanyId: string;
|
|
118
|
-
categoryTypeId: number;
|
|
119
|
-
}[];
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Generate collection of MSW request handlers for `ExportsApi`
|
|
125
|
-
* @param client Assortment Client instance
|
|
126
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
127
|
-
*/
|
|
128
|
-
declare function createExportsApiHandlers(client: AsstClient): {
|
|
129
|
-
createExport: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
130
|
-
downloadItems: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Generate collection of MSW request handlers for `ProductTypesApi`
|
|
135
|
-
* @param client Assortment Client instance
|
|
136
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
137
|
-
*/
|
|
138
|
-
declare function createProductTypesApiHandlers(client: AsstClient): {
|
|
139
|
-
getProductTypes: {
|
|
140
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
141
|
-
generateData(): {
|
|
142
|
-
count: number;
|
|
143
|
-
next: string;
|
|
144
|
-
previous: string;
|
|
145
|
-
results: {
|
|
146
|
-
createdBy: string;
|
|
147
|
-
createdDate: number;
|
|
148
|
-
description: string;
|
|
149
|
-
attrProdTypeId: number;
|
|
150
|
-
productType: string;
|
|
151
|
-
modifiedBy?: string | undefined;
|
|
152
|
-
modifiedDate?: number | undefined;
|
|
153
|
-
retailerId?: number | undefined;
|
|
154
|
-
}[];
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Generate collection of MSW request handlers for `TradingPartnerAccess Api`
|
|
161
|
-
* @param client Assortment Client instance
|
|
162
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
163
|
-
*/
|
|
164
|
-
declare function createTradingPartnerAccessApiHandlers(client: AsstClient): {
|
|
165
|
-
getAllTradingPartners: {
|
|
166
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
167
|
-
generateData(): {
|
|
168
|
-
companyId: number;
|
|
169
|
-
companyTypes: ("SUPPLIER" | "RETAILER")[];
|
|
170
|
-
connections: {
|
|
171
|
-
catalog_id: number;
|
|
172
|
-
catalog_name: string | null;
|
|
173
|
-
partner_company_name: string;
|
|
174
|
-
partner_company_id: number;
|
|
175
|
-
partner_org_id: string;
|
|
176
|
-
}[];
|
|
177
|
-
count: number;
|
|
178
|
-
identityOrgId: string;
|
|
179
|
-
companyName: string;
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
upsertRelationship: {
|
|
183
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
184
|
-
generateData(): {
|
|
185
|
-
catalogId: number;
|
|
186
|
-
itemPartnerId: number;
|
|
187
|
-
createdDate: string;
|
|
188
|
-
modifiedDate: string;
|
|
189
|
-
isActive: number;
|
|
190
|
-
retailerId: number;
|
|
191
|
-
supplierId: number;
|
|
192
|
-
applications: ("ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR")[];
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
upsertHierarchy: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Generate collection of MSW request handlers for `TradingPartnerSettings Api`
|
|
200
|
-
* @param client Assortment Client instance
|
|
201
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
202
|
-
*/
|
|
203
|
-
declare function createTradingPartnerSettingsApiHandlers(client: AsstClient): {
|
|
204
|
-
getRetailerStages: {
|
|
205
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
206
|
-
generateData(): ("Core" | "Core Plus" | "Core Advanced" | "Enriched" | "Standard Requirements")[];
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Generate collection of MSW request handlers for `WhoAmIApi`
|
|
212
|
-
* @param client Assortment Client instance
|
|
213
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
214
|
-
*/
|
|
215
|
-
declare function createWhoAmIApiHandlers(client: AsstClient): {
|
|
216
|
-
whoAmI: {
|
|
217
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
218
|
-
generateData(): {
|
|
219
|
-
companyId: number;
|
|
220
|
-
name: string;
|
|
221
|
-
uniqueAttributes: string[];
|
|
222
|
-
companyName: string;
|
|
223
|
-
identityUser: {
|
|
224
|
-
name: string;
|
|
225
|
-
id: string;
|
|
226
|
-
roles: string[];
|
|
227
|
-
organization: {
|
|
228
|
-
id: string;
|
|
229
|
-
namespace?: string | undefined;
|
|
230
|
-
organization_name?: string | undefined;
|
|
231
|
-
organization_site?: string | undefined;
|
|
232
|
-
permissions?: string[] | undefined;
|
|
233
|
-
metadata?: {
|
|
234
|
-
value: string;
|
|
235
|
-
namespace: string;
|
|
236
|
-
key: string;
|
|
237
|
-
} | undefined;
|
|
238
|
-
};
|
|
239
|
-
password: string;
|
|
240
|
-
verified: boolean;
|
|
241
|
-
description?: string | undefined;
|
|
242
|
-
email?: string | undefined;
|
|
243
|
-
first_name?: string | undefined;
|
|
244
|
-
last_name?: string | undefined;
|
|
245
|
-
job_title?: string | undefined;
|
|
246
|
-
externally_managed?: boolean | undefined;
|
|
247
|
-
city?: string | undefined;
|
|
248
|
-
state?: string | undefined;
|
|
249
|
-
country?: string | undefined;
|
|
250
|
-
user_type?: string | undefined;
|
|
251
|
-
token_type?: string | undefined;
|
|
252
|
-
avatar_image_id?: string | undefined;
|
|
253
|
-
avatar_image_url?: string | undefined;
|
|
254
|
-
origin_avatar_image_id?: string | undefined;
|
|
255
|
-
bio?: string | undefined;
|
|
256
|
-
phone_number?: string | undefined;
|
|
257
|
-
twitter_handle?: string | undefined;
|
|
258
|
-
linkedin_url?: string | undefined;
|
|
259
|
-
preferences?: {
|
|
260
|
-
locale: string;
|
|
261
|
-
timezone: string;
|
|
262
|
-
language: string[];
|
|
263
|
-
datetime: {
|
|
264
|
-
DATE_TIME: string;
|
|
265
|
-
TIME: string;
|
|
266
|
-
SHORT_DATE: string;
|
|
267
|
-
LONG_DATETIME: string;
|
|
268
|
-
LONG_TIME: string;
|
|
269
|
-
DATE: string;
|
|
270
|
-
};
|
|
271
|
-
cpUpgrade?: string | undefined;
|
|
272
|
-
} | undefined;
|
|
273
|
-
};
|
|
274
|
-
retailer: boolean;
|
|
275
|
-
supplier: boolean;
|
|
276
|
-
registeredService: {
|
|
277
|
-
name: string;
|
|
278
|
-
isActive: boolean;
|
|
279
|
-
serviceId: number;
|
|
280
|
-
identityServiceId: number;
|
|
281
|
-
};
|
|
282
|
-
admin: boolean;
|
|
283
|
-
adminToolUser: boolean;
|
|
284
|
-
attributeRegistryAdmin: boolean;
|
|
285
|
-
attributeRegistryDev: boolean;
|
|
286
|
-
attributeRegistryRsx: boolean;
|
|
287
|
-
attributeRegistryUser: boolean;
|
|
288
|
-
attributeRegistryViewer: boolean;
|
|
289
|
-
assortmentPartnerCompanyId?: number | null | undefined;
|
|
290
|
-
};
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Generate collection of MSW request handlers for `ErrorsApi`
|
|
296
|
-
* @param client Assortment Client instance
|
|
297
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
298
|
-
*/
|
|
299
|
-
declare function createErrorsApiHandlers(client: AsstClient): {
|
|
300
|
-
getInvalidItemErrorDetails: {
|
|
301
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
302
|
-
generateData(): {
|
|
303
|
-
itemInfoId: number;
|
|
304
|
-
itemName: string | null;
|
|
305
|
-
itemErrorDetails: {
|
|
306
|
-
tradingPartnerStages: {
|
|
307
|
-
companyId: number;
|
|
308
|
-
companyName: string;
|
|
309
|
-
stage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
310
|
-
isValid: boolean;
|
|
311
|
-
}[];
|
|
312
|
-
errorMessage: string;
|
|
313
|
-
attributeName: string | null;
|
|
314
|
-
tradingPartnerNames: string[];
|
|
315
|
-
phases: ("CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS")[];
|
|
316
|
-
attributeDbNames: string[];
|
|
317
|
-
repeatableGroupId?: string | null | undefined;
|
|
318
|
-
}[];
|
|
319
|
-
gtin?: string | null | undefined;
|
|
320
|
-
upc?: string | null | undefined;
|
|
321
|
-
ean?: string | null | undefined;
|
|
322
|
-
isbn?: string | null | undefined;
|
|
323
|
-
partnumber?: string | null | undefined;
|
|
324
|
-
};
|
|
325
|
-
};
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* Generate collection of MSW request handlers for `ErrorsApi`
|
|
330
|
-
* @param client Assortment Client instance
|
|
331
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
332
|
-
*/
|
|
333
|
-
declare function createErrorsApiV2Handlers(client: AsstClient): {
|
|
334
|
-
getItemErrorSummary: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
335
|
-
getItemErrorDetails: {
|
|
336
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
337
|
-
generateData(): {
|
|
338
|
-
itemInfoId: number;
|
|
339
|
-
itemErrorDetails: {
|
|
340
|
-
tradingPartnerStages: {
|
|
341
|
-
companyId: number;
|
|
342
|
-
companyName: string;
|
|
343
|
-
isValid: boolean;
|
|
344
|
-
stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
|
|
345
|
-
}[];
|
|
346
|
-
errorMessage: string;
|
|
347
|
-
attributeName: string | null;
|
|
348
|
-
tradingPartnerNames: string[];
|
|
349
|
-
phases: ("CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED")[];
|
|
350
|
-
attributeDbNames: string[];
|
|
351
|
-
repeatableGroupId?: string | null | undefined;
|
|
352
|
-
}[];
|
|
353
|
-
gtin?: string | null | undefined;
|
|
354
|
-
upc?: string | null | undefined;
|
|
355
|
-
ean?: string | null | undefined;
|
|
356
|
-
isbn?: string | null | undefined;
|
|
357
|
-
partnumber?: string | null | undefined;
|
|
358
|
-
productcolordescription?: string | null | undefined;
|
|
359
|
-
itemName?: string | null | undefined;
|
|
360
|
-
colorfamily?: string | null | undefined;
|
|
361
|
-
fit?: string | null | undefined;
|
|
362
|
-
distributioncentercode?: string | null | undefined;
|
|
363
|
-
accountnumber?: string | null | undefined;
|
|
364
|
-
erpid?: string | null | undefined;
|
|
365
|
-
};
|
|
366
|
-
};
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Generate collection of MSW request handlers for `Locale Api`
|
|
371
|
-
* @param client Assortment Client instance
|
|
372
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
373
|
-
*/
|
|
374
|
-
declare function createLocaleApiHandlers(client: AsstClient): {
|
|
375
|
-
getLocale: {
|
|
376
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
377
|
-
generateData(): {
|
|
378
|
-
localeCode: string;
|
|
379
|
-
localeDescription: string;
|
|
380
|
-
}[];
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Generate collection of MSW request handlers for `ItemsApi`
|
|
386
|
-
* @param client Assortment Client instance
|
|
387
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
388
|
-
*/
|
|
389
|
-
declare function createItemsApiHandlers(client: AsstClient): {
|
|
390
|
-
searchItems: {
|
|
391
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
392
|
-
generateData(): {
|
|
393
|
-
count: number;
|
|
394
|
-
hasNext: boolean;
|
|
395
|
-
itemTable: {
|
|
396
|
-
headers: {
|
|
397
|
-
companyId: string;
|
|
398
|
-
catalogName: string;
|
|
399
|
-
productCodeName: string;
|
|
400
|
-
selectionCodeName: string;
|
|
401
|
-
gtin: string;
|
|
402
|
-
upc: string;
|
|
403
|
-
ean: string;
|
|
404
|
-
isbn: string;
|
|
405
|
-
partNumber: string;
|
|
406
|
-
lastUpdatedDateString: string;
|
|
407
|
-
itemInfoId: string;
|
|
408
|
-
status?: string | undefined;
|
|
409
|
-
};
|
|
410
|
-
itemMaps: z.objectOutputType<{
|
|
411
|
-
rn: z.ZodOptional<z.ZodNumber>;
|
|
412
|
-
iteminfoid: z.ZodString;
|
|
413
|
-
tradingPartnerStages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
414
|
-
companyId: z.ZodNumber;
|
|
415
|
-
companyName: z.ZodString;
|
|
416
|
-
stage: z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED", "STANDARD_REQUIREMENTS"]>>;
|
|
417
|
-
isValid: z.ZodBoolean;
|
|
418
|
-
}, "strip", z.ZodTypeAny, {
|
|
419
|
-
companyId: number;
|
|
420
|
-
companyName: string;
|
|
421
|
-
stage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
422
|
-
isValid: boolean;
|
|
423
|
-
}, {
|
|
424
|
-
companyId: number;
|
|
425
|
-
companyName: string;
|
|
426
|
-
stage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
427
|
-
isValid: boolean;
|
|
428
|
-
}>, "many">>;
|
|
429
|
-
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
430
|
-
catalogname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
431
|
-
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
432
|
-
lastupdateddatestring: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
433
|
-
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
434
|
-
productcodename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
435
|
-
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
436
|
-
selectioncodename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
437
|
-
createddatestring: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
438
|
-
partnumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
439
|
-
consumeravailabledatestring: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
440
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
441
|
-
nrfcolorcode: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
442
|
-
nrfsizecode: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
443
|
-
productcolordescription: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
444
|
-
productsizedescription: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
445
|
-
}, z.ZodTypeAny, "passthrough">[];
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
getItem: {
|
|
450
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
451
|
-
generateData(): {
|
|
452
|
-
item: {
|
|
453
|
-
status: string;
|
|
454
|
-
createdDate: string;
|
|
455
|
-
iteminfoid: number;
|
|
456
|
-
companyid: number;
|
|
457
|
-
lastUpdatedDate: string;
|
|
458
|
-
identifiers: Record<string, any>;
|
|
459
|
-
hierarchyDetails: {
|
|
460
|
-
catalogs: {
|
|
461
|
-
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT" | "ALIAS" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAG" | "TAXONOMY_ROOT";
|
|
462
|
-
name: string;
|
|
463
|
-
id: number;
|
|
464
|
-
companyId?: number | null | undefined;
|
|
465
|
-
description?: string | null | undefined;
|
|
466
|
-
}[];
|
|
467
|
-
selectionCodes: {
|
|
468
|
-
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT" | "ALIAS" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAG" | "TAXONOMY_ROOT";
|
|
469
|
-
name: string;
|
|
470
|
-
id: number;
|
|
471
|
-
companyId?: number | null | undefined;
|
|
472
|
-
description?: string | null | undefined;
|
|
473
|
-
}[];
|
|
474
|
-
productCodes: {
|
|
475
|
-
type: "CATALOG" | "SELECTION_CODE" | "PRODUCT_CODE" | "EXPORT" | "ALIAS" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAG" | "TAXONOMY_ROOT";
|
|
476
|
-
name: string;
|
|
477
|
-
id: number;
|
|
478
|
-
companyId?: number | null | undefined;
|
|
479
|
-
description?: string | null | undefined;
|
|
480
|
-
}[];
|
|
481
|
-
};
|
|
482
|
-
groupedAttributes: {
|
|
483
|
-
type: string;
|
|
484
|
-
attributes: {
|
|
485
|
-
value: string | number | string[] | number[] | null;
|
|
486
|
-
type: "DATE" | "TEXT" | "SET" | "INTEGER" | "FLOAT" | "BOOLEAN" | "KEYVALUE" | "REFERENCE" | "STRING" | "REAL";
|
|
487
|
-
name: string;
|
|
488
|
-
label: string;
|
|
489
|
-
group: string;
|
|
490
|
-
orderBy?: string | number | null | undefined;
|
|
491
|
-
}[];
|
|
492
|
-
attributeGroups: {
|
|
493
|
-
type: string;
|
|
494
|
-
rows: {
|
|
495
|
-
value: string | number | string[] | number[] | null;
|
|
496
|
-
type: "DATE" | "TEXT" | "SET" | "INTEGER" | "FLOAT" | "BOOLEAN" | "KEYVALUE" | "REFERENCE" | "STRING" | "REAL";
|
|
497
|
-
name: string;
|
|
498
|
-
label: string;
|
|
499
|
-
group: string;
|
|
500
|
-
orderBy?: string | number | null | undefined;
|
|
501
|
-
}[][];
|
|
502
|
-
repeatableGroups: {
|
|
503
|
-
repeatableGroupId: string;
|
|
504
|
-
repeatableNumber: number;
|
|
505
|
-
}[];
|
|
506
|
-
}[];
|
|
507
|
-
}[];
|
|
508
|
-
packComponentDetails: {
|
|
509
|
-
itemInfo: {
|
|
510
|
-
serviceId: number;
|
|
511
|
-
iteminfoid: number;
|
|
512
|
-
attributes: Record<string, string | string[]>;
|
|
513
|
-
companyid: number;
|
|
514
|
-
createddate: number;
|
|
515
|
-
isServiceApi: boolean;
|
|
516
|
-
isactive: number;
|
|
517
|
-
isvalid: number;
|
|
518
|
-
itemType: string;
|
|
519
|
-
itemtimestamp: number;
|
|
520
|
-
};
|
|
521
|
-
itemPrices: {
|
|
522
|
-
amount: number;
|
|
523
|
-
currency: string;
|
|
524
|
-
qualifier: string;
|
|
525
|
-
id?: number | null | undefined;
|
|
526
|
-
gtin?: string | null | undefined;
|
|
527
|
-
iteminfoid?: number | null | undefined;
|
|
528
|
-
priceDivision?: string | null | undefined;
|
|
529
|
-
startdate?: string | null | undefined;
|
|
530
|
-
enddate?: string | null | undefined;
|
|
531
|
-
region?: string | null | undefined;
|
|
532
|
-
regionqualifier?: string | null | undefined;
|
|
533
|
-
regiondescription?: string | null | undefined;
|
|
534
|
-
partnercompanyid?: string | null | undefined;
|
|
535
|
-
itempricetimestamp?: number | null | undefined;
|
|
536
|
-
range_type?: string | null | undefined;
|
|
537
|
-
date_range_type?: string | null | undefined;
|
|
538
|
-
min_range?: number | null | undefined;
|
|
539
|
-
priceConditionDescription?: string | null | undefined;
|
|
540
|
-
priceUnitQuantity?: number | null | undefined;
|
|
541
|
-
priceUnitQuantityUOM?: string | null | undefined;
|
|
542
|
-
}[];
|
|
543
|
-
}[];
|
|
544
|
-
childComponentDetails: {
|
|
545
|
-
valid: boolean;
|
|
546
|
-
uniqueCriteria: {
|
|
547
|
-
value: string;
|
|
548
|
-
name: string;
|
|
549
|
-
}[];
|
|
550
|
-
itemInfoId: number;
|
|
551
|
-
saleable: boolean;
|
|
552
|
-
description?: string | null | undefined;
|
|
553
|
-
}[];
|
|
554
|
-
parentComponentDetails: {
|
|
555
|
-
valid: boolean;
|
|
556
|
-
uniqueCriteria: {
|
|
557
|
-
value: string;
|
|
558
|
-
name: string;
|
|
559
|
-
}[];
|
|
560
|
-
itemInfoId: number;
|
|
561
|
-
saleable: boolean;
|
|
562
|
-
description?: string | null | undefined;
|
|
563
|
-
}[];
|
|
564
|
-
locales: string[];
|
|
565
|
-
};
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
updateItem: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
569
|
-
deleteItem: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
570
|
-
deleteItems: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
571
|
-
getItemInfoId: {
|
|
572
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
573
|
-
generateData(): number;
|
|
574
|
-
};
|
|
575
|
-
getSpsItemId: {
|
|
576
|
-
(resolver?: HttpResponseResolver<{
|
|
577
|
-
itemInfoId: string;
|
|
578
|
-
}, never, SpsItemIdResponse>): msw.HttpHandler;
|
|
579
|
-
generateData(): {
|
|
580
|
-
id: string;
|
|
581
|
-
ref: string;
|
|
582
|
-
};
|
|
583
|
-
};
|
|
584
|
-
getItemStatus: {
|
|
585
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
586
|
-
generateData(): {
|
|
587
|
-
itemStatuses: {
|
|
588
|
-
itemId: string;
|
|
589
|
-
itemOrgStatuses: {
|
|
590
|
-
org: {
|
|
591
|
-
name: string;
|
|
592
|
-
id: string;
|
|
593
|
-
ref: string;
|
|
594
|
-
};
|
|
595
|
-
lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
596
|
-
validForRelationship: boolean;
|
|
597
|
-
}[];
|
|
598
|
-
}[];
|
|
599
|
-
};
|
|
600
|
-
};
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* Generate collection of MSW request handlers for `SpreadsheetTemplate Api`
|
|
605
|
-
* @param client Assortment Client instance
|
|
606
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
607
|
-
*/
|
|
608
|
-
declare function createSpreadsheetTemplateApiHandlers(client: AsstClient): {
|
|
609
|
-
getTemplates: {
|
|
610
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
611
|
-
generateData(): {
|
|
612
|
-
name: string;
|
|
613
|
-
id: number;
|
|
614
|
-
fileLocation: string;
|
|
615
|
-
templateType: string;
|
|
616
|
-
maxItemsPerDoc: number;
|
|
617
|
-
companies: {
|
|
618
|
-
companyId: number;
|
|
619
|
-
createdAt: number;
|
|
620
|
-
companyName: string;
|
|
621
|
-
}[];
|
|
622
|
-
createdAt?: number | null | undefined;
|
|
623
|
-
modifiedAt?: number | null | undefined;
|
|
624
|
-
createdBy?: string | null | undefined;
|
|
625
|
-
modifiedBy?: string | null | undefined;
|
|
626
|
-
}[];
|
|
627
|
-
};
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Generate collection of MSW request handlers for `Company Features Api`
|
|
632
|
-
* @param client Assortment Client instance
|
|
633
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
634
|
-
*/
|
|
635
|
-
declare function createCompanyFeaturesApiHandlers(client: AsstClient): {
|
|
636
|
-
checkIfStageItemSetupIsEnabled: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
637
|
-
getFeaturesForCompany: (resolver?: ResponseResolver) => msw.HttpHandler;
|
|
638
|
-
};
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Generate collection of MSW request handlers for `Feature Flags Api`
|
|
642
|
-
* @param client Assortment Client instance
|
|
643
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
644
|
-
*/
|
|
645
|
-
declare function createFeatureFlagsApiHandlers(client: AsstClient): {
|
|
646
|
-
checkEnableItemsLevelMSIS: (resolver?: ResponseResolver) => HttpHandler;
|
|
647
|
-
checkIfEnabledForPackagingHierarchies: (resolver?: ResponseResolver) => HttpHandler;
|
|
648
|
-
checkIfEnabledForItemUomConversionRules: (resolver?: ResponseResolver) => HttpHandler[];
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* Generate collection of MSW request handlers for `UniqueCriteriaApi`
|
|
653
|
-
* @param client Assortment Client instance
|
|
654
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
655
|
-
*/
|
|
656
|
-
declare function createUniqueCriteriaApiHandlers(client: AsstClient): {
|
|
657
|
-
getUniqueCriteriaOptions: {
|
|
658
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
659
|
-
generateData(): {
|
|
660
|
-
value: string;
|
|
661
|
-
name: string;
|
|
662
|
-
}[];
|
|
663
|
-
};
|
|
664
|
-
getUniqueCriteriaByOrg: {
|
|
665
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
666
|
-
generateData(): string[];
|
|
667
|
-
};
|
|
668
|
-
getProductUniqueCriteriaByOrg: {
|
|
669
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
670
|
-
generateData(): ("gtin" | "upc" | "ean" | "isbn" | "partnumber" | "eaneight" | "upcCaseCode" | "buyerPartNumber" | "sku" | "nationalDrugCode" | "drugIdentificationNumber" | "nationalHealthRelatedItemCode" | "manufacturersPartNumber" | "internationalStandardSerialNumber" | "nabcaNumber" | "erpId" | "componentId")[];
|
|
671
|
-
};
|
|
672
|
-
updateMultipleUniqueCriteriaAttributes: {
|
|
673
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
674
|
-
generateData(): {
|
|
675
|
-
success: boolean;
|
|
676
|
-
};
|
|
677
|
-
};
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Generate collection of MSW request handlers for `CompaniesApi`
|
|
682
|
-
* @param client Assortment Client instance
|
|
683
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
684
|
-
*/
|
|
685
|
-
declare function createCompaniesApiHandlers(client: AsstClient): {
|
|
686
|
-
getCompanyBriefInfoByOrg: {
|
|
687
|
-
(resolver?: HttpResponseResolver<never, never, CompanyBriefByOrg>): msw.HttpHandler;
|
|
688
|
-
generateData(): {
|
|
689
|
-
companyId: number;
|
|
690
|
-
name: string;
|
|
691
|
-
orgId: string;
|
|
692
|
-
companyTypes: ("SUPPLIER" | "RETAILER")[];
|
|
693
|
-
dc4Id: number;
|
|
694
|
-
};
|
|
695
|
-
};
|
|
696
|
-
companySearch: {
|
|
697
|
-
(resolver?: HttpResponseResolver<never, never, CompanySearch[]>): msw.HttpHandler;
|
|
698
|
-
generateData(): {
|
|
699
|
-
id: string;
|
|
700
|
-
organizationName: string;
|
|
701
|
-
description: string;
|
|
702
|
-
roles: ("SUPPLIER" | "RETAILER")[];
|
|
703
|
-
connections: number;
|
|
704
|
-
serviceName: string;
|
|
705
|
-
catalogs: {
|
|
706
|
-
categoryId: number;
|
|
707
|
-
categoryName: string;
|
|
708
|
-
}[];
|
|
709
|
-
orgId?: string | undefined;
|
|
710
|
-
application?: ("ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR")[] | undefined;
|
|
711
|
-
uniqueCriteria?: string[] | undefined;
|
|
712
|
-
}[];
|
|
713
|
-
};
|
|
714
|
-
getCompanyById: {
|
|
715
|
-
(resolver?: HttpResponseResolver<{
|
|
716
|
-
companyId: string;
|
|
717
|
-
}, never, Company>): msw.HttpHandler;
|
|
718
|
-
generateData(): {
|
|
719
|
-
companyId: number;
|
|
720
|
-
name: string;
|
|
721
|
-
companyTypes: ("SUPPLIER" | "RETAILER")[];
|
|
722
|
-
active: boolean;
|
|
723
|
-
createdAt: number | null;
|
|
724
|
-
modifiedAt: number | null;
|
|
725
|
-
features: {
|
|
726
|
-
type: string;
|
|
727
|
-
active: boolean;
|
|
728
|
-
createdBy: string | null;
|
|
729
|
-
createdDate: number | null;
|
|
730
|
-
display: string;
|
|
731
|
-
modifiedBy?: string | null | undefined;
|
|
732
|
-
modifiedDate?: number | null | undefined;
|
|
733
|
-
}[];
|
|
734
|
-
identity: {
|
|
735
|
-
orgId: string | null;
|
|
736
|
-
service: {
|
|
737
|
-
name: string;
|
|
738
|
-
} | null;
|
|
739
|
-
};
|
|
740
|
-
relationships: {
|
|
741
|
-
application: {
|
|
742
|
-
application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
|
|
743
|
-
relationshipApplicationId: number;
|
|
744
|
-
}[];
|
|
745
|
-
active: boolean;
|
|
746
|
-
catalog: {
|
|
747
|
-
active: boolean;
|
|
748
|
-
catalogId: number;
|
|
749
|
-
itemPartnerId: number;
|
|
750
|
-
}[];
|
|
751
|
-
company: {
|
|
752
|
-
companyId: number;
|
|
753
|
-
name: string;
|
|
754
|
-
orgId: string;
|
|
755
|
-
companyTypes: ("SUPPLIER" | "RETAILER")[];
|
|
756
|
-
dc4Id: number | null;
|
|
757
|
-
};
|
|
758
|
-
createdAt: number;
|
|
759
|
-
modifiedAt: number | null;
|
|
760
|
-
relationshipId: number;
|
|
761
|
-
}[];
|
|
762
|
-
uniqueAttributes: string[];
|
|
763
|
-
};
|
|
764
|
-
};
|
|
765
|
-
};
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* Generate collection of MSW request handlers for `ItemsApi`
|
|
769
|
-
* @param client Assortment Client instance
|
|
770
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
771
|
-
*/
|
|
772
|
-
declare function createItemsApiV2Handlers(client: AsstClient): {
|
|
773
|
-
getItemStatus: {
|
|
774
|
-
(resolver?: ResponseResolver): msw.HttpHandler;
|
|
775
|
-
generateData(): {
|
|
776
|
-
itemStatuses: {
|
|
777
|
-
itemId: string;
|
|
778
|
-
mostRestrictiveRetailerStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null;
|
|
779
|
-
itemOrgStageDetails: {
|
|
780
|
-
isValid: boolean;
|
|
781
|
-
orgSummary: {
|
|
782
|
-
name: string;
|
|
783
|
-
id: string;
|
|
784
|
-
ref: string;
|
|
785
|
-
};
|
|
786
|
-
companyId?: number | null | undefined;
|
|
787
|
-
stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
|
|
788
|
-
itemPolicyId?: string | null | undefined;
|
|
789
|
-
startDate?: Date | null | undefined;
|
|
790
|
-
endDate?: Date | null | undefined;
|
|
791
|
-
}[];
|
|
792
|
-
}[];
|
|
793
|
-
};
|
|
794
|
-
};
|
|
795
|
-
};
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* Generate collection of MSW request handlers for `RulesManagementApi`
|
|
799
|
-
* @param client Assortment Client instance
|
|
800
|
-
* @returns An object containing functions to generate MSW request handlers
|
|
801
|
-
*/
|
|
802
|
-
declare function createRulesManagementApiHandlers(client: AsstClient): {
|
|
803
|
-
activateRule: (resolver?: HttpResponseResolver<{
|
|
804
|
-
ruleId: string;
|
|
805
|
-
}, never, Record<string, never>>) => msw.HttpHandler;
|
|
806
|
-
};
|
|
807
|
-
|
|
808
|
-
export { createCategoriesApiHandlers, createCompaniesApiHandlers, createCompanyFeaturesApiHandlers, createErrorsApiHandlers, createErrorsApiV2Handlers, createExportsApiHandlers, createFeatureFlagsApiHandlers, createImportsApiHandlers, createItemsApiHandlers, createItemsApiV2Handlers, createLocaleApiHandlers, createProductTypesApiHandlers, createRulesManagementApiHandlers, createSpreadsheetTemplateApiHandlers, createTradingPartnerAccessApiHandlers, createTradingPartnerSettingsApiHandlers, createUniqueCriteriaApiHandlers, createWhoAmIApiHandlers };
|