@spscommerce/asst-api 1.0.1 → 1.1.0

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/msw.d.ts CHANGED
@@ -1,11 +1,10 @@
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, I as ImportErrors, a as Import, b as ImportsStatus, V as VendorPartnerAttGroups, c as ItemCategoriesSearch, E as Export, d as attrProdTypeSchema, T as TradingPartnerAccessByCompanyId, e as CompanyRelationshipUpsertBody, U as UserAccount, f as ItemErrorDetailsResult, L as Locale, g as ItemSearchView, h as ItemDetailView, i as AttributeMetaData, j as AttributesByCompany, k as AttributeDefinition, l as AttributeValidValues, S as SpreadsheetTemplate } from './CompanyBriefByOrg-HsKxilwl.js';
4
+ import { A as AsstClient, I as ImportErrors, a as Import, b as ImportsStatus, V as VendorPartnerAttGroups, c as ItemCategoriesSearch, E as Export, d as attrProdTypeSchema, T as TradingPartnerAccessByCompanyId, e as CompanyRelationshipUpsertBody, U as UserAccount, f as ItemErrorDetailsResult, g as ItemErrorSummaryResultV2, h as ItemErrorDetailsResultV2, L as Locale, i as ItemSearchView, j as ItemDetailView, k as AttributeMetaData, l as AttributesByCompany, m as AttributeDefinition, n as AttributeValidValues, S as SpreadsheetTemplate } from './CompanyBriefByOrg-QIqfCtA_.js';
5
5
  import { z } from 'zod';
6
- import { R as RetailerTradingPartnerStages, I as ItemStatusResponse } from './index-wuCGfJSu.js';
7
- export { c as createCompaniesApi } from './index-wuCGfJSu.js';
8
- import 'ky-universal';
6
+ import { R as RetailerTradingPartnerStages, I as ItemStatusResponse } from './index-6k1X-ckx.js';
7
+ export { c as createCompaniesApi } from './index-6k1X-ckx.js';
9
8
  import 'ky';
10
9
 
11
10
  declare function pagedResultsSchema<T extends z.ZodTypeAny>(resultsType: T): z.ZodObject<{
@@ -318,10 +317,10 @@ declare function createErrorsApiHandlers(client: AsstClient): {
318
317
  isValid: boolean;
319
318
  }[];
320
319
  attributeName: string | null;
321
- errorMessage: string;
322
- tradingPartnerNames: string[];
323
320
  phases: ("CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | "STANDARD_REQUIREMENTS")[];
321
+ errorMessage: string;
324
322
  attributeDbNames: string[];
323
+ tradingPartnerNames: string[];
325
324
  repeatableGroupId?: string | null | undefined;
326
325
  }[];
327
326
  gtin?: string | null | undefined;
@@ -333,6 +332,49 @@ declare function createErrorsApiHandlers(client: AsstClient): {
333
332
  };
334
333
  };
335
334
 
