@deliverart/sdk-js-customer 0.0.5 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +156 -202
- package/dist/index.d.cts +352 -250
- package/dist/index.d.ts +352 -250
- package/dist/index.js +139 -186
- package/package.json +5 -5
- package/src/models.ts +40 -11
- package/src/requests/customer-addresses/CreateCustomerAddress.ts +6 -10
- package/src/requests/customer-addresses/DeleteCustomerAddress.ts +5 -2
- package/src/requests/customer-addresses/GetCustomerAddressDetails.ts +7 -4
- package/src/requests/customer-addresses/GetCustomerAddresses.ts +5 -4
- package/src/requests/customer-addresses/GetCustomerAddressesForCustomer.ts +7 -4
- package/src/requests/customer-addresses/UpdateCustomerAddress.ts +5 -9
- package/src/requests/customer-business-profiles/CreateCustomerBusinessProfile.ts +6 -5
- package/src/requests/customer-business-profiles/DeleteCustomerBusinessProfile.ts +5 -2
- package/src/requests/customer-business-profiles/GetCustomerBusinessProfileDetails.ts +10 -5
- package/src/requests/customer-business-profiles/GetCustomerBusinessProfiles.ts +7 -4
- package/src/requests/customer-business-profiles/GetCustomerBusinessProfilesForCustomer.ts +7 -4
- package/src/requests/customer-business-profiles/UpdateCustomerBusinessProfile.ts +6 -5
- package/src/requests/customers/CreateCustomer.ts +5 -5
- package/src/requests/customers/DeleteCustomer.ts +5 -2
- package/src/requests/customers/GetCustomerDetails.ts +8 -4
- package/src/requests/customers/GetCustomers.ts +7 -32
- package/src/requests/customers/UpdateCustomer.ts +5 -5
- package/src/types.ts +16 -82
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
+
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
1
3
|
import { z } from 'zod';
|
|
2
4
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
3
|
-
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
4
5
|
import { AxiosResponse } from 'axios';
|
|
5
6
|
|
|
6
7
|
declare const customerSchema: z.ZodObject<{
|
|
@@ -54,10 +55,10 @@ declare const customerDetailsSchema: z.ZodObject<{
|
|
|
54
55
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
55
56
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
56
57
|
} & {
|
|
57
|
-
pointOfSale: z.
|
|
58
|
-
owner: z.
|
|
59
|
-
addresses: z.ZodArray<z.
|
|
60
|
-
businessProfiles: z.ZodArray<z.
|
|
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">;
|
|
61
62
|
}, "strip", z.ZodTypeAny, {
|
|
62
63
|
id: string;
|
|
63
64
|
firstName: string | null;
|
|
@@ -70,10 +71,10 @@ declare const customerDetailsSchema: z.ZodObject<{
|
|
|
70
71
|
totalSpent: string;
|
|
71
72
|
createdAt: string;
|
|
72
73
|
updatedAt: string;
|
|
73
|
-
pointOfSale:
|
|
74
|
-
owner:
|
|
75
|
-
addresses:
|
|
76
|
-
businessProfiles:
|
|
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">[];
|
|
77
78
|
}, {
|
|
78
79
|
id: string;
|
|
79
80
|
firstName: string | null;
|
|
@@ -86,10 +87,10 @@ declare const customerDetailsSchema: z.ZodObject<{
|
|
|
86
87
|
totalSpent: string;
|
|
87
88
|
createdAt: string;
|
|
88
89
|
updatedAt: string;
|
|
89
|
-
pointOfSale: string | null;
|
|
90
|
-
owner: string | null;
|
|
91
|
-
addresses: string[];
|
|
92
|
-
businessProfiles: 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">)[];
|
|
93
94
|
}>;
|
|
94
95
|
type CustomerDetails = z.infer<typeof customerDetailsSchema>;
|
|
95
96
|
declare const writableCreateCustomerSchema: z.ZodObject<Pick<{
|
|
@@ -105,22 +106,22 @@ declare const writableCreateCustomerSchema: z.ZodObject<Pick<{
|
|
|
105
106
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
106
107
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
107
108
|
} & {
|
|
108
|
-
pointOfSale: z.
|
|
109
|
-
owner: z.
|
|
110
|
-
addresses: z.ZodArray<z.
|
|
111
|
-
businessProfiles: z.ZodArray<z.
|
|
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">;
|
|
112
113
|
}, "firstName" | "lastName" | "email" | "phoneNumber" | "pointOfSale">, "strip", z.ZodTypeAny, {
|
|
113
114
|
firstName: string | null;
|
|
114
115
|
lastName: string | null;
|
|
115
116
|
email: string | null;
|
|
116
117
|
phoneNumber: string | null;
|
|
117
|
-
pointOfSale:
|
|
118
|
+
pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
|
|
118
119
|
}, {
|
|
119
120
|
firstName: string | null;
|
|
120
121
|
lastName: string | null;
|
|
121
122
|
email: string | null;
|
|
122
123
|
phoneNumber: string | null;
|
|
123
|
-
pointOfSale: string | null;
|
|
124
|
+
pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
|
|
124
125
|
}>;
|
|
125
126
|
declare const writableCustomerSchema: z.ZodObject<Omit<Pick<{
|
|
126
127
|
id: z.ZodString;
|
|
@@ -135,10 +136,10 @@ declare const writableCustomerSchema: z.ZodObject<Omit<Pick<{
|
|
|
135
136
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
136
137
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
137
138
|
} & {
|
|
138
|
-
pointOfSale: z.
|
|
139
|
-
owner: z.
|
|
140
|
-
addresses: z.ZodArray<z.
|
|
141
|
-
businessProfiles: z.ZodArray<z.
|
|
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">;
|
|
142
143
|
}, "firstName" | "lastName" | "email" | "phoneNumber" | "pointOfSale">, "pointOfSale">, "strip", z.ZodTypeAny, {
|
|
143
144
|
firstName: string | null;
|
|
144
145
|
lastName: string | null;
|
|
@@ -257,7 +258,7 @@ declare const customerAddressDetailsSchema: z.ZodObject<{
|
|
|
257
258
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
258
259
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
259
260
|
} & {
|
|
260
|
-
customer: z.
|
|
261
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
261
262
|
}, "strip", z.ZodTypeAny, {
|
|
262
263
|
id: string;
|
|
263
264
|
createdAt: string;
|
|
@@ -274,7 +275,7 @@ declare const customerAddressDetailsSchema: z.ZodObject<{
|
|
|
274
275
|
latitude: number;
|
|
275
276
|
longitude: number;
|
|
276
277
|
};
|
|
277
|
-
customer:
|
|
278
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
278
279
|
}, {
|
|
279
280
|
id: string;
|
|
280
281
|
createdAt: string;
|
|
@@ -291,7 +292,7 @@ declare const customerAddressDetailsSchema: z.ZodObject<{
|
|
|
291
292
|
latitude: number;
|
|
292
293
|
longitude: number;
|
|
293
294
|
};
|
|
294
|
-
customer: string
|
|
295
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
295
296
|
}>;
|
|
296
297
|
type CustomerAddressDetails = z.infer<typeof customerAddressDetailsSchema>;
|
|
297
298
|
declare const writableCreateCustomerAddressSchema: z.ZodObject<Pick<{
|
|
@@ -331,7 +332,7 @@ declare const writableCreateCustomerAddressSchema: z.ZodObject<Pick<{
|
|
|
331
332
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
332
333
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
333
334
|
} & {
|
|
334
|
-
customer: z.
|
|
335
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
335
336
|
}, "address" | "customer">, "strip", z.ZodTypeAny, {
|
|
336
337
|
address: {
|
|
337
338
|
line1: string;
|
|
@@ -341,7 +342,7 @@ declare const writableCreateCustomerAddressSchema: z.ZodObject<Pick<{
|
|
|
341
342
|
country: string;
|
|
342
343
|
line2?: string | null | undefined;
|
|
343
344
|
};
|
|
344
|
-
customer:
|
|
345
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
345
346
|
}, {
|
|
346
347
|
address: {
|
|
347
348
|
line1: string;
|
|
@@ -351,7 +352,7 @@ declare const writableCreateCustomerAddressSchema: z.ZodObject<Pick<{
|
|
|
351
352
|
country: string;
|
|
352
353
|
line2?: string | null | undefined;
|
|
353
354
|
};
|
|
354
|
-
customer: string
|
|
355
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
355
356
|
}>;
|
|
356
357
|
declare const writableCustomerAddressSchema: z.ZodObject<Omit<Pick<{
|
|
357
358
|
id: z.ZodString;
|
|
@@ -390,7 +391,7 @@ declare const writableCustomerAddressSchema: z.ZodObject<Omit<Pick<{
|
|
|
390
391
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
391
392
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
392
393
|
} & {
|
|
393
|
-
customer: z.
|
|
394
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
394
395
|
}, "address" | "customer">, "customer">, "strip", z.ZodTypeAny, {
|
|
395
396
|
address: {
|
|
396
397
|
line1: string;
|
|
@@ -541,12 +542,12 @@ declare const customerBusinessProfileDetailsSchema: z.ZodObject<{
|
|
|
541
542
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
542
543
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
543
544
|
} & {
|
|
544
|
-
customer: z.
|
|
545
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
545
546
|
}, "strip", z.ZodTypeAny, {
|
|
546
547
|
id: string;
|
|
547
548
|
createdAt: string;
|
|
548
549
|
updatedAt: string;
|
|
549
|
-
customer:
|
|
550
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
550
551
|
businessName: string;
|
|
551
552
|
vat: string;
|
|
552
553
|
taxCode: string;
|
|
@@ -566,7 +567,7 @@ declare const customerBusinessProfileDetailsSchema: z.ZodObject<{
|
|
|
566
567
|
id: string;
|
|
567
568
|
createdAt: string;
|
|
568
569
|
updatedAt: string;
|
|
569
|
-
customer: string
|
|
570
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
570
571
|
businessName: string;
|
|
571
572
|
vat: string;
|
|
572
573
|
taxCode: string;
|
|
@@ -630,9 +631,9 @@ declare const writableCreateCustomerBusinessProfileSchema: z.ZodObject<Pick<{
|
|
|
630
631
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
631
632
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
632
633
|
} & {
|
|
633
|
-
customer: z.
|
|
634
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
634
635
|
}, "customer" | "businessName" | "vat" | "taxCode" | "billingAddress" | "billingData">, "strip", z.ZodTypeAny, {
|
|
635
|
-
customer:
|
|
636
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
636
637
|
businessName: string;
|
|
637
638
|
vat: string;
|
|
638
639
|
taxCode: string;
|
|
@@ -649,7 +650,7 @@ declare const writableCreateCustomerBusinessProfileSchema: z.ZodObject<Pick<{
|
|
|
649
650
|
pec?: string | null | undefined;
|
|
650
651
|
};
|
|
651
652
|
}, {
|
|
652
|
-
customer: string
|
|
653
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
653
654
|
businessName: string;
|
|
654
655
|
vat: string;
|
|
655
656
|
taxCode: string;
|
|
@@ -712,7 +713,7 @@ declare const writableCustomerBusinessProfileSchema: z.ZodObject<Omit<Pick<{
|
|
|
712
713
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
713
714
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
714
715
|
} & {
|
|
715
|
-
customer: z.
|
|
716
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
716
717
|
}, "customer" | "businessName" | "vat" | "taxCode" | "billingAddress" | "billingData">, "customer">, "strip", z.ZodTypeAny, {
|
|
717
718
|
businessName: string;
|
|
718
719
|
vat: string;
|
|
@@ -746,6 +747,99 @@ declare const writableCustomerBusinessProfileSchema: z.ZodObject<Omit<Pick<{
|
|
|
746
747
|
pec?: string | null | undefined;
|
|
747
748
|
};
|
|
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>;
|
|
749
843
|
|
|
750
844
|
declare const createCustomerAddressInputSchema: z.ZodObject<{
|
|
751
845
|
address: z.ZodObject<{
|
|
@@ -770,7 +864,7 @@ declare const createCustomerAddressInputSchema: z.ZodObject<{
|
|
|
770
864
|
country: string;
|
|
771
865
|
line2?: string | null | undefined;
|
|
772
866
|
}>;
|
|
773
|
-
customer: z.
|
|
867
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
774
868
|
}, "strip", z.ZodTypeAny, {
|
|
775
869
|
address: {
|
|
776
870
|
line1: string;
|
|
@@ -780,7 +874,7 @@ declare const createCustomerAddressInputSchema: z.ZodObject<{
|
|
|
780
874
|
country: string;
|
|
781
875
|
line2?: string | null | undefined;
|
|
782
876
|
};
|
|
783
|
-
customer:
|
|
877
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
784
878
|
}, {
|
|
785
879
|
address: {
|
|
786
880
|
line1: string;
|
|
@@ -790,9 +884,9 @@ declare const createCustomerAddressInputSchema: z.ZodObject<{
|
|
|
790
884
|
country: string;
|
|
791
885
|
line2?: string | null | undefined;
|
|
792
886
|
};
|
|
793
|
-
customer: string
|
|
887
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
794
888
|
}>;
|
|
795
|
-
type CreateCustomerAddressInput = z.
|
|
889
|
+
type CreateCustomerAddressInput = z.input<typeof createCustomerAddressInputSchema>;
|
|
796
890
|
declare const createCustomerAddressResponseSchema: z.ZodObject<{
|
|
797
891
|
id: z.ZodString;
|
|
798
892
|
address: z.ZodObject<{
|
|
@@ -830,7 +924,7 @@ declare const createCustomerAddressResponseSchema: z.ZodObject<{
|
|
|
830
924
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
831
925
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
832
926
|
} & {
|
|
833
|
-
customer: z.
|
|
927
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
834
928
|
}, "strip", z.ZodTypeAny, {
|
|
835
929
|
id: string;
|
|
836
930
|
createdAt: string;
|
|
@@ -847,7 +941,7 @@ declare const createCustomerAddressResponseSchema: z.ZodObject<{
|
|
|
847
941
|
latitude: number;
|
|
848
942
|
longitude: number;
|
|
849
943
|
};
|
|
850
|
-
customer:
|
|
944
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
851
945
|
}, {
|
|
852
946
|
id: string;
|
|
853
947
|
createdAt: string;
|
|
@@ -864,10 +958,10 @@ declare const createCustomerAddressResponseSchema: z.ZodObject<{
|
|
|
864
958
|
latitude: number;
|
|
865
959
|
longitude: number;
|
|
866
960
|
};
|
|
867
|
-
customer: string
|
|
961
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
868
962
|
}>;
|
|
869
|
-
type CreateCustomerAddressResponse =
|
|
870
|
-
declare class CreateCustomerAddress extends AbstractApiRequest<
|
|
963
|
+
type CreateCustomerAddressResponse = z.infer<typeof createCustomerAddressResponseSchema>;
|
|
964
|
+
declare class CreateCustomerAddress extends AbstractApiRequest<typeof createCustomerAddressInputSchema, typeof createCustomerAddressResponseSchema> {
|
|
871
965
|
readonly method = "POST";
|
|
872
966
|
readonly contentType = "application/json";
|
|
873
967
|
readonly accept = "application/json";
|
|
@@ -894,7 +988,7 @@ declare class CreateCustomerAddress extends AbstractApiRequest<CreateCustomerAdd
|
|
|
894
988
|
country: string;
|
|
895
989
|
line2?: string | null | undefined;
|
|
896
990
|
}>;
|
|
897
|
-
customer: z.
|
|
991
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
898
992
|
}, "strip", z.ZodTypeAny, {
|
|
899
993
|
address: {
|
|
900
994
|
line1: string;
|
|
@@ -904,7 +998,7 @@ declare class CreateCustomerAddress extends AbstractApiRequest<CreateCustomerAdd
|
|
|
904
998
|
country: string;
|
|
905
999
|
line2?: string | null | undefined;
|
|
906
1000
|
};
|
|
907
|
-
customer:
|
|
1001
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
908
1002
|
}, {
|
|
909
1003
|
address: {
|
|
910
1004
|
line1: string;
|
|
@@ -914,7 +1008,7 @@ declare class CreateCustomerAddress extends AbstractApiRequest<CreateCustomerAdd
|
|
|
914
1008
|
country: string;
|
|
915
1009
|
line2?: string | null | undefined;
|
|
916
1010
|
};
|
|
917
|
-
customer: string
|
|
1011
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
918
1012
|
}>;
|
|
919
1013
|
readonly outputSchema: z.ZodObject<{
|
|
920
1014
|
id: z.ZodString;
|
|
@@ -953,7 +1047,7 @@ declare class CreateCustomerAddress extends AbstractApiRequest<CreateCustomerAdd
|
|
|
953
1047
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
954
1048
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
955
1049
|
} & {
|
|
956
|
-
customer: z.
|
|
1050
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
957
1051
|
}, "strip", z.ZodTypeAny, {
|
|
958
1052
|
id: string;
|
|
959
1053
|
createdAt: string;
|
|
@@ -970,7 +1064,7 @@ declare class CreateCustomerAddress extends AbstractApiRequest<CreateCustomerAdd
|
|
|
970
1064
|
latitude: number;
|
|
971
1065
|
longitude: number;
|
|
972
1066
|
};
|
|
973
|
-
customer:
|
|
1067
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
974
1068
|
}, {
|
|
975
1069
|
id: string;
|
|
976
1070
|
createdAt: string;
|
|
@@ -987,17 +1081,17 @@ declare class CreateCustomerAddress extends AbstractApiRequest<CreateCustomerAdd
|
|
|
987
1081
|
latitude: number;
|
|
988
1082
|
longitude: number;
|
|
989
1083
|
};
|
|
990
|
-
customer: string
|
|
1084
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
991
1085
|
}>;
|
|
992
1086
|
readonly querySchema: undefined;
|
|
993
1087
|
readonly headersSchema: undefined;
|
|
994
|
-
constructor(input:
|
|
1088
|
+
constructor(input: z.input<typeof createCustomerAddressInputSchema>);
|
|
995
1089
|
getPath(): string;
|
|
996
1090
|
}
|
|
997
1091
|
|
|
998
1092
|
declare const deleteCustomerAddressInputSchema: z.ZodUndefined;
|
|
999
1093
|
declare const deleteCustomerAddressResponseSchema: z.ZodUndefined;
|
|
1000
|
-
declare class DeleteCustomerAddress extends AbstractApiRequest<
|
|
1094
|
+
declare class DeleteCustomerAddress extends AbstractApiRequest<typeof deleteCustomerAddressInputSchema, typeof deleteCustomerAddressResponseSchema> {
|
|
1001
1095
|
readonly method = "DELETE";
|
|
1002
1096
|
readonly contentType = "application/json";
|
|
1003
1097
|
readonly accept = "application/json";
|
|
@@ -1011,6 +1105,7 @@ declare class DeleteCustomerAddress extends AbstractApiRequest<void, void> {
|
|
|
1011
1105
|
}
|
|
1012
1106
|
|
|
1013
1107
|
declare const getCustomerAddressDetailsInputSchema: z.ZodUndefined;
|
|
1108
|
+
type GetCustomerAddressDetailsInput = z.input<typeof getCustomerAddressDetailsInputSchema>;
|
|
1014
1109
|
declare const getCustomerAddressDetailsResponseSchema: z.ZodObject<{
|
|
1015
1110
|
id: z.ZodString;
|
|
1016
1111
|
address: z.ZodObject<{
|
|
@@ -1048,7 +1143,7 @@ declare const getCustomerAddressDetailsResponseSchema: z.ZodObject<{
|
|
|
1048
1143
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1049
1144
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1050
1145
|
} & {
|
|
1051
|
-
customer: z.
|
|
1146
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
1052
1147
|
}, "strip", z.ZodTypeAny, {
|
|
1053
1148
|
id: string;
|
|
1054
1149
|
createdAt: string;
|
|
@@ -1065,7 +1160,7 @@ declare const getCustomerAddressDetailsResponseSchema: z.ZodObject<{
|
|
|
1065
1160
|
latitude: number;
|
|
1066
1161
|
longitude: number;
|
|
1067
1162
|
};
|
|
1068
|
-
customer:
|
|
1163
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
1069
1164
|
}, {
|
|
1070
1165
|
id: string;
|
|
1071
1166
|
createdAt: string;
|
|
@@ -1082,10 +1177,10 @@ declare const getCustomerAddressDetailsResponseSchema: z.ZodObject<{
|
|
|
1082
1177
|
latitude: number;
|
|
1083
1178
|
longitude: number;
|
|
1084
1179
|
};
|
|
1085
|
-
customer: string
|
|
1180
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
1086
1181
|
}>;
|
|
1087
|
-
type GetCustomerAddressDetailsResponse =
|
|
1088
|
-
declare class GetCustomerAddressDetails extends AbstractApiRequest<
|
|
1182
|
+
type GetCustomerAddressDetailsResponse = z.infer<typeof getCustomerAddressDetailsResponseSchema>;
|
|
1183
|
+
declare class GetCustomerAddressDetails extends AbstractApiRequest<typeof getCustomerAddressDetailsInputSchema, typeof getCustomerAddressDetailsResponseSchema> {
|
|
1089
1184
|
readonly method = "GET";
|
|
1090
1185
|
readonly contentType = "application/json";
|
|
1091
1186
|
readonly accept = "application/json";
|
|
@@ -1127,7 +1222,7 @@ declare class GetCustomerAddressDetails extends AbstractApiRequest<void, GetCust
|
|
|
1127
1222
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1128
1223
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1129
1224
|
} & {
|
|
1130
|
-
customer: z.
|
|
1225
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
1131
1226
|
}, "strip", z.ZodTypeAny, {
|
|
1132
1227
|
id: string;
|
|
1133
1228
|
createdAt: string;
|
|
@@ -1144,7 +1239,7 @@ declare class GetCustomerAddressDetails extends AbstractApiRequest<void, GetCust
|
|
|
1144
1239
|
latitude: number;
|
|
1145
1240
|
longitude: number;
|
|
1146
1241
|
};
|
|
1147
|
-
customer:
|
|
1242
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
1148
1243
|
}, {
|
|
1149
1244
|
id: string;
|
|
1150
1245
|
createdAt: string;
|
|
@@ -1161,7 +1256,7 @@ declare class GetCustomerAddressDetails extends AbstractApiRequest<void, GetCust
|
|
|
1161
1256
|
latitude: number;
|
|
1162
1257
|
longitude: number;
|
|
1163
1258
|
};
|
|
1164
|
-
customer: string
|
|
1259
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
1165
1260
|
}>;
|
|
1166
1261
|
readonly querySchema: undefined;
|
|
1167
1262
|
readonly headersSchema: undefined;
|
|
@@ -1209,6 +1304,8 @@ declare const getCustomerAddressesQuerySchema: z.ZodObject<{
|
|
|
1209
1304
|
'updatedAt[strictly_after]'?: string | undefined;
|
|
1210
1305
|
}>;
|
|
1211
1306
|
type GetCustomerAddressesQueryParams = z.infer<typeof getCustomerAddressesQuerySchema>;
|
|
1307
|
+
declare const getCustomerAddressesInputSchema: z.ZodUndefined;
|
|
1308
|
+
type GetCustomerAddressesInput = z.input<typeof getCustomerAddressesInputSchema>;
|
|
1212
1309
|
declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
1213
1310
|
data: z.ZodArray<z.ZodObject<{
|
|
1214
1311
|
id: z.ZodString;
|
|
@@ -1355,8 +1452,7 @@ declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
|
1355
1452
|
};
|
|
1356
1453
|
}>;
|
|
1357
1454
|
type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
|
|
1358
|
-
declare
|
|
1359
|
-
declare class GetCustomerAddresses extends AbstractApiRequest<void, GetCustomerAddressesResponse, GetCustomerAddressesQueryParams> {
|
|
1455
|
+
declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomerAddressesInputSchema, typeof getCustomerAddressesResponseSchema, GetCustomerAddressesQueryParams> {
|
|
1360
1456
|
readonly method = "GET";
|
|
1361
1457
|
readonly contentType = "application/json";
|
|
1362
1458
|
readonly accept = "application/json";
|
|
@@ -1588,6 +1684,8 @@ declare const getCustomerAddressesForCustomerQuerySchema: z.ZodObject<{
|
|
|
1588
1684
|
'updatedAt[strictly_after]'?: string | undefined;
|
|
1589
1685
|
}>;
|
|
1590
1686
|
type GetCustomerAddressesForCustomerQueryParams = z.infer<typeof getCustomerAddressesForCustomerQuerySchema>;
|
|
1687
|
+
declare const getCustomerAddressesForCustomerInputSchema: z.ZodUndefined;
|
|
1688
|
+
type GetCustomerAddressesForCustomerInput = z.input<typeof getCustomerAddressesForCustomerInputSchema>;
|
|
1591
1689
|
declare const getCustomerAddressesForCustomerResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1592
1690
|
id: z.ZodString;
|
|
1593
1691
|
address: z.ZodObject<{
|
|
@@ -1658,8 +1756,7 @@ declare const getCustomerAddressesForCustomerResponseSchema: z.ZodArray<z.ZodObj
|
|
|
1658
1756
|
};
|
|
1659
1757
|
}>, "many">;
|
|
1660
1758
|
type GetCustomerAddressesForCustomerResponse = z.infer<typeof getCustomerAddressesForCustomerResponseSchema>;
|
|
1661
|
-
declare
|
|
1662
|
-
declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<void, GetCustomerAddressesForCustomerResponse, GetCustomerAddressesForCustomerQueryParams> {
|
|
1759
|
+
declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<typeof getCustomerAddressesForCustomerInputSchema, typeof getCustomerAddressesForCustomerResponseSchema, GetCustomerAddressesForCustomerQueryParams> {
|
|
1663
1760
|
readonly method = "GET";
|
|
1664
1761
|
readonly contentType = "application/json";
|
|
1665
1762
|
readonly accept = "application/json";
|
|
@@ -1819,7 +1916,7 @@ declare const updateCustomerAddressInputSchema: z.ZodObject<{
|
|
|
1819
1916
|
line2?: string | null | undefined;
|
|
1820
1917
|
} | undefined;
|
|
1821
1918
|
}>;
|
|
1822
|
-
type UpdateCustomerAddressInput = z.
|
|
1919
|
+
type UpdateCustomerAddressInput = z.input<typeof updateCustomerAddressInputSchema>;
|
|
1823
1920
|
declare const updateCustomerAddressResponseSchema: z.ZodObject<{
|
|
1824
1921
|
id: z.ZodString;
|
|
1825
1922
|
address: z.ZodObject<{
|
|
@@ -1857,7 +1954,7 @@ declare const updateCustomerAddressResponseSchema: z.ZodObject<{
|
|
|
1857
1954
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1858
1955
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1859
1956
|
} & {
|
|
1860
|
-
customer: z.
|
|
1957
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
1861
1958
|
}, "strip", z.ZodTypeAny, {
|
|
1862
1959
|
id: string;
|
|
1863
1960
|
createdAt: string;
|
|
@@ -1874,7 +1971,7 @@ declare const updateCustomerAddressResponseSchema: z.ZodObject<{
|
|
|
1874
1971
|
latitude: number;
|
|
1875
1972
|
longitude: number;
|
|
1876
1973
|
};
|
|
1877
|
-
customer:
|
|
1974
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
1878
1975
|
}, {
|
|
1879
1976
|
id: string;
|
|
1880
1977
|
createdAt: string;
|
|
@@ -1891,10 +1988,10 @@ declare const updateCustomerAddressResponseSchema: z.ZodObject<{
|
|
|
1891
1988
|
latitude: number;
|
|
1892
1989
|
longitude: number;
|
|
1893
1990
|
};
|
|
1894
|
-
customer: string
|
|
1991
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
1895
1992
|
}>;
|
|
1896
|
-
type UpdateCustomerAddressResponse =
|
|
1897
|
-
declare class UpdateCustomerAddress extends AbstractApiRequest<
|
|
1993
|
+
type UpdateCustomerAddressResponse = z.infer<typeof updateCustomerAddressResponseSchema>;
|
|
1994
|
+
declare class UpdateCustomerAddress extends AbstractApiRequest<typeof updateCustomerAddressInputSchema, typeof updateCustomerAddressResponseSchema> {
|
|
1898
1995
|
readonly method = "PATCH";
|
|
1899
1996
|
readonly contentType = "application/merge-patch+json";
|
|
1900
1997
|
readonly accept = "application/json";
|
|
@@ -1977,7 +2074,7 @@ declare class UpdateCustomerAddress extends AbstractApiRequest<UpdateCustomerAdd
|
|
|
1977
2074
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1978
2075
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
1979
2076
|
} & {
|
|
1980
|
-
customer: z.
|
|
2077
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
1981
2078
|
}, "strip", z.ZodTypeAny, {
|
|
1982
2079
|
id: string;
|
|
1983
2080
|
createdAt: string;
|
|
@@ -1994,7 +2091,7 @@ declare class UpdateCustomerAddress extends AbstractApiRequest<UpdateCustomerAdd
|
|
|
1994
2091
|
latitude: number;
|
|
1995
2092
|
longitude: number;
|
|
1996
2093
|
};
|
|
1997
|
-
customer:
|
|
2094
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
1998
2095
|
}, {
|
|
1999
2096
|
id: string;
|
|
2000
2097
|
createdAt: string;
|
|
@@ -2011,7 +2108,7 @@ declare class UpdateCustomerAddress extends AbstractApiRequest<UpdateCustomerAdd
|
|
|
2011
2108
|
latitude: number;
|
|
2012
2109
|
longitude: number;
|
|
2013
2110
|
};
|
|
2014
|
-
customer: string
|
|
2111
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2015
2112
|
}>;
|
|
2016
2113
|
readonly querySchema: undefined;
|
|
2017
2114
|
readonly headersSchema: undefined;
|
|
@@ -2021,7 +2118,7 @@ declare class UpdateCustomerAddress extends AbstractApiRequest<UpdateCustomerAdd
|
|
|
2021
2118
|
}
|
|
2022
2119
|
|
|
2023
2120
|
declare const createCustomerBusinessProfileInputSchema: z.ZodObject<{
|
|
2024
|
-
customer: z.
|
|
2121
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
2025
2122
|
businessName: z.ZodString;
|
|
2026
2123
|
vat: z.ZodString;
|
|
2027
2124
|
taxCode: z.ZodString;
|
|
@@ -2064,7 +2161,7 @@ declare const createCustomerBusinessProfileInputSchema: z.ZodObject<{
|
|
|
2064
2161
|
pec?: string | null | undefined;
|
|
2065
2162
|
}>;
|
|
2066
2163
|
}, "strip", z.ZodTypeAny, {
|
|
2067
|
-
customer:
|
|
2164
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2068
2165
|
businessName: string;
|
|
2069
2166
|
vat: string;
|
|
2070
2167
|
taxCode: string;
|
|
@@ -2081,7 +2178,7 @@ declare const createCustomerBusinessProfileInputSchema: z.ZodObject<{
|
|
|
2081
2178
|
pec?: string | null | undefined;
|
|
2082
2179
|
};
|
|
2083
2180
|
}, {
|
|
2084
|
-
customer: string
|
|
2181
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2085
2182
|
businessName: string;
|
|
2086
2183
|
vat: string;
|
|
2087
2184
|
taxCode: string;
|
|
@@ -2098,7 +2195,7 @@ declare const createCustomerBusinessProfileInputSchema: z.ZodObject<{
|
|
|
2098
2195
|
pec?: string | null | undefined;
|
|
2099
2196
|
};
|
|
2100
2197
|
}>;
|
|
2101
|
-
type CreateCustomerBusinessProfileInput = z.
|
|
2198
|
+
type CreateCustomerBusinessProfileInput = z.input<typeof createCustomerBusinessProfileInputSchema>;
|
|
2102
2199
|
declare const createCustomerBusinessProfileResponseSchema: z.ZodObject<{
|
|
2103
2200
|
id: z.ZodString;
|
|
2104
2201
|
businessName: z.ZodString;
|
|
@@ -2145,12 +2242,12 @@ declare const createCustomerBusinessProfileResponseSchema: z.ZodObject<{
|
|
|
2145
2242
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
2146
2243
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
2147
2244
|
} & {
|
|
2148
|
-
customer: z.
|
|
2245
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
2149
2246
|
}, "strip", z.ZodTypeAny, {
|
|
2150
2247
|
id: string;
|
|
2151
2248
|
createdAt: string;
|
|
2152
2249
|
updatedAt: string;
|
|
2153
|
-
customer:
|
|
2250
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2154
2251
|
businessName: string;
|
|
2155
2252
|
vat: string;
|
|
2156
2253
|
taxCode: string;
|
|
@@ -2170,7 +2267,7 @@ declare const createCustomerBusinessProfileResponseSchema: z.ZodObject<{
|
|
|
2170
2267
|
id: string;
|
|
2171
2268
|
createdAt: string;
|
|
2172
2269
|
updatedAt: string;
|
|
2173
|
-
customer: string
|
|
2270
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2174
2271
|
businessName: string;
|
|
2175
2272
|
vat: string;
|
|
2176
2273
|
taxCode: string;
|
|
@@ -2187,13 +2284,13 @@ declare const createCustomerBusinessProfileResponseSchema: z.ZodObject<{
|
|
|
2187
2284
|
pec?: string | null | undefined;
|
|
2188
2285
|
};
|
|
2189
2286
|
}>;
|
|
2190
|
-
type CreateCustomerBusinessProfileResponse =
|
|
2191
|
-
declare class CreateCustomerBusinessProfile extends AbstractApiRequest<
|
|
2287
|
+
type CreateCustomerBusinessProfileResponse = z.infer<typeof createCustomerBusinessProfileResponseSchema>;
|
|
2288
|
+
declare class CreateCustomerBusinessProfile extends AbstractApiRequest<typeof createCustomerBusinessProfileInputSchema, typeof createCustomerBusinessProfileResponseSchema> {
|
|
2192
2289
|
readonly method = "POST";
|
|
2193
2290
|
readonly contentType = "application/json";
|
|
2194
2291
|
readonly accept = "application/json";
|
|
2195
2292
|
readonly inputSchema: z.ZodObject<{
|
|
2196
|
-
customer: z.
|
|
2293
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
2197
2294
|
businessName: z.ZodString;
|
|
2198
2295
|
vat: z.ZodString;
|
|
2199
2296
|
taxCode: z.ZodString;
|
|
@@ -2236,7 +2333,7 @@ declare class CreateCustomerBusinessProfile extends AbstractApiRequest<CreateCus
|
|
|
2236
2333
|
pec?: string | null | undefined;
|
|
2237
2334
|
}>;
|
|
2238
2335
|
}, "strip", z.ZodTypeAny, {
|
|
2239
|
-
customer:
|
|
2336
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2240
2337
|
businessName: string;
|
|
2241
2338
|
vat: string;
|
|
2242
2339
|
taxCode: string;
|
|
@@ -2253,7 +2350,7 @@ declare class CreateCustomerBusinessProfile extends AbstractApiRequest<CreateCus
|
|
|
2253
2350
|
pec?: string | null | undefined;
|
|
2254
2351
|
};
|
|
2255
2352
|
}, {
|
|
2256
|
-
customer: string
|
|
2353
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2257
2354
|
businessName: string;
|
|
2258
2355
|
vat: string;
|
|
2259
2356
|
taxCode: string;
|
|
@@ -2316,12 +2413,12 @@ declare class CreateCustomerBusinessProfile extends AbstractApiRequest<CreateCus
|
|
|
2316
2413
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
2317
2414
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
2318
2415
|
} & {
|
|
2319
|
-
customer: z.
|
|
2416
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
2320
2417
|
}, "strip", z.ZodTypeAny, {
|
|
2321
2418
|
id: string;
|
|
2322
2419
|
createdAt: string;
|
|
2323
2420
|
updatedAt: string;
|
|
2324
|
-
customer:
|
|
2421
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2325
2422
|
businessName: string;
|
|
2326
2423
|
vat: string;
|
|
2327
2424
|
taxCode: string;
|
|
@@ -2341,7 +2438,7 @@ declare class CreateCustomerBusinessProfile extends AbstractApiRequest<CreateCus
|
|
|
2341
2438
|
id: string;
|
|
2342
2439
|
createdAt: string;
|
|
2343
2440
|
updatedAt: string;
|
|
2344
|
-
customer: string
|
|
2441
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2345
2442
|
businessName: string;
|
|
2346
2443
|
vat: string;
|
|
2347
2444
|
taxCode: string;
|
|
@@ -2366,7 +2463,7 @@ declare class CreateCustomerBusinessProfile extends AbstractApiRequest<CreateCus
|
|
|
2366
2463
|
|
|
2367
2464
|
declare const deleteCustomerBusinessProfileInputSchema: z.ZodUndefined;
|
|
2368
2465
|
declare const deleteCustomerBusinessProfileResponseSchema: z.ZodUndefined;
|
|
2369
|
-
declare class DeleteCustomerBusinessProfile extends AbstractApiRequest<
|
|
2466
|
+
declare class DeleteCustomerBusinessProfile extends AbstractApiRequest<typeof deleteCustomerBusinessProfileInputSchema, typeof deleteCustomerBusinessProfileResponseSchema> {
|
|
2370
2467
|
readonly method = "DELETE";
|
|
2371
2468
|
readonly contentType = "application/json";
|
|
2372
2469
|
readonly accept = "application/json";
|
|
@@ -2380,6 +2477,7 @@ declare class DeleteCustomerBusinessProfile extends AbstractApiRequest<void, voi
|
|
|
2380
2477
|
}
|
|
2381
2478
|
|
|
2382
2479
|
declare const getCustomerBusinessProfileDetailsInputSchema: z.ZodUndefined;
|
|
2480
|
+
type GetCustomerBusinessProfileDetailsInput = z.infer<typeof getCustomerBusinessProfileDetailsInputSchema>;
|
|
2383
2481
|
declare const getCustomerBusinessProfileDetailsResponseSchema: z.ZodObject<{
|
|
2384
2482
|
id: z.ZodString;
|
|
2385
2483
|
businessName: z.ZodString;
|
|
@@ -2426,12 +2524,12 @@ declare const getCustomerBusinessProfileDetailsResponseSchema: z.ZodObject<{
|
|
|
2426
2524
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
2427
2525
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
2428
2526
|
} & {
|
|
2429
|
-
customer: z.
|
|
2527
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
2430
2528
|
}, "strip", z.ZodTypeAny, {
|
|
2431
2529
|
id: string;
|
|
2432
2530
|
createdAt: string;
|
|
2433
2531
|
updatedAt: string;
|
|
2434
|
-
customer:
|
|
2532
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2435
2533
|
businessName: string;
|
|
2436
2534
|
vat: string;
|
|
2437
2535
|
taxCode: string;
|
|
@@ -2451,7 +2549,7 @@ declare const getCustomerBusinessProfileDetailsResponseSchema: z.ZodObject<{
|
|
|
2451
2549
|
id: string;
|
|
2452
2550
|
createdAt: string;
|
|
2453
2551
|
updatedAt: string;
|
|
2454
|
-
customer: string
|
|
2552
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2455
2553
|
businessName: string;
|
|
2456
2554
|
vat: string;
|
|
2457
2555
|
taxCode: string;
|
|
@@ -2468,8 +2566,8 @@ declare const getCustomerBusinessProfileDetailsResponseSchema: z.ZodObject<{
|
|
|
2468
2566
|
pec?: string | null | undefined;
|
|
2469
2567
|
};
|
|
2470
2568
|
}>;
|
|
2471
|
-
type GetCustomerBusinessProfileDetailsResponse =
|
|
2472
|
-
declare class GetCustomerBusinessProfileDetails extends AbstractApiRequest<
|
|
2569
|
+
type GetCustomerBusinessProfileDetailsResponse = z.infer<typeof getCustomerBusinessProfileDetailsResponseSchema>;
|
|
2570
|
+
declare class GetCustomerBusinessProfileDetails extends AbstractApiRequest<typeof getCustomerBusinessProfileDetailsInputSchema, typeof getCustomerBusinessProfileDetailsResponseSchema> {
|
|
2473
2571
|
readonly method = "GET";
|
|
2474
2572
|
readonly contentType = "application/json";
|
|
2475
2573
|
readonly accept = "application/json";
|
|
@@ -2520,12 +2618,12 @@ declare class GetCustomerBusinessProfileDetails extends AbstractApiRequest<void,
|
|
|
2520
2618
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
2521
2619
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
2522
2620
|
} & {
|
|
2523
|
-
customer: z.
|
|
2621
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
2524
2622
|
}, "strip", z.ZodTypeAny, {
|
|
2525
2623
|
id: string;
|
|
2526
2624
|
createdAt: string;
|
|
2527
2625
|
updatedAt: string;
|
|
2528
|
-
customer:
|
|
2626
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2529
2627
|
businessName: string;
|
|
2530
2628
|
vat: string;
|
|
2531
2629
|
taxCode: string;
|
|
@@ -2545,7 +2643,7 @@ declare class GetCustomerBusinessProfileDetails extends AbstractApiRequest<void,
|
|
|
2545
2643
|
id: string;
|
|
2546
2644
|
createdAt: string;
|
|
2547
2645
|
updatedAt: string;
|
|
2548
|
-
customer: string
|
|
2646
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
2549
2647
|
businessName: string;
|
|
2550
2648
|
vat: string;
|
|
2551
2649
|
taxCode: string;
|
|
@@ -2620,6 +2718,8 @@ declare const getCustomerBusinessProfilesQuerySchema: z.ZodObject<{
|
|
|
2620
2718
|
'order[businessName]'?: "asc" | "desc" | undefined;
|
|
2621
2719
|
}>;
|
|
2622
2720
|
type GetCustomerBusinessProfilesQueryParams = z.infer<typeof getCustomerBusinessProfilesQuerySchema>;
|
|
2721
|
+
declare const getCustomerBusinessProfilesInputSchema: z.ZodUndefined;
|
|
2722
|
+
type GetCustomerBusinessProfilesInput = z.infer<typeof getCustomerBusinessProfilesInputSchema>;
|
|
2623
2723
|
declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
2624
2724
|
data: z.ZodArray<z.ZodObject<{
|
|
2625
2725
|
id: z.ZodString;
|
|
@@ -2787,8 +2887,7 @@ declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
|
2787
2887
|
};
|
|
2788
2888
|
}>;
|
|
2789
2889
|
type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
|
|
2790
|
-
declare
|
|
2791
|
-
declare class GetCustomerBusinessProfiles extends AbstractApiRequest<void, GetCustomerBusinessProfilesResponse, GetCustomerBusinessProfilesQueryParams> {
|
|
2890
|
+
declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getCustomerBusinessProfilesInputSchema, typeof getCustomerBusinessProfilesResponseSchema, GetCustomerBusinessProfilesQueryParams> {
|
|
2792
2891
|
readonly method = "GET";
|
|
2793
2892
|
readonly contentType = "application/json";
|
|
2794
2893
|
readonly accept = "application/json";
|
|
@@ -3065,6 +3164,8 @@ declare const getCustomerBusinessProfilesForCustomerQuerySchema: z.ZodObject<{
|
|
|
3065
3164
|
'order[businessName]'?: "asc" | "desc" | undefined;
|
|
3066
3165
|
}>;
|
|
3067
3166
|
type GetCustomerBusinessProfilesForCustomerQueryParams = z.infer<typeof getCustomerBusinessProfilesForCustomerQuerySchema>;
|
|
3167
|
+
declare const getCustomerBusinessProfilesForCustomerInputSchema: z.ZodUndefined;
|
|
3168
|
+
type GetCustomerBusinessProfilesForCustomerInput = z.input<typeof getCustomerBusinessProfilesForCustomerInputSchema>;
|
|
3068
3169
|
declare const getCustomerBusinessProfilesForCustomerResponseSchema: z.ZodArray<z.ZodObject<{
|
|
3069
3170
|
id: z.ZodString;
|
|
3070
3171
|
businessName: z.ZodString;
|
|
@@ -3150,8 +3251,7 @@ declare const getCustomerBusinessProfilesForCustomerResponseSchema: z.ZodArray<z
|
|
|
3150
3251
|
};
|
|
3151
3252
|
}>, "many">;
|
|
3152
3253
|
type GetCustomerBusinessProfilesForCustomerResponse = z.infer<typeof getCustomerBusinessProfilesForCustomerResponseSchema>;
|
|
3153
|
-
declare
|
|
3154
|
-
declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<void, GetCustomerBusinessProfilesForCustomerResponse, GetCustomerBusinessProfilesForCustomerQueryParams> {
|
|
3254
|
+
declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<typeof getCustomerBusinessProfilesForCustomerInputSchema, typeof getCustomerBusinessProfilesForCustomerResponseSchema, GetCustomerBusinessProfilesForCustomerQueryParams> {
|
|
3155
3255
|
readonly method = "GET";
|
|
3156
3256
|
readonly contentType = "application/json";
|
|
3157
3257
|
readonly accept = "application/json";
|
|
@@ -3371,7 +3471,7 @@ declare const updateCustomerBusinessProfileInputSchema: z.ZodObject<{
|
|
|
3371
3471
|
pec?: string | null | undefined;
|
|
3372
3472
|
} | undefined;
|
|
3373
3473
|
}>;
|
|
3374
|
-
type UpdateCustomerBusinessProfileInput = z.
|
|
3474
|
+
type UpdateCustomerBusinessProfileInput = z.input<typeof updateCustomerBusinessProfileInputSchema>;
|
|
3375
3475
|
declare const updateCustomerBusinessProfileResponseSchema: z.ZodObject<{
|
|
3376
3476
|
id: z.ZodString;
|
|
3377
3477
|
businessName: z.ZodString;
|
|
@@ -3418,12 +3518,12 @@ declare const updateCustomerBusinessProfileResponseSchema: z.ZodObject<{
|
|
|
3418
3518
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3419
3519
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3420
3520
|
} & {
|
|
3421
|
-
customer: z.
|
|
3521
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
3422
3522
|
}, "strip", z.ZodTypeAny, {
|
|
3423
3523
|
id: string;
|
|
3424
3524
|
createdAt: string;
|
|
3425
3525
|
updatedAt: string;
|
|
3426
|
-
customer:
|
|
3526
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
3427
3527
|
businessName: string;
|
|
3428
3528
|
vat: string;
|
|
3429
3529
|
taxCode: string;
|
|
@@ -3443,7 +3543,7 @@ declare const updateCustomerBusinessProfileResponseSchema: z.ZodObject<{
|
|
|
3443
3543
|
id: string;
|
|
3444
3544
|
createdAt: string;
|
|
3445
3545
|
updatedAt: string;
|
|
3446
|
-
customer: string
|
|
3546
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
3447
3547
|
businessName: string;
|
|
3448
3548
|
vat: string;
|
|
3449
3549
|
taxCode: string;
|
|
@@ -3460,8 +3560,8 @@ declare const updateCustomerBusinessProfileResponseSchema: z.ZodObject<{
|
|
|
3460
3560
|
pec?: string | null | undefined;
|
|
3461
3561
|
};
|
|
3462
3562
|
}>;
|
|
3463
|
-
type UpdateCustomerBusinessProfileResponse =
|
|
3464
|
-
declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<
|
|
3563
|
+
type UpdateCustomerBusinessProfileResponse = z.output<typeof updateCustomerBusinessProfileResponseSchema>;
|
|
3564
|
+
declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<typeof updateCustomerBusinessProfileInputSchema, typeof updateCustomerBusinessProfileResponseSchema> {
|
|
3465
3565
|
readonly method = "PATCH";
|
|
3466
3566
|
readonly contentType = "application/merge-patch+json";
|
|
3467
3567
|
readonly accept = "application/json";
|
|
@@ -3586,12 +3686,12 @@ declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<UpdateCus
|
|
|
3586
3686
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3587
3687
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3588
3688
|
} & {
|
|
3589
|
-
customer: z.
|
|
3689
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, any, string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">>;
|
|
3590
3690
|
}, "strip", z.ZodTypeAny, {
|
|
3591
3691
|
id: string;
|
|
3592
3692
|
createdAt: string;
|
|
3593
3693
|
updatedAt: string;
|
|
3594
|
-
customer:
|
|
3694
|
+
customer: _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
3595
3695
|
businessName: string;
|
|
3596
3696
|
vat: string;
|
|
3597
3697
|
taxCode: string;
|
|
@@ -3611,7 +3711,7 @@ declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<UpdateCus
|
|
|
3611
3711
|
id: string;
|
|
3612
3712
|
createdAt: string;
|
|
3613
3713
|
updatedAt: string;
|
|
3614
|
-
customer: string
|
|
3714
|
+
customer: string | _deliverart_sdk_js_global_types.IriObject<"/customers/:id">;
|
|
3615
3715
|
businessName: string;
|
|
3616
3716
|
vat: string;
|
|
3617
3717
|
taxCode: string;
|
|
@@ -3640,21 +3740,21 @@ declare const createCustomerInputSchema: z.ZodObject<{
|
|
|
3640
3740
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3641
3741
|
email: z.ZodNullable<z.ZodString>;
|
|
3642
3742
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
3643
|
-
pointOfSale: z.
|
|
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>;
|
|
3644
3744
|
}, "strip", z.ZodTypeAny, {
|
|
3645
3745
|
firstName: string | null;
|
|
3646
3746
|
lastName: string | null;
|
|
3647
3747
|
email: string | null;
|
|
3648
3748
|
phoneNumber: string | null;
|
|
3649
|
-
pointOfSale:
|
|
3749
|
+
pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
|
|
3650
3750
|
}, {
|
|
3651
3751
|
firstName: string | null;
|
|
3652
3752
|
lastName: string | null;
|
|
3653
3753
|
email: string | null;
|
|
3654
3754
|
phoneNumber: string | null;
|
|
3655
|
-
pointOfSale: string | null;
|
|
3755
|
+
pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
|
|
3656
3756
|
}>;
|
|
3657
|
-
type CreateCustomerInput = z.
|
|
3757
|
+
type CreateCustomerInput = z.input<typeof createCustomerInputSchema>;
|
|
3658
3758
|
declare const createCustomerResponseSchema: z.ZodObject<{
|
|
3659
3759
|
id: z.ZodString;
|
|
3660
3760
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -3668,10 +3768,10 @@ declare const createCustomerResponseSchema: z.ZodObject<{
|
|
|
3668
3768
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3669
3769
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3670
3770
|
} & {
|
|
3671
|
-
pointOfSale: z.
|
|
3672
|
-
owner: z.
|
|
3673
|
-
addresses: z.ZodArray<z.
|
|
3674
|
-
businessProfiles: z.ZodArray<z.
|
|
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">;
|
|
3675
3775
|
}, "strip", z.ZodTypeAny, {
|
|
3676
3776
|
id: string;
|
|
3677
3777
|
firstName: string | null;
|
|
@@ -3684,10 +3784,10 @@ declare const createCustomerResponseSchema: z.ZodObject<{
|
|
|
3684
3784
|
totalSpent: string;
|
|
3685
3785
|
createdAt: string;
|
|
3686
3786
|
updatedAt: string;
|
|
3687
|
-
pointOfSale:
|
|
3688
|
-
owner:
|
|
3689
|
-
addresses:
|
|
3690
|
-
businessProfiles:
|
|
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">[];
|
|
3691
3791
|
}, {
|
|
3692
3792
|
id: string;
|
|
3693
3793
|
firstName: string | null;
|
|
@@ -3700,13 +3800,13 @@ declare const createCustomerResponseSchema: z.ZodObject<{
|
|
|
3700
3800
|
totalSpent: string;
|
|
3701
3801
|
createdAt: string;
|
|
3702
3802
|
updatedAt: string;
|
|
3703
|
-
pointOfSale: string | null;
|
|
3704
|
-
owner: string | null;
|
|
3705
|
-
addresses: string[];
|
|
3706
|
-
businessProfiles: 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">)[];
|
|
3707
3807
|
}>;
|
|
3708
|
-
type CreateCustomerResponse =
|
|
3709
|
-
declare class CreateCustomer extends AbstractApiRequest<
|
|
3808
|
+
type CreateCustomerResponse = z.output<typeof createCustomerResponseSchema>;
|
|
3809
|
+
declare class CreateCustomer extends AbstractApiRequest<typeof createCustomerInputSchema, typeof createCustomerResponseSchema> {
|
|
3710
3810
|
readonly method = "POST";
|
|
3711
3811
|
readonly contentType = "application/json";
|
|
3712
3812
|
readonly accept = "application/json";
|
|
@@ -3715,19 +3815,19 @@ declare class CreateCustomer extends AbstractApiRequest<CreateCustomerInput, Cre
|
|
|
3715
3815
|
lastName: z.ZodNullable<z.ZodString>;
|
|
3716
3816
|
email: z.ZodNullable<z.ZodString>;
|
|
3717
3817
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
3718
|
-
pointOfSale: z.
|
|
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>;
|
|
3719
3819
|
}, "strip", z.ZodTypeAny, {
|
|
3720
3820
|
firstName: string | null;
|
|
3721
3821
|
lastName: string | null;
|
|
3722
3822
|
email: string | null;
|
|
3723
3823
|
phoneNumber: string | null;
|
|
3724
|
-
pointOfSale:
|
|
3824
|
+
pointOfSale: _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
|
|
3725
3825
|
}, {
|
|
3726
3826
|
firstName: string | null;
|
|
3727
3827
|
lastName: string | null;
|
|
3728
3828
|
email: string | null;
|
|
3729
3829
|
phoneNumber: string | null;
|
|
3730
|
-
pointOfSale: string | null;
|
|
3830
|
+
pointOfSale: string | _deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null;
|
|
3731
3831
|
}>;
|
|
3732
3832
|
readonly outputSchema: z.ZodObject<{
|
|
3733
3833
|
id: z.ZodString;
|
|
@@ -3742,10 +3842,10 @@ declare class CreateCustomer extends AbstractApiRequest<CreateCustomerInput, Cre
|
|
|
3742
3842
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3743
3843
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3744
3844
|
} & {
|
|
3745
|
-
pointOfSale: z.
|
|
3746
|
-
owner: z.
|
|
3747
|
-
addresses: z.ZodArray<z.
|
|
3748
|
-
businessProfiles: z.ZodArray<z.
|
|
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">;
|
|
3749
3849
|
}, "strip", z.ZodTypeAny, {
|
|
3750
3850
|
id: string;
|
|
3751
3851
|
firstName: string | null;
|
|
@@ -3758,10 +3858,10 @@ declare class CreateCustomer extends AbstractApiRequest<CreateCustomerInput, Cre
|
|
|
3758
3858
|
totalSpent: string;
|
|
3759
3859
|
createdAt: string;
|
|
3760
3860
|
updatedAt: string;
|
|
3761
|
-
pointOfSale:
|
|
3762
|
-
owner:
|
|
3763
|
-
addresses:
|
|
3764
|
-
businessProfiles:
|
|
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">[];
|
|
3765
3865
|
}, {
|
|
3766
3866
|
id: string;
|
|
3767
3867
|
firstName: string | null;
|
|
@@ -3774,10 +3874,10 @@ declare class CreateCustomer extends AbstractApiRequest<CreateCustomerInput, Cre
|
|
|
3774
3874
|
totalSpent: string;
|
|
3775
3875
|
createdAt: string;
|
|
3776
3876
|
updatedAt: string;
|
|
3777
|
-
pointOfSale: string | null;
|
|
3778
|
-
owner: string | null;
|
|
3779
|
-
addresses: string[];
|
|
3780
|
-
businessProfiles: 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">)[];
|
|
3781
3881
|
}>;
|
|
3782
3882
|
readonly querySchema: undefined;
|
|
3783
3883
|
readonly headersSchema: undefined;
|
|
@@ -3787,7 +3887,7 @@ declare class CreateCustomer extends AbstractApiRequest<CreateCustomerInput, Cre
|
|
|
3787
3887
|
|
|
3788
3888
|
declare const deleteCustomerInputSchema: z.ZodUndefined;
|
|
3789
3889
|
declare const deleteCustomerResponseSchema: z.ZodUndefined;
|
|
3790
|
-
declare class DeleteCustomer extends AbstractApiRequest<
|
|
3890
|
+
declare class DeleteCustomer extends AbstractApiRequest<typeof deleteCustomerInputSchema, typeof deleteCustomerResponseSchema> {
|
|
3791
3891
|
readonly method = "DELETE";
|
|
3792
3892
|
readonly contentType = "application/json";
|
|
3793
3893
|
readonly accept = "application/json";
|
|
@@ -3801,6 +3901,7 @@ declare class DeleteCustomer extends AbstractApiRequest<void, void> {
|
|
|
3801
3901
|
}
|
|
3802
3902
|
|
|
3803
3903
|
declare const getCustomerDetailsInputSchema: z.ZodUndefined;
|
|
3904
|
+
type GetCustomerDetailsInput = z.infer<typeof getCustomerDetailsInputSchema>;
|
|
3804
3905
|
declare const getCustomerDetailsResponseSchema: z.ZodObject<{
|
|
3805
3906
|
id: z.ZodString;
|
|
3806
3907
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -3814,10 +3915,10 @@ declare const getCustomerDetailsResponseSchema: z.ZodObject<{
|
|
|
3814
3915
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3815
3916
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3816
3917
|
} & {
|
|
3817
|
-
pointOfSale: z.
|
|
3818
|
-
owner: z.
|
|
3819
|
-
addresses: z.ZodArray<z.
|
|
3820
|
-
businessProfiles: z.ZodArray<z.
|
|
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">;
|
|
3821
3922
|
}, "strip", z.ZodTypeAny, {
|
|
3822
3923
|
id: string;
|
|
3823
3924
|
firstName: string | null;
|
|
@@ -3830,10 +3931,10 @@ declare const getCustomerDetailsResponseSchema: z.ZodObject<{
|
|
|
3830
3931
|
totalSpent: string;
|
|
3831
3932
|
createdAt: string;
|
|
3832
3933
|
updatedAt: string;
|
|
3833
|
-
pointOfSale:
|
|
3834
|
-
owner:
|
|
3835
|
-
addresses:
|
|
3836
|
-
businessProfiles:
|
|
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">[];
|
|
3837
3938
|
}, {
|
|
3838
3939
|
id: string;
|
|
3839
3940
|
firstName: string | null;
|
|
@@ -3846,13 +3947,13 @@ declare const getCustomerDetailsResponseSchema: z.ZodObject<{
|
|
|
3846
3947
|
totalSpent: string;
|
|
3847
3948
|
createdAt: string;
|
|
3848
3949
|
updatedAt: string;
|
|
3849
|
-
pointOfSale: string | null;
|
|
3850
|
-
owner: string | null;
|
|
3851
|
-
addresses: string[];
|
|
3852
|
-
businessProfiles: 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">)[];
|
|
3853
3954
|
}>;
|
|
3854
|
-
type GetCustomerDetailsResponse =
|
|
3855
|
-
declare class GetCustomerDetails extends AbstractApiRequest<
|
|
3955
|
+
type GetCustomerDetailsResponse = z.infer<typeof getCustomerDetailsResponseSchema>;
|
|
3956
|
+
declare class GetCustomerDetails extends AbstractApiRequest<typeof getCustomerDetailsInputSchema, typeof getCustomerDetailsResponseSchema> {
|
|
3856
3957
|
readonly method = "GET";
|
|
3857
3958
|
readonly contentType = "application/json";
|
|
3858
3959
|
readonly accept = "application/json";
|
|
@@ -3870,10 +3971,10 @@ declare class GetCustomerDetails extends AbstractApiRequest<void, GetCustomerDet
|
|
|
3870
3971
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3871
3972
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
3872
3973
|
} & {
|
|
3873
|
-
pointOfSale: z.
|
|
3874
|
-
owner: z.
|
|
3875
|
-
addresses: z.ZodArray<z.
|
|
3876
|
-
businessProfiles: z.ZodArray<z.
|
|
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">;
|
|
3877
3978
|
}, "strip", z.ZodTypeAny, {
|
|
3878
3979
|
id: string;
|
|
3879
3980
|
firstName: string | null;
|
|
@@ -3886,10 +3987,10 @@ declare class GetCustomerDetails extends AbstractApiRequest<void, GetCustomerDet
|
|
|
3886
3987
|
totalSpent: string;
|
|
3887
3988
|
createdAt: string;
|
|
3888
3989
|
updatedAt: string;
|
|
3889
|
-
pointOfSale:
|
|
3890
|
-
owner:
|
|
3891
|
-
addresses:
|
|
3892
|
-
businessProfiles:
|
|
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">[];
|
|
3893
3994
|
}, {
|
|
3894
3995
|
id: string;
|
|
3895
3996
|
firstName: string | null;
|
|
@@ -3902,10 +4003,10 @@ declare class GetCustomerDetails extends AbstractApiRequest<void, GetCustomerDet
|
|
|
3902
4003
|
totalSpent: string;
|
|
3903
4004
|
createdAt: string;
|
|
3904
4005
|
updatedAt: string;
|
|
3905
|
-
pointOfSale: string | null;
|
|
3906
|
-
owner: string | null;
|
|
3907
|
-
addresses: string[];
|
|
3908
|
-
businessProfiles: 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">)[];
|
|
3909
4010
|
}>;
|
|
3910
4011
|
readonly querySchema: undefined;
|
|
3911
4012
|
readonly headersSchema: undefined;
|
|
@@ -3952,17 +4053,6 @@ declare const getCustomersQuerySchema: z.ZodObject<{
|
|
|
3952
4053
|
phoneNumber?: string | undefined;
|
|
3953
4054
|
hasBusinessProfiles?: boolean | undefined;
|
|
3954
4055
|
hasAddresses?: boolean | undefined;
|
|
3955
|
-
'order[createdAt]'?: "asc" | "desc" | undefined;
|
|
3956
|
-
'order[updatedAt]'?: "asc" | "desc" | undefined;
|
|
3957
|
-
page?: number | undefined;
|
|
3958
|
-
'createdAt[before]'?: string | undefined;
|
|
3959
|
-
'createdAt[strictly_before]'?: string | undefined;
|
|
3960
|
-
'createdAt[after]'?: string | undefined;
|
|
3961
|
-
'createdAt[strictly_after]'?: string | undefined;
|
|
3962
|
-
'updatedAt[before]'?: string | undefined;
|
|
3963
|
-
'updatedAt[strictly_before]'?: string | undefined;
|
|
3964
|
-
'updatedAt[after]'?: string | undefined;
|
|
3965
|
-
'updatedAt[strictly_after]'?: string | undefined;
|
|
3966
4056
|
'ordersPlaced[between]'?: number | undefined;
|
|
3967
4057
|
'ordersPlaced[gt]'?: number | undefined;
|
|
3968
4058
|
'ordersPlaced[gte]'?: number | undefined;
|
|
@@ -3975,13 +4065,6 @@ declare const getCustomersQuerySchema: z.ZodObject<{
|
|
|
3975
4065
|
'totalSpent[lte]'?: string | undefined;
|
|
3976
4066
|
'order[firstName]'?: "asc" | "desc" | undefined;
|
|
3977
4067
|
'order[lastName]'?: "asc" | "desc" | undefined;
|
|
3978
|
-
}, {
|
|
3979
|
-
firstName?: string | undefined;
|
|
3980
|
-
lastName?: string | undefined;
|
|
3981
|
-
email?: string | undefined;
|
|
3982
|
-
phoneNumber?: string | undefined;
|
|
3983
|
-
hasBusinessProfiles?: boolean | undefined;
|
|
3984
|
-
hasAddresses?: boolean | undefined;
|
|
3985
4068
|
'order[createdAt]'?: "asc" | "desc" | undefined;
|
|
3986
4069
|
'order[updatedAt]'?: "asc" | "desc" | undefined;
|
|
3987
4070
|
page?: number | undefined;
|
|
@@ -3993,6 +4076,13 @@ declare const getCustomersQuerySchema: z.ZodObject<{
|
|
|
3993
4076
|
'updatedAt[strictly_before]'?: string | undefined;
|
|
3994
4077
|
'updatedAt[after]'?: string | undefined;
|
|
3995
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;
|
|
3996
4086
|
'ordersPlaced[between]'?: number | undefined;
|
|
3997
4087
|
'ordersPlaced[gt]'?: number | undefined;
|
|
3998
4088
|
'ordersPlaced[gte]'?: number | undefined;
|
|
@@ -4005,8 +4095,21 @@ declare const getCustomersQuerySchema: z.ZodObject<{
|
|
|
4005
4095
|
'totalSpent[lte]'?: string | undefined;
|
|
4006
4096
|
'order[firstName]'?: "asc" | "desc" | undefined;
|
|
4007
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;
|
|
4008
4109
|
}>;
|
|
4009
4110
|
type GetCustomersQueryParams = z.infer<typeof getCustomersQuerySchema>;
|
|
4111
|
+
declare const getCustomersInputSchema: z.ZodUndefined;
|
|
4112
|
+
type GetCustomersInput = z.input<typeof getCustomersInputSchema>;
|
|
4010
4113
|
declare const getCustomersResponseSchema: z.ZodObject<{
|
|
4011
4114
|
data: z.ZodArray<z.ZodObject<{
|
|
4012
4115
|
id: z.ZodString;
|
|
@@ -4113,8 +4216,7 @@ declare const getCustomersResponseSchema: z.ZodObject<{
|
|
|
4113
4216
|
};
|
|
4114
4217
|
}>;
|
|
4115
4218
|
type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
|
|
4116
|
-
declare
|
|
4117
|
-
declare class GetCustomers extends AbstractApiRequest<void, GetCustomersResponse, GetCustomersQueryParams> {
|
|
4219
|
+
declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSchema, typeof getCustomersResponseSchema, GetCustomersQueryParams> {
|
|
4118
4220
|
readonly method = "GET";
|
|
4119
4221
|
readonly contentType = "application/json";
|
|
4120
4222
|
readonly accept = "application/json";
|
|
@@ -4262,17 +4364,6 @@ declare class GetCustomers extends AbstractApiRequest<void, GetCustomersResponse
|
|
|
4262
4364
|
phoneNumber?: string | undefined;
|
|
4263
4365
|
hasBusinessProfiles?: boolean | undefined;
|
|
4264
4366
|
hasAddresses?: boolean | undefined;
|
|
4265
|
-
'order[createdAt]'?: "asc" | "desc" | undefined;
|
|
4266
|
-
'order[updatedAt]'?: "asc" | "desc" | undefined;
|
|
4267
|
-
page?: number | undefined;
|
|
4268
|
-
'createdAt[before]'?: string | undefined;
|
|
4269
|
-
'createdAt[strictly_before]'?: string | undefined;
|
|
4270
|
-
'createdAt[after]'?: string | undefined;
|
|
4271
|
-
'createdAt[strictly_after]'?: string | undefined;
|
|
4272
|
-
'updatedAt[before]'?: string | undefined;
|
|
4273
|
-
'updatedAt[strictly_before]'?: string | undefined;
|
|
4274
|
-
'updatedAt[after]'?: string | undefined;
|
|
4275
|
-
'updatedAt[strictly_after]'?: string | undefined;
|
|
4276
4367
|
'ordersPlaced[between]'?: number | undefined;
|
|
4277
4368
|
'ordersPlaced[gt]'?: number | undefined;
|
|
4278
4369
|
'ordersPlaced[gte]'?: number | undefined;
|
|
@@ -4285,13 +4376,6 @@ declare class GetCustomers extends AbstractApiRequest<void, GetCustomersResponse
|
|
|
4285
4376
|
'totalSpent[lte]'?: string | undefined;
|
|
4286
4377
|
'order[firstName]'?: "asc" | "desc" | undefined;
|
|
4287
4378
|
'order[lastName]'?: "asc" | "desc" | undefined;
|
|
4288
|
-
}, {
|
|
4289
|
-
firstName?: string | undefined;
|
|
4290
|
-
lastName?: string | undefined;
|
|
4291
|
-
email?: string | undefined;
|
|
4292
|
-
phoneNumber?: string | undefined;
|
|
4293
|
-
hasBusinessProfiles?: boolean | undefined;
|
|
4294
|
-
hasAddresses?: boolean | undefined;
|
|
4295
4379
|
'order[createdAt]'?: "asc" | "desc" | undefined;
|
|
4296
4380
|
'order[updatedAt]'?: "asc" | "desc" | undefined;
|
|
4297
4381
|
page?: number | undefined;
|
|
@@ -4303,6 +4387,13 @@ declare class GetCustomers extends AbstractApiRequest<void, GetCustomersResponse
|
|
|
4303
4387
|
'updatedAt[strictly_before]'?: string | undefined;
|
|
4304
4388
|
'updatedAt[after]'?: string | undefined;
|
|
4305
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;
|
|
4306
4397
|
'ordersPlaced[between]'?: number | undefined;
|
|
4307
4398
|
'ordersPlaced[gt]'?: number | undefined;
|
|
4308
4399
|
'ordersPlaced[gte]'?: number | undefined;
|
|
@@ -4315,6 +4406,17 @@ declare class GetCustomers extends AbstractApiRequest<void, GetCustomersResponse
|
|
|
4315
4406
|
'totalSpent[lte]'?: string | undefined;
|
|
4316
4407
|
'order[firstName]'?: "asc" | "desc" | undefined;
|
|
4317
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;
|
|
4318
4420
|
}>;
|
|
4319
4421
|
readonly headersSchema: undefined;
|
|
4320
4422
|
constructor(options?: {
|
|
@@ -4340,7 +4442,7 @@ declare const updateCustomerInputSchema: z.ZodObject<{
|
|
|
4340
4442
|
email?: string | null | undefined;
|
|
4341
4443
|
phoneNumber?: string | null | undefined;
|
|
4342
4444
|
}>;
|
|
4343
|
-
type UpdateCustomerInput = z.
|
|
4445
|
+
type UpdateCustomerInput = z.input<typeof updateCustomerInputSchema>;
|
|
4344
4446
|
declare const updateCustomerResponseSchema: z.ZodObject<{
|
|
4345
4447
|
id: z.ZodString;
|
|
4346
4448
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -4354,10 +4456,10 @@ declare const updateCustomerResponseSchema: z.ZodObject<{
|
|
|
4354
4456
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
4355
4457
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
4356
4458
|
} & {
|
|
4357
|
-
pointOfSale: z.
|
|
4358
|
-
owner: z.
|
|
4359
|
-
addresses: z.ZodArray<z.
|
|
4360
|
-
businessProfiles: z.ZodArray<z.
|
|
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">;
|
|
4361
4463
|
}, "strip", z.ZodTypeAny, {
|
|
4362
4464
|
id: string;
|
|
4363
4465
|
firstName: string | null;
|
|
@@ -4370,10 +4472,10 @@ declare const updateCustomerResponseSchema: z.ZodObject<{
|
|
|
4370
4472
|
totalSpent: string;
|
|
4371
4473
|
createdAt: string;
|
|
4372
4474
|
updatedAt: string;
|
|
4373
|
-
pointOfSale:
|
|
4374
|
-
owner:
|
|
4375
|
-
addresses:
|
|
4376
|
-
businessProfiles:
|
|
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">[];
|
|
4377
4479
|
}, {
|
|
4378
4480
|
id: string;
|
|
4379
4481
|
firstName: string | null;
|
|
@@ -4386,13 +4488,13 @@ declare const updateCustomerResponseSchema: z.ZodObject<{
|
|
|
4386
4488
|
totalSpent: string;
|
|
4387
4489
|
createdAt: string;
|
|
4388
4490
|
updatedAt: string;
|
|
4389
|
-
pointOfSale: string | null;
|
|
4390
|
-
owner: string | null;
|
|
4391
|
-
addresses: string[];
|
|
4392
|
-
businessProfiles: 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">)[];
|
|
4393
4495
|
}>;
|
|
4394
|
-
type UpdateCustomerResponse =
|
|
4395
|
-
declare class UpdateCustomer extends AbstractApiRequest<
|
|
4496
|
+
type UpdateCustomerResponse = z.infer<typeof updateCustomerResponseSchema>;
|
|
4497
|
+
declare class UpdateCustomer extends AbstractApiRequest<typeof updateCustomerInputSchema, typeof updateCustomerResponseSchema> {
|
|
4396
4498
|
readonly method = "PATCH";
|
|
4397
4499
|
readonly contentType = "application/merge-patch+json";
|
|
4398
4500
|
readonly accept = "application/json";
|
|
@@ -4425,10 +4527,10 @@ declare class UpdateCustomer extends AbstractApiRequest<UpdateCustomerInput, Upd
|
|
|
4425
4527
|
createdAt: z.ZodEffects<z.ZodString, string, string>;
|
|
4426
4528
|
updatedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
4427
4529
|
} & {
|
|
4428
|
-
pointOfSale: z.
|
|
4429
|
-
owner: z.
|
|
4430
|
-
addresses: z.ZodArray<z.
|
|
4431
|
-
businessProfiles: z.ZodArray<z.
|
|
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">;
|
|
4432
4534
|
}, "strip", z.ZodTypeAny, {
|
|
4433
4535
|
id: string;
|
|
4434
4536
|
firstName: string | null;
|
|
@@ -4441,10 +4543,10 @@ declare class UpdateCustomer extends AbstractApiRequest<UpdateCustomerInput, Upd
|
|
|
4441
4543
|
totalSpent: string;
|
|
4442
4544
|
createdAt: string;
|
|
4443
4545
|
updatedAt: string;
|
|
4444
|
-
pointOfSale:
|
|
4445
|
-
owner:
|
|
4446
|
-
addresses:
|
|
4447
|
-
businessProfiles:
|
|
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">[];
|
|
4448
4550
|
}, {
|
|
4449
4551
|
id: string;
|
|
4450
4552
|
firstName: string | null;
|
|
@@ -4457,10 +4559,10 @@ declare class UpdateCustomer extends AbstractApiRequest<UpdateCustomerInput, Upd
|
|
|
4457
4559
|
totalSpent: string;
|
|
4458
4560
|
createdAt: string;
|
|
4459
4561
|
updatedAt: string;
|
|
4460
|
-
pointOfSale: string | null;
|
|
4461
|
-
owner: string | null;
|
|
4462
|
-
addresses: string[];
|
|
4463
|
-
businessProfiles: 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">)[];
|
|
4464
4566
|
}>;
|
|
4465
4567
|
readonly querySchema: undefined;
|
|
4466
4568
|
readonly headersSchema: undefined;
|
|
@@ -4469,17 +4571,17 @@ declare class UpdateCustomer extends AbstractApiRequest<UpdateCustomerInput, Upd
|
|
|
4469
4571
|
getPath(): string;
|
|
4470
4572
|
}
|
|
4471
4573
|
|
|
4472
|
-
declare const
|
|
4473
|
-
type
|
|
4474
|
-
declare const
|
|
4475
|
-
type
|
|
4476
|
-
declare const
|
|
4477
|
-
type
|
|
4478
|
-
declare const
|
|
4479
|
-
type
|
|
4480
|
-
declare const
|
|
4481
|
-
type
|
|
4482
|
-
declare const
|
|
4483
|
-
type
|
|
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>;
|
|
4484
4586
|
|
|
4485
|
-
export { CreateCustomer, CreateCustomerAddress, type CreateCustomerAddressInput, type CreateCustomerAddressResponse, CreateCustomerBusinessProfile, type CreateCustomerBusinessProfileInput, type CreateCustomerBusinessProfileResponse, type CreateCustomerInput, type CreateCustomerResponse, type Customer, type CustomerAddress, type CustomerAddressDetails, type
|
|
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 };
|