@deliverart/sdk-js-customer 1.1.6 → 1.2.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 (5) hide show
  1. package/dist/index.cjs +10834 -3732
  2. package/dist/index.d.cts +520 -3639
  3. package/dist/index.d.ts +520 -3639
  4. package/dist/index.js +10834 -3732
  5. package/package.json +5 -5
package/dist/index.d.cts CHANGED
@@ -8,149 +8,47 @@ declare const customerSchema: z.ZodObject<{
8
8
  id: z.ZodString;
9
9
  firstName: z.ZodNullable<z.ZodString>;
10
10
  lastName: z.ZodNullable<z.ZodString>;
11
- email: z.ZodNullable<z.ZodString>;
11
+ email: z.ZodNullable<z.ZodEmail>;
12
12
  phoneNumber: z.ZodNullable<z.ZodString>;
13
13
  hasBusinessProfiles: z.ZodBoolean;
14
14
  hasAddresses: z.ZodBoolean;
15
15
  ordersPlaced: z.ZodNumber;
16
16
  totalSpent: z.ZodString;
17
- createdAt: z.ZodEffects<z.ZodString, string, string>;
18
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
19
- }, "strip", z.ZodTypeAny, {
20
- id: string;
21
- firstName: string | null;
22
- lastName: string | null;
23
- email: string | null;
24
- phoneNumber: string | null;
25
- hasBusinessProfiles: boolean;
26
- hasAddresses: boolean;
27
- ordersPlaced: number;
28
- totalSpent: string;
29
- createdAt: string;
30
- updatedAt: string;
31
- }, {
32
- id: string;
33
- firstName: string | null;
34
- lastName: string | null;
35
- email: string | null;
36
- phoneNumber: string | null;
37
- hasBusinessProfiles: boolean;
38
- hasAddresses: boolean;
39
- ordersPlaced: number;
40
- totalSpent: string;
41
- createdAt: string;
42
- updatedAt: string;
43
- }>;
17
+ createdAt: z.ZodString;
18
+ updatedAt: z.ZodString;
19
+ }, z.core.$strip>;
44
20
  type Customer = z.infer<typeof customerSchema>;
45
21
  declare const customerDetailsSchema: z.ZodObject<{
46
22
  id: z.ZodString;
47
23
  firstName: z.ZodNullable<z.ZodString>;
48
24
  lastName: z.ZodNullable<z.ZodString>;
49
- email: z.ZodNullable<z.ZodString>;
25
+ email: z.ZodNullable<z.ZodEmail>;
50
26
  phoneNumber: z.ZodNullable<z.ZodString>;
51
27
  hasBusinessProfiles: z.ZodBoolean;
52
28
  hasAddresses: z.ZodBoolean;
53
29
  ordersPlaced: z.ZodNumber;
54
30
  totalSpent: z.ZodString;
55
- createdAt: z.ZodEffects<z.ZodString, string, string>;
56
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
57
- } & {
58
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
59
- owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null>;
60
- addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">>, "many">;
61
- businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">>, "many">;
62
- }, "strip", z.ZodTypeAny, {
63
- id: string;
64
- firstName: string | null;
65
- lastName: string | null;
66
- email: string | null;
67
- phoneNumber: string | null;
68
- hasBusinessProfiles: boolean;
69
- hasAddresses: boolean;
70
- ordersPlaced: number;
71
- totalSpent: string;
72
- createdAt: string;
73
- updatedAt: string;
74
- pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
75
- owner: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
76
- addresses: _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">[];
77
- businessProfiles: _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">[];
78
- }, {
79
- id: string;
80
- firstName: string | null;
81
- lastName: string | null;
82
- email: string | null;
83
- phoneNumber: string | null;
84
- hasBusinessProfiles: boolean;
85
- hasAddresses: boolean;
86
- ordersPlaced: number;
87
- totalSpent: string;
88
- createdAt: string;
89
- updatedAt: string;
90
- pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
91
- owner: string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
92
- addresses: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">)[];
93
- businessProfiles: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">)[];
94
- }>;
31
+ createdAt: z.ZodString;
32
+ updatedAt: z.ZodString;
33
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
34
+ owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
35
+ addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
36
+ businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
37
+ }, z.core.$strip>;
95
38
  type CustomerDetails = z.infer<typeof customerDetailsSchema>;
96
- declare const writableCreateCustomerSchema: z.ZodObject<Pick<{
97
- id: z.ZodString;
39
+ declare const writableCreateCustomerSchema: z.ZodObject<{
98
40
  firstName: z.ZodNullable<z.ZodString>;
99
41
  lastName: z.ZodNullable<z.ZodString>;
100
- email: z.ZodNullable<z.ZodString>;
42
+ email: z.ZodNullable<z.ZodEmail>;
101
43
  phoneNumber: z.ZodNullable<z.ZodString>;
102
- hasBusinessProfiles: z.ZodBoolean;
103
- hasAddresses: z.ZodBoolean;
104
- ordersPlaced: z.ZodNumber;
105
- totalSpent: z.ZodString;
106
- createdAt: z.ZodEffects<z.ZodString, string, string>;
107
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
108
- } & {
109
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
110
- owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null>;
111
- addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">>, "many">;
112
- businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">>, "many">;
113
- }, "firstName" | "lastName" | "email" | "phoneNumber" | "pointOfSale">, "strip", z.ZodTypeAny, {
114
- firstName: string | null;
115
- lastName: string | null;
116
- email: string | null;
117
- phoneNumber: string | null;
118
- pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
119
- }, {
120
- firstName: string | null;
121
- lastName: string | null;
122
- email: string | null;
123
- phoneNumber: string | null;
124
- pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
125
- }>;
126
- declare const writableCustomerSchema: z.ZodObject<Omit<Pick<{
127
- id: z.ZodString;
44
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
45
+ }, z.core.$strip>;
46
+ declare const writableCustomerSchema: z.ZodObject<{
128
47
  firstName: z.ZodNullable<z.ZodString>;
129
48
  lastName: z.ZodNullable<z.ZodString>;
130
- email: z.ZodNullable<z.ZodString>;
49
+ email: z.ZodNullable<z.ZodEmail>;
131
50
  phoneNumber: z.ZodNullable<z.ZodString>;
132
- hasBusinessProfiles: z.ZodBoolean;
133
- hasAddresses: z.ZodBoolean;
134
- ordersPlaced: z.ZodNumber;
135
- totalSpent: z.ZodString;
136
- createdAt: z.ZodEffects<z.ZodString, string, string>;
137
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
138
- } & {
139
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
140
- owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null>;
141
- addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">>, "many">;
142
- businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">>, "many">;
143
- }, "firstName" | "lastName" | "email" | "phoneNumber" | "pointOfSale">, "pointOfSale">, "strip", z.ZodTypeAny, {
144
- firstName: string | null;
145
- lastName: string | null;
146
- email: string | null;
147
- phoneNumber: string | null;
148
- }, {
149
- firstName: string | null;
150
- lastName: string | null;
151
- email: string | null;
152
- phoneNumber: string | null;
153
- }>;
51
+ }, z.core.$strip>;
154
52
  declare const customerAddressSchema: z.ZodObject<{
155
53
  id: z.ZodString;
156
54
  address: z.ZodObject<{
@@ -160,66 +58,14 @@ declare const customerAddressSchema: z.ZodObject<{
160
58
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
59
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
60
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
- }, "strip", z.ZodTypeAny, {
164
- line1?: string | null | undefined;
165
- line2?: string | null | undefined;
166
- city?: string | null | undefined;
167
- region?: string | null | undefined;
168
- postalCode?: string | null | undefined;
169
- country?: string | null | undefined;
170
- }, {
171
- line1?: string | null | undefined;
172
- line2?: string | null | undefined;
173
- city?: string | null | undefined;
174
- region?: string | null | undefined;
175
- postalCode?: string | null | undefined;
176
- country?: string | null | undefined;
177
- }>;
61
+ }, z.core.$strip>;
178
62
  location: z.ZodObject<{
179
63
  latitude: z.ZodNumber;
180
64
  longitude: z.ZodNumber;
181
- }, "strip", z.ZodTypeAny, {
182
- latitude: number;
183
- longitude: number;
184
- }, {
185
- latitude: number;
186
- longitude: number;
187
- }>;
188
- createdAt: z.ZodEffects<z.ZodString, string, string>;
189
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
190
- }, "strip", z.ZodTypeAny, {
191
- id: string;
192
- createdAt: string;
193
- updatedAt: string;
194
- address: {
195
- line1?: string | null | undefined;
196
- line2?: string | null | undefined;
197
- city?: string | null | undefined;
198
- region?: string | null | undefined;
199
- postalCode?: string | null | undefined;
200
- country?: string | null | undefined;
201
- };
202
- location: {
203
- latitude: number;
204
- longitude: number;
205
- };
206
- }, {
207
- id: string;
208
- createdAt: string;
209
- updatedAt: string;
210
- address: {
211
- line1?: string | null | undefined;
212
- line2?: string | null | undefined;
213
- city?: string | null | undefined;
214
- region?: string | null | undefined;
215
- postalCode?: string | null | undefined;
216
- country?: string | null | undefined;
217
- };
218
- location: {
219
- latitude: number;
220
- longitude: number;
221
- };
222
- }>;
65
+ }, z.core.$strip>;
66
+ createdAt: z.ZodString;
67
+ updatedAt: z.ZodString;
68
+ }, z.core.$strip>;
223
69
  type CustomerAddress = z.infer<typeof customerAddressSchema>;
224
70
  declare const customerAddressDetailsSchema: z.ZodObject<{
225
71
  id: z.ZodString;
@@ -230,73 +76,17 @@ declare const customerAddressDetailsSchema: z.ZodObject<{
230
76
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
77
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
78
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
- }, "strip", z.ZodTypeAny, {
234
- line1?: string | null | undefined;
235
- line2?: string | null | undefined;
236
- city?: string | null | undefined;
237
- region?: string | null | undefined;
238
- postalCode?: string | null | undefined;
239
- country?: string | null | undefined;
240
- }, {
241
- line1?: string | null | undefined;
242
- line2?: string | null | undefined;
243
- city?: string | null | undefined;
244
- region?: string | null | undefined;
245
- postalCode?: string | null | undefined;
246
- country?: string | null | undefined;
247
- }>;
79
+ }, z.core.$strip>;
248
80
  location: z.ZodObject<{
249
81
  latitude: z.ZodNumber;
250
82
  longitude: z.ZodNumber;
251
- }, "strip", z.ZodTypeAny, {
252
- latitude: number;
253
- longitude: number;
254
- }, {
255
- latitude: number;
256
- longitude: number;
257
- }>;
258
- createdAt: z.ZodEffects<z.ZodString, string, string>;
259
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
260
- } & {
261
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
262
- }, "strip", z.ZodTypeAny, {
263
- id: string;
264
- createdAt: string;
265
- updatedAt: string;
266
- address: {
267
- line1?: string | null | undefined;
268
- line2?: string | null | undefined;
269
- city?: string | null | undefined;
270
- region?: string | null | undefined;
271
- postalCode?: string | null | undefined;
272
- country?: string | null | undefined;
273
- };
274
- location: {
275
- latitude: number;
276
- longitude: number;
277
- };
278
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
279
- }, {
280
- id: string;
281
- createdAt: string;
282
- updatedAt: string;
283
- address: {
284
- line1?: string | null | undefined;
285
- line2?: string | null | undefined;
286
- city?: string | null | undefined;
287
- region?: string | null | undefined;
288
- postalCode?: string | null | undefined;
289
- country?: string | null | undefined;
290
- };
291
- location: {
292
- latitude: number;
293
- longitude: number;
294
- };
295
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
296
- }>;
83
+ }, z.core.$strip>;
84
+ createdAt: z.ZodString;
85
+ updatedAt: z.ZodString;
86
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
87
+ }, z.core.$strip>;
297
88
  type CustomerAddressDetails = z.infer<typeof customerAddressDetailsSchema>;
298
- declare const writableCreateCustomerAddressSchema: z.ZodObject<Pick<{
299
- id: z.ZodString;
89
+ declare const writableCreateCustomerAddressSchema: z.ZodObject<{
300
90
  address: z.ZodObject<{
301
91
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
92
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -304,58 +94,10 @@ declare const writableCreateCustomerAddressSchema: z.ZodObject<Pick<{
304
94
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
95
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
96
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
- }, "strip", z.ZodTypeAny, {
308
- line1?: string | null | undefined;
309
- line2?: string | null | undefined;
310
- city?: string | null | undefined;
311
- region?: string | null | undefined;
312
- postalCode?: string | null | undefined;
313
- country?: string | null | undefined;
314
- }, {
315
- line1?: string | null | undefined;
316
- line2?: string | null | undefined;
317
- city?: string | null | undefined;
318
- region?: string | null | undefined;
319
- postalCode?: string | null | undefined;
320
- country?: string | null | undefined;
321
- }>;
322
- location: z.ZodObject<{
323
- latitude: z.ZodNumber;
324
- longitude: z.ZodNumber;
325
- }, "strip", z.ZodTypeAny, {
326
- latitude: number;
327
- longitude: number;
328
- }, {
329
- latitude: number;
330
- longitude: number;
331
- }>;
332
- createdAt: z.ZodEffects<z.ZodString, string, string>;
333
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
334
- } & {
335
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
336
- }, "address" | "customer">, "strip", z.ZodTypeAny, {
337
- address: {
338
- line1?: string | null | undefined;
339
- line2?: string | null | undefined;
340
- city?: string | null | undefined;
341
- region?: string | null | undefined;
342
- postalCode?: string | null | undefined;
343
- country?: string | null | undefined;
344
- };
345
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
346
- }, {
347
- address: {
348
- line1?: string | null | undefined;
349
- line2?: string | null | undefined;
350
- city?: string | null | undefined;
351
- region?: string | null | undefined;
352
- postalCode?: string | null | undefined;
353
- country?: string | null | undefined;
354
- };
355
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
356
- }>;
357
- declare const writableCustomerAddressSchema: z.ZodObject<Omit<Pick<{
358
- id: z.ZodString;
97
+ }, z.core.$strip>;
98
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
99
+ }, z.core.$strip>;
100
+ declare const writableCustomerAddressSchema: z.ZodObject<{
359
101
  address: z.ZodObject<{
360
102
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
361
103
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -363,54 +105,8 @@ declare const writableCustomerAddressSchema: z.ZodObject<Omit<Pick<{
363
105
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
106
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
365
107
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
366
- }, "strip", z.ZodTypeAny, {
367
- line1?: string | null | undefined;
368
- line2?: string | null | undefined;
369
- city?: string | null | undefined;
370
- region?: string | null | undefined;
371
- postalCode?: string | null | undefined;
372
- country?: string | null | undefined;
373
- }, {
374
- line1?: string | null | undefined;
375
- line2?: string | null | undefined;
376
- city?: string | null | undefined;
377
- region?: string | null | undefined;
378
- postalCode?: string | null | undefined;
379
- country?: string | null | undefined;
380
- }>;
381
- location: z.ZodObject<{
382
- latitude: z.ZodNumber;
383
- longitude: z.ZodNumber;
384
- }, "strip", z.ZodTypeAny, {
385
- latitude: number;
386
- longitude: number;
387
- }, {
388
- latitude: number;
389
- longitude: number;
390
- }>;
391
- createdAt: z.ZodEffects<z.ZodString, string, string>;
392
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
393
- } & {
394
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
395
- }, "address" | "customer">, "customer">, "strip", z.ZodTypeAny, {
396
- address: {
397
- line1?: string | null | undefined;
398
- line2?: string | null | undefined;
399
- city?: string | null | undefined;
400
- region?: string | null | undefined;
401
- postalCode?: string | null | undefined;
402
- country?: string | null | undefined;
403
- };
404
- }, {
405
- address: {
406
- line1?: string | null | undefined;
407
- line2?: string | null | undefined;
408
- city?: string | null | undefined;
409
- region?: string | null | undefined;
410
- postalCode?: string | null | undefined;
411
- country?: string | null | undefined;
412
- };
413
- }>;
108
+ }, z.core.$strip>;
109
+ }, z.core.$strip>;
414
110
  declare const customerBusinessProfileSchema: z.ZodObject<{
415
111
  id: z.ZodString;
416
112
  businessName: z.ZodString;
@@ -423,78 +119,14 @@ declare const customerBusinessProfileSchema: z.ZodObject<{
423
119
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
120
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
121
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
426
- }, "strip", z.ZodTypeAny, {
427
- line1?: string | null | undefined;
428
- line2?: string | null | undefined;
429
- city?: string | null | undefined;
430
- region?: string | null | undefined;
431
- postalCode?: string | null | undefined;
432
- country?: string | null | undefined;
433
- }, {
434
- line1?: string | null | undefined;
435
- line2?: string | null | undefined;
436
- city?: string | null | undefined;
437
- region?: string | null | undefined;
438
- postalCode?: string | null | undefined;
439
- country?: string | null | undefined;
440
- }>;
441
- billingData: z.ZodEffects<z.ZodObject<{
122
+ }, z.core.$strip>;
123
+ billingData: z.ZodObject<{
442
124
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
443
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
444
- }, "strip", z.ZodTypeAny, {
445
- sdi?: string | null | undefined;
446
- pec?: string | null | undefined;
447
- }, {
448
- sdi?: string | null | undefined;
449
- pec?: string | null | undefined;
450
- }>, {
451
- sdi?: string | null | undefined;
452
- pec?: string | null | undefined;
453
- }, {
454
- sdi?: string | null | undefined;
455
- pec?: string | null | undefined;
456
- }>;
457
- createdAt: z.ZodEffects<z.ZodString, string, string>;
458
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
459
- }, "strip", z.ZodTypeAny, {
460
- id: string;
461
- createdAt: string;
462
- updatedAt: string;
463
- businessName: string;
464
- vat: string;
465
- taxCode: string;
466
- billingAddress: {
467
- line1?: string | null | undefined;
468
- line2?: string | null | undefined;
469
- city?: string | null | undefined;
470
- region?: string | null | undefined;
471
- postalCode?: string | null | undefined;
472
- country?: string | null | undefined;
473
- };
474
- billingData: {
475
- sdi?: string | null | undefined;
476
- pec?: string | null | undefined;
477
- };
478
- }, {
479
- id: string;
480
- createdAt: string;
481
- updatedAt: string;
482
- businessName: string;
483
- vat: string;
484
- taxCode: string;
485
- billingAddress: {
486
- line1?: string | null | undefined;
487
- line2?: string | null | undefined;
488
- city?: string | null | undefined;
489
- region?: string | null | undefined;
490
- postalCode?: string | null | undefined;
491
- country?: string | null | undefined;
492
- };
493
- billingData: {
494
- sdi?: string | null | undefined;
495
- pec?: string | null | undefined;
496
- };
497
- }>;
125
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
126
+ }, z.core.$strip>;
127
+ createdAt: z.ZodString;
128
+ updatedAt: z.ZodString;
129
+ }, z.core.$strip>;
498
130
  type CustomerBusinessProfile = z.infer<typeof customerBusinessProfileSchema>;
499
131
  declare const customerBusinessProfileDetailsSchema: z.ZodObject<{
500
132
  id: z.ZodString;
@@ -508,88 +140,18 @@ declare const customerBusinessProfileDetailsSchema: z.ZodObject<{
508
140
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
141
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
510
142
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
511
- }, "strip", z.ZodTypeAny, {
512
- line1?: string | null | undefined;
513
- line2?: string | null | undefined;
514
- city?: string | null | undefined;
515
- region?: string | null | undefined;
516
- postalCode?: string | null | undefined;
517
- country?: string | null | undefined;
518
- }, {
519
- line1?: string | null | undefined;
520
- line2?: string | null | undefined;
521
- city?: string | null | undefined;
522
- region?: string | null | undefined;
523
- postalCode?: string | null | undefined;
524
- country?: string | null | undefined;
525
- }>;
526
- billingData: z.ZodEffects<z.ZodObject<{
143
+ }, z.core.$strip>;
144
+ billingData: z.ZodObject<{
527
145
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
528
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
529
- }, "strip", z.ZodTypeAny, {
530
- sdi?: string | null | undefined;
531
- pec?: string | null | undefined;
532
- }, {
533
- sdi?: string | null | undefined;
534
- pec?: string | null | undefined;
535
- }>, {
536
- sdi?: string | null | undefined;
537
- pec?: string | null | undefined;
538
- }, {
539
- sdi?: string | null | undefined;
540
- pec?: string | null | undefined;
541
- }>;
542
- createdAt: z.ZodEffects<z.ZodString, string, string>;
543
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
544
- } & {
545
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
546
- }, "strip", z.ZodTypeAny, {
547
- id: string;
548
- createdAt: string;
549
- updatedAt: string;
550
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
551
- businessName: string;
552
- vat: string;
553
- taxCode: string;
554
- billingAddress: {
555
- line1?: string | null | undefined;
556
- line2?: string | null | undefined;
557
- city?: string | null | undefined;
558
- region?: string | null | undefined;
559
- postalCode?: string | null | undefined;
560
- country?: string | null | undefined;
561
- };
562
- billingData: {
563
- sdi?: string | null | undefined;
564
- pec?: string | null | undefined;
565
- };
566
- }, {
567
- id: string;
568
- createdAt: string;
569
- updatedAt: string;
570
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
571
- businessName: string;
572
- vat: string;
573
- taxCode: string;
574
- billingAddress: {
575
- line1?: string | null | undefined;
576
- line2?: string | null | undefined;
577
- city?: string | null | undefined;
578
- region?: string | null | undefined;
579
- postalCode?: string | null | undefined;
580
- country?: string | null | undefined;
581
- };
582
- billingData: {
583
- sdi?: string | null | undefined;
584
- pec?: string | null | undefined;
585
- };
586
- }>;
146
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
147
+ }, z.core.$strip>;
148
+ createdAt: z.ZodString;
149
+ updatedAt: z.ZodString;
150
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
151
+ }, z.core.$strip>;
587
152
  type CustomerBusinessProfileDetails = z.infer<typeof customerBusinessProfileDetailsSchema>;
