@spscommerce/asst-api 0.0.1-beta.6 → 0.0.1-beta.8

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 (47) hide show
  1. package/dist/ItemErrorDetails-1614b511.d.ts +3137 -0
  2. package/dist/ItemErrorDetailsResult-c12c4eac.d.ts +3032 -0
  3. package/dist/{chunk-D3ML6E4G.js → chunk-3JRE7YYE.js} +805 -16
  4. package/dist/chunk-OVOZIZA2.js +326 -0
  5. package/dist/index.cjs +814 -28
  6. package/dist/index.d.ts +86 -46
  7. package/dist/index.js +18 -5
  8. package/dist/msw.cjs +926 -63
  9. package/dist/msw.d.ts +582 -75
  10. package/dist/msw.js +246 -54
  11. package/dist/zod.cjs +719 -17
  12. package/dist/zod.d.ts +3 -2
  13. package/dist/zod.js +103 -55
  14. package/package.json +3 -4
  15. package/dist/ImportsStatus-52d26b01.d.ts +0 -134
  16. package/dist/ImportsStatusEnum-22c03a0b.d.ts +0 -51
  17. package/dist/ItemCategoriesSearch-1bb945de.d.ts +0 -275
  18. package/dist/ItemCategoriesSearch-44b87663.d.ts +0 -318
  19. package/dist/ItemCategoriesSearch-e0870a34.d.ts +0 -318
  20. package/dist/ItemCategoriesSearch-e3298650.d.ts +0 -319
  21. package/dist/ItemCategoriesSearch-ec43591f.d.ts +0 -319
  22. package/dist/ItemCategory-14816deb.d.ts +0 -99
  23. package/dist/ItemCategory-768179bd.d.ts +0 -99
  24. package/dist/TradingPartnerAccessByCompanyId-29866586.d.ts +0 -97
  25. package/dist/TradingPartnerAccessByCompanyId-43f83fb6.d.ts +0 -130
  26. package/dist/TradingPartnerAccessByCompanyId-479e3e57.d.ts +0 -124
  27. package/dist/TradingPartnerAccessByCompanyId-53b868a8.d.ts +0 -125
  28. package/dist/TradingPartnerAccessByCompanyId-b227f0c5.d.ts +0 -125
  29. package/dist/TradingPartnerAccessByCompanyId-e7a1d443.d.ts +0 -129
  30. package/dist/asstClient-f6a1693a.d.ts +0 -29
  31. package/dist/chunk-3FMMM7IS.js +0 -80
  32. package/dist/chunk-6ZNFOWTV.js +0 -78
  33. package/dist/chunk-7HCJJATJ.js +0 -40
  34. package/dist/chunk-B7B2ACF4.js +0 -3794
  35. package/dist/chunk-F3KCLICG.js +0 -77
  36. package/dist/chunk-FS6LHGAR.js +0 -87
  37. package/dist/chunk-GDFX3WTX.js +0 -78
  38. package/dist/chunk-LGP22FRF.js +0 -0
  39. package/dist/chunk-LYMGZWSR.js +0 -80
  40. package/dist/chunk-N2OYWNHF.js +0 -80
  41. package/dist/chunk-OA6PO3QG.js +0 -78
  42. package/dist/chunk-OBXZRDPY.js +0 -77
  43. package/dist/chunk-OI47EFQH.js +0 -82
  44. package/dist/chunk-RNUSCCKB.js +0 -183
  45. package/dist/chunk-T3UCSW2B.js +0 -81
  46. package/dist/chunk-XMNYZGXF.js +0 -84
  47. package/dist/chunk-YCQUK6KV.js +0 -85
