@deliverart/sdk-js-customer 0.1.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/package.json +12 -26
  2. package/.changeset/config.json +0 -11
  3. package/.github/workflows/workflow.yml +0 -47
  4. package/.prettierrc +0 -7
  5. package/CHANGELOG.md +0 -67
  6. package/README.md +0 -3
  7. package/dist/index.cjs +0 -722
  8. package/dist/index.d.cts +0 -4587
  9. package/dist/index.d.ts +0 -4587
  10. package/dist/index.js +0 -641
  11. package/eslint.config.js +0 -41
  12. package/src/index.ts +0 -3
  13. package/src/models.ts +0 -131
  14. package/src/requests/customer-addresses/CreateCustomerAddress.ts +0 -32
  15. package/src/requests/customer-addresses/DeleteCustomerAddress.ts +0 -30
  16. package/src/requests/customer-addresses/GetCustomerAddressDetails.ts +0 -36
  17. package/src/requests/customer-addresses/GetCustomerAddresses.ts +0 -58
  18. package/src/requests/customer-addresses/GetCustomerAddressesForCustomer.ts +0 -58
  19. package/src/requests/customer-addresses/UpdateCustomerAddress.ts +0 -35
  20. package/src/requests/customer-addresses/index.ts +0 -6
  21. package/src/requests/customer-business-profiles/CreateCustomerBusinessProfile.ts +0 -40
  22. package/src/requests/customer-business-profiles/DeleteCustomerBusinessProfile.ts +0 -30
  23. package/src/requests/customer-business-profiles/GetCustomerBusinessProfileDetails.ts +0 -38
  24. package/src/requests/customer-business-profiles/GetCustomerBusinessProfiles.ts +0 -70
  25. package/src/requests/customer-business-profiles/GetCustomerBusinessProfilesForCustomer.ts +0 -64
  26. package/src/requests/customer-business-profiles/UpdateCustomerBusinessProfile.ts +0 -43
  27. package/src/requests/customer-business-profiles/index.ts +0 -6
  28. package/src/requests/customers/CreateCustomer.ts +0 -32
  29. package/src/requests/customers/DeleteCustomer.ts +0 -30
  30. package/src/requests/customers/GetCustomerDetails.ts +0 -34
  31. package/src/requests/customers/GetCustomers.ts +0 -47
  32. package/src/requests/customers/UpdateCustomer.ts +0 -35
  33. package/src/requests/customers/index.ts +0 -5
  34. package/src/requests/index.ts +0 -3
  35. package/src/types.ts +0 -24
  36. package/tsconfig.json +0 -15