588
- declare const writableCreateCustomerBusinessProfileSchema: z.ZodObject<Pick<{
589
- id: z.ZodString;
590
- businessName: z.ZodString;
591
- vat: z.ZodString;
592
- taxCode: z.ZodString;
153
+ declare const writableCreateCustomerBusinessProfileSchema: z.ZodObject<{
154
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
593
155
  billingAddress: z.ZodObject<{
594
156
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
157
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -597,81 +159,16 @@ declare const writableCreateCustomerBusinessProfileSchema: z.ZodObject<Pick<{
597
159
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
160
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
599
161
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
600
- }, "strip", z.ZodTypeAny, {
601
- line1?: string | null | undefined;
602
- line2?: string | null | undefined;
603
- city?: string | null | undefined;
604
- region?: string | null | undefined;
605
- postalCode?: string | null | undefined;
606
- country?: string | null | undefined;
607
- }, {
608
- line1?: string | null | undefined;
609
- line2?: string | null | undefined;
610
- city?: string | null | undefined;
611
- region?: string | null | undefined;
612
- postalCode?: string | null | undefined;
613
- country?: string | null | undefined;
614
- }>;
615
- billingData: z.ZodEffects<z.ZodObject<{
162
+ }, z.core.$strip>;
163
+ billingData: z.ZodObject<{
616
164
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
617
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
618
- }, "strip", z.ZodTypeAny, {
619
- sdi?: string | null | undefined;
620
- pec?: string | null | undefined;
621
- }, {
622
- sdi?: string | null | undefined;
623
- pec?: string | null | undefined;
624
- }>, {
625
- sdi?: string | null | undefined;
626
- pec?: string | null | undefined;
627
- }, {
628
- sdi?: string | null | undefined;
629
- pec?: string | null | undefined;
630
- }>;
631
- createdAt: z.ZodEffects<z.ZodString, string, string>;
632
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
633
- } & {
634
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
635
- }, "customer" | "businessName" | "vat" | "taxCode" | "billingAddress" | "billingData">, "strip", z.ZodTypeAny, {
636
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
637
- businessName: string;
638
- vat: string;
639
- taxCode: string;
640
- billingAddress: {
641
- line1?: string | null | undefined;
642
- line2?: string | null | undefined;
643
- city?: string | null | undefined;
644
- region?: string | null | undefined;
645
- postalCode?: string | null | undefined;
646
- country?: string | null | undefined;
647
- };
648
- billingData: {
649
- sdi?: string | null | undefined;
650
- pec?: string | null | undefined;
651
- };
652
- }, {
653
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
654
- businessName: string;
655
- vat: string;
656
- taxCode: string;
657
- billingAddress: {
658
- line1?: string | null | undefined;
659
- line2?: string | null | undefined;
660
- city?: string | null | undefined;
661
- region?: string | null | undefined;
662
- postalCode?: string | null | undefined;
663
- country?: string | null | undefined;
664
- };
665
- billingData: {
666
- sdi?: string | null | undefined;
667
- pec?: string | null | undefined;
668
- };
669
- }>;
670
- declare const writableCustomerBusinessProfileSchema: z.ZodObject<Omit<Pick<{
671
- id: z.ZodString;
165
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
166
+ }, z.core.$strip>;
672
167
  businessName: z.ZodString;
673
168
  vat: z.ZodString;
674
169
  taxCode: z.ZodString;
170
+ }, z.core.$strip>;
171
+ declare const writableCustomerBusinessProfileSchema: z.ZodObject<{
675
172
  billingAddress: z.ZodObject<{
676
173
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
174
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -679,97 +176,49 @@ declare const writableCustomerBusinessProfileSchema: z.ZodObject<Omit<Pick<{
679
176
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
680
177
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
681
178
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
682
- }, "strip", z.ZodTypeAny, {
683
- line1?: string | null | undefined;
684
- line2?: string | null | undefined;
685
- city?: string | null | undefined;
686
- region?: string | null | undefined;
687
- postalCode?: string | null | undefined;
688
- country?: string | null | undefined;
689
- }, {
690
- line1?: string | null | undefined;
691
- line2?: string | null | undefined;
692
- city?: string | null | undefined;
693
- region?: string | null | undefined;
694
- postalCode?: string | null | undefined;
695
- country?: string | null | undefined;
696
- }>;
697
- billingData: z.ZodEffects<z.ZodObject<{
179
+ }, z.core.$strip>;
180
+ billingData: z.ZodObject<{
698
181
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
699
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
700
- }, "strip", z.ZodTypeAny, {
701
- sdi?: string | null | undefined;
702
- pec?: string | null | undefined;
703
- }, {
704
- sdi?: string | null | undefined;
705
- pec?: string | null | undefined;
706
- }>, {
707
- sdi?: string | null | undefined;
708
- pec?: string | null | undefined;
709
- }, {
710
- sdi?: string | null | undefined;
711
- pec?: string | null | undefined;
712
- }>;
713
- createdAt: z.ZodEffects<z.ZodString, string, string>;
714
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
715
- } & {
716
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
717
- }, "customer" | "businessName" | "vat" | "taxCode" | "billingAddress" | "billingData">, "customer">, "strip", z.ZodTypeAny, {
718
- businessName: string;
719
- vat: string;
720
- taxCode: string;
721
- billingAddress: {
722
- line1?: string | null | undefined;
723
- line2?: string | null | undefined;
724
- city?: string | null | undefined;
725
- region?: string | null | undefined;
726
- postalCode?: string | null | undefined;
727
- country?: string | null | undefined;
728
- };
729
- billingData: {
730
- sdi?: string | null | undefined;
731
- pec?: string | null | undefined;
732
- };
733
- }, {
734
- businessName: string;
735
- vat: string;
736
- taxCode: string;
737
- billingAddress: {
738
- line1?: string | null | undefined;
739
- line2?: string | null | undefined;
740
- city?: string | null | undefined;
741
- region?: string | null | undefined;
742
- postalCode?: string | null | undefined;
743
- country?: string | null | undefined;
744
- };
745
- billingData: {
746
- sdi?: string | null | undefined;
747
- pec?: string | null | undefined;
748
- };
749
- }>;
182
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
183
+ }, z.core.$strip>;
184
+ businessName: z.ZodString;
185
+ vat: z.ZodString;
186
+ taxCode: z.ZodString;
187
+ }, z.core.$strip>;
750
188
  declare const customersQuerySchema: z.ZodObject<{
751
189
  firstName: z.ZodOptional<z.ZodString>;
752
190
  lastName: z.ZodOptional<z.ZodString>;
753
191
  email: z.ZodOptional<z.ZodString>;
754
192
  phoneNumber: z.ZodOptional<z.ZodString>;
755
- hasBusinessProfiles: z.ZodOptional<z.ZodBoolean>;
756
- hasAddresses: z.ZodOptional<z.ZodBoolean>;
757
- 'ordersPlaced[between]': z.ZodOptional<z.ZodNumber>;
758
- 'ordersPlaced[gt]': z.ZodOptional<z.ZodNumber>;
759
- 'ordersPlaced[gte]': z.ZodOptional<z.ZodNumber>;
760
- 'ordersPlaced[lt]': z.ZodOptional<z.ZodNumber>;
761
- 'ordersPlaced[lte]': z.ZodOptional<z.ZodNumber>;
762
- 'totalSpent[between]': z.ZodOptional<z.ZodNumber>;
763
- 'totalSpent[gt]': z.ZodOptional<z.ZodString>;
764
- 'totalSpent[gte]': z.ZodOptional<z.ZodString>;
765
- 'totalSpent[lt]': z.ZodOptional<z.ZodString>;
766
- 'totalSpent[lte]': z.ZodOptional<z.ZodString>;
767
- 'order[firstName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
768
- 'order[lastName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
769
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
770
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
771
- page: z.ZodOptional<z.ZodNumber>;
772
- } & {
193
+ hasBusinessProfiles: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
194
+ hasAddresses: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
195
+ 'ordersPlaced[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
196
+ 'ordersPlaced[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
197
+ 'ordersPlaced[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
198
+ 'ordersPlaced[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
199
+ 'ordersPlaced[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
200
+ 'totalSpent[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
201
+ 'totalSpent[gt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
202
+ 'totalSpent[gte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
203
+ 'totalSpent[lt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
204
+ 'totalSpent[lte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
205
+ 'order[firstName]': z.ZodOptional<z.ZodEnum<{
206
+ asc: "asc";
207
+ desc: "desc";
208
+ }>>;
209
+ 'order[lastName]': z.ZodOptional<z.ZodEnum<{
210
+ asc: "asc";
211
+ desc: "desc";
212
+ }>>;
213
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
214
+ asc: "asc";
215
+ desc: "desc";
216
+ }>>;
217
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
218
+ asc: "asc";
219
+ desc: "desc";
220
+ }>>;
221
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
773
222
  'createdAt[before]': z.ZodOptional<z.ZodString>;
774
223
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
775
224
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -778,114 +227,20 @@ declare const customersQuerySchema: z.ZodObject<{
778
227
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
779
228
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
780
229
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
781
- }, "strip", z.ZodTypeAny, {
782
- firstName?: string | undefined;
783
- lastName?: string | undefined;
784
- email?: string | undefined;
785
- phoneNumber?: string | undefined;
786
- hasBusinessProfiles?: boolean | undefined;
787
- hasAddresses?: boolean | undefined;
788
- 'ordersPlaced[between]'?: number | undefined;
789
- 'ordersPlaced[gt]'?: number | undefined;
790
- 'ordersPlaced[gte]'?: number | undefined;
791
- 'ordersPlaced[lt]'?: number | undefined;
792
- 'ordersPlaced[lte]'?: number | undefined;
793
- 'totalSpent[between]'?: number | undefined;
794
- 'totalSpent[gt]'?: string | undefined;
795
- 'totalSpent[gte]'?: string | undefined;
796
- 'totalSpent[lt]'?: string | undefined;
797
- 'totalSpent[lte]'?: string | undefined;
798
- 'order[firstName]'?: "asc" | "desc" | undefined;
799
- 'order[lastName]'?: "asc" | "desc" | undefined;
800
- 'order[createdAt]'?: "asc" | "desc" | undefined;
801
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
802
- page?: number | undefined;
803
- 'createdAt[before]'?: string | undefined;
804
- 'createdAt[strictly_before]'?: string | undefined;
805
- 'createdAt[after]'?: string | undefined;
806
- 'createdAt[strictly_after]'?: string | undefined;
807
- 'updatedAt[before]'?: string | undefined;
808
- 'updatedAt[strictly_before]'?: string | undefined;
809
- 'updatedAt[after]'?: string | undefined;
810
- 'updatedAt[strictly_after]'?: string | undefined;
811
- }, {
812
- firstName?: string | undefined;
813
- lastName?: string | undefined;
814
- email?: string | undefined;
815
- phoneNumber?: string | undefined;
816
- hasBusinessProfiles?: boolean | undefined;
817
- hasAddresses?: boolean | undefined;
818
- 'ordersPlaced[between]'?: number | undefined;
819
- 'ordersPlaced[gt]'?: number | undefined;
820
- 'ordersPlaced[gte]'?: number | undefined;
821
- 'ordersPlaced[lt]'?: number | undefined;
822
- 'ordersPlaced[lte]'?: number | undefined;
823
- 'totalSpent[between]'?: number | undefined;
824
- 'totalSpent[gt]'?: string | undefined;
825
- 'totalSpent[gte]'?: string | undefined;
826
- 'totalSpent[lt]'?: string | undefined;
827
- 'totalSpent[lte]'?: string | undefined;
828
- 'order[firstName]'?: "asc" | "desc" | undefined;
829
- 'order[lastName]'?: "asc" | "desc" | undefined;
830
- 'order[createdAt]'?: "asc" | "desc" | undefined;
831
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
832
- page?: number | undefined;
833
- 'createdAt[before]'?: string | undefined;
834
- 'createdAt[strictly_before]'?: string | undefined;
835
- 'createdAt[after]'?: string | undefined;
836
- 'createdAt[strictly_after]'?: string | undefined;
837
- 'updatedAt[before]'?: string | undefined;
838
- 'updatedAt[strictly_before]'?: string | undefined;
839
- 'updatedAt[after]'?: string | undefined;
840
- 'updatedAt[strictly_after]'?: string | undefined;
841
- }>;
230
+ }, z.core.$strip>;
842
231
  type CustomersQueryParams = z.infer<typeof customersQuerySchema>;
843
232
 
844
233
  declare const createCustomerAddressInputSchema: z.ZodObject<{
845
- address: z.ZodObject<{
234
+ address: z.ZodNonOptional<z.ZodObject<{
846
235
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
847
236
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
848
237
  city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
849
238
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
850
239
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
851
240
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
852
- }, "strip", z.ZodTypeAny, {
853
- line1?: string | null | undefined;
854
- line2?: string | null | undefined;
855
- city?: string | null | undefined;
856
- region?: string | null | undefined;
857
- postalCode?: string | null | undefined;
858
- country?: string | null | undefined;
859
- }, {
860
- line1?: string | null | undefined;
861
- line2?: string | null | undefined;
862
- city?: string | null | undefined;
863
- region?: string | null | undefined;
864
- postalCode?: string | null | undefined;
865
- country?: string | null | undefined;
866
- }>;
867
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
868
- }, "strip", z.ZodTypeAny, {
869
- address: {
870
- line1?: string | null | undefined;
871
- line2?: string | null | undefined;
872
- city?: string | null | undefined;
873
- region?: string | null | undefined;
874
- postalCode?: string | null | undefined;
875
- country?: string | null | undefined;
876
- };
877
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
878
- }, {
879
- address: {
880
- line1?: string | null | undefined;
881
- line2?: string | null | undefined;
882
- city?: string | null | undefined;
883
- region?: string | null | undefined;
884
- postalCode?: string | null | undefined;
885
- country?: string | null | undefined;
886
- };
887
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
888
- }>;
241
+ }, z.core.$strip>>;
242
+ customer: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>>;
243
+ }, z.core.$strip>;
889
244
  type CreateCustomerAddressInput = z.input<typeof createCustomerAddressInputSchema>;
890
245
  declare const createCustomerAddressResponseSchema: z.ZodObject<{
891
246
  id: z.ZodString;
@@ -896,120 +251,31 @@ declare const createCustomerAddressResponseSchema: z.ZodObject<{
896
251
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
897
252
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
898
253
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
899
- }, "strip", z.ZodTypeAny, {
900
- line1?: string | null | undefined;
901
- line2?: string | null | undefined;
902
- city?: string | null | undefined;
903
- region?: string | null | undefined;
904
- postalCode?: string | null | undefined;
905
- country?: string | null | undefined;
906
- }, {
907
- line1?: string | null | undefined;
908
- line2?: string | null | undefined;
909
- city?: string | null | undefined;
910
- region?: string | null | undefined;
911
- postalCode?: string | null | undefined;
912
- country?: string | null | undefined;
913
- }>;
254
+ }, z.core.$strip>;
914
255
  location: z.ZodObject<{
915
256
  latitude: z.ZodNumber;
916
257
  longitude: z.ZodNumber;
917
- }, "strip", z.ZodTypeAny, {
918
- latitude: number;
919
- longitude: number;
920
- }, {
921
- latitude: number;
922
- longitude: number;
923
- }>;
924
- createdAt: z.ZodEffects<z.ZodString, string, string>;
925
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
926
- } & {
927
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
928
- }, "strip", z.ZodTypeAny, {
929
- id: string;
930
- createdAt: string;
931
- updatedAt: string;
932
- address: {
933
- line1?: string | null | undefined;
934
- line2?: string | null | undefined;
935
- city?: string | null | undefined;
936
- region?: string | null | undefined;
937
- postalCode?: string | null | undefined;
938
- country?: string | null | undefined;
939
- };
940
- location: {
941
- latitude: number;
942
- longitude: number;
943
- };
944
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
945
- }, {
946
- id: string;
947
- createdAt: string;
948
- updatedAt: string;
949
- address: {
950
- line1?: string | null | undefined;
951
- line2?: string | null | undefined;
952
- city?: string | null | undefined;
953
- region?: string | null | undefined;
954
- postalCode?: string | null | undefined;
955
- country?: string | null | undefined;
956
- };
957
- location: {
958
- latitude: number;
959
- longitude: number;
960
- };
961
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
962
- }>;
258
+ }, z.core.$strip>;
259
+ createdAt: z.ZodString;
260
+ updatedAt: z.ZodString;
261
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
262
+ }, z.core.$strip>;
963
263
  type CreateCustomerAddressResponse = z.infer<typeof createCustomerAddressResponseSchema>;
964
264
  declare class CreateCustomerAddress extends AbstractApiRequest<typeof createCustomerAddressInputSchema, typeof createCustomerAddressResponseSchema> {
965
265
  readonly method = "POST";
966
266
  readonly contentType = "application/json";
967
267
  readonly accept = "application/json";
968
268
  readonly inputSchema: z.ZodObject<{
969
- address: z.ZodObject<{
269
+ address: z.ZodNonOptional<z.ZodObject<{
970
270
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
971
271
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
972
272
  city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
973
273
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
974
274
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
975
275
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
976
- }, "strip", z.ZodTypeAny, {
977
- line1?: string | null | undefined;
978
- line2?: string | null | undefined;
979
- city?: string | null | undefined;
980
- region?: string | null | undefined;
981
- postalCode?: string | null | undefined;
982
- country?: string | null | undefined;
983
- }, {
984
- line1?: string | null | undefined;
985
- line2?: string | null | undefined;
986
- city?: string | null | undefined;
987
- region?: string | null | undefined;
988
- postalCode?: string | null | undefined;
989
- country?: string | null | undefined;
990
- }>;
991
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
992
- }, "strip", z.ZodTypeAny, {
993
- address: {
994
- line1?: string | null | undefined;
995
- line2?: string | null | undefined;
996
- city?: string | null | undefined;
997
- region?: string | null | undefined;
998
- postalCode?: string | null | undefined;
999
- country?: string | null | undefined;
1000
- };
1001
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1002
- }, {
1003
- address: {
1004
- line1?: string | null | undefined;
1005
- line2?: string | null | undefined;
1006
- city?: string | null | undefined;
1007
- region?: string | null | undefined;
1008
- postalCode?: string | null | undefined;
1009
- country?: string | null | undefined;
1010
- };
1011
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1012
- }>;
276
+ }, z.core.$strip>>;
277
+ customer: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>>;
278
+ }, z.core.$strip>;
1013
279
  readonly outputSchema: z.ZodObject<{
1014
280
  id: z.ZodString;
1015
281
  address: z.ZodObject<{
@@ -1019,70 +285,15 @@ declare class CreateCustomerAddress extends AbstractApiRequest<typeof createCust
1019
285
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1020
286
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1021
287
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1022
- }, "strip", z.ZodTypeAny, {
1023
- line1?: string | null | undefined;
1024
- line2?: string | null | undefined;
1025
- city?: string | null | undefined;
1026
- region?: string | null | undefined;
1027
- postalCode?: string | null | undefined;
1028
- country?: string | null | undefined;
1029
- }, {
1030
- line1?: string | null | undefined;
1031
- line2?: string | null | undefined;
1032
- city?: string | null | undefined;
1033
- region?: string | null | undefined;
1034
- postalCode?: string | null | undefined;
1035
- country?: string | null | undefined;
1036
- }>;
288
+ }, z.core.$strip>;
1037
289
  location: z.ZodObject<{
1038
290
  latitude: z.ZodNumber;
1039
291
  longitude: z.ZodNumber;
1040
- }, "strip", z.ZodTypeAny, {
1041
- latitude: number;
1042
- longitude: number;
1043
- }, {
1044
- latitude: number;
1045
- longitude: number;
1046
- }>;
1047
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1048
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1049
- } & {
1050
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
1051
- }, "strip", z.ZodTypeAny, {
1052
- id: string;
1053
- createdAt: string;
1054
- updatedAt: string;
1055
- address: {
1056
- line1?: string | null | undefined;
1057
- line2?: string | null | undefined;
1058
- city?: string | null | undefined;
1059
- region?: string | null | undefined;
1060
- postalCode?: string | null | undefined;
1061
- country?: string | null | undefined;
1062
- };
1063
- location: {
1064
- latitude: number;
1065
- longitude: number;
1066
- };
1067
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1068
- }, {
1069
- id: string;
1070
- createdAt: string;
1071
- updatedAt: string;
1072
- address: {
1073
- line1?: string | null | undefined;
1074
- line2?: string | null | undefined;
1075
- city?: string | null | undefined;
1076
- region?: string | null | undefined;
1077
- postalCode?: string | null | undefined;
1078
- country?: string | null | undefined;
1079
- };
1080
- location: {
1081
- latitude: number;
1082
- longitude: number;
1083
- };
1084
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1085
- }>;
292
+ }, z.core.$strip>;
293
+ createdAt: z.ZodString;
294
+ updatedAt: z.ZodString;
295
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
296
+ }, z.core.$strip>;
1086
297
  readonly querySchema: undefined;
1087
298
  readonly headersSchema: undefined;
1088
299
  constructor(input: z.input<typeof createCustomerAddressInputSchema>);
@@ -1115,70 +326,15 @@ declare const getCustomerAddressDetailsResponseSchema: z.ZodObject<{
1115
326
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1116
327
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1117
328
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1118
- }, "strip", z.ZodTypeAny, {
1119
- line1?: string | null | undefined;
1120
- line2?: string | null | undefined;
1121
- city?: string | null | undefined;
1122
- region?: string | null | undefined;
1123
- postalCode?: string | null | undefined;
1124
- country?: string | null | undefined;
1125
- }, {
1126
- line1?: string | null | undefined;
1127
- line2?: string | null | undefined;
1128
- city?: string | null | undefined;
1129
- region?: string | null | undefined;
1130
- postalCode?: string | null | undefined;
1131
- country?: string | null | undefined;
1132
- }>;
329
+ }, z.core.$strip>;
1133
330
  location: z.ZodObject<{
1134
331
  latitude: z.ZodNumber;
1135
332
  longitude: z.ZodNumber;
1136
- }, "strip", z.ZodTypeAny, {
1137
- latitude: number;
1138
- longitude: number;
1139
- }, {
1140
- latitude: number;
1141
- longitude: number;
1142
- }>;
1143
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1144
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1145
- } & {
1146
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
1147
- }, "strip", z.ZodTypeAny, {
1148
- id: string;
1149
- createdAt: string;
1150
- updatedAt: string;
1151
- address: {
1152
- line1?: string | null | undefined;
1153
- line2?: string | null | undefined;
1154
- city?: string | null | undefined;
1155
- region?: string | null | undefined;
1156
- postalCode?: string | null | undefined;
1157
- country?: string | null | undefined;
1158
- };
1159
- location: {
1160
- latitude: number;
1161
- longitude: number;
1162
- };
1163
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1164
- }, {
1165
- id: string;
1166
- createdAt: string;
1167
- updatedAt: string;
1168
- address: {
1169
- line1?: string | null | undefined;
1170
- line2?: string | null | undefined;
1171
- city?: string | null | undefined;
1172
- region?: string | null | undefined;
1173
- postalCode?: string | null | undefined;
1174
- country?: string | null | undefined;
1175
- };
1176
- location: {
1177
- latitude: number;
1178
- longitude: number;
1179
- };
1180
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1181
- }>;
333
+ }, z.core.$strip>;
334
+ createdAt: z.ZodString;
335
+ updatedAt: z.ZodString;
336
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
337
+ }, z.core.$strip>;
1182
338
  type GetCustomerAddressDetailsResponse = z.infer<typeof getCustomerAddressDetailsResponseSchema>;