335
+ /**
336
+ * Generate collection of MSW request handlers for `ErrorsApi`
337
+ * @param client Assortment Client instance
338
+ * @returns An object containing functions to generate MSW request handlers
339
+ */
340
+ declare function createErrorsApiV2Handlers(client: AsstClient): {
341
+ getItemErrorSummary: (resolver?: ResponseResolver<RestRequest, RestContext, ItemErrorSummaryResultV2>) => msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
342
+ getItemErrorDetails: {
343
+ (resolver?: ResponseResolver<RestRequest<never, {
344
+ itemInfoId: string;
345
+ }>, RestContext, ItemErrorDetailsResultV2>): msw.RestHandler<msw_lib_glossary_de6278a9.M<DefaultBodyType>>;
346
+ generateData(): {
347
+ itemInfoId: number;
348
+ itemErrorDetails: {
349
+ tradingPartnerStages: {
350
+ companyId: number;
351
+ companyName: string;
352
+ isValid: boolean;
353
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
354
+ }[];
355
+ attributeName: string;
356
+ phases: Set<"CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED">;
357
+ errorMessage: string;
358
+ attributeDbNames: string[];
359
+ tradingPartnerNames: string[];
360
+ repeatableGroupId: string;
361
+ }[];
362
+ gtin?: string | null | undefined;
363
+ upc?: string | null | undefined;
364
+ ean?: string | null | undefined;
365
+ isbn?: string | null | undefined;
366
+ partnumber?: string | null | undefined;
367
+ productcolordescription?: string | null | undefined;
368
+ colorfamily?: string | null | undefined;
369
+ fit?: string | null | undefined;
370
+ distributioncentercode?: string | null | undefined;
371
+ accountnumber?: string | null | undefined;
372
+ erpid?: string | null | undefined;
373
+ itemName?: string | null | undefined;
374
+ };
375
+ };
376
+ };
377
+
336
378
  /**
337
379
  * Generate collection of MSW request handlers for `Locale Api`
338
380
  * @param client Assortment Client instance
@@ -829,4 +871,4 @@ declare function createUniqueCriteriaApiHandlers(client: AsstClient): {
829
871
  };
830
872
  };
831
873
 
832
- export { createAttributesApiHandlers, createCategoriesApiHandlers, createCompanyFeaturesApiHandlers, createErrorsApiHandlers, createExportsApiHandlers, createFeatureFlagsApiHandlers, createImportsApiHandlers, createItemsApiHandlers, createLocaleApiHandlers, createProductTypesApiHandlers, createSpreadsheetTemplateApiHandlers, createTradingPartnerAccessApiHandlers, createTradingPartnerSettingsApiHandlers, createUniqueCriteriaApiHandlers, createWhoAmIApiHandlers };
874
+ export { createAttributesApiHandlers, createCategoriesApiHandlers, createCompanyFeaturesApiHandlers, createErrorsApiHandlers, createErrorsApiV2Handlers, createExportsApiHandlers, createFeatureFlagsApiHandlers, createImportsApiHandlers, createItemsApiHandlers, createLocaleApiHandlers, createProductTypesApiHandlers, createSpreadsheetTemplateApiHandlers, createTradingPartnerAccessApiHandlers, createTradingPartnerSettingsApiHandlers, createUniqueCriteriaApiHandlers, createWhoAmIApiHandlers };
package/dist/msw.js CHANGED
@@ -6,6 +6,7 @@ import {
6
6
  BASE_URL13,
7
7
  BASE_URL14,
8
8
  BASE_URL15,
9
+ BASE_URL16,
9
10
  BASE_URL2,
10
11
  BASE_URL3,
11
12
  BASE_URL4,
@@ -17,7 +18,7 @@ import {
17
18
  BASE_URL_V2,
18
19
  createCompaniesApi,
19
20
  retailerTradingPartnerStages
20
- } from "./chunk-HCQG42LN.js";
21
+ } from "./chunk-SFRJ3IYY.js";
21
22
  import {
22
23
  attrProdTypeSchema,
23
24
  attributeDefinitionSchema,
@@ -30,6 +31,8 @@ import {
30
31
  itemCategoriesSearchSchema,
31
32
  itemDetailViewSchema,
32
33
  itemErrorDetailsResultSchema,
34
+ itemErrorDetailsResultV2Schema,
35
+ itemErrorSummaryResultV2Schema,
33
36
  itemPartnerSchema,
34
37
  itemSearchViewSchema,
35
38
  itemStatusResponseSchema,
@@ -40,7 +43,7 @@ import {
40
43
  userAccountSchema,
41
44
  vendorPartnerAttGroupsSchema,
42
45
  z
43
- } from "./chunk-6FFDMMN5.js";
46
+ } from "./chunk-3EK6JHC5.js";
44
47
 
45
48
  // lib/imports/mockHandlers.ts
46
49
  import { generateMock } from "@anatine/zod-mock";
@@ -246,7 +249,7 @@ function createWhoAmIApiHandlers(client) {
246
249
  };
247
250
  }
248
251
 
249
- // lib/errors/mockHandlers.ts
252
+ // lib/errors/v1/mockHandlers.ts
250
253
  import { generateMock as generateMock7 } from "@anatine/zod-mock";
251
254
  import {
252
255
  rest as rest8
@@ -264,49 +267,77 @@ function createErrorsApiHandlers(client) {
264
267
  };
265
268
  }
266
269
 
267
- // lib/locale/mockHandlers.ts
268
- import { rest as rest9 } from "msw";
270
+ // lib/errors/v2/mockHandlers.ts
269
271
  import { generateMock as generateMock8 } from "@anatine/zod-mock";
272
+ import {
273
+ rest as rest9
274
+ } from "msw";
275
+ function createErrorsApiV2Handlers(client) {
276
+ function getItemErrorSummary(resolver = (_req, res, ctx) => {
277
+ const data = generateMock8(itemErrorSummaryResultV2Schema);
278
+ return res(ctx.status(200), ctx.json(data));
279
+ }) {
280
+ return rest9.get(
281
+ `${client.getBaseUrl()}${BASE_URL15}/summary`,
282
+ resolver
283
+ );
284
+ }
285
+ function getItemErrorDetails(resolver = (_req, res, ctx) => {
286
+ const data = generateMock8(itemErrorDetailsResultV2Schema);
287
+ return res(ctx.status(200), ctx.json(data));
288
+ }) {
289
+ return rest9.get(`${client.getBaseUrl()}${BASE_URL15}/items/:itemInfoId`, resolver);
290
+ }
291
+ getItemErrorDetails.generateData = () => generateMock8(itemErrorDetailsResultV2Schema);
292
+ return {
293
+ getItemErrorSummary,
294
+ getItemErrorDetails
295
+ };
296
+ }
297
+
298
+ // lib/locale/mockHandlers.ts
299
+ import { rest as rest10 } from "msw";
300
+ import { generateMock as generateMock9 } from "@anatine/zod-mock";
270
301
  function createLocaleApiHandlers(client) {
271
302
  function getLocale(resolver = (_req, res, ctx) => {
272
- const data = generateMock8(z.array(localeSchema));
303
+ const data = generateMock9(z.array(localeSchema));
273
304
  return res(ctx.status(200), ctx.json(data));
274
305
  }) {
275
- return rest9.get(`${client.getBaseUrl()}${BASE_URL8}`, resolver);
306
+ return rest10.get(`${client.getBaseUrl()}${BASE_URL8}`, resolver);
276
307
  }
277
- getLocale.generateData = () => generateMock8(z.array(localeSchema));
308
+ getLocale.generateData = () => generateMock9(z.array(localeSchema));
278
309
  return {
279
310
  getLocale
280
311
  };
281
312
  }
282
313
 
283
314
  // lib/items/v1/mockHandlers.ts
284
- import { generateMock as generateMock9 } from "@anatine/zod-mock";
315
+ import { generateMock as generateMock10 } from "@anatine/zod-mock";
285
316
  import {
286
- rest as rest10
317
+ rest as rest11
287
318
  } from "msw";
288
319
  function createItemsApiHandlers(client) {
289
320
  function searchItems(resolver = (_req, res, ctx) => {
290
- const data = generateMock9(itemSearchViewSchema);
321
+ const data = generateMock10(itemSearchViewSchema);
291
322
  return res(ctx.status(200), ctx.json(data));
292
323
  }) {
293
- return rest10.get(`${client.getBaseUrl()}${BASE_URL13}`, resolver);
324
+ return rest11.get(`${client.getBaseUrl()}${BASE_URL13}`, resolver);
294
325
  }
295
- searchItems.generateData = () => generateMock9(itemSearchViewSchema);
326
+ searchItems.generateData = () => generateMock10(itemSearchViewSchema);
296
327
  function getItem(resolver = (_req, res, ctx) => {
297
- const data = generateMock9(itemDetailViewSchema);
328
+ const data = generateMock10(itemDetailViewSchema);
298
329
  return res(ctx.status(200), ctx.json(data));
299
330
  }) {
300
- return rest10.get(
331
+ return rest11.get(
301
332
  `${client.getBaseUrl()}${BASE_URL13}/:itemId`,
302
333
  resolver
303
334
  );
304
335
  }
305
- getItem.generateData = () => generateMock9(itemDetailViewSchema);
336
+ getItem.generateData = () => generateMock10(itemDetailViewSchema);
306
337
  function updateItem(resolver = (_req, res, ctx) => {
307
338
  return res(ctx.status(200));
308
339
  }) {
309
- return rest10.put(
340
+ return rest11.put(
310
341
  `${client.getBaseUrl()}${BASE_URL13}/details/:itemId`,
311
342
  resolver
312
343
  );
@@ -314,43 +345,43 @@ function createItemsApiHandlers(client) {
314
345
  function deleteItem(resolver = (_req, res, ctx) => {
315
346
  return res(ctx.status(200));
316
347
  }) {
317
- return rest10.post(`${client.getBaseUrl()}${BASE_URL13}/:itemId`, resolver);
348
+ return rest11.post(`${client.getBaseUrl()}${BASE_URL13}/:itemId`, resolver);
318
349
  }
319
350
  function deleteItems(resolver = (_req, res, ctx) => {
320
351
  return res(ctx.status(200));
321
352
  }) {
322
- return rest10.post(`${client.getBaseUrl()}${BASE_URL13}/items`, resolver);
353
+ return rest11.post(`${client.getBaseUrl()}${BASE_URL13}/items`, resolver);
323
354
  }
324
355
  function getItemInfoId(resolver = (_req, res, ctx) => {
325
- const data = generateMock9(z.number());
356
+ const data = generateMock10(z.number());
326
357
  return res(ctx.status(200), ctx.json(data));
327
358
  }) {
328
- return rest10.get(
359
+ return rest11.get(
329
360
  `${client.getBaseUrl()}${BASE_URL13}/:spsItemId/itemInfoId`,
330
361
  resolver
331
362
  );
332
363
  }
333
- getItemInfoId.generateData = () => generateMock9(z.number());
364
+ getItemInfoId.generateData = () => generateMock10(z.number());
334
365
  function getSpsItemId(resolver = (_req, res, ctx) => {
335
- const data = generateMock9(z.string());
366
+ const data = generateMock10(z.string());
336
367
  return res(ctx.status(200), ctx.json(data));
337
368
  }) {
338
- return rest10.get(
369
+ return rest11.get(
339
370
  `${client.getBaseUrl()}${BASE_URL13}/:itemInfoId/spsItemId`,
340
371
  resolver
341
372
  );
342
373
  }
343
- getSpsItemId.generateData = () => generateMock9(z.string());
374
+ getSpsItemId.generateData = () => generateMock10(z.string());
344
375
  function getItemStatus(resolver = (_req, res, ctx) => {
345
- const data = generateMock9(itemStatusResponseSchema);
376
+ const data = generateMock10(itemStatusResponseSchema);
346
377
  return res(ctx.status(200), ctx.json(data));
347
378
  }) {
348
- return rest10.get(
379
+ return rest11.get(
349
380
  `${client.getBaseUrl()}${BASE_URL13}/status`,
350
381
  resolver
351
382
  );
352
383
  }
353
- getItemStatus.generateData = () => generateMock9(itemStatusResponseSchema);
384
+ getItemStatus.generateData = () => generateMock10(itemStatusResponseSchema);
354
385
  return {
355
386
  searchItems,
356
387
  getItem,
@@ -365,54 +396,54 @@ function createItemsApiHandlers(client) {
365
396
 
366
397
  // lib/attributes/mockHandlers.ts
367
398
  import {
368
- rest as rest11
399
+ rest as rest12
369
400
  } from "msw";
370
- import { generateMock as generateMock10 } from "@anatine/zod-mock";
401
+ import { generateMock as generateMock11 } from "@anatine/zod-mock";
371
402
  function createAttributesApiHandlers(client) {
372
403
  function getAllAttributes(resolver = (_req, res, ctx) => {
373
- const data = generateMock10(z.array(attributeMetaDataSchema));
404
+ const data = generateMock11(z.array(attributeMetaDataSchema));
374
405
  return res(ctx.status(200), ctx.json(data));
375
406
  }) {
376
- return rest11.get(`${client.getBaseUrl()}${BASE_URL7}`, resolver);
407
+ return rest12.get(`${client.getBaseUrl()}${BASE_URL7}`, resolver);
377
408
  }
378
- getAllAttributes.generateData = () => generateMock10(attributeMetaDataSchema);
409
+ getAllAttributes.generateData = () => generateMock11(attributeMetaDataSchema);
379
410
  function getAllAttributesByCompany(resolver = (_req, res, ctx) => {
380
- const data = generateMock10(attributesByCompanySchema);
411
+ const data = generateMock11(attributesByCompanySchema);
381
412
  return res(ctx.status(200), ctx.json(data));
382
413
  }) {
383
- return rest11.get(`${client.getBaseUrl()}${BASE_URL7}/company`, resolver);
414
+ return rest12.get(`${client.getBaseUrl()}${BASE_URL7}/company`, resolver);
384
415
  }
385
- getAllAttributesByCompany.generateData = () => generateMock10(attributesByCompanySchema);
416
+ getAllAttributesByCompany.generateData = () => generateMock11(attributesByCompanySchema);
386
417
  function getAttributesExtensiveInfo(resolver = (_req, res, ctx) => {
387
- const data = generateMock10(z.array(attributeDefinitionSchema));
418
+ const data = generateMock11(z.array(attributeDefinitionSchema));
388
419
  return res(ctx.status(200), ctx.json(data));
389
420
  }) {
390
- return rest11.get(
421
+ return rest12.get(
391
422
  `${client.getBaseUrl()}${BASE_URL7}/registry/editui`,
392
423
  resolver
393
424
  );
394
425
  }
395
- getAttributesExtensiveInfo.generateData = () => generateMock10(z.array(attributeDefinitionSchema));
426
+ getAttributesExtensiveInfo.generateData = () => generateMock11(z.array(attributeDefinitionSchema));
396
427
  function getAttributeValidValues(resolver = (_req, res, ctx) => {
397
- const data = generateMock10(z.array(attributeValidValuesSchema));
428
+ const data = generateMock11(z.array(attributeValidValuesSchema));
398
429
  return res(ctx.status(200), ctx.json(data));
399
430
  }) {
400
- return rest11.get(
431
+ return rest12.get(
401
432
  `${client.getBaseUrl()}${BASE_URL7}/registry/attribute/:attributeDbName/values`,
402
433
  resolver
403
434
  );
404
435
  }
405
- getAttributeValidValues.generateData = () => generateMock10(attributeValidValuesSchema);
436
+ getAttributeValidValues.generateData = () => generateMock11(attributeValidValuesSchema);
406
437
  function getCompanyInterestedAttributes(resolver = (_req, res, ctx) => {
407
- const data = generateMock10(z.array(z.string()));
438
+ const data = generateMock11(z.array(z.string()));
408
439
  return res(ctx.status(200), ctx.json(data));
409
440
  }) {
410
- return rest11.get(
441
+ return rest12.get(
411
442
  `${client.getBaseUrl()}${BASE_URL7}/company/interested-attributes`,
412
443
  resolver
413
444
  );
414
445
  }
415
- getCompanyInterestedAttributes.generateData = () => generateMock10(z.array(z.string()));
446
+ getCompanyInterestedAttributes.generateData = () => generateMock11(z.array(z.string()));
416
447
  return {
417
448
  getAllAttributes,
418
449
  getAllAttributesByCompany,
@@ -423,30 +454,30 @@ function createAttributesApiHandlers(client) {
423
454
  }
424
455
 
425
456
  // lib/spreadsheetTemplate/mockHandlers.ts
426
- import { rest as rest12 } from "msw";
427
- import { generateMock as generateMock11 } from "@anatine/zod-mock";
457
+ import { rest as rest13 } from "msw";
458
+ import { generateMock as generateMock12 } from "@anatine/zod-mock";
428
459
  function createSpreadsheetTemplateApiHandlers(client) {
429
460
  function getTemplates(resolver = (_req, res, ctx) => {
430
- const data = generateMock11(z.array(spreadsheetTemplateSchema));
461
+ const data = generateMock12(z.array(spreadsheetTemplateSchema));
431
462
  return res(ctx.status(200), ctx.json(data));
432
463
  }) {
433
- return rest12.get(`${client.getBaseUrl()}${BASE_URL9}`, resolver);
464
+ return rest13.get(`${client.getBaseUrl()}${BASE_URL9}`, resolver);
434
465
  }
435
- getTemplates.generateData = () => generateMock11(z.array(spreadsheetTemplateSchema));
466
+ getTemplates.generateData = () => generateMock12(z.array(spreadsheetTemplateSchema));
436
467
  return {
437
468
  getTemplates
438
469
  };
439
470
  }
440
471
 
441
472
  // lib/companyFeatures/mockHandlers.ts
442
- import { generateMock as generateMock12 } from "@anatine/zod-mock";
443
- import { rest as rest13 } from "msw";
473
+ import { generateMock as generateMock13 } from "@anatine/zod-mock";
474
+ import { rest as rest14 } from "msw";
444
475
  function createCompanyFeaturesApiHandlers(client) {
445
476
  function checkIfStageItemSetupIsEnabled(resolver = (_req, res, ctx) => {
446
- const data = generateMock12(z.boolean());
477
+ const data = generateMock13(z.boolean());
447
478
  return res(ctx.status(200), ctx.json(data));
448
479
  }) {
449
- return rest13.get(
480
+ return rest14.get(
450
481
  `${client.getBaseUrl()}${BASE_URL11}/isphaseditemsetupenabled`,
451
482
  resolver
452
483
  );
@@ -457,14 +488,14 @@ function createCompanyFeaturesApiHandlers(client) {
457
488
  }
458
489
 
459
490
  // lib/featureFlags/mockHandlers.ts
460
- import { generateMock as generateMock13 } from "@anatine/zod-mock";
461
- import { rest as rest14 } from "msw";
491
+ import { generateMock as generateMock14 } from "@anatine/zod-mock";
492
+ import { rest as rest15 } from "msw";
462
493
  function createFeatureFlagsApiHandlers(client) {
463
494
  function checkEnableItemsLevelMSIS(resolver = (_req, res, ctx) => {
464
- const data = generateMock13(z.boolean());
495
+ const data = generateMock14(z.boolean());
465
496
  return res(ctx.status(200), ctx.json(data));
466
497
  }) {
467
- return rest14.get(
498
+ return rest15.get(
468
499
  `${client.getBaseUrl()}/${BASE_URL12}/enable-item-level-msis/`,
469
500
  resolver
470
501
  );
@@ -475,16 +506,16 @@ function createFeatureFlagsApiHandlers(client) {
475
506
  }
476
507
 
477
508
  // lib/uniqueCriteria/mockHandlers.ts
478
- import { generateMock as generateMock14 } from "@anatine/zod-mock";
479
- import { rest as rest15 } from "msw";
509
+ import { generateMock as generateMock15 } from "@anatine/zod-mock";
510
+ import { rest as rest16 } from "msw";
480
511
  function createUniqueCriteriaApiHandlers(client) {
481
512
  function getUniqueCriteriaByOrg(resolver = (_req, res, ctx) => {
482
- const data = generateMock14(z.array(z.string()));
513
+ const data = generateMock15(z.array(z.string()));
483
514
  return res(ctx.status(200), ctx.json(data));
484
515
  }) {
485
- return rest15.get(`${client.getBaseUrl()}/${BASE_URL15}/org`, resolver);
516
+ return rest16.get(`${client.getBaseUrl()}/${BASE_URL16}/org`, resolver);
486
517
  }
487
- getUniqueCriteriaByOrg.generateData = () => generateMock14(z.array(z.string()));
518
+ getUniqueCriteriaByOrg.generateData = () => generateMock15(z.array(z.string()));
488
519
  return {
489
520
  getUniqueCriteriaByOrg
490
521
  };
@@ -495,6 +526,7 @@ export {
495
526
  createCompaniesApi,
496
527
  createCompanyFeaturesApiHandlers,
497
528
  createErrorsApiHandlers,
529
+ createErrorsApiV2Handlers,
498
530
  createExportsApiHandlers,
499
531
  createFeatureFlagsApiHandlers,
500
532
  createImportsApiHandlers,
@@ -1,4 +1,4 @@
1
- import './CompanyBriefByOrg-HsKxilwl.js';
1
+ import './CompanyBriefByOrg-QIqfCtA_.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const importDetailSchema: z.ZodObject<{
@@ -3258,4 +3258,159 @@ declare const itemErrorDetailsSchema: z.ZodObject<{
3258
3258
  }>;
3259
3259
  type ItemErrorDetails = z.infer<typeof itemErrorDetailsSchema>;
3260
3260
 
3261
- export { itemCategorySchema as $, type AttributeSummary as A, type ItemPrice as B, type Connection as C, type DownLoadItemsParams as D, type ExportDayOfWeek as E, type PackComponentDetails as F, type GenerateImportTemplateParams as G, type HierarchyCategory as H, type ItemPartner as I, type Bulb as J, type PackComponent as K, type RepeatableGroup as L, type MediaItem as M, type PackComponentItemInfo as N, type ItemErrorDetails as O, type PhaseEnum as P, importDetailSchema as Q, type RegisteredService as R, type SpsItemIdResponse as S, type TradingPartnerStage as T, importErrorSchema as U, importStatusEnumSchema as V, generateImportTemplateParamsSchema as W, exportDayOfWeekEnum as X, exportFrequencyEnum as Y, exportTypeEnum as Z, downLoadItemsParamsSchema as _, type ItemHierarchyResponse as a, itemHierarchyResponseSchema as a0, attrDatatypeNameEnumSchema as a1, attributeGroupSchema as a2, attributeSummarySchema as a3, itemHeaderSchema as a4, itemMapSchema as a5, itemTableSchema as a6, phaseEnumSchema as a7, tradingPartnerStageSchema as a8, bulbSchema as a9, itemPriceSchema as aa, mediaItemSchema as ab, itemDetailSchema as ac, groupedItemSchema as ad, categoryEnumSchema as ae, packComponentSchema as af, attributeDetailSchema as ag, repeatableGroupSchema as ah, componentDetailsSchema as ai, hierarchyDetailsSchema as aj, groupedAttributesSchema as ak, hierarchyCategorySchema as al, groupedAttributeListSchema as am, packComponentDetailsSchema as an, packComponentItemInfoSchema as ao, spsItemIdResponseSchema as ap, spreadsheetTemplateCompanySchema as aq, connectionSchema as ar, itemPartnerSchema as as, identityServiceDatetimePreferencesSchema as at, identityServiceOrganizationMetadataSchema as au, identityServiceOrganizationSchema as av, identityServicePreferencesSchema as aw, identityServiceUserSchema as ax, registeredServiceSchema as ay, itemErrorDetailsSchema as az, type ItemDetail as b, type ImportDetails as c, type ImportError as d, type ImportStatusEnum as e, type ExportFrequency as f, type ExportType as g, type ItemCategory as h, type AttrDatatypeNameEnum as i, type AttributeGroup as j, type SpreadsheetTemplateCompany as k, type IdentityServiceOrganizationMetadata as l, type IdentityServiceDatetimePreferences as m, type IdentityServiceOrganization as n, type IdentityServicePreferences as o, type IdentityServiceUser as p, type ItemHeader as q, type ItemMap as r, type ItemTable as s, type AttributeDetail as t, type CategoryEnum as u, type ComponentDetails as v, type GroupedAttributeList as w, type GroupedAttributes as x, type GroupedItem as y, type HierarchyDetails as z };
3261
+ declare const itemErrorSummaryV2Schema: z.ZodObject<{
3262
+ itemInfoId: z.ZodNumber;
3263
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3264
+ isbn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3265
+ gtin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3266
+ ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3267
+ partnumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3268
+ colorfamily: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3269
+ fit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3270
+ productcolordescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3271
+ distributioncentercode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3272
+ accountnumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3273
+ erpid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3274
+ totalErrors: z.ZodNumber;
3275
+ tradingPartners: z.ZodArray<z.ZodString, "many">;
3276
+ tradingPartnerIds: z.ZodArray<z.ZodNumber, "many">;
3277
+ phases: z.ZodArray<z.ZodString, "many">;
3278
+ tradingPartnerStages: z.ZodArray<z.ZodObject<{
3279
+ companyId: z.ZodNumber;
3280
+ companyName: z.ZodString;
3281
+ stage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED"]>>>;
3282
+ isValid: z.ZodBoolean;
3283
+ }, "strip", z.ZodTypeAny, {
3284
+ companyId: number;
3285
+ companyName: string;
3286
+ isValid: boolean;
3287
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
3288
+ }, {
3289
+ companyId: number;
3290
+ companyName: string;
3291
+ isValid: boolean;
3292
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
3293
+ }>, "many">;
3294
+ validatedDate: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodNumber, z.ZodDate>>>;
3295
+ }, "strip", z.ZodTypeAny, {
3296
+ itemInfoId: number;
3297
+ tradingPartnerStages: {
3298
+ companyId: number;
3299
+ companyName: string;
3300
+ isValid: boolean;
3301
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
3302
+ }[];
3303
+ phases: string[];
3304
+ totalErrors: number;
3305
+ tradingPartners: string[];
3306
+ tradingPartnerIds: number[];
3307
+ gtin?: string | null | undefined;
3308
+ upc?: string | null | undefined;
3309
+ ean?: string | null | undefined;
3310
+ isbn?: string | null | undefined;
3311
+ partnumber?: string | null | undefined;
3312
+ productcolordescription?: string | null | undefined;
3313
+ colorfamily?: string | null | undefined;
3314
+ fit?: string | null | undefined;
3315
+ distributioncentercode?: string | null | undefined;
3316
+ accountnumber?: string | null | undefined;
3317
+ erpid?: string | null | undefined;
3318
+ validatedDate?: Date | null | undefined;
3319
+ }, {
3320
+ itemInfoId: number;
3321
+ tradingPartnerStages: {
3322
+ companyId: number;
3323
+ companyName: string;
3324
+ isValid: boolean;
3325
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
3326
+ }[];
3327
+ phases: string[];
3328
+ totalErrors: number;
3329
+ tradingPartners: string[];
3330
+ tradingPartnerIds: number[];
3331
+ gtin?: string | null | undefined;
3332
+ upc?: string | null | undefined;
3333
+ ean?: string | null | undefined;
3334
+ isbn?: string | null | undefined;
3335
+ partnumber?: string | null | undefined;
3336
+ productcolordescription?: string | null | undefined;
3337
+ colorfamily?: string | null | undefined;
3338
+ fit?: string | null | undefined;
3339
+ distributioncentercode?: string | null | undefined;
3340
+ accountnumber?: string | null | undefined;
3341
+ erpid?: string | null | undefined;
3342
+ validatedDate?: number | null | undefined;
3343
+ }>;
3344
+ type ItemErrorSummaryV2 = z.infer<typeof itemErrorSummaryV2Schema>;
3345
+
3346
+ declare const tradingPartnerStageV2Schema: z.ZodObject<{
3347
+ companyId: z.ZodNumber;
3348
+ companyName: z.ZodString;
3349
+ stage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED"]>>>;
3350
+ isValid: z.ZodBoolean;
3351
+ }, "strip", z.ZodTypeAny, {
3352
+ companyId: number;
3353
+ companyName: string;
3354
+ isValid: boolean;
3355
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
3356
+ }, {
3357
+ companyId: number;
3358
+ companyName: string;
3359
+ isValid: boolean;
3360
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
3361
+ }>;
3362
+ type TradingPartnerStageV2 = z.infer<typeof tradingPartnerStageV2Schema>;
3363
+
3364
+ declare const itemErrorDetailsV2Schema: z.ZodObject<{
3365
+ errorMessage: z.ZodString;
3366
+ attributeName: z.ZodString;
3367
+ attributeDbNames: z.ZodArray<z.ZodString, "many">;
3368
+ tradingPartnerNames: z.ZodArray<z.ZodString, "many">;
3369
+ phases: z.ZodSet<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED"]>>;
3370
+ tradingPartnerStages: z.ZodArray<z.ZodObject<{
3371
+ companyId: z.ZodNumber;
3372
+ companyName: z.ZodString;
3373
+ stage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["CORE", "CORE_PLUS", "CORE_ADVANCED", "ENRICHED"]>>>;
3374
+ isValid: z.ZodBoolean;
3375
+ }, "strip", z.ZodTypeAny, {
3376
+ companyId: number;
3377
+ companyName: string;
3378
+ isValid: boolean;
3379
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
3380
+ }, {
3381
+ companyId: number;
3382
+ companyName: string;
3383
+ isValid: boolean;
3384
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
3385
+ }>, "many">;
3386
+ repeatableGroupId: z.ZodString;
3387
+ }, "strip", z.ZodTypeAny, {
3388
+ attributeName: string;
3389
+ tradingPartnerStages: {
3390
+ companyId: number;
3391
+ companyName: string;
3392
+ isValid: boolean;
3393
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
3394
+ }[];
3395
+ errorMessage: string;
3396
+ tradingPartnerNames: string[];
3397
+ phases: Set<"CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED">;
3398
+ attributeDbNames: string[];
3399
+ repeatableGroupId: string;
3400
+ }, {
3401
+ attributeName: string;
3402
+ tradingPartnerStages: {
3403
+ companyId: number;
3404
+ companyName: string;
3405
+ isValid: boolean;
3406
+ stage?: "CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED" | null | undefined;
3407
+ }[];
3408
+ errorMessage: string;
3409
+ tradingPartnerNames: string[];
3410
+ phases: Set<"CORE" | "CORE_PLUS" | "CORE_ADVANCED" | "ENRICHED">;
3411
+ attributeDbNames: string[];
3412
+ repeatableGroupId: string;
3413
+ }>;
3414
+ type ItemErrorDetailsV2 = z.infer<typeof itemErrorDetailsV2Schema>;
3415
+
3416
+ export { exportFrequencyEnum as $, type AttributeSummary as A, type ItemPrice as B, type Connection as C, type DownLoadItemsParams as D, type ExportDayOfWeek as E, type PackComponentDetails as F, type GenerateImportTemplateParams as G, type HierarchyCategory as H, type ItemPartner as I, type Bulb as J, type PackComponent as K, type RepeatableGroup as L, type MediaItem as M, type PackComponentItemInfo as N, type ItemErrorDetails as O, type PhaseEnum as P, type ItemErrorSummaryV2 as Q, type RegisteredService as R, type SpsItemIdResponse as S, type TradingPartnerStage as T, type ItemErrorDetailsV2 as U, type TradingPartnerStageV2 as V, importDetailSchema as W, importErrorSchema as X, importStatusEnumSchema as Y, generateImportTemplateParamsSchema as Z, exportDayOfWeekEnum as _, type ItemHierarchyResponse as a, exportTypeEnum as a0, downLoadItemsParamsSchema as a1, itemCategorySchema as a2, itemHierarchyResponseSchema as a3, attrDatatypeNameEnumSchema as a4, attributeGroupSchema as a5, attributeSummarySchema as a6, itemHeaderSchema as a7, itemMapSchema as a8, itemTableSchema as a9, identityServiceUserSchema as aA, registeredServiceSchema as aB, itemErrorDetailsSchema as aC, itemErrorSummaryV2Schema as aD, itemErrorDetailsV2Schema as aE, tradingPartnerStageV2Schema as aF, phaseEnumSchema as aa, tradingPartnerStageSchema as ab, bulbSchema as ac, itemPriceSchema as ad, mediaItemSchema as ae, itemDetailSchema as af, groupedItemSchema as ag, categoryEnumSchema as ah, packComponentSchema as ai, attributeDetailSchema as aj, repeatableGroupSchema as ak, componentDetailsSchema as al, hierarchyDetailsSchema as am, groupedAttributesSchema as an, hierarchyCategorySchema as ao, groupedAttributeListSchema as ap, packComponentDetailsSchema as aq, packComponentItemInfoSchema as ar, spsItemIdResponseSchema as as, spreadsheetTemplateCompanySchema as at, connectionSchema as au, itemPartnerSchema as av, identityServiceDatetimePreferencesSchema as aw, identityServiceOrganizationMetadataSchema as ax, identityServiceOrganizationSchema as ay, identityServicePreferencesSchema as az, type ItemDetail as b, type ImportDetails as c, type ImportError as d, type ImportStatusEnum as e, type ExportFrequency as f, type ExportType as g, type ItemCategory as h, type AttrDatatypeNameEnum as i, type AttributeGroup as j, type SpreadsheetTemplateCompany as k, type IdentityServiceOrganizationMetadata as l, type IdentityServiceDatetimePreferences as m, type IdentityServiceOrganization as n, type IdentityServicePreferences as o, type IdentityServiceUser as p, type ItemHeader as q, type ItemMap as r, type ItemTable as s, type AttributeDetail as t, type CategoryEnum as u, type ComponentDetails as v, type GroupedAttributeList as w, type GroupedAttributes as x, type GroupedItem as y, type HierarchyDetails as z };