@spscommerce/asst-api 0.0.1-beta.9 → 0.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.
Files changed (61) hide show
  1. package/dist/{ItemErrorDetailsResult-c62caeae.d.ts → CompanyBriefByOrg-f1bfabb3.d.ts} +211 -165
  2. package/dist/{chunk-ITWMRXLD.js → chunk-FDGLFR7X.js} +133 -22
  3. package/dist/{chunk-IHIEBLQV.js → chunk-PUQDOFRT.js} +103 -29
  4. package/dist/index-d94fdfef.d.ts +103 -0
  5. package/dist/index.cjs +223 -47
  6. package/dist/index.d.ts +146 -9
  7. package/dist/index.js +8 -2
  8. package/dist/msw.cjs +251 -60
  9. package/dist/msw.d.ts +126 -69
  10. package/dist/msw.js +132 -31
  11. package/dist/{ItemErrorDetails-e6e400aa.d.ts → zod-ec1cdb27.d.ts} +179 -103
  12. package/dist/zod.cjs +106 -28
  13. package/dist/zod.d.ts +2 -2
  14. package/dist/zod.js +11 -1
  15. package/package.json +1 -1
  16. package/dist/ImportsStatus-52d26b01.d.ts +0 -134
  17. package/dist/ImportsStatusEnum-22c03a0b.d.ts +0 -51
  18. package/dist/ItemCategoriesSearch-1bb945de.d.ts +0 -275
  19. package/dist/ItemCategoriesSearch-44b87663.d.ts +0 -318
  20. package/dist/ItemCategoriesSearch-e0870a34.d.ts +0 -318
  21. package/dist/ItemCategoriesSearch-e3298650.d.ts +0 -319
  22. package/dist/ItemCategoriesSearch-ec43591f.d.ts +0 -319
  23. package/dist/ItemCategory-14816deb.d.ts +0 -99
  24. package/dist/ItemCategory-768179bd.d.ts +0 -99
  25. package/dist/ItemErrorDetails-1614b511.d.ts +0 -3137
  26. package/dist/ItemErrorDetails-1bd2821e.d.ts +0 -3137
  27. package/dist/ItemErrorDetailsResult-0b4a628c.d.ts +0 -3032
  28. package/dist/ItemErrorDetailsResult-859368da.d.ts +0 -3032
  29. package/dist/ItemErrorDetailsResult-9ac97c24.d.ts +0 -3032
  30. package/dist/ItemErrorDetailsResult-c12c4eac.d.ts +0 -3032
  31. package/dist/TradingPartnerAccessByCompanyId-29866586.d.ts +0 -97
  32. package/dist/TradingPartnerAccessByCompanyId-43f83fb6.d.ts +0 -130
  33. package/dist/TradingPartnerAccessByCompanyId-479e3e57.d.ts +0 -124
  34. package/dist/TradingPartnerAccessByCompanyId-53b868a8.d.ts +0 -125
  35. package/dist/TradingPartnerAccessByCompanyId-b227f0c5.d.ts +0 -125
  36. package/dist/TradingPartnerAccessByCompanyId-e7a1d443.d.ts +0 -129
  37. package/dist/asstClient-f6a1693a.d.ts +0 -29
  38. package/dist/chunk-3FMMM7IS.js +0 -80
  39. package/dist/chunk-3JRE7YYE.js +0 -4576
  40. package/dist/chunk-4WER3ZLX.js +0 -4576
  41. package/dist/chunk-6ZNFOWTV.js +0 -78
  42. package/dist/chunk-7HCJJATJ.js +0 -40
  43. package/dist/chunk-B7B2ACF4.js +0 -3794
  44. package/dist/chunk-D3ML6E4G.js +0 -3787
  45. package/dist/chunk-ETURPA7W.js +0 -326
  46. package/dist/chunk-F3KCLICG.js +0 -77
  47. package/dist/chunk-FS6LHGAR.js +0 -87
  48. package/dist/chunk-G36FM5OA.js +0 -327
  49. package/dist/chunk-GDFX3WTX.js +0 -78
  50. package/dist/chunk-LGP22FRF.js +0 -0
  51. package/dist/chunk-LYMGZWSR.js +0 -80
  52. package/dist/chunk-N2OYWNHF.js +0 -80
  53. package/dist/chunk-OA6PO3QG.js +0 -78
  54. package/dist/chunk-OBXZRDPY.js +0 -77
  55. package/dist/chunk-OI47EFQH.js +0 -82
  56. package/dist/chunk-OVOZIZA2.js +0 -326
  57. package/dist/chunk-RNUSCCKB.js +0 -183
  58. package/dist/chunk-RRGAJ4ZS.js +0 -4576
  59. package/dist/chunk-T3UCSW2B.js +0 -81
  60. package/dist/chunk-XMNYZGXF.js +0 -84
  61. package/dist/chunk-YCQUK6KV.js +0 -85