1183
339
  declare class GetCustomerAddressDetails extends AbstractApiRequest<typeof getCustomerAddressDetailsInputSchema, typeof getCustomerAddressDetailsResponseSchema> {
1184
340
  readonly method = "GET";
@@ -1194,70 +350,15 @@ declare class GetCustomerAddressDetails extends AbstractApiRequest<typeof getCus
1194
350
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1195
351
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1196
352
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1197
- }, "strip", z.ZodTypeAny, {
1198
- line1?: string | null | undefined;
1199
- line2?: string | null | undefined;
1200
- city?: string | null | undefined;
1201
- region?: string | null | undefined;
1202
- postalCode?: string | null | undefined;
1203
- country?: string | null | undefined;
1204
- }, {
1205
- line1?: string | null | undefined;
1206
- line2?: string | null | undefined;
1207
- city?: string | null | undefined;
1208
- region?: string | null | undefined;
1209
- postalCode?: string | null | undefined;
1210
- country?: string | null | undefined;
1211
- }>;
353
+ }, z.core.$strip>;
1212
354
  location: z.ZodObject<{
1213
355
  latitude: z.ZodNumber;
1214
356
  longitude: z.ZodNumber;
1215
- }, "strip", z.ZodTypeAny, {
1216
- latitude: number;
1217
- longitude: number;
1218
- }, {
1219
- latitude: number;
1220
- longitude: number;
1221
- }>;
1222
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1223
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1224
- } & {
1225
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
1226
- }, "strip", z.ZodTypeAny, {
1227
- id: string;
1228
- createdAt: string;
1229
- updatedAt: string;
1230
- address: {
1231
- line1?: string | null | undefined;
1232
- line2?: string | null | undefined;
1233
- city?: string | null | undefined;
1234
- region?: string | null | undefined;
1235
- postalCode?: string | null | undefined;
1236
- country?: string | null | undefined;
1237
- };
1238
- location: {
1239
- latitude: number;
1240
- longitude: number;
1241
- };
1242
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1243
- }, {
1244
- id: string;
1245
- createdAt: string;
1246
- updatedAt: string;
1247
- address: {
1248
- line1?: string | null | undefined;
1249
- line2?: string | null | undefined;
1250
- city?: string | null | undefined;
1251
- region?: string | null | undefined;
1252
- postalCode?: string | null | undefined;
1253
- country?: string | null | undefined;
1254
- };
1255
- location: {
1256
- latitude: number;
1257
- longitude: number;
1258
- };
1259
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1260
- }>;
357
+ }, z.core.$strip>;
358
+ createdAt: z.ZodString;
359
+ updatedAt: z.ZodString;
360
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
361
+ }, z.core.$strip>;
1261
362
  readonly querySchema: undefined;
1262
363
  readonly headersSchema: undefined;
1263
364
  private readonly customerAddressId;
@@ -1266,10 +367,15 @@ declare class GetCustomerAddressDetails extends AbstractApiRequest<typeof getCus
1266
367
  }
1267
368
 
1268
369
  declare const getCustomerAddressesQuerySchema: z.ZodObject<{
1269
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1270
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1271
- page: z.ZodOptional<z.ZodNumber>;
1272
- } & {
370
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
371
+ asc: "asc";
372
+ desc: "desc";
373
+ }>>;
374
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
375
+ asc: "asc";
376
+ desc: "desc";
377
+ }>>;
378
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1273
379
  'createdAt[before]': z.ZodOptional<z.ZodString>;
1274
380
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1275
381
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -1278,31 +384,7 @@ declare const getCustomerAddressesQuerySchema: z.ZodObject<{
1278
384
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1279
385
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
1280
386
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1281
- }, "strip", z.ZodTypeAny, {
1282
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1283
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1284
- page?: number | undefined;
1285
- 'createdAt[before]'?: string | undefined;
1286
- 'createdAt[strictly_before]'?: string | undefined;
1287
- 'createdAt[after]'?: string | undefined;
1288
- 'createdAt[strictly_after]'?: string | undefined;
1289
- 'updatedAt[before]'?: string | undefined;
1290
- 'updatedAt[strictly_before]'?: string | undefined;
1291
- 'updatedAt[after]'?: string | undefined;
1292
- 'updatedAt[strictly_after]'?: string | undefined;
1293
- }, {
1294
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1295
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1296
- page?: number | undefined;
1297
- 'createdAt[before]'?: string | undefined;
1298
- 'createdAt[strictly_before]'?: string | undefined;
1299
- 'createdAt[after]'?: string | undefined;
1300
- 'createdAt[strictly_after]'?: string | undefined;
1301
- 'updatedAt[before]'?: string | undefined;
1302
- 'updatedAt[strictly_before]'?: string | undefined;
1303
- 'updatedAt[after]'?: string | undefined;
1304
- 'updatedAt[strictly_after]'?: string | undefined;
1305
- }>;
387
+ }, z.core.$strip>;
1306
388
  type GetCustomerAddressesQueryParams = z.infer<typeof getCustomerAddressesQuerySchema>;
1307
389
  declare const getCustomerAddressesInputSchema: z.ZodUndefined;
1308
390
  type GetCustomerAddressesInput = z.input<typeof getCustomerAddressesInputSchema>;
@@ -1316,66 +398,14 @@ declare const getCustomerAddressesResponseSchema: z.ZodObject<{
1316
398
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1317
399
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1318
400
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1319
- }, "strip", z.ZodTypeAny, {
1320
- line1?: string | null | undefined;
1321
- line2?: string | null | undefined;
1322
- city?: string | null | undefined;
1323
- region?: string | null | undefined;
1324
- postalCode?: string | null | undefined;
1325
- country?: string | null | undefined;
1326
- }, {
1327
- line1?: string | null | undefined;
1328
- line2?: string | null | undefined;
1329
- city?: string | null | undefined;
1330
- region?: string | null | undefined;
1331
- postalCode?: string | null | undefined;
1332
- country?: string | null | undefined;
1333
- }>;
401
+ }, z.core.$strip>;
1334
402
  location: z.ZodObject<{
1335
403
  latitude: z.ZodNumber;
1336
404
  longitude: z.ZodNumber;
1337
- }, "strip", z.ZodTypeAny, {
1338
- latitude: number;
1339
- longitude: number;
1340
- }, {
1341
- latitude: number;
1342
- longitude: number;
1343
- }>;
1344
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1345
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1346
- }, "strip", z.ZodTypeAny, {
1347
- id: string;
1348
- createdAt: string;
1349
- updatedAt: string;
1350
- address: {
1351
- line1?: string | null | undefined;
1352
- line2?: string | null | undefined;
1353
- city?: string | null | undefined;
1354
- region?: string | null | undefined;
1355
- postalCode?: string | null | undefined;
1356
- country?: string | null | undefined;
1357
- };
1358
- location: {
1359
- latitude: number;
1360
- longitude: number;
1361
- };
1362
- }, {
1363
- id: string;
1364
- createdAt: string;
1365
- updatedAt: string;
1366
- address: {
1367
- line1?: string | null | undefined;
1368
- line2?: string | null | undefined;
1369
- city?: string | null | undefined;
1370
- region?: string | null | undefined;
1371
- postalCode?: string | null | undefined;
1372
- country?: string | null | undefined;
1373
- };
1374
- location: {
1375
- latitude: number;
1376
- longitude: number;
1377
- };
1378
- }>, "many">;
405
+ }, z.core.$strip>;
406
+ createdAt: z.ZodString;
407
+ updatedAt: z.ZodString;
408
+ }, z.core.$strip>>;
1379
409
  pagination: z.ZodObject<{
1380
410
  from: z.ZodNumber;
1381
411
  to: z.ZodNumber;
@@ -1383,74 +413,8 @@ declare const getCustomerAddressesResponseSchema: z.ZodObject<{
1383
413
  totalItems: z.ZodNumber;
1384
414
  currentPage: z.ZodNumber;
1385
415
  lastPage: z.ZodNumber;
1386
- }, "strip", z.ZodTypeAny, {
1387
- from: number;
1388
- to: number;
1389
- itemsPerPage: number;
1390
- totalItems: number;
1391
- currentPage: number;
1392
- lastPage: number;
1393
- }, {
1394
- from: number;
1395
- to: number;
1396
- itemsPerPage: number;
1397
- totalItems: number;
1398
- currentPage: number;
1399
- lastPage: number;
1400
- }>;
1401
- }, "strip", z.ZodTypeAny, {
1402
- data: {
1403
- id: string;
1404
- createdAt: string;
1405
- updatedAt: string;
1406
- address: {
1407
- line1?: string | null | undefined;
1408
- line2?: string | null | undefined;
1409
- city?: string | null | undefined;
1410
- region?: string | null | undefined;
1411
- postalCode?: string | null | undefined;
1412
- country?: string | null | undefined;
1413
- };
1414
- location: {
1415
- latitude: number;
1416
- longitude: number;
1417
- };
1418
- }[];
1419
- pagination: {
1420
- from: number;
1421
- to: number;
1422
- itemsPerPage: number;
1423
- totalItems: number;
1424
- currentPage: number;
1425
- lastPage: number;
1426
- };
1427
- }, {
1428
- data: {
1429
- id: string;
1430
- createdAt: string;
1431
- updatedAt: string;
1432
- address: {
1433
- line1?: string | null | undefined;
1434
- line2?: string | null | undefined;
1435
- city?: string | null | undefined;
1436
- region?: string | null | undefined;
1437
- postalCode?: string | null | undefined;
1438
- country?: string | null | undefined;
1439
- };
1440
- location: {
1441
- latitude: number;
1442
- longitude: number;
1443
- };
1444
- }[];
1445
- pagination: {
1446
- from: number;
1447
- to: number;
1448
- itemsPerPage: number;
1449
- totalItems: number;
1450
- currentPage: number;
1451
- lastPage: number;
1452
- };
1453
- }>;
416
+ }, z.core.$strip>;
417
+ }, z.core.$strip>;
1454
418
  type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
1455
419
  declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomerAddressesInputSchema, typeof getCustomerAddressesResponseSchema, GetCustomerAddressesQueryParams> {
1456
420
  readonly method = "GET";
@@ -1467,66 +431,14 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
1467
431
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1468
432
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1469
433
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1470
- }, "strip", z.ZodTypeAny, {
1471
- line1?: string | null | undefined;
1472
- line2?: string | null | undefined;
1473
- city?: string | null | undefined;
1474
- region?: string | null | undefined;
1475
- postalCode?: string | null | undefined;
1476
- country?: string | null | undefined;
1477
- }, {
1478
- line1?: string | null | undefined;
1479
- line2?: string | null | undefined;
1480
- city?: string | null | undefined;
1481
- region?: string | null | undefined;
1482
- postalCode?: string | null | undefined;
1483
- country?: string | null | undefined;
1484
- }>;
434
+ }, z.core.$strip>;
1485
435
  location: z.ZodObject<{
1486
436
  latitude: z.ZodNumber;
1487
437
  longitude: z.ZodNumber;
1488
- }, "strip", z.ZodTypeAny, {
1489
- latitude: number;
1490
- longitude: number;
1491
- }, {
1492
- latitude: number;
1493
- longitude: number;
1494
- }>;
1495
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1496
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1497
- }, "strip", z.ZodTypeAny, {
1498
- id: string;
1499
- createdAt: string;
1500
- updatedAt: string;
1501
- address: {
1502
- line1?: string | null | undefined;
1503
- line2?: string | null | undefined;
1504
- city?: string | null | undefined;
1505
- region?: string | null | undefined;
1506
- postalCode?: string | null | undefined;
1507
- country?: string | null | undefined;
1508
- };
1509
- location: {
1510
- latitude: number;
1511
- longitude: number;
1512
- };
1513
- }, {
1514
- id: string;
1515
- createdAt: string;
1516
- updatedAt: string;
1517
- address: {
1518
- line1?: string | null | undefined;
1519
- line2?: string | null | undefined;
1520
- city?: string | null | undefined;
1521
- region?: string | null | undefined;
1522
- postalCode?: string | null | undefined;
1523
- country?: string | null | undefined;
1524
- };
1525
- location: {
1526
- latitude: number;
1527
- longitude: number;
1528
- };
1529
- }>, "many">;
438
+ }, z.core.$strip>;
439
+ createdAt: z.ZodString;
440
+ updatedAt: z.ZodString;
441
+ }, z.core.$strip>>;
1530
442
  pagination: z.ZodObject<{
1531
443
  from: z.ZodNumber;
1532
444
  to: z.ZodNumber;
@@ -1534,79 +446,18 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
1534
446
  totalItems: z.ZodNumber;
1535
447
  currentPage: z.ZodNumber;
1536
448
  lastPage: z.ZodNumber;
1537
- }, "strip", z.ZodTypeAny, {
1538
- from: number;
1539
- to: number;
1540
- itemsPerPage: number;
1541
- totalItems: number;
1542
- currentPage: number;
1543
- lastPage: number;
1544
- }, {
1545
- from: number;
1546
- to: number;
1547
- itemsPerPage: number;
1548
- totalItems: number;
1549
- currentPage: number;
1550
- lastPage: number;
1551
- }>;
1552
- }, "strip", z.ZodTypeAny, {
1553
- data: {
1554
- id: string;
1555
- createdAt: string;
1556
- updatedAt: string;
1557
- address: {
1558
- line1?: string | null | undefined;
1559
- line2?: string | null | undefined;
1560
- city?: string | null | undefined;
1561
- region?: string | null | undefined;
1562
- postalCode?: string | null | undefined;
1563
- country?: string | null | undefined;
1564
- };
1565
- location: {
1566
- latitude: number;
1567
- longitude: number;
1568
- };
1569
- }[];
1570
- pagination: {
1571
- from: number;
1572
- to: number;
1573
- itemsPerPage: number;
1574
- totalItems: number;
1575
- currentPage: number;
1576
- lastPage: number;
1577
- };
1578
- }, {
1579
- data: {
1580
- id: string;
1581
- createdAt: string;
1582
- updatedAt: string;
1583
- address: {
1584
- line1?: string | null | undefined;
1585
- line2?: string | null | undefined;
1586
- city?: string | null | undefined;
1587
- region?: string | null | undefined;
1588
- postalCode?: string | null | undefined;
1589
- country?: string | null | undefined;
1590
- };
1591
- location: {
1592
- latitude: number;
1593
- longitude: number;
1594
- };
1595
- }[];
1596
- pagination: {
1597
- from: number;
1598
- to: number;
1599
- itemsPerPage: number;
1600
- totalItems: number;
1601
- currentPage: number;
1602
- lastPage: number;
1603
- };
1604
- }>;
449
+ }, z.core.$strip>;
450
+ }, z.core.$strip>;
1605
451
  readonly querySchema: z.ZodObject<{
1606
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1607
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1608
- page: z.ZodOptional<z.ZodNumber>;
1609
- } & {
452
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
453
+ asc: "asc";
454
+ desc: "desc";
455
+ }>>;
456
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
457
+ asc: "asc";
458
+ desc: "desc";
459
+ }>>;
460
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1610
461
  'createdAt[before]': z.ZodOptional<z.ZodString>;
1611
462
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1612
463
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -1615,31 +466,7 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
1615
466
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1616
467
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
1617
468
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1618
- }, "strip", z.ZodTypeAny, {
1619
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1620
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1621
- page?: number | undefined;
1622
- 'createdAt[before]'?: string | undefined;
1623
- 'createdAt[strictly_before]'?: string | undefined;
1624
- 'createdAt[after]'?: string | undefined;
1625
- 'createdAt[strictly_after]'?: string | undefined;
1626
- 'updatedAt[before]'?: string | undefined;
1627
- 'updatedAt[strictly_before]'?: string | undefined;
1628
- 'updatedAt[after]'?: string | undefined;
1629
- 'updatedAt[strictly_after]'?: string | undefined;
1630
- }, {
1631
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1632
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1633
- page?: number | undefined;
1634
- 'createdAt[before]'?: string | undefined;
1635
- 'createdAt[strictly_before]'?: string | undefined;
1636
- 'createdAt[after]'?: string | undefined;
1637
- 'createdAt[strictly_after]'?: string | undefined;
1638
- 'updatedAt[before]'?: string | undefined;
1639
- 'updatedAt[strictly_before]'?: string | undefined;
1640
- 'updatedAt[after]'?: string | undefined;
1641
- 'updatedAt[strictly_after]'?: string | undefined;
1642
- }>;
469
+ }, z.core.$strip>;
1643
470
  readonly headersSchema: undefined;
1644
471
  constructor(options?: {
1645
472
  query?: GetCustomerAddressesQueryParams;
@@ -1649,9 +476,14 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
1649
476
  }
1650
477
 
1651
478
  declare const getCustomerAddressesForCustomerQuerySchema: z.ZodObject<{
1652
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1653
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1654
- } & {
479
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
480
+ asc: "asc";
481
+ desc: "desc";
482
+ }>>;
483
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
484
+ asc: "asc";
485
+ desc: "desc";
486
+ }>>;
1655
487
  'createdAt[before]': z.ZodOptional<z.ZodString>;
1656
488
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1657
489
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -1660,29 +492,7 @@ declare const getCustomerAddressesForCustomerQuerySchema: z.ZodObject<{
1660
492
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1661
493
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
1662
494
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1663
- }, "strip", z.ZodTypeAny, {
1664
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1665
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1666
- 'createdAt[before]'?: string | undefined;
1667
- 'createdAt[strictly_before]'?: string | undefined;
1668
- 'createdAt[after]'?: string | undefined;
1669
- 'createdAt[strictly_after]'?: string | undefined;
1670
- 'updatedAt[before]'?: string | undefined;
1671
- 'updatedAt[strictly_before]'?: string | undefined;
1672
- 'updatedAt[after]'?: string | undefined;
1673
- 'updatedAt[strictly_after]'?: string | undefined;
1674
- }, {
1675
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1676
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1677
- 'createdAt[before]'?: string | undefined;
1678
- 'createdAt[strictly_before]'?: string | undefined;
1679
- 'createdAt[after]'?: string | undefined;
1680
- 'createdAt[strictly_after]'?: string | undefined;
1681
- 'updatedAt[before]'?: string | undefined;
1682
- 'updatedAt[strictly_before]'?: string | undefined;
1683
- 'updatedAt[after]'?: string | undefined;
1684
- 'updatedAt[strictly_after]'?: string | undefined;
1685
- }>;
495
+ }, z.core.$strip>;
1686
496
  type GetCustomerAddressesForCustomerQueryParams = z.infer<typeof getCustomerAddressesForCustomerQuerySchema>;
1687
497
  declare const getCustomerAddressesForCustomerInputSchema: z.ZodUndefined;
1688
498
  type GetCustomerAddressesForCustomerInput = z.input<typeof getCustomerAddressesForCustomerInputSchema>;
@@ -1695,66 +505,14 @@ declare const getCustomerAddressesForCustomerResponseSchema: z.ZodArray<z.ZodObj
1695
505
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1696
506
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1697
507
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1698
- }, "strip", z.ZodTypeAny, {
1699
- line1?: string | null | undefined;
1700
- line2?: string | null | undefined;
1701
- city?: string | null | undefined;
1702
- region?: string | null | undefined;
1703
- postalCode?: string | null | undefined;
1704
- country?: string | null | undefined;
1705
- }, {
1706
- line1?: string | null | undefined;
1707
- line2?: string | null | undefined;
1708
- city?: string | null | undefined;
1709
- region?: string | null | undefined;
1710
- postalCode?: string | null | undefined;
1711
- country?: string | null | undefined;
1712
- }>;
508
+ }, z.core.$strip>;
1713
509
  location: z.ZodObject<{
1714
510
  latitude: z.ZodNumber;
1715
511
  longitude: z.ZodNumber;
1716
- }, "strip", z.ZodTypeAny, {
1717
- latitude: number;
1718
- longitude: number;
1719
- }, {
1720
- latitude: number;
1721
- longitude: number;
1722
- }>;
1723
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1724
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1725
- }, "strip", z.ZodTypeAny, {
1726
- id: string;
1727
- createdAt: string;
1728
- updatedAt: string;
1729
- address: {
1730
- line1?: string | null | undefined;
1731
- line2?: string | null | undefined;
1732
- city?: string | null | undefined;
1733
- region?: string | null | undefined;
1734
- postalCode?: string | null | undefined;
1735
- country?: string | null | undefined;
1736
- };
1737
- location: {
1738
- latitude: number;
1739
- longitude: number;
1740
- };
1741
- }, {
1742
- id: string;
1743
- createdAt: string;
1744
- updatedAt: string;
1745
- address: {
1746
- line1?: string | null | undefined;
1747
- line2?: string | null | undefined;
1748
- city?: string | null | undefined;
1749
- region?: string | null | undefined;
1750
- postalCode?: string | null | undefined;
1751
- country?: string | null | undefined;
1752
- };
1753
- location: {
1754
- latitude: number;
1755
- longitude: number;
1756
- };
1757
- }>, "many">;
512
+ }, z.core.$strip>;
513
+ createdAt: z.ZodString;
514
+ updatedAt: z.ZodString;
515
+ }, z.core.$strip>>;
1758
516
  type GetCustomerAddressesForCustomerResponse = z.infer<typeof getCustomerAddressesForCustomerResponseSchema>;
1759
517
  declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<typeof getCustomerAddressesForCustomerInputSchema, typeof getCustomerAddressesForCustomerResponseSchema, GetCustomerAddressesForCustomerQueryParams> {
1760
518
  readonly method = "GET";
@@ -1770,70 +528,23 @@ declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<typeof
1770
528
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1771
529
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1772
530
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1773
- }, "strip", z.ZodTypeAny, {
1774
- line1?: string | null | undefined;
1775
- line2?: string | null | undefined;
1776
- city?: string | null | undefined;
1777
- region?: string | null | undefined;
1778
- postalCode?: string | null | undefined;
1779
- country?: string | null | undefined;
1780
- }, {
1781
- line1?: string | null | undefined;
1782
- line2?: string | null | undefined;
1783
- city?: string | null | undefined;
1784
- region?: string | null | undefined;
1785
- postalCode?: string | null | undefined;
1786
- country?: string | null | undefined;
1787
- }>;
531
+ }, z.core.$strip>;
1788
532
  location: z.ZodObject<{
1789
533
  latitude: z.ZodNumber;
1790
534
  longitude: z.ZodNumber;
1791
- }, "strip", z.ZodTypeAny, {
1792
- latitude: number;
1793
- longitude: number;
1794
- }, {
1795
- latitude: number;
1796
- longitude: number;
1797
- }>;
1798
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1799
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1800
- }, "strip", z.ZodTypeAny, {
1801
- id: string;
1802
- createdAt: string;
1803
- updatedAt: string;
1804
- address: {
1805
- line1?: string | null | undefined;
1806
- line2?: string | null | undefined;
1807
- city?: string | null | undefined;
1808
- region?: string | null | undefined;
1809
- postalCode?: string | null | undefined;
1810
- country?: string | null | undefined;
1811
- };
1812
- location: {
1813
- latitude: number;
1814
- longitude: number;
1815
- };
1816
- }, {
1817
- id: string;
1818
- createdAt: string;
1819
- updatedAt: string;
1820
- address: {
1821
- line1?: string | null | undefined;
1822
- line2?: string | null | undefined;
1823
- city?: string | null | undefined;
1824
- region?: string | null | undefined;
1825
- postalCode?: string | null | undefined;
1826
- country?: string | null | undefined;
1827
- };
1828
- location: {
1829
- latitude: number;
1830
- longitude: number;
1831
- };
1832
- }>, "many">;
535
+ }, z.core.$strip>;
536
+ createdAt: z.ZodString;
537
+ updatedAt: z.ZodString;
538
+ }, z.core.$strip>>;
1833
539
  readonly querySchema: z.ZodObject<{
1834
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1835
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1836
- } & {
540
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
541
+ asc: "asc";
542
+ desc: "desc";
543
+ }>>;
544
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
545
+ asc: "asc";
546
+ desc: "desc";
547
+ }>>;
1837
548
  'createdAt[before]': z.ZodOptional<z.ZodString>;
