@spscommerce/asst-api 4.7.0 → 4.9.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.
@@ -0,0 +1,313 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const companySchema: z.ZodObject<{
4
+ active: z.ZodBoolean;
5
+ companyId: z.ZodNumber;
6
+ companyTypes: z.ZodArray<z.ZodEnum<["SUPPLIER", "RETAILER"]>, "many">;
7
+ createdAt: z.ZodNullable<z.ZodNumber>;
8
+ features: z.ZodArray<z.ZodObject<{
9
+ active: z.ZodBoolean;
10
+ createdBy: z.ZodNullable<z.ZodString>;
11
+ createdDate: z.ZodNullable<z.ZodNumber>;
12
+ display: z.ZodString;
13
+ modifiedBy: z.ZodNullable<z.ZodString>;
14
+ modifiedDate: z.ZodNullable<z.ZodNumber>;
15
+ type: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: string;
18
+ active: boolean;
19
+ createdBy: string | null;
20
+ createdDate: number | null;
21
+ display: string;
22
+ modifiedBy: string | null;
23
+ modifiedDate: number | null;
24
+ }, {
25
+ type: string;
26
+ active: boolean;
27
+ createdBy: string | null;
28
+ createdDate: number | null;
29
+ display: string;
30
+ modifiedBy: string | null;
31
+ modifiedDate: number | null;
32
+ }>, "many">;
33
+ identity: z.ZodObject<{
34
+ orgId: z.ZodNullable<z.ZodString>;
35
+ service: z.ZodNullable<z.ZodObject<{
36
+ name: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ name: string;
39
+ }, {
40
+ name: string;
41
+ }>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ orgId: string | null;
44
+ service: {
45
+ name: string;
46
+ } | null;
47
+ }, {
48
+ orgId: string | null;
49
+ service: {
50
+ name: string;
51
+ } | null;
52
+ }>;
53
+ modifiedAt: z.ZodNullable<z.ZodNumber>;
54
+ name: z.ZodString;
55
+ relationships: z.ZodArray<z.ZodObject<{
56
+ active: z.ZodBoolean;
57
+ application: z.ZodArray<z.ZodObject<{
58
+ application: z.ZodEnum<["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]>;
59
+ relationshipApplicationId: z.ZodNumber;
60
+ }, "strip", z.ZodTypeAny, {
61
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
62
+ relationshipApplicationId: number;
63
+ }, {
64
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
65
+ relationshipApplicationId: number;
66
+ }>, "many">;
67
+ catalog: z.ZodArray<z.ZodObject<{
68
+ active: z.ZodBoolean;
69
+ catalogId: z.ZodNumber;
70
+ itemPartnerId: z.ZodNumber;
71
+ }, "strip", z.ZodTypeAny, {
72
+ active: boolean;
73
+ catalogId: number;
74
+ itemPartnerId: number;
75
+ }, {
76
+ active: boolean;
77
+ catalogId: number;
78
+ itemPartnerId: number;
79
+ }>, "many">;
80
+ company: z.ZodObject<{
81
+ companyId: z.ZodNumber;
82
+ companyTypes: z.ZodArray<z.ZodEnum<["SUPPLIER", "RETAILER"]>, "many">;
83
+ dc4Id: z.ZodNullable<z.ZodNumber>;
84
+ name: z.ZodString;
85
+ orgId: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ companyId: number;
88
+ name: string;
89
+ orgId: string;
90
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
91
+ dc4Id: number | null;
92
+ }, {
93
+ companyId: number;
94
+ name: string;
95
+ orgId: string;
96
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
97
+ dc4Id: number | null;
98
+ }>;
99
+ createdAt: z.ZodNumber;
100
+ modifiedAt: z.ZodNullable<z.ZodNumber>;
101
+ relationshipId: z.ZodNumber;
102
+ }, "strip", z.ZodTypeAny, {
103
+ application: {
104
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
105
+ relationshipApplicationId: number;
106
+ }[];
107
+ active: boolean;
108
+ catalog: {
109
+ active: boolean;
110
+ catalogId: number;
111
+ itemPartnerId: number;
112
+ }[];
113
+ company: {
114
+ companyId: number;
115
+ name: string;
116
+ orgId: string;
117
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
118
+ dc4Id: number | null;
119
+ };
120
+ createdAt: number;
121
+ modifiedAt: number | null;
122
+ relationshipId: number;
123
+ }, {
124
+ application: {
125
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
126
+ relationshipApplicationId: number;
127
+ }[];
128
+ active: boolean;
129
+ catalog: {
130
+ active: boolean;
131
+ catalogId: number;
132
+ itemPartnerId: number;
133
+ }[];
134
+ company: {
135
+ companyId: number;
136
+ name: string;
137
+ orgId: string;
138
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
139
+ dc4Id: number | null;
140
+ };
141
+ createdAt: number;
142
+ modifiedAt: number | null;
143
+ relationshipId: number;
144
+ }>, "many">;
145
+ uniqueAttributes: z.ZodArray<z.ZodString, "many">;
146
+ }, "strip", z.ZodTypeAny, {
147
+ companyId: number;
148
+ name: string;
149
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
150
+ active: boolean;
151
+ createdAt: number | null;
152
+ modifiedAt: number | null;
153
+ features: {
154
+ type: string;
155
+ active: boolean;
156
+ createdBy: string | null;
157
+ createdDate: number | null;
158
+ display: string;
159
+ modifiedBy: string | null;
160
+ modifiedDate: number | null;
161
+ }[];
162
+ identity: {
163
+ orgId: string | null;
164
+ service: {
165
+ name: string;
166
+ } | null;
167
+ };
168
+ relationships: {
169
+ application: {
170
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
171
+ relationshipApplicationId: number;
172
+ }[];
173
+ active: boolean;
174
+ catalog: {
175
+ active: boolean;
176
+ catalogId: number;
177
+ itemPartnerId: number;
178
+ }[];
179
+ company: {
180
+ companyId: number;
181
+ name: string;
182
+ orgId: string;
183
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
184
+ dc4Id: number | null;
185
+ };
186
+ createdAt: number;
187
+ modifiedAt: number | null;
188
+ relationshipId: number;
189
+ }[];
190
+ uniqueAttributes: string[];
191
+ }, {
192
+ companyId: number;
193
+ name: string;
194
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
195
+ active: boolean;
196
+ createdAt: number | null;
197
+ modifiedAt: number | null;
198
+ features: {
199
+ type: string;
200
+ active: boolean;
201
+ createdBy: string | null;
202
+ createdDate: number | null;
203
+ display: string;
204
+ modifiedBy: string | null;
205
+ modifiedDate: number | null;
206
+ }[];
207
+ identity: {
208
+ orgId: string | null;
209
+ service: {
210
+ name: string;
211
+ } | null;
212
+ };
213
+ relationships: {
214
+ application: {
215
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
216
+ relationshipApplicationId: number;
217
+ }[];
218
+ active: boolean;
219
+ catalog: {
220
+ active: boolean;
221
+ catalogId: number;
222
+ itemPartnerId: number;
223
+ }[];
224
+ company: {
225
+ companyId: number;
226
+ name: string;
227
+ orgId: string;
228
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
229
+ dc4Id: number | null;
230
+ };
231
+ createdAt: number;
232
+ modifiedAt: number | null;
233
+ relationshipId: number;
234
+ }[];
235
+ uniqueAttributes: string[];
236
+ }>;
237
+ type Company = z.infer<typeof companySchema>;
238
+
239
+ declare const companySearchParamsSchema: z.ZodObject<{
240
+ name: z.ZodOptional<z.ZodString>;
241
+ companyIds: z.ZodOptional<z.ZodString>;
242
+ orgId: z.ZodOptional<z.ZodString>;
243
+ catalogName: z.ZodOptional<z.ZodString>;
244
+ catalogIds: z.ZodOptional<z.ZodString>;
245
+ type: z.ZodOptional<z.ZodEnum<["SUPPLIER", "RETAILER"]>>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ type?: "SUPPLIER" | "RETAILER" | undefined;
248
+ name?: string | undefined;
249
+ orgId?: string | undefined;
250
+ companyIds?: string | undefined;
251
+ catalogName?: string | undefined;
252
+ catalogIds?: string | undefined;
253
+ }, {
254
+ type?: "SUPPLIER" | "RETAILER" | undefined;
255
+ name?: string | undefined;
256
+ orgId?: string | undefined;
257
+ companyIds?: string | undefined;
258
+ catalogName?: string | undefined;
259
+ catalogIds?: string | undefined;
260
+ }>;
261
+ declare const companySearchSchema: z.ZodObject<{
262
+ id: z.ZodString;
263
+ organizationName: z.ZodString;
264
+ description: z.ZodString;
265
+ orgId: z.ZodOptional<z.ZodString>;
266
+ roles: z.ZodArray<z.ZodEnum<["SUPPLIER", "RETAILER"]>, "many">;
267
+ connections: z.ZodNumber;
268
+ uniqueCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
269
+ serviceName: z.ZodString;
270
+ catalogs: z.ZodArray<z.ZodObject<{
271
+ categoryId: z.ZodNumber;
272
+ categoryName: z.ZodString;
273
+ }, "strip", z.ZodTypeAny, {
274
+ categoryId: number;
275
+ categoryName: string;
276
+ }, {
277
+ categoryId: number;
278
+ categoryName: string;
279
+ }>, "many">;
280
+ application: z.ZodOptional<z.ZodArray<z.ZodEnum<["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]>, "many">>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ id: string;
283
+ organizationName: string;
284
+ description: string;
285
+ roles: ("SUPPLIER" | "RETAILER")[];
286
+ connections: number;
287
+ serviceName: string;
288
+ catalogs: {
289
+ categoryId: number;
290
+ categoryName: string;
291
+ }[];
292
+ orgId?: string | undefined;
293
+ application?: ("ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR")[] | undefined;
294
+ uniqueCriteria?: string[] | undefined;
295
+ }, {
296
+ id: string;
297
+ organizationName: string;
298
+ description: string;
299
+ roles: ("SUPPLIER" | "RETAILER")[];
300
+ connections: number;
301
+ serviceName: string;
302
+ catalogs: {
303
+ categoryId: number;
304
+ categoryName: string;
305
+ }[];
306
+ orgId?: string | undefined;
307
+ application?: ("ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR")[] | undefined;
308
+ uniqueCriteria?: string[] | undefined;
309
+ }>;
310
+ type CompanySearchParams = z.infer<typeof companySearchParamsSchema>;
311
+ type CompanySearch = z.infer<typeof companySearchSchema>;
312
+
313
+ export type { CompanySearch as C, Company as a, CompanySearchParams as b };
@@ -0,0 +1,313 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const companySchema: z.ZodObject<{
4
+ active: z.ZodBoolean;
5
+ companyId: z.ZodNumber;
6
+ companyTypes: z.ZodArray<z.ZodEnum<["SUPPLIER", "RETAILER"]>, "many">;
7
+ createdAt: z.ZodNullable<z.ZodNumber>;
8
+ features: z.ZodArray<z.ZodObject<{
9
+ active: z.ZodBoolean;
10
+ createdBy: z.ZodNullable<z.ZodString>;
11
+ createdDate: z.ZodNullable<z.ZodNumber>;
12
+ display: z.ZodString;
13
+ modifiedBy: z.ZodNullable<z.ZodString>;
14
+ modifiedDate: z.ZodNullable<z.ZodNumber>;
15
+ type: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: string;
18
+ active: boolean;
19
+ createdBy: string | null;
20
+ createdDate: number | null;
21
+ display: string;
22
+ modifiedBy: string | null;
23
+ modifiedDate: number | null;
24
+ }, {
25
+ type: string;
26
+ active: boolean;
27
+ createdBy: string | null;
28
+ createdDate: number | null;
29
+ display: string;
30
+ modifiedBy: string | null;
31
+ modifiedDate: number | null;
32
+ }>, "many">;
33
+ identity: z.ZodObject<{
34
+ orgId: z.ZodNullable<z.ZodString>;
35
+ service: z.ZodNullable<z.ZodObject<{
36
+ name: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ name: string;
39
+ }, {
40
+ name: string;
41
+ }>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ orgId: string | null;
44
+ service: {
45
+ name: string;
46
+ } | null;
47
+ }, {
48
+ orgId: string | null;
49
+ service: {
50
+ name: string;
51
+ } | null;
52
+ }>;
53
+ modifiedAt: z.ZodNullable<z.ZodNumber>;
54
+ name: z.ZodString;
55
+ relationships: z.ZodArray<z.ZodObject<{
56
+ active: z.ZodBoolean;
57
+ application: z.ZodArray<z.ZodObject<{
58
+ application: z.ZodEnum<["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]>;
59
+ relationshipApplicationId: z.ZodNumber;
60
+ }, "strip", z.ZodTypeAny, {
61
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
62
+ relationshipApplicationId: number;
63
+ }, {
64
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
65
+ relationshipApplicationId: number;
66
+ }>, "many">;
67
+ catalog: z.ZodArray<z.ZodObject<{
68
+ active: z.ZodBoolean;
69
+ catalogId: z.ZodNumber;
70
+ itemPartnerId: z.ZodNumber;
71
+ }, "strip", z.ZodTypeAny, {
72
+ active: boolean;
73
+ catalogId: number;
74
+ itemPartnerId: number;
75
+ }, {
76
+ active: boolean;
77
+ catalogId: number;
78
+ itemPartnerId: number;
79
+ }>, "many">;
80
+ company: z.ZodObject<{
81
+ companyId: z.ZodNumber;
82
+ companyTypes: z.ZodArray<z.ZodEnum<["SUPPLIER", "RETAILER"]>, "many">;
83
+ dc4Id: z.ZodNullable<z.ZodNumber>;
84
+ name: z.ZodString;
85
+ orgId: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ companyId: number;
88
+ name: string;
89
+ orgId: string;
90
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
91
+ dc4Id: number | null;
92
+ }, {
93
+ companyId: number;
94
+ name: string;
95
+ orgId: string;
96
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
97
+ dc4Id: number | null;
98
+ }>;
99
+ createdAt: z.ZodNumber;
100
+ modifiedAt: z.ZodNullable<z.ZodNumber>;
101
+ relationshipId: z.ZodNumber;
102
+ }, "strip", z.ZodTypeAny, {
103
+ application: {
104
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
105
+ relationshipApplicationId: number;
106
+ }[];
107
+ active: boolean;
108
+ catalog: {
109
+ active: boolean;
110
+ catalogId: number;
111
+ itemPartnerId: number;
112
+ }[];
113
+ company: {
114
+ companyId: number;
115
+ name: string;
116
+ orgId: string;
117
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
118
+ dc4Id: number | null;
119
+ };
120
+ createdAt: number;
121
+ modifiedAt: number | null;
122
+ relationshipId: number;
123
+ }, {
124
+ application: {
125
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
126
+ relationshipApplicationId: number;
127
+ }[];
128
+ active: boolean;
129
+ catalog: {
130
+ active: boolean;
131
+ catalogId: number;
132
+ itemPartnerId: number;
133
+ }[];
134
+ company: {
135
+ companyId: number;
136
+ name: string;
137
+ orgId: string;
138
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
139
+ dc4Id: number | null;
140
+ };
141
+ createdAt: number;
142
+ modifiedAt: number | null;
143
+ relationshipId: number;
144
+ }>, "many">;
145
+ uniqueAttributes: z.ZodArray<z.ZodString, "many">;
146
+ }, "strip", z.ZodTypeAny, {
147
+ companyId: number;
148
+ name: string;
149
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
150
+ active: boolean;
151
+ createdAt: number | null;
152
+ modifiedAt: number | null;
153
+ features: {
154
+ type: string;
155
+ active: boolean;
156
+ createdBy: string | null;
157
+ createdDate: number | null;
158
+ display: string;
159
+ modifiedBy: string | null;
160
+ modifiedDate: number | null;
161
+ }[];
162
+ identity: {
163
+ orgId: string | null;
164
+ service: {
165
+ name: string;
166
+ } | null;
167
+ };
168
+ relationships: {
169
+ application: {
170
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
171
+ relationshipApplicationId: number;
172
+ }[];
173
+ active: boolean;
174
+ catalog: {
175
+ active: boolean;
176
+ catalogId: number;
177
+ itemPartnerId: number;
178
+ }[];
179
+ company: {
180
+ companyId: number;
181
+ name: string;
182
+ orgId: string;
183
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
184
+ dc4Id: number | null;
185
+ };
186
+ createdAt: number;
187
+ modifiedAt: number | null;
188
+ relationshipId: number;
189
+ }[];
190
+ uniqueAttributes: string[];
191
+ }, {
192
+ companyId: number;
193
+ name: string;
194
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
195
+ active: boolean;
196
+ createdAt: number | null;
197
+ modifiedAt: number | null;
198
+ features: {
199
+ type: string;
200
+ active: boolean;
201
+ createdBy: string | null;
202
+ createdDate: number | null;
203
+ display: string;
204
+ modifiedBy: string | null;
205
+ modifiedDate: number | null;
206
+ }[];
207
+ identity: {
208
+ orgId: string | null;
209
+ service: {
210
+ name: string;
211
+ } | null;
212
+ };
213
+ relationships: {
214
+ application: {
215
+ application: "ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR";
216
+ relationshipApplicationId: number;
217
+ }[];
218
+ active: boolean;
219
+ catalog: {
220
+ active: boolean;
221
+ catalogId: number;
222
+ itemPartnerId: number;
223
+ }[];
224
+ company: {
225
+ companyId: number;
226
+ name: string;
227
+ orgId: string;
228
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
229
+ dc4Id: number | null;
230
+ };
231
+ createdAt: number;
232
+ modifiedAt: number | null;
233
+ relationshipId: number;
234
+ }[];
235
+ uniqueAttributes: string[];
236
+ }>;
237
+ type Company = z.infer<typeof companySchema>;
238
+
239
+ declare const companySearchParamsSchema: z.ZodObject<{
240
+ name: z.ZodOptional<z.ZodString>;
241
+ companyIds: z.ZodOptional<z.ZodString>;
242
+ orgId: z.ZodOptional<z.ZodString>;
243
+ catalogName: z.ZodOptional<z.ZodString>;
244
+ catalogIds: z.ZodOptional<z.ZodString>;
245
+ type: z.ZodOptional<z.ZodEnum<["SUPPLIER", "RETAILER"]>>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ type?: "SUPPLIER" | "RETAILER" | undefined;
248
+ name?: string | undefined;
249
+ orgId?: string | undefined;
250
+ companyIds?: string | undefined;
251
+ catalogName?: string | undefined;
252
+ catalogIds?: string | undefined;
253
+ }, {
254
+ type?: "SUPPLIER" | "RETAILER" | undefined;
255
+ name?: string | undefined;
256
+ orgId?: string | undefined;
257
+ companyIds?: string | undefined;
258
+ catalogName?: string | undefined;
259
+ catalogIds?: string | undefined;
260
+ }>;
261
+ declare const companySearchSchema: z.ZodObject<{
262
+ id: z.ZodString;
263
+ organizationName: z.ZodString;
264
+ description: z.ZodString;
265
+ orgId: z.ZodOptional<z.ZodString>;
266
+ roles: z.ZodArray<z.ZodEnum<["SUPPLIER", "RETAILER"]>, "many">;
267
+ connections: z.ZodNumber;
268
+ uniqueCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
269
+ serviceName: z.ZodString;
270
+ catalogs: z.ZodArray<z.ZodObject<{
271
+ categoryId: z.ZodNumber;
272
+ categoryName: z.ZodString;
273
+ }, "strip", z.ZodTypeAny, {
274
+ categoryId: number;
275
+ categoryName: string;
276
+ }, {
277
+ categoryId: number;
278
+ categoryName: string;
279
+ }>, "many">;
280
+ application: z.ZodOptional<z.ZodArray<z.ZodEnum<["ASSORTMENT", "ITEM-XREF", "TEST-ORDER-GENERATOR"]>, "many">>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ id: string;
283
+ organizationName: string;
284
+ description: string;
285
+ roles: ("SUPPLIER" | "RETAILER")[];
286
+ connections: number;
287
+ serviceName: string;
288
+ catalogs: {
289
+ categoryId: number;
290
+ categoryName: string;
291
+ }[];
292
+ orgId?: string | undefined;
293
+ application?: ("ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR")[] | undefined;
294
+ uniqueCriteria?: string[] | undefined;
295
+ }, {
296
+ id: string;
297
+ organizationName: string;
298
+ description: string;
299
+ roles: ("SUPPLIER" | "RETAILER")[];
300
+ connections: number;
301
+ serviceName: string;
302
+ catalogs: {
303
+ categoryId: number;
304
+ categoryName: string;
305
+ }[];
306
+ orgId?: string | undefined;
307
+ application?: ("ASSORTMENT" | "ITEM-XREF" | "TEST-ORDER-GENERATOR")[] | undefined;
308
+ uniqueCriteria?: string[] | undefined;
309
+ }>;
310
+ type CompanySearchParams = z.infer<typeof companySearchParamsSchema>;
311
+ type CompanySearch = z.infer<typeof companySearchSchema>;
312
+
313
+ export type { CompanySearch as C, Company as a, CompanySearchParams as b };
@@ -1,6 +1,30 @@
1
+ import { z } from 'zod';
1
2
  import * as ky from 'ky';
2
3
  import { Options } from 'ky';
3
- import { z } from 'zod';
4
+
5
+ declare const companyBriefByOrgSchema: z.ZodObject<{
6
+ companyId: z.ZodNumber;
7
+ name: z.ZodString;
8
+ orgId: z.ZodString;
9
+ companyTypes: z.ZodArray<z.ZodEnum<["SUPPLIER", "RETAILER"]>, "many">;
10
+ dc4Id: z.ZodNumber;
11
+ }, "strip", z.ZodTypeAny, {
12
+ companyId: number;
13
+ name: string;
14
+ orgId: string;
15
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
16
+ dc4Id: number;
17
+ }, {
18
+ companyId: number;
19
+ name: string;
20
+ orgId: string;
21
+ companyTypes: ("SUPPLIER" | "RETAILER")[];
22
+ dc4Id: number;
23
+ }>;
24
+ type CompanyBriefByOrg = z.infer<typeof companyBriefByOrgSchema>;
25
+
26
+ declare const companyTypeSchema: z.ZodEnum<["SUPPLIER", "RETAILER"]>;
27
+ type CompanyType = z.infer<typeof companyTypeSchema>;
4
28
 
5
29
  declare const baseUrlsSchema: z.ZodObject<{
6
30
  local: z.ZodLiteral<"https://localhost:8443/">;
@@ -29,7 +53,9 @@ declare class AsstClient {
29
53
  #private;
30
54
  constructor(options?: AsstClientOptions);
31
55
  updateConfig(options: AsstClientOptions): void;
56
+ updateCompanyType(companyType: CompanyType): void;
32
57
  getBaseUrl(): AsstUrl;
58
+ getCompanyType(): CompanyType;
33
59
  /**
34
60
  * Subscribe to config changes. The callback will be immediately invoked with the current config.
35
61
  * @param subscriptionCallback Function that will be called with the new config every time it is changed
@@ -44,27 +70,6 @@ declare class AsstClient {
44
70
  delete(url: Input, options?: AsstClientOptions): ky.ResponsePromise;
45
71
  }
46
72
 
47
- declare const companyBriefByOrgSchema: z.ZodObject<{
48
- companyId: z.ZodNumber;
49
- name: z.ZodString;
50
- orgId: z.ZodString;
51
- companyTypes: z.ZodArray<z.ZodEnum<["SUPPLIER", "RETAILER"]>, "many">;
52
- dc4Id: z.ZodNumber;
53
- }, "strip", z.ZodTypeAny, {
54
- name: string;
55
- companyId: number;
56
- orgId: string;
57
- companyTypes: ("SUPPLIER" | "RETAILER")[];
58
- dc4Id: number;
59
- }, {
60
- name: string;
61
- companyId: number;
62
- orgId: string;
63
- companyTypes: ("SUPPLIER" | "RETAILER")[];
64
- dc4Id: number;
65
- }>;
66
- type CompanyBriefByOrg = z.infer<typeof companyBriefByOrgSchema>;
67
-
68
73
  type Hierarchy = {
69
74
  id: string;
70
75
  name?: string | null;
@@ -92,4 +97,4 @@ declare const spsItemIdResponseSchema: z.ZodObject<{
92
97
  }>;
93
98
  type SpsItemIdResponse = z.infer<typeof spsItemIdResponseSchema>;
94
99
 
95
- export { AsstClient as A, BASE_URLS as B, type CompanyBriefByOrg as C, type Env as E, type ItemHierarchyResponse as I, type SpsItemIdResponse as S, type AsstClientOptions as a, type AsstUrl as b, companyBriefByOrgSchema as c, envSchema as e, itemHierarchyResponseSchema as i, spsItemIdResponseSchema as s };
100
+ export { AsstClient as A, BASE_URLS as B, type CompanyBriefByOrg as C, type Env as E, type ItemHierarchyResponse as I, type SpsItemIdResponse as S, type CompanyType as a, type AsstClientOptions as b, type AsstUrl as c, companyBriefByOrgSchema as d, envSchema as e, itemHierarchyResponseSchema as i, spsItemIdResponseSchema as s };