package/dist/zod.cjs CHANGED
@@ -41,6 +41,7 @@ __export(zod_exports, {
41
41
  attributesByCompanySchema: () => attributesByCompanySchema,
42
42
  bulbSchema: () => bulbSchema,
43
43
  categoryEnumSchema: () => categoryEnumSchema,
44
+ companyBriefByOrgSchema: () => companyBriefByOrgSchema,
44
45
  componentDetailsSchema: () => componentDetailsSchema,
45
46
  connectionSchema: () => connectionSchema,
46
47
  downLoadItemsParamsSchema: () => downLoadItemsParamsSchema,
@@ -55,6 +56,7 @@ __export(zod_exports, {
55
56
  groupedItemSchema: () => groupedItemSchema,
56
57
  hierarchyCategorySchema: () => hierarchyCategorySchema,
57
58
  hierarchyDetailsSchema: () => hierarchyDetailsSchema,
59
+ hierarchySchema: () => hierarchySchema,
58
60
  identityServiceDatetimePreferencesSchema: () => identityServiceDatetimePreferencesSchema,
59
61
  identityServiceOrganizationMetadataSchema: () => identityServiceOrganizationMetadataSchema,
60
62
  identityServiceOrganizationSchema: () => identityServiceOrganizationSchema,
@@ -73,6 +75,8 @@ __export(zod_exports, {
73
75
  itemErrorDetailsResultSchema: () => itemErrorDetailsResultSchema,
74
76
  itemErrorDetailsSchema: () => itemErrorDetailsSchema,
75
77
  itemHeaderSchema: () => itemHeaderSchema,
78
+ itemHierarchyResponseSchema: () => itemHierarchyResponseSchema,
79
+ itemHierarchySchema: () => itemHierarchySchema,
76
80
  itemMapSchema: () => itemMapSchema,
77
81
  itemPriceSchema: () => itemPriceSchema,
78
82
  itemSearchViewSchema: () => itemSearchViewSchema,
@@ -87,6 +91,7 @@ __export(zod_exports, {
87
91
  repeatableGroupSchema: () => repeatableGroupSchema,
88
92
  spreadsheetTemplateCompanySchema: () => spreadsheetTemplateCompanySchema,
89
93
  spreadsheetTemplateSchema: () => spreadsheetTemplateSchema,
94
+ spsItemIdResponseSchema: () => spsItemIdResponseSchema,
90
95
  tradingPartnerAccessByCompanyIdSchema: () => tradingPartnerAccessByCompanyIdSchema,
91
96
  tradingPartnerStageSchema: () => tradingPartnerStageSchema,
92
97
  userAccountSchema: () => userAccountSchema,
@@ -3781,14 +3786,16 @@ var z = /* @__PURE__ */ Object.freeze({
3781
3786
 
3782
3787
  // lib/asstClient.ts
3783
3788
  var baseUrlsSchema = z.object({
3784
- local: z.literal("https://localhost:8443"),
3785
- test: z.literal("https://integration.api.spscommerce.com/assortment/gateway"),
3786
- prod: z.literal("https://api.spscommerce.com/assortment/gateway")
3789
+ local: z.literal("https://localhost:8443/"),
3790
+ test: z.literal(
3791
+ "https://integration.api.spscommerce.com/assortment/gateway/"
3792
+ ),
3793
+ prod: z.literal("https://api.spscommerce.com/assortment/gateway/")
3787
3794
  });
3788
3795
  var BASE_URLS = {
3789
- local: "https://localhost:8443",
3790
- test: "https://integration.api.spscommerce.com/assortment/gateway",
3791
- prod: "https://api.spscommerce.com/assortment/gateway"
3796
+ local: "https://localhost:8443/",
3797
+ test: "https://integration.api.spscommerce.com/assortment/gateway/",
3798
+ prod: "https://api.spscommerce.com/assortment/gateway/"
3792
3799
  };
3793
3800
  var envSchema = baseUrlsSchema.keyof();
3794
3801
  var initialConfig = {
@@ -3925,6 +3932,7 @@ var downLoadItemsParamsSchema = z.object({
3925
3932
  // lib/categories/models/ItemCategory.ts
3926
3933
  var itemCategorySchema = z.object({
3927
3934
  categoryid: z.number(),
3935
+ encodedCategoryId: z.string(),
3928
3936
  companyId: z.number(),
3929
3937
  name: z.string(),
3930
3938
  isActive: z.number(),
@@ -3943,6 +3951,30 @@ var itemCategoriesSearchSchema = z.object({
3943
3951
  data: z.array(itemCategorySchema)
3944
3952
  });
3945
3953
 
3954
+ // lib/categories/models/Hierarchy.ts
3955
+ var baseHierarchySchema = z.object({
3956
+ id: z.string(),
3957
+ name: z.string().nullish(),
3958
+ description: z.string().nullish(),
3959
+ type: z.string().nullish()
3960
+ });
3961
+ var hierarchySchema = baseHierarchySchema.extend(
3962
+ {
3963
+ child: z.lazy(() => hierarchySchema).nullable()
3964
+ }
3965
+ );
3966
+
3967
+ // lib/categories/models/ItemHierarchy.ts
3968
+ var itemHierarchySchema = z.object({
3969
+ itemId: z.string(),
3970
+ hierarchies: z.array(hierarchySchema)
3971
+ });
3972
+
3973
+ // lib/categories/models/ItemHierarchyResponse.ts
3974
+ var itemHierarchyResponseSchema = z.object({
3975
+ itemHierarchies: z.array(itemHierarchySchema)
3976
+ });
3977
+
3946
3978
  // lib/attributes/models/AttributeMetaData.ts
3947
3979
  var attributeMetaDataSchema = z.object({
3948
3980
  dbName: z.string(),
@@ -4370,6 +4402,34 @@ var itemDetailSchema = z.object({
4370
4402
  packs: z.array(packComponentSchema)
4371
4403
  });
4372
4404
 
4405
+ // lib/items/models/SpsItemIdResponse.ts
4406
+ var spsItemIdResponseSchema = z.object({
4407
+ id: z.string(),
4408
+ ref: z.string()
4409
+ });
4410
+
4411
+ // lib/items/models/ItemOrgStatus.ts
4412
+ var itemOrgStatusSchema = z.object({
4413
+ org: z.object({
4414
+ ref: z.string(),
4415
+ id: z.string(),
4416
+ name: z.string()
4417
+ }),
4418
+ lowestInvalidStage: phaseEnumSchema.nullable(),
4419
+ validForRelationship: z.boolean()
4420
+ });
4421
+
4422
+ // lib/items/models/ItemStatus.ts
4423
+ var itemStatusSchema = z.object({
4424
+ itemId: z.string(),
4425
+ itemOrgStatuses: z.array(itemOrgStatusSchema)
4426
+ });
4427
+
4428
+ // lib/items/models/ItemStatusResponse.ts
4429
+ var itemStatusResponseSchema = z.object({
4430
+ itemStatuses: z.array(itemStatusSchema)
4431
+ });
4432
+
4373
4433
  // lib/locale/models/Locale.ts
4374
4434
  var localeSchema = z.object({
4375
4435
  localeCode: z.string(),
@@ -4414,7 +4474,8 @@ var connectionSchema = z.object({
4414
4474
  catalog_id: z.number(),
4415
4475
  catalog_name: z.string().nullable(),
4416
4476
  partner_company_name: z.string(),
4417
- partner_company_id: z.number()
4477
+ partner_company_id: z.number(),
4478
+ partner_org_id: z.string()
4418
4479
  });
4419
4480
 
4420
4481
  // lib/tradingPartners/models/TradingPartnerAccessByCompanyId.ts
@@ -4446,9 +4507,9 @@ var identityServiceOrganizationMetadataSchema = z.object({
4446
4507
 
4447
4508
  // lib/whoami/models/IdentityServiceOrganization.ts
4448
4509
  var identityServiceOrganizationSchema = z.object({
4449
- organization_name: z.string(),
4450
- organization_site: z.string(),
4451
- namespace: z.string(),
4510
+ organization_name: z.string().optional(),
4511
+ organization_site: z.string().optional(),
4512
+ namespace: z.string().optional(),
4452
4513
  id: z.string(),
4453
4514
  permissions: z.array(z.string()).optional(),
4454
4515
  metadata: identityServiceOrganizationMetadataSchema.optional()
@@ -4466,26 +4527,26 @@ var identityServicePreferencesSchema = z.object({
4466
4527
  // lib/whoami/models/IdentityServiceUser.ts
4467
4528
  var identityServiceUserSchema = z.object({
4468
4529
  id: z.string(),
4469
- email: z.string(),
4470
- first_name: z.string(),
4471
- last_name: z.string(),
4472
- job_title: z.string(),
4473
- externally_managed: z.boolean(),
4474
- city: z.string(),
4530
+ email: z.string().optional(),
4531
+ first_name: z.string().optional(),
4532
+ last_name: z.string().optional(),
4533
+ job_title: z.string().optional(),
4534
+ externally_managed: z.boolean().optional(),
4535
+ city: z.string().optional(),
4475
4536
  name: z.string(),
4476
- state: z.string(),
4477
- country: z.string(),
4478
- user_type: z.string(),
4479
- token_type: z.string(),
4480
- avatar_image_id: z.string(),
4481
- avatar_image_url: z.string(),
4482
- origin_avatar_image_id: z.string(),
4483
- bio: z.string(),
4484
- phone_number: z.string(),
4485
- twitter_handle: z.string(),
4486
- linkedin_url: z.string(),
4537
+ state: z.string().optional(),
4538
+ country: z.string().optional(),
4539
+ user_type: z.string().optional(),
4540
+ token_type: z.string().optional(),
4541
+ avatar_image_id: z.string().optional(),
4542
+ avatar_image_url: z.string().optional(),
4543
+ origin_avatar_image_id: z.string().optional(),
4544
+ bio: z.string().optional(),
4545
+ phone_number: z.string().optional(),
4546
+ twitter_handle: z.string().optional(),
4547
+ linkedin_url: z.string().optional(),
4487
4548
  description: z.string().optional(),
4488
- preferences: identityServicePreferencesSchema,
4549
+ preferences: identityServicePreferencesSchema.optional(),
4489
4550
  roles: z.array(z.string()),
4490
4551
  organization: identityServiceOrganizationSchema,
4491
4552
  password: z.string(),
@@ -4542,6 +4603,18 @@ var itemErrorDetailsResultSchema = z.object({
4542
4603
  itemName: z.string().nullable(),
4543
4604
  itemErrorDetails: z.array(itemErrorDetailsSchema)
4544
4605
  });
4606
+
4607
+ // lib/companies/models/CompanyBriefByOrg.ts
4608
+ var companyBriefByOrgSchema = z.object({
4609
+ companyId: z.number(),
4610
+ name: z.string(),
4611
+ orgId: z.string(),
4612
+ companyType: z.object({
4613
+ type: z.enum(["SUPPLIER", "RETAILER"]),
4614
+ display: z.enum(["SUPPLIER", "RETAILER"])
4615
+ }),
4616
+ dc4Id: z.number()
4617
+ });
4545
4618
  // Annotate the CommonJS export names for ESM import in node:
4546
4619
  0 && (module.exports = {
4547
4620
  attrDatatypeNameEnumSchema,
@@ -4555,6 +4628,7 @@ var itemErrorDetailsResultSchema = z.object({
4555
4628
  attributesByCompanySchema,
4556
4629
  bulbSchema,
4557
4630
  categoryEnumSchema,
4631
+ companyBriefByOrgSchema,
4558
4632
  componentDetailsSchema,
4559
4633
  connectionSchema,
4560
4634
  downLoadItemsParamsSchema,
@@ -4569,6 +4643,7 @@ var itemErrorDetailsResultSchema = z.object({
4569
4643
  groupedItemSchema,
4570
4644
  hierarchyCategorySchema,
4571
4645
  hierarchyDetailsSchema,
4646
+ hierarchySchema,
4572
4647
  identityServiceDatetimePreferencesSchema,
4573
4648
  identityServiceOrganizationMetadataSchema,
4574
4649
  identityServiceOrganizationSchema,
@@ -4587,6 +4662,8 @@ var itemErrorDetailsResultSchema = z.object({
4587
4662
  itemErrorDetailsResultSchema,
4588
4663
  itemErrorDetailsSchema,
4589
4664
  itemHeaderSchema,
4665
+ itemHierarchyResponseSchema,
4666
+ itemHierarchySchema,
4590
4667
  itemMapSchema,
4591
4668
  itemPriceSchema,
4592
4669
  itemSearchViewSchema,
@@ -4601,6 +4678,7 @@ var itemErrorDetailsResultSchema = z.object({
4601
4678
  repeatableGroupSchema,
4602
4679
  spreadsheetTemplateCompanySchema,
4603
4680
  spreadsheetTemplateSchema,
4681
+ spsItemIdResponseSchema,
4604
4682
  tradingPartnerAccessByCompanyIdSchema,
4605
4683
  tradingPartnerStageSchema,
4606
4684
  userAccountSchema,
package/dist/zod.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { o as attrProdTypeSchema, w as attributeDefinitionSchema, x as attributeMetaDataSchema, z as attributeValidValuesSchema, y as attributesByCompanySchema, p as envSchema, t as exportSchema, q as importErrorsSchema, r as importSchema, s as importsStatusSchema, u as itemCategoriesSearchSchema, D as itemDetailViewSchema, K as itemErrorDetailsResultSchema, C as itemSearchViewSchema, F as localeSchema, G as spreadsheetTemplateSchema, H as tradingPartnerAccessByCompanyIdSchema, J as userAccountSchema, v as vendorPartnerAttGroupsSchema } from './ItemErrorDetailsResult-c62caeae.js';
2
- export { Z as attrDatatypeNameEnumSchema, ac as attributeDetailSchema, _ as attributeGroupSchema, $ as attributeSummarySchema, a5 as bulbSchema, aa as categoryEnumSchema, ae as componentDetailsSchema, am as connectionSchema, X as downLoadItemsParamsSchema, U as exportDayOfWeekEnum, V as exportFrequencyEnum, W as exportTypeEnum, Q as generateImportTemplateParamsSchema, ai as groupedAttributeListSchema, ag as groupedAttributesSchema, a9 as groupedItemSchema, ah as hierarchyCategorySchema, af as hierarchyDetailsSchema, an as identityServiceDatetimePreferencesSchema, ao as identityServiceOrganizationMetadataSchema, ap as identityServiceOrganizationSchema, aq as identityServicePreferencesSchema, ar as identityServiceUserSchema, L as importDetailSchema, N as importErrorSchema, O as importStatusEnumSchema, Y as itemCategorySchema, a8 as itemDetailSchema, at as itemErrorDetailsSchema, a0 as itemHeaderSchema, a1 as itemMapSchema, a6 as itemPriceSchema, a2 as itemTableSchema, a7 as mediaItemSchema, aj as packComponentDetailsSchema, ak as packComponentItemInfoSchema, ab as packComponentSchema, a3 as phaseEnumSchema, as as registeredServiceSchema, ad as repeatableGroupSchema, al as spreadsheetTemplateCompanySchema, a4 as tradingPartnerStageSchema } from './ItemErrorDetails-e6e400aa.js';
1
+ export { d as attrProdTypeSchema, w as attributeDefinitionSchema, x as attributeMetaDataSchema, z as attributeValidValuesSchema, y as attributesByCompanySchema, N as companyBriefByOrgSchema, p as envSchema, t as exportSchema, q as importErrorsSchema, r as importSchema, s as importsStatusSchema, u as itemCategoriesSearchSchema, F as itemDetailViewSchema, M as itemErrorDetailsResultSchema, D as itemSearchViewSchema, G as localeSchema, H as spreadsheetTemplateSchema, J as tradingPartnerAccessByCompanyIdSchema, K as userAccountSchema, v as vendorPartnerAttGroupsSchema } from './CompanyBriefByOrg-f1bfabb3.js';
2
+ export { a4 as attrDatatypeNameEnumSchema, aj as attributeDetailSchema, a5 as attributeGroupSchema, a6 as attributeSummarySchema, ac as bulbSchema, ah as categoryEnumSchema, al as componentDetailsSchema, au as connectionSchema, $ as downLoadItemsParamsSchema, Y as exportDayOfWeekEnum, Z as exportFrequencyEnum, _ as exportTypeEnum, X as generateImportTemplateParamsSchema, ap as groupedAttributeListSchema, an as groupedAttributesSchema, ag as groupedItemSchema, ao as hierarchyCategorySchema, am as hierarchyDetailsSchema, a1 as hierarchySchema, av as identityServiceDatetimePreferencesSchema, aw as identityServiceOrganizationMetadataSchema, ax as identityServiceOrganizationSchema, ay as identityServicePreferencesSchema, az as identityServiceUserSchema, U as importDetailSchema, V as importErrorSchema, W as importStatusEnumSchema, a0 as itemCategorySchema, af as itemDetailSchema, aB as itemErrorDetailsSchema, a7 as itemHeaderSchema, a2 as itemHierarchyResponseSchema, a3 as itemHierarchySchema, a8 as itemMapSchema, ad as itemPriceSchema, a9 as itemTableSchema, ae as mediaItemSchema, aq as packComponentDetailsSchema, ar as packComponentItemInfoSchema, ai as packComponentSchema, aa as phaseEnumSchema, aA as registeredServiceSchema, ak as repeatableGroupSchema, at as spreadsheetTemplateCompanySchema, as as spsItemIdResponseSchema, ab as tradingPartnerStageSchema } from './zod-ec1cdb27.js';
3
3
  import 'ky-universal';
4
4
  import 'ky';
5
5
  import 'zod';
package/dist/zod.js CHANGED
@@ -10,6 +10,7 @@ import {
10
10
  attributesByCompanySchema,
11
11
  bulbSchema,
12
12
  categoryEnumSchema,
13
+ companyBriefByOrgSchema,
13
14
  componentDetailsSchema,
14
15
  connectionSchema,
15
16
  downLoadItemsParamsSchema,
@@ -24,6 +25,7 @@ import {
24
25
  groupedItemSchema,
25
26
  hierarchyCategorySchema,
26
27
  hierarchyDetailsSchema,
28
+ hierarchySchema,
27
29
  identityServiceDatetimePreferencesSchema,
28
30
  identityServiceOrganizationMetadataSchema,
29
31
  identityServiceOrganizationSchema,
@@ -42,6 +44,8 @@ import {
42
44
  itemErrorDetailsResultSchema,
43
45
  itemErrorDetailsSchema,
44
46
  itemHeaderSchema,
47
+ itemHierarchyResponseSchema,
48
+ itemHierarchySchema,
45
49
  itemMapSchema,
46
50
  itemPriceSchema,
47
51
  itemSearchViewSchema,
@@ -56,11 +60,12 @@ import {
56
60
  repeatableGroupSchema,
57
61
  spreadsheetTemplateCompanySchema,
58
62
  spreadsheetTemplateSchema,
63
+ spsItemIdResponseSchema,
59
64
  tradingPartnerAccessByCompanyIdSchema,
60
65
  tradingPartnerStageSchema,
61
66
  userAccountSchema,
62
67
  vendorPartnerAttGroupsSchema
63
- } from "./chunk-IHIEBLQV.js";
68
+ } from "./chunk-PUQDOFRT.js";
64
69
  export {
65
70
  attrDatatypeNameEnumSchema,
66
71
  attrProdTypeSchema,
@@ -73,6 +78,7 @@ export {
73
78
  attributesByCompanySchema,
74
79
  bulbSchema,
75
80
  categoryEnumSchema,
81
+ companyBriefByOrgSchema,
76
82
  componentDetailsSchema,
77
83
  connectionSchema,
78
84
  downLoadItemsParamsSchema,
@@ -87,6 +93,7 @@ export {
87
93
  groupedItemSchema,
88
94
  hierarchyCategorySchema,
89
95
  hierarchyDetailsSchema,
96
+ hierarchySchema,
90
97
  identityServiceDatetimePreferencesSchema,
91
98
  identityServiceOrganizationMetadataSchema,
92
99
  identityServiceOrganizationSchema,
@@ -105,6 +112,8 @@ export {
105
112
  itemErrorDetailsResultSchema,
106
113
  itemErrorDetailsSchema,
107
114
  itemHeaderSchema,
115
+ itemHierarchyResponseSchema,
116
+ itemHierarchySchema,
108
117
  itemMapSchema,
109
118
  itemPriceSchema,
110
119
  itemSearchViewSchema,
@@ -119,6 +128,7 @@ export {
119
128
  repeatableGroupSchema,
120
129
  spreadsheetTemplateCompanySchema,
121
130
  spreadsheetTemplateSchema,
131
+ spsItemIdResponseSchema,
122
132
  tradingPartnerAccessByCompanyIdSchema,
123
133
  tradingPartnerStageSchema,
124
134
  userAccountSchema,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Assortment Api is a collection of HTTP functions to use Assortment endpoints",
4
4
  "author": "Assortment",
5
5
  "repository": "https://github.com/SPSCommerce/assortment-main/tree/main/ui/packages/asst-api",
6
- "version": "0.0.1-beta.9",
6
+ "version": "0.1.0",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
@@ -1,134 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const importSchema: z.ZodObject<{
4
- count: z.ZodNumber;
5
- imports: z.ZodArray<z.ZodObject<{
6
- completedAt: z.ZodString;
7
- errorCount: z.ZodNumber;
8
- importId: z.ZodNumber;
9
- name: z.ZodString;
10
- startedAt: z.ZodString;
11
- status: z.ZodString;
12
- uploadedAt: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- completedAt: string;
15
- errorCount: number;
16
- importId: number;
17
- name: string;
18
- startedAt: string;
19
- status: string;
20
- uploadedAt: string;
21
- }, {
22
- completedAt: string;
23
- errorCount: number;
24
- importId: number;
25
- name: string;
26
- startedAt: string;
27
- status: string;
28
- uploadedAt: string;
29
- }>, "many">;
30
- }, "strip", z.ZodTypeAny, {
31
- count: number;
32
- imports: {
33
- completedAt: string;
34
- errorCount: number;
35
- importId: number;
36
- name: string;
37
- startedAt: string;
38
- status: string;
39
- uploadedAt: string;
40
- }[];
41
- }, {
42
- count: number;
43
- imports: {
44
- completedAt: string;
45
- errorCount: number;
46
- importId: number;
47
- name: string;
48
- startedAt: string;
49
- status: string;
50
- uploadedAt: string;
51
- }[];
52
- }>;
53
- type Import = z.infer<typeof importSchema>;
54
-
55
- declare const importErrorsSchema: z.ZodObject<{
56
- count: z.ZodNumber;
57
- errors: z.ZodArray<z.ZodObject<{
58
- attribute: z.ZodString;
59
- description: z.ZodString;
60
- importErrorId: z.ZodNumber;
61
- row: z.ZodNumber;
62
- }, "strip", z.ZodTypeAny, {
63
- attribute: string;
64
- description: string;
65
- importErrorId: number;
66
- row: number;
67
- }, {
68
- attribute: string;
69
- description: string;
70
- importErrorId: number;
71
- row: number;
72
- }>, "many">;
73
- hasNext: z.ZodBoolean;
74
- importId: z.ZodNumber;
75
- totalCount: z.ZodNumber;
76
- }, "strip", z.ZodTypeAny, {
77
- importId: number;
78
- count: number;
79
- errors: {
80
- attribute: string;
81
- description: string;
82
- importErrorId: number;
83
- row: number;
84
- }[];
85
- hasNext: boolean;
86
- totalCount: number;
87
- }, {
88
- importId: number;
89
- count: number;
90
- errors: {
91
- attribute: string;
92
- description: string;
93
- importErrorId: number;
94
- row: number;
95
- }[];
96
- hasNext: boolean;
97
- totalCount: number;
98
- }>;
99
- type ImportErrors = z.infer<typeof importErrorsSchema>;
100
-
101
- declare const importsStatusSchema: z.ZodObject<{
102
- completedAt: z.ZodOptional<z.ZodString>;
103
- docInEventId: z.ZodOptional<z.ZodString>;
104
- errorCount: z.ZodOptional<z.ZodNumber>;
105
- importId: z.ZodNumber;
106
- invalidItemCount: z.ZodOptional<z.ZodNumber>;
107
- name: z.ZodString;
108
- status: z.ZodEnum<["QUEUED_FOR_IMPORT", "IN_PROGRESS", "DOC_FAILED", "VALIDATION_FAILED", "COMPLETED"]>;
109
- totalItemCount: z.ZodOptional<z.ZodNumber>;
110
- validItemCount: z.ZodOptional<z.ZodNumber>;
111
- }, "strip", z.ZodTypeAny, {
112
- importId: number;
113
- name: string;
114
- status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
115
- completedAt?: string | undefined;
116
- docInEventId?: string | undefined;
117
- errorCount?: number | undefined;
118
- invalidItemCount?: number | undefined;
119
- totalItemCount?: number | undefined;
120
- validItemCount?: number | undefined;
121
- }, {
122
- importId: number;
123
- name: string;
124
- status: "QUEUED_FOR_IMPORT" | "IN_PROGRESS" | "DOC_FAILED" | "VALIDATION_FAILED" | "COMPLETED";
125
- completedAt?: string | undefined;
126
- docInEventId?: string | undefined;
127
- errorCount?: number | undefined;
128
- invalidItemCount?: number | undefined;
129
- totalItemCount?: number | undefined;
130
- validItemCount?: number | undefined;
131
- }>;
132
- type ImportsStatus = z.infer<typeof importsStatusSchema>;
133
-
134
- export { Import as I, ImportsStatus as a, ImportErrors as b, importSchema as c, importsStatusSchema as d, importErrorsSchema as i };
@@ -1,51 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const importDetailSchema: z.ZodObject<{
4
- completedAt: z.ZodString;
5
- errorCount: z.ZodNumber;
6
- importId: z.ZodNumber;
7
- name: z.ZodString;
8
- startedAt: z.ZodString;
9
- status: z.ZodString;
10
- uploadedAt: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- completedAt: string;
13
- errorCount: number;
14
- importId: number;
15
- name: string;
16
- startedAt: string;
17
- status: string;
18
- uploadedAt: string;
19
- }, {
20
- completedAt: string;
21
- errorCount: number;
22
- importId: number;
23
- name: string;
24
- startedAt: string;
25
- status: string;
26
- uploadedAt: string;
27
- }>;
28
- type ImportDetails = z.infer<typeof importDetailSchema>;
29
-
30
- declare const importErrorSchema: z.ZodObject<{
31
- attribute: z.ZodString;
32
- description: z.ZodString;
33
- importErrorId: z.ZodNumber;
34
- row: z.ZodNumber;
35
- }, "strip", z.ZodTypeAny, {
36
- attribute: string;
37
- description: string;
38
- importErrorId: number;
39
- row: number;
40
- }, {
41
- attribute: string;
42
- description: string;
43
- importErrorId: number;
44
- row: number;
45
- }>;
46
- type ImportError = z.infer<typeof importErrorSchema>;
47
-
48
- declare const importStatusEnumSchema: z.ZodEnum<["QUEUED_FOR_IMPORT", "IN_PROGRESS", "DOC_FAILED", "VALIDATION_FAILED", "COMPLETED"]>;
49
- type ImportStatusEnum = z.infer<typeof importStatusEnumSchema>;
50
-
51
- export { ImportDetails as I, ImportError as a, ImportStatusEnum as b, importErrorSchema as c, importStatusEnumSchema as d, importDetailSchema as i };