1838
549
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1839
550
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -1842,29 +553,7 @@ declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<typeof
1842
553
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1843
554
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
1844
555
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1845
- }, "strip", z.ZodTypeAny, {
1846
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1847
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1848
- 'createdAt[before]'?: string | undefined;
1849
- 'createdAt[strictly_before]'?: string | undefined;
1850
- 'createdAt[after]'?: string | undefined;
1851
- 'createdAt[strictly_after]'?: string | undefined;
1852
- 'updatedAt[before]'?: string | undefined;
1853
- 'updatedAt[strictly_before]'?: string | undefined;
1854
- 'updatedAt[after]'?: string | undefined;
1855
- 'updatedAt[strictly_after]'?: string | undefined;
1856
- }, {
1857
- 'order[createdAt]'?: "asc" | "desc" | undefined;
1858
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
1859
- 'createdAt[before]'?: string | undefined;
1860
- 'createdAt[strictly_before]'?: string | undefined;
1861
- 'createdAt[after]'?: string | undefined;
1862
- 'createdAt[strictly_after]'?: string | undefined;
1863
- 'updatedAt[before]'?: string | undefined;
1864
- 'updatedAt[strictly_before]'?: string | undefined;
1865
- 'updatedAt[after]'?: string | undefined;
1866
- 'updatedAt[strictly_after]'?: string | undefined;
1867
- }>;
556
+ }, z.core.$strip>;
1868
557
  readonly headersSchema: undefined;
1869
558
  private readonly customerId;
1870
559
  constructor(customerId: string, options?: {
@@ -1882,40 +571,8 @@ declare const updateCustomerAddressInputSchema: z.ZodObject<{
1882
571
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1883
572
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1884
573
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1885
- }, "strip", z.ZodTypeAny, {
1886
- line1?: string | null | undefined;
1887
- line2?: string | null | undefined;
1888
- city?: string | null | undefined;
1889
- region?: string | null | undefined;
1890
- postalCode?: string | null | undefined;
1891
- country?: string | null | undefined;
1892
- }, {
1893
- line1?: string | null | undefined;
1894
- line2?: string | null | undefined;
1895
- city?: string | null | undefined;
1896
- region?: string | null | undefined;
1897
- postalCode?: string | null | undefined;
1898
- country?: string | null | undefined;
1899
- }>>;
1900
- }, "strip", z.ZodTypeAny, {
1901
- address?: {
1902
- line1?: string | null | undefined;
1903
- line2?: string | null | undefined;
1904
- city?: string | null | undefined;
1905
- region?: string | null | undefined;
1906
- postalCode?: string | null | undefined;
1907
- country?: string | null | undefined;
1908
- } | undefined;
1909
- }, {
1910
- address?: {
1911
- line1?: string | null | undefined;
1912
- line2?: string | null | undefined;
1913
- city?: string | null | undefined;
1914
- region?: string | null | undefined;
1915
- postalCode?: string | null | undefined;
1916
- country?: string | null | undefined;
1917
- } | undefined;
1918
- }>;
574
+ }, z.core.$strip>>;
575
+ }, z.core.$strip>;
1919
576
  type UpdateCustomerAddressInput = z.input<typeof updateCustomerAddressInputSchema>;
1920
577
  declare const updateCustomerAddressResponseSchema: z.ZodObject<{
1921
578
  id: z.ZodString;
@@ -1926,70 +583,15 @@ declare const updateCustomerAddressResponseSchema: z.ZodObject<{
1926
583
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1927
584
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1928
585
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1929
- }, "strip", z.ZodTypeAny, {
1930
- line1?: string | null | undefined;
1931
- line2?: string | null | undefined;
1932
- city?: string | null | undefined;
1933
- region?: string | null | undefined;
1934
- postalCode?: string | null | undefined;
1935
- country?: string | null | undefined;
1936
- }, {
1937
- line1?: string | null | undefined;
1938
- line2?: string | null | undefined;
1939
- city?: string | null | undefined;
1940
- region?: string | null | undefined;
1941
- postalCode?: string | null | undefined;
1942
- country?: string | null | undefined;
1943
- }>;
586
+ }, z.core.$strip>;
1944
587
  location: z.ZodObject<{
1945
588
  latitude: z.ZodNumber;
1946
589
  longitude: z.ZodNumber;
1947
- }, "strip", z.ZodTypeAny, {
1948
- latitude: number;
1949
- longitude: number;
1950
- }, {
1951
- latitude: number;
1952
- longitude: number;
1953
- }>;
1954
- createdAt: z.ZodEffects<z.ZodString, string, string>;
1955
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
1956
- } & {
1957
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
1958
- }, "strip", z.ZodTypeAny, {
1959
- id: string;
1960
- createdAt: string;
1961
- updatedAt: string;
1962
- address: {
1963
- line1?: string | null | undefined;
1964
- line2?: string | null | undefined;
1965
- city?: string | null | undefined;
1966
- region?: string | null | undefined;
1967
- postalCode?: string | null | undefined;
1968
- country?: string | null | undefined;
1969
- };
1970
- location: {
1971
- latitude: number;
1972
- longitude: number;
1973
- };
1974
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1975
- }, {
1976
- id: string;
1977
- createdAt: string;
1978
- updatedAt: string;
1979
- address: {
1980
- line1?: string | null | undefined;
1981
- line2?: string | null | undefined;
1982
- city?: string | null | undefined;
1983
- region?: string | null | undefined;
1984
- postalCode?: string | null | undefined;
1985
- country?: string | null | undefined;
1986
- };
1987
- location: {
1988
- latitude: number;
1989
- longitude: number;
1990
- };
1991
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1992
- }>;
590
+ }, z.core.$strip>;
591
+ createdAt: z.ZodString;
592
+ updatedAt: z.ZodString;
593
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
594
+ }, z.core.$strip>;
1993
595
  type UpdateCustomerAddressResponse = z.infer<typeof updateCustomerAddressResponseSchema>;
1994
596
  declare class UpdateCustomerAddress extends AbstractApiRequest<typeof updateCustomerAddressInputSchema, typeof updateCustomerAddressResponseSchema> {
1995
597
  readonly method = "PATCH";
@@ -2003,40 +605,8 @@ declare class UpdateCustomerAddress extends AbstractApiRequest<typeof updateCust
2003
605
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2004
606
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2005
607
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2006
- }, "strip", z.ZodTypeAny, {
2007
- line1?: string | null | undefined;
2008
- line2?: string | null | undefined;
2009
- city?: string | null | undefined;
2010
- region?: string | null | undefined;
2011
- postalCode?: string | null | undefined;
2012
- country?: string | null | undefined;
2013
- }, {
2014
- line1?: string | null | undefined;
2015
- line2?: string | null | undefined;
2016
- city?: string | null | undefined;
2017
- region?: string | null | undefined;
2018
- postalCode?: string | null | undefined;
2019
- country?: string | null | undefined;
2020
- }>>;
2021
- }, "strip", z.ZodTypeAny, {
2022
- address?: {
2023
- line1?: string | null | undefined;
2024
- line2?: string | null | undefined;
2025
- city?: string | null | undefined;
2026
- region?: string | null | undefined;
2027
- postalCode?: string | null | undefined;
2028
- country?: string | null | undefined;
2029
- } | undefined;
2030
- }, {
2031
- address?: {
2032
- line1?: string | null | undefined;
2033
- line2?: string | null | undefined;
2034
- city?: string | null | undefined;
2035
- region?: string | null | undefined;
2036
- postalCode?: string | null | undefined;
2037
- country?: string | null | undefined;
2038
- } | undefined;
2039
- }>;
608
+ }, z.core.$strip>>;
609
+ }, z.core.$strip>;
2040
610
  readonly outputSchema: z.ZodObject<{
2041
611
  id: z.ZodString;
2042
612
  address: z.ZodObject<{
@@ -2046,70 +616,15 @@ declare class UpdateCustomerAddress extends AbstractApiRequest<typeof updateCust
2046
616
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2047
617
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2048
618
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2049
- }, "strip", z.ZodTypeAny, {
2050
- line1?: string | null | undefined;
2051
- line2?: string | null | undefined;
2052
- city?: string | null | undefined;
2053
- region?: string | null | undefined;
2054
- postalCode?: string | null | undefined;
2055
- country?: string | null | undefined;
2056
- }, {
2057
- line1?: string | null | undefined;
2058
- line2?: string | null | undefined;
2059
- city?: string | null | undefined;
2060
- region?: string | null | undefined;
2061
- postalCode?: string | null | undefined;
2062
- country?: string | null | undefined;
2063
- }>;
619
+ }, z.core.$strip>;
2064
620
  location: z.ZodObject<{
2065
621
  latitude: z.ZodNumber;
2066
622
  longitude: z.ZodNumber;
2067
- }, "strip", z.ZodTypeAny, {
2068
- latitude: number;
2069
- longitude: number;
2070
- }, {
2071
- latitude: number;
2072
- longitude: number;
2073
- }>;
2074
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2075
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2076
- } & {
2077
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
2078
- }, "strip", z.ZodTypeAny, {
2079
- id: string;
2080
- createdAt: string;
2081
- updatedAt: string;
2082
- address: {
2083
- line1?: string | null | undefined;
2084
- line2?: string | null | undefined;
2085
- city?: string | null | undefined;
2086
- region?: string | null | undefined;
2087
- postalCode?: string | null | undefined;
2088
- country?: string | null | undefined;
2089
- };
2090
- location: {
2091
- latitude: number;
2092
- longitude: number;
2093
- };
2094
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2095
- }, {
2096
- id: string;
2097
- createdAt: string;
2098
- updatedAt: string;
2099
- address: {
2100
- line1?: string | null | undefined;
2101
- line2?: string | null | undefined;
2102
- city?: string | null | undefined;
2103
- region?: string | null | undefined;
2104
- postalCode?: string | null | undefined;
2105
- country?: string | null | undefined;
2106
- };
2107
- location: {
2108
- latitude: number;
2109
- longitude: number;
2110
- };
2111
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2112
- }>;
623
+ }, z.core.$strip>;
624
+ createdAt: z.ZodString;
625
+ updatedAt: z.ZodString;
626
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
627
+ }, z.core.$strip>;
2113
628
  readonly querySchema: undefined;
2114
629
  readonly headersSchema: undefined;
2115
630
  private readonly customerId;
@@ -2118,83 +633,23 @@ declare class UpdateCustomerAddress extends AbstractApiRequest<typeof updateCust
2118
633
  }
2119
634
 
2120
635
  declare const createCustomerBusinessProfileInputSchema: z.ZodObject<{
2121
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
2122
- businessName: z.ZodString;
2123
- vat: z.ZodString;
2124
- taxCode: z.ZodString;
2125
- billingAddress: z.ZodObject<{
636
+ customer: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>>;
637
+ billingAddress: z.ZodNonOptional<z.ZodObject<{
2126
638
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2127
639
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2128
640
  city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2129
641
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2130
642
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2131
643
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2132
- }, "strip", z.ZodTypeAny, {
2133
- line1?: string | null | undefined;
2134
- line2?: string | null | undefined;
2135
- city?: string | null | undefined;
2136
- region?: string | null | undefined;
2137
- postalCode?: string | null | undefined;
2138
- country?: string | null | undefined;
2139
- }, {
2140
- line1?: string | null | undefined;
2141
- line2?: string | null | undefined;
2142
- city?: string | null | undefined;
2143
- region?: string | null | undefined;
2144
- postalCode?: string | null | undefined;
2145
- country?: string | null | undefined;
2146
- }>;
2147
- billingData: z.ZodEffects<z.ZodObject<{
644
+ }, z.core.$strip>>;
645
+ billingData: z.ZodNonOptional<z.ZodObject<{
2148
646
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2149
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2150
- }, "strip", z.ZodTypeAny, {
2151
- sdi?: string | null | undefined;
2152
- pec?: string | null | undefined;
2153
- }, {
2154
- sdi?: string | null | undefined;
2155
- pec?: string | null | undefined;
2156
- }>, {
2157
- sdi?: string | null | undefined;
2158
- pec?: string | null | undefined;
2159
- }, {
2160
- sdi?: string | null | undefined;
2161
- pec?: string | null | undefined;
2162
- }>;
2163
- }, "strip", z.ZodTypeAny, {
2164
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2165
- businessName: string;
2166
- vat: string;
2167
- taxCode: string;
2168
- billingAddress: {
2169
- line1?: string | null | undefined;
2170
- line2?: string | null | undefined;
2171
- city?: string | null | undefined;
2172
- region?: string | null | undefined;
2173
- postalCode?: string | null | undefined;
2174
- country?: string | null | undefined;
2175
- };
2176
- billingData: {
2177
- sdi?: string | null | undefined;
2178
- pec?: string | null | undefined;
2179
- };
2180
- }, {
2181
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2182
- businessName: string;
2183
- vat: string;
2184
- taxCode: string;
2185
- billingAddress: {
2186
- line1?: string | null | undefined;
2187
- line2?: string | null | undefined;
2188
- city?: string | null | undefined;
2189
- region?: string | null | undefined;
2190
- postalCode?: string | null | undefined;
2191
- country?: string | null | undefined;
2192
- };
2193
- billingData: {
2194
- sdi?: string | null | undefined;
2195
- pec?: string | null | undefined;
2196
- };
2197
- }>;
647
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
648
+ }, z.core.$strip>>;
649
+ businessName: z.ZodNonOptional<z.ZodString>;
650
+ vat: z.ZodNonOptional<z.ZodString>;
651
+ taxCode: z.ZodNonOptional<z.ZodString>;
652
+ }, z.core.$strip>;
2198
653
  type CreateCustomerBusinessProfileInput = z.input<typeof createCustomerBusinessProfileInputSchema>;
2199
654
  declare const createCustomerBusinessProfileResponseSchema: z.ZodObject<{
2200
655
  id: z.ZodString;
@@ -2208,165 +663,38 @@ declare const createCustomerBusinessProfileResponseSchema: z.ZodObject<{
2208
663
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2209
664
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2210
665
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2211
- }, "strip", z.ZodTypeAny, {
2212
- line1?: string | null | undefined;
2213
- line2?: string | null | undefined;
2214
- city?: string | null | undefined;
2215
- region?: string | null | undefined;
2216
- postalCode?: string | null | undefined;
2217
- country?: string | null | undefined;
2218
- }, {
2219
- line1?: string | null | undefined;
2220
- line2?: string | null | undefined;
2221
- city?: string | null | undefined;
2222
- region?: string | null | undefined;
2223
- postalCode?: string | null | undefined;
2224
- country?: string | null | undefined;
2225
- }>;
2226
- billingData: z.ZodEffects<z.ZodObject<{
666
+ }, z.core.$strip>;
667
+ billingData: z.ZodObject<{
2227
668
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2228
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2229
- }, "strip", z.ZodTypeAny, {
2230
- sdi?: string | null | undefined;
2231
- pec?: string | null | undefined;
2232
- }, {
2233
- sdi?: string | null | undefined;
2234
- pec?: string | null | undefined;
2235
- }>, {
2236
- sdi?: string | null | undefined;
2237
- pec?: string | null | undefined;
2238
- }, {
2239
- sdi?: string | null | undefined;
2240
- pec?: string | null | undefined;
2241
- }>;
2242
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2243
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2244
- } & {
2245
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
2246
- }, "strip", z.ZodTypeAny, {
2247
- id: string;
2248
- createdAt: string;
2249
- updatedAt: string;
2250
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2251
- businessName: string;
2252
- vat: string;
2253
- taxCode: string;
2254
- billingAddress: {
2255
- line1?: string | null | undefined;
2256
- line2?: string | null | undefined;
2257
- city?: string | null | undefined;
2258
- region?: string | null | undefined;
2259
- postalCode?: string | null | undefined;
2260
- country?: string | null | undefined;
2261
- };
2262
- billingData: {
2263
- sdi?: string | null | undefined;
2264
- pec?: string | null | undefined;
2265
- };
2266
- }, {
2267
- id: string;
2268
- createdAt: string;
2269
- updatedAt: string;
2270
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2271
- businessName: string;
2272
- vat: string;
2273
- taxCode: string;
2274
- billingAddress: {
2275
- line1?: string | null | undefined;
2276
- line2?: string | null | undefined;
2277
- city?: string | null | undefined;
2278
- region?: string | null | undefined;
2279
- postalCode?: string | null | undefined;
2280
- country?: string | null | undefined;
2281
- };
2282
- billingData: {
2283
- sdi?: string | null | undefined;
2284
- pec?: string | null | undefined;
2285
- };
2286
- }>;
669
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
670
+ }, z.core.$strip>;
671
+ createdAt: z.ZodString;
672
+ updatedAt: z.ZodString;
673
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
674
+ }, z.core.$strip>;
2287
675
  type CreateCustomerBusinessProfileResponse = z.infer<typeof createCustomerBusinessProfileResponseSchema>;
2288
676
  declare class CreateCustomerBusinessProfile extends AbstractApiRequest<typeof createCustomerBusinessProfileInputSchema, typeof createCustomerBusinessProfileResponseSchema> {
2289
677
  readonly method = "POST";
2290
678
  readonly contentType = "application/json";
2291
679
  readonly accept = "application/json";
2292
680
  readonly inputSchema: z.ZodObject<{
2293
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
2294
- businessName: z.ZodString;
2295
- vat: z.ZodString;
2296
- taxCode: z.ZodString;
2297
- billingAddress: z.ZodObject<{
681
+ customer: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>>;
682
+ billingAddress: z.ZodNonOptional<z.ZodObject<{
2298
683
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2299
684
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2300
685
  city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2301
686
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2302
687
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2303
688
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2304
- }, "strip", z.ZodTypeAny, {
2305
- line1?: string | null | undefined;
2306
- line2?: string | null | undefined;
2307
- city?: string | null | undefined;
2308
- region?: string | null | undefined;
2309
- postalCode?: string | null | undefined;
2310
- country?: string | null | undefined;
2311
- }, {
2312
- line1?: string | null | undefined;
2313
- line2?: string | null | undefined;
2314
- city?: string | null | undefined;
2315
- region?: string | null | undefined;
2316
- postalCode?: string | null | undefined;
2317
- country?: string | null | undefined;
2318
- }>;
2319
- billingData: z.ZodEffects<z.ZodObject<{
689
+ }, z.core.$strip>>;
690
+ billingData: z.ZodNonOptional<z.ZodObject<{
2320
691
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2321
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2322
- }, "strip", z.ZodTypeAny, {
2323
- sdi?: string | null | undefined;
2324
- pec?: string | null | undefined;
2325
- }, {
2326
- sdi?: string | null | undefined;
2327
- pec?: string | null | undefined;
2328
- }>, {
2329
- sdi?: string | null | undefined;
2330
- pec?: string | null | undefined;
2331
- }, {
2332
- sdi?: string | null | undefined;
2333
- pec?: string | null | undefined;
2334
- }>;
2335
- }, "strip", z.ZodTypeAny, {
2336
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2337
- businessName: string;
2338
- vat: string;
2339
- taxCode: string;
2340
- billingAddress: {
2341
- line1?: string | null | undefined;
2342
- line2?: string | null | undefined;
2343
- city?: string | null | undefined;
2344
- region?: string | null | undefined;
2345
- postalCode?: string | null | undefined;
2346
- country?: string | null | undefined;
2347
- };
2348
- billingData: {
2349
- sdi?: string | null | undefined;
2350
- pec?: string | null | undefined;
2351
- };
2352
- }, {
2353
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2354
- businessName: string;
2355
- vat: string;
2356
- taxCode: string;
2357
- billingAddress: {
2358
- line1?: string | null | undefined;
2359
- line2?: string | null | undefined;
2360
- city?: string | null | undefined;
2361
- region?: string | null | undefined;
2362
- postalCode?: string | null | undefined;
2363
- country?: string | null | undefined;
2364
- };
2365
- billingData: {
2366
- sdi?: string | null | undefined;
2367
- pec?: string | null | undefined;
2368
- };
2369
- }>;
692
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
693
+ }, z.core.$strip>>;
694
+ businessName: z.ZodNonOptional<z.ZodString>;
695
+ vat: z.ZodNonOptional<z.ZodString>;
696
+ taxCode: z.ZodNonOptional<z.ZodString>;
697
+ }, z.core.$strip>;
2370
698
  readonly outputSchema: z.ZodObject<{
2371
699
  id: z.ZodString;
2372
700
  businessName: z.ZodString;
@@ -2379,82 +707,15 @@ declare class CreateCustomerBusinessProfile extends AbstractApiRequest<typeof cr
2379
707
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2380
708
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2381
709
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2382
- }, "strip", z.ZodTypeAny, {
2383
- line1?: string | null | undefined;
2384
- line2?: string | null | undefined;
2385
- city?: string | null | undefined;
2386
- region?: string | null | undefined;
2387
- postalCode?: string | null | undefined;
2388
- country?: string | null | undefined;
2389
- }, {
2390
- line1?: string | null | undefined;
2391
- line2?: string | null | undefined;
2392
- city?: string | null | undefined;
2393
- region?: string | null | undefined;
2394
- postalCode?: string | null | undefined;
2395
- country?: string | null | undefined;
2396
- }>;
2397
- billingData: z.ZodEffects<z.ZodObject<{
710
+ }, z.core.$strip>;
711
+ billingData: z.ZodObject<{
2398
712
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2399
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2400
- }, "strip", z.ZodTypeAny, {
2401
- sdi?: string | null | undefined;
2402
- pec?: string | null | undefined;
2403
- }, {
2404
- sdi?: string | null | undefined;
2405
- pec?: string | null | undefined;
2406
- }>, {
2407
- sdi?: string | null | undefined;
2408
- pec?: string | null | undefined;
2409
- }, {
2410
- sdi?: string | null | undefined;
2411
- pec?: string | null | undefined;
2412
- }>;
2413
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2414
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2415
- } & {
2416
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
2417
- }, "strip", z.ZodTypeAny, {
2418
- id: string;
2419
- createdAt: string;
2420
- updatedAt: string;
2421
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2422
- businessName: string;
2423
- vat: string;
2424
- taxCode: string;
2425
- billingAddress: {
2426
- line1?: string | null | undefined;
2427
- line2?: string | null | undefined;
2428
- city?: string | null | undefined;
2429
- region?: string | null | undefined;
2430
- postalCode?: string | null | undefined;
2431
- country?: string | null | undefined;
2432
- };
2433
- billingData: {
2434
- sdi?: string | null | undefined;
2435
- pec?: string | null | undefined;
2436
- };
2437
- }, {
2438
- id: string;
2439
- createdAt: string;
2440
- updatedAt: string;
2441
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2442
- businessName: string;
2443
- vat: string;
2444
- taxCode: string;
2445
- billingAddress: {
2446
- line1?: string | null | undefined;
2447
- line2?: string | null | undefined;
2448
- city?: string | null | undefined;
2449
- region?: string | null | undefined;
2450
- postalCode?: string | null | undefined;
2451
- country?: string | null | undefined;
2452
- };
2453
- billingData: {
2454
- sdi?: string | null | undefined;
2455
- pec?: string | null | undefined;
2456
- };
2457
- }>;
713
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
714
+ }, z.core.$strip>;
715
+ createdAt: z.ZodString;
716
+ updatedAt: z.ZodString;
717
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
718
+ }, z.core.$strip>;
2458
719
  readonly querySchema: undefined;
2459
720
  readonly headersSchema: undefined;
2460
721
  constructor(input: CreateCustomerBusinessProfileInput);