package/dist/index.d.cts DELETED
@@ -1,4587 +0,0 @@
1
- import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
2
- import { Paginated } from '@deliverart/sdk-js-global-types';
3
- import { z } from 'zod';
4
- import { AbstractApiRequest } from '@deliverart/sdk-js-core';
5
- import { AxiosResponse } from 'axios';
6
-
7
- declare const customerSchema: z.ZodObject<{
8
- id: z.ZodString;
9
- firstName: z.ZodNullable<z.ZodString>;
10
- lastName: z.ZodNullable<z.ZodString>;
11
- email: z.ZodNullable<z.ZodString>;
12
- phoneNumber: z.ZodNullable<z.ZodString>;
13
- hasBusinessProfiles: z.ZodBoolean;
14
- hasAddresses: z.ZodBoolean;
15
- ordersPlaced: z.ZodNumber;
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
- }>;
44
- type Customer = z.infer<typeof customerSchema>;
45
- declare const customerDetailsSchema: z.ZodObject<{
46
- id: z.ZodString;
47
- firstName: z.ZodNullable<z.ZodString>;
48
- lastName: z.ZodNullable<z.ZodString>;
49
- email: z.ZodNullable<z.ZodString>;
50
- phoneNumber: z.ZodNullable<z.ZodString>;
51
- hasBusinessProfiles: z.ZodBoolean;
52
- hasAddresses: z.ZodBoolean;
53
- ordersPlaced: z.ZodNumber;
54
- 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
- }>;
95
- type CustomerDetails = z.infer<typeof customerDetailsSchema>;
96
- declare const writableCreateCustomerSchema: z.ZodObject<Pick<{
97
- id: z.ZodString;
98
- firstName: z.ZodNullable<z.ZodString>;
99
- lastName: z.ZodNullable<z.ZodString>;
100
- email: z.ZodNullable<z.ZodString>;
101
- 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;
128
- firstName: z.ZodNullable<z.ZodString>;
129
- lastName: z.ZodNullable<z.ZodString>;
130
- email: z.ZodNullable<z.ZodString>;
131
- 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
- }>;
154
- declare const customerAddressSchema: z.ZodObject<{
155
- id: z.ZodString;
156
- address: z.ZodObject<{
157
- line1: z.ZodString;
158
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
- city: z.ZodString;
160
- region: z.ZodString;
161
- postalCode: z.ZodString;
162
- country: z.ZodString;
163
- }, "strip", z.ZodTypeAny, {
164
- line1: string;
165
- city: string;
166
- region: string;
167
- postalCode: string;
168
- country: string;
169
- line2?: string | null | undefined;
170
- }, {
171
- line1: string;
172
- city: string;
173
- region: string;
174
- postalCode: string;
175
- country: string;
176
- line2?: string | null | undefined;
177
- }>;
178
- location: z.ZodObject<{
179
- latitude: z.ZodNumber;
180
- 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;
196
- city: string;
197
- region: string;
198
- postalCode: string;
199
- country: string;
200
- line2?: 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;
212
- city: string;
213
- region: string;
214
- postalCode: string;
215
- country: string;
216
- line2?: string | null | undefined;
217
- };
218
- location: {
219
- latitude: number;
220
- longitude: number;
221
- };
222
- }>;
223
- type CustomerAddress = z.infer<typeof customerAddressSchema>;
224
- declare const customerAddressDetailsSchema: z.ZodObject<{
225
- id: z.ZodString;
226
- address: z.ZodObject<{
227
- line1: z.ZodString;
228
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
- city: z.ZodString;
230
- region: z.ZodString;
231
- postalCode: z.ZodString;
232
- country: z.ZodString;
233
- }, "strip", z.ZodTypeAny, {
234
- line1: string;
235
- city: string;
236
- region: string;
237
- postalCode: string;
238
- country: string;
239
- line2?: string | null | undefined;
240
- }, {
241
- line1: string;
242
- city: string;
243
- region: string;
244
- postalCode: string;
245
- country: string;
246
- line2?: string | null | undefined;
247
- }>;
248
- location: z.ZodObject<{
249
- latitude: z.ZodNumber;
250
- 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;
268
- city: string;
269
- region: string;
270
- postalCode: string;
271
- country: string;
272
- line2?: 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;
285
- city: string;
286
- region: string;
287
- postalCode: string;
288
- country: string;
289
- line2?: 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
- }>;
297
- type CustomerAddressDetails = z.infer<typeof customerAddressDetailsSchema>;
298
- declare const writableCreateCustomerAddressSchema: z.ZodObject<Pick<{
299
- id: z.ZodString;
300
- address: z.ZodObject<{
301
- line1: z.ZodString;
302
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
- city: z.ZodString;
304
- region: z.ZodString;
305
- postalCode: z.ZodString;
306
- country: z.ZodString;
307
- }, "strip", z.ZodTypeAny, {
308
- line1: string;
309
- city: string;
310
- region: string;
311
- postalCode: string;
312
- country: string;
313
- line2?: string | null | undefined;
314
- }, {
315
- line1: string;
316
- city: string;
317
- region: string;
318
- postalCode: string;
319
- country: string;
320
- line2?: 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;
339
- city: string;
340
- region: string;
341
- postalCode: string;
342
- country: string;
343
- line2?: string | null | undefined;
344
- };
345
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
346
- }, {
347
- address: {
348
- line1: string;
349
- city: string;
350
- region: string;
351
- postalCode: string;
352
- country: string;
353
- line2?: 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;
359
- address: z.ZodObject<{
360
- line1: z.ZodString;
361
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
362
- city: z.ZodString;
363
- region: z.ZodString;
364
- postalCode: z.ZodString;
365
- country: z.ZodString;
366
- }, "strip", z.ZodTypeAny, {
367
- line1: string;
368
- city: string;
369
- region: string;
370
- postalCode: string;
371
- country: string;
372
- line2?: string | null | undefined;
373
- }, {
374
- line1: string;
375
- city: string;
376
- region: string;
377
- postalCode: string;
378
- country: string;
379
- line2?: 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;
398
- city: string;
399
- region: string;
400
- postalCode: string;
401
- country: string;
402
- line2?: string | null | undefined;
403
- };
404
- }, {
405
- address: {
406
- line1: string;
407
- city: string;
408
- region: string;
409
- postalCode: string;
410
- country: string;
411
- line2?: string | null | undefined;
412
- };
413
- }>;
414
- declare const customerBusinessProfileSchema: z.ZodObject<{
415
- id: z.ZodString;
416
- businessName: z.ZodString;
417
- vat: z.ZodString;
418
- taxCode: z.ZodString;
419
- billingAddress: z.ZodObject<{
420
- line1: z.ZodString;
421
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
- city: z.ZodString;
423
- region: z.ZodString;
424
- postalCode: z.ZodString;
425
- country: z.ZodString;
426
- }, "strip", z.ZodTypeAny, {
427
- line1: string;
428
- city: string;
429
- region: string;
430
- postalCode: string;
431
- country: string;
432
- line2?: string | null | undefined;
433
- }, {
434
- line1: string;
435
- city: string;
436
- region: string;
437
- postalCode: string;
438
- country: string;
439
- line2?: string | null | undefined;
440
- }>;
441
- billingData: z.ZodEffects<z.ZodObject<{
442
- 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;
468
- city: string;
469
- region: string;
470
- postalCode: string;
471
- country: string;
472
- line2?: 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;
487
- city: string;
488
- region: string;
489
- postalCode: string;
490
- country: string;
491
- line2?: string | null | undefined;
492
- };
493
- billingData: {
494
- sdi?: string | null | undefined;
495
- pec?: string | null | undefined;
496
- };
497
- }>;
498
- type CustomerBusinessProfile = z.infer<typeof customerBusinessProfileSchema>;
499
- declare const customerBusinessProfileDetailsSchema: z.ZodObject<{
500
- id: z.ZodString;
501
- businessName: z.ZodString;
502
- vat: z.ZodString;
503
- taxCode: z.ZodString;
504
- billingAddress: z.ZodObject<{
505
- line1: z.ZodString;
506
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
507
- city: z.ZodString;
508
- region: z.ZodString;
509
- postalCode: z.ZodString;
510
- country: z.ZodString;
511
- }, "strip", z.ZodTypeAny, {
512
- line1: string;
513
- city: string;
514
- region: string;
515
- postalCode: string;
516
- country: string;
517
- line2?: string | null | undefined;
518
- }, {
519
- line1: string;
520
- city: string;
521
- region: string;
522
- postalCode: string;
523
- country: string;
524
- line2?: string | null | undefined;
525
- }>;
526
- billingData: z.ZodEffects<z.ZodObject<{
527
- 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;
556
- city: string;
557
- region: string;
558
- postalCode: string;
559
- country: string;
560
- line2?: 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;
576
- city: string;
577
- region: string;
578
- postalCode: string;
579
- country: string;
580
- line2?: string | null | undefined;
581
- };
582
- billingData: {
583
- sdi?: string | null | undefined;
584
- pec?: string | null | undefined;
585
- };
586
- }>;
587
- 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;
593
- billingAddress: z.ZodObject<{
594
- line1: z.ZodString;
595
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
596
- city: z.ZodString;
597
- region: z.ZodString;
598
- postalCode: z.ZodString;
599
- country: z.ZodString;
600
- }, "strip", z.ZodTypeAny, {
601
- line1: string;
602
- city: string;
603
- region: string;
604
- postalCode: string;
605
- country: string;
606
- line2?: string | null | undefined;
607
- }, {
608
- line1: string;
609
- city: string;
610
- region: string;
611
- postalCode: string;
612
- country: string;
613
- line2?: string | null | undefined;
614
- }>;
615
- billingData: z.ZodEffects<z.ZodObject<{
616
- 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;
642
- city: string;
643
- region: string;
644
- postalCode: string;
645
- country: string;
646
- line2?: 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;
659
- city: string;
660
- region: string;
661
- postalCode: string;
662
- country: string;
663
- line2?: 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;
672
- businessName: z.ZodString;
673
- vat: z.ZodString;
674
- taxCode: z.ZodString;
675
- billingAddress: z.ZodObject<{
676
- line1: z.ZodString;
677
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
678
- city: z.ZodString;
679
- region: z.ZodString;
680
- postalCode: z.ZodString;
681
- country: z.ZodString;
682
- }, "strip", z.ZodTypeAny, {
683
- line1: string;
684
- city: string;
685
- region: string;
686
- postalCode: string;
687
- country: string;
688
- line2?: string | null | undefined;
689
- }, {
690
- line1: string;
691
- city: string;
692
- region: string;
693
- postalCode: string;
694
- country: string;
695
- line2?: string | null | undefined;
696
- }>;
697
- billingData: z.ZodEffects<z.ZodObject<{
698
- 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;
723
- city: string;
724
- region: string;
725
- postalCode: string;
726
- country: string;
727
- line2?: 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;
739
- city: string;
740
- region: string;
741
- postalCode: string;
742
- country: string;
743
- line2?: string | null | undefined;
744
- };
745
- billingData: {
746
- sdi?: string | null | undefined;
747
- pec?: string | null | undefined;
748
- };
749
- }>;
750
- declare const customersQuerySchema: z.ZodObject<{
751
- firstName: z.ZodOptional<z.ZodString>;
752
- lastName: z.ZodOptional<z.ZodString>;
753
- email: z.ZodOptional<z.ZodString>;
754
- 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
- } & {
773
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
774
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
775
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
776
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
777
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
778
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
779
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
780
- '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
- }>;
842
- type CustomersQueryParams = z.infer<typeof customersQuerySchema>;
843
-
844
- declare const createCustomerAddressInputSchema: z.ZodObject<{
845
- address: z.ZodObject<{
846
- line1: z.ZodString;
847
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
848
- city: z.ZodString;
849
- region: z.ZodString;
850
- postalCode: z.ZodString;
851
- country: z.ZodString;
852
- }, "strip", z.ZodTypeAny, {
853
- line1: string;
854
- city: string;
855
- region: string;
856
- postalCode: string;
857
- country: string;
858
- line2?: string | null | undefined;
859
- }, {
860
- line1: string;
861
- city: string;
862
- region: string;
863
- postalCode: string;
864
- country: string;
865
- line2?: 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;
871
- city: string;
872
- region: string;
873
- postalCode: string;
874
- country: string;
875
- line2?: string | null | undefined;
876
- };
877
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
878
- }, {
879
- address: {
880
- line1: string;
881
- city: string;
882
- region: string;
883
- postalCode: string;
884
- country: string;
885
- line2?: string | null | undefined;
886
- };
887
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
888
- }>;
889
- type CreateCustomerAddressInput = z.input<typeof createCustomerAddressInputSchema>;
890
- declare const createCustomerAddressResponseSchema: z.ZodObject<{
891
- id: z.ZodString;
892
- address: z.ZodObject<{
893
- line1: z.ZodString;
894
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
895
- city: z.ZodString;
896
- region: z.ZodString;
897
- postalCode: z.ZodString;
898
- country: z.ZodString;
899
- }, "strip", z.ZodTypeAny, {
900
- line1: string;
901
- city: string;
902
- region: string;
903
- postalCode: string;
904
- country: string;
905
- line2?: string | null | undefined;
906
- }, {
907
- line1: string;
908
- city: string;
909
- region: string;
910
- postalCode: string;
911
- country: string;
912
- line2?: string | null | undefined;
913
- }>;
914
- location: z.ZodObject<{
915
- latitude: z.ZodNumber;
916
- 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;
934
- city: string;
935
- region: string;
936
- postalCode: string;
937
- country: string;
938
- line2?: 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;
951
- city: string;
952
- region: string;
953
- postalCode: string;
954
- country: string;
955
- line2?: 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
- }>;
963
- type CreateCustomerAddressResponse = z.infer<typeof createCustomerAddressResponseSchema>;
964
- declare class CreateCustomerAddress extends AbstractApiRequest<typeof createCustomerAddressInputSchema, typeof createCustomerAddressResponseSchema> {
965
- readonly method = "POST";
966
- readonly contentType = "application/json";
967
- readonly accept = "application/json";
968
- readonly inputSchema: z.ZodObject<{
969
- address: z.ZodObject<{
970
- line1: z.ZodString;
971
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
972
- city: z.ZodString;
973
- region: z.ZodString;
974
- postalCode: z.ZodString;
975
- country: z.ZodString;
976
- }, "strip", z.ZodTypeAny, {
977
- line1: string;
978
- city: string;
979
- region: string;
980
- postalCode: string;
981
- country: string;
982
- line2?: string | null | undefined;
983
- }, {
984
- line1: string;
985
- city: string;
986
- region: string;
987
- postalCode: string;
988
- country: string;
989
- line2?: 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;
995
- city: string;
996
- region: string;
997
- postalCode: string;
998
- country: string;
999
- line2?: string | null | undefined;
1000
- };
1001
- customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1002
- }, {
1003
- address: {
1004
- line1: string;
1005
- city: string;
1006
- region: string;
1007
- postalCode: string;
1008
- country: string;
1009
- line2?: string | null | undefined;
1010
- };
1011
- customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
1012
- }>;
1013
- readonly outputSchema: z.ZodObject<{
1014
- id: z.ZodString;
1015
- address: z.ZodObject<{
1016
- line1: z.ZodString;
1017
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1018
- city: z.ZodString;
1019
- region: z.ZodString;
1020
- postalCode: z.ZodString;
1021
- country: z.ZodString;
1022
- }, "strip", z.ZodTypeAny, {
1023
- line1: string;
1024
- city: string;
1025
- region: string;
1026
- postalCode: string;
1027
- country: string;
1028
- line2?: string | null | undefined;
1029
- }, {
1030
- line1: string;
1031
- city: string;
1032
- region: string;
1033
- postalCode: string;
1034
- country: string;
1035
- line2?: string | null | undefined;
1036
- }>;
1037
- location: z.ZodObject<{
1038
- latitude: z.ZodNumber;
1039
- 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;
1057
- city: string;
1058
- region: string;
1059
- postalCode: string;
1060
- country: string;
1061
- line2?: 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;
1074
- city: string;
1075
- region: string;
1076
- postalCode: string;
1077
- country: string;
1078
- line2?: 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
- }>;
1086
- readonly querySchema: undefined;
1087
- readonly headersSchema: undefined;
1088
- constructor(input: z.input<typeof createCustomerAddressInputSchema>);
1089
- getPath(): string;
1090
- }
1091
-
1092
- declare const deleteCustomerAddressInputSchema: z.ZodUndefined;
1093
- declare const deleteCustomerAddressResponseSchema: z.ZodUndefined;
1094
- declare class DeleteCustomerAddress extends AbstractApiRequest<typeof deleteCustomerAddressInputSchema, typeof deleteCustomerAddressResponseSchema> {
1095
- readonly method = "DELETE";
1096
- readonly contentType = "application/json";
1097
- readonly accept = "application/json";
1098
- readonly inputSchema: z.ZodUndefined;
1099
- readonly outputSchema: z.ZodUndefined;
1100
- readonly querySchema: undefined;
1101
- readonly headersSchema: undefined;
1102
- private readonly customerAddressId;
1103
- constructor(customerAddressId: string);
1104
- getPath(): string;
1105
- }
1106
-
1107
- declare const getCustomerAddressDetailsInputSchema: z.ZodUndefined;
1108
- type GetCustomerAddressDetailsInput = z.input<typeof getCustomerAddressDetailsInputSchema>;
1109
- declare const getCustomerAddressDetailsResponseSchema: z.ZodObject<{
1110
- id: z.ZodString;
1111
- address: z.ZodObject<{
1112
- line1: z.ZodString;
1113
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1114
- city: z.ZodString;
1115
- region: z.ZodString;
1116
- postalCode: z.ZodString;
1117
- country: z.ZodString;
1118
- }, "strip", z.ZodTypeAny, {
1119
- line1: string;
1120
- city: string;
1121
- region: string;
1122
- postalCode: string;
1123
- country: string;
1124
- line2?: string | null | undefined;
1125
- }, {
1126
- line1: string;
1127
- city: string;
1128
- region: string;
1129
- postalCode: string;
1130
- country: string;
1131
- line2?: string | null | undefined;
1132
- }>;
1133
- location: z.ZodObject<{
1134
- latitude: z.ZodNumber;
1135
- 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;
1153
- city: string;
1154
- region: string;
1155
- postalCode: string;
1156
- country: string;
1157
- line2?: 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;
1170
- city: string;
1171
- region: string;
1172
- postalCode: string;
1173
- country: string;
1174
- line2?: 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
- }>;
1182
- type GetCustomerAddressDetailsResponse = z.infer<typeof getCustomerAddressDetailsResponseSchema>;
1183
- declare class GetCustomerAddressDetails extends AbstractApiRequest<typeof getCustomerAddressDetailsInputSchema, typeof getCustomerAddressDetailsResponseSchema> {
1184
- readonly method = "GET";
1185
- readonly contentType = "application/json";
1186
- readonly accept = "application/json";
1187
- readonly inputSchema: z.ZodUndefined;
1188
- readonly outputSchema: z.ZodObject<{
1189
- id: z.ZodString;
1190
- address: z.ZodObject<{
1191
- line1: z.ZodString;
1192
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1193
- city: z.ZodString;
1194
- region: z.ZodString;
1195
- postalCode: z.ZodString;
1196
- country: z.ZodString;
1197
- }, "strip", z.ZodTypeAny, {
1198
- line1: string;
1199
- city: string;
1200
- region: string;
1201
- postalCode: string;
1202
- country: string;
1203
- line2?: string | null | undefined;
1204
- }, {
1205
- line1: string;
1206
- city: string;
1207
- region: string;
1208
- postalCode: string;
1209
- country: string;
1210
- line2?: string | null | undefined;
1211
- }>;
1212
- location: z.ZodObject<{
1213
- latitude: z.ZodNumber;
1214
- 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;
1232
- city: string;
1233
- region: string;
1234
- postalCode: string;
1235
- country: string;
1236
- line2?: 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;
1249
- city: string;
1250
- region: string;
1251
- postalCode: string;
1252
- country: string;
1253
- line2?: 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
- }>;
1261
- readonly querySchema: undefined;
1262
- readonly headersSchema: undefined;
1263
- private readonly customerAddressId;
1264
- constructor(customerAddressId: string);
1265
- getPath(): string;
1266
- }
1267
-
1268
- 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
- } & {
1273
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
1274
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1275
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
1276
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1277
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1278
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1279
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1280
- '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
- }>;
1306
- type GetCustomerAddressesQueryParams = z.infer<typeof getCustomerAddressesQuerySchema>;
1307
- declare const getCustomerAddressesInputSchema: z.ZodUndefined;
1308
- type GetCustomerAddressesInput = z.input<typeof getCustomerAddressesInputSchema>;
1309
- declare const getCustomerAddressesResponseSchema: z.ZodObject<{
1310
- data: z.ZodArray<z.ZodObject<{
1311
- id: z.ZodString;
1312
- address: z.ZodObject<{
1313
- line1: z.ZodString;
1314
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1315
- city: z.ZodString;
1316
- region: z.ZodString;
1317
- postalCode: z.ZodString;
1318
- country: z.ZodString;
1319
- }, "strip", z.ZodTypeAny, {
1320
- line1: string;
1321
- city: string;
1322
- region: string;
1323
- postalCode: string;
1324
- country: string;
1325
- line2?: string | null | undefined;
1326
- }, {
1327
- line1: string;
1328
- city: string;
1329
- region: string;
1330
- postalCode: string;
1331
- country: string;
1332
- line2?: string | null | undefined;
1333
- }>;
1334
- location: z.ZodObject<{
1335
- latitude: z.ZodNumber;
1336
- 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;
1352
- city: string;
1353
- region: string;
1354
- postalCode: string;
1355
- country: string;
1356
- line2?: 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;
1368
- city: string;
1369
- region: string;
1370
- postalCode: string;
1371
- country: string;
1372
- line2?: string | null | undefined;
1373
- };
1374
- location: {
1375
- latitude: number;
1376
- longitude: number;
1377
- };
1378
- }>, "many">;
1379
- pagination: z.ZodObject<{
1380
- from: z.ZodNumber;
1381
- to: z.ZodNumber;
1382
- itemsPerPage: z.ZodNumber;
1383
- totalItems: z.ZodNumber;
1384
- currentPage: z.ZodNumber;
1385
- 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;
1408
- city: string;
1409
- region: string;
1410
- postalCode: string;
1411
- country: string;
1412
- line2?: 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;
1434
- city: string;
1435
- region: string;
1436
- postalCode: string;
1437
- country: string;
1438
- line2?: 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
- }>;
1454
- type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
1455
- declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomerAddressesInputSchema, typeof getCustomerAddressesResponseSchema, GetCustomerAddressesQueryParams> {
1456
- readonly method = "GET";
1457
- readonly contentType = "application/json";
1458
- readonly accept = "application/json";
1459
- readonly inputSchema: z.ZodUndefined;
1460
- readonly outputSchema: z.ZodObject<{
1461
- data: z.ZodArray<z.ZodObject<{
1462
- id: z.ZodString;
1463
- address: z.ZodObject<{
1464
- line1: z.ZodString;
1465
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1466
- city: z.ZodString;
1467
- region: z.ZodString;
1468
- postalCode: z.ZodString;
1469
- country: z.ZodString;
1470
- }, "strip", z.ZodTypeAny, {
1471
- line1: string;
1472
- city: string;
1473
- region: string;
1474
- postalCode: string;
1475
- country: string;
1476
- line2?: string | null | undefined;
1477
- }, {
1478
- line1: string;
1479
- city: string;
1480
- region: string;
1481
- postalCode: string;
1482
- country: string;
1483
- line2?: string | null | undefined;
1484
- }>;
1485
- location: z.ZodObject<{
1486
- latitude: z.ZodNumber;
1487
- 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;
1503
- city: string;
1504
- region: string;
1505
- postalCode: string;
1506
- country: string;
1507
- line2?: 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;
1519
- city: string;
1520
- region: string;
1521
- postalCode: string;
1522
- country: string;
1523
- line2?: string | null | undefined;
1524
- };
1525
- location: {
1526
- latitude: number;
1527
- longitude: number;
1528
- };
1529
- }>, "many">;
1530
- pagination: z.ZodObject<{
1531
- from: z.ZodNumber;
1532
- to: z.ZodNumber;
1533
- itemsPerPage: z.ZodNumber;
1534
- totalItems: z.ZodNumber;
1535
- currentPage: z.ZodNumber;
1536
- 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;
1559
- city: string;
1560
- region: string;
1561
- postalCode: string;
1562
- country: string;
1563
- line2?: 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;
1585
- city: string;
1586
- region: string;
1587
- postalCode: string;
1588
- country: string;
1589
- line2?: 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
- }>;
1605
- 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
- } & {
1610
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
1611
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1612
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
1613
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1614
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1615
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1616
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1617
- '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
- }>;
1643
- readonly headersSchema: undefined;
1644
- constructor(options?: {
1645
- query?: GetCustomerAddressesQueryParams;
1646
- });
1647
- getPath(): string;
1648
- parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<CustomerAddress>;
1649
- }
1650
-
1651
- declare const getCustomerAddressesForCustomerQuerySchema: z.ZodObject<{
1652
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1653
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1654
- } & {
1655
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
1656
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1657
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
1658
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1659
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1660
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1661
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1662
- '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
- }>;
1686
- type GetCustomerAddressesForCustomerQueryParams = z.infer<typeof getCustomerAddressesForCustomerQuerySchema>;
1687
- declare const getCustomerAddressesForCustomerInputSchema: z.ZodUndefined;
1688
- type GetCustomerAddressesForCustomerInput = z.input<typeof getCustomerAddressesForCustomerInputSchema>;
1689
- declare const getCustomerAddressesForCustomerResponseSchema: z.ZodArray<z.ZodObject<{
1690
- id: z.ZodString;
1691
- address: z.ZodObject<{
1692
- line1: z.ZodString;
1693
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1694
- city: z.ZodString;
1695
- region: z.ZodString;
1696
- postalCode: z.ZodString;
1697
- country: z.ZodString;
1698
- }, "strip", z.ZodTypeAny, {
1699
- line1: string;
1700
- city: string;
1701
- region: string;
1702
- postalCode: string;
1703
- country: string;
1704
- line2?: string | null | undefined;
1705
- }, {
1706
- line1: string;
1707
- city: string;
1708
- region: string;
1709
- postalCode: string;
1710
- country: string;
1711
- line2?: string | null | undefined;
1712
- }>;
1713
- location: z.ZodObject<{
1714
- latitude: z.ZodNumber;
1715
- 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;
1731
- city: string;
1732
- region: string;
1733
- postalCode: string;
1734
- country: string;
1735
- line2?: 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;
1747
- city: string;
1748
- region: string;
1749
- postalCode: string;
1750
- country: string;
1751
- line2?: string | null | undefined;
1752
- };
1753
- location: {
1754
- latitude: number;
1755
- longitude: number;
1756
- };
1757
- }>, "many">;
1758
- type GetCustomerAddressesForCustomerResponse = z.infer<typeof getCustomerAddressesForCustomerResponseSchema>;
1759
- declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<typeof getCustomerAddressesForCustomerInputSchema, typeof getCustomerAddressesForCustomerResponseSchema, GetCustomerAddressesForCustomerQueryParams> {
1760
- readonly method = "GET";
1761
- readonly contentType = "application/json";
1762
- readonly accept = "application/json";
1763
- readonly inputSchema: z.ZodUndefined;
1764
- readonly outputSchema: z.ZodArray<z.ZodObject<{
1765
- id: z.ZodString;
1766
- address: z.ZodObject<{
1767
- line1: z.ZodString;
1768
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1769
- city: z.ZodString;
1770
- region: z.ZodString;
1771
- postalCode: z.ZodString;
1772
- country: z.ZodString;
1773
- }, "strip", z.ZodTypeAny, {
1774
- line1: string;
1775
- city: string;
1776
- region: string;
1777
- postalCode: string;
1778
- country: string;
1779
- line2?: string | null | undefined;
1780
- }, {
1781
- line1: string;
1782
- city: string;
1783
- region: string;
1784
- postalCode: string;
1785
- country: string;
1786
- line2?: string | null | undefined;
1787
- }>;
1788
- location: z.ZodObject<{
1789
- latitude: z.ZodNumber;
1790
- 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;
1806
- city: string;
1807
- region: string;
1808
- postalCode: string;
1809
- country: string;
1810
- line2?: 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;
1822
- city: string;
1823
- region: string;
1824
- postalCode: string;
1825
- country: string;
1826
- line2?: string | null | undefined;
1827
- };
1828
- location: {
1829
- latitude: number;
1830
- longitude: number;
1831
- };
1832
- }>, "many">;
1833
- readonly querySchema: z.ZodObject<{
1834
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1835
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1836
- } & {
1837
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
1838
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1839
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
1840
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1841
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1842
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1843
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1844
- '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
- }>;
1868
- readonly headersSchema: undefined;
1869
- private readonly customerId;
1870
- constructor(customerId: string, options?: {
1871
- query?: GetCustomerAddressesForCustomerQueryParams;
1872
- });
1873
- getPath(): string;
1874
- parseResponse(data: unknown): CustomerAddress[];
1875
- }
1876
-
1877
- declare const updateCustomerAddressInputSchema: z.ZodObject<{
1878
- address: z.ZodOptional<z.ZodObject<{
1879
- line1: z.ZodString;
1880
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1881
- city: z.ZodString;
1882
- region: z.ZodString;
1883
- postalCode: z.ZodString;
1884
- country: z.ZodString;
1885
- }, "strip", z.ZodTypeAny, {
1886
- line1: string;
1887
- city: string;
1888
- region: string;
1889
- postalCode: string;
1890
- country: string;
1891
- line2?: string | null | undefined;
1892
- }, {
1893
- line1: string;
1894
- city: string;
1895
- region: string;
1896
- postalCode: string;
1897
- country: string;
1898
- line2?: string | null | undefined;
1899
- }>>;
1900
- }, "strip", z.ZodTypeAny, {
1901
- address?: {
1902
- line1: string;
1903
- city: string;
1904
- region: string;
1905
- postalCode: string;
1906
- country: string;
1907
- line2?: string | null | undefined;
1908
- } | undefined;
1909
- }, {
1910
- address?: {
1911
- line1: string;
1912
- city: string;
1913
- region: string;
1914
- postalCode: string;
1915
- country: string;
1916
- line2?: string | null | undefined;
1917
- } | undefined;
1918
- }>;
1919
- type UpdateCustomerAddressInput = z.input<typeof updateCustomerAddressInputSchema>;
1920
- declare const updateCustomerAddressResponseSchema: z.ZodObject<{
1921
- id: z.ZodString;
1922
- address: z.ZodObject<{
1923
- line1: z.ZodString;
1924
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1925
- city: z.ZodString;
1926
- region: z.ZodString;
1927
- postalCode: z.ZodString;
1928
- country: z.ZodString;
1929
- }, "strip", z.ZodTypeAny, {
1930
- line1: string;
1931
- city: string;
1932
- region: string;
1933
- postalCode: string;
1934
- country: string;
1935
- line2?: string | null | undefined;
1936
- }, {
1937
- line1: string;
1938
- city: string;
1939
- region: string;
1940
- postalCode: string;
1941
- country: string;
1942
- line2?: string | null | undefined;
1943
- }>;
1944
- location: z.ZodObject<{
1945
- latitude: z.ZodNumber;
1946
- 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;
1964
- city: string;
1965
- region: string;
1966
- postalCode: string;
1967
- country: string;
1968
- line2?: 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;
1981
- city: string;
1982
- region: string;
1983
- postalCode: string;
1984
- country: string;
1985
- line2?: 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
- }>;
1993
- type UpdateCustomerAddressResponse = z.infer<typeof updateCustomerAddressResponseSchema>;
1994
- declare class UpdateCustomerAddress extends AbstractApiRequest<typeof updateCustomerAddressInputSchema, typeof updateCustomerAddressResponseSchema> {
1995
- readonly method = "PATCH";
1996
- readonly contentType = "application/merge-patch+json";
1997
- readonly accept = "application/json";
1998
- readonly inputSchema: z.ZodObject<{
1999
- address: z.ZodOptional<z.ZodObject<{
2000
- line1: z.ZodString;
2001
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2002
- city: z.ZodString;
2003
- region: z.ZodString;
2004
- postalCode: z.ZodString;
2005
- country: z.ZodString;
2006
- }, "strip", z.ZodTypeAny, {
2007
- line1: string;
2008
- city: string;
2009
- region: string;
2010
- postalCode: string;
2011
- country: string;
2012
- line2?: string | null | undefined;
2013
- }, {
2014
- line1: string;
2015
- city: string;
2016
- region: string;
2017
- postalCode: string;
2018
- country: string;
2019
- line2?: string | null | undefined;
2020
- }>>;
2021
- }, "strip", z.ZodTypeAny, {
2022
- address?: {
2023
- line1: string;
2024
- city: string;
2025
- region: string;
2026
- postalCode: string;
2027
- country: string;
2028
- line2?: string | null | undefined;
2029
- } | undefined;
2030
- }, {
2031
- address?: {
2032
- line1: string;
2033
- city: string;
2034
- region: string;
2035
- postalCode: string;
2036
- country: string;
2037
- line2?: string | null | undefined;
2038
- } | undefined;
2039
- }>;
2040
- readonly outputSchema: z.ZodObject<{
2041
- id: z.ZodString;
2042
- address: z.ZodObject<{
2043
- line1: z.ZodString;
2044
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2045
- city: z.ZodString;
2046
- region: z.ZodString;
2047
- postalCode: z.ZodString;
2048
- country: z.ZodString;
2049
- }, "strip", z.ZodTypeAny, {
2050
- line1: string;
2051
- city: string;
2052
- region: string;
2053
- postalCode: string;
2054
- country: string;
2055
- line2?: string | null | undefined;
2056
- }, {
2057
- line1: string;
2058
- city: string;
2059
- region: string;
2060
- postalCode: string;
2061
- country: string;
2062
- line2?: string | null | undefined;
2063
- }>;
2064
- location: z.ZodObject<{
2065
- latitude: z.ZodNumber;
2066
- 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;
2084
- city: string;
2085
- region: string;
2086
- postalCode: string;
2087
- country: string;
2088
- line2?: 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;
2101
- city: string;
2102
- region: string;
2103
- postalCode: string;
2104
- country: string;
2105
- line2?: 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
- }>;
2113
- readonly querySchema: undefined;
2114
- readonly headersSchema: undefined;
2115
- private readonly customerId;
2116
- constructor(customerId: string, input: UpdateCustomerAddressInput);
2117
- getPath(): string;
2118
- }
2119
-
2120
- 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<{
2126
- line1: z.ZodString;
2127
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2128
- city: z.ZodString;
2129
- region: z.ZodString;
2130
- postalCode: z.ZodString;
2131
- country: z.ZodString;
2132
- }, "strip", z.ZodTypeAny, {
2133
- line1: string;
2134
- city: string;
2135
- region: string;
2136
- postalCode: string;
2137
- country: string;
2138
- line2?: string | null | undefined;
2139
- }, {
2140
- line1: string;
2141
- city: string;
2142
- region: string;
2143
- postalCode: string;
2144
- country: string;
2145
- line2?: string | null | undefined;
2146
- }>;
2147
- billingData: z.ZodEffects<z.ZodObject<{
2148
- 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;
2170
- city: string;
2171
- region: string;
2172
- postalCode: string;
2173
- country: string;
2174
- line2?: 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;
2187
- city: string;
2188
- region: string;
2189
- postalCode: string;
2190
- country: string;
2191
- line2?: string | null | undefined;
2192
- };
2193
- billingData: {
2194
- sdi?: string | null | undefined;
2195
- pec?: string | null | undefined;
2196
- };
2197
- }>;
2198
- type CreateCustomerBusinessProfileInput = z.input<typeof createCustomerBusinessProfileInputSchema>;
2199
- declare const createCustomerBusinessProfileResponseSchema: z.ZodObject<{
2200
- id: z.ZodString;
2201
- businessName: z.ZodString;
2202
- vat: z.ZodString;
2203
- taxCode: z.ZodString;
2204
- billingAddress: z.ZodObject<{
2205
- line1: z.ZodString;
2206
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2207
- city: z.ZodString;
2208
- region: z.ZodString;
2209
- postalCode: z.ZodString;
2210
- country: z.ZodString;
2211
- }, "strip", z.ZodTypeAny, {
2212
- line1: string;
2213
- city: string;
2214
- region: string;
2215
- postalCode: string;
2216
- country: string;
2217
- line2?: string | null | undefined;
2218
- }, {
2219
- line1: string;
2220
- city: string;
2221
- region: string;
2222
- postalCode: string;
2223
- country: string;
2224
- line2?: string | null | undefined;
2225
- }>;
2226
- billingData: z.ZodEffects<z.ZodObject<{
2227
- 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;
2256
- city: string;
2257
- region: string;
2258
- postalCode: string;
2259
- country: string;
2260
- line2?: 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;
2276
- city: string;
2277
- region: string;
2278
- postalCode: string;
2279
- country: string;
2280
- line2?: string | null | undefined;
2281
- };
2282
- billingData: {
2283
- sdi?: string | null | undefined;
2284
- pec?: string | null | undefined;
2285
- };
2286
- }>;
2287
- type CreateCustomerBusinessProfileResponse = z.infer<typeof createCustomerBusinessProfileResponseSchema>;
2288
- declare class CreateCustomerBusinessProfile extends AbstractApiRequest<typeof createCustomerBusinessProfileInputSchema, typeof createCustomerBusinessProfileResponseSchema> {
2289
- readonly method = "POST";
2290
- readonly contentType = "application/json";
2291
- readonly accept = "application/json";
2292
- 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<{
2298
- line1: z.ZodString;
2299
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2300
- city: z.ZodString;
2301
- region: z.ZodString;
2302
- postalCode: z.ZodString;
2303
- country: z.ZodString;
2304
- }, "strip", z.ZodTypeAny, {
2305
- line1: string;
2306
- city: string;
2307
- region: string;
2308
- postalCode: string;
2309
- country: string;
2310
- line2?: string | null | undefined;
2311
- }, {
2312
- line1: string;
2313
- city: string;
2314
- region: string;
2315
- postalCode: string;
2316
- country: string;
2317
- line2?: string | null | undefined;
2318
- }>;
2319
- billingData: z.ZodEffects<z.ZodObject<{
2320
- 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;
2342
- city: string;
2343
- region: string;
2344
- postalCode: string;
2345
- country: string;
2346
- line2?: 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;
2359
- city: string;
2360
- region: string;
2361
- postalCode: string;
2362
- country: string;
2363
- line2?: string | null | undefined;
2364
- };
2365
- billingData: {
2366
- sdi?: string | null | undefined;
2367
- pec?: string | null | undefined;
2368
- };
2369
- }>;
2370
- readonly outputSchema: z.ZodObject<{
2371
- id: z.ZodString;
2372
- businessName: z.ZodString;
2373
- vat: z.ZodString;
2374
- taxCode: z.ZodString;
2375
- billingAddress: z.ZodObject<{
2376
- line1: z.ZodString;
2377
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2378
- city: z.ZodString;
2379
- region: z.ZodString;
2380
- postalCode: z.ZodString;
2381
- country: z.ZodString;
2382
- }, "strip", z.ZodTypeAny, {
2383
- line1: string;
2384
- city: string;
2385
- region: string;
2386
- postalCode: string;
2387
- country: string;
2388
- line2?: string | null | undefined;
2389
- }, {
2390
- line1: string;
2391
- city: string;
2392
- region: string;
2393
- postalCode: string;
2394
- country: string;
2395
- line2?: string | null | undefined;
2396
- }>;
2397
- billingData: z.ZodEffects<z.ZodObject<{
2398
- 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;
2427
- city: string;
2428
- region: string;
2429
- postalCode: string;
2430
- country: string;
2431
- line2?: 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;
2447
- city: string;
2448
- region: string;
2449
- postalCode: string;
2450
- country: string;
2451
- line2?: string | null | undefined;
2452
- };
2453
- billingData: {
2454
- sdi?: string | null | undefined;
2455
- pec?: string | null | undefined;
2456
- };
2457
- }>;
2458
- readonly querySchema: undefined;
2459
- readonly headersSchema: undefined;
2460
- constructor(input: CreateCustomerBusinessProfileInput);
2461
- getPath(): string;
2462
- }
2463
-
2464
- declare const deleteCustomerBusinessProfileInputSchema: z.ZodUndefined;
2465
- declare const deleteCustomerBusinessProfileResponseSchema: z.ZodUndefined;
2466
- declare class DeleteCustomerBusinessProfile extends AbstractApiRequest<typeof deleteCustomerBusinessProfileInputSchema, typeof deleteCustomerBusinessProfileResponseSchema> {
2467
- readonly method = "DELETE";
2468
- readonly contentType = "application/json";
2469
- readonly accept = "application/json";
2470
- readonly inputSchema: z.ZodUndefined;
2471
- readonly outputSchema: z.ZodUndefined;
2472
- readonly querySchema: undefined;
2473
- readonly headersSchema: undefined;
2474
- private readonly customerBusinessProfileId;
2475
- constructor(customerBusinessProfileId: string);
2476
- getPath(): string;
2477
- }
2478
-
2479
- declare const getCustomerBusinessProfileDetailsInputSchema: z.ZodUndefined;
2480
- type GetCustomerBusinessProfileDetailsInput = z.infer<typeof getCustomerBusinessProfileDetailsInputSchema>;
2481
- declare const getCustomerBusinessProfileDetailsResponseSchema: z.ZodObject<{
2482
- id: z.ZodString;
2483
- businessName: z.ZodString;
2484
- vat: z.ZodString;
2485
- taxCode: z.ZodString;
2486
- billingAddress: z.ZodObject<{
2487
- line1: z.ZodString;
2488
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2489
- city: z.ZodString;
2490
- region: z.ZodString;
2491
- postalCode: z.ZodString;
2492
- country: z.ZodString;
2493
- }, "strip", z.ZodTypeAny, {
2494
- line1: string;
2495
- city: string;
2496
- region: string;
2497
- postalCode: string;
2498
- country: string;
2499
- line2?: string | null | undefined;
2500
- }, {
2501
- line1: string;
2502
- city: string;
2503
- region: string;
2504
- postalCode: string;
2505
- country: string;
2506
- line2?: string | null | undefined;
2507
- }>;
2508
- billingData: z.ZodEffects<z.ZodObject<{
2509
- 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;
2538
- city: string;
2539
- region: string;
2540
- postalCode: string;
2541
- country: string;
2542
- line2?: 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;
2558
- city: string;
2559
- region: string;
2560
- postalCode: string;
2561
- country: string;
2562
- line2?: string | null | undefined;
2563
- };
2564
- billingData: {
2565
- sdi?: string | null | undefined;
2566
- pec?: string | null | undefined;
2567
- };
2568
- }>;
2569
- type GetCustomerBusinessProfileDetailsResponse = z.infer<typeof getCustomerBusinessProfileDetailsResponseSchema>;
2570
- declare class GetCustomerBusinessProfileDetails extends AbstractApiRequest<typeof getCustomerBusinessProfileDetailsInputSchema, typeof getCustomerBusinessProfileDetailsResponseSchema> {
2571
- readonly method = "GET";
2572
- readonly contentType = "application/json";
2573
- readonly accept = "application/json";
2574
- readonly inputSchema: z.ZodUndefined;
2575
- readonly outputSchema: z.ZodObject<{
2576
- id: z.ZodString;
2577
- businessName: z.ZodString;
2578
- vat: z.ZodString;
2579
- taxCode: z.ZodString;
2580
- billingAddress: z.ZodObject<{
2581
- line1: z.ZodString;
2582
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2583
- city: z.ZodString;
2584
- region: z.ZodString;
2585
- postalCode: z.ZodString;
2586
- country: z.ZodString;
2587
- }, "strip", z.ZodTypeAny, {
2588
- line1: string;
2589
- city: string;
2590
- region: string;
2591
- postalCode: string;
2592
- country: string;
2593
- line2?: string | null | undefined;
2594
- }, {
2595
- line1: string;
2596
- city: string;
2597
- region: string;
2598
- postalCode: string;
2599
- country: string;
2600
- line2?: string | null | undefined;
2601
- }>;
2602
- billingData: z.ZodEffects<z.ZodObject<{
2603
- 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;
2632
- city: string;
2633
- region: string;
2634
- postalCode: string;
2635
- country: string;
2636
- line2?: 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;
2652
- city: string;
2653
- region: string;
2654
- postalCode: string;
2655
- country: string;
2656
- line2?: string | null | undefined;
2657
- };
2658
- billingData: {
2659
- sdi?: string | null | undefined;
2660
- pec?: string | null | undefined;
2661
- };
2662
- }>;
2663
- readonly querySchema: undefined;
2664
- readonly headersSchema: undefined;
2665
- private readonly customerBusinessProfileId;
2666
- constructor(customerBusinessProfileId: string);
2667
- getPath(): string;
2668
- }
2669
-
2670
- 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"]>>;
2674
- businessName: z.ZodOptional<z.ZodString>;
2675
- vat: z.ZodOptional<z.ZodString>;
2676
- taxCode: z.ZodOptional<z.ZodString>;
2677
- page: z.ZodOptional<z.ZodNumber>;
2678
- } & {
2679
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
2680
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
2681
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
2682
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
2683
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
2684
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
2685
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
2686
- '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
- }>;
2720
- type GetCustomerBusinessProfilesQueryParams = z.infer<typeof getCustomerBusinessProfilesQuerySchema>;
2721
- declare const getCustomerBusinessProfilesInputSchema: z.ZodUndefined;
2722
- type GetCustomerBusinessProfilesInput = z.infer<typeof getCustomerBusinessProfilesInputSchema>;
2723
- declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
2724
- data: z.ZodArray<z.ZodObject<{
2725
- id: z.ZodString;
2726
- businessName: z.ZodString;
2727
- vat: z.ZodString;
2728
- taxCode: z.ZodString;
2729
- billingAddress: z.ZodObject<{
2730
- line1: z.ZodString;
2731
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2732
- city: z.ZodString;
2733
- region: z.ZodString;
2734
- postalCode: z.ZodString;
2735
- country: z.ZodString;
2736
- }, "strip", z.ZodTypeAny, {
2737
- line1: string;
2738
- city: string;
2739
- region: string;
2740
- postalCode: string;
2741
- country: string;
2742
- line2?: string | null | undefined;
2743
- }, {
2744
- line1: string;
2745
- city: string;
2746
- region: string;
2747
- postalCode: string;
2748
- country: string;
2749
- line2?: string | null | undefined;
2750
- }>;
2751
- billingData: z.ZodEffects<z.ZodObject<{
2752
- 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;
2778
- city: string;
2779
- region: string;
2780
- postalCode: string;
2781
- country: string;
2782
- line2?: 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;
2797
- city: string;
2798
- region: string;
2799
- postalCode: string;
2800
- country: string;
2801
- line2?: string | null | undefined;
2802
- };
2803
- billingData: {
2804
- sdi?: string | null | undefined;
2805
- pec?: string | null | undefined;
2806
- };
2807
- }>, "many">;
2808
- pagination: z.ZodObject<{
2809
- from: z.ZodNumber;
2810
- to: z.ZodNumber;
2811
- itemsPerPage: z.ZodNumber;
2812
- totalItems: z.ZodNumber;
2813
- currentPage: z.ZodNumber;
2814
- 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;
2840
- city: string;
2841
- region: string;
2842
- postalCode: string;
2843
- country: string;
2844
- line2?: 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;
2869
- city: string;
2870
- region: string;
2871
- postalCode: string;
2872
- country: string;
2873
- line2?: 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
- }>;
2889
- type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
2890
- declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getCustomerBusinessProfilesInputSchema, typeof getCustomerBusinessProfilesResponseSchema, GetCustomerBusinessProfilesQueryParams> {
2891
- readonly method = "GET";
2892
- readonly contentType = "application/json";
2893
- readonly accept = "application/json";
2894
- readonly inputSchema: z.ZodUndefined;
2895
- readonly outputSchema: z.ZodObject<{
2896
- data: z.ZodArray<z.ZodObject<{
2897
- id: z.ZodString;
2898
- businessName: z.ZodString;
2899
- vat: z.ZodString;
2900
- taxCode: z.ZodString;
2901
- billingAddress: z.ZodObject<{
2902
- line1: z.ZodString;
2903
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2904
- city: z.ZodString;
2905
- region: z.ZodString;
2906
- postalCode: z.ZodString;
2907
- country: z.ZodString;
2908
- }, "strip", z.ZodTypeAny, {
2909
- line1: string;
2910
- city: string;
2911
- region: string;
2912
- postalCode: string;
2913
- country: string;
2914
- line2?: string | null | undefined;
2915
- }, {
2916
- line1: string;
2917
- city: string;
2918
- region: string;
2919
- postalCode: string;
2920
- country: string;
2921
- line2?: string | null | undefined;
2922
- }>;
2923
- billingData: z.ZodEffects<z.ZodObject<{
2924
- 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;
2950
- city: string;
2951
- region: string;
2952
- postalCode: string;
2953
- country: string;
2954
- line2?: 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;
2969
- city: string;
2970
- region: string;
2971
- postalCode: string;
2972
- country: string;
2973
- line2?: string | null | undefined;
2974
- };
2975
- billingData: {
2976
- sdi?: string | null | undefined;
2977
- pec?: string | null | undefined;
2978
- };
2979
- }>, "many">;
2980
- pagination: z.ZodObject<{
2981
- from: z.ZodNumber;
2982
- to: z.ZodNumber;
2983
- itemsPerPage: z.ZodNumber;
2984
- totalItems: z.ZodNumber;
2985
- currentPage: z.ZodNumber;
2986
- 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;
3012
- city: string;
3013
- region: string;
3014
- postalCode: string;
3015
- country: string;
3016
- line2?: 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;
3041
- city: string;
3042
- region: string;
3043
- postalCode: string;
3044
- country: string;
3045
- line2?: 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
- }>;
3061
- 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"]>>;
3065
- businessName: z.ZodOptional<z.ZodString>;
3066
- vat: z.ZodOptional<z.ZodString>;
3067
- taxCode: z.ZodOptional<z.ZodString>;
3068
- page: z.ZodOptional<z.ZodNumber>;
3069
- } & {
3070
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
3071
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3072
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
3073
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
3074
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
3075
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3076
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
3077
- '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
- }>;
3111
- readonly headersSchema: undefined;
3112
- constructor(options?: {
3113
- query?: GetCustomerBusinessProfilesQueryParams;
3114
- });
3115
- getPath(): string;
3116
- parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<CustomerBusinessProfile>;
3117
- }
3118
-
3119
- 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"]>>;
3123
- businessName: z.ZodOptional<z.ZodString>;
3124
- vat: z.ZodOptional<z.ZodString>;
3125
- taxCode: z.ZodOptional<z.ZodString>;
3126
- } & {
3127
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
3128
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3129
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
3130
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
3131
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
3132
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3133
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
3134
- '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
- }>;
3166
- type GetCustomerBusinessProfilesForCustomerQueryParams = z.infer<typeof getCustomerBusinessProfilesForCustomerQuerySchema>;
3167
- declare const getCustomerBusinessProfilesForCustomerInputSchema: z.ZodUndefined;
3168
- type GetCustomerBusinessProfilesForCustomerInput = z.input<typeof getCustomerBusinessProfilesForCustomerInputSchema>;
3169
- declare const getCustomerBusinessProfilesForCustomerResponseSchema: z.ZodArray<z.ZodObject<{
3170
- id: z.ZodString;
3171
- businessName: z.ZodString;
3172
- vat: z.ZodString;
3173
- taxCode: z.ZodString;
3174
- billingAddress: z.ZodObject<{
3175
- line1: z.ZodString;
3176
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3177
- city: z.ZodString;
3178
- region: z.ZodString;
3179
- postalCode: z.ZodString;
3180
- country: z.ZodString;
3181
- }, "strip", z.ZodTypeAny, {
3182
- line1: string;
3183
- city: string;
3184
- region: string;
3185
- postalCode: string;
3186
- country: string;
3187
- line2?: string | null | undefined;
3188
- }, {
3189
- line1: string;
3190
- city: string;
3191
- region: string;
3192
- postalCode: string;
3193
- country: string;
3194
- line2?: string | null | undefined;
3195
- }>;
3196
- billingData: z.ZodEffects<z.ZodObject<{
3197
- 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;
3223
- city: string;
3224
- region: string;
3225
- postalCode: string;
3226
- country: string;
3227
- line2?: 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;
3242
- city: string;
3243
- region: string;
3244
- postalCode: string;
3245
- country: string;
3246
- line2?: string | null | undefined;
3247
- };
3248
- billingData: {
3249
- sdi?: string | null | undefined;
3250
- pec?: string | null | undefined;
3251
- };
3252
- }>, "many">;
3253
- type GetCustomerBusinessProfilesForCustomerResponse = z.infer<typeof getCustomerBusinessProfilesForCustomerResponseSchema>;
3254
- declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<typeof getCustomerBusinessProfilesForCustomerInputSchema, typeof getCustomerBusinessProfilesForCustomerResponseSchema, GetCustomerBusinessProfilesForCustomerQueryParams> {
3255
- readonly method = "GET";
3256
- readonly contentType = "application/json";
3257
- readonly accept = "application/json";
3258
- readonly inputSchema: z.ZodUndefined;
3259
- readonly outputSchema: z.ZodArray<z.ZodObject<{
3260
- id: z.ZodString;
3261
- businessName: z.ZodString;
3262
- vat: z.ZodString;
3263
- taxCode: z.ZodString;
3264
- billingAddress: z.ZodObject<{
3265
- line1: z.ZodString;
3266
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3267
- city: z.ZodString;
3268
- region: z.ZodString;
3269
- postalCode: z.ZodString;
3270
- country: z.ZodString;
3271
- }, "strip", z.ZodTypeAny, {
3272
- line1: string;
3273
- city: string;
3274
- region: string;
3275
- postalCode: string;
3276
- country: string;
3277
- line2?: string | null | undefined;
3278
- }, {
3279
- line1: string;
3280
- city: string;
3281
- region: string;
3282
- postalCode: string;
3283
- country: string;
3284
- line2?: string | null | undefined;
3285
- }>;
3286
- billingData: z.ZodEffects<z.ZodObject<{
3287
- 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;
3313
- city: string;
3314
- region: string;
3315
- postalCode: string;
3316
- country: string;
3317
- line2?: 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;
3332
- city: string;
3333
- region: string;
3334
- postalCode: string;
3335
- country: string;
3336
- line2?: string | null | undefined;
3337
- };
3338
- billingData: {
3339
- sdi?: string | null | undefined;
3340
- pec?: string | null | undefined;
3341
- };
3342
- }>, "many">;
3343
- 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"]>>;
3347
- businessName: z.ZodOptional<z.ZodString>;
3348
- vat: z.ZodOptional<z.ZodString>;
3349
- taxCode: z.ZodOptional<z.ZodString>;
3350
- } & {
3351
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
3352
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3353
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
3354
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
3355
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
3356
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3357
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
3358
- '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
- }>;
3390
- readonly headersSchema: undefined;
3391
- private readonly customerId;
3392
- constructor(customerId: string, options?: {
3393
- query?: GetCustomerBusinessProfilesForCustomerQueryParams;
3394
- });
3395
- getPath(): string;
3396
- parseResponse(data: unknown): CustomerBusinessProfile[];
3397
- }
3398
-
3399
- declare const updateCustomerBusinessProfileInputSchema: z.ZodObject<{
3400
- businessName: z.ZodOptional<z.ZodString>;
3401
- vat: z.ZodOptional<z.ZodString>;
3402
- taxCode: z.ZodOptional<z.ZodString>;
3403
- billingAddress: z.ZodOptional<z.ZodObject<{
3404
- line1: z.ZodString;
3405
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3406
- city: z.ZodString;
3407
- region: z.ZodString;
3408
- postalCode: z.ZodString;
3409
- country: z.ZodString;
3410
- }, "strip", z.ZodTypeAny, {
3411
- line1: string;
3412
- city: string;
3413
- region: string;
3414
- postalCode: string;
3415
- country: string;
3416
- line2?: string | null | undefined;
3417
- }, {
3418
- line1: string;
3419
- city: string;
3420
- region: string;
3421
- postalCode: string;
3422
- country: string;
3423
- line2?: string | null | undefined;
3424
- }>>;
3425
- billingData: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3426
- 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;
3447
- city: string;
3448
- region: string;
3449
- postalCode: string;
3450
- country: string;
3451
- line2?: 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;
3463
- city: string;
3464
- region: string;
3465
- postalCode: string;
3466
- country: string;
3467
- line2?: string | null | undefined;
3468
- } | undefined;
3469
- billingData?: {
3470
- sdi?: string | null | undefined;
3471
- pec?: string | null | undefined;
3472
- } | undefined;
3473
- }>;
3474
- type UpdateCustomerBusinessProfileInput = z.input<typeof updateCustomerBusinessProfileInputSchema>;
3475
- declare const updateCustomerBusinessProfileResponseSchema: z.ZodObject<{
3476
- id: z.ZodString;
3477
- businessName: z.ZodString;
3478
- vat: z.ZodString;
3479
- taxCode: z.ZodString;
3480
- billingAddress: z.ZodObject<{
3481
- line1: z.ZodString;
3482
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3483
- city: z.ZodString;
3484
- region: z.ZodString;
3485
- postalCode: z.ZodString;
3486
- country: z.ZodString;
3487
- }, "strip", z.ZodTypeAny, {
3488
- line1: string;
3489
- city: string;
3490
- region: string;
3491
- postalCode: string;
3492
- country: string;
3493
- line2?: string | null | undefined;
3494
- }, {
3495
- line1: string;
3496
- city: string;
3497
- region: string;
3498
- postalCode: string;
3499
- country: string;
3500
- line2?: string | null | undefined;
3501
- }>;
3502
- billingData: z.ZodEffects<z.ZodObject<{
3503
- 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;
3532
- city: string;
3533
- region: string;
3534
- postalCode: string;
3535
- country: string;
3536
- line2?: 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;
3552
- city: string;
3553
- region: string;
3554
- postalCode: string;
3555
- country: string;
3556
- line2?: string | null | undefined;
3557
- };
3558
- billingData: {
3559
- sdi?: string | null | undefined;
3560
- pec?: string | null | undefined;
3561
- };
3562
- }>;
3563
- type UpdateCustomerBusinessProfileResponse = z.output<typeof updateCustomerBusinessProfileResponseSchema>;
3564
- declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<typeof updateCustomerBusinessProfileInputSchema, typeof updateCustomerBusinessProfileResponseSchema> {
3565
- readonly method = "PATCH";
3566
- readonly contentType = "application/merge-patch+json";
3567
- readonly accept = "application/json";
3568
- readonly inputSchema: z.ZodObject<{
3569
- businessName: z.ZodOptional<z.ZodString>;
3570
- vat: z.ZodOptional<z.ZodString>;
3571
- taxCode: z.ZodOptional<z.ZodString>;
3572
- billingAddress: z.ZodOptional<z.ZodObject<{
3573
- line1: z.ZodString;
3574
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3575
- city: z.ZodString;
3576
- region: z.ZodString;
3577
- postalCode: z.ZodString;
3578
- country: z.ZodString;
3579
- }, "strip", z.ZodTypeAny, {
3580
- line1: string;
3581
- city: string;
3582
- region: string;
3583
- postalCode: string;
3584
- country: string;
3585
- line2?: string | null | undefined;
3586
- }, {
3587
- line1: string;
3588
- city: string;
3589
- region: string;
3590
- postalCode: string;
3591
- country: string;
3592
- line2?: string | null | undefined;
3593
- }>>;
3594
- billingData: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3595
- 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;
3616
- city: string;
3617
- region: string;
3618
- postalCode: string;
3619
- country: string;
3620
- line2?: 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;
3632
- city: string;
3633
- region: string;
3634
- postalCode: string;
3635
- country: string;
3636
- line2?: string | null | undefined;
3637
- } | undefined;
3638
- billingData?: {
3639
- sdi?: string | null | undefined;
3640
- pec?: string | null | undefined;
3641
- } | undefined;
3642
- }>;
3643
- readonly outputSchema: z.ZodObject<{
3644
- id: z.ZodString;
3645
- businessName: z.ZodString;
3646
- vat: z.ZodString;
3647
- taxCode: z.ZodString;
3648
- billingAddress: z.ZodObject<{
3649
- line1: z.ZodString;
3650
- line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3651
- city: z.ZodString;
3652
- region: z.ZodString;
3653
- postalCode: z.ZodString;
3654
- country: z.ZodString;
3655
- }, "strip", z.ZodTypeAny, {
3656
- line1: string;
3657
- city: string;
3658
- region: string;
3659
- postalCode: string;
3660
- country: string;
3661
- line2?: string | null | undefined;
3662
- }, {
3663
- line1: string;
3664
- city: string;
3665
- region: string;
3666
- postalCode: string;
3667
- country: string;
3668
- line2?: string | null | undefined;
3669
- }>;
3670
- billingData: z.ZodEffects<z.ZodObject<{
3671
- 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;
3700
- city: string;
3701
- region: string;
3702
- postalCode: string;
3703
- country: string;
3704
- line2?: 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;
3720
- city: string;
3721
- region: string;
3722
- postalCode: string;
3723
- country: string;
3724
- line2?: string | null | undefined;
3725
- };
3726
- billingData: {
3727
- sdi?: string | null | undefined;
3728
- pec?: string | null | undefined;
3729
- };
3730
- }>;
3731
- readonly querySchema: undefined;
3732
- readonly headersSchema: undefined;
3733
- private readonly customerId;
3734
- constructor(customerId: string, input: UpdateCustomerBusinessProfileInput);
3735
- getPath(): string;
3736
- }
3737
-
3738
- 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
- }>;
3757
- type CreateCustomerInput = z.input<typeof createCustomerInputSchema>;
3758
- declare const createCustomerResponseSchema: z.ZodObject<{
3759
- id: z.ZodString;
3760
- firstName: z.ZodNullable<z.ZodString>;
3761
- lastName: z.ZodNullable<z.ZodString>;
3762
- email: z.ZodNullable<z.ZodString>;
3763
- phoneNumber: z.ZodNullable<z.ZodString>;
3764
- hasBusinessProfiles: z.ZodBoolean;
3765
- hasAddresses: z.ZodBoolean;
3766
- ordersPlaced: z.ZodNumber;
3767
- 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
- }>;
3808
- type CreateCustomerResponse = z.output<typeof createCustomerResponseSchema>;
3809
- declare class CreateCustomer extends AbstractApiRequest<typeof createCustomerInputSchema, typeof createCustomerResponseSchema> {
3810
- readonly method = "POST";
3811
- readonly contentType = "application/json";
3812
- readonly accept = "application/json";
3813
- 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
- }>;
3832
- readonly outputSchema: z.ZodObject<{
3833
- id: z.ZodString;
3834
- firstName: z.ZodNullable<z.ZodString>;
3835
- lastName: z.ZodNullable<z.ZodString>;
3836
- email: z.ZodNullable<z.ZodString>;
3837
- phoneNumber: z.ZodNullable<z.ZodString>;
3838
- hasBusinessProfiles: z.ZodBoolean;
3839
- hasAddresses: z.ZodBoolean;
3840
- ordersPlaced: z.ZodNumber;
3841
- 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
- }>;
3882
- readonly querySchema: undefined;
3883
- readonly headersSchema: undefined;
3884
- constructor(input: CreateCustomerInput);
3885
- getPath(): string;
3886
- }
3887
-
3888
- declare const deleteCustomerInputSchema: z.ZodUndefined;
3889
- declare const deleteCustomerResponseSchema: z.ZodUndefined;
3890
- declare class DeleteCustomer extends AbstractApiRequest<typeof deleteCustomerInputSchema, typeof deleteCustomerResponseSchema> {
3891
- readonly method = "DELETE";
3892
- readonly contentType = "application/json";
3893
- readonly accept = "application/json";
3894
- readonly inputSchema: z.ZodUndefined;
3895
- readonly outputSchema: z.ZodUndefined;
3896
- readonly querySchema: undefined;
3897
- readonly headersSchema: undefined;
3898
- private readonly customerId;
3899
- constructor(customerId: string);
3900
- getPath(): string;
3901
- }
3902
-
3903
- declare const getCustomerDetailsInputSchema: z.ZodUndefined;
3904
- type GetCustomerDetailsInput = z.infer<typeof getCustomerDetailsInputSchema>;
3905
- declare const getCustomerDetailsResponseSchema: z.ZodObject<{
3906
- id: z.ZodString;
3907
- firstName: z.ZodNullable<z.ZodString>;
3908
- lastName: z.ZodNullable<z.ZodString>;
3909
- email: z.ZodNullable<z.ZodString>;
3910
- phoneNumber: z.ZodNullable<z.ZodString>;
3911
- hasBusinessProfiles: z.ZodBoolean;
3912
- hasAddresses: z.ZodBoolean;
3913
- ordersPlaced: z.ZodNumber;
3914
- 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
- }>;
3955
- type GetCustomerDetailsResponse = z.infer<typeof getCustomerDetailsResponseSchema>;
3956
- declare class GetCustomerDetails extends AbstractApiRequest<typeof getCustomerDetailsInputSchema, typeof getCustomerDetailsResponseSchema> {
3957
- readonly method = "GET";
3958
- readonly contentType = "application/json";
3959
- readonly accept = "application/json";
3960
- readonly inputSchema: z.ZodUndefined;
3961
- readonly outputSchema: z.ZodObject<{
3962
- id: z.ZodString;
3963
- firstName: z.ZodNullable<z.ZodString>;
3964
- lastName: z.ZodNullable<z.ZodString>;
3965
- email: z.ZodNullable<z.ZodString>;
3966
- phoneNumber: z.ZodNullable<z.ZodString>;
3967
- hasBusinessProfiles: z.ZodBoolean;
3968
- hasAddresses: z.ZodBoolean;
3969
- ordersPlaced: z.ZodNumber;
3970
- 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
- }>;
4011
- readonly querySchema: undefined;
4012
- readonly headersSchema: undefined;
4013
- private readonly customerId;
4014
- constructor(customerId: string);
4015
- getPath(): string;
4016
- }
4017
-
4018
- declare const getCustomersQuerySchema: z.ZodObject<{
4019
- firstName: z.ZodOptional<z.ZodString>;
4020
- lastName: z.ZodOptional<z.ZodString>;
4021
- email: z.ZodOptional<z.ZodString>;
4022
- 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
- } & {
4041
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
4042
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
4043
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
4044
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
4045
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
4046
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
4047
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
4048
- '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
- }>;
4110
- type GetCustomersQueryParams = z.infer<typeof getCustomersQuerySchema>;
4111
- declare const getCustomersInputSchema: z.ZodUndefined;
4112
- type GetCustomersInput = z.input<typeof getCustomersInputSchema>;
4113
- declare const getCustomersResponseSchema: z.ZodObject<{
4114
- data: z.ZodArray<z.ZodObject<{
4115
- id: z.ZodString;
4116
- firstName: z.ZodNullable<z.ZodString>;
4117
- lastName: z.ZodNullable<z.ZodString>;
4118
- email: z.ZodNullable<z.ZodString>;
4119
- phoneNumber: z.ZodNullable<z.ZodString>;
4120
- hasBusinessProfiles: z.ZodBoolean;
4121
- hasAddresses: z.ZodBoolean;
4122
- ordersPlaced: z.ZodNumber;
4123
- 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">;
4151
- pagination: z.ZodObject<{
4152
- from: z.ZodNumber;
4153
- to: z.ZodNumber;
4154
- itemsPerPage: z.ZodNumber;
4155
- totalItems: z.ZodNumber;
4156
- currentPage: z.ZodNumber;
4157
- 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
- }>;
4218
- type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
4219
- declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSchema, typeof getCustomersResponseSchema, GetCustomersQueryParams> {
4220
- readonly method = "GET";
4221
- readonly contentType = "application/json";
4222
- readonly accept = "application/json";
4223
- readonly inputSchema: z.ZodUndefined;
4224
- readonly outputSchema: z.ZodObject<{
4225
- data: z.ZodArray<z.ZodObject<{
4226
- id: z.ZodString;
4227
- firstName: z.ZodNullable<z.ZodString>;
4228
- lastName: z.ZodNullable<z.ZodString>;
4229
- email: z.ZodNullable<z.ZodString>;
4230
- phoneNumber: z.ZodNullable<z.ZodString>;
4231
- hasBusinessProfiles: z.ZodBoolean;
4232
- hasAddresses: z.ZodBoolean;
4233
- ordersPlaced: z.ZodNumber;
4234
- 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">;
4262
- pagination: z.ZodObject<{
4263
- from: z.ZodNumber;
4264
- to: z.ZodNumber;
4265
- itemsPerPage: z.ZodNumber;
4266
- totalItems: z.ZodNumber;
4267
- currentPage: z.ZodNumber;
4268
- 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
- }>;
4329
- readonly querySchema: z.ZodObject<{
4330
- firstName: z.ZodOptional<z.ZodString>;
4331
- lastName: z.ZodOptional<z.ZodString>;
4332
- email: z.ZodOptional<z.ZodString>;
4333
- 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
- } & {
4352
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
4353
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
4354
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
4355
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
4356
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
4357
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
4358
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
4359
- '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
- }>;
4421
- readonly headersSchema: undefined;
4422
- constructor(options?: {
4423
- query?: GetCustomersQueryParams;
4424
- });
4425
- getPath(): string;
4426
- parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<Customer>;
4427
- }
4428
-
4429
- declare const updateCustomerInputSchema: z.ZodObject<{
4430
- firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4431
- lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4432
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4433
- 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
- }>;
4445
- type UpdateCustomerInput = z.input<typeof updateCustomerInputSchema>;
4446
- declare const updateCustomerResponseSchema: z.ZodObject<{
4447
- id: z.ZodString;
4448
- firstName: z.ZodNullable<z.ZodString>;
4449
- lastName: z.ZodNullable<z.ZodString>;
4450
- email: z.ZodNullable<z.ZodString>;
4451
- phoneNumber: z.ZodNullable<z.ZodString>;
4452
- hasBusinessProfiles: z.ZodBoolean;
4453
- hasAddresses: z.ZodBoolean;
4454
- ordersPlaced: z.ZodNumber;
4455
- 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
- }>;
4496
- type UpdateCustomerResponse = z.infer<typeof updateCustomerResponseSchema>;
4497
- declare class UpdateCustomer extends AbstractApiRequest<typeof updateCustomerInputSchema, typeof updateCustomerResponseSchema> {
4498
- readonly method = "PATCH";
4499
- readonly contentType = "application/merge-patch+json";
4500
- readonly accept = "application/json";
4501
- readonly inputSchema: z.ZodObject<{
4502
- firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4503
- lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4504
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4505
- 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
- }>;
4517
- readonly outputSchema: z.ZodObject<{
4518
- id: z.ZodString;
4519
- firstName: z.ZodNullable<z.ZodString>;
4520
- lastName: z.ZodNullable<z.ZodString>;
4521
- email: z.ZodNullable<z.ZodString>;
4522
- phoneNumber: z.ZodNullable<z.ZodString>;
4523
- hasBusinessProfiles: z.ZodBoolean;
4524
- hasAddresses: z.ZodBoolean;
4525
- ordersPlaced: z.ZodNumber;
4526
- 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
- }>;
4567
- readonly querySchema: undefined;
4568
- readonly headersSchema: undefined;
4569
- private readonly customerId;
4570
- constructor(customerId: string, input: UpdateCustomerInput);
4571
- getPath(): string;
4572
- }
4573
-
4574
- declare const customerIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
4575
- 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>;
4577
- 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">>;
4579
- 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>;
4581
- 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">>;
4583
- 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>;
4585
- type CustomerBusinessProfileNullableIri = z.infer<typeof customerBusinessProfileNullableIriSchema>;
4586
-
4587
- 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 };