@@ -1,99 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const importDetailSchema: z.ZodObject<{
4
- completedAt: z.ZodNullable<z.ZodNumber>;
5
- errorCount: z.ZodNumber;
6
- importId: z.ZodNumber;
7
- name: z.ZodString;
8
- startedAt: z.ZodNullable<z.ZodString>;
9
- status: z.ZodString;
10
- uploadedAt: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- status: string;
13
- completedAt: number | null;
14
- errorCount: number;
15
- importId: number;
16
- name: string;
17
- startedAt: string | null;
18
- uploadedAt: string;
19
- }, {
20
- status: string;
21
- completedAt: number | null;
22
- errorCount: number;
23
- importId: number;
24
- name: string;
25
- startedAt: string | null;
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
- declare const exportDayOfWeekEnum: z.ZodEnum<["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]>;
52
- type ExportDayOfWeek = z.infer<typeof exportDayOfWeekEnum>;
53
-
54
- declare const exportFrequencyEnum: z.ZodEnum<["IMMEDIATE", "ONETIME", "DAILY", "WEEKLY", "MONTHLY"]>;
55
- type ExportFrequency = z.infer<typeof exportFrequencyEnum>;
56
-
57
- declare const exportTypeEnum: z.ZodEnum<["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]>;
58
- type ExportType = z.infer<typeof exportTypeEnum>;
59
-
60
- declare const itemCategorySchema: z.ZodObject<{
61
- categoryid: z.ZodNumber;
62
- companyId: z.ZodNumber;
63
- name: z.ZodString;
64
- isActive: z.ZodNumber;
65
- createdDate: z.ZodNullable<z.ZodNumber>;
66
- categorytimestamp: z.ZodNullable<z.ZodNumber>;
67
- typeId: z.ZodNumber;
68
- type: z.ZodString;
69
- categorykey: z.ZodOptional<z.ZodString>;
70
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
- categoryCatalogName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
- }, "strip", z.ZodTypeAny, {
73
- type: string;
74
- name: string;
75
- isActive: number;
76
- createdDate: number | null;
77
- companyId: number;
78
- categoryid: number;
79
- categorytimestamp: number | null;
80
- typeId: number;
81
- categorykey?: string | undefined;
82
- description?: string | null | undefined;
83
- categoryCatalogName?: string | null | undefined;
84
- }, {
85
- type: string;
86
- name: string;
87
- isActive: number;
88
- createdDate: number | null;
89
- companyId: number;
90
- categoryid: number;
91
- categorytimestamp: number | null;
92
- typeId: number;
93
- categorykey?: string | undefined;
94
- description?: string | null | undefined;
95
- categoryCatalogName?: string | null | undefined;
96
- }>;
97
- type ItemCategory = z.infer<typeof itemCategorySchema>;
98
-
99
- export { ExportDayOfWeek as E, ImportDetails as I, ImportError as a, ImportStatusEnum as b, ExportFrequency as c, ExportType as d, ItemCategory as e, importErrorSchema as f, importStatusEnumSchema as g, exportDayOfWeekEnum as h, importDetailSchema as i, exportFrequencyEnum as j, exportTypeEnum as k, itemCategorySchema as l };
@@ -1,99 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const importDetailSchema: z.ZodObject<{
4
- completedAt: z.ZodNullable<z.ZodNumber>;
5
- errorCount: z.ZodNumber;
6
- importId: z.ZodNumber;
7
- name: z.ZodString;
8
- startedAt: z.ZodNullable<z.ZodString>;
9
- status: z.ZodString;
10
- uploadedAt: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- completedAt: number | null;
13
- status: string;
14
- errorCount: number;
15
- importId: number;
16
- name: string;
17
- startedAt: string | null;
18
- uploadedAt: string;
19
- }, {
20
- completedAt: number | null;
21
- status: string;
22
- errorCount: number;
23
- importId: number;
24
- name: string;
25
- startedAt: string | null;
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
- declare const exportDayOfWeekEnum: z.ZodEnum<["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]>;
52
- type ExportDayOfWeek = z.infer<typeof exportDayOfWeekEnum>;
53
-
54
- declare const exportFrequencyEnum: z.ZodEnum<["IMMEDIATE", "ONETIME", "DAILY", "WEEKLY", "MONTHLY"]>;
55
- type ExportFrequency = z.infer<typeof exportFrequencyEnum>;
56
-
57
- declare const exportTypeEnum: z.ZodEnum<["ALL", "UPDATES", "DELTAS_UPDATE", "NO_BUYER_PART_NUMBER"]>;
58
- type ExportType = z.infer<typeof exportTypeEnum>;
59
-
60
- declare const itemCategorySchema: z.ZodObject<{
61
- categoryid: z.ZodNumber;
62
- companyId: z.ZodNumber;
63
- name: z.ZodString;
64
- isActive: z.ZodNumber;
65
- createdDate: z.ZodNullable<z.ZodNumber>;
66
- categorytimestamp: z.ZodNullable<z.ZodNumber>;
67
- typeId: z.ZodNumber;
68
- type: z.ZodString;
69
- categorykey: z.ZodOptional<z.ZodString>;
70
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
- categoryCatalogName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
- }, "strip", z.ZodTypeAny, {
73
- type: string;
74
- name: string;
75
- isActive: number;
76
- createdDate: number | null;
77
- companyId: number;
78
- categoryid: number;
79
- categorytimestamp: number | null;
80
- typeId: number;
81
- categorykey?: string | undefined;
82
- description?: string | null | undefined;
83
- categoryCatalogName?: string | null | undefined;
84
- }, {
85
- type: string;
86
- name: string;
87
- isActive: number;
88
- createdDate: number | null;
89
- companyId: number;
90
- categoryid: number;
91
- categorytimestamp: number | null;
92
- typeId: number;
93
- categorykey?: string | undefined;
94
- description?: string | null | undefined;
95
- categoryCatalogName?: string | null | undefined;
96
- }>;
97
- type ItemCategory = z.infer<typeof itemCategorySchema>;
98
-
99
- export { ExportDayOfWeek as E, ImportDetails as I, ImportError as a, ImportStatusEnum as b, ExportFrequency as c, ExportType as d, ItemCategory as e, importErrorSchema as f, importStatusEnumSchema as g, exportDayOfWeekEnum as h, importDetailSchema as i, exportFrequencyEnum as j, exportTypeEnum as k, itemCategorySchema as l };
@@ -1,97 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- declare const vendorPartnerAttGroupsSchema: z.ZodObject<{
4
- partnerCompanyId: z.ZodNumber;
5
- partnerCompanyName: z.ZodString;
6
- partnerAttributeGroups: z.ZodArray<z.ZodNumber, "many">;
7
- }, "strip", z.ZodTypeAny, {
8
- partnerCompanyId: number;
9
- partnerCompanyName: string;
10
- partnerAttributeGroups: number[];
11
- }, {
12
- partnerCompanyId: number;
13
- partnerCompanyName: string;
14
- partnerAttributeGroups: number[];
15
- }>;
16
- type VendorPartnerAttGroups = z.infer<typeof vendorPartnerAttGroupsSchema>;
17
-
18
- declare const attrProdTypeSchema: z.ZodObject<{
19
- attrProdTypeId: z.ZodNumber;
20
- productType: z.ZodString;
21
- description: z.ZodString;
22
- createdDate: z.ZodNumber;
23
- createdBy: z.ZodString;
24
- modifiedDate: z.ZodOptional<z.ZodNumber>;
25
- modifiedBy: z.ZodOptional<z.ZodString>;
26
- retailerId: z.ZodOptional<z.ZodNumber>;
27
- }, "strip", z.ZodTypeAny, {
28
- description: string;
29
- attrProdTypeId: number;
30
- productType: string;
31
- createdDate: number;
32
- createdBy: string;
33
- modifiedDate?: number | undefined;
34
- modifiedBy?: string | undefined;
35
- retailerId?: number | undefined;
36
- }, {
37
- description: string;
38
- attrProdTypeId: number;
39
- productType: string;
40
- createdDate: number;
41
- createdBy: string;
42
- modifiedDate?: number | undefined;
43
- modifiedBy?: string | undefined;
44
- retailerId?: number | undefined;
45
- }>;
46
- type AttrProdType = z.infer<typeof attrProdTypeSchema>;
47
-
48
- declare const tradingPartnerAccessByCompanyIdSchema: z.ZodObject<{
49
- companyId: z.ZodNumber;
50
- companyType: z.ZodString;
51
- identityOrgId: z.ZodString;
52
- companyName: z.ZodString;
53
- count: z.ZodNumber;
54
- connections: z.ZodArray<z.ZodObject<{
55
- catalog_id: z.ZodNumber;
56
- catalog_name: z.ZodString;
57
- partner_company_name: z.ZodString;
58
- partner_company_id: z.ZodNumber;
59
- }, "strip", z.ZodTypeAny, {
60
- catalog_id: number;
61
- catalog_name: string;
62
- partner_company_name: string;
63
- partner_company_id: number;
64
- }, {
65
- catalog_id: number;
66
- catalog_name: string;
67
- partner_company_name: string;
68
- partner_company_id: number;
69
- }>, "many">;
70
- }, "strip", z.ZodTypeAny, {
71
- count: number;
72
- companyId: number;
73
- companyType: string;
74
- identityOrgId: string;
75
- companyName: string;
76
- connections: {
77
- catalog_id: number;
78
- catalog_name: string;
79
- partner_company_name: string;
80
- partner_company_id: number;
81
- }[];
82
- }, {
83
- count: number;
84
- companyId: number;
85
- companyType: string;
86
- identityOrgId: string;
87
- companyName: string;
88
- connections: {
89
- catalog_id: number;
90
- catalog_name: string;
91
- partner_company_name: string;
92
- partner_company_id: number;
93
- }[];
94
- }>;
95
- type TradingPartnerAccessByCompanyId = z.infer<typeof tradingPartnerAccessByCompanyIdSchema>;
96
-
97
- export { AttrProdType as A, TradingPartnerAccessByCompanyId as T, VendorPartnerAttGroups as V, attrProdTypeSchema as a };
@@ -1,130 +0,0 @@
1
- import * as ky_universal from 'ky-universal';
2
- import { Options } from 'ky';
3
- import { z } from 'zod';
4
-
5
- declare const BASE_URLS: {
6
- readonly local: "https://localhost:8443";
7
- readonly test: "https://integration.api.spscommerce.com/assortment/gateway";
8
- readonly prod: "https://api.spscommerce.com/assortment/gateway";
9
- };
10
- type Env = keyof typeof BASE_URLS;
11
- type AsstUrl = typeof BASE_URLS[Env];
12
- interface AsstClientOptions extends Options {
13
- prefixUrl?: AsstUrl;
14
- }
15
- type Input = string | URL | Request;
16
- declare class AsstClient {
17
- #private;
18
- constructor(options: AsstClientOptions);
19
- updateConfig(options: AsstClientOptions): void;
20
- getBaseUrl(): AsstUrl;
21
- /**
22
- * Subscribe to config changes. This function also returns the current config.
23
- * @param subscriptionCallback Function that will be called with the new config every time it is changed
24
- * @returns The current config
25
- */
26
- subscribeToConfigChange(subscriptionCallback: (newConfig: AsstClientOptions) => void): AsstClientOptions;
27
- unsubscribeToConfigChange(): void;
28
- get(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
29
- post(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
30
- put(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
31
- patch(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
32
- head(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
33
- delete(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
34
- }
35
-
36
- declare const vendorPartnerAttGroupsSchema: z.ZodObject<{
37
- partnerCompanyId: z.ZodNumber;
38
- partnerCompanyName: z.ZodString;
39
- partnerAttributeGroups: z.ZodArray<z.ZodNumber, "many">;
40
- }, "strip", z.ZodTypeAny, {
41
- partnerCompanyId: number;
42
- partnerCompanyName: string;
43
- partnerAttributeGroups: number[];
44
- }, {
45
- partnerCompanyId: number;
46
- partnerCompanyName: string;
47
- partnerAttributeGroups: number[];
48
- }>;
49
- type VendorPartnerAttGroups = z.infer<typeof vendorPartnerAttGroupsSchema>;
50
-
51
- declare const attrProdTypeSchema: z.ZodObject<{
52
- attrProdTypeId: z.ZodNumber;
53
- productType: z.ZodString;
54
- description: z.ZodString;
55
- createdDate: z.ZodNumber;
56
- createdBy: z.ZodString;
57
- modifiedDate: z.ZodOptional<z.ZodNumber>;
58
- modifiedBy: z.ZodOptional<z.ZodString>;
59
- retailerId: z.ZodOptional<z.ZodNumber>;
60
- }, "strip", z.ZodTypeAny, {
61
- description: string;
62
- attrProdTypeId: number;
63
- productType: string;
64
- createdDate: number;
65
- createdBy: string;
66
- modifiedDate?: number | undefined;
67
- modifiedBy?: string | undefined;
68
- retailerId?: number | undefined;
69
- }, {
70
- description: string;
71
- attrProdTypeId: number;
72
- productType: string;
73
- createdDate: number;
74
- createdBy: string;
75
- modifiedDate?: number | undefined;
76
- modifiedBy?: string | undefined;
77
- retailerId?: number | undefined;
78
- }>;
79
- type AttrProdType = z.infer<typeof attrProdTypeSchema>;
80
-
81
- declare const tradingPartnerAccessByCompanyIdSchema: z.ZodObject<{
82
- companyId: z.ZodNumber;
83
- companyType: z.ZodString;
84
- identityOrgId: z.ZodString;
85
- companyName: z.ZodString;
86
- count: z.ZodNumber;
87
- connections: z.ZodArray<z.ZodObject<{
88
- catalog_id: z.ZodNumber;
89
- catalog_name: z.ZodString;
90
- partner_company_name: z.ZodString;
91
- partner_company_id: z.ZodNumber;
92
- }, "strip", z.ZodTypeAny, {
93
- catalog_id: number;
94
- catalog_name: string;
95
- partner_company_name: string;
96
- partner_company_id: number;
97
- }, {
98
- catalog_id: number;
99
- catalog_name: string;
100
- partner_company_name: string;
101
- partner_company_id: number;
102
- }>, "many">;
103
- }, "strip", z.ZodTypeAny, {
104
- count: number;
105
- companyId: number;
106
- companyType: string;
107
- identityOrgId: string;
108
- companyName: string;
109
- connections: {
110
- catalog_id: number;
111
- catalog_name: string;
112
- partner_company_name: string;
113
- partner_company_id: number;
114
- }[];
115
- }, {
116
- count: number;
117
- companyId: number;
118
- companyType: string;
119
- identityOrgId: string;
120
- companyName: string;
121
- connections: {
122
- catalog_id: number;
123
- catalog_name: string;
124
- partner_company_name: string;
125
- partner_company_id: number;
126
- }[];
127
- }>;
128
- type TradingPartnerAccessByCompanyId = z.infer<typeof tradingPartnerAccessByCompanyIdSchema>;
129
-
130
- export { AsstClient as A, BASE_URLS as B, Env as E, TradingPartnerAccessByCompanyId as T, VendorPartnerAttGroups as V, AttrProdType as a, AsstClientOptions as b, AsstUrl as c, attrProdTypeSchema as d };
@@ -1,124 +0,0 @@
1
- import * as ky_universal from 'ky-universal';
2
- import { Options } from 'ky';
3
- import { z } from 'zod';
4
-
5
- declare const BASE_URLS: {
6
- readonly local: "https://localhost:8443";
7
- readonly test: "https://integration.api.spscommerce.com/assortment/gateway";
8
- readonly prod: "https://api.spscommerce.com/assortment/gateway";
9
- };
10
- type Env = keyof typeof BASE_URLS;
11
- type AsstUrl = typeof BASE_URLS[Env];
12
- interface AsstClientOptions extends Options {
13
- prefixUrl?: AsstUrl;
14
- }
15
- type Input = string | URL | Request;
16
- declare class AsstClient {
17
- #private;
18
- constructor(options: AsstClientOptions);
19
- updateConfig(options: AsstClientOptions): void;
20
- getBaseUrl(): AsstUrl;
21
- subscribeToConfigChange(subscriptionCallback: (newConfig: AsstClientOptions) => void): void;
22
- get(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
23
- post(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
24
- put(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
25
- patch(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
26
- head(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
27
- delete(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
28
- }
29
-
30
- declare const vendorPartnerAttGroupsSchema: z.ZodObject<{
31
- partnerCompanyId: z.ZodNumber;
32
- partnerCompanyName: z.ZodString;
33
- partnerAttributeGroups: z.ZodArray<z.ZodNumber, "many">;
34
- }, "strip", z.ZodTypeAny, {
35
- partnerCompanyId: number;
36
- partnerCompanyName: string;
37
- partnerAttributeGroups: number[];
38
- }, {
39
- partnerCompanyId: number;
40
- partnerCompanyName: string;
41
- partnerAttributeGroups: number[];
42
- }>;
43
- type VendorPartnerAttGroups = z.infer<typeof vendorPartnerAttGroupsSchema>;
44
-
45
- declare const attrProdTypeSchema: z.ZodObject<{
46
- attrProdTypeId: z.ZodNumber;
47
- productType: z.ZodString;
48
- description: z.ZodString;
49
- createdDate: z.ZodNumber;
50
- createdBy: z.ZodString;
51
- modifiedDate: z.ZodOptional<z.ZodNumber>;
52
- modifiedBy: z.ZodOptional<z.ZodString>;
53
- retailerId: z.ZodOptional<z.ZodNumber>;
54
- }, "strip", z.ZodTypeAny, {
55
- description: string;
56
- attrProdTypeId: number;
57
- productType: string;
58
- createdDate: number;
59
- createdBy: string;
60
- modifiedDate?: number | undefined;
61
- modifiedBy?: string | undefined;
62
- retailerId?: number | undefined;
63
- }, {
64
- description: string;
65
- attrProdTypeId: number;
66
- productType: string;
67
- createdDate: number;
68
- createdBy: string;
69
- modifiedDate?: number | undefined;
70
- modifiedBy?: string | undefined;
71
- retailerId?: number | undefined;
72
- }>;
73
- type AttrProdType = z.infer<typeof attrProdTypeSchema>;
74
-
75
- declare const tradingPartnerAccessByCompanyIdSchema: z.ZodObject<{
76
- companyId: z.ZodNumber;
77
- companyType: z.ZodString;
78
- identityOrgId: z.ZodString;
79
- companyName: z.ZodString;
80
- count: z.ZodNumber;
81
- connections: z.ZodArray<z.ZodObject<{
82
- catalog_id: z.ZodNumber;
83
- catalog_name: z.ZodString;
84
- partner_company_name: z.ZodString;
85
- partner_company_id: z.ZodNumber;
86
- }, "strip", z.ZodTypeAny, {
87
- catalog_id: number;
88
- catalog_name: string;
89
- partner_company_name: string;
90
- partner_company_id: number;
91
- }, {
92
- catalog_id: number;
93
- catalog_name: string;
94
- partner_company_name: string;
95
- partner_company_id: number;
96
- }>, "many">;
97
- }, "strip", z.ZodTypeAny, {
98
- count: number;
99
- companyId: number;
100
- companyType: string;
101
- identityOrgId: string;
102
- companyName: string;
103
- connections: {
104
- catalog_id: number;
105
- catalog_name: string;
106
- partner_company_name: string;
107
- partner_company_id: number;
108
- }[];
109
- }, {
110
- count: number;
111
- companyId: number;
112
- companyType: string;
113
- identityOrgId: string;
114
- companyName: string;
115
- connections: {
116
- catalog_id: number;
117
- catalog_name: string;
118
- partner_company_name: string;
119
- partner_company_id: number;
120
- }[];
121
- }>;
122
- type TradingPartnerAccessByCompanyId = z.infer<typeof tradingPartnerAccessByCompanyIdSchema>;
123
-
124
- export { AsstClient as A, BASE_URLS as B, Env as E, TradingPartnerAccessByCompanyId as T, VendorPartnerAttGroups as V, AttrProdType as a, AsstClientOptions as b, AsstUrl as c, attrProdTypeSchema as d };
@@ -1,125 +0,0 @@
1
- import * as ky_universal from 'ky-universal';
2
- import { Options } from 'ky';
3
- import { z } from 'zod';
4
-
5
- declare const BASE_URLS: {
6
- readonly local: "https://localhost:8443";
7
- readonly test: "https://integration.api.spscommerce.com/assortment/gateway";
8
- readonly prod: "https://api.spscommerce.com/assortment/gateway";
9
- };
10
- type Env = keyof typeof BASE_URLS;
11
- type AsstUrl = typeof BASE_URLS[Env];
12
- interface AsstClientOptions extends Options {
13
- prefixUrl?: AsstUrl;
14
- }
15
- type Input = string | URL | Request;
16
- declare class AsstClient {
17
- #private;
18
- constructor(options: AsstClientOptions);
19
- updateConfig(options: AsstClientOptions): void;
20
- getBaseUrl(): AsstUrl;
21
- subscribeToConfigChange(subscriptionCallback: (newConfig: AsstClientOptions) => void): void;
22
- unsubscribeToConfigChange(): void;
23
- get(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
24
- post(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
25
- put(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
26
- patch(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
27
- head(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
28
- delete(url: Input, options?: AsstClientOptions): ky_universal.ResponsePromise;
29
- }
30
-
31
- declare const vendorPartnerAttGroupsSchema: z.ZodObject<{
32
- partnerCompanyId: z.ZodNumber;
33
- partnerCompanyName: z.ZodString;
34
- partnerAttributeGroups: z.ZodArray<z.ZodNumber, "many">;
35
- }, "strip", z.ZodTypeAny, {
36
- partnerCompanyId: number;
37
- partnerCompanyName: string;
38
- partnerAttributeGroups: number[];
39
- }, {
40
- partnerCompanyId: number;
41
- partnerCompanyName: string;
42
- partnerAttributeGroups: number[];
43
- }>;
44
- type VendorPartnerAttGroups = z.infer<typeof vendorPartnerAttGroupsSchema>;
45
-
46
- declare const attrProdTypeSchema: z.ZodObject<{
47
- attrProdTypeId: z.ZodNumber;
48
- productType: z.ZodString;
49
- description: z.ZodString;
50
- createdDate: z.ZodNumber;
51
- createdBy: z.ZodString;
52
- modifiedDate: z.ZodOptional<z.ZodNumber>;
53
- modifiedBy: z.ZodOptional<z.ZodString>;
54
- retailerId: z.ZodOptional<z.ZodNumber>;
55
- }, "strip", z.ZodTypeAny, {
56
- description: string;
57
- attrProdTypeId: number;
58
- productType: string;
59
- createdDate: number;
60
- createdBy: string;
61
- modifiedDate?: number | undefined;
62
- modifiedBy?: string | undefined;
63
- retailerId?: number | undefined;
64
- }, {
65
- description: string;
66
- attrProdTypeId: number;
67
- productType: string;
68
- createdDate: number;
69
- createdBy: string;
70
- modifiedDate?: number | undefined;
71
- modifiedBy?: string | undefined;
72
- retailerId?: number | undefined;
73
- }>;
74
- type AttrProdType = z.infer<typeof attrProdTypeSchema>;
75
-
76
- declare const tradingPartnerAccessByCompanyIdSchema: z.ZodObject<{
77
- companyId: z.ZodNumber;
78
- companyType: z.ZodString;
79
- identityOrgId: z.ZodString;
80
- companyName: z.ZodString;
81
- count: z.ZodNumber;
82
- connections: z.ZodArray<z.ZodObject<{
83
- catalog_id: z.ZodNumber;
84
- catalog_name: z.ZodString;
85
- partner_company_name: z.ZodString;
86
- partner_company_id: z.ZodNumber;
87
- }, "strip", z.ZodTypeAny, {
88
- catalog_id: number;
89
- catalog_name: string;
90
- partner_company_name: string;
91
- partner_company_id: number;
92
- }, {
93
- catalog_id: number;
94
- catalog_name: string;
95
- partner_company_name: string;
96
- partner_company_id: number;
97
- }>, "many">;
98
- }, "strip", z.ZodTypeAny, {
99
- count: number;
100
- companyId: number;
101
- companyType: string;
102
- identityOrgId: string;
103
- companyName: string;
104
- connections: {
105
- catalog_id: number;
106
- catalog_name: string;
107
- partner_company_name: string;
108
- partner_company_id: number;
109
- }[];
110
- }, {
111
- count: number;
112
- companyId: number;
113
- companyType: string;
114
- identityOrgId: string;
115
- companyName: string;
116
- connections: {
117
- catalog_id: number;
118
- catalog_name: string;
119
- partner_company_name: string;
120
- partner_company_id: number;
121
- }[];
122
- }>;
123
- type TradingPartnerAccessByCompanyId = z.infer<typeof tradingPartnerAccessByCompanyIdSchema>;
124
-
125
- export { AsstClient as A, BASE_URLS as B, Env as E, TradingPartnerAccessByCompanyId as T, VendorPartnerAttGroups as V, AttrProdType as a, AsstClientOptions as b, AsstUrl as c, attrProdTypeSchema as d };