@@ -2490,82 +751,15 @@ declare const getCustomerBusinessProfileDetailsResponseSchema: z.ZodObject<{
2490
751
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2491
752
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2492
753
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2493
- }, "strip", z.ZodTypeAny, {
2494
- line1?: string | null | undefined;
2495
- line2?: string | null | undefined;
2496
- city?: string | null | undefined;
2497
- region?: string | null | undefined;
2498
- postalCode?: string | null | undefined;
2499
- country?: string | null | undefined;
2500
- }, {
2501
- line1?: string | null | undefined;
2502
- line2?: string | null | undefined;
2503
- city?: string | null | undefined;
2504
- region?: string | null | undefined;
2505
- postalCode?: string | null | undefined;
2506
- country?: string | null | undefined;
2507
- }>;
2508
- billingData: z.ZodEffects<z.ZodObject<{
754
+ }, z.core.$strip>;
755
+ billingData: z.ZodObject<{
2509
756
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2510
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2511
- }, "strip", z.ZodTypeAny, {
2512
- sdi?: string | null | undefined;
2513
- pec?: string | null | undefined;
2514
- }, {
2515
- sdi?: string | null | undefined;
2516
- pec?: string | null | undefined;
2517
- }>, {
2518
- sdi?: string | null | undefined;
2519
- pec?: string | null | undefined;
2520
- }, {
2521
- sdi?: string | null | undefined;
2522
- pec?: string | null | undefined;
2523
- }>;
2524
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2525
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2526
- } & {
2527
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
2528
- }, "strip", z.ZodTypeAny, {
2529
- id: string;
2530
- createdAt: string;
2531
- updatedAt: string;
2532
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2533
- businessName: string;
2534
- vat: string;
2535
- taxCode: string;
2536
- billingAddress: {
2537
- line1?: string | null | undefined;
2538
- line2?: string | null | undefined;
2539
- city?: string | null | undefined;
2540
- region?: string | null | undefined;
2541
- postalCode?: string | null | undefined;
2542
- country?: string | null | undefined;
2543
- };
2544
- billingData: {
2545
- sdi?: string | null | undefined;
2546
- pec?: string | null | undefined;
2547
- };
2548
- }, {
2549
- id: string;
2550
- createdAt: string;
2551
- updatedAt: string;
2552
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2553
- businessName: string;
2554
- vat: string;
2555
- taxCode: string;
2556
- billingAddress: {
2557
- line1?: string | null | undefined;
2558
- line2?: string | null | undefined;
2559
- city?: string | null | undefined;
2560
- region?: string | null | undefined;
2561
- postalCode?: string | null | undefined;
2562
- country?: string | null | undefined;
2563
- };
2564
- billingData: {
2565
- sdi?: string | null | undefined;
2566
- pec?: string | null | undefined;
2567
- };
2568
- }>;
757
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
758
+ }, z.core.$strip>;
759
+ createdAt: z.ZodString;
760
+ updatedAt: z.ZodString;
761
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
762
+ }, z.core.$strip>;
2569
763
  type GetCustomerBusinessProfileDetailsResponse = z.infer<typeof getCustomerBusinessProfileDetailsResponseSchema>;
2570
764
  declare class GetCustomerBusinessProfileDetails extends AbstractApiRequest<typeof getCustomerBusinessProfileDetailsInputSchema, typeof getCustomerBusinessProfileDetailsResponseSchema> {
2571
765
  readonly method = "GET";
@@ -2584,82 +778,15 @@ declare class GetCustomerBusinessProfileDetails extends AbstractApiRequest<typeo
2584
778
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2585
779
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2586
780
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2587
- }, "strip", z.ZodTypeAny, {
2588
- line1?: string | null | undefined;
2589
- line2?: string | null | undefined;
2590
- city?: string | null | undefined;
2591
- region?: string | null | undefined;
2592
- postalCode?: string | null | undefined;
2593
- country?: string | null | undefined;
2594
- }, {
2595
- line1?: string | null | undefined;
2596
- line2?: string | null | undefined;
2597
- city?: string | null | undefined;
2598
- region?: string | null | undefined;
2599
- postalCode?: string | null | undefined;
2600
- country?: string | null | undefined;
2601
- }>;
2602
- billingData: z.ZodEffects<z.ZodObject<{
781
+ }, z.core.$strip>;
782
+ billingData: z.ZodObject<{
2603
783
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2604
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2605
- }, "strip", z.ZodTypeAny, {
2606
- sdi?: string | null | undefined;
2607
- pec?: string | null | undefined;
2608
- }, {
2609
- sdi?: string | null | undefined;
2610
- pec?: string | null | undefined;
2611
- }>, {
2612
- sdi?: string | null | undefined;
2613
- pec?: string | null | undefined;
2614
- }, {
2615
- sdi?: string | null | undefined;
2616
- pec?: string | null | undefined;
2617
- }>;
2618
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2619
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2620
- } & {
2621
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
2622
- }, "strip", z.ZodTypeAny, {
2623
- id: string;
2624
- createdAt: string;
2625
- updatedAt: string;
2626
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2627
- businessName: string;
2628
- vat: string;
2629
- taxCode: string;
2630
- billingAddress: {
2631
- line1?: string | null | undefined;
2632
- line2?: string | null | undefined;
2633
- city?: string | null | undefined;
2634
- region?: string | null | undefined;
2635
- postalCode?: string | null | undefined;
2636
- country?: string | null | undefined;
2637
- };
2638
- billingData: {
2639
- sdi?: string | null | undefined;
2640
- pec?: string | null | undefined;
2641
- };
2642
- }, {
2643
- id: string;
2644
- createdAt: string;
2645
- updatedAt: string;
2646
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
2647
- businessName: string;
2648
- vat: string;
2649
- taxCode: string;
2650
- billingAddress: {
2651
- line1?: string | null | undefined;
2652
- line2?: string | null | undefined;
2653
- city?: string | null | undefined;
2654
- region?: string | null | undefined;
2655
- postalCode?: string | null | undefined;
2656
- country?: string | null | undefined;
2657
- };
2658
- billingData: {
2659
- sdi?: string | null | undefined;
2660
- pec?: string | null | undefined;
2661
- };
2662
- }>;
784
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
785
+ }, z.core.$strip>;
786
+ createdAt: z.ZodString;
787
+ updatedAt: z.ZodString;
788
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
789
+ }, z.core.$strip>;
2663
790
  readonly querySchema: undefined;
2664
791
  readonly headersSchema: undefined;
2665
792
  private readonly customerBusinessProfileId;
@@ -2668,14 +795,22 @@ declare class GetCustomerBusinessProfileDetails extends AbstractApiRequest<typeo
2668
795
  }
2669
796
 
2670
797
  declare const getCustomerBusinessProfilesQuerySchema: z.ZodObject<{
2671
- 'order[businessName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2672
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2673
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
798
+ 'order[businessName]': z.ZodOptional<z.ZodEnum<{
799
+ asc: "asc";
800
+ desc: "desc";
801
+ }>>;
802
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
803
+ asc: "asc";
804
+ desc: "desc";
805
+ }>>;
806
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
807
+ asc: "asc";
808
+ desc: "desc";
809
+ }>>;
2674
810
  businessName: z.ZodOptional<z.ZodString>;
2675
811
  vat: z.ZodOptional<z.ZodString>;
2676
812
  taxCode: z.ZodOptional<z.ZodString>;
2677
- page: z.ZodOptional<z.ZodNumber>;
2678
- } & {
813
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2679
814
  'createdAt[before]': z.ZodOptional<z.ZodString>;
2680
815
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
2681
816
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -2684,39 +819,7 @@ declare const getCustomerBusinessProfilesQuerySchema: z.ZodObject<{
2684
819
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
2685
820
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
2686
821
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
2687
- }, "strip", z.ZodTypeAny, {
2688
- businessName?: string | undefined;
2689
- vat?: string | undefined;
2690
- taxCode?: string | undefined;
2691
- 'order[createdAt]'?: "asc" | "desc" | undefined;
2692
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
2693
- page?: number | undefined;
2694
- 'createdAt[before]'?: string | undefined;
2695
- 'createdAt[strictly_before]'?: string | undefined;
2696
- 'createdAt[after]'?: string | undefined;
2697
- 'createdAt[strictly_after]'?: string | undefined;
2698
- 'updatedAt[before]'?: string | undefined;
2699
- 'updatedAt[strictly_before]'?: string | undefined;
2700
- 'updatedAt[after]'?: string | undefined;
2701
- 'updatedAt[strictly_after]'?: string | undefined;
2702
- 'order[businessName]'?: "asc" | "desc" | undefined;
2703
- }, {
2704
- businessName?: string | undefined;
2705
- vat?: string | undefined;
2706
- taxCode?: string | undefined;
2707
- 'order[createdAt]'?: "asc" | "desc" | undefined;
2708
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
2709
- page?: number | undefined;
2710
- 'createdAt[before]'?: string | undefined;
2711
- 'createdAt[strictly_before]'?: string | undefined;
2712
- 'createdAt[after]'?: string | undefined;
2713
- 'createdAt[strictly_after]'?: string | undefined;
2714
- 'updatedAt[before]'?: string | undefined;
2715
- 'updatedAt[strictly_before]'?: string | undefined;
2716
- 'updatedAt[after]'?: string | undefined;
2717
- 'updatedAt[strictly_after]'?: string | undefined;
2718
- 'order[businessName]'?: "asc" | "desc" | undefined;
2719
- }>;
822
+ }, z.core.$strip>;
2720
823
  type GetCustomerBusinessProfilesQueryParams = z.infer<typeof getCustomerBusinessProfilesQuerySchema>;
2721
824
  declare const getCustomerBusinessProfilesInputSchema: z.ZodUndefined;
2722
825
  type GetCustomerBusinessProfilesInput = z.infer<typeof getCustomerBusinessProfilesInputSchema>;
@@ -2733,78 +836,14 @@ declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
2733
836
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2734
837
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2735
838
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2736
- }, "strip", z.ZodTypeAny, {
2737
- line1?: string | null | undefined;
2738
- line2?: string | null | undefined;
2739
- city?: string | null | undefined;
2740
- region?: string | null | undefined;
2741
- postalCode?: string | null | undefined;
2742
- country?: string | null | undefined;
2743
- }, {
2744
- line1?: string | null | undefined;
2745
- line2?: string | null | undefined;
2746
- city?: string | null | undefined;
2747
- region?: string | null | undefined;
2748
- postalCode?: string | null | undefined;
2749
- country?: string | null | undefined;
2750
- }>;
2751
- billingData: z.ZodEffects<z.ZodObject<{
839
+ }, z.core.$strip>;
840
+ billingData: z.ZodObject<{
2752
841
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2753
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2754
- }, "strip", z.ZodTypeAny, {
2755
- sdi?: string | null | undefined;
2756
- pec?: string | null | undefined;
2757
- }, {
2758
- sdi?: string | null | undefined;
2759
- pec?: string | null | undefined;
2760
- }>, {
2761
- sdi?: string | null | undefined;
2762
- pec?: string | null | undefined;
2763
- }, {
2764
- sdi?: string | null | undefined;
2765
- pec?: string | null | undefined;
2766
- }>;
2767
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2768
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2769
- }, "strip", z.ZodTypeAny, {
2770
- id: string;
2771
- createdAt: string;
2772
- updatedAt: string;
2773
- businessName: string;
2774
- vat: string;
2775
- taxCode: string;
2776
- billingAddress: {
2777
- line1?: string | null | undefined;
2778
- line2?: string | null | undefined;
2779
- city?: string | null | undefined;
2780
- region?: string | null | undefined;
2781
- postalCode?: string | null | undefined;
2782
- country?: string | null | undefined;
2783
- };
2784
- billingData: {
2785
- sdi?: string | null | undefined;
2786
- pec?: string | null | undefined;
2787
- };
2788
- }, {
2789
- id: string;
2790
- createdAt: string;
2791
- updatedAt: string;
2792
- businessName: string;
2793
- vat: string;
2794
- taxCode: string;
2795
- billingAddress: {
2796
- line1?: string | null | undefined;
2797
- line2?: string | null | undefined;
2798
- city?: string | null | undefined;
2799
- region?: string | null | undefined;
2800
- postalCode?: string | null | undefined;
2801
- country?: string | null | undefined;
2802
- };
2803
- billingData: {
2804
- sdi?: string | null | undefined;
2805
- pec?: string | null | undefined;
2806
- };
2807
- }>, "many">;
842
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
843
+ }, z.core.$strip>;
844
+ createdAt: z.ZodString;
845
+ updatedAt: z.ZodString;
846
+ }, z.core.$strip>>;
2808
847
  pagination: z.ZodObject<{
2809
848
  from: z.ZodNumber;
2810
849
  to: z.ZodNumber;
@@ -2812,80 +851,8 @@ declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
2812
851
  totalItems: z.ZodNumber;
2813
852
  currentPage: z.ZodNumber;
2814
853
  lastPage: z.ZodNumber;
2815
- }, "strip", z.ZodTypeAny, {
2816
- from: number;
2817
- to: number;
2818
- itemsPerPage: number;
2819
- totalItems: number;
2820
- currentPage: number;
2821
- lastPage: number;
2822
- }, {
2823
- from: number;
2824
- to: number;
2825
- itemsPerPage: number;
2826
- totalItems: number;
2827
- currentPage: number;
2828
- lastPage: number;
2829
- }>;
2830
- }, "strip", z.ZodTypeAny, {
2831
- data: {
2832
- id: string;
2833
- createdAt: string;
2834
- updatedAt: string;
2835
- businessName: string;
2836
- vat: string;
2837
- taxCode: string;
2838
- billingAddress: {
2839
- line1?: string | null | undefined;
2840
- line2?: string | null | undefined;
2841
- city?: string | null | undefined;
2842
- region?: string | null | undefined;
2843
- postalCode?: string | null | undefined;
2844
- country?: string | null | undefined;
2845
- };
2846
- billingData: {
2847
- sdi?: string | null | undefined;
2848
- pec?: string | null | undefined;
2849
- };
2850
- }[];
2851
- pagination: {
2852
- from: number;
2853
- to: number;
2854
- itemsPerPage: number;
2855
- totalItems: number;
2856
- currentPage: number;
2857
- lastPage: number;
2858
- };
2859
- }, {
2860
- data: {
2861
- id: string;
2862
- createdAt: string;
2863
- updatedAt: string;
2864
- businessName: string;
2865
- vat: string;
2866
- taxCode: string;
2867
- billingAddress: {
2868
- line1?: string | null | undefined;
2869
- line2?: string | null | undefined;
2870
- city?: string | null | undefined;
2871
- region?: string | null | undefined;
2872
- postalCode?: string | null | undefined;
2873
- country?: string | null | undefined;
2874
- };
2875
- billingData: {
2876
- sdi?: string | null | undefined;
2877
- pec?: string | null | undefined;
2878
- };
2879
- }[];
2880
- pagination: {
2881
- from: number;
2882
- to: number;
2883
- itemsPerPage: number;
2884
- totalItems: number;
2885
- currentPage: number;
2886
- lastPage: number;
2887
- };
2888
- }>;
854
+ }, z.core.$strip>;
855
+ }, z.core.$strip>;
2889
856
  type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
2890
857
  declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getCustomerBusinessProfilesInputSchema, typeof getCustomerBusinessProfilesResponseSchema, GetCustomerBusinessProfilesQueryParams> {
2891
858
  readonly method = "GET";
@@ -2905,78 +872,14 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
2905
872
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2906
873
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2907
874
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2908
- }, "strip", z.ZodTypeAny, {
2909
- line1?: string | null | undefined;
2910
- line2?: string | null | undefined;
2911
- city?: string | null | undefined;
2912
- region?: string | null | undefined;
2913
- postalCode?: string | null | undefined;
2914
- country?: string | null | undefined;
2915
- }, {
2916
- line1?: string | null | undefined;
2917
- line2?: string | null | undefined;
2918
- city?: string | null | undefined;
2919
- region?: string | null | undefined;
2920
- postalCode?: string | null | undefined;
2921
- country?: string | null | undefined;
2922
- }>;
2923
- billingData: z.ZodEffects<z.ZodObject<{
875
+ }, z.core.$strip>;
876
+ billingData: z.ZodObject<{
2924
877
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2925
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2926
- }, "strip", z.ZodTypeAny, {
2927
- sdi?: string | null | undefined;
2928
- pec?: string | null | undefined;
2929
- }, {
2930
- sdi?: string | null | undefined;
2931
- pec?: string | null | undefined;
2932
- }>, {
2933
- sdi?: string | null | undefined;
2934
- pec?: string | null | undefined;
2935
- }, {
2936
- sdi?: string | null | undefined;
2937
- pec?: string | null | undefined;
2938
- }>;
2939
- createdAt: z.ZodEffects<z.ZodString, string, string>;
2940
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
2941
- }, "strip", z.ZodTypeAny, {
2942
- id: string;
2943
- createdAt: string;
2944
- updatedAt: string;
2945
- businessName: string;
2946
- vat: string;
2947
- taxCode: string;
2948
- billingAddress: {
2949
- line1?: string | null | undefined;
2950
- line2?: string | null | undefined;
2951
- city?: string | null | undefined;
2952
- region?: string | null | undefined;
2953
- postalCode?: string | null | undefined;
2954
- country?: string | null | undefined;
2955
- };
2956
- billingData: {
2957
- sdi?: string | null | undefined;
2958
- pec?: string | null | undefined;
2959
- };
2960
- }, {
2961
- id: string;
2962
- createdAt: string;
2963
- updatedAt: string;
2964
- businessName: string;
2965
- vat: string;
2966
- taxCode: string;
2967
- billingAddress: {
2968
- line1?: string | null | undefined;
2969
- line2?: string | null | undefined;
2970
- city?: string | null | undefined;
2971
- region?: string | null | undefined;
2972
- postalCode?: string | null | undefined;
2973
- country?: string | null | undefined;
2974
- };
2975
- billingData: {
2976
- sdi?: string | null | undefined;
2977
- pec?: string | null | undefined;
2978
- };
2979
- }>, "many">;
878
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
879
+ }, z.core.$strip>;
880
+ createdAt: z.ZodString;
881
+ updatedAt: z.ZodString;
882
+ }, z.core.$strip>>;
2980
883
  pagination: z.ZodObject<{
2981
884
  from: z.ZodNumber;
2982
885
  to: z.ZodNumber;
@@ -2984,89 +887,25 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
2984
887
  totalItems: z.ZodNumber;
2985
888
  currentPage: z.ZodNumber;
2986
889
  lastPage: z.ZodNumber;
2987
- }, "strip", z.ZodTypeAny, {
2988
- from: number;
2989
- to: number;
2990
- itemsPerPage: number;
2991
- totalItems: number;
2992
- currentPage: number;
2993
- lastPage: number;
2994
- }, {
2995
- from: number;
2996
- to: number;
2997
- itemsPerPage: number;
2998
- totalItems: number;
2999
- currentPage: number;
3000
- lastPage: number;
3001
- }>;
3002
- }, "strip", z.ZodTypeAny, {
3003
- data: {
3004
- id: string;
3005
- createdAt: string;
3006
- updatedAt: string;
3007
- businessName: string;
3008
- vat: string;
3009
- taxCode: string;
3010
- billingAddress: {
3011
- line1?: string | null | undefined;
3012
- line2?: string | null | undefined;
3013
- city?: string | null | undefined;
3014
- region?: string | null | undefined;
3015
- postalCode?: string | null | undefined;
3016
- country?: string | null | undefined;
3017
- };
3018
- billingData: {
3019
- sdi?: string | null | undefined;
3020
- pec?: string | null | undefined;
3021
- };
3022
- }[];
3023
- pagination: {
3024
- from: number;
3025
- to: number;
3026
- itemsPerPage: number;
3027
- totalItems: number;
3028
- currentPage: number;
3029
- lastPage: number;
3030
- };
3031
- }, {
3032
- data: {
3033
- id: string;
3034
- createdAt: string;
3035
- updatedAt: string;
3036
- businessName: string;
3037
- vat: string;
3038
- taxCode: string;
3039
- billingAddress: {
3040
- line1?: string | null | undefined;
3041
- line2?: string | null | undefined;
3042
- city?: string | null | undefined;
3043
- region?: string | null | undefined;
3044
- postalCode?: string | null | undefined;
3045
- country?: string | null | undefined;
3046
- };
3047
- billingData: {
3048
- sdi?: string | null | undefined;
3049
- pec?: string | null | undefined;
3050
- };
3051
- }[];
3052
- pagination: {
3053
- from: number;
3054
- to: number;
3055
- itemsPerPage: number;
3056
- totalItems: number;
3057
- currentPage: number;
3058
- lastPage: number;
3059
- };
3060
- }>;
890
+ }, z.core.$strip>;
891
+ }, z.core.$strip>;
3061
892
  readonly querySchema: z.ZodObject<{
3062
- 'order[businessName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3063
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3064
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
893
+ 'order[businessName]': z.ZodOptional<z.ZodEnum<{
894
+ asc: "asc";
895
+ desc: "desc";
896
+ }>>;
897
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
898
+ asc: "asc";
899
+ desc: "desc";
900
+ }>>;
901
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
902
+ asc: "asc";
903
+ desc: "desc";
904
+ }>>;
3065
905
  businessName: z.ZodOptional<z.ZodString>;
3066
906
  vat: z.ZodOptional<z.ZodString>;
3067
907
  taxCode: z.ZodOptional<z.ZodString>;
3068
- page: z.ZodOptional<z.ZodNumber>;
3069
- } & {
908
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3070
909
  'createdAt[before]': z.ZodOptional<z.ZodString>;
3071
910
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3072
911
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -3075,39 +914,7 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
3075
914
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3076
915
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
3077
916
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
3078
- }, "strip", z.ZodTypeAny, {
3079
- businessName?: string | undefined;
3080
- vat?: string | undefined;
3081
- taxCode?: string | undefined;
3082
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3083
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3084
- page?: number | undefined;
3085
- 'createdAt[before]'?: string | undefined;
3086
- 'createdAt[strictly_before]'?: string | undefined;
3087
- 'createdAt[after]'?: string | undefined;
3088
- 'createdAt[strictly_after]'?: string | undefined;
3089
- 'updatedAt[before]'?: string | undefined;
3090
- 'updatedAt[strictly_before]'?: string | undefined;
3091
- 'updatedAt[after]'?: string | undefined;
3092
- 'updatedAt[strictly_after]'?: string | undefined;
3093
- 'order[businessName]'?: "asc" | "desc" | undefined;
3094
- }, {
3095
- businessName?: string | undefined;
3096
- vat?: string | undefined;
3097
- taxCode?: string | undefined;
3098
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3099
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3100
- page?: number | undefined;
3101
- 'createdAt[before]'?: string | undefined;
3102
- 'createdAt[strictly_before]'?: string | undefined;
3103
- 'createdAt[after]'?: string | undefined;
3104
- 'createdAt[strictly_after]'?: string | undefined;
3105
- 'updatedAt[before]'?: string | undefined;
3106
- 'updatedAt[strictly_before]'?: string | undefined;
3107
- 'updatedAt[after]'?: string | undefined;
3108
- 'updatedAt[strictly_after]'?: string | undefined;
3109
- 'order[businessName]'?: "asc" | "desc" | undefined;
3110
- }>;
917
+ }, z.core.$strip>;
3111
918
  readonly headersSchema: undefined;
3112
919
  constructor(options?: {
3113
920
  query?: GetCustomerBusinessProfilesQueryParams;
@@ -3117,13 +924,21 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
3117
924
  }
3118
925
 
3119
926
  declare const getCustomerBusinessProfilesForCustomerQuerySchema: z.ZodObject<{
3120
- 'order[businessName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3121
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3122
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
927
+ 'order[businessName]': z.ZodOptional<z.ZodEnum<{
928
+ asc: "asc";
929
+ desc: "desc";
930
+ }>>;
931
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
932
+ asc: "asc";
933
+ desc: "desc";
934
+ }>>;
935
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
936
+ asc: "asc";
937
+ desc: "desc";
938
+ }>>;
3123
939
  businessName: z.ZodOptional<z.ZodString>;
