@spscommerce/asst-api 0.0.1-beta.0 → 0.0.1-beta.10
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 +8 -9
package/dist/msw.d.ts
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
import * as msw from 'msw';
|
|
2
2
|
import { ResponseResolver, RestRequest, RestContext, DefaultBodyType } from 'msw';
|
|
3
3
|
import * as msw_lib_glossary_de6278a9 from 'msw/lib/glossary-de6278a9';
|
|
4
|
-
import { A as AsstClient, V as VendorPartnerAttGroups,
|
|
5
|
-
import { c as ImportErrors, I as Import, a as ImportsStatus, b as ItemCategoriesSearch, E as Export } from './ItemCategoriesSearch-1bb945de.js';
|
|
4
|
+
import { A as AsstClient, n as ImportErrors, I as Import, a as ImportsStatus, V as VendorPartnerAttGroups, c as ItemCategoriesSearch, E as Export, o as attrProdTypeSchema, T as TradingPartnerAccessByCompanyId, U as UserAccount, j as ItemErrorDetailsResult, L as Locale, h as ItemSearchView, i as ItemDetailView, d as AttributeMetaData, e as AttributesByCompany, f as AttributeDefinition, g as AttributeValidValues, S as SpreadsheetTemplate } from './ItemErrorDetailsResult-fbc33a43.js';
|
|
6
5
|
import { z } from 'zod';
|
|
6
|
+
import { I as ItemStatusResponse } from './ItemStatusResponse-7f871d5a.js';
|
|
7
7
|
import 'ky-universal';
|
|
8
8
|
import 'ky';
|
|
9
9
|
|
|
10
|
+
declare function pagedResultsSchema<T extends z.ZodTypeAny>(resultsType: T): z.ZodObject<{
|
|
11
|
+
next: z.ZodString;
|
|
12
|
+
previous: z.ZodString;
|
|
13
|
+
count: z.ZodNumber;
|
|
14
|
+
results: z.ZodArray<T, "many">;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
count: number;
|
|
17
|
+
next: string;
|
|
18
|
+
previous: string;
|
|
19
|
+
results: T["_output"][];
|
|
20
|
+
}, {
|
|
21
|
+
count: number;
|
|
22
|
+
next: string;
|
|
23
|
+
previous: string;
|
|
24
|
+
results: T["_input"][];
|
|
25
|
+
}>;
|
|
26
|
+
type PagedResults<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof pagedResultsSchema<T>>>;
|
|
27
|
+
|
|
10
28
|
/**
|
|
11
29
|
* Generate collection of MSW request handlers for `ImportsApi`
|
|
12
30
|
* @param client Assortment Client instance
|
|
@@ -23,10 +41,10 @@ declare function createImportsApiHandlers(client: AsstClient): {
|
|
|
23
41
|
importId: number;
|
|
24
42
|
count: number;
|
|
25
43
|
errors: {
|
|
26
|
-
attribute: string;
|
|
27
44
|
description: string;
|
|
28
45
|
importErrorId: number;
|
|
29
46
|
row: number;
|
|
47
|
+
attribute?: string | null | undefined;
|
|
30
48
|
}[];
|
|
31
49
|
hasNext: boolean;
|
|
32
50
|
totalCount: number;
|
|
@@ -39,13 +57,13 @@ declare function createImportsApiHandlers(client: AsstClient): {
|
|
|
39
57
|
generateData(): {
|
|
40
58
|
count: number;
|
|
41
59
|
imports: {
|
|
42
|
-
completedAt: number | null;
|
|
43
60
|
status: string;
|
|
44
61
|
errorCount: number;
|
|
45
62
|
importId: number;
|
|
46
63
|
name: string;
|
|
47
|
-
startedAt: string | null;
|
|
48
64
|
uploadedAt: string;
|
|
65
|
+
completedAt?: number | null | undefined;
|
|
66
|
+
startedAt?: string | null | undefined;
|
|
49
67
|
}[];
|
|
50
68
|
};
|
|
51
69
|
};
|
|
@@ -54,14 +72,14 @@ declare function createImportsApiHandlers(client: AsstClient): {
|
|
|
54
72
|
generateData(): {
|
|
55
73
|
status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
|
|
56
74
|
importId: number;
|
|
57
|
-
name: string;
|
|
58
75
|
completedAt?: string | null | undefined;
|
|
59
76
|
docInEventId?: string | null | undefined;
|
|
60
77
|
errorCount?: number | null | undefined;
|
|
61
78
|
invalidItemCount?: number | null | undefined;
|
|
79
|
+
name?: string | null | undefined;
|
|
62
80
|
totalItemCount?: number | null | undefined;
|
|
63
81
|
validItemCount?: number | null | undefined;
|
|
64
|
-
};
|
|
82
|
+
}[];
|
|
65
83
|
};
|
|
66
84
|
getVendorPartnerGroups: {
|
|
67
85
|
(resolver?: ResponseResolver<RestRequest<never, never>, RestContext, VendorPartnerAttGroups[]>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
@@ -69,7 +87,7 @@ declare function createImportsApiHandlers(client: AsstClient): {
|
|
|
69
87
|
partnerCompanyId: number;
|
|
70
88
|
partnerCompanyName: string;
|
|
71
89
|
partnerAttributeGroups: number[];
|
|
72
|
-
};
|
|
90
|
+
}[];
|
|
73
91
|
};
|
|
74
92
|
uploadImport: (resolver?: ResponseResolver) => msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
75
93
|
generateImportTemplate: (resolver?: ResponseResolver) => msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
@@ -81,7 +99,7 @@ declare function createImportsApiHandlers(client: AsstClient): {
|
|
|
81
99
|
* @returns An object containing functions to generate MSW request handlers
|
|
82
100
|
*/
|
|
83
101
|
declare function createCategoriesApiHandlers(client: AsstClient): {
|
|
84
|
-
|
|
102
|
+
getCategory: {
|
|
85
103
|
(resolver?: ResponseResolver<RestRequest<never, {
|
|
86
104
|
categoryName?: string;
|
|
87
105
|
}>, RestContext, ItemCategoriesSearch>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
@@ -92,52 +110,10 @@ declare function createCategoriesApiHandlers(client: AsstClient): {
|
|
|
92
110
|
categoryid: number;
|
|
93
111
|
companyId: number;
|
|
94
112
|
isActive: number;
|
|
95
|
-
createdDate: number | null;
|
|
96
|
-
categorytimestamp: number | null;
|
|
97
113
|
typeId: number;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}[];
|
|
102
|
-
count: number;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
getProductCodes: {
|
|
106
|
-
(resolver?: ResponseResolver<RestRequest<never, {
|
|
107
|
-
categoryName?: string;
|
|
108
|
-
}>, RestContext, ItemCategoriesSearch>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
109
|
-
generateData(): {
|
|
110
|
-
data: {
|
|
111
|
-
type: string;
|
|
112
|
-
name: string;
|
|
113
|
-
categoryid: number;
|
|
114
|
-
companyId: number;
|
|
115
|
-
isActive: number;
|
|
116
|
-
createdDate: number | null;
|
|
117
|
-
categorytimestamp: number | null;
|
|
118
|
-
typeId: number;
|
|
119
|
-
categorykey?: string | undefined;
|
|
120
|
-
description?: string | null | undefined;
|
|
121
|
-
categoryCatalogName?: string | null | undefined;
|
|
122
|
-
}[];
|
|
123
|
-
count: number;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
getSelectionCodes: {
|
|
127
|
-
(resolver?: ResponseResolver<RestRequest<never, {
|
|
128
|
-
categoryName?: string;
|
|
129
|
-
}>, RestContext, ItemCategoriesSearch>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
130
|
-
generateData(): {
|
|
131
|
-
data: {
|
|
132
|
-
type: string;
|
|
133
|
-
name: string;
|
|
134
|
-
categoryid: number;
|
|
135
|
-
companyId: number;
|
|
136
|
-
isActive: number;
|
|
137
|
-
createdDate: number | null;
|
|
138
|
-
categorytimestamp: number | null;
|
|
139
|
-
typeId: number;
|
|
140
|
-
categorykey?: string | undefined;
|
|
114
|
+
createdDate?: number | null | undefined;
|
|
115
|
+
categorytimestamp?: number | null | undefined;
|
|
116
|
+
categorykey?: string | null | undefined;
|
|
141
117
|
description?: string | null | undefined;
|
|
142
118
|
categoryCatalogName?: string | null | undefined;
|
|
143
119
|
}[];
|
|
@@ -152,27 +128,10 @@ declare function createCategoriesApiHandlers(client: AsstClient): {
|
|
|
152
128
|
* @returns An object containing functions to generate MSW request handlers
|
|
153
129
|
*/
|
|
154
130
|
declare function createExportsApiHandlers(client: AsstClient): {
|
|
155
|
-
|
|
131
|
+
createExport: (resolver?: ResponseResolver<RestRequest<Export>, RestContext>) => msw.RestHandler<msw_lib_glossary_de6278a9.M<msw_lib_glossary_de6278a9.h>>;
|
|
132
|
+
downloadItems: (resolver?: ResponseResolver) => msw.RestHandler<msw_lib_glossary_de6278a9.M<msw_lib_glossary_de6278a9.h>>;
|
|
156
133
|
};
|
|
157
134
|
|
|
158
|
-
declare function pagedResultsSchema<T extends z.ZodTypeAny>(resultsType: T): z.ZodObject<{
|
|
159
|
-
next: z.ZodString;
|
|
160
|
-
previous: z.ZodString;
|
|
161
|
-
count: z.ZodNumber;
|
|
162
|
-
results: z.ZodArray<T, "many">;
|
|
163
|
-
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
count: number;
|
|
165
|
-
next: string;
|
|
166
|
-
previous: string;
|
|
167
|
-
results: T["_output"][];
|
|
168
|
-
}, {
|
|
169
|
-
count: number;
|
|
170
|
-
next: string;
|
|
171
|
-
previous: string;
|
|
172
|
-
results: T["_input"][];
|
|
173
|
-
}>;
|
|
174
|
-
type PagedResults<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof pagedResultsSchema<T>>>;
|
|
175
|
-
|
|
176
135
|
/**
|
|
177
136
|
* Generate collection of MSW request handlers for `ProductTypesApi`
|
|
178
137
|
* @param client Assortment Client instance
|
|
@@ -202,7 +161,7 @@ declare function createProductTypesApiHandlers(client: AsstClient): {
|
|
|
202
161
|
};
|
|
203
162
|
|
|
204
163
|
/**
|
|
205
|
-
* Generate collection of MSW request handlers for `
|
|
164
|
+
* Generate collection of MSW request handlers for `TradingPartnerAccess Api`
|
|
206
165
|
* @param client Assortment Client instance
|
|
207
166
|
* @returns An object containing functions to generate MSW request handlers
|
|
208
167
|
*/
|
|
@@ -217,12 +176,615 @@ declare function createTradingPartnerAccessApiHandlers(client: AsstClient): {
|
|
|
217
176
|
companyName: string;
|
|
218
177
|
connections: {
|
|
219
178
|
catalog_id: number;
|
|
220
|
-
catalog_name: string;
|
|
179
|
+
catalog_name: string | null;
|
|
221
180
|
partner_company_name: string;
|
|
222
181
|
partner_company_id: number;
|
|
182
|
+
partner_org_id: string;
|
|
183
|
+
}[];
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Generate collection of MSW request handlers for `WhoAmIApi`
|
|
190
|
+
* @param client Assortment Client instance
|
|
191
|
+
* @returns An object containing functions to generate MSW request handlers
|
|
192
|
+
*/
|
|
193
|
+
declare function createWhoAmIApiHandlers(client: AsstClient): {
|
|
194
|
+
whoAmI: {
|
|
195
|
+
(resolver?: ResponseResolver<RestRequest<never>, RestContext, UserAccount>): msw.RestHandler<msw_lib_glossary_de6278a9.M<msw_lib_glossary_de6278a9.h>>;
|
|
196
|
+
generateData(): {
|
|
197
|
+
name: string;
|
|
198
|
+
companyId: number;
|
|
199
|
+
companyName: string;
|
|
200
|
+
identityUser: {
|
|
201
|
+
name: string;
|
|
202
|
+
id: string;
|
|
203
|
+
roles: string[];
|
|
204
|
+
organization: {
|
|
205
|
+
id: string;
|
|
206
|
+
organization_name?: string | undefined;
|
|
207
|
+
organization_site?: string | undefined;
|
|
208
|
+
namespace?: string | undefined;
|
|
209
|
+
permissions?: string[] | undefined;
|
|
210
|
+
metadata?: {
|
|
211
|
+
value: string;
|
|
212
|
+
namespace: string;
|
|
213
|
+
key: string;
|
|
214
|
+
} | undefined;
|
|
215
|
+
};
|
|
216
|
+
password: string;
|
|
217
|
+
verified: boolean;
|
|
218
|
+
email?: string | undefined;
|
|
219
|
+
first_name?: string | undefined;
|
|
220
|
+
last_name?: string | undefined;
|
|
221
|
+
job_title?: string | undefined;
|
|
222
|
+
externally_managed?: boolean | undefined;
|
|
223
|
+
city?: string | undefined;
|
|
224
|
+
state?: string | undefined;
|
|
225
|
+
country?: string | undefined;
|
|
226
|
+
user_type?: string | undefined;
|
|
227
|
+
token_type?: string | undefined;
|
|
228
|
+
avatar_image_id?: string | undefined;
|
|
229
|
+
avatar_image_url?: string | undefined;
|
|
230
|
+
origin_avatar_image_id?: string | undefined;
|
|
231
|
+
bio?: string | undefined;
|
|
232
|
+
phone_number?: string | undefined;
|
|
233
|
+
twitter_handle?: string | undefined;
|
|
234
|
+
linkedin_url?: string | undefined;
|
|
235
|
+
description?: string | undefined;
|
|
236
|
+
preferences?: {
|
|
237
|
+
locale: string;
|
|
238
|
+
timezone: string;
|
|
239
|
+
language: string[];
|
|
240
|
+
datetime: {
|
|
241
|
+
DATE_TIME: string;
|
|
242
|
+
TIME: string;
|
|
243
|
+
SHORT_DATE: string;
|
|
244
|
+
LONG_DATETIME: string;
|
|
245
|
+
LONG_TIME: string;
|
|
246
|
+
DATE: string;
|
|
247
|
+
};
|
|
248
|
+
cpUpgrade?: string | undefined;
|
|
249
|
+
} | undefined;
|
|
250
|
+
};
|
|
251
|
+
retailer: boolean;
|
|
252
|
+
supplier: boolean;
|
|
253
|
+
registeredService: {
|
|
254
|
+
name: string;
|
|
255
|
+
isActive: boolean;
|
|
256
|
+
serviceId: number;
|
|
257
|
+
identityServiceId: number;
|
|
258
|
+
};
|
|
259
|
+
uniqueAttributes: string[];
|
|
260
|
+
admin: boolean;
|
|
261
|
+
adminToolUser: boolean;
|
|
262
|
+
attributeRegistryAdmin: boolean;
|
|
263
|
+
attributeRegistryDev: boolean;
|
|
264
|
+
attributeRegistryRsx: boolean;
|
|
265
|
+
attributeRegistryUser: boolean;
|
|
266
|
+
attributeRegistryViewer: boolean;
|
|
267
|
+
assortmentPartnerCompanyId?: number | null | undefined;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Generate collection of MSW request handlers for `ErrorsApi`
|
|
274
|
+
* @param client Assortment Client instance
|
|
275
|
+
* @returns An object containing functions to generate MSW request handlers
|
|
276
|
+
*/
|
|
277
|
+
declare function createErrorsApiHandlers(client: AsstClient): {
|
|
278
|
+
getInvalidItemErrorDetails: {
|
|
279
|
+
(resolver?: ResponseResolver<RestRequest<never, {
|
|
280
|
+
itemInfoId: string;
|
|
281
|
+
}>, RestContext, ItemErrorDetailsResult>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
282
|
+
generateData(): {
|
|
283
|
+
itemInfoId: number;
|
|
284
|
+
itemName: string | null;
|
|
285
|
+
itemErrorDetails: {
|
|
286
|
+
tradingPartnerStages: {
|
|
287
|
+
companyId: number;
|
|
288
|
+
companyName: string;
|
|
289
|
+
stage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
290
|
+
isValid: boolean;
|
|
291
|
+
}[];
|
|
292
|
+
attributeName: string | null;
|
|
293
|
+
errorMessage: string;
|
|
294
|
+
tradingPartnerNames: string[];
|
|
295
|
+
phases: ("CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS")[];
|
|
296
|
+
attributeDbNames: string[];
|
|
297
|
+
repeatableGroupId?: string | null | undefined;
|
|
223
298
|
}[];
|
|
299
|
+
upc?: string | null | undefined;
|
|
300
|
+
isbn?: string | null | undefined;
|
|
301
|
+
gtin?: string | null | undefined;
|
|
302
|
+
partnumber?: string | null | undefined;
|
|
303
|
+
ean?: string | null | undefined;
|
|
224
304
|
};
|
|
225
305
|
};
|
|
226
306
|
};
|
|
227
307
|
|
|
228
|
-
|
|
308
|
+
/**
|
|
309
|
+
* Generate collection of MSW request handlers for `Locale Api`
|
|
310
|
+
* @param client Assortment Client instance
|
|
311
|
+
* @returns An object containing functions to generate MSW request handlers
|
|
312
|
+
*/
|
|
313
|
+
declare function createLocaleApiHandlers(client: AsstClient): {
|
|
314
|
+
getLocale: {
|
|
315
|
+
(resolver?: ResponseResolver<RestRequest<never, never>, RestContext, Locale[]>): msw.RestHandler<msw_lib_glossary_de6278a9.M<msw_lib_glossary_de6278a9.h>>;
|
|
316
|
+
generateData(): {
|
|
317
|
+
localeCode: string;
|
|
318
|
+
localeDescription: string;
|
|
319
|
+
}[];
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Generate collection of MSW request handlers for `ItemsApi`
|
|
325
|
+
* @param client Assortment Client instance
|
|
326
|
+
* @returns An object containing functions to generate MSW request handlers
|
|
327
|
+
*/
|
|
328
|
+
declare function createItemsApiHandlers(client: AsstClient): {
|
|
329
|
+
searchItems: {
|
|
330
|
+
(resolver?: ResponseResolver<RestRequest<never, {
|
|
331
|
+
url?: string;
|
|
332
|
+
offset?: string;
|
|
333
|
+
limit?: string;
|
|
334
|
+
}>, RestContext, ItemSearchView>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
335
|
+
generateData(): {
|
|
336
|
+
count: number;
|
|
337
|
+
hasNext: boolean;
|
|
338
|
+
itemTable: {
|
|
339
|
+
headers: {
|
|
340
|
+
companyId: string;
|
|
341
|
+
catalogName: string;
|
|
342
|
+
productCodeName: string;
|
|
343
|
+
selectionCodeName: string;
|
|
344
|
+
gtin: string;
|
|
345
|
+
upc: string;
|
|
346
|
+
ean: string;
|
|
347
|
+
isbn: string;
|
|
348
|
+
partNumber: string;
|
|
349
|
+
lastUpdatedDateString: string;
|
|
350
|
+
itemInfoId: string;
|
|
351
|
+
status?: string | undefined;
|
|
352
|
+
};
|
|
353
|
+
itemMaps: z.objectOutputType<{
|
|
354
|
+
rn: z.ZodOptional<z.ZodNumber>;
|
|
355
|
+
iteminfoid: z.ZodString;
|
|
356
|
+
tradingPartnerStages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
357
|
+
companyId: z.ZodNumber;
|
|
358
|
+
companyName: z.ZodString;
|
|
359
|
+
stage: z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED", "STANDARD_REQUIREMENTS"]>>;
|
|
360
|
+
isValid: z.ZodBoolean;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
companyId: number;
|
|
363
|
+
companyName: string;
|
|
364
|
+
stage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
365
|
+
isValid: boolean;
|
|
366
|
+
}, {
|
|
367
|
+
companyId: number;
|
|
368
|
+
companyName: string;
|
|
369
|
+
stage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
370
|
+
isValid: boolean;
|
|
371
|
+
}>, "many">>;
|
|
372
|
+
gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
373
|
+
catalogname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
374
|
+
isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
375
|
+
lastupdateddatestring: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
376
|
+
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
377
|
+
productcodename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
378
|
+
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
379
|
+
selectioncodename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
createddatestring: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
partnumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
382
|
+
consumeravailabledatestring: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
383
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
384
|
+
nrfcolorcode: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
385
|
+
nrfsizecode: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
386
|
+
productcolordescription: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
387
|
+
productsizedescription: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
388
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
getItem: {
|
|
393
|
+
(resolver?: ResponseResolver<RestRequest<never, {
|
|
394
|
+
itemId: string;
|
|
395
|
+
}>, RestContext, ItemDetailView>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
396
|
+
generateData(): {
|
|
397
|
+
item: {
|
|
398
|
+
status: string;
|
|
399
|
+
createdDate: string;
|
|
400
|
+
iteminfoid: number;
|
|
401
|
+
companyid: number;
|
|
402
|
+
lastUpdatedDate: string;
|
|
403
|
+
identifiers: Record<string, any>;
|
|
404
|
+
hierarchyDetails: {
|
|
405
|
+
catalogs: {
|
|
406
|
+
type: "CATALOG" | "PRODUCT_CODE" | "SELECTION_CODE" | "AKA" | "EXPORT" | "LABEL" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAXONOMY_ROOT";
|
|
407
|
+
name: string;
|
|
408
|
+
companyId: number;
|
|
409
|
+
id: number;
|
|
410
|
+
description?: string | null | undefined;
|
|
411
|
+
}[];
|
|
412
|
+
selectionCodes: {
|
|
413
|
+
type: "CATALOG" | "PRODUCT_CODE" | "SELECTION_CODE" | "AKA" | "EXPORT" | "LABEL" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAXONOMY_ROOT";
|
|
414
|
+
name: string;
|
|
415
|
+
companyId: number;
|
|
416
|
+
id: number;
|
|
417
|
+
description?: string | null | undefined;
|
|
418
|
+
}[];
|
|
419
|
+
productCodes: {
|
|
420
|
+
type: "CATALOG" | "PRODUCT_CODE" | "SELECTION_CODE" | "AKA" | "EXPORT" | "LABEL" | "LEGACY_PRODUCT_TYPE" | "PRODUCT_CLASSIFICATION" | "TAXONOMY_ROOT";
|
|
421
|
+
name: string;
|
|
422
|
+
companyId: number;
|
|
423
|
+
id: number;
|
|
424
|
+
description?: string | null | undefined;
|
|
425
|
+
}[];
|
|
426
|
+
};
|
|
427
|
+
groupedAttributes: {
|
|
428
|
+
type: string;
|
|
429
|
+
attributes: {
|
|
430
|
+
value: ((string | number | string[] | number[]) & (string | number | string[] | number[] | undefined)) | null;
|
|
431
|
+
type: "DATE" | "TEXT" | "SET" | "INTEGER" | "FLOAT" | "BOOLEAN" | "KEYVALUE" | "STRING" | "REAL";
|
|
432
|
+
name: string;
|
|
433
|
+
label: string;
|
|
434
|
+
group: string;
|
|
435
|
+
orderBy?: string | number | null | undefined;
|
|
436
|
+
}[];
|
|
437
|
+
attributeGroups: {
|
|
438
|
+
type: string;
|
|
439
|
+
rows: {
|
|
440
|
+
value: ((string | number | string[] | number[]) & (string | number | string[] | number[] | undefined)) | null;
|
|
441
|
+
type: "DATE" | "TEXT" | "SET" | "INTEGER" | "FLOAT" | "BOOLEAN" | "KEYVALUE" | "STRING" | "REAL";
|
|
442
|
+
name: string;
|
|
443
|
+
label: string;
|
|
444
|
+
group: string;
|
|
445
|
+
orderBy?: string | number | null | undefined;
|
|
446
|
+
}[][];
|
|
447
|
+
repeatableGroups: {
|
|
448
|
+
repeatableGroupId: string;
|
|
449
|
+
repeatableNumber: number;
|
|
450
|
+
}[];
|
|
451
|
+
}[];
|
|
452
|
+
}[];
|
|
453
|
+
packComponentDetails: {
|
|
454
|
+
itemInfo: {
|
|
455
|
+
serviceId: number;
|
|
456
|
+
iteminfoid: number;
|
|
457
|
+
attributes: Record<string, string | string[]>;
|
|
458
|
+
companyid: number;
|
|
459
|
+
createddate: number;
|
|
460
|
+
isServiceApi: boolean;
|
|
461
|
+
isactive: number;
|
|
462
|
+
isvalid: number;
|
|
463
|
+
itemType: string;
|
|
464
|
+
itemtimestamp: number;
|
|
465
|
+
};
|
|
466
|
+
itemPrices: {
|
|
467
|
+
amount: number;
|
|
468
|
+
currency: string;
|
|
469
|
+
qualifier: string;
|
|
470
|
+
id?: number | null | undefined;
|
|
471
|
+
priceDivision?: string | null | undefined;
|
|
472
|
+
iteminfoid?: number | null | undefined;
|
|
473
|
+
startdate?: string | null | undefined;
|
|
474
|
+
enddate?: string | null | undefined;
|
|
475
|
+
region?: string | null | undefined;
|
|
476
|
+
regionqualifier?: string | null | undefined;
|
|
477
|
+
regiondescription?: string | null | undefined;
|
|
478
|
+
partnercompanyid?: string | null | undefined;
|
|
479
|
+
itempricetimestamp?: number | null | undefined;
|
|
480
|
+
range_type?: string | null | undefined;
|
|
481
|
+
date_range_type?: string | null | undefined;
|
|
482
|
+
min_range?: number | null | undefined;
|
|
483
|
+
gtin?: string | null | undefined;
|
|
484
|
+
priceConditionDescription?: string | null | undefined;
|
|
485
|
+
priceUnitQuantity?: number | null | undefined;
|
|
486
|
+
priceUnitQuantityUOM?: string | null | undefined;
|
|
487
|
+
}[];
|
|
488
|
+
}[];
|
|
489
|
+
childComponentDetails: {
|
|
490
|
+
valid: boolean;
|
|
491
|
+
description: string;
|
|
492
|
+
itemInfoId: number;
|
|
493
|
+
saleable: boolean;
|
|
494
|
+
uniqueCriteria: {
|
|
495
|
+
value: string;
|
|
496
|
+
name: string;
|
|
497
|
+
}[];
|
|
498
|
+
}[];
|
|
499
|
+
parentComponentDetails: {
|
|
500
|
+
valid: boolean;
|
|
501
|
+
description: string;
|
|
502
|
+
itemInfoId: number;
|
|
503
|
+
saleable: boolean;
|
|
504
|
+
uniqueCriteria: {
|
|
505
|
+
value: string;
|
|
506
|
+
name: string;
|
|
507
|
+
}[];
|
|
508
|
+
}[];
|
|
509
|
+
locales: string[];
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
updateItem: (resolver?: ResponseResolver<RestRequest<never, {
|
|
514
|
+
itemId: string;
|
|
515
|
+
}>, RestContext>) => msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
516
|
+
deleteItem: (resolver?: ResponseResolver<RestRequest<never, {
|
|
517
|
+
itemId: string;
|
|
518
|
+
}>>) => msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
519
|
+
deleteItems: (resolver?: ResponseResolver<RestRequest<never, {
|
|
520
|
+
itemIds: string[];
|
|
521
|
+
}>>) => msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
522
|
+
getItemInfoId: {
|
|
523
|
+
(resolver?: ResponseResolver<RestRequest<never, {
|
|
524
|
+
spsItemId: string;
|
|
525
|
+
}>, RestContext, number>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
526
|
+
generateData(): number;
|
|
527
|
+
};
|
|
528
|
+
getSpsItemId: {
|
|
529
|
+
(resolver?: ResponseResolver<RestRequest<never, {
|
|
530
|
+
itemInfoId: string;
|
|
531
|
+
}>, RestContext, string>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
532
|
+
generateData(): string;
|
|
533
|
+
};
|
|
534
|
+
getItemStatus: {
|
|
535
|
+
(resolver?: ResponseResolver<RestRequest<never, {
|
|
536
|
+
itemIds: string[];
|
|
537
|
+
}>, RestContext, ItemStatusResponse>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
538
|
+
generateData(): {
|
|
539
|
+
itemStatuses: {
|
|
540
|
+
itemId: string;
|
|
541
|
+
itemOrgStatuses: {
|
|
542
|
+
org: {
|
|
543
|
+
name: string;
|
|
544
|
+
id: string;
|
|
545
|
+
ref: string;
|
|
546
|
+
};
|
|
547
|
+
lowestInvalidStage: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS" | null;
|
|
548
|
+
validForRelationship: boolean;
|
|
549
|
+
}[];
|
|
550
|
+
}[];
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Generate collection of MSW request handlers for `Attributes Api`
|
|
557
|
+
* @param client Assortment Client instance
|
|
558
|
+
* @returns An object containing functions to generate MSW request handlers
|
|
559
|
+
*/
|
|
560
|
+
declare function createAttributesApiHandlers(client: AsstClient): {
|
|
561
|
+
getAllAttributes: {
|
|
562
|
+
(resolver?: ResponseResolver<RestRequest<never, never>, RestContext, AttributeMetaData[]>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
563
|
+
generateData(): {
|
|
564
|
+
type: string;
|
|
565
|
+
label: string;
|
|
566
|
+
dbName: string;
|
|
567
|
+
group: string;
|
|
568
|
+
aliases: string[];
|
|
569
|
+
orderBy: string | number;
|
|
570
|
+
storageType: string;
|
|
571
|
+
rsxPath: string;
|
|
572
|
+
indexed: boolean;
|
|
573
|
+
repeatable: boolean;
|
|
574
|
+
extended: boolean;
|
|
575
|
+
hybrid: boolean;
|
|
576
|
+
userVisible: boolean;
|
|
577
|
+
retailerOwnedId?: number | null | undefined;
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
getAllAttributesByCompany: {
|
|
581
|
+
(resolver?: ResponseResolver<RestRequest<never, {
|
|
582
|
+
offset?: string;
|
|
583
|
+
limit?: string;
|
|
584
|
+
}>, RestContext, AttributesByCompany>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
585
|
+
generateData(): {
|
|
586
|
+
count: number;
|
|
587
|
+
results: {
|
|
588
|
+
modifiedDate: number;
|
|
589
|
+
modifiedBy: string;
|
|
590
|
+
attributeId: number;
|
|
591
|
+
attributeName: string;
|
|
592
|
+
displayName: string;
|
|
593
|
+
attributeType: string;
|
|
594
|
+
retailerOwnedId?: number | null | undefined;
|
|
595
|
+
clusterAttrGroupId?: number | null | undefined;
|
|
596
|
+
}[];
|
|
597
|
+
next?: string | null | undefined;
|
|
598
|
+
previous?: string | null | undefined;
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
getAttributesExtensiveInfo: {
|
|
602
|
+
(resolver?: ResponseResolver<RestRequest<never, never>, RestContext, AttributeDefinition[]>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
603
|
+
generateData(): {
|
|
604
|
+
createdDate: number;
|
|
605
|
+
createdBy: string;
|
|
606
|
+
modifiedDate: number;
|
|
607
|
+
attributeId: number;
|
|
608
|
+
attributeName: string;
|
|
609
|
+
displayName: string;
|
|
610
|
+
attrGroupId: number;
|
|
611
|
+
attrDataTypeId: number;
|
|
612
|
+
attrDatatype: {
|
|
613
|
+
attrDatatypeId: number;
|
|
614
|
+
datatypeName: "DATE" | "TEXT" | "SET" | "INTEGER" | "FLOAT" | "BOOLEAN" | "KEYVALUE" | "STRING" | "REAL";
|
|
615
|
+
displayOnly: boolean;
|
|
616
|
+
};
|
|
617
|
+
attrGroups: {
|
|
618
|
+
attrGroupId: number;
|
|
619
|
+
attrGroupType: {
|
|
620
|
+
attrGroupTypeId: number;
|
|
621
|
+
groupTypeName: string;
|
|
622
|
+
primary: boolean;
|
|
623
|
+
restricted: boolean;
|
|
624
|
+
};
|
|
625
|
+
attrGroupTypeId: number;
|
|
626
|
+
primary: boolean;
|
|
627
|
+
groupName: string;
|
|
628
|
+
isDefault: boolean;
|
|
629
|
+
orderWeight: number;
|
|
630
|
+
}[];
|
|
631
|
+
attrRoundId: number;
|
|
632
|
+
attrStorageId: number;
|
|
633
|
+
primaryAttrGroup: {
|
|
634
|
+
attrGroupId: number;
|
|
635
|
+
attrGroupType: {
|
|
636
|
+
attrGroupTypeId: number;
|
|
637
|
+
groupTypeName: string;
|
|
638
|
+
primary: boolean;
|
|
639
|
+
restricted: boolean;
|
|
640
|
+
};
|
|
641
|
+
attrGroupTypeId: number;
|
|
642
|
+
primary: boolean;
|
|
643
|
+
groupName: string;
|
|
644
|
+
isDefault: boolean;
|
|
645
|
+
orderWeight: number;
|
|
646
|
+
};
|
|
647
|
+
attrStorage: {
|
|
648
|
+
attrStorageId: number;
|
|
649
|
+
storageName: string;
|
|
650
|
+
};
|
|
651
|
+
attrRestrictions?: {
|
|
652
|
+
locale: string;
|
|
653
|
+
repeatable: boolean;
|
|
654
|
+
isDefault: boolean;
|
|
655
|
+
attrRestrictId: number;
|
|
656
|
+
isEssential: boolean;
|
|
657
|
+
mandatory: boolean;
|
|
658
|
+
ignoreGlobal?: boolean | undefined;
|
|
659
|
+
minLength?: number | undefined;
|
|
660
|
+
maxLength?: number | undefined;
|
|
661
|
+
}[] | undefined;
|
|
662
|
+
attrValues?: {
|
|
663
|
+
value: string;
|
|
664
|
+
locale: string;
|
|
665
|
+
isDefault: boolean;
|
|
666
|
+
attrKeyPair: string;
|
|
667
|
+
attrValueId?: number | undefined;
|
|
668
|
+
}[] | undefined;
|
|
669
|
+
description?: string | undefined;
|
|
670
|
+
orderWeight?: number | undefined;
|
|
671
|
+
parentAttribute?: {
|
|
672
|
+
createdDate: number;
|
|
673
|
+
createdBy: string;
|
|
674
|
+
modifiedDate: number;
|
|
675
|
+
attributeId: number;
|
|
676
|
+
attributeName: string;
|
|
677
|
+
displayName: string;
|
|
678
|
+
attrGroupId: number;
|
|
679
|
+
orderWeight: number;
|
|
680
|
+
attrDataTypeId: number;
|
|
681
|
+
attrDatatype: {
|
|
682
|
+
attrDatatypeId: number;
|
|
683
|
+
datatypeName: "DATE" | "TEXT" | "SET" | "INTEGER" | "FLOAT" | "BOOLEAN" | "KEYVALUE" | "STRING" | "REAL";
|
|
684
|
+
displayOnly: boolean;
|
|
685
|
+
};
|
|
686
|
+
attrGroups: {
|
|
687
|
+
attrGroupId: number;
|
|
688
|
+
attrGroupType: {
|
|
689
|
+
attrGroupTypeId: number;
|
|
690
|
+
groupTypeName: string;
|
|
691
|
+
primary: boolean;
|
|
692
|
+
restricted: boolean;
|
|
693
|
+
};
|
|
694
|
+
attrGroupTypeId: number;
|
|
695
|
+
primary: boolean;
|
|
696
|
+
groupName: string;
|
|
697
|
+
isDefault: boolean;
|
|
698
|
+
orderWeight: number;
|
|
699
|
+
}[];
|
|
700
|
+
attrRoundId: number;
|
|
701
|
+
attrStorageId: number;
|
|
702
|
+
primaryAttrGroup: {
|
|
703
|
+
attrGroupId: number;
|
|
704
|
+
attrGroupType: {
|
|
705
|
+
attrGroupTypeId: number;
|
|
706
|
+
groupTypeName: string;
|
|
707
|
+
primary: boolean;
|
|
708
|
+
restricted: boolean;
|
|
709
|
+
};
|
|
710
|
+
attrGroupTypeId: number;
|
|
711
|
+
primary: boolean;
|
|
712
|
+
groupName: string;
|
|
713
|
+
isDefault: boolean;
|
|
714
|
+
orderWeight: number;
|
|
715
|
+
};
|
|
716
|
+
description?: string | undefined;
|
|
717
|
+
parentAttributeId?: number | undefined;
|
|
718
|
+
} | undefined;
|
|
719
|
+
parentAttributeId?: number | undefined;
|
|
720
|
+
}[];
|
|
721
|
+
};
|
|
722
|
+
getAttributeValidValues: {
|
|
723
|
+
(resolver?: ResponseResolver<RestRequest<never, {
|
|
724
|
+
attributeDbName: string;
|
|
725
|
+
}>, RestContext, AttributeValidValues[]>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
726
|
+
generateData(): {
|
|
727
|
+
value: string;
|
|
728
|
+
createdDate: number;
|
|
729
|
+
createdBy: string;
|
|
730
|
+
modifiedDate: number;
|
|
731
|
+
modifiedBy: string;
|
|
732
|
+
locale: string;
|
|
733
|
+
attributeId: number;
|
|
734
|
+
isDefault: boolean;
|
|
735
|
+
attrKeyPair: string;
|
|
736
|
+
attrValueId: number;
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
getCompanyInterestedAttributes: {
|
|
740
|
+
(resolver?: ResponseResolver<RestRequest<never, never>, RestContext, string[]>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
|
|
741
|
+
generateData(): string[];
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Generate collection of MSW request handlers for `SpreadsheetTemplate Api`
|
|
747
|
+
* @param client Assortment Client instance
|
|
748
|
+
* @returns An object containing functions to generate MSW request handlers
|
|
749
|
+
*/
|
|
750
|
+
declare function createSpreadsheetTemplateApiHandlers(client: AsstClient): {
|
|
751
|
+
getTemplates: {
|
|
752
|
+
(resolver?: ResponseResolver<RestRequest<never, never>, RestContext, SpreadsheetTemplate[]>): msw.RestHandler<msw_lib_glossary_de6278a9.M<msw_lib_glossary_de6278a9.h>>;
|
|
753
|
+
generateData(): {
|
|
754
|
+
name: string;
|
|
755
|
+
id: number;
|
|
756
|
+
fileLocation: string;
|
|
757
|
+
templateType: string;
|
|
758
|
+
maxItemsPerDoc: number;
|
|
759
|
+
companies: {
|
|
760
|
+
companyId: number;
|
|
761
|
+
companyName: string;
|
|
762
|
+
createdAt: number;
|
|
763
|
+
}[];
|
|
764
|
+
createdBy?: string | null | undefined;
|
|
765
|
+
createdAt?: number | null | undefined;
|
|
766
|
+
modifiedBy?: string | null | undefined;
|
|
767
|
+
modifiedAt?: number | null | undefined;
|
|
768
|
+
}[];
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Generate collection of MSW request handlers for `Company Features Api`
|
|
774
|
+
* @param client Assortment Client instance
|
|
775
|
+
* @returns An object containing functions to generate MSW request handlers
|
|
776
|
+
*/
|
|
777
|
+
declare function createCompanyFeaturesApiHandlers(client: AsstClient): {
|
|
778
|
+
checkIfStageItemSetupIsEnabled: (resolver?: ResponseResolver<RestRequest<never>, RestContext, boolean>) => msw.RestHandler<msw_lib_glossary_de6278a9.M<msw_lib_glossary_de6278a9.h>>;
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Generate collection of MSW request handlers for `Feature Flags Api`
|
|
783
|
+
* @param client Assortment Client instance
|
|
784
|
+
* @returns An object containing functions to generate MSW request handlers
|
|
785
|
+
*/
|
|
786
|
+
declare function createFeatureFlagsApiHandlers(client: AsstClient): {
|
|
787
|
+
checkEnableItemsApiEndpointsForImports: (resolver?: ResponseResolver<RestRequest<never>, RestContext, boolean>) => msw.RestHandler<msw_lib_glossary_de6278a9.M<msw_lib_glossary_de6278a9.h>>;
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
export { createAttributesApiHandlers, createCategoriesApiHandlers, createCompanyFeaturesApiHandlers, createErrorsApiHandlers, createExportsApiHandlers, createFeatureFlagsApiHandlers, createImportsApiHandlers, createItemsApiHandlers, createLocaleApiHandlers, createProductTypesApiHandlers, createSpreadsheetTemplateApiHandlers, createTradingPartnerAccessApiHandlers, createWhoAmIApiHandlers };
|