@deliverart/sdk-js-customer 0.0.0-dev-20260721002647
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/README.md +302 -0
- package/dist/index.cjs +767 -0
- package/dist/index.d.cts +1780 -0
- package/dist/index.d.ts +1780 -0
- package/dist/index.js +675 -0
- package/package.json +35 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1780 @@
|
|
|
1
|
+
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
4
|
+
|
|
5
|
+
declare const customerSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
8
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
9
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
10
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
11
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
12
|
+
hasAddresses: z.ZodBoolean;
|
|
13
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
14
|
+
totalSpent: z.ZodString;
|
|
15
|
+
createdAt: z.ZodString;
|
|
16
|
+
updatedAt: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
type Customer = z.infer<typeof customerSchema>;
|
|
19
|
+
declare const customerDetailsSchema: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
22
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
23
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
24
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
25
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
26
|
+
hasAddresses: z.ZodBoolean;
|
|
27
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
28
|
+
totalSpent: z.ZodString;
|
|
29
|
+
createdAt: z.ZodString;
|
|
30
|
+
updatedAt: z.ZodString;
|
|
31
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
|
|
32
|
+
owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
33
|
+
addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
|
|
34
|
+
businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
type CustomerDetails = z.infer<typeof customerDetailsSchema>;
|
|
37
|
+
declare const writableCreateCustomerSchema: z.ZodObject<{
|
|
38
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
|
|
39
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
40
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
41
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
42
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
type WritableCreateCustomer = z.infer<typeof writableCreateCustomerSchema>;
|
|
45
|
+
declare const writableCustomerSchema: z.ZodObject<{
|
|
46
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
47
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
48
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
49
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
type WritableCustomer = z.infer<typeof writableCustomerSchema>;
|
|
52
|
+
declare const customerAddressSchema: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
address: z.ZodObject<{
|
|
55
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
location: z.ZodObject<{
|
|
63
|
+
latitude: z.ZodNumber;
|
|
64
|
+
longitude: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
createdAt: z.ZodString;
|
|
67
|
+
updatedAt: z.ZodString;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
type CustomerAddress = z.infer<typeof customerAddressSchema>;
|
|
70
|
+
declare const customerAddressDetailsSchema: z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
address: z.ZodObject<{
|
|
73
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
location: z.ZodObject<{
|
|
81
|
+
latitude: z.ZodNumber;
|
|
82
|
+
longitude: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
createdAt: z.ZodString;
|
|
85
|
+
updatedAt: z.ZodString;
|
|
86
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
type CustomerAddressDetails = z.infer<typeof customerAddressDetailsSchema>;
|
|
89
|
+
declare const writableCreateCustomerAddressSchema: z.ZodObject<{
|
|
90
|
+
address: z.ZodObject<{
|
|
91
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
type WritableCreateCustomerAddress = z.infer<typeof writableCreateCustomerAddressSchema>;
|
|
101
|
+
declare const writableCustomerAddressSchema: z.ZodObject<{
|
|
102
|
+
address: z.ZodObject<{
|
|
103
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
type WritableCustomerAddress = z.infer<typeof writableCustomerAddressSchema>;
|
|
112
|
+
declare const customerBusinessProfileSchema: z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
businessName: z.ZodString;
|
|
115
|
+
vat: z.ZodString;
|
|
116
|
+
taxCode: z.ZodString;
|
|
117
|
+
billingAddress: z.ZodObject<{
|
|
118
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
billingData: z.ZodObject<{
|
|
126
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
127
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
createdAt: z.ZodString;
|
|
130
|
+
updatedAt: z.ZodString;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
type CustomerBusinessProfile = z.infer<typeof customerBusinessProfileSchema>;
|
|
133
|
+
declare const customerBusinessProfileDetailsSchema: z.ZodObject<{
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
businessName: z.ZodString;
|
|
136
|
+
vat: z.ZodString;
|
|
137
|
+
taxCode: z.ZodString;
|
|
138
|
+
billingAddress: z.ZodObject<{
|
|
139
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
billingData: z.ZodObject<{
|
|
147
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
148
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
createdAt: z.ZodString;
|
|
151
|
+
updatedAt: z.ZodString;
|
|
152
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
type CustomerBusinessProfileDetails = z.infer<typeof customerBusinessProfileDetailsSchema>;
|
|
155
|
+
declare const writableCreateCustomerBusinessProfileSchema: z.ZodObject<{
|
|
156
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
157
|
+
billingAddress: z.ZodObject<{
|
|
158
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
billingData: z.ZodObject<{
|
|
166
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
167
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
businessName: z.ZodString;
|
|
170
|
+
vat: z.ZodString;
|
|
171
|
+
taxCode: z.ZodString;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
declare const writableCustomerBusinessProfileSchema: z.ZodObject<{
|
|
174
|
+
billingAddress: z.ZodObject<{
|
|
175
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
billingData: z.ZodObject<{
|
|
183
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
184
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
businessName: z.ZodString;
|
|
187
|
+
vat: z.ZodString;
|
|
188
|
+
taxCode: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
declare const customersQuerySchema: z.ZodObject<{
|
|
191
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
192
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
193
|
+
email: z.ZodOptional<z.ZodString>;
|
|
194
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
195
|
+
hasBusinessProfiles: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
196
|
+
hasAddresses: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
197
|
+
'ordersPlaced[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
198
|
+
'ordersPlaced[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
199
|
+
'ordersPlaced[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
200
|
+
'ordersPlaced[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
201
|
+
'ordersPlaced[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
202
|
+
'totalSpent[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
203
|
+
'totalSpent[gt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
204
|
+
'totalSpent[gte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
205
|
+
'totalSpent[lt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
206
|
+
'totalSpent[lte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
207
|
+
'order[firstName]': z.ZodOptional<z.ZodEnum<{
|
|
208
|
+
asc: "asc";
|
|
209
|
+
desc: "desc";
|
|
210
|
+
}>>;
|
|
211
|
+
'order[lastName]': z.ZodOptional<z.ZodEnum<{
|
|
212
|
+
asc: "asc";
|
|
213
|
+
desc: "desc";
|
|
214
|
+
}>>;
|
|
215
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
asc: "asc";
|
|
217
|
+
desc: "desc";
|
|
218
|
+
}>>;
|
|
219
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
220
|
+
asc: "asc";
|
|
221
|
+
desc: "desc";
|
|
222
|
+
}>>;
|
|
223
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
224
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
225
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
226
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
227
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
228
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
229
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
230
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
231
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
type CustomersQueryParams = z.infer<typeof customersQuerySchema>;
|
|
234
|
+
|
|
235
|
+
declare const createCustomerAddressInputSchema: z.ZodObject<{
|
|
236
|
+
address: z.ZodNonOptional<z.ZodObject<{
|
|
237
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
239
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
|
+
}, z.core.$strip>>;
|
|
244
|
+
customer: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
type CreateCustomerAddressInput = z.input<typeof createCustomerAddressInputSchema>;
|
|
247
|
+
declare const createCustomerAddressResponseSchema: z.ZodObject<{
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
address: z.ZodObject<{
|
|
250
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
252
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
253
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
254
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
255
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
location: z.ZodObject<{
|
|
258
|
+
latitude: z.ZodNumber;
|
|
259
|
+
longitude: z.ZodNumber;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
createdAt: z.ZodString;
|
|
262
|
+
updatedAt: z.ZodString;
|
|
263
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
type CreateCustomerAddressResponse = z.infer<typeof createCustomerAddressResponseSchema>;
|
|
266
|
+
declare class CreateCustomerAddress extends AbstractApiRequest<typeof createCustomerAddressInputSchema, typeof createCustomerAddressResponseSchema> {
|
|
267
|
+
readonly method = "POST";
|
|
268
|
+
readonly contentType = "application/json";
|
|
269
|
+
readonly accept = "application/json";
|
|
270
|
+
readonly inputSchema: z.ZodObject<{
|
|
271
|
+
address: z.ZodNonOptional<z.ZodObject<{
|
|
272
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
customer: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
readonly outputSchema: z.ZodObject<{
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
address: z.ZodObject<{
|
|
284
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
288
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
location: z.ZodObject<{
|
|
292
|
+
latitude: z.ZodNumber;
|
|
293
|
+
longitude: z.ZodNumber;
|
|
294
|
+
}, z.core.$strip>;
|
|
295
|
+
createdAt: z.ZodString;
|
|
296
|
+
updatedAt: z.ZodString;
|
|
297
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
298
|
+
}, z.core.$strip>;
|
|
299
|
+
readonly querySchema: undefined;
|
|
300
|
+
readonly headersSchema: undefined;
|
|
301
|
+
constructor(input: z.input<typeof createCustomerAddressInputSchema>);
|
|
302
|
+
getPath(): string;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare const deleteCustomerAddressInputSchema: z.ZodUndefined;
|
|
306
|
+
declare const deleteCustomerAddressResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
307
|
+
declare class DeleteCustomerAddress extends AbstractApiRequest<typeof deleteCustomerAddressInputSchema, typeof deleteCustomerAddressResponseSchema> {
|
|
308
|
+
readonly method = "DELETE";
|
|
309
|
+
readonly contentType = "application/json";
|
|
310
|
+
readonly accept = "application/json";
|
|
311
|
+
readonly inputSchema: z.ZodUndefined;
|
|
312
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
313
|
+
readonly querySchema: undefined;
|
|
314
|
+
readonly headersSchema: undefined;
|
|
315
|
+
private readonly customerAddressId;
|
|
316
|
+
constructor(customerAddressId: string);
|
|
317
|
+
getPath(): string;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
declare const getCustomerAddressDetailsInputSchema: z.ZodUndefined;
|
|
321
|
+
type GetCustomerAddressDetailsInput = z.input<typeof getCustomerAddressDetailsInputSchema>;
|
|
322
|
+
declare const getCustomerAddressDetailsResponseSchema: z.ZodObject<{
|
|
323
|
+
id: z.ZodString;
|
|
324
|
+
address: z.ZodObject<{
|
|
325
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
328
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
331
|
+
}, z.core.$strip>;
|
|
332
|
+
location: z.ZodObject<{
|
|
333
|
+
latitude: z.ZodNumber;
|
|
334
|
+
longitude: z.ZodNumber;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
createdAt: z.ZodString;
|
|
337
|
+
updatedAt: z.ZodString;
|
|
338
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
type GetCustomerAddressDetailsResponse = z.infer<typeof getCustomerAddressDetailsResponseSchema>;
|
|
341
|
+
declare class GetCustomerAddressDetails extends AbstractApiRequest<typeof getCustomerAddressDetailsInputSchema, typeof getCustomerAddressDetailsResponseSchema> {
|
|
342
|
+
readonly method = "GET";
|
|
343
|
+
readonly contentType = "application/json";
|
|
344
|
+
readonly accept = "application/json";
|
|
345
|
+
readonly inputSchema: z.ZodUndefined;
|
|
346
|
+
readonly outputSchema: z.ZodObject<{
|
|
347
|
+
id: z.ZodString;
|
|
348
|
+
address: z.ZodObject<{
|
|
349
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
352
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
353
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
354
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
location: z.ZodObject<{
|
|
357
|
+
latitude: z.ZodNumber;
|
|
358
|
+
longitude: z.ZodNumber;
|
|
359
|
+
}, z.core.$strip>;
|
|
360
|
+
createdAt: z.ZodString;
|
|
361
|
+
updatedAt: z.ZodString;
|
|
362
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
363
|
+
}, z.core.$strip>;
|
|
364
|
+
readonly querySchema: undefined;
|
|
365
|
+
readonly headersSchema: undefined;
|
|
366
|
+
private readonly customerAddressId;
|
|
367
|
+
constructor(customerAddressId: string);
|
|
368
|
+
getPath(): string;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
declare const getCustomerAddressesQuerySchema: z.ZodObject<{
|
|
372
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
373
|
+
asc: "asc";
|
|
374
|
+
desc: "desc";
|
|
375
|
+
}>>;
|
|
376
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
377
|
+
asc: "asc";
|
|
378
|
+
desc: "desc";
|
|
379
|
+
}>>;
|
|
380
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
381
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
382
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
383
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
384
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
385
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
386
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
387
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
388
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
389
|
+
}, z.core.$strip>;
|
|
390
|
+
type GetCustomerAddressesQueryParams = z.infer<typeof getCustomerAddressesQuerySchema>;
|
|
391
|
+
declare const getCustomerAddressesInputSchema: z.ZodUndefined;
|
|
392
|
+
type GetCustomerAddressesInput = z.input<typeof getCustomerAddressesInputSchema>;
|
|
393
|
+
declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
394
|
+
data: z.ZodArray<z.ZodObject<{
|
|
395
|
+
id: z.ZodString;
|
|
396
|
+
address: z.ZodObject<{
|
|
397
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
399
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
401
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
402
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
403
|
+
}, z.core.$strip>;
|
|
404
|
+
location: z.ZodObject<{
|
|
405
|
+
latitude: z.ZodNumber;
|
|
406
|
+
longitude: z.ZodNumber;
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
createdAt: z.ZodString;
|
|
409
|
+
updatedAt: z.ZodString;
|
|
410
|
+
}, z.core.$strip>>;
|
|
411
|
+
pagination: z.ZodObject<{
|
|
412
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
413
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
414
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
415
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
416
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
417
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
}, z.core.$strip>;
|
|
420
|
+
type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
|
|
421
|
+
declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomerAddressesInputSchema, typeof getCustomerAddressesResponseSchema, GetCustomerAddressesQueryParams> {
|
|
422
|
+
readonly method: "GET";
|
|
423
|
+
readonly contentType: "application/json";
|
|
424
|
+
readonly accept: "application/json";
|
|
425
|
+
readonly inputSchema: z.ZodUndefined;
|
|
426
|
+
readonly outputSchema: z.ZodObject<{
|
|
427
|
+
data: z.ZodArray<z.ZodObject<{
|
|
428
|
+
id: z.ZodString;
|
|
429
|
+
address: z.ZodObject<{
|
|
430
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
431
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
432
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
433
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
434
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
435
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
436
|
+
}, z.core.$strip>;
|
|
437
|
+
location: z.ZodObject<{
|
|
438
|
+
latitude: z.ZodNumber;
|
|
439
|
+
longitude: z.ZodNumber;
|
|
440
|
+
}, z.core.$strip>;
|
|
441
|
+
createdAt: z.ZodString;
|
|
442
|
+
updatedAt: z.ZodString;
|
|
443
|
+
}, z.core.$strip>>;
|
|
444
|
+
pagination: z.ZodObject<{
|
|
445
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
446
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
447
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
448
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
449
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
450
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
}, z.core.$strip>;
|
|
453
|
+
readonly querySchema: z.ZodObject<{
|
|
454
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
455
|
+
asc: "asc";
|
|
456
|
+
desc: "desc";
|
|
457
|
+
}>>;
|
|
458
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
459
|
+
asc: "asc";
|
|
460
|
+
desc: "desc";
|
|
461
|
+
}>>;
|
|
462
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
463
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
464
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
465
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
466
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
467
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
468
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
469
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
470
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
471
|
+
}, z.core.$strip>;
|
|
472
|
+
readonly headersSchema: undefined;
|
|
473
|
+
readonly listItemSchema: z.ZodObject<{
|
|
474
|
+
id: z.ZodString;
|
|
475
|
+
address: z.ZodObject<{
|
|
476
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
477
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
478
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
479
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
480
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
481
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
location: z.ZodObject<{
|
|
484
|
+
latitude: z.ZodNumber;
|
|
485
|
+
longitude: z.ZodNumber;
|
|
486
|
+
}, z.core.$strip>;
|
|
487
|
+
createdAt: z.ZodString;
|
|
488
|
+
updatedAt: z.ZodString;
|
|
489
|
+
}, z.core.$strip>;
|
|
490
|
+
readonly paginationDefaultEnabled = true;
|
|
491
|
+
constructor(options?: {
|
|
492
|
+
query?: GetCustomerAddressesQueryParams;
|
|
493
|
+
});
|
|
494
|
+
getPath(): string;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
declare const getCustomerAddressesForCustomerQuerySchema: z.ZodObject<{
|
|
498
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
499
|
+
asc: "asc";
|
|
500
|
+
desc: "desc";
|
|
501
|
+
}>>;
|
|
502
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
503
|
+
asc: "asc";
|
|
504
|
+
desc: "desc";
|
|
505
|
+
}>>;
|
|
506
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
507
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
508
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
509
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
510
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
511
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
512
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
513
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
514
|
+
}, z.core.$strip>;
|
|
515
|
+
type GetCustomerAddressesForCustomerQueryParams = z.infer<typeof getCustomerAddressesForCustomerQuerySchema>;
|
|
516
|
+
declare const getCustomerAddressesForCustomerInputSchema: z.ZodUndefined;
|
|
517
|
+
type GetCustomerAddressesForCustomerInput = z.input<typeof getCustomerAddressesForCustomerInputSchema>;
|
|
518
|
+
declare const getCustomerAddressesForCustomerResponseSchema: z.ZodArray<z.ZodObject<{
|
|
519
|
+
id: z.ZodString;
|
|
520
|
+
address: z.ZodObject<{
|
|
521
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
522
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
523
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
524
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
525
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
526
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
527
|
+
}, z.core.$strip>;
|
|
528
|
+
location: z.ZodObject<{
|
|
529
|
+
latitude: z.ZodNumber;
|
|
530
|
+
longitude: z.ZodNumber;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
createdAt: z.ZodString;
|
|
533
|
+
updatedAt: z.ZodString;
|
|
534
|
+
}, z.core.$strip>>;
|
|
535
|
+
type GetCustomerAddressesForCustomerResponse = z.infer<typeof getCustomerAddressesForCustomerResponseSchema>;
|
|
536
|
+
declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<typeof getCustomerAddressesForCustomerInputSchema, typeof getCustomerAddressesForCustomerResponseSchema, GetCustomerAddressesForCustomerQueryParams> {
|
|
537
|
+
readonly method: "GET";
|
|
538
|
+
readonly contentType: "application/json";
|
|
539
|
+
readonly accept: "application/json";
|
|
540
|
+
readonly inputSchema: z.ZodUndefined;
|
|
541
|
+
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
542
|
+
id: z.ZodString;
|
|
543
|
+
address: z.ZodObject<{
|
|
544
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
545
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
546
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
547
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
548
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
549
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
550
|
+
}, z.core.$strip>;
|
|
551
|
+
location: z.ZodObject<{
|
|
552
|
+
latitude: z.ZodNumber;
|
|
553
|
+
longitude: z.ZodNumber;
|
|
554
|
+
}, z.core.$strip>;
|
|
555
|
+
createdAt: z.ZodString;
|
|
556
|
+
updatedAt: z.ZodString;
|
|
557
|
+
}, z.core.$strip>>;
|
|
558
|
+
readonly querySchema: z.ZodObject<{
|
|
559
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
560
|
+
asc: "asc";
|
|
561
|
+
desc: "desc";
|
|
562
|
+
}>>;
|
|
563
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
564
|
+
asc: "asc";
|
|
565
|
+
desc: "desc";
|
|
566
|
+
}>>;
|
|
567
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
568
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
569
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
570
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
571
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
572
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
573
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
574
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
575
|
+
}, z.core.$strip>;
|
|
576
|
+
readonly headersSchema: undefined;
|
|
577
|
+
readonly listItemSchema: z.ZodObject<{
|
|
578
|
+
id: z.ZodString;
|
|
579
|
+
address: z.ZodObject<{
|
|
580
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
581
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
582
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
583
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
585
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
|
+
}, z.core.$strip>;
|
|
587
|
+
location: z.ZodObject<{
|
|
588
|
+
latitude: z.ZodNumber;
|
|
589
|
+
longitude: z.ZodNumber;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
createdAt: z.ZodString;
|
|
592
|
+
updatedAt: z.ZodString;
|
|
593
|
+
}, z.core.$strip>;
|
|
594
|
+
readonly paginationDefaultEnabled = false;
|
|
595
|
+
private readonly customerId;
|
|
596
|
+
constructor(customerId: string, options?: {
|
|
597
|
+
query?: GetCustomerAddressesForCustomerQueryParams;
|
|
598
|
+
});
|
|
599
|
+
getPath(): string;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
declare const updateCustomerAddressInputSchema: z.ZodObject<{
|
|
603
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
604
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
605
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
606
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
607
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
608
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
609
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
610
|
+
}, z.core.$strip>>;
|
|
611
|
+
}, z.core.$strip>;
|
|
612
|
+
type UpdateCustomerAddressInput = z.input<typeof updateCustomerAddressInputSchema>;
|
|
613
|
+
declare const updateCustomerAddressResponseSchema: z.ZodObject<{
|
|
614
|
+
id: z.ZodString;
|
|
615
|
+
address: z.ZodObject<{
|
|
616
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
617
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
618
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
619
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
620
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
621
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
622
|
+
}, z.core.$strip>;
|
|
623
|
+
location: z.ZodObject<{
|
|
624
|
+
latitude: z.ZodNumber;
|
|
625
|
+
longitude: z.ZodNumber;
|
|
626
|
+
}, z.core.$strip>;
|
|
627
|
+
createdAt: z.ZodString;
|
|
628
|
+
updatedAt: z.ZodString;
|
|
629
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
630
|
+
}, z.core.$strip>;
|
|
631
|
+
type UpdateCustomerAddressResponse = z.infer<typeof updateCustomerAddressResponseSchema>;
|
|
632
|
+
declare class UpdateCustomerAddress extends AbstractApiRequest<typeof updateCustomerAddressInputSchema, typeof updateCustomerAddressResponseSchema> {
|
|
633
|
+
readonly method = "PATCH";
|
|
634
|
+
readonly contentType = "application/merge-patch+json";
|
|
635
|
+
readonly accept = "application/json";
|
|
636
|
+
readonly inputSchema: z.ZodObject<{
|
|
637
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
638
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
639
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
640
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
641
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
642
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
643
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
644
|
+
}, z.core.$strip>>;
|
|
645
|
+
}, z.core.$strip>;
|
|
646
|
+
readonly outputSchema: z.ZodObject<{
|
|
647
|
+
id: z.ZodString;
|
|
648
|
+
address: z.ZodObject<{
|
|
649
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
650
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
651
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
652
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
653
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
654
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
655
|
+
}, z.core.$strip>;
|
|
656
|
+
location: z.ZodObject<{
|
|
657
|
+
latitude: z.ZodNumber;
|
|
658
|
+
longitude: z.ZodNumber;
|
|
659
|
+
}, z.core.$strip>;
|
|
660
|
+
createdAt: z.ZodString;
|
|
661
|
+
updatedAt: z.ZodString;
|
|
662
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
663
|
+
}, z.core.$strip>;
|
|
664
|
+
readonly querySchema: undefined;
|
|
665
|
+
readonly headersSchema: undefined;
|
|
666
|
+
private readonly customerId;
|
|
667
|
+
constructor(customerId: string, input: UpdateCustomerAddressInput);
|
|
668
|
+
getPath(): string;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
declare const createCustomerBusinessProfileInputSchema: z.ZodObject<{
|
|
672
|
+
customer: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>>;
|
|
673
|
+
billingAddress: z.ZodNonOptional<z.ZodObject<{
|
|
674
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
675
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
676
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
677
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
678
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
679
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
680
|
+
}, z.core.$strip>>;
|
|
681
|
+
billingData: z.ZodNonOptional<z.ZodObject<{
|
|
682
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
683
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
684
|
+
}, z.core.$strip>>;
|
|
685
|
+
businessName: z.ZodNonOptional<z.ZodString>;
|
|
686
|
+
vat: z.ZodNonOptional<z.ZodString>;
|
|
687
|
+
taxCode: z.ZodNonOptional<z.ZodString>;
|
|
688
|
+
}, z.core.$strip>;
|
|
689
|
+
type CreateCustomerBusinessProfileInput = z.input<typeof createCustomerBusinessProfileInputSchema>;
|
|
690
|
+
declare const createCustomerBusinessProfileResponseSchema: z.ZodObject<{
|
|
691
|
+
id: z.ZodString;
|
|
692
|
+
businessName: z.ZodString;
|
|
693
|
+
vat: z.ZodString;
|
|
694
|
+
taxCode: z.ZodString;
|
|
695
|
+
billingAddress: z.ZodObject<{
|
|
696
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
697
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
698
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
699
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
700
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
701
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
702
|
+
}, z.core.$strip>;
|
|
703
|
+
billingData: z.ZodObject<{
|
|
704
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
705
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
706
|
+
}, z.core.$strip>;
|
|
707
|
+
createdAt: z.ZodString;
|
|
708
|
+
updatedAt: z.ZodString;
|
|
709
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
type CreateCustomerBusinessProfileResponse = z.infer<typeof createCustomerBusinessProfileResponseSchema>;
|
|
712
|
+
declare class CreateCustomerBusinessProfile extends AbstractApiRequest<typeof createCustomerBusinessProfileInputSchema, typeof createCustomerBusinessProfileResponseSchema> {
|
|
713
|
+
readonly method = "POST";
|
|
714
|
+
readonly contentType = "application/json";
|
|
715
|
+
readonly accept = "application/json";
|
|
716
|
+
readonly inputSchema: z.ZodObject<{
|
|
717
|
+
customer: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>>;
|
|
718
|
+
billingAddress: z.ZodNonOptional<z.ZodObject<{
|
|
719
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
720
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
721
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
722
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
723
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
724
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
725
|
+
}, z.core.$strip>>;
|
|
726
|
+
billingData: z.ZodNonOptional<z.ZodObject<{
|
|
727
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
728
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
729
|
+
}, z.core.$strip>>;
|
|
730
|
+
businessName: z.ZodNonOptional<z.ZodString>;
|
|
731
|
+
vat: z.ZodNonOptional<z.ZodString>;
|
|
732
|
+
taxCode: z.ZodNonOptional<z.ZodString>;
|
|
733
|
+
}, z.core.$strip>;
|
|
734
|
+
readonly outputSchema: z.ZodObject<{
|
|
735
|
+
id: z.ZodString;
|
|
736
|
+
businessName: z.ZodString;
|
|
737
|
+
vat: z.ZodString;
|
|
738
|
+
taxCode: z.ZodString;
|
|
739
|
+
billingAddress: z.ZodObject<{
|
|
740
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
741
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
742
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
743
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
744
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
745
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
746
|
+
}, z.core.$strip>;
|
|
747
|
+
billingData: z.ZodObject<{
|
|
748
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
749
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
750
|
+
}, z.core.$strip>;
|
|
751
|
+
createdAt: z.ZodString;
|
|
752
|
+
updatedAt: z.ZodString;
|
|
753
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
754
|
+
}, z.core.$strip>;
|
|
755
|
+
readonly querySchema: undefined;
|
|
756
|
+
readonly headersSchema: undefined;
|
|
757
|
+
constructor(input: CreateCustomerBusinessProfileInput);
|
|
758
|
+
getPath(): string;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
declare const deleteCustomerBusinessProfileInputSchema: z.ZodUndefined;
|
|
762
|
+
declare const deleteCustomerBusinessProfileResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
763
|
+
declare class DeleteCustomerBusinessProfile extends AbstractApiRequest<typeof deleteCustomerBusinessProfileInputSchema, typeof deleteCustomerBusinessProfileResponseSchema> {
|
|
764
|
+
readonly method = "DELETE";
|
|
765
|
+
readonly contentType = "application/json";
|
|
766
|
+
readonly accept = "application/json";
|
|
767
|
+
readonly inputSchema: z.ZodUndefined;
|
|
768
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
769
|
+
readonly querySchema: undefined;
|
|
770
|
+
readonly headersSchema: undefined;
|
|
771
|
+
private readonly customerBusinessProfileId;
|
|
772
|
+
constructor(customerBusinessProfileId: string);
|
|
773
|
+
getPath(): string;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
declare const getCustomerBusinessProfileDetailsInputSchema: z.ZodUndefined;
|
|
777
|
+
type GetCustomerBusinessProfileDetailsInput = z.infer<typeof getCustomerBusinessProfileDetailsInputSchema>;
|
|
778
|
+
declare const getCustomerBusinessProfileDetailsResponseSchema: z.ZodObject<{
|
|
779
|
+
id: z.ZodString;
|
|
780
|
+
businessName: z.ZodString;
|
|
781
|
+
vat: z.ZodString;
|
|
782
|
+
taxCode: z.ZodString;
|
|
783
|
+
billingAddress: z.ZodObject<{
|
|
784
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
786
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
787
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
788
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
789
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
790
|
+
}, z.core.$strip>;
|
|
791
|
+
billingData: z.ZodObject<{
|
|
792
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
793
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
794
|
+
}, z.core.$strip>;
|
|
795
|
+
createdAt: z.ZodString;
|
|
796
|
+
updatedAt: z.ZodString;
|
|
797
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
798
|
+
}, z.core.$strip>;
|
|
799
|
+
type GetCustomerBusinessProfileDetailsResponse = z.infer<typeof getCustomerBusinessProfileDetailsResponseSchema>;
|
|
800
|
+
declare class GetCustomerBusinessProfileDetails extends AbstractApiRequest<typeof getCustomerBusinessProfileDetailsInputSchema, typeof getCustomerBusinessProfileDetailsResponseSchema> {
|
|
801
|
+
readonly method = "GET";
|
|
802
|
+
readonly contentType = "application/json";
|
|
803
|
+
readonly accept = "application/json";
|
|
804
|
+
readonly inputSchema: z.ZodUndefined;
|
|
805
|
+
readonly outputSchema: z.ZodObject<{
|
|
806
|
+
id: z.ZodString;
|
|
807
|
+
businessName: z.ZodString;
|
|
808
|
+
vat: z.ZodString;
|
|
809
|
+
taxCode: z.ZodString;
|
|
810
|
+
billingAddress: z.ZodObject<{
|
|
811
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
813
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
814
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
815
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
816
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
817
|
+
}, z.core.$strip>;
|
|
818
|
+
billingData: z.ZodObject<{
|
|
819
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
820
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
821
|
+
}, z.core.$strip>;
|
|
822
|
+
createdAt: z.ZodString;
|
|
823
|
+
updatedAt: z.ZodString;
|
|
824
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
825
|
+
}, z.core.$strip>;
|
|
826
|
+
readonly querySchema: undefined;
|
|
827
|
+
readonly headersSchema: undefined;
|
|
828
|
+
private readonly customerBusinessProfileId;
|
|
829
|
+
constructor(customerBusinessProfileId: string);
|
|
830
|
+
getPath(): string;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
declare const getCustomerBusinessProfilesQuerySchema: z.ZodObject<{
|
|
834
|
+
'order[businessName]': z.ZodOptional<z.ZodEnum<{
|
|
835
|
+
asc: "asc";
|
|
836
|
+
desc: "desc";
|
|
837
|
+
}>>;
|
|
838
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
839
|
+
asc: "asc";
|
|
840
|
+
desc: "desc";
|
|
841
|
+
}>>;
|
|
842
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
843
|
+
asc: "asc";
|
|
844
|
+
desc: "desc";
|
|
845
|
+
}>>;
|
|
846
|
+
businessName: z.ZodOptional<z.ZodString>;
|
|
847
|
+
vat: z.ZodOptional<z.ZodString>;
|
|
848
|
+
taxCode: z.ZodOptional<z.ZodString>;
|
|
849
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
850
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
851
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
852
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
853
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
854
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
855
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
856
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
857
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
858
|
+
}, z.core.$strip>;
|
|
859
|
+
type GetCustomerBusinessProfilesQueryParams = z.infer<typeof getCustomerBusinessProfilesQuerySchema>;
|
|
860
|
+
declare const getCustomerBusinessProfilesInputSchema: z.ZodUndefined;
|
|
861
|
+
type GetCustomerBusinessProfilesInput = z.infer<typeof getCustomerBusinessProfilesInputSchema>;
|
|
862
|
+
declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
863
|
+
data: z.ZodArray<z.ZodObject<{
|
|
864
|
+
id: z.ZodString;
|
|
865
|
+
businessName: z.ZodString;
|
|
866
|
+
vat: z.ZodString;
|
|
867
|
+
taxCode: z.ZodString;
|
|
868
|
+
billingAddress: z.ZodObject<{
|
|
869
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
870
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
871
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
872
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
873
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
874
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
875
|
+
}, z.core.$strip>;
|
|
876
|
+
billingData: z.ZodObject<{
|
|
877
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
878
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
879
|
+
}, z.core.$strip>;
|
|
880
|
+
createdAt: z.ZodString;
|
|
881
|
+
updatedAt: z.ZodString;
|
|
882
|
+
}, z.core.$strip>>;
|
|
883
|
+
pagination: z.ZodObject<{
|
|
884
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
885
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
886
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
887
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
888
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
889
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
890
|
+
}, z.core.$strip>;
|
|
891
|
+
}, z.core.$strip>;
|
|
892
|
+
type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
|
|
893
|
+
declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getCustomerBusinessProfilesInputSchema, typeof getCustomerBusinessProfilesResponseSchema, GetCustomerBusinessProfilesQueryParams> {
|
|
894
|
+
readonly method: "GET";
|
|
895
|
+
readonly contentType: "application/json";
|
|
896
|
+
readonly accept: "application/json";
|
|
897
|
+
readonly inputSchema: z.ZodUndefined;
|
|
898
|
+
readonly outputSchema: z.ZodObject<{
|
|
899
|
+
data: z.ZodArray<z.ZodObject<{
|
|
900
|
+
id: z.ZodString;
|
|
901
|
+
businessName: z.ZodString;
|
|
902
|
+
vat: z.ZodString;
|
|
903
|
+
taxCode: z.ZodString;
|
|
904
|
+
billingAddress: z.ZodObject<{
|
|
905
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
906
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
907
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
908
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
909
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
910
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
911
|
+
}, z.core.$strip>;
|
|
912
|
+
billingData: z.ZodObject<{
|
|
913
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
914
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
915
|
+
}, z.core.$strip>;
|
|
916
|
+
createdAt: z.ZodString;
|
|
917
|
+
updatedAt: z.ZodString;
|
|
918
|
+
}, z.core.$strip>>;
|
|
919
|
+
pagination: z.ZodObject<{
|
|
920
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
921
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
922
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
923
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
924
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
925
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
926
|
+
}, z.core.$strip>;
|
|
927
|
+
}, z.core.$strip>;
|
|
928
|
+
readonly querySchema: z.ZodObject<{
|
|
929
|
+
'order[businessName]': z.ZodOptional<z.ZodEnum<{
|
|
930
|
+
asc: "asc";
|
|
931
|
+
desc: "desc";
|
|
932
|
+
}>>;
|
|
933
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
934
|
+
asc: "asc";
|
|
935
|
+
desc: "desc";
|
|
936
|
+
}>>;
|
|
937
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
938
|
+
asc: "asc";
|
|
939
|
+
desc: "desc";
|
|
940
|
+
}>>;
|
|
941
|
+
businessName: z.ZodOptional<z.ZodString>;
|
|
942
|
+
vat: z.ZodOptional<z.ZodString>;
|
|
943
|
+
taxCode: z.ZodOptional<z.ZodString>;
|
|
944
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
945
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
946
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
947
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
948
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
949
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
950
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
951
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
952
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
953
|
+
}, z.core.$strip>;
|
|
954
|
+
readonly headersSchema: undefined;
|
|
955
|
+
readonly listItemSchema: z.ZodObject<{
|
|
956
|
+
id: z.ZodString;
|
|
957
|
+
businessName: z.ZodString;
|
|
958
|
+
vat: z.ZodString;
|
|
959
|
+
taxCode: z.ZodString;
|
|
960
|
+
billingAddress: z.ZodObject<{
|
|
961
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
962
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
963
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
964
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
965
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
966
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
967
|
+
}, z.core.$strip>;
|
|
968
|
+
billingData: z.ZodObject<{
|
|
969
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
970
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
971
|
+
}, z.core.$strip>;
|
|
972
|
+
createdAt: z.ZodString;
|
|
973
|
+
updatedAt: z.ZodString;
|
|
974
|
+
}, z.core.$strip>;
|
|
975
|
+
readonly paginationDefaultEnabled = true;
|
|
976
|
+
constructor(options?: {
|
|
977
|
+
query?: GetCustomerBusinessProfilesQueryParams;
|
|
978
|
+
});
|
|
979
|
+
getPath(): string;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
declare const getCustomerBusinessProfilesForCustomerQuerySchema: z.ZodObject<{
|
|
983
|
+
'order[businessName]': z.ZodOptional<z.ZodEnum<{
|
|
984
|
+
asc: "asc";
|
|
985
|
+
desc: "desc";
|
|
986
|
+
}>>;
|
|
987
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
988
|
+
asc: "asc";
|
|
989
|
+
desc: "desc";
|
|
990
|
+
}>>;
|
|
991
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
992
|
+
asc: "asc";
|
|
993
|
+
desc: "desc";
|
|
994
|
+
}>>;
|
|
995
|
+
businessName: z.ZodOptional<z.ZodString>;
|
|
996
|
+
vat: z.ZodOptional<z.ZodString>;
|
|
997
|
+
taxCode: z.ZodOptional<z.ZodString>;
|
|
998
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
999
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1000
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1001
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1002
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1003
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1004
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1005
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1006
|
+
}, z.core.$strip>;
|
|
1007
|
+
type GetCustomerBusinessProfilesForCustomerQueryParams = z.infer<typeof getCustomerBusinessProfilesForCustomerQuerySchema>;
|
|
1008
|
+
declare const getCustomerBusinessProfilesForCustomerInputSchema: z.ZodUndefined;
|
|
1009
|
+
type GetCustomerBusinessProfilesForCustomerInput = z.input<typeof getCustomerBusinessProfilesForCustomerInputSchema>;
|
|
1010
|
+
declare const getCustomerBusinessProfilesForCustomerResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1011
|
+
id: z.ZodString;
|
|
1012
|
+
businessName: z.ZodString;
|
|
1013
|
+
vat: z.ZodString;
|
|
1014
|
+
taxCode: z.ZodString;
|
|
1015
|
+
billingAddress: z.ZodObject<{
|
|
1016
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1017
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1018
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1019
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1020
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1021
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1022
|
+
}, z.core.$strip>;
|
|
1023
|
+
billingData: z.ZodObject<{
|
|
1024
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1025
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1026
|
+
}, z.core.$strip>;
|
|
1027
|
+
createdAt: z.ZodString;
|
|
1028
|
+
updatedAt: z.ZodString;
|
|
1029
|
+
}, z.core.$strip>>;
|
|
1030
|
+
type GetCustomerBusinessProfilesForCustomerResponse = z.infer<typeof getCustomerBusinessProfilesForCustomerResponseSchema>;
|
|
1031
|
+
declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<typeof getCustomerBusinessProfilesForCustomerInputSchema, typeof getCustomerBusinessProfilesForCustomerResponseSchema, GetCustomerBusinessProfilesForCustomerQueryParams> {
|
|
1032
|
+
readonly method: "GET";
|
|
1033
|
+
readonly contentType: "application/json";
|
|
1034
|
+
readonly accept: "application/json";
|
|
1035
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1036
|
+
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
1037
|
+
id: z.ZodString;
|
|
1038
|
+
businessName: z.ZodString;
|
|
1039
|
+
vat: z.ZodString;
|
|
1040
|
+
taxCode: z.ZodString;
|
|
1041
|
+
billingAddress: z.ZodObject<{
|
|
1042
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1043
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1044
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1045
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1046
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1047
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1048
|
+
}, z.core.$strip>;
|
|
1049
|
+
billingData: z.ZodObject<{
|
|
1050
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1051
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1052
|
+
}, z.core.$strip>;
|
|
1053
|
+
createdAt: z.ZodString;
|
|
1054
|
+
updatedAt: z.ZodString;
|
|
1055
|
+
}, z.core.$strip>>;
|
|
1056
|
+
readonly querySchema: z.ZodObject<{
|
|
1057
|
+
'order[businessName]': z.ZodOptional<z.ZodEnum<{
|
|
1058
|
+
asc: "asc";
|
|
1059
|
+
desc: "desc";
|
|
1060
|
+
}>>;
|
|
1061
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1062
|
+
asc: "asc";
|
|
1063
|
+
desc: "desc";
|
|
1064
|
+
}>>;
|
|
1065
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1066
|
+
asc: "asc";
|
|
1067
|
+
desc: "desc";
|
|
1068
|
+
}>>;
|
|
1069
|
+
businessName: z.ZodOptional<z.ZodString>;
|
|
1070
|
+
vat: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
taxCode: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1073
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1074
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1075
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1076
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1077
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1078
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1079
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1080
|
+
}, z.core.$strip>;
|
|
1081
|
+
readonly headersSchema: undefined;
|
|
1082
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1083
|
+
id: z.ZodString;
|
|
1084
|
+
businessName: z.ZodString;
|
|
1085
|
+
vat: z.ZodString;
|
|
1086
|
+
taxCode: z.ZodString;
|
|
1087
|
+
billingAddress: z.ZodObject<{
|
|
1088
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1089
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1090
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1091
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1092
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1093
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1094
|
+
}, z.core.$strip>;
|
|
1095
|
+
billingData: z.ZodObject<{
|
|
1096
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1097
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1098
|
+
}, z.core.$strip>;
|
|
1099
|
+
createdAt: z.ZodString;
|
|
1100
|
+
updatedAt: z.ZodString;
|
|
1101
|
+
}, z.core.$strip>;
|
|
1102
|
+
readonly paginationDefaultEnabled = false;
|
|
1103
|
+
private readonly customerId;
|
|
1104
|
+
constructor(customerId: string, options?: {
|
|
1105
|
+
query?: GetCustomerBusinessProfilesForCustomerQueryParams;
|
|
1106
|
+
});
|
|
1107
|
+
getPath(): string;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
declare const updateCustomerBusinessProfileInputSchema: z.ZodObject<{
|
|
1111
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
1112
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1113
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1114
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1115
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1116
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1117
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1118
|
+
}, z.core.$strip>>;
|
|
1119
|
+
billingData: z.ZodOptional<z.ZodObject<{
|
|
1120
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1121
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1122
|
+
}, z.core.$strip>>;
|
|
1123
|
+
businessName: z.ZodOptional<z.ZodString>;
|
|
1124
|
+
vat: z.ZodOptional<z.ZodString>;
|
|
1125
|
+
taxCode: z.ZodOptional<z.ZodString>;
|
|
1126
|
+
}, z.core.$strip>;
|
|
1127
|
+
type UpdateCustomerBusinessProfileInput = z.input<typeof updateCustomerBusinessProfileInputSchema>;
|
|
1128
|
+
declare const updateCustomerBusinessProfileResponseSchema: z.ZodObject<{
|
|
1129
|
+
id: z.ZodString;
|
|
1130
|
+
businessName: z.ZodString;
|
|
1131
|
+
vat: z.ZodString;
|
|
1132
|
+
taxCode: z.ZodString;
|
|
1133
|
+
billingAddress: z.ZodObject<{
|
|
1134
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1135
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1136
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1137
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1138
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1139
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1140
|
+
}, z.core.$strip>;
|
|
1141
|
+
billingData: z.ZodObject<{
|
|
1142
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1143
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1144
|
+
}, z.core.$strip>;
|
|
1145
|
+
createdAt: z.ZodString;
|
|
1146
|
+
updatedAt: z.ZodString;
|
|
1147
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
1148
|
+
}, z.core.$strip>;
|
|
1149
|
+
type UpdateCustomerBusinessProfileResponse = z.output<typeof updateCustomerBusinessProfileResponseSchema>;
|
|
1150
|
+
declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<typeof updateCustomerBusinessProfileInputSchema, typeof updateCustomerBusinessProfileResponseSchema> {
|
|
1151
|
+
readonly method = "PATCH";
|
|
1152
|
+
readonly contentType = "application/merge-patch+json";
|
|
1153
|
+
readonly accept = "application/json";
|
|
1154
|
+
readonly inputSchema: z.ZodObject<{
|
|
1155
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
1156
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1157
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1158
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1159
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1160
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1162
|
+
}, z.core.$strip>>;
|
|
1163
|
+
billingData: z.ZodOptional<z.ZodObject<{
|
|
1164
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1165
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1166
|
+
}, z.core.$strip>>;
|
|
1167
|
+
businessName: z.ZodOptional<z.ZodString>;
|
|
1168
|
+
vat: z.ZodOptional<z.ZodString>;
|
|
1169
|
+
taxCode: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
}, z.core.$strip>;
|
|
1171
|
+
readonly outputSchema: z.ZodObject<{
|
|
1172
|
+
id: z.ZodString;
|
|
1173
|
+
businessName: z.ZodString;
|
|
1174
|
+
vat: z.ZodString;
|
|
1175
|
+
taxCode: z.ZodString;
|
|
1176
|
+
billingAddress: z.ZodObject<{
|
|
1177
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1178
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1179
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1180
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1181
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1182
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1183
|
+
}, z.core.$strip>;
|
|
1184
|
+
billingData: z.ZodObject<{
|
|
1185
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1186
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1187
|
+
}, z.core.$strip>;
|
|
1188
|
+
createdAt: z.ZodString;
|
|
1189
|
+
updatedAt: z.ZodString;
|
|
1190
|
+
customer: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
1191
|
+
}, z.core.$strip>;
|
|
1192
|
+
readonly querySchema: undefined;
|
|
1193
|
+
readonly headersSchema: undefined;
|
|
1194
|
+
private readonly customerId;
|
|
1195
|
+
constructor(customerId: string, input: UpdateCustomerBusinessProfileInput);
|
|
1196
|
+
getPath(): string;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
declare const createCustomerInputSchema: z.ZodObject<{
|
|
1200
|
+
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>>;
|
|
1201
|
+
firstName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1202
|
+
lastName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1203
|
+
email: z.ZodNonOptional<z.ZodNullable<z.ZodEmail>>;
|
|
1204
|
+
phoneNumber: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1205
|
+
}, z.core.$strip>;
|
|
1206
|
+
type CreateCustomerInput = z.input<typeof createCustomerInputSchema>;
|
|
1207
|
+
declare const createCustomerResponseSchema: z.ZodObject<{
|
|
1208
|
+
id: z.ZodString;
|
|
1209
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1210
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1211
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1212
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1213
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1214
|
+
hasAddresses: z.ZodBoolean;
|
|
1215
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1216
|
+
totalSpent: z.ZodString;
|
|
1217
|
+
createdAt: z.ZodString;
|
|
1218
|
+
updatedAt: z.ZodString;
|
|
1219
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
|
|
1220
|
+
owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
1221
|
+
addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
|
|
1222
|
+
businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
|
|
1223
|
+
}, z.core.$strip>;
|
|
1224
|
+
type CreateCustomerResponse = z.output<typeof createCustomerResponseSchema>;
|
|
1225
|
+
declare class CreateCustomer extends AbstractApiRequest<typeof createCustomerInputSchema, typeof createCustomerResponseSchema> {
|
|
1226
|
+
readonly method = "POST";
|
|
1227
|
+
readonly contentType = "application/json";
|
|
1228
|
+
readonly accept = "application/json";
|
|
1229
|
+
readonly inputSchema: z.ZodObject<{
|
|
1230
|
+
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>>;
|
|
1231
|
+
firstName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1232
|
+
lastName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1233
|
+
email: z.ZodNonOptional<z.ZodNullable<z.ZodEmail>>;
|
|
1234
|
+
phoneNumber: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1235
|
+
}, z.core.$strip>;
|
|
1236
|
+
readonly outputSchema: z.ZodObject<{
|
|
1237
|
+
id: z.ZodString;
|
|
1238
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1239
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1240
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1241
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1242
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1243
|
+
hasAddresses: z.ZodBoolean;
|
|
1244
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1245
|
+
totalSpent: z.ZodString;
|
|
1246
|
+
createdAt: z.ZodString;
|
|
1247
|
+
updatedAt: z.ZodString;
|
|
1248
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
|
|
1249
|
+
owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
1250
|
+
addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
|
|
1251
|
+
businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
|
|
1252
|
+
}, z.core.$strip>;
|
|
1253
|
+
readonly querySchema: undefined;
|
|
1254
|
+
readonly headersSchema: undefined;
|
|
1255
|
+
constructor(input: CreateCustomerInput);
|
|
1256
|
+
getPath(): string;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
declare const createCustomerFromCurrentUserInputSchema: z.ZodObject<{
|
|
1260
|
+
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>>;
|
|
1261
|
+
firstName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1262
|
+
lastName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1263
|
+
email: z.ZodNonOptional<z.ZodNullable<z.ZodEmail>>;
|
|
1264
|
+
phoneNumber: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1265
|
+
}, z.core.$strip>;
|
|
1266
|
+
type CreateCustomerFromCurrentUserInput = z.input<typeof createCustomerFromCurrentUserInputSchema>;
|
|
1267
|
+
declare const createCustomerFromCurrentUserResponseSchema: z.ZodObject<{
|
|
1268
|
+
id: z.ZodString;
|
|
1269
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1270
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1271
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1272
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1273
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1274
|
+
hasAddresses: z.ZodBoolean;
|
|
1275
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1276
|
+
totalSpent: z.ZodString;
|
|
1277
|
+
createdAt: z.ZodString;
|
|
1278
|
+
updatedAt: z.ZodString;
|
|
1279
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
|
|
1280
|
+
owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
1281
|
+
addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
|
|
1282
|
+
businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
|
|
1283
|
+
}, z.core.$strip>;
|
|
1284
|
+
type CreateCustomerFromCurrentUserResponse = z.output<typeof createCustomerFromCurrentUserResponseSchema>;
|
|
1285
|
+
declare class CreateCustomerFromCurrentUser extends AbstractApiRequest<typeof createCustomerFromCurrentUserInputSchema, typeof createCustomerFromCurrentUserResponseSchema> {
|
|
1286
|
+
readonly method = "POST";
|
|
1287
|
+
readonly contentType = "application/json";
|
|
1288
|
+
readonly accept = "application/json";
|
|
1289
|
+
readonly inputSchema: z.ZodObject<{
|
|
1290
|
+
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>>;
|
|
1291
|
+
firstName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1292
|
+
lastName: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1293
|
+
email: z.ZodNonOptional<z.ZodNullable<z.ZodEmail>>;
|
|
1294
|
+
phoneNumber: z.ZodNonOptional<z.ZodNullable<z.ZodString>>;
|
|
1295
|
+
}, z.core.$strip>;
|
|
1296
|
+
readonly outputSchema: z.ZodObject<{
|
|
1297
|
+
id: z.ZodString;
|
|
1298
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1299
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1300
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1301
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1302
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1303
|
+
hasAddresses: z.ZodBoolean;
|
|
1304
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1305
|
+
totalSpent: z.ZodString;
|
|
1306
|
+
createdAt: z.ZodString;
|
|
1307
|
+
updatedAt: z.ZodString;
|
|
1308
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
|
|
1309
|
+
owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
1310
|
+
addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
|
|
1311
|
+
businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
|
|
1312
|
+
}, z.core.$strip>;
|
|
1313
|
+
readonly querySchema: undefined;
|
|
1314
|
+
readonly headersSchema: undefined;
|
|
1315
|
+
constructor(input: CreateCustomerFromCurrentUserInput);
|
|
1316
|
+
getPath(): string;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
declare const deleteCustomerInputSchema: z.ZodUndefined;
|
|
1320
|
+
declare const deleteCustomerResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
1321
|
+
declare class DeleteCustomer extends AbstractApiRequest<typeof deleteCustomerInputSchema, typeof deleteCustomerResponseSchema> {
|
|
1322
|
+
readonly method = "DELETE";
|
|
1323
|
+
readonly contentType = "application/json";
|
|
1324
|
+
readonly accept = "application/json";
|
|
1325
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1326
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
1327
|
+
readonly querySchema: undefined;
|
|
1328
|
+
readonly headersSchema: undefined;
|
|
1329
|
+
private readonly customerId;
|
|
1330
|
+
constructor(customerId: string);
|
|
1331
|
+
getPath(): string;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
declare const getCustomerDetailsInputSchema: z.ZodUndefined;
|
|
1335
|
+
type GetCustomerDetailsInput = z.infer<typeof getCustomerDetailsInputSchema>;
|
|
1336
|
+
declare const getCustomerDetailsResponseSchema: z.ZodObject<{
|
|
1337
|
+
id: z.ZodString;
|
|
1338
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1339
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1340
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1341
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1342
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1343
|
+
hasAddresses: z.ZodBoolean;
|
|
1344
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1345
|
+
totalSpent: z.ZodString;
|
|
1346
|
+
createdAt: z.ZodString;
|
|
1347
|
+
updatedAt: z.ZodString;
|
|
1348
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
|
|
1349
|
+
owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
1350
|
+
addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
|
|
1351
|
+
businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
|
|
1352
|
+
}, z.core.$strip>;
|
|
1353
|
+
type GetCustomerDetailsResponse = z.infer<typeof getCustomerDetailsResponseSchema>;
|
|
1354
|
+
declare class GetCustomerDetails extends AbstractApiRequest<typeof getCustomerDetailsInputSchema, typeof getCustomerDetailsResponseSchema> {
|
|
1355
|
+
readonly method = "GET";
|
|
1356
|
+
readonly contentType = "application/json";
|
|
1357
|
+
readonly accept = "application/json";
|
|
1358
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1359
|
+
readonly outputSchema: z.ZodObject<{
|
|
1360
|
+
id: z.ZodString;
|
|
1361
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1362
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1363
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1364
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1365
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1366
|
+
hasAddresses: z.ZodBoolean;
|
|
1367
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1368
|
+
totalSpent: z.ZodString;
|
|
1369
|
+
createdAt: z.ZodString;
|
|
1370
|
+
updatedAt: z.ZodString;
|
|
1371
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
|
|
1372
|
+
owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
1373
|
+
addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
|
|
1374
|
+
businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
|
|
1375
|
+
}, z.core.$strip>;
|
|
1376
|
+
readonly querySchema: undefined;
|
|
1377
|
+
readonly headersSchema: undefined;
|
|
1378
|
+
private readonly customerId;
|
|
1379
|
+
constructor(customerId: string);
|
|
1380
|
+
getPath(): string;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
declare const getCustomersQuerySchema: z.ZodObject<{
|
|
1384
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
1386
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1387
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1388
|
+
hasBusinessProfiles: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1389
|
+
hasAddresses: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1390
|
+
'ordersPlaced[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1391
|
+
'ordersPlaced[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1392
|
+
'ordersPlaced[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1393
|
+
'ordersPlaced[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1394
|
+
'ordersPlaced[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1395
|
+
'totalSpent[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1396
|
+
'totalSpent[gt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1397
|
+
'totalSpent[gte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1398
|
+
'totalSpent[lt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1399
|
+
'totalSpent[lte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1400
|
+
'order[firstName]': z.ZodOptional<z.ZodEnum<{
|
|
1401
|
+
asc: "asc";
|
|
1402
|
+
desc: "desc";
|
|
1403
|
+
}>>;
|
|
1404
|
+
'order[lastName]': z.ZodOptional<z.ZodEnum<{
|
|
1405
|
+
asc: "asc";
|
|
1406
|
+
desc: "desc";
|
|
1407
|
+
}>>;
|
|
1408
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1409
|
+
asc: "asc";
|
|
1410
|
+
desc: "desc";
|
|
1411
|
+
}>>;
|
|
1412
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1413
|
+
asc: "asc";
|
|
1414
|
+
desc: "desc";
|
|
1415
|
+
}>>;
|
|
1416
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1417
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1418
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1419
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1420
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1421
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1422
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1423
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1424
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1425
|
+
}, z.core.$strip>;
|
|
1426
|
+
type GetCustomersQueryParams = z.infer<typeof getCustomersQuerySchema>;
|
|
1427
|
+
declare const getCustomersInputSchema: z.ZodUndefined;
|
|
1428
|
+
type GetCustomersInput = z.input<typeof getCustomersInputSchema>;
|
|
1429
|
+
declare const getCustomersResponseSchema: z.ZodObject<{
|
|
1430
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1431
|
+
id: z.ZodString;
|
|
1432
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1433
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1434
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1435
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1436
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1437
|
+
hasAddresses: z.ZodBoolean;
|
|
1438
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1439
|
+
totalSpent: z.ZodString;
|
|
1440
|
+
createdAt: z.ZodString;
|
|
1441
|
+
updatedAt: z.ZodString;
|
|
1442
|
+
}, z.core.$strip>>;
|
|
1443
|
+
pagination: z.ZodObject<{
|
|
1444
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1445
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1446
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1447
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1448
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1449
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1450
|
+
}, z.core.$strip>;
|
|
1451
|
+
}, z.core.$strip>;
|
|
1452
|
+
type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
|
|
1453
|
+
declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSchema, typeof getCustomersResponseSchema, GetCustomersQueryParams> {
|
|
1454
|
+
readonly method: "GET";
|
|
1455
|
+
readonly contentType: "application/json";
|
|
1456
|
+
readonly accept: "application/json";
|
|
1457
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1458
|
+
readonly outputSchema: z.ZodObject<{
|
|
1459
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1460
|
+
id: z.ZodString;
|
|
1461
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1462
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1463
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1464
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1465
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1466
|
+
hasAddresses: z.ZodBoolean;
|
|
1467
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1468
|
+
totalSpent: z.ZodString;
|
|
1469
|
+
createdAt: z.ZodString;
|
|
1470
|
+
updatedAt: z.ZodString;
|
|
1471
|
+
}, z.core.$strip>>;
|
|
1472
|
+
pagination: z.ZodObject<{
|
|
1473
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1474
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1475
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1476
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1477
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1478
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1479
|
+
}, z.core.$strip>;
|
|
1480
|
+
}, z.core.$strip>;
|
|
1481
|
+
readonly querySchema: z.ZodObject<{
|
|
1482
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
1483
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
1484
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1485
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1486
|
+
hasBusinessProfiles: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1487
|
+
hasAddresses: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1488
|
+
'ordersPlaced[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1489
|
+
'ordersPlaced[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1490
|
+
'ordersPlaced[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1491
|
+
'ordersPlaced[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1492
|
+
'ordersPlaced[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1493
|
+
'totalSpent[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1494
|
+
'totalSpent[gt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1495
|
+
'totalSpent[gte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1496
|
+
'totalSpent[lt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1497
|
+
'totalSpent[lte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1498
|
+
'order[firstName]': z.ZodOptional<z.ZodEnum<{
|
|
1499
|
+
asc: "asc";
|
|
1500
|
+
desc: "desc";
|
|
1501
|
+
}>>;
|
|
1502
|
+
'order[lastName]': z.ZodOptional<z.ZodEnum<{
|
|
1503
|
+
asc: "asc";
|
|
1504
|
+
desc: "desc";
|
|
1505
|
+
}>>;
|
|
1506
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1507
|
+
asc: "asc";
|
|
1508
|
+
desc: "desc";
|
|
1509
|
+
}>>;
|
|
1510
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1511
|
+
asc: "asc";
|
|
1512
|
+
desc: "desc";
|
|
1513
|
+
}>>;
|
|
1514
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1515
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1516
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1517
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1518
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1519
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1520
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1521
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1522
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1523
|
+
}, z.core.$strip>;
|
|
1524
|
+
readonly headersSchema: undefined;
|
|
1525
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1526
|
+
id: z.ZodString;
|
|
1527
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1528
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1529
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1530
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1531
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1532
|
+
hasAddresses: z.ZodBoolean;
|
|
1533
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1534
|
+
totalSpent: z.ZodString;
|
|
1535
|
+
createdAt: z.ZodString;
|
|
1536
|
+
updatedAt: z.ZodString;
|
|
1537
|
+
}, z.core.$strip>;
|
|
1538
|
+
readonly paginationDefaultEnabled = true;
|
|
1539
|
+
constructor(options?: {
|
|
1540
|
+
query?: GetCustomersQueryParams;
|
|
1541
|
+
});
|
|
1542
|
+
getPath(): string;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
declare const getCustomersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
1546
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
1547
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
1548
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1549
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1550
|
+
hasBusinessProfiles: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1551
|
+
hasAddresses: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1552
|
+
'ordersPlaced[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1553
|
+
'ordersPlaced[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1554
|
+
'ordersPlaced[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1555
|
+
'ordersPlaced[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1556
|
+
'ordersPlaced[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1557
|
+
'totalSpent[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1558
|
+
'totalSpent[gt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1559
|
+
'totalSpent[gte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1560
|
+
'totalSpent[lt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1561
|
+
'totalSpent[lte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1562
|
+
'order[firstName]': z.ZodOptional<z.ZodEnum<{
|
|
1563
|
+
asc: "asc";
|
|
1564
|
+
desc: "desc";
|
|
1565
|
+
}>>;
|
|
1566
|
+
'order[lastName]': z.ZodOptional<z.ZodEnum<{
|
|
1567
|
+
asc: "asc";
|
|
1568
|
+
desc: "desc";
|
|
1569
|
+
}>>;
|
|
1570
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1571
|
+
asc: "asc";
|
|
1572
|
+
desc: "desc";
|
|
1573
|
+
}>>;
|
|
1574
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1575
|
+
asc: "asc";
|
|
1576
|
+
desc: "desc";
|
|
1577
|
+
}>>;
|
|
1578
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1579
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1580
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1581
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1582
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1583
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1584
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1585
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1586
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1587
|
+
}, z.core.$strip>;
|
|
1588
|
+
type GetCustomersFromPointOfSaleQueryParams = z.infer<typeof getCustomersFromPointOfSaleQuerySchema>;
|
|
1589
|
+
declare const getCustomersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1590
|
+
type GetCustomersFromPointOfSaleInput = z.input<typeof getCustomersFromPointOfSaleInputSchema>;
|
|
1591
|
+
declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1592
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1593
|
+
id: z.ZodString;
|
|
1594
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1595
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1596
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1597
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1598
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1599
|
+
hasAddresses: z.ZodBoolean;
|
|
1600
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1601
|
+
totalSpent: z.ZodString;
|
|
1602
|
+
createdAt: z.ZodString;
|
|
1603
|
+
updatedAt: z.ZodString;
|
|
1604
|
+
}, z.core.$strip>>;
|
|
1605
|
+
pagination: z.ZodObject<{
|
|
1606
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1607
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1608
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1609
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1610
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1611
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1612
|
+
}, z.core.$strip>;
|
|
1613
|
+
}, z.core.$strip>;
|
|
1614
|
+
type GetCustomersFromPointOfSaleResponse = z.infer<typeof getCustomersFromPointOfSaleResponseSchema>;
|
|
1615
|
+
declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getCustomersFromPointOfSaleInputSchema, typeof getCustomersFromPointOfSaleResponseSchema, GetCustomersFromPointOfSaleQueryParams> {
|
|
1616
|
+
readonly method: "GET";
|
|
1617
|
+
readonly contentType: "application/json";
|
|
1618
|
+
readonly accept: "application/json";
|
|
1619
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1620
|
+
readonly outputSchema: z.ZodObject<{
|
|
1621
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1622
|
+
id: z.ZodString;
|
|
1623
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1624
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1625
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1626
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1627
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1628
|
+
hasAddresses: z.ZodBoolean;
|
|
1629
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1630
|
+
totalSpent: z.ZodString;
|
|
1631
|
+
createdAt: z.ZodString;
|
|
1632
|
+
updatedAt: z.ZodString;
|
|
1633
|
+
}, z.core.$strip>>;
|
|
1634
|
+
pagination: z.ZodObject<{
|
|
1635
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1636
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1637
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1638
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1639
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1640
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1641
|
+
}, z.core.$strip>;
|
|
1642
|
+
}, z.core.$strip>;
|
|
1643
|
+
readonly querySchema: z.ZodObject<{
|
|
1644
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
1645
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
1646
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1647
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
hasBusinessProfiles: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1649
|
+
hasAddresses: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1650
|
+
'ordersPlaced[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1651
|
+
'ordersPlaced[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1652
|
+
'ordersPlaced[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1653
|
+
'ordersPlaced[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1654
|
+
'ordersPlaced[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1655
|
+
'totalSpent[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1656
|
+
'totalSpent[gt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1657
|
+
'totalSpent[gte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1658
|
+
'totalSpent[lt]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1659
|
+
'totalSpent[lte]': z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1660
|
+
'order[firstName]': z.ZodOptional<z.ZodEnum<{
|
|
1661
|
+
asc: "asc";
|
|
1662
|
+
desc: "desc";
|
|
1663
|
+
}>>;
|
|
1664
|
+
'order[lastName]': z.ZodOptional<z.ZodEnum<{
|
|
1665
|
+
asc: "asc";
|
|
1666
|
+
desc: "desc";
|
|
1667
|
+
}>>;
|
|
1668
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1669
|
+
asc: "asc";
|
|
1670
|
+
desc: "desc";
|
|
1671
|
+
}>>;
|
|
1672
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1673
|
+
asc: "asc";
|
|
1674
|
+
desc: "desc";
|
|
1675
|
+
}>>;
|
|
1676
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1677
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1678
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1679
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1680
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1681
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1682
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1683
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1684
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1685
|
+
}, z.core.$strip>;
|
|
1686
|
+
readonly headersSchema: undefined;
|
|
1687
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1688
|
+
id: z.ZodString;
|
|
1689
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1690
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1691
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1692
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1693
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1694
|
+
hasAddresses: z.ZodBoolean;
|
|
1695
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1696
|
+
totalSpent: z.ZodString;
|
|
1697
|
+
createdAt: z.ZodString;
|
|
1698
|
+
updatedAt: z.ZodString;
|
|
1699
|
+
}, z.core.$strip>;
|
|
1700
|
+
readonly paginationDefaultEnabled = true;
|
|
1701
|
+
private readonly pointOfSaleId;
|
|
1702
|
+
constructor(pointOfSaleId: string, options?: {
|
|
1703
|
+
query?: GetCustomersFromPointOfSaleQueryParams;
|
|
1704
|
+
});
|
|
1705
|
+
getPath(): string;
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
declare const updateCustomerInputSchema: z.ZodObject<{
|
|
1709
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
1710
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1711
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1712
|
+
phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1713
|
+
}, z.core.$strip>;
|
|
1714
|
+
type UpdateCustomerInput = z.input<typeof updateCustomerInputSchema>;
|
|
1715
|
+
declare const updateCustomerResponseSchema: z.ZodObject<{
|
|
1716
|
+
id: z.ZodString;
|
|
1717
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1718
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1719
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1720
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1721
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1722
|
+
hasAddresses: z.ZodBoolean;
|
|
1723
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1724
|
+
totalSpent: z.ZodString;
|
|
1725
|
+
createdAt: z.ZodString;
|
|
1726
|
+
updatedAt: z.ZodString;
|
|
1727
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
|
|
1728
|
+
owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
1729
|
+
addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
|
|
1730
|
+
businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
|
|
1731
|
+
}, z.core.$strip>;
|
|
1732
|
+
type UpdateCustomerResponse = z.infer<typeof updateCustomerResponseSchema>;
|
|
1733
|
+
declare class UpdateCustomer extends AbstractApiRequest<typeof updateCustomerInputSchema, typeof updateCustomerResponseSchema> {
|
|
1734
|
+
readonly method = "PATCH";
|
|
1735
|
+
readonly contentType = "application/merge-patch+json";
|
|
1736
|
+
readonly accept = "application/json";
|
|
1737
|
+
readonly inputSchema: z.ZodObject<{
|
|
1738
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
1739
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1740
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1741
|
+
phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1742
|
+
}, z.core.$strip>;
|
|
1743
|
+
readonly outputSchema: z.ZodObject<{
|
|
1744
|
+
id: z.ZodString;
|
|
1745
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1746
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1747
|
+
email: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodString>>;
|
|
1748
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1749
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1750
|
+
hasAddresses: z.ZodBoolean;
|
|
1751
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1752
|
+
totalSpent: z.ZodString;
|
|
1753
|
+
createdAt: z.ZodString;
|
|
1754
|
+
updatedAt: z.ZodString;
|
|
1755
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id"> | null, unknown>>;
|
|
1756
|
+
owner: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
1757
|
+
addresses: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>>;
|
|
1758
|
+
businessProfiles: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>>;
|
|
1759
|
+
}, z.core.$strip>;
|
|
1760
|
+
readonly querySchema: undefined;
|
|
1761
|
+
readonly headersSchema: undefined;
|
|
1762
|
+
private readonly customerId;
|
|
1763
|
+
constructor(customerId: string, input: UpdateCustomerInput);
|
|
1764
|
+
getPath(): string;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
declare const customerIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id">, unknown>>;
|
|
1768
|
+
type CustomerIri = z.infer<typeof customerIriSchema>;
|
|
1769
|
+
declare const customerNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/:id"> | null, unknown>>;
|
|
1770
|
+
type CustomerNullableIri = z.infer<typeof customerNullableIriSchema>;
|
|
1771
|
+
declare const customerAddressIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id">, unknown>>;
|
|
1772
|
+
type CustomerAddressIri = z.infer<typeof customerAddressIriSchema>;
|
|
1773
|
+
declare const customerAddressNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/address/:id"> | null, unknown>>;
|
|
1774
|
+
type CustomerAddressNullableIri = z.infer<typeof customerAddressNullableIriSchema>;
|
|
1775
|
+
declare const customerBusinessProfileIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id">, unknown>>;
|
|
1776
|
+
type CustomerBusinessProfileIri = z.infer<typeof customerBusinessProfileIriSchema>;
|
|
1777
|
+
declare const customerBusinessProfileNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/customers/business_profiles/:id"> | null, unknown>>;
|
|
1778
|
+
type CustomerBusinessProfileNullableIri = z.infer<typeof customerBusinessProfileNullableIriSchema>;
|
|
1779
|
+
|
|
1780
|
+
export { CreateCustomer, CreateCustomerAddress, type CreateCustomerAddressInput, type CreateCustomerAddressResponse, CreateCustomerBusinessProfile, type CreateCustomerBusinessProfileInput, type CreateCustomerBusinessProfileResponse, CreateCustomerFromCurrentUser, type CreateCustomerFromCurrentUserInput, type CreateCustomerFromCurrentUserResponse, 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, GetCustomersFromPointOfSale, type GetCustomersFromPointOfSaleInput, type GetCustomersFromPointOfSaleQueryParams, type GetCustomersFromPointOfSaleResponse, type GetCustomersInput, type GetCustomersQueryParams, type GetCustomersResponse, UpdateCustomer, UpdateCustomerAddress, type UpdateCustomerAddressInput, type UpdateCustomerAddressResponse, UpdateCustomerBusinessProfile, type UpdateCustomerBusinessProfileInput, type UpdateCustomerBusinessProfileResponse, type UpdateCustomerInput, type UpdateCustomerResponse, type WritableCreateCustomer, type WritableCreateCustomerAddress, type WritableCustomer, type WritableCustomerAddress, createCustomerAddressInputSchema, createCustomerAddressResponseSchema, createCustomerBusinessProfileInputSchema, createCustomerBusinessProfileResponseSchema, createCustomerFromCurrentUserInputSchema, createCustomerFromCurrentUserResponseSchema, 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, getCustomersFromPointOfSaleInputSchema, getCustomersFromPointOfSaleQuerySchema, getCustomersFromPointOfSaleResponseSchema, getCustomersInputSchema, getCustomersQuerySchema, getCustomersResponseSchema, updateCustomerAddressInputSchema, updateCustomerAddressResponseSchema, updateCustomerBusinessProfileInputSchema, updateCustomerBusinessProfileResponseSchema, updateCustomerInputSchema, updateCustomerResponseSchema, writableCreateCustomerAddressSchema, writableCreateCustomerBusinessProfileSchema, writableCreateCustomerSchema, writableCustomerAddressSchema, writableCustomerBusinessProfileSchema, writableCustomerSchema };
|