3124
940
  vat: z.ZodOptional<z.ZodString>;
3125
941
  taxCode: z.ZodOptional<z.ZodString>;
3126
- } & {
3127
942
  'createdAt[before]': z.ZodOptional<z.ZodString>;
3128
943
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3129
944
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -3132,37 +947,7 @@ declare const getCustomerBusinessProfilesForCustomerQuerySchema: z.ZodObject<{
3132
947
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3133
948
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
3134
949
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
3135
- }, "strip", z.ZodTypeAny, {
3136
- businessName?: string | undefined;
3137
- vat?: string | undefined;
3138
- taxCode?: string | undefined;
3139
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3140
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3141
- 'createdAt[before]'?: string | undefined;
3142
- 'createdAt[strictly_before]'?: string | undefined;
3143
- 'createdAt[after]'?: string | undefined;
3144
- 'createdAt[strictly_after]'?: string | undefined;
3145
- 'updatedAt[before]'?: string | undefined;
3146
- 'updatedAt[strictly_before]'?: string | undefined;
3147
- 'updatedAt[after]'?: string | undefined;
3148
- 'updatedAt[strictly_after]'?: string | undefined;
3149
- 'order[businessName]'?: "asc" | "desc" | undefined;
3150
- }, {
3151
- businessName?: string | undefined;
3152
- vat?: string | undefined;
3153
- taxCode?: string | undefined;
3154
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3155
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3156
- 'createdAt[before]'?: string | undefined;
3157
- 'createdAt[strictly_before]'?: string | undefined;
3158
- 'createdAt[after]'?: string | undefined;
3159
- 'createdAt[strictly_after]'?: string | undefined;
3160
- 'updatedAt[before]'?: string | undefined;
3161
- 'updatedAt[strictly_before]'?: string | undefined;
3162
- 'updatedAt[after]'?: string | undefined;
3163
- 'updatedAt[strictly_after]'?: string | undefined;
3164
- 'order[businessName]'?: "asc" | "desc" | undefined;
3165
- }>;
950
+ }, z.core.$strip>;
3166
951
  type GetCustomerBusinessProfilesForCustomerQueryParams = z.infer<typeof getCustomerBusinessProfilesForCustomerQuerySchema>;
3167
952
  declare const getCustomerBusinessProfilesForCustomerInputSchema: z.ZodUndefined;
3168
953
  type GetCustomerBusinessProfilesForCustomerInput = z.input<typeof getCustomerBusinessProfilesForCustomerInputSchema>;
@@ -3178,78 +963,14 @@ declare const getCustomerBusinessProfilesForCustomerResponseSchema: z.ZodArray<z
3178
963
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3179
964
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3180
965
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3181
- }, "strip", z.ZodTypeAny, {
3182
- line1?: string | null | undefined;
3183
- line2?: string | null | undefined;
3184
- city?: string | null | undefined;
3185
- region?: string | null | undefined;
3186
- postalCode?: string | null | undefined;
3187
- country?: string | null | undefined;
3188
- }, {
3189
- line1?: string | null | undefined;
3190
- line2?: string | null | undefined;
3191
- city?: string | null | undefined;
3192
- region?: string | null | undefined;
3193
- postalCode?: string | null | undefined;
3194
- country?: string | null | undefined;
3195
- }>;
3196
- billingData: z.ZodEffects<z.ZodObject<{
966
+ }, z.core.$strip>;
967
+ billingData: z.ZodObject<{
3197
968
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3198
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3199
- }, "strip", z.ZodTypeAny, {
3200
- sdi?: string | null | undefined;
3201
- pec?: string | null | undefined;
3202
- }, {
3203
- sdi?: string | null | undefined;
3204
- pec?: string | null | undefined;
3205
- }>, {
3206
- sdi?: string | null | undefined;
3207
- pec?: string | null | undefined;
3208
- }, {
3209
- sdi?: string | null | undefined;
3210
- pec?: string | null | undefined;
3211
- }>;
3212
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3213
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3214
- }, "strip", z.ZodTypeAny, {
3215
- id: string;
3216
- createdAt: string;
3217
- updatedAt: string;
3218
- businessName: string;
3219
- vat: string;
3220
- taxCode: string;
3221
- billingAddress: {
3222
- line1?: string | null | undefined;
3223
- line2?: string | null | undefined;
3224
- city?: string | null | undefined;
3225
- region?: string | null | undefined;
3226
- postalCode?: string | null | undefined;
3227
- country?: string | null | undefined;
3228
- };
3229
- billingData: {
3230
- sdi?: string | null | undefined;
3231
- pec?: string | null | undefined;
3232
- };
3233
- }, {
3234
- id: string;
3235
- createdAt: string;
3236
- updatedAt: string;
3237
- businessName: string;
3238
- vat: string;
3239
- taxCode: string;
3240
- billingAddress: {
3241
- line1?: string | null | undefined;
3242
- line2?: string | null | undefined;
3243
- city?: string | null | undefined;
3244
- region?: string | null | undefined;
3245
- postalCode?: string | null | undefined;
3246
- country?: string | null | undefined;
3247
- };
3248
- billingData: {
3249
- sdi?: string | null | undefined;
3250
- pec?: string | null | undefined;
3251
- };
3252
- }>, "many">;
969
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
970
+ }, z.core.$strip>;
971
+ createdAt: z.ZodString;
972
+ updatedAt: z.ZodString;
973
+ }, z.core.$strip>>;
3253
974
  type GetCustomerBusinessProfilesForCustomerResponse = z.infer<typeof getCustomerBusinessProfilesForCustomerResponseSchema>;
3254
975
  declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<typeof getCustomerBusinessProfilesForCustomerInputSchema, typeof getCustomerBusinessProfilesForCustomerResponseSchema, GetCustomerBusinessProfilesForCustomerQueryParams> {
3255
976
  readonly method = "GET";
@@ -3268,86 +989,30 @@ declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<
3268
989
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3269
990
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3270
991
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3271
- }, "strip", z.ZodTypeAny, {
3272
- line1?: string | null | undefined;
3273
- line2?: string | null | undefined;
3274
- city?: string | null | undefined;
3275
- region?: string | null | undefined;
3276
- postalCode?: string | null | undefined;
3277
- country?: string | null | undefined;
3278
- }, {
3279
- line1?: string | null | undefined;
3280
- line2?: string | null | undefined;
3281
- city?: string | null | undefined;
3282
- region?: string | null | undefined;
3283
- postalCode?: string | null | undefined;
3284
- country?: string | null | undefined;
3285
- }>;
3286
- billingData: z.ZodEffects<z.ZodObject<{
992
+ }, z.core.$strip>;
993
+ billingData: z.ZodObject<{
3287
994
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3288
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3289
- }, "strip", z.ZodTypeAny, {
3290
- sdi?: string | null | undefined;
3291
- pec?: string | null | undefined;
3292
- }, {
3293
- sdi?: string | null | undefined;
3294
- pec?: string | null | undefined;
3295
- }>, {
3296
- sdi?: string | null | undefined;
3297
- pec?: string | null | undefined;
3298
- }, {
3299
- sdi?: string | null | undefined;
3300
- pec?: string | null | undefined;
3301
- }>;
3302
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3303
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3304
- }, "strip", z.ZodTypeAny, {
3305
- id: string;
3306
- createdAt: string;
3307
- updatedAt: string;
3308
- businessName: string;
3309
- vat: string;
3310
- taxCode: string;
3311
- billingAddress: {
3312
- line1?: string | null | undefined;
3313
- line2?: string | null | undefined;
3314
- city?: string | null | undefined;
3315
- region?: string | null | undefined;
3316
- postalCode?: string | null | undefined;
3317
- country?: string | null | undefined;
3318
- };
3319
- billingData: {
3320
- sdi?: string | null | undefined;
3321
- pec?: string | null | undefined;
3322
- };
3323
- }, {
3324
- id: string;
3325
- createdAt: string;
3326
- updatedAt: string;
3327
- businessName: string;
3328
- vat: string;
3329
- taxCode: string;
3330
- billingAddress: {
3331
- line1?: string | null | undefined;
3332
- line2?: string | null | undefined;
3333
- city?: string | null | undefined;
3334
- region?: string | null | undefined;
3335
- postalCode?: string | null | undefined;
3336
- country?: string | null | undefined;
3337
- };
3338
- billingData: {
3339
- sdi?: string | null | undefined;
3340
- pec?: string | null | undefined;
3341
- };
3342
- }>, "many">;
995
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
996
+ }, z.core.$strip>;
997
+ createdAt: z.ZodString;
998
+ updatedAt: z.ZodString;
999
+ }, z.core.$strip>>;
3343
1000
  readonly querySchema: z.ZodObject<{
3344
- 'order[businessName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3345
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3346
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1001
+ 'order[businessName]': z.ZodOptional<z.ZodEnum<{
1002
+ asc: "asc";
1003
+ desc: "desc";
1004
+ }>>;
1005
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
1006
+ asc: "asc";
1007
+ desc: "desc";
1008
+ }>>;
1009
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
1010
+ asc: "asc";
1011
+ desc: "desc";
1012
+ }>>;
3347
1013
  businessName: z.ZodOptional<z.ZodString>;
3348
1014
  vat: z.ZodOptional<z.ZodString>;
3349
1015
  taxCode: z.ZodOptional<z.ZodString>;
3350
- } & {
3351
1016
  'createdAt[before]': z.ZodOptional<z.ZodString>;
3352
1017
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3353
1018
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -3356,37 +1021,7 @@ declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<
3356
1021
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3357
1022
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
3358
1023
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
3359
- }, "strip", z.ZodTypeAny, {
3360
- businessName?: string | undefined;
3361
- vat?: string | undefined;
3362
- taxCode?: string | undefined;
3363
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3364
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3365
- 'createdAt[before]'?: string | undefined;
3366
- 'createdAt[strictly_before]'?: string | undefined;
3367
- 'createdAt[after]'?: string | undefined;
3368
- 'createdAt[strictly_after]'?: string | undefined;
3369
- 'updatedAt[before]'?: string | undefined;
3370
- 'updatedAt[strictly_before]'?: string | undefined;
3371
- 'updatedAt[after]'?: string | undefined;
3372
- 'updatedAt[strictly_after]'?: string | undefined;
3373
- 'order[businessName]'?: "asc" | "desc" | undefined;
3374
- }, {
3375
- businessName?: string | undefined;
3376
- vat?: string | undefined;
3377
- taxCode?: string | undefined;
3378
- 'order[createdAt]'?: "asc" | "desc" | undefined;
3379
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
3380
- 'createdAt[before]'?: string | undefined;
3381
- 'createdAt[strictly_before]'?: string | undefined;
3382
- 'createdAt[after]'?: string | undefined;
3383
- 'createdAt[strictly_after]'?: string | undefined;
3384
- 'updatedAt[before]'?: string | undefined;
3385
- 'updatedAt[strictly_before]'?: string | undefined;
3386
- 'updatedAt[after]'?: string | undefined;
3387
- 'updatedAt[strictly_after]'?: string | undefined;
3388
- 'order[businessName]'?: "asc" | "desc" | undefined;
3389
- }>;
1024
+ }, z.core.$strip>;
3390
1025
  readonly headersSchema: undefined;
3391
1026
  private readonly customerId;
3392
1027
  constructor(customerId: string, options?: {
@@ -3397,9 +1032,6 @@ declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<
3397
1032
  }
3398
1033
 
3399
1034
  declare const updateCustomerBusinessProfileInputSchema: z.ZodObject<{
3400
- businessName: z.ZodOptional<z.ZodString>;
3401
- vat: z.ZodOptional<z.ZodString>;
3402
- taxCode: z.ZodOptional<z.ZodString>;
3403
1035
  billingAddress: z.ZodOptional<z.ZodObject<{
3404
1036
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3405
1037
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3407,70 +1039,15 @@ declare const updateCustomerBusinessProfileInputSchema: z.ZodObject<{
3407
1039
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3408
1040
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3409
1041
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3410
- }, "strip", z.ZodTypeAny, {
3411
- line1?: string | null | undefined;
3412
- line2?: string | null | undefined;
3413
- city?: string | null | undefined;
3414
- region?: string | null | undefined;
3415
- postalCode?: string | null | undefined;
3416
- country?: string | null | undefined;
3417
- }, {
3418
- line1?: string | null | undefined;
3419
- line2?: string | null | undefined;
3420
- city?: string | null | undefined;
3421
- region?: string | null | undefined;
3422
- postalCode?: string | null | undefined;
3423
- country?: string | null | undefined;
3424
- }>>;
3425
- billingData: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1042
+ }, z.core.$strip>>;
1043
+ billingData: z.ZodOptional<z.ZodObject<{
3426
1044
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3427
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3428
- }, "strip", z.ZodTypeAny, {
3429
- sdi?: string | null | undefined;
3430
- pec?: string | null | undefined;
3431
- }, {
3432
- sdi?: string | null | undefined;
3433
- pec?: string | null | undefined;
3434
- }>, {
3435
- sdi?: string | null | undefined;
3436
- pec?: string | null | undefined;
3437
- }, {
3438
- sdi?: string | null | undefined;
3439
- pec?: string | null | undefined;
3440
- }>>;
3441
- }, "strip", z.ZodTypeAny, {
3442
- businessName?: string | undefined;
3443
- vat?: string | undefined;
3444
- taxCode?: string | undefined;
3445
- billingAddress?: {
3446
- line1?: string | null | undefined;
3447
- line2?: string | null | undefined;
3448
- city?: string | null | undefined;
3449
- region?: string | null | undefined;
3450
- postalCode?: string | null | undefined;
3451
- country?: string | null | undefined;
3452
- } | undefined;
3453
- billingData?: {
3454
- sdi?: string | null | undefined;
3455
- pec?: string | null | undefined;
3456
- } | undefined;
3457
- }, {
3458
- businessName?: string | undefined;
3459
- vat?: string | undefined;
3460
- taxCode?: string | undefined;
3461
- billingAddress?: {
3462
- line1?: string | null | undefined;
3463
- line2?: string | null | undefined;
3464
- city?: string | null | undefined;
3465
- region?: string | null | undefined;
3466
- postalCode?: string | null | undefined;
3467
- country?: string | null | undefined;
3468
- } | undefined;
3469
- billingData?: {
3470
- sdi?: string | null | undefined;
3471
- pec?: string | null | undefined;
3472
- } | undefined;
3473
- }>;
1045
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
1046
+ }, z.core.$strip>>;
1047
+ businessName: z.ZodOptional<z.ZodString>;
1048
+ vat: z.ZodOptional<z.ZodString>;
1049
+ taxCode: z.ZodOptional<z.ZodString>;
1050
+ }, z.core.$strip>;
3474
1051
  type UpdateCustomerBusinessProfileInput = z.input<typeof updateCustomerBusinessProfileInputSchema>;
3475
1052
  declare const updateCustomerBusinessProfileResponseSchema: z.ZodObject<{
3476
1053
  id: z.ZodString;
@@ -3484,91 +1061,21 @@ declare const updateCustomerBusinessProfileResponseSchema: z.ZodObject<{
3484
1061
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3485
1062
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3486
1063
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3487
- }, "strip", z.ZodTypeAny, {
3488
- line1?: string | null | undefined;
3489
- line2?: string | null | undefined;
3490
- city?: string | null | undefined;
3491
- region?: string | null | undefined;
3492
- postalCode?: string | null | undefined;
3493
- country?: string | null | undefined;
3494
- }, {
3495
- line1?: string | null | undefined;
3496
- line2?: string | null | undefined;
3497
- city?: string | null | undefined;
3498
- region?: string | null | undefined;
3499
- postalCode?: string | null | undefined;
3500
- country?: string | null | undefined;
3501
- }>;
3502
- billingData: z.ZodEffects<z.ZodObject<{
1064
+ }, z.core.$strip>;
1065
+ billingData: z.ZodObject<{
3503
1066
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3504
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3505
- }, "strip", z.ZodTypeAny, {
3506
- sdi?: string | null | undefined;
3507
- pec?: string | null | undefined;
3508
- }, {
3509
- sdi?: string | null | undefined;
3510
- pec?: string | null | undefined;
3511
- }>, {
3512
- sdi?: string | null | undefined;
3513
- pec?: string | null | undefined;
3514
- }, {
3515
- sdi?: string | null | undefined;
3516
- pec?: string | null | undefined;
3517
- }>;
3518
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3519
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3520
- } & {
3521
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
3522
- }, "strip", z.ZodTypeAny, {
3523
- id: string;
3524
- createdAt: string;
3525
- updatedAt: string;
3526
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
3527
- businessName: string;
3528
- vat: string;
3529
- taxCode: string;
3530
- billingAddress: {
3531
- line1?: string | null | undefined;
3532
- line2?: string | null | undefined;
3533
- city?: string | null | undefined;
3534
- region?: string | null | undefined;
3535
- postalCode?: string | null | undefined;
3536
- country?: string | null | undefined;
3537
- };
3538
- billingData: {
3539
- sdi?: string | null | undefined;
3540
- pec?: string | null | undefined;
3541
- };
3542
- }, {
3543
- id: string;
3544
- createdAt: string;
3545
- updatedAt: string;
3546
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
3547
- businessName: string;
3548
- vat: string;
3549
- taxCode: string;
3550
- billingAddress: {
3551
- line1?: string | null | undefined;
3552
- line2?: string | null | undefined;
3553
- city?: string | null | undefined;
3554
- region?: string | null | undefined;
3555
- postalCode?: string | null | undefined;
3556
- country?: string | null | undefined;
3557
- };
3558
- billingData: {
3559
- sdi?: string | null | undefined;
3560
- pec?: string | null | undefined;
3561
- };
3562
- }>;
1067
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
1068
+ }, z.core.$strip>;
1069
+ createdAt: z.ZodString;
1070
+ updatedAt: z.ZodString;
1071
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
1072
+ }, z.core.$strip>;
3563
1073
  type UpdateCustomerBusinessProfileResponse = z.output<typeof updateCustomerBusinessProfileResponseSchema>;
3564
1074
  declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<typeof updateCustomerBusinessProfileInputSchema, typeof updateCustomerBusinessProfileResponseSchema> {
3565
1075
  readonly method = "PATCH";
3566
1076
  readonly contentType = "application/merge-patch+json";
3567
1077
  readonly accept = "application/json";
3568
1078
  readonly inputSchema: z.ZodObject<{
3569
- businessName: z.ZodOptional<z.ZodString>;
3570
- vat: z.ZodOptional<z.ZodString>;
3571
- taxCode: z.ZodOptional<z.ZodString>;
3572
1079
  billingAddress: z.ZodOptional<z.ZodObject<{
3573
1080
  line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3574
1081
  line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3576,70 +1083,15 @@ declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<typeof up
3576
1083
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3577
1084
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3578
1085
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3579
- }, "strip", z.ZodTypeAny, {
3580
- line1?: string | null | undefined;
3581
- line2?: string | null | undefined;
3582
- city?: string | null | undefined;
3583
- region?: string | null | undefined;
3584
- postalCode?: string | null | undefined;
3585
- country?: string | null | undefined;
3586
- }, {
3587
- line1?: string | null | undefined;
3588
- line2?: string | null | undefined;
3589
- city?: string | null | undefined;
3590
- region?: string | null | undefined;
3591
- postalCode?: string | null | undefined;
3592
- country?: string | null | undefined;
3593
- }>>;
3594
- billingData: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1086
+ }, z.core.$strip>>;
1087
+ billingData: z.ZodOptional<z.ZodObject<{
3595
1088
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3596
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3597
- }, "strip", z.ZodTypeAny, {
3598
- sdi?: string | null | undefined;
3599
- pec?: string | null | undefined;
3600
- }, {
3601
- sdi?: string | null | undefined;
3602
- pec?: string | null | undefined;
3603
- }>, {
3604
- sdi?: string | null | undefined;
3605
- pec?: string | null | undefined;
3606
- }, {
3607
- sdi?: string | null | undefined;
3608
- pec?: string | null | undefined;
3609
- }>>;
3610
- }, "strip", z.ZodTypeAny, {
3611
- businessName?: string | undefined;
3612
- vat?: string | undefined;
3613
- taxCode?: string | undefined;
3614
- billingAddress?: {
3615
- line1?: string | null | undefined;
3616
- line2?: string | null | undefined;
3617
- city?: string | null | undefined;
3618
- region?: string | null | undefined;
3619
- postalCode?: string | null | undefined;
3620
- country?: string | null | undefined;
3621
- } | undefined;
3622
- billingData?: {
3623
- sdi?: string | null | undefined;
3624
- pec?: string | null | undefined;
3625
- } | undefined;
3626
- }, {
3627
- businessName?: string | undefined;
3628
- vat?: string | undefined;
3629
- taxCode?: string | undefined;
3630
- billingAddress?: {
3631
- line1?: string | null | undefined;
3632
- line2?: string | null | undefined;
3633
- city?: string | null | undefined;
3634
- region?: string | null | undefined;
3635
- postalCode?: string | null | undefined;
3636
- country?: string | null | undefined;
3637
- } | undefined;
3638
- billingData?: {
3639
- sdi?: string | null | undefined;
3640
- pec?: string | null | undefined;
3641
- } | undefined;
3642
- }>;
1089
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
1090
+ }, z.core.$strip>>;
1091
+ businessName: z.ZodOptional<z.ZodString>;
1092
+ vat: z.ZodOptional<z.ZodString>;
1093
+ taxCode: z.ZodOptional<z.ZodString>;
1094
+ }, z.core.$strip>;
3643
1095
  readonly outputSchema: z.ZodObject<{
3644
1096
  id: z.ZodString;
3645
1097
  businessName: z.ZodString;
@@ -3652,82 +1104,15 @@ declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<typeof up
3652
1104
  region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3653
1105
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3654
1106
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3655
- }, "strip", z.ZodTypeAny, {
3656
- line1?: string | null | undefined;
3657
- line2?: string | null | undefined;
3658
- city?: string | null | undefined;
3659
- region?: string | null | undefined;
3660
- postalCode?: string | null | undefined;
3661
- country?: string | null | undefined;
3662
- }, {
3663
- line1?: string | null | undefined;
3664
- line2?: string | null | undefined;
3665
- city?: string | null | undefined;
3666
- region?: string | null | undefined;
3667
- postalCode?: string | null | undefined;
3668
- country?: string | null | undefined;
3669
- }>;
3670
- billingData: z.ZodEffects<z.ZodObject<{
1107
+ }, z.core.$strip>;
1108
+ billingData: z.ZodObject<{
3671
1109
  sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3672
- pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3673
- }, "strip", z.ZodTypeAny, {
3674
- sdi?: string | null | undefined;
3675
- pec?: string | null | undefined;
3676
- }, {
3677
- sdi?: string | null | undefined;
3678
- pec?: string | null | undefined;
3679
- }>, {
3680
- sdi?: string | null | undefined;
3681
- pec?: string | null | undefined;
3682
- }, {
3683
- sdi?: string | null | undefined;
3684
- pec?: string | null | undefined;
3685
- }>;
3686
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3687
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3688
- } & {
3689
- customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
3690
- }, "strip", z.ZodTypeAny, {
3691
- id: string;
3692
- createdAt: string;
3693
- updatedAt: string;
3694
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
3695
- businessName: string;
3696
- vat: string;
3697
- taxCode: string;
3698
- billingAddress: {
3699
- line1?: string | null | undefined;
3700
- line2?: string | null | undefined;
3701
- city?: string | null | undefined;
3702
- region?: string | null | undefined;
3703
- postalCode?: string | null | undefined;
3704
- country?: string | null | undefined;
3705
- };
3706
- billingData: {
3707
- sdi?: string | null | undefined;
3708
- pec?: string | null | undefined;
3709
- };
3710
- }, {
3711
- id: string;
3712
- createdAt: string;
3713
- updatedAt: string;
3714
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
3715
- businessName: string;
3716
- vat: string;
3717
- taxCode: string;
3718
- billingAddress: {
3719
- line1?: string | null | undefined;
3720
- line2?: string | null | undefined;
3721
- city?: string | null | undefined;
3722
- region?: string | null | undefined;
3723
- postalCode?: string | null | undefined;
3724
- country?: string | null | undefined;
3725
- };
3726
- billingData: {
3727
- sdi?: string | null | undefined;
3728
- pec?: string | null | undefined;
3729
- };
3730
- }>;
1110
+ pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
1111
+ }, z.core.$strip>;
1112
+ createdAt: z.ZodString;
1113
+ updatedAt: z.ZodString;
1114
+ customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
1115
+ }, z.core.$strip>;
3731
1116
  readonly querySchema: undefined;
3732
1117
  readonly headersSchema: undefined;
3733
1118
  private readonly customerId;
@@ -3736,149 +1121,59 @@ declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<typeof up
3736
1121
  }
3737
1122
 
3738
1123
  declare const createCustomerInputSchema: z.ZodObject<{
3739
- firstName: z.ZodNullable<z.ZodString>;
3740
- lastName: z.ZodNullable<z.ZodString>;
3741
- email: z.ZodNullable<z.ZodString>;
3742
- phoneNumber: z.ZodNullable<z.ZodString>;
3743
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
3744
- }, "strip", z.ZodTypeAny, {
3745
- firstName: string | null;
3746
- lastName: string | null;
3747
- email: string | null;
3748
- phoneNumber: string | null;
3749
- pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3750
- }, {
3751
- firstName: string | null;
3752
- lastName: string | null;
3753
- email: string | null;
3754
- phoneNumber: string | null;
3755
- pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3756
- }>;
1124
+ firstName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
1125
+ lastName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
1126
+ email: z.ZodNonOptional<z.ZodNullable<z.ZodEmail>>;
1127
+ phoneNumber: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
1128
+ pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>>;
1129
+ }, z.core.$strip>;
3757
1130
  type CreateCustomerInput = z.input<typeof createCustomerInputSchema>;
3758
1131
  declare const createCustomerResponseSchema: z.ZodObject<{
3759
1132
  id: z.ZodString;
3760
1133
  firstName: z.ZodNullable<z.ZodString>;
3761
1134
  lastName: z.ZodNullable<z.ZodString>;
3762
- email: z.ZodNullable<z.ZodString>;
1135
+ email: z.ZodNullable<z.ZodEmail>;
3763
1136
  phoneNumber: z.ZodNullable<z.ZodString>;
3764
1137
  hasBusinessProfiles: z.ZodBoolean;
3765
1138
  hasAddresses: z.ZodBoolean;
3766
1139
  ordersPlaced: z.ZodNumber;
3767
1140
  totalSpent: z.ZodString;
3768
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3769
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3770
- } & {
3771
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
3772
- owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null>;
3773
- addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">>, "many">;
3774
- businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">>, "many">;
3775
- }, "strip", z.ZodTypeAny, {
3776
- id: string;
3777
- firstName: string | null;
3778
- lastName: string | null;
3779
- email: string | null;
3780
- phoneNumber: string | null;
3781
- hasBusinessProfiles: boolean;
3782
- hasAddresses: boolean;
3783
- ordersPlaced: number;
3784
- totalSpent: string;
3785
- createdAt: string;
3786
- updatedAt: string;
3787
- pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3788
- owner: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
3789
- addresses: _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">[];
3790
- businessProfiles: _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">[];
3791
- }, {
3792
- id: string;
3793
- firstName: string | null;
3794
- lastName: string | null;
3795
- email: string | null;
3796
- phoneNumber: string | null;
3797
- hasBusinessProfiles: boolean;
3798
- hasAddresses: boolean;
3799
- ordersPlaced: number;
3800
- totalSpent: string;
3801
- createdAt: string;
3802
- updatedAt: string;
3803
- pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3804
- owner: string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
3805
- addresses: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">)[];
3806
- businessProfiles: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">)[];
3807
- }>;
1141
+ createdAt: z.ZodString;
1142
+ updatedAt: z.ZodString;
1143
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
1144
+ owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
1145
+ addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
1146
+ businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
1147
+ }, z.core.$strip>;
3808
1148
  type CreateCustomerResponse = z.output<typeof createCustomerResponseSchema>;
3809
1149
  declare class CreateCustomer extends AbstractApiRequest<typeof createCustomerInputSchema, typeof createCustomerResponseSchema> {
3810
1150
  readonly method = "POST";
3811
1151
  readonly contentType = "application/json";
3812
1152
  readonly accept = "application/json";
3813
1153
  readonly inputSchema: z.ZodObject<{
3814
- firstName: z.ZodNullable<z.ZodString>;
3815
- lastName: z.ZodNullable<z.ZodString>;
3816
- email: z.ZodNullable<z.ZodString>;
3817
- phoneNumber: z.ZodNullable<z.ZodString>;
3818
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
3819
- }, "strip", z.ZodTypeAny, {
3820
- firstName: string | null;
3821
- lastName: string | null;
3822
- email: string | null;
3823
- phoneNumber: string | null;
3824
- pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3825
- }, {
3826
- firstName: string | null;
3827
- lastName: string | null;
3828
- email: string | null;
3829
- phoneNumber: string | null;
3830
- pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3831
- }>;
1154
+ firstName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
1155
+ lastName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
1156
+ email: z.ZodNonOptional<z.ZodNullable<z.ZodEmail>>;
1157
+ phoneNumber: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
1158
+ pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>>;
1159
+ }, z.core.$strip>;
3832
1160
  readonly outputSchema: z.ZodObject<{
3833
1161
  id: z.ZodString;
3834
1162
  firstName: z.ZodNullable<z.ZodString>;
3835
1163
  lastName: z.ZodNullable<z.ZodString>;
3836
- email: z.ZodNullable<z.ZodString>;
1164
+ email: z.ZodNullable<z.ZodEmail>;
3837
1165
  phoneNumber: z.ZodNullable<z.ZodString>;
3838
1166
  hasBusinessProfiles: z.ZodBoolean;
3839
1167
  hasAddresses: z.ZodBoolean;
3840
1168
  ordersPlaced: z.ZodNumber;
3841
1169
  totalSpent: z.ZodString;
3842
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3843
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3844
- } & {
3845
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
3846
- owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null>;
3847
- addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">>, "many">;
3848
- businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">>, "many">;
3849
- }, "strip", z.ZodTypeAny, {
3850
- id: string;
3851
- firstName: string | null;
3852
- lastName: string | null;
3853
- email: string | null;
3854
- phoneNumber: string | null;
3855
- hasBusinessProfiles: boolean;
3856
- hasAddresses: boolean;
3857
- ordersPlaced: number;
3858
- totalSpent: string;
3859
- createdAt: string;
3860
- updatedAt: string;
3861
- pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3862
- owner: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
3863
- addresses: _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">[];
3864
- businessProfiles: _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">[];
3865
- }, {
3866
- id: string;
3867
- firstName: string | null;
3868
- lastName: string | null;
3869
- email: string | null;
3870
- phoneNumber: string | null;
3871
- hasBusinessProfiles: boolean;
3872
- hasAddresses: boolean;
3873
- ordersPlaced: number;
3874
- totalSpent: string;
3875
- createdAt: string;
3876
- updatedAt: string;
3877
- pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3878
- owner: string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
3879
- addresses: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">)[];
3880
- businessProfiles: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">)[];
3881
- }>;
1170
+ createdAt: z.ZodString;
1171
+ updatedAt: z.ZodString;
1172
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
1173
+ owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
1174
+ addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
1175
+ businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
1176
+ }, z.core.$strip>;
3882
1177
  readonly querySchema: undefined;
3883
1178
  readonly headersSchema: undefined;
3884
1179
  constructor(input: CreateCustomerInput);
@@ -3906,52 +1201,19 @@ declare const getCustomerDetailsResponseSchema: z.ZodObject<{
3906
1201
  id: z.ZodString;
3907
1202
  firstName: z.ZodNullable<z.ZodString>;
3908
1203
  lastName: z.ZodNullable<z.ZodString>;
3909
- email: z.ZodNullable<z.ZodString>;
1204
+ email: z.ZodNullable<z.ZodEmail>;
3910
1205
  phoneNumber: z.ZodNullable<z.ZodString>;
3911
1206
  hasBusinessProfiles: z.ZodBoolean;
3912
1207
  hasAddresses: z.ZodBoolean;
3913
1208
  ordersPlaced: z.ZodNumber;
3914
1209
  totalSpent: z.ZodString;
3915
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3916
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3917
- } & {
3918
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
3919
- owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null>;
3920
- addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">>, "many">;
3921
- businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">>, "many">;
3922
- }, "strip", z.ZodTypeAny, {
3923
- id: string;
3924
- firstName: string | null;
3925
- lastName: string | null;
3926
- email: string | null;
3927
- phoneNumber: string | null;
3928
- hasBusinessProfiles: boolean;
3929
- hasAddresses: boolean;
3930
- ordersPlaced: number;
3931
- totalSpent: string;
3932
- createdAt: string;
3933
- updatedAt: string;
3934
- pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3935
- owner: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
3936
- addresses: _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">[];
3937
- businessProfiles: _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">[];
3938
- }, {
3939
- id: string;
3940
- firstName: string | null;
3941
- lastName: string | null;
3942
- email: string | null;
3943
- phoneNumber: string | null;
3944
- hasBusinessProfiles: boolean;
3945
- hasAddresses: boolean;
3946
- ordersPlaced: number;
3947
- totalSpent: string;
3948
- createdAt: string;
3949
- updatedAt: string;
3950
- pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3951
- owner: string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
3952
- addresses: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">)[];
3953
- businessProfiles: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">)[];
3954
- }>;
1210
+ createdAt: z.ZodString;
1211
+ updatedAt: z.ZodString;
1212
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
1213
+ owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
1214
+ addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
1215
+ businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
1216
+ }, z.core.$strip>;
3955
1217
  type GetCustomerDetailsResponse = z.infer<typeof getCustomerDetailsResponseSchema>;
3956
1218
  declare class GetCustomerDetails extends AbstractApiRequest<typeof getCustomerDetailsInputSchema, typeof getCustomerDetailsResponseSchema> {
3957
1219
  readonly method = "GET";
@@ -3962,52 +1224,19 @@ declare class GetCustomerDetails extends AbstractApiRequest<typeof getCustomerDe
3962
1224
  id: z.ZodString;
3963
1225
  firstName: z.ZodNullable<z.ZodString>;
3964
1226
  lastName: z.ZodNullable<z.ZodString>;
3965
- email: z.ZodNullable<z.ZodString>;
1227
+ email: z.ZodNullable<z.ZodEmail>;
3966
1228
  phoneNumber: z.ZodNullable<z.ZodString>;
3967
1229
  hasBusinessProfiles: z.ZodBoolean;
3968
1230
  hasAddresses: z.ZodBoolean;
3969
1231
  ordersPlaced: z.ZodNumber;
3970
1232
  totalSpent: z.ZodString;
3971
- createdAt: z.ZodEffects<z.ZodString, string, string>;
3972
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
3973
- } & {
3974
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
3975
- owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null>;
3976
- addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">>, "many">;
3977
- businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">>, "many">;
3978
- }, "strip", z.ZodTypeAny, {
3979
- id: string;
3980
- firstName: string | null;
3981
- lastName: string | null;
3982
- email: string | null;
3983
- phoneNumber: string | null;
3984
- hasBusinessProfiles: boolean;
3985
- hasAddresses: boolean;
3986
- ordersPlaced: number;
3987
- totalSpent: string;
3988
- createdAt: string;
3989
- updatedAt: string;
3990
- pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
3991
- owner: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
3992
- addresses: _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">[];
3993
- businessProfiles: _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">[];
3994
- }, {
3995
- id: string;
3996
- firstName: string | null;
3997
- lastName: string | null;
3998
- email: string | null;
3999
- phoneNumber: string | null;
4000
- hasBusinessProfiles: boolean;
4001
- hasAddresses: boolean;
4002
- ordersPlaced: number;
4003
- totalSpent: string;
4004
- createdAt: string;
4005
- updatedAt: string;
4006
- pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
4007
- owner: string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
4008
- addresses: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">)[];
4009
- businessProfiles: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">)[];
4010
- }>;
1233
+ createdAt: z.ZodString;
1234
+ updatedAt: z.ZodString;
1235
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
1236
+ owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
1237
+ addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
1238
+ businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
1239
+ }, z.core.$strip>;
4011
1240
  readonly querySchema: undefined;
4012
1241
  readonly headersSchema: undefined;
4013
1242
  private readonly customerId;
@@ -4020,24 +1249,35 @@ declare const getCustomersQuerySchema: z.ZodObject<{
4020
1249
  lastName: z.ZodOptional<z.ZodString>;
4021
1250
  email: z.ZodOptional<z.ZodString>;
4022
1251
  phoneNumber: z.ZodOptional<z.ZodString>;
4023
- hasBusinessProfiles: z.ZodOptional<z.ZodBoolean>;
4024
- hasAddresses: z.ZodOptional<z.ZodBoolean>;
4025
- 'ordersPlaced[between]': z.ZodOptional<z.ZodNumber>;
4026
- 'ordersPlaced[gt]': z.ZodOptional<z.ZodNumber>;
4027
- 'ordersPlaced[gte]': z.ZodOptional<z.ZodNumber>;
4028
- 'ordersPlaced[lt]': z.ZodOptional<z.ZodNumber>;
4029
- 'ordersPlaced[lte]': z.ZodOptional<z.ZodNumber>;
4030
- 'totalSpent[between]': z.ZodOptional<z.ZodNumber>;
4031
- 'totalSpent[gt]': z.ZodOptional<z.ZodString>;
4032
- 'totalSpent[gte]': z.ZodOptional<z.ZodString>;
4033
- 'totalSpent[lt]': z.ZodOptional<z.ZodString>;
4034
- 'totalSpent[lte]': z.ZodOptional<z.ZodString>;
4035
- 'order[firstName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4036
- 'order[lastName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4037
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4038
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4039
- page: z.ZodOptional<z.ZodNumber>;
4040
- } & {
1252
+ hasBusinessProfiles: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
1253
+ hasAddresses: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
1254
+ 'ordersPlaced[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1255
+ 'ordersPlaced[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1256
+ 'ordersPlaced[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1257
+ 'ordersPlaced[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1258
+ 'ordersPlaced[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1259
+ 'totalSpent[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1260
+ 'totalSpent[gt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
1261
+ 'totalSpent[gte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
1262
+ 'totalSpent[lt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
1263
+ 'totalSpent[lte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
1264
+ 'order[firstName]': z.ZodOptional<z.ZodEnum<{
1265
+ asc: "asc";
1266
+ desc: "desc";
1267
+ }>>;
1268
+ 'order[lastName]': z.ZodOptional<z.ZodEnum<{
1269
+ asc: "asc";
1270
+ desc: "desc";
1271
+ }>>;
1272
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
1273
+ asc: "asc";
1274
+ desc: "desc";
1275
+ }>>;
1276
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
1277
+ asc: "asc";
1278
+ desc: "desc";
1279
+ }>>;
1280
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4041
1281
  'createdAt[before]': z.ZodOptional<z.ZodString>;
4042
1282
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
4043
1283
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -4046,67 +1286,7 @@ declare const getCustomersQuerySchema: z.ZodObject<{
4046
1286
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
4047
1287
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
4048
1288
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
4049
- }, "strip", z.ZodTypeAny, {
4050
- firstName?: string | undefined;
4051
- lastName?: string | undefined;
4052
- email?: string | undefined;
4053
- phoneNumber?: string | undefined;
4054
- hasBusinessProfiles?: boolean | undefined;
4055
- hasAddresses?: boolean | undefined;
4056
- 'ordersPlaced[between]'?: number | undefined;
4057
- 'ordersPlaced[gt]'?: number | undefined;
4058
- 'ordersPlaced[gte]'?: number | undefined;
4059
- 'ordersPlaced[lt]'?: number | undefined;
4060
- 'ordersPlaced[lte]'?: number | undefined;
4061
- 'totalSpent[between]'?: number | undefined;
4062
- 'totalSpent[gt]'?: string | undefined;
4063
- 'totalSpent[gte]'?: string | undefined;
4064
- 'totalSpent[lt]'?: string | undefined;
4065
- 'totalSpent[lte]'?: string | undefined;
4066
- 'order[firstName]'?: "asc" | "desc" | undefined;
4067
- 'order[lastName]'?: "asc" | "desc" | undefined;
4068
- 'order[createdAt]'?: "asc" | "desc" | undefined;
4069
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
4070
- page?: number | undefined;
4071
- 'createdAt[before]'?: string | undefined;
4072
- 'createdAt[strictly_before]'?: string | undefined;
4073
- 'createdAt[after]'?: string | undefined;
4074
- 'createdAt[strictly_after]'?: string | undefined;
4075
- 'updatedAt[before]'?: string | undefined;
4076
- 'updatedAt[strictly_before]'?: string | undefined;
4077
- 'updatedAt[after]'?: string | undefined;
4078
- 'updatedAt[strictly_after]'?: string | undefined;
4079
- }, {
4080
- firstName?: string | undefined;
4081
- lastName?: string | undefined;
4082
- email?: string | undefined;
4083
- phoneNumber?: string | undefined;
4084
- hasBusinessProfiles?: boolean | undefined;
4085
- hasAddresses?: boolean | undefined;
4086
- 'ordersPlaced[between]'?: number | undefined;
4087
- 'ordersPlaced[gt]'?: number | undefined;
4088
- 'ordersPlaced[gte]'?: number | undefined;
4089
- 'ordersPlaced[lt]'?: number | undefined;
4090
- 'ordersPlaced[lte]'?: number | undefined;
4091
- 'totalSpent[between]'?: number | undefined;
4092
- 'totalSpent[gt]'?: string | undefined;
4093
- 'totalSpent[gte]'?: string | undefined;
4094
- 'totalSpent[lt]'?: string | undefined;
4095
- 'totalSpent[lte]'?: string | undefined;
4096
- 'order[firstName]'?: "asc" | "desc" | undefined;
4097
- 'order[lastName]'?: "asc" | "desc" | undefined;
4098
- 'order[createdAt]'?: "asc" | "desc" | undefined;
4099
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
4100
- page?: number | undefined;
4101
- 'createdAt[before]'?: string | undefined;
4102
- 'createdAt[strictly_before]'?: string | undefined;
4103
- 'createdAt[after]'?: string | undefined;
4104
- 'createdAt[strictly_after]'?: string | undefined;
4105
- 'updatedAt[before]'?: string | undefined;
4106
- 'updatedAt[strictly_before]'?: string | undefined;
4107
- 'updatedAt[after]'?: string | undefined;
4108
- 'updatedAt[strictly_after]'?: string | undefined;
4109
- }>;
1289
+ }, z.core.$strip>;
4110
1290
  type GetCustomersQueryParams = z.infer<typeof getCustomersQuerySchema>;
4111
1291
  declare const getCustomersInputSchema: z.ZodUndefined;
4112
1292
  type GetCustomersInput = z.input<typeof getCustomersInputSchema>;
@@ -4115,39 +1295,15 @@ declare const getCustomersResponseSchema: z.ZodObject<{
4115
1295
  id: z.ZodString;
4116
1296
  firstName: z.ZodNullable<z.ZodString>;
4117
1297
  lastName: z.ZodNullable<z.ZodString>;
4118
- email: z.ZodNullable<z.ZodString>;
1298
+ email: z.ZodNullable<z.ZodEmail>;
4119
1299
  phoneNumber: z.ZodNullable<z.ZodString>;
4120
1300
  hasBusinessProfiles: z.ZodBoolean;
4121
1301
  hasAddresses: z.ZodBoolean;
4122
1302
  ordersPlaced: z.ZodNumber;
4123
1303
  totalSpent: z.ZodString;
4124
- createdAt: z.ZodEffects<z.ZodString, string, string>;
4125
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
4126
- }, "strip", z.ZodTypeAny, {
4127
- id: string;
4128
- firstName: string | null;
4129
- lastName: string | null;
4130
- email: string | null;
4131
- phoneNumber: string | null;
4132
- hasBusinessProfiles: boolean;
4133
- hasAddresses: boolean;
4134
- ordersPlaced: number;
4135
- totalSpent: string;
4136
- createdAt: string;
4137
- updatedAt: string;
4138
- }, {
4139
- id: string;
4140
- firstName: string | null;
4141
- lastName: string | null;
4142
- email: string | null;
4143
- phoneNumber: string | null;
4144
- hasBusinessProfiles: boolean;
4145
- hasAddresses: boolean;
4146
- ordersPlaced: number;
4147
- totalSpent: string;
4148
- createdAt: string;
4149
- updatedAt: string;
4150
- }>, "many">;
1304
+ createdAt: z.ZodString;
1305
+ updatedAt: z.ZodString;
1306
+ }, z.core.$strip>>;
4151
1307
  pagination: z.ZodObject<{
4152
1308
  from: z.ZodNumber;
4153
1309
  to: z.ZodNumber;
@@ -4155,66 +1311,8 @@ declare const getCustomersResponseSchema: z.ZodObject<{
4155
1311
  totalItems: z.ZodNumber;
4156
1312
  currentPage: z.ZodNumber;
4157
1313
  lastPage: z.ZodNumber;
4158
- }, "strip", z.ZodTypeAny, {
4159
- from: number;
4160
- to: number;
4161
- itemsPerPage: number;
4162
- totalItems: number;
4163
- currentPage: number;
4164
- lastPage: number;
4165
- }, {
4166
- from: number;
4167
- to: number;
4168
- itemsPerPage: number;
4169
- totalItems: number;
4170
- currentPage: number;
4171
- lastPage: number;
4172
- }>;
4173
- }, "strip", z.ZodTypeAny, {
4174
- data: {
4175
- id: string;
4176
- firstName: string | null;
4177
- lastName: string | null;
4178
- email: string | null;
4179
- phoneNumber: string | null;
4180
- hasBusinessProfiles: boolean;
4181
- hasAddresses: boolean;
4182
- ordersPlaced: number;
4183
- totalSpent: string;
4184
- createdAt: string;
4185
- updatedAt: string;
4186
- }[];
4187
- pagination: {
4188
- from: number;
4189
- to: number;
4190
- itemsPerPage: number;
4191
- totalItems: number;
4192
- currentPage: number;
4193
- lastPage: number;
4194
- };
4195
- }, {
4196
- data: {
4197
- id: string;
4198
- firstName: string | null;
4199
- lastName: string | null;
4200
- email: string | null;
4201
- phoneNumber: string | null;
4202
- hasBusinessProfiles: boolean;
4203
- hasAddresses: boolean;
4204
- ordersPlaced: number;
4205
- totalSpent: string;
4206
- createdAt: string;
4207
- updatedAt: string;
4208
- }[];
4209
- pagination: {
4210
- from: number;
4211
- to: number;
4212
- itemsPerPage: number;
4213
- totalItems: number;
4214
- currentPage: number;
4215
- lastPage: number;
4216
- };
4217
- }>;
1314
+ }, z.core.$strip>;
1315
+ }, z.core.$strip>;
4218
1316
  type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
4219
1317
  declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSchema, typeof getCustomersResponseSchema, GetCustomersQueryParams> {
4220
1318
  readonly method = "GET";
@@ -4226,39 +1324,15 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
4226
1324
  id: z.ZodString;
4227
1325
  firstName: z.ZodNullable<z.ZodString>;
4228
1326
  lastName: z.ZodNullable<z.ZodString>;
4229
- email: z.ZodNullable<z.ZodString>;
1327
+ email: z.ZodNullable<z.ZodEmail>;
4230
1328
  phoneNumber: z.ZodNullable<z.ZodString>;
4231
1329
  hasBusinessProfiles: z.ZodBoolean;
4232
1330
  hasAddresses: z.ZodBoolean;
4233
1331
  ordersPlaced: z.ZodNumber;
4234
1332
  totalSpent: z.ZodString;
4235
- createdAt: z.ZodEffects<z.ZodString, string, string>;
4236
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
4237
- }, "strip", z.ZodTypeAny, {
4238
- id: string;
4239
- firstName: string | null;
4240
- lastName: string | null;
4241
- email: string | null;
4242
- phoneNumber: string | null;
4243
- hasBusinessProfiles: boolean;
4244
- hasAddresses: boolean;
4245
- ordersPlaced: number;
4246
- totalSpent: string;
4247
- createdAt: string;
4248
- updatedAt: string;
4249
- }, {
4250
- id: string;
4251
- firstName: string | null;
4252
- lastName: string | null;
4253
- email: string | null;
4254
- phoneNumber: string | null;
4255
- hasBusinessProfiles: boolean;
4256
- hasAddresses: boolean;
4257
- ordersPlaced: number;
4258
- totalSpent: string;
4259
- createdAt: string;
4260
- updatedAt: string;
4261
- }>, "many">;
1333
+ createdAt: z.ZodString;
1334
+ updatedAt: z.ZodString;
1335
+ }, z.core.$strip>>;
4262
1336
  pagination: z.ZodObject<{
4263
1337
  from: z.ZodNumber;
4264
1338
  to: z.ZodNumber;
@@ -4266,89 +1340,42 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
4266
1340
  totalItems: z.ZodNumber;
4267
1341
  currentPage: z.ZodNumber;
4268
1342
  lastPage: z.ZodNumber;
4269
- }, "strip", z.ZodTypeAny, {
4270
- from: number;
4271
- to: number;
4272
- itemsPerPage: number;
4273
- totalItems: number;
4274
- currentPage: number;
4275
- lastPage: number;
4276
- }, {
4277
- from: number;
4278
- to: number;
4279
- itemsPerPage: number;
4280
- totalItems: number;
4281
- currentPage: number;
4282
- lastPage: number;
4283
- }>;
4284
- }, "strip", z.ZodTypeAny, {
4285
- data: {
4286
- id: string;
4287
- firstName: string | null;
4288
- lastName: string | null;
4289
- email: string | null;
4290
- phoneNumber: string | null;
4291
- hasBusinessProfiles: boolean;
4292
- hasAddresses: boolean;
4293
- ordersPlaced: number;
4294
- totalSpent: string;
4295
- createdAt: string;
4296
- updatedAt: string;
4297
- }[];
4298
- pagination: {
4299
- from: number;
4300
- to: number;
4301
- itemsPerPage: number;
4302
- totalItems: number;
4303
- currentPage: number;
4304
- lastPage: number;
4305
- };
4306
- }, {
4307
- data: {
4308
- id: string;
4309
- firstName: string | null;
4310
- lastName: string | null;
4311
- email: string | null;
4312
- phoneNumber: string | null;
4313
- hasBusinessProfiles: boolean;
4314
- hasAddresses: boolean;
4315
- ordersPlaced: number;
4316
- totalSpent: string;
4317
- createdAt: string;
4318
- updatedAt: string;
4319
- }[];
4320
- pagination: {
4321
- from: number;
4322
- to: number;
4323
- itemsPerPage: number;
4324
- totalItems: number;
4325
- currentPage: number;
4326
- lastPage: number;
4327
- };
4328
- }>;
1343
+ }, z.core.$strip>;
1344
+ }, z.core.$strip>;
4329
1345
  readonly querySchema: z.ZodObject<{
4330
1346
  firstName: z.ZodOptional<z.ZodString>;
4331
1347
  lastName: z.ZodOptional<z.ZodString>;
4332
1348
  email: z.ZodOptional<z.ZodString>;
4333
1349
  phoneNumber: z.ZodOptional<z.ZodString>;
4334
- hasBusinessProfiles: z.ZodOptional<z.ZodBoolean>;
4335
- hasAddresses: z.ZodOptional<z.ZodBoolean>;
4336
- 'ordersPlaced[between]': z.ZodOptional<z.ZodNumber>;
4337
- 'ordersPlaced[gt]': z.ZodOptional<z.ZodNumber>;
4338
- 'ordersPlaced[gte]': z.ZodOptional<z.ZodNumber>;
4339
- 'ordersPlaced[lt]': z.ZodOptional<z.ZodNumber>;
4340
- 'ordersPlaced[lte]': z.ZodOptional<z.ZodNumber>;
4341
- 'totalSpent[between]': z.ZodOptional<z.ZodNumber>;
4342
- 'totalSpent[gt]': z.ZodOptional<z.ZodString>;
4343
- 'totalSpent[gte]': z.ZodOptional<z.ZodString>;
4344
- 'totalSpent[lt]': z.ZodOptional<z.ZodString>;
4345
- 'totalSpent[lte]': z.ZodOptional<z.ZodString>;
4346
- 'order[firstName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4347
- 'order[lastName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4348
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4349
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4350
- page: z.ZodOptional<z.ZodNumber>;
4351
- } & {
1350
+ hasBusinessProfiles: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
1351
+ hasAddresses: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
1352
+ 'ordersPlaced[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1353
+ 'ordersPlaced[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1354
+ 'ordersPlaced[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1355
+ 'ordersPlaced[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1356
+ 'ordersPlaced[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1357
+ 'totalSpent[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1358
+ 'totalSpent[gt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
1359
+ 'totalSpent[gte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
1360
+ 'totalSpent[lt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
1361
+ 'totalSpent[lte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
1362
+ 'order[firstName]': z.ZodOptional<z.ZodEnum<{
1363
+ asc: "asc";
1364
+ desc: "desc";
1365
+ }>>;
1366
+ 'order[lastName]': z.ZodOptional<z.ZodEnum<{
1367
+ asc: "asc";
1368
+ desc: "desc";
1369
+ }>>;
1370
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
1371
+ asc: "asc";
1372
+ desc: "desc";
1373
+ }>>;
1374
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
1375
+ asc: "asc";
1376
+ desc: "desc";
1377
+ }>>;
1378
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4352
1379
  'createdAt[before]': z.ZodOptional<z.ZodString>;
4353
1380
  'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
4354
1381
  'createdAt[after]': z.ZodOptional<z.ZodString>;
@@ -4357,67 +1384,7 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
4357
1384
  'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
4358
1385
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
4359
1386
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
4360
- }, "strip", z.ZodTypeAny, {
4361
- firstName?: string | undefined;
4362
- lastName?: string | undefined;
4363
- email?: string | undefined;
4364
- phoneNumber?: string | undefined;
4365
- hasBusinessProfiles?: boolean | undefined;
4366
- hasAddresses?: boolean | undefined;
4367
- 'ordersPlaced[between]'?: number | undefined;
4368
- 'ordersPlaced[gt]'?: number | undefined;
4369
- 'ordersPlaced[gte]'?: number | undefined;
4370
- 'ordersPlaced[lt]'?: number | undefined;
4371
- 'ordersPlaced[lte]'?: number | undefined;
4372
- 'totalSpent[between]'?: number | undefined;
4373
- 'totalSpent[gt]'?: string | undefined;
4374
- 'totalSpent[gte]'?: string | undefined;
4375
- 'totalSpent[lt]'?: string | undefined;
4376
- 'totalSpent[lte]'?: string | undefined;
4377
- 'order[firstName]'?: "asc" | "desc" | undefined;
4378
- 'order[lastName]'?: "asc" | "desc" | undefined;
4379
- 'order[createdAt]'?: "asc" | "desc" | undefined;
4380
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
4381
- page?: number | undefined;
4382
- 'createdAt[before]'?: string | undefined;
4383
- 'createdAt[strictly_before]'?: string | undefined;
4384
- 'createdAt[after]'?: string | undefined;
4385
- 'createdAt[strictly_after]'?: string | undefined;
4386
- 'updatedAt[before]'?: string | undefined;
4387
- 'updatedAt[strictly_before]'?: string | undefined;
4388
- 'updatedAt[after]'?: string | undefined;
4389
- 'updatedAt[strictly_after]'?: string | undefined;
4390
- }, {
4391
- firstName?: string | undefined;
4392
- lastName?: string | undefined;
4393
- email?: string | undefined;
4394
- phoneNumber?: string | undefined;
4395
- hasBusinessProfiles?: boolean | undefined;
4396
- hasAddresses?: boolean | undefined;
4397
- 'ordersPlaced[between]'?: number | undefined;
4398
- 'ordersPlaced[gt]'?: number | undefined;
4399
- 'ordersPlaced[gte]'?: number | undefined;
4400
- 'ordersPlaced[lt]'?: number | undefined;
4401
- 'ordersPlaced[lte]'?: number | undefined;
4402
- 'totalSpent[between]'?: number | undefined;
4403
- 'totalSpent[gt]'?: string | undefined;
4404
- 'totalSpent[gte]'?: string | undefined;
4405
- 'totalSpent[lt]'?: string | undefined;
4406
- 'totalSpent[lte]'?: string | undefined;
4407
- 'order[firstName]'?: "asc" | "desc" | undefined;
4408
- 'order[lastName]'?: "asc" | "desc" | undefined;
4409
- 'order[createdAt]'?: "asc" | "desc" | undefined;
4410
- 'order[updatedAt]'?: "asc" | "desc" | undefined;
4411
- page?: number | undefined;
4412
- 'createdAt[before]'?: string | undefined;
4413
- 'createdAt[strictly_before]'?: string | undefined;
4414
- 'createdAt[after]'?: string | undefined;
4415
- 'createdAt[strictly_after]'?: string | undefined;
4416
- 'updatedAt[before]'?: string | undefined;
4417
- 'updatedAt[strictly_before]'?: string | undefined;
4418
- 'updatedAt[after]'?: string | undefined;
4419
- 'updatedAt[strictly_after]'?: string | undefined;
4420
- }>;
1387
+ }, z.core.$strip>;
4421
1388
  readonly headersSchema: undefined;
4422
1389
  constructor(options?: {
4423
1390
  query?: GetCustomersQueryParams;
@@ -4429,70 +1396,27 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
4429
1396
  declare const updateCustomerInputSchema: z.ZodObject<{
4430
1397
  firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4431
1398
  lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4432
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1399
+ email: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
4433
1400
  phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4434
- }, "strip", z.ZodTypeAny, {
4435
- firstName?: string | null | undefined;
4436
- lastName?: string | null | undefined;
4437
- email?: string | null | undefined;
4438
- phoneNumber?: string | null | undefined;
4439
- }, {
4440
- firstName?: string | null | undefined;
4441
- lastName?: string | null | undefined;
4442
- email?: string | null | undefined;
4443
- phoneNumber?: string | null | undefined;
4444
- }>;
1401
+ }, z.core.$strip>;
4445
1402
  type UpdateCustomerInput = z.input<typeof updateCustomerInputSchema>;
4446
1403
  declare const updateCustomerResponseSchema: z.ZodObject<{
4447
1404
  id: z.ZodString;
4448
1405
  firstName: z.ZodNullable<z.ZodString>;
4449
1406
  lastName: z.ZodNullable<z.ZodString>;
4450
- email: z.ZodNullable<z.ZodString>;
1407
+ email: z.ZodNullable<z.ZodEmail>;
4451
1408
  phoneNumber: z.ZodNullable<z.ZodString>;
4452
1409
  hasBusinessProfiles: z.ZodBoolean;
4453
1410
  hasAddresses: z.ZodBoolean;
4454
1411
  ordersPlaced: z.ZodNumber;
4455
1412
  totalSpent: z.ZodString;
4456
- createdAt: z.ZodEffects<z.ZodString, string, string>;
4457
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
4458
- } & {
4459
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
4460
- owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null>;
4461
- addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">>, "many">;
4462
- businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">>, "many">;
4463
- }, "strip", z.ZodTypeAny, {
4464
- id: string;
4465
- firstName: string | null;
4466
- lastName: string | null;
4467
- email: string | null;
4468
- phoneNumber: string | null;
4469
- hasBusinessProfiles: boolean;
4470
- hasAddresses: boolean;
4471
- ordersPlaced: number;
4472
- totalSpent: string;
4473
- createdAt: string;
4474
- updatedAt: string;
4475
- pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
4476
- owner: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
4477
- addresses: _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">[];
4478
- businessProfiles: _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">[];
4479
- }, {
4480
- id: string;
4481
- firstName: string | null;
4482
- lastName: string | null;
4483
- email: string | null;
4484
- phoneNumber: string | null;
4485
- hasBusinessProfiles: boolean;
4486
- hasAddresses: boolean;
4487
- ordersPlaced: number;
4488
- totalSpent: string;
4489
- createdAt: string;
4490
- updatedAt: string;
4491
- pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
4492
- owner: string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
4493
- addresses: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">)[];
4494
- businessProfiles: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">)[];
4495
- }>;
1413
+ createdAt: z.ZodString;
1414
+ updatedAt: z.ZodString;
1415
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
1416
+ owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
1417
+ addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
1418
+ businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
1419
+ }, z.core.$strip>;
4496
1420
  type UpdateCustomerResponse = z.infer<typeof updateCustomerResponseSchema>;
4497
1421
  declare class UpdateCustomer extends AbstractApiRequest<typeof updateCustomerInputSchema, typeof updateCustomerResponseSchema> {
4498
1422
  readonly method = "PATCH";
@@ -4501,69 +1425,26 @@ declare class UpdateCustomer extends AbstractApiRequest<typeof updateCustomerInp
4501
1425
  readonly inputSchema: z.ZodObject<{
4502
1426
  firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4503
1427
  lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4504
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1428
+ email: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
4505
1429
  phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4506
- }, "strip", z.ZodTypeAny, {
4507
- firstName?: string | null | undefined;
4508
- lastName?: string | null | undefined;
4509
- email?: string | null | undefined;
4510
- phoneNumber?: string | null | undefined;
4511
- }, {
4512
- firstName?: string | null | undefined;
4513
- lastName?: string | null | undefined;
4514
- email?: string | null | undefined;
4515
- phoneNumber?: string | null | undefined;
4516
- }>;
1430
+ }, z.core.$strip>;
4517
1431
  readonly outputSchema: z.ZodObject<{
4518
1432
  id: z.ZodString;
4519
1433
  firstName: z.ZodNullable<z.ZodString>;
4520
1434
  lastName: z.ZodNullable<z.ZodString>;
4521
- email: z.ZodNullable<z.ZodString>;
1435
+ email: z.ZodNullable<z.ZodEmail>;
4522
1436
  phoneNumber: z.ZodNullable<z.ZodString>;
4523
1437
  hasBusinessProfiles: z.ZodBoolean;
4524
1438
  hasAddresses: z.ZodBoolean;
4525
1439
  ordersPlaced: z.ZodNumber;
4526
1440
  totalSpent: z.ZodString;
4527
- createdAt: z.ZodEffects<z.ZodString, string, string>;
4528
- updatedAt: z.ZodEffects<z.ZodString, string, string>;
4529
- } & {
4530
- pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null>;
4531
- owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null>;
4532
- addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">>, "many">;
4533
- businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">>, "many">;
4534
- }, "strip", z.ZodTypeAny, {
4535
- id: string;
4536
- firstName: string | null;
4537
- lastName: string | null;
4538
- email: string | null;
4539
- phoneNumber: string | null;
4540
- hasBusinessProfiles: boolean;
4541
- hasAddresses: boolean;
4542
- ordersPlaced: number;
4543
- totalSpent: string;
4544
- createdAt: string;
4545
- updatedAt: string;
4546
- pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
4547
- owner: _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
4548
- addresses: _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">[];
4549
- businessProfiles: _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">[];
4550
- }, {
4551
- id: string;
4552
- firstName: string | null;
4553
- lastName: string | null;
4554
- email: string | null;
4555
- phoneNumber: string | null;
4556
- hasBusinessProfiles: boolean;
4557
- hasAddresses: boolean;
4558
- ordersPlaced: number;
4559
- totalSpent: string;
4560
- createdAt: string;
4561
- updatedAt: string;
4562
- pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
4563
- owner: string | _deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null;
4564
- addresses: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">)[];
4565
- businessProfiles: (string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">)[];
4566
- }>;
1441
+ createdAt: z.ZodString;
1442
+ updatedAt: z.ZodString;
1443
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
1444
+ owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
1445
+ addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
1446
+ businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
1447
+ }, z.core.$strip>;
4567
1448
  readonly querySchema: undefined;
4568
1449
  readonly headersSchema: undefined;
4569
1450
  private readonly customerId;
@@ -4571,17 +1452,17 @@ declare class UpdateCustomer extends AbstractApiRequest<typeof updateCustomerInp
4571
1452
  getPath(): string;
4572
1453
  }
4573
1454
 
4574
- declare const customerIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
1455
+ declare const customerIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
4575
1456
  type CustomerIri = z.infer<typeof customerIriSchema>;
4576
- declare const customerNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null>;
1457
+ declare const customerNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown>>;
4577
1458
  type CustomerNullableIri = z.infer<typeof customerNullableIriSchema>;
4578
- declare const customerAddressIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">>;
1459
+ declare const customerAddressIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>;
4579
1460
  type CustomerAddressIri = z.infer<typeof customerAddressIriSchema>;
4580
- declare const customerAddressNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/address/:id"> | null>;
1461
+ declare const customerAddressNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id"> | null, unknown>>;
4581
1462
  type CustomerAddressNullableIri = z.infer<typeof customerAddressNullableIriSchema>;
4582
- declare const customerBusinessProfileIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">>;
1463
+ declare const customerBusinessProfileIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>;
4583
1464
  type CustomerBusinessProfileIri = z.infer<typeof customerBusinessProfileIriSchema>;
4584
- declare const customerBusinessProfileNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null>;
1465
+ declare const customerBusinessProfileNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown>>;
4585
1466
  type CustomerBusinessProfileNullableIri = z.infer<typeof customerBusinessProfileNullableIriSchema>;
4586
1467
 
4587
1468
  export { CreateCustomer, CreateCustomerAddress, type CreateCustomerAddressInput, type CreateCustomerAddressResponse, CreateCustomerBusinessProfile, type CreateCustomerBusinessProfileInput, type CreateCustomerBusinessProfileResponse, type CreateCustomerInput, type CreateCustomerResponse, type Customer, type CustomerAddress, type CustomerAddressDetails, type CustomerAddressIri, type CustomerAddressNullableIri, type CustomerBusinessProfile, type CustomerBusinessProfileDetails, type CustomerBusinessProfileIri, type CustomerBusinessProfileNullableIri, type CustomerDetails, type CustomerIri, type CustomerNullableIri, type CustomersQueryParams, DeleteCustomer, DeleteCustomerAddress, DeleteCustomerBusinessProfile, GetCustomerAddressDetails, type GetCustomerAddressDetailsInput, type GetCustomerAddressDetailsResponse, GetCustomerAddresses, GetCustomerAddressesForCustomer, type GetCustomerAddressesForCustomerInput, type GetCustomerAddressesForCustomerQueryParams, type GetCustomerAddressesForCustomerResponse, type GetCustomerAddressesInput, type GetCustomerAddressesQueryParams, type GetCustomerAddressesResponse, GetCustomerBusinessProfileDetails, type GetCustomerBusinessProfileDetailsInput, type GetCustomerBusinessProfileDetailsResponse, GetCustomerBusinessProfiles, GetCustomerBusinessProfilesForCustomer, type GetCustomerBusinessProfilesForCustomerInput, type GetCustomerBusinessProfilesForCustomerQueryParams, type GetCustomerBusinessProfilesForCustomerResponse, type GetCustomerBusinessProfilesInput, type GetCustomerBusinessProfilesQueryParams, type GetCustomerBusinessProfilesResponse, GetCustomerDetails, type GetCustomerDetailsInput, type GetCustomerDetailsResponse, GetCustomers, type GetCustomersInput, type GetCustomersQueryParams, type GetCustomersResponse, UpdateCustomer, UpdateCustomerAddress, type UpdateCustomerAddressInput, type UpdateCustomerAddressResponse, UpdateCustomerBusinessProfile, type UpdateCustomerBusinessProfileInput, type UpdateCustomerBusinessProfileResponse, type UpdateCustomerInput, type UpdateCustomerResponse, createCustomerAddressInputSchema, createCustomerAddressResponseSchema, createCustomerBusinessProfileInputSchema, createCustomerBusinessProfileResponseSchema, createCustomerInputSchema, createCustomerResponseSchema, customerAddressDetailsSchema, customerAddressIriSchema, customerAddressNullableIriSchema, customerAddressSchema, customerBusinessProfileDetailsSchema, customerBusinessProfileIriSchema, customerBusinessProfileNullableIriSchema, customerBusinessProfileSchema, customerDetailsSchema, customerIriSchema, customerNullableIriSchema, customerSchema, customersQuerySchema, deleteCustomerAddressInputSchema, deleteCustomerAddressResponseSchema, deleteCustomerBusinessProfileInputSchema, deleteCustomerBusinessProfileResponseSchema, deleteCustomerInputSchema, deleteCustomerResponseSchema, getCustomerAddressDetailsInputSchema, getCustomerAddressDetailsResponseSchema, getCustomerAddressesForCustomerInputSchema, getCustomerAddressesForCustomerQuerySchema, getCustomerAddressesForCustomerResponseSchema, getCustomerAddressesInputSchema, getCustomerAddressesQuerySchema, getCustomerAddressesResponseSchema, getCustomerBusinessProfileDetailsInputSchema, getCustomerBusinessProfileDetailsResponseSchema, getCustomerBusinessProfilesForCustomerInputSchema, getCustomerBusinessProfilesForCustomerQuerySchema, getCustomerBusinessProfilesForCustomerResponseSchema, getCustomerBusinessProfilesInputSchema, getCustomerBusinessProfilesQuerySchema, getCustomerBusinessProfilesResponseSchema, getCustomerDetailsInputSchema, getCustomerDetailsResponseSchema, getCustomersInputSchema, getCustomersQuerySchema, getCustomersResponseSchema, updateCustomerAddressInputSchema, updateCustomerAddressResponseSchema, updateCustomerBusinessProfileInputSchema, updateCustomerBusinessProfileResponseSchema, updateCustomerInputSchema, updateCustomerResponseSchema, writableCreateCustomerAddressSchema, writableCreateCustomerBusinessProfileSchema, writableCreateCustomerSchema, writableCustomerAddressSchema, writableCustomerBusinessProfileSchema, writableCustomerSchema };