@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.cjs
ADDED
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
CreateCustomer: () => CreateCustomer,
|
|
24
|
+
CreateCustomerAddress: () => CreateCustomerAddress,
|
|
25
|
+
CreateCustomerBusinessProfile: () => CreateCustomerBusinessProfile,
|
|
26
|
+
CreateCustomerFromCurrentUser: () => CreateCustomerFromCurrentUser,
|
|
27
|
+
DeleteCustomer: () => DeleteCustomer,
|
|
28
|
+
DeleteCustomerAddress: () => DeleteCustomerAddress,
|
|
29
|
+
DeleteCustomerBusinessProfile: () => DeleteCustomerBusinessProfile,
|
|
30
|
+
GetCustomerAddressDetails: () => GetCustomerAddressDetails,
|
|
31
|
+
GetCustomerAddresses: () => GetCustomerAddresses,
|
|
32
|
+
GetCustomerAddressesForCustomer: () => GetCustomerAddressesForCustomer,
|
|
33
|
+
GetCustomerBusinessProfileDetails: () => GetCustomerBusinessProfileDetails,
|
|
34
|
+
GetCustomerBusinessProfiles: () => GetCustomerBusinessProfiles,
|
|
35
|
+
GetCustomerBusinessProfilesForCustomer: () => GetCustomerBusinessProfilesForCustomer,
|
|
36
|
+
GetCustomerDetails: () => GetCustomerDetails,
|
|
37
|
+
GetCustomers: () => GetCustomers,
|
|
38
|
+
GetCustomersFromPointOfSale: () => GetCustomersFromPointOfSale,
|
|
39
|
+
UpdateCustomer: () => UpdateCustomer,
|
|
40
|
+
UpdateCustomerAddress: () => UpdateCustomerAddress,
|
|
41
|
+
UpdateCustomerBusinessProfile: () => UpdateCustomerBusinessProfile,
|
|
42
|
+
createCustomerAddressInputSchema: () => createCustomerAddressInputSchema,
|
|
43
|
+
createCustomerAddressResponseSchema: () => createCustomerAddressResponseSchema,
|
|
44
|
+
createCustomerBusinessProfileInputSchema: () => createCustomerBusinessProfileInputSchema,
|
|
45
|
+
createCustomerBusinessProfileResponseSchema: () => createCustomerBusinessProfileResponseSchema,
|
|
46
|
+
createCustomerFromCurrentUserInputSchema: () => createCustomerFromCurrentUserInputSchema,
|
|
47
|
+
createCustomerFromCurrentUserResponseSchema: () => createCustomerFromCurrentUserResponseSchema,
|
|
48
|
+
createCustomerInputSchema: () => createCustomerInputSchema,
|
|
49
|
+
createCustomerResponseSchema: () => createCustomerResponseSchema,
|
|
50
|
+
customerAddressDetailsSchema: () => customerAddressDetailsSchema,
|
|
51
|
+
customerAddressIriSchema: () => customerAddressIriSchema,
|
|
52
|
+
customerAddressNullableIriSchema: () => customerAddressNullableIriSchema,
|
|
53
|
+
customerAddressSchema: () => customerAddressSchema,
|
|
54
|
+
customerBusinessProfileDetailsSchema: () => customerBusinessProfileDetailsSchema,
|
|
55
|
+
customerBusinessProfileIriSchema: () => customerBusinessProfileIriSchema,
|
|
56
|
+
customerBusinessProfileNullableIriSchema: () => customerBusinessProfileNullableIriSchema,
|
|
57
|
+
customerBusinessProfileSchema: () => customerBusinessProfileSchema,
|
|
58
|
+
customerDetailsSchema: () => customerDetailsSchema,
|
|
59
|
+
customerIriSchema: () => customerIriSchema,
|
|
60
|
+
customerNullableIriSchema: () => customerNullableIriSchema,
|
|
61
|
+
customerSchema: () => customerSchema,
|
|
62
|
+
customersQuerySchema: () => customersQuerySchema,
|
|
63
|
+
deleteCustomerAddressInputSchema: () => deleteCustomerAddressInputSchema,
|
|
64
|
+
deleteCustomerAddressResponseSchema: () => deleteCustomerAddressResponseSchema,
|
|
65
|
+
deleteCustomerBusinessProfileInputSchema: () => deleteCustomerBusinessProfileInputSchema,
|
|
66
|
+
deleteCustomerBusinessProfileResponseSchema: () => deleteCustomerBusinessProfileResponseSchema,
|
|
67
|
+
deleteCustomerInputSchema: () => deleteCustomerInputSchema,
|
|
68
|
+
deleteCustomerResponseSchema: () => deleteCustomerResponseSchema,
|
|
69
|
+
getCustomerAddressDetailsInputSchema: () => getCustomerAddressDetailsInputSchema,
|
|
70
|
+
getCustomerAddressDetailsResponseSchema: () => getCustomerAddressDetailsResponseSchema,
|
|
71
|
+
getCustomerAddressesForCustomerInputSchema: () => getCustomerAddressesForCustomerInputSchema,
|
|
72
|
+
getCustomerAddressesForCustomerQuerySchema: () => getCustomerAddressesForCustomerQuerySchema,
|
|
73
|
+
getCustomerAddressesForCustomerResponseSchema: () => getCustomerAddressesForCustomerResponseSchema,
|
|
74
|
+
getCustomerAddressesInputSchema: () => getCustomerAddressesInputSchema,
|
|
75
|
+
getCustomerAddressesQuerySchema: () => getCustomerAddressesQuerySchema,
|
|
76
|
+
getCustomerAddressesResponseSchema: () => getCustomerAddressesResponseSchema,
|
|
77
|
+
getCustomerBusinessProfileDetailsInputSchema: () => getCustomerBusinessProfileDetailsInputSchema,
|
|
78
|
+
getCustomerBusinessProfileDetailsResponseSchema: () => getCustomerBusinessProfileDetailsResponseSchema,
|
|
79
|
+
getCustomerBusinessProfilesForCustomerInputSchema: () => getCustomerBusinessProfilesForCustomerInputSchema,
|
|
80
|
+
getCustomerBusinessProfilesForCustomerQuerySchema: () => getCustomerBusinessProfilesForCustomerQuerySchema,
|
|
81
|
+
getCustomerBusinessProfilesForCustomerResponseSchema: () => getCustomerBusinessProfilesForCustomerResponseSchema,
|
|
82
|
+
getCustomerBusinessProfilesInputSchema: () => getCustomerBusinessProfilesInputSchema,
|
|
83
|
+
getCustomerBusinessProfilesQuerySchema: () => getCustomerBusinessProfilesQuerySchema,
|
|
84
|
+
getCustomerBusinessProfilesResponseSchema: () => getCustomerBusinessProfilesResponseSchema,
|
|
85
|
+
getCustomerDetailsInputSchema: () => getCustomerDetailsInputSchema,
|
|
86
|
+
getCustomerDetailsResponseSchema: () => getCustomerDetailsResponseSchema,
|
|
87
|
+
getCustomersFromPointOfSaleInputSchema: () => getCustomersFromPointOfSaleInputSchema,
|
|
88
|
+
getCustomersFromPointOfSaleQuerySchema: () => getCustomersFromPointOfSaleQuerySchema,
|
|
89
|
+
getCustomersFromPointOfSaleResponseSchema: () => getCustomersFromPointOfSaleResponseSchema,
|
|
90
|
+
getCustomersInputSchema: () => getCustomersInputSchema,
|
|
91
|
+
getCustomersQuerySchema: () => getCustomersQuerySchema,
|
|
92
|
+
getCustomersResponseSchema: () => getCustomersResponseSchema,
|
|
93
|
+
updateCustomerAddressInputSchema: () => updateCustomerAddressInputSchema,
|
|
94
|
+
updateCustomerAddressResponseSchema: () => updateCustomerAddressResponseSchema,
|
|
95
|
+
updateCustomerBusinessProfileInputSchema: () => updateCustomerBusinessProfileInputSchema,
|
|
96
|
+
updateCustomerBusinessProfileResponseSchema: () => updateCustomerBusinessProfileResponseSchema,
|
|
97
|
+
updateCustomerInputSchema: () => updateCustomerInputSchema,
|
|
98
|
+
updateCustomerResponseSchema: () => updateCustomerResponseSchema,
|
|
99
|
+
writableCreateCustomerAddressSchema: () => writableCreateCustomerAddressSchema,
|
|
100
|
+
writableCreateCustomerBusinessProfileSchema: () => writableCreateCustomerBusinessProfileSchema,
|
|
101
|
+
writableCreateCustomerSchema: () => writableCreateCustomerSchema,
|
|
102
|
+
writableCustomerAddressSchema: () => writableCustomerAddressSchema,
|
|
103
|
+
writableCustomerBusinessProfileSchema: () => writableCustomerBusinessProfileSchema,
|
|
104
|
+
writableCustomerSchema: () => writableCustomerSchema
|
|
105
|
+
});
|
|
106
|
+
module.exports = __toCommonJS(index_exports);
|
|
107
|
+
|
|
108
|
+
// src/models.ts
|
|
109
|
+
var import_sdk_js_global_types2 = require("@deliverart/sdk-js-global-types");
|
|
110
|
+
var import_sdk_js_point_of_sale = require("@deliverart/sdk-js-point-of-sale");
|
|
111
|
+
var import_sdk_js_user = require("@deliverart/sdk-js-user");
|
|
112
|
+
var import_zod = require("zod");
|
|
113
|
+
|
|
114
|
+
// src/types.ts
|
|
115
|
+
var import_sdk_js_global_types = require("@deliverart/sdk-js-global-types");
|
|
116
|
+
var customerIriSchema = (0, import_sdk_js_global_types.iriSchema)("/customers/:id");
|
|
117
|
+
var customerNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/customers/:id");
|
|
118
|
+
var customerAddressIriSchema = (0, import_sdk_js_global_types.iriSchema)("/customers/address/:id");
|
|
119
|
+
var customerAddressNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/customers/address/:id");
|
|
120
|
+
var customerBusinessProfileIriSchema = (0, import_sdk_js_global_types.iriSchema)("/customers/business_profiles/:id");
|
|
121
|
+
var customerBusinessProfileNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
|
|
122
|
+
"/customers/business_profiles/:id"
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
// src/models.ts
|
|
126
|
+
var customerReadEmailSchema = import_zod.z.preprocess(
|
|
127
|
+
(value) => typeof value === "string" && value.trim() === "" ? null : value,
|
|
128
|
+
import_zod.z.string().nullable()
|
|
129
|
+
);
|
|
130
|
+
var customerWriteEmailSchema = import_zod.z.email().nullable();
|
|
131
|
+
var customerSchema = import_zod.z.object({
|
|
132
|
+
id: import_zod.z.string(),
|
|
133
|
+
firstName: import_zod.z.string().nullable(),
|
|
134
|
+
lastName: import_zod.z.string().nullable(),
|
|
135
|
+
email: customerReadEmailSchema,
|
|
136
|
+
phoneNumber: import_zod.z.string().nullable(),
|
|
137
|
+
hasBusinessProfiles: import_zod.z.boolean(),
|
|
138
|
+
hasAddresses: import_zod.z.boolean(),
|
|
139
|
+
ordersPlaced: import_zod.z.coerce.number(),
|
|
140
|
+
totalSpent: import_zod.z.string(),
|
|
141
|
+
createdAt: import_sdk_js_global_types2.datetimeSchema,
|
|
142
|
+
updatedAt: import_sdk_js_global_types2.datetimeSchema
|
|
143
|
+
});
|
|
144
|
+
var customerDetailsSchema = customerSchema.extend({
|
|
145
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleNullableIriSchema,
|
|
146
|
+
owner: import_sdk_js_user.userNullableIriSchema,
|
|
147
|
+
addresses: import_zod.z.array(customerAddressIriSchema),
|
|
148
|
+
businessProfiles: import_zod.z.array(customerBusinessProfileIriSchema)
|
|
149
|
+
});
|
|
150
|
+
var writableCreateCustomerSchema = import_zod.z.object({
|
|
151
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleNullableIriSchema,
|
|
152
|
+
firstName: import_zod.z.string().nullable(),
|
|
153
|
+
lastName: import_zod.z.string().nullable(),
|
|
154
|
+
email: customerWriteEmailSchema,
|
|
155
|
+
phoneNumber: import_zod.z.string().nullable()
|
|
156
|
+
});
|
|
157
|
+
var writableCustomerSchema = writableCreateCustomerSchema.omit({
|
|
158
|
+
pointOfSale: true
|
|
159
|
+
});
|
|
160
|
+
var customerAddressSchema = import_zod.z.object({
|
|
161
|
+
id: import_zod.z.string(),
|
|
162
|
+
address: import_sdk_js_global_types2.addressSchema,
|
|
163
|
+
location: import_sdk_js_global_types2.locationSchema,
|
|
164
|
+
createdAt: import_sdk_js_global_types2.datetimeSchema,
|
|
165
|
+
updatedAt: import_sdk_js_global_types2.datetimeSchema
|
|
166
|
+
});
|
|
167
|
+
var customerAddressDetailsSchema = customerAddressSchema.extend({
|
|
168
|
+
customer: customerIriSchema
|
|
169
|
+
});
|
|
170
|
+
var writableCreateCustomerAddressSchema = customerAddressDetailsSchema.pick({
|
|
171
|
+
customer: true,
|
|
172
|
+
address: true
|
|
173
|
+
});
|
|
174
|
+
var writableCustomerAddressSchema = writableCreateCustomerAddressSchema.omit({
|
|
175
|
+
customer: true
|
|
176
|
+
});
|
|
177
|
+
var customerBusinessProfileSchema = import_zod.z.object({
|
|
178
|
+
id: import_zod.z.string(),
|
|
179
|
+
businessName: import_zod.z.string(),
|
|
180
|
+
vat: import_zod.z.string(),
|
|
181
|
+
taxCode: import_zod.z.string(),
|
|
182
|
+
billingAddress: import_sdk_js_global_types2.addressSchema,
|
|
183
|
+
billingData: import_sdk_js_global_types2.billingDataSchema,
|
|
184
|
+
createdAt: import_sdk_js_global_types2.datetimeSchema,
|
|
185
|
+
updatedAt: import_sdk_js_global_types2.datetimeSchema
|
|
186
|
+
});
|
|
187
|
+
var customerBusinessProfileDetailsSchema = customerBusinessProfileSchema.extend({
|
|
188
|
+
customer: customerIriSchema
|
|
189
|
+
});
|
|
190
|
+
var writableCreateCustomerBusinessProfileSchema = customerBusinessProfileDetailsSchema.pick({
|
|
191
|
+
customer: true,
|
|
192
|
+
businessName: true,
|
|
193
|
+
vat: true,
|
|
194
|
+
taxCode: true,
|
|
195
|
+
billingAddress: true,
|
|
196
|
+
billingData: true
|
|
197
|
+
});
|
|
198
|
+
var writableCustomerBusinessProfileSchema = writableCreateCustomerBusinessProfileSchema.omit({
|
|
199
|
+
customer: true
|
|
200
|
+
});
|
|
201
|
+
var customersQuerySchema = import_zod.z.object({
|
|
202
|
+
firstName: import_zod.z.string().optional(),
|
|
203
|
+
lastName: import_zod.z.string().optional(),
|
|
204
|
+
email: import_zod.z.string().optional(),
|
|
205
|
+
phoneNumber: import_zod.z.string().optional(),
|
|
206
|
+
hasBusinessProfiles: import_sdk_js_global_types2.booleanSchema.optional(),
|
|
207
|
+
hasAddresses: import_sdk_js_global_types2.booleanSchema.optional(),
|
|
208
|
+
"ordersPlaced[between]": import_zod.z.coerce.number().optional(),
|
|
209
|
+
"ordersPlaced[gt]": import_zod.z.coerce.number().optional(),
|
|
210
|
+
"ordersPlaced[gte]": import_zod.z.coerce.number().optional(),
|
|
211
|
+
"ordersPlaced[lt]": import_zod.z.coerce.number().optional(),
|
|
212
|
+
"ordersPlaced[lte]": import_zod.z.coerce.number().optional(),
|
|
213
|
+
"totalSpent[between]": import_zod.z.coerce.number().optional(),
|
|
214
|
+
"totalSpent[gt]": import_zod.z.coerce.string().optional(),
|
|
215
|
+
"totalSpent[gte]": import_zod.z.coerce.string().optional(),
|
|
216
|
+
"totalSpent[lt]": import_zod.z.coerce.string().optional(),
|
|
217
|
+
"totalSpent[lte]": import_zod.z.coerce.string().optional(),
|
|
218
|
+
"order[firstName]": import_sdk_js_global_types2.sortDirSchema.optional(),
|
|
219
|
+
"order[lastName]": import_sdk_js_global_types2.sortDirSchema.optional(),
|
|
220
|
+
"order[createdAt]": import_sdk_js_global_types2.sortDirSchema.optional(),
|
|
221
|
+
"order[updatedAt]": import_sdk_js_global_types2.sortDirSchema.optional(),
|
|
222
|
+
page: import_zod.z.coerce.number().optional()
|
|
223
|
+
}).extend(import_sdk_js_global_types2.timestampsFilterSchema.shape);
|
|
224
|
+
|
|
225
|
+
// src/requests/customer-addresses/CreateCustomerAddress.ts
|
|
226
|
+
var import_sdk_js_core = require("@deliverart/sdk-js-core");
|
|
227
|
+
var createCustomerAddressInputSchema = writableCreateCustomerAddressSchema.required();
|
|
228
|
+
var createCustomerAddressResponseSchema = customerAddressDetailsSchema;
|
|
229
|
+
var CreateCustomerAddress = class extends import_sdk_js_core.AbstractApiRequest {
|
|
230
|
+
constructor(input) {
|
|
231
|
+
super(input);
|
|
232
|
+
this.method = "POST";
|
|
233
|
+
this.contentType = "application/json";
|
|
234
|
+
this.accept = "application/json";
|
|
235
|
+
this.inputSchema = createCustomerAddressInputSchema;
|
|
236
|
+
this.outputSchema = createCustomerAddressResponseSchema;
|
|
237
|
+
this.querySchema = void 0;
|
|
238
|
+
this.headersSchema = void 0;
|
|
239
|
+
}
|
|
240
|
+
getPath() {
|
|
241
|
+
return "/customers/addresses";
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
// src/requests/customer-addresses/DeleteCustomerAddress.ts
|
|
246
|
+
var import_sdk_js_core2 = require("@deliverart/sdk-js-core");
|
|
247
|
+
var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
|
|
248
|
+
var import_zod2 = require("zod");
|
|
249
|
+
var deleteCustomerAddressInputSchema = import_zod2.z.undefined();
|
|
250
|
+
var deleteCustomerAddressResponseSchema = import_sdk_js_global_types3.emptyResponseSchema;
|
|
251
|
+
var DeleteCustomerAddress = class extends import_sdk_js_core2.AbstractApiRequest {
|
|
252
|
+
constructor(customerAddressId) {
|
|
253
|
+
super(void 0);
|
|
254
|
+
this.method = "DELETE";
|
|
255
|
+
this.contentType = "application/json";
|
|
256
|
+
this.accept = "application/json";
|
|
257
|
+
this.inputSchema = deleteCustomerAddressInputSchema;
|
|
258
|
+
this.outputSchema = deleteCustomerAddressResponseSchema;
|
|
259
|
+
this.querySchema = void 0;
|
|
260
|
+
this.headersSchema = void 0;
|
|
261
|
+
this.customerAddressId = customerAddressId;
|
|
262
|
+
}
|
|
263
|
+
getPath() {
|
|
264
|
+
return `/customers/addresses/${this.customerAddressId}`;
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
// src/requests/customer-addresses/GetCustomerAddressDetails.ts
|
|
269
|
+
var import_sdk_js_core3 = require("@deliverart/sdk-js-core");
|
|
270
|
+
var import_zod3 = require("zod");
|
|
271
|
+
var getCustomerAddressDetailsInputSchema = import_zod3.z.undefined();
|
|
272
|
+
var getCustomerAddressDetailsResponseSchema = customerAddressDetailsSchema;
|
|
273
|
+
var GetCustomerAddressDetails = class extends import_sdk_js_core3.AbstractApiRequest {
|
|
274
|
+
constructor(customerAddressId) {
|
|
275
|
+
super(void 0);
|
|
276
|
+
this.method = "GET";
|
|
277
|
+
this.contentType = "application/json";
|
|
278
|
+
this.accept = "application/json";
|
|
279
|
+
this.inputSchema = getCustomerAddressDetailsInputSchema;
|
|
280
|
+
this.outputSchema = getCustomerAddressDetailsResponseSchema;
|
|
281
|
+
this.querySchema = void 0;
|
|
282
|
+
this.headersSchema = void 0;
|
|
283
|
+
this.customerAddressId = customerAddressId;
|
|
284
|
+
}
|
|
285
|
+
getPath() {
|
|
286
|
+
return `/customers/addresses/${this.customerAddressId}`;
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
// src/requests/customer-addresses/GetCustomerAddresses.ts
|
|
291
|
+
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
292
|
+
var import_sdk_js_global_types4 = require("@deliverart/sdk-js-global-types");
|
|
293
|
+
var import_zod4 = require("zod");
|
|
294
|
+
var getCustomerAddressesQuerySchema = import_zod4.z.object({
|
|
295
|
+
"order[createdAt]": import_sdk_js_global_types4.sortDirSchema.optional(),
|
|
296
|
+
"order[updatedAt]": import_sdk_js_global_types4.sortDirSchema.optional(),
|
|
297
|
+
page: import_zod4.z.coerce.number().optional()
|
|
298
|
+
}).extend(import_sdk_js_global_types4.timestampsFilterSchema.shape);
|
|
299
|
+
var getCustomerAddressesInputSchema = import_zod4.z.undefined();
|
|
300
|
+
var getCustomerAddressesResponseSchema = (0, import_sdk_js_global_types4.createPaginatedSchema)(customerAddressSchema);
|
|
301
|
+
var GetCustomerAddresses = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
302
|
+
constructor(options) {
|
|
303
|
+
super(void 0, options);
|
|
304
|
+
this.method = "GET";
|
|
305
|
+
this.contentType = "application/json";
|
|
306
|
+
this.accept = "application/json";
|
|
307
|
+
this.inputSchema = getCustomerAddressesInputSchema;
|
|
308
|
+
this.outputSchema = getCustomerAddressesResponseSchema;
|
|
309
|
+
this.querySchema = getCustomerAddressesQuerySchema;
|
|
310
|
+
this.headersSchema = void 0;
|
|
311
|
+
this.listItemSchema = customerAddressSchema;
|
|
312
|
+
this.paginationDefaultEnabled = true;
|
|
313
|
+
}
|
|
314
|
+
getPath() {
|
|
315
|
+
return "/customers/addresses";
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
// src/requests/customer-addresses/GetCustomerAddressesForCustomer.ts
|
|
320
|
+
var import_sdk_js_core5 = require("@deliverart/sdk-js-core");
|
|
321
|
+
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
322
|
+
var import_zod5 = require("zod");
|
|
323
|
+
var getCustomerAddressesForCustomerQuerySchema = import_zod5.z.object({
|
|
324
|
+
"order[createdAt]": import_sdk_js_global_types5.sortDirSchema.optional(),
|
|
325
|
+
"order[updatedAt]": import_sdk_js_global_types5.sortDirSchema.optional()
|
|
326
|
+
}).extend(import_sdk_js_global_types5.timestampsFilterSchema.shape);
|
|
327
|
+
var getCustomerAddressesForCustomerInputSchema = import_zod5.z.undefined();
|
|
328
|
+
var getCustomerAddressesForCustomerResponseSchema = import_zod5.z.array(customerAddressSchema);
|
|
329
|
+
var GetCustomerAddressesForCustomer = class extends import_sdk_js_core5.AbstractApiRequest {
|
|
330
|
+
constructor(customerId, options) {
|
|
331
|
+
super(void 0, options);
|
|
332
|
+
this.method = "GET";
|
|
333
|
+
this.contentType = "application/json";
|
|
334
|
+
this.accept = "application/json";
|
|
335
|
+
this.inputSchema = getCustomerAddressesForCustomerInputSchema;
|
|
336
|
+
this.outputSchema = getCustomerAddressesForCustomerResponseSchema;
|
|
337
|
+
this.querySchema = getCustomerAddressesForCustomerQuerySchema;
|
|
338
|
+
this.headersSchema = void 0;
|
|
339
|
+
this.listItemSchema = customerAddressSchema;
|
|
340
|
+
this.paginationDefaultEnabled = false;
|
|
341
|
+
this.customerId = customerId;
|
|
342
|
+
}
|
|
343
|
+
getPath() {
|
|
344
|
+
return `/customers/${this.customerId}/addresses`;
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
// src/requests/customer-addresses/UpdateCustomerAddress.ts
|
|
349
|
+
var import_sdk_js_core6 = require("@deliverart/sdk-js-core");
|
|
350
|
+
var updateCustomerAddressInputSchema = writableCustomerAddressSchema.partial();
|
|
351
|
+
var updateCustomerAddressResponseSchema = customerAddressDetailsSchema;
|
|
352
|
+
var UpdateCustomerAddress = class extends import_sdk_js_core6.AbstractApiRequest {
|
|
353
|
+
constructor(customerId, input) {
|
|
354
|
+
super(input);
|
|
355
|
+
this.method = "PATCH";
|
|
356
|
+
this.contentType = "application/merge-patch+json";
|
|
357
|
+
this.accept = "application/json";
|
|
358
|
+
this.inputSchema = updateCustomerAddressInputSchema;
|
|
359
|
+
this.outputSchema = updateCustomerAddressResponseSchema;
|
|
360
|
+
this.querySchema = void 0;
|
|
361
|
+
this.headersSchema = void 0;
|
|
362
|
+
this.customerId = customerId;
|
|
363
|
+
}
|
|
364
|
+
getPath() {
|
|
365
|
+
return `/customers/addresses/${this.customerId}`;
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
// src/requests/customer-business-profiles/CreateCustomerBusinessProfile.ts
|
|
370
|
+
var import_sdk_js_core7 = require("@deliverart/sdk-js-core");
|
|
371
|
+
var createCustomerBusinessProfileInputSchema = writableCreateCustomerBusinessProfileSchema.required();
|
|
372
|
+
var createCustomerBusinessProfileResponseSchema = customerBusinessProfileDetailsSchema;
|
|
373
|
+
var CreateCustomerBusinessProfile = class extends import_sdk_js_core7.AbstractApiRequest {
|
|
374
|
+
constructor(input) {
|
|
375
|
+
super(input);
|
|
376
|
+
this.method = "POST";
|
|
377
|
+
this.contentType = "application/json";
|
|
378
|
+
this.accept = "application/json";
|
|
379
|
+
this.inputSchema = createCustomerBusinessProfileInputSchema;
|
|
380
|
+
this.outputSchema = createCustomerBusinessProfileResponseSchema;
|
|
381
|
+
this.querySchema = void 0;
|
|
382
|
+
this.headersSchema = void 0;
|
|
383
|
+
}
|
|
384
|
+
getPath() {
|
|
385
|
+
return "/customers/business_profiles";
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
// src/requests/customer-business-profiles/DeleteCustomerBusinessProfile.ts
|
|
390
|
+
var import_sdk_js_core8 = require("@deliverart/sdk-js-core");
|
|
391
|
+
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
392
|
+
var import_zod6 = require("zod");
|
|
393
|
+
var deleteCustomerBusinessProfileInputSchema = import_zod6.z.undefined();
|
|
394
|
+
var deleteCustomerBusinessProfileResponseSchema = import_sdk_js_global_types6.emptyResponseSchema;
|
|
395
|
+
var DeleteCustomerBusinessProfile = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
396
|
+
constructor(customerBusinessProfileId) {
|
|
397
|
+
super(void 0);
|
|
398
|
+
this.method = "DELETE";
|
|
399
|
+
this.contentType = "application/json";
|
|
400
|
+
this.accept = "application/json";
|
|
401
|
+
this.inputSchema = deleteCustomerBusinessProfileInputSchema;
|
|
402
|
+
this.outputSchema = deleteCustomerBusinessProfileResponseSchema;
|
|
403
|
+
this.querySchema = void 0;
|
|
404
|
+
this.headersSchema = void 0;
|
|
405
|
+
this.customerBusinessProfileId = customerBusinessProfileId;
|
|
406
|
+
}
|
|
407
|
+
getPath() {
|
|
408
|
+
return `/customers/business_profiles/${this.customerBusinessProfileId}`;
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
// src/requests/customer-business-profiles/GetCustomerBusinessProfileDetails.ts
|
|
413
|
+
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
414
|
+
var import_zod7 = require("zod");
|
|
415
|
+
var getCustomerBusinessProfileDetailsInputSchema = import_zod7.z.undefined();
|
|
416
|
+
var getCustomerBusinessProfileDetailsResponseSchema = customerBusinessProfileDetailsSchema;
|
|
417
|
+
var GetCustomerBusinessProfileDetails = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
418
|
+
constructor(customerBusinessProfileId) {
|
|
419
|
+
super(void 0);
|
|
420
|
+
this.method = "GET";
|
|
421
|
+
this.contentType = "application/json";
|
|
422
|
+
this.accept = "application/json";
|
|
423
|
+
this.inputSchema = getCustomerBusinessProfileDetailsInputSchema;
|
|
424
|
+
this.outputSchema = getCustomerBusinessProfileDetailsResponseSchema;
|
|
425
|
+
this.querySchema = void 0;
|
|
426
|
+
this.headersSchema = void 0;
|
|
427
|
+
this.customerBusinessProfileId = customerBusinessProfileId;
|
|
428
|
+
}
|
|
429
|
+
getPath() {
|
|
430
|
+
return `/customers/business_profiles/${this.customerBusinessProfileId}`;
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
// src/requests/customer-business-profiles/GetCustomerBusinessProfiles.ts
|
|
435
|
+
var import_sdk_js_core10 = require("@deliverart/sdk-js-core");
|
|
436
|
+
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
437
|
+
var import_zod8 = require("zod");
|
|
438
|
+
var getCustomerBusinessProfilesQuerySchema = import_zod8.z.object({
|
|
439
|
+
"order[businessName]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
440
|
+
"order[createdAt]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
441
|
+
"order[updatedAt]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
442
|
+
businessName: import_zod8.z.string().optional(),
|
|
443
|
+
vat: import_zod8.z.string().optional(),
|
|
444
|
+
taxCode: import_zod8.z.string().optional(),
|
|
445
|
+
page: import_zod8.z.coerce.number().optional()
|
|
446
|
+
}).extend(import_sdk_js_global_types7.timestampsFilterSchema.shape);
|
|
447
|
+
var getCustomerBusinessProfilesInputSchema = import_zod8.z.undefined();
|
|
448
|
+
var getCustomerBusinessProfilesResponseSchema = (0, import_sdk_js_global_types7.createPaginatedSchema)(
|
|
449
|
+
customerBusinessProfileSchema
|
|
450
|
+
);
|
|
451
|
+
var GetCustomerBusinessProfiles = class extends import_sdk_js_core10.AbstractApiRequest {
|
|
452
|
+
constructor(options) {
|
|
453
|
+
super(void 0, options);
|
|
454
|
+
this.method = "GET";
|
|
455
|
+
this.contentType = "application/json";
|
|
456
|
+
this.accept = "application/json";
|
|
457
|
+
this.inputSchema = getCustomerBusinessProfilesInputSchema;
|
|
458
|
+
this.outputSchema = getCustomerBusinessProfilesResponseSchema;
|
|
459
|
+
this.querySchema = getCustomerBusinessProfilesQuerySchema;
|
|
460
|
+
this.headersSchema = void 0;
|
|
461
|
+
this.listItemSchema = customerBusinessProfileSchema;
|
|
462
|
+
this.paginationDefaultEnabled = true;
|
|
463
|
+
}
|
|
464
|
+
getPath() {
|
|
465
|
+
return "/customers/business_profiles";
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
// src/requests/customer-business-profiles/GetCustomerBusinessProfilesForCustomer.ts
|
|
470
|
+
var import_sdk_js_core11 = require("@deliverart/sdk-js-core");
|
|
471
|
+
var import_sdk_js_global_types8 = require("@deliverart/sdk-js-global-types");
|
|
472
|
+
var import_zod9 = require("zod");
|
|
473
|
+
var getCustomerBusinessProfilesForCustomerQuerySchema = import_zod9.z.object({
|
|
474
|
+
"order[businessName]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
475
|
+
"order[createdAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
476
|
+
"order[updatedAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
477
|
+
businessName: import_zod9.z.string().optional(),
|
|
478
|
+
vat: import_zod9.z.string().optional(),
|
|
479
|
+
taxCode: import_zod9.z.string().optional()
|
|
480
|
+
}).extend(import_sdk_js_global_types8.timestampsFilterSchema.shape);
|
|
481
|
+
var getCustomerBusinessProfilesForCustomerInputSchema = import_zod9.z.undefined();
|
|
482
|
+
var getCustomerBusinessProfilesForCustomerResponseSchema = import_zod9.z.array(
|
|
483
|
+
customerBusinessProfileSchema
|
|
484
|
+
);
|
|
485
|
+
var GetCustomerBusinessProfilesForCustomer = class extends import_sdk_js_core11.AbstractApiRequest {
|
|
486
|
+
constructor(customerId, options) {
|
|
487
|
+
super(void 0, options);
|
|
488
|
+
this.method = "GET";
|
|
489
|
+
this.contentType = "application/json";
|
|
490
|
+
this.accept = "application/json";
|
|
491
|
+
this.inputSchema = getCustomerBusinessProfilesForCustomerInputSchema;
|
|
492
|
+
this.outputSchema = getCustomerBusinessProfilesForCustomerResponseSchema;
|
|
493
|
+
this.querySchema = getCustomerBusinessProfilesForCustomerQuerySchema;
|
|
494
|
+
this.headersSchema = void 0;
|
|
495
|
+
this.listItemSchema = customerBusinessProfileSchema;
|
|
496
|
+
this.paginationDefaultEnabled = false;
|
|
497
|
+
this.customerId = customerId;
|
|
498
|
+
}
|
|
499
|
+
getPath() {
|
|
500
|
+
return `/customers/${this.customerId}/business_profiles`;
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
// src/requests/customer-business-profiles/UpdateCustomerBusinessProfile.ts
|
|
505
|
+
var import_sdk_js_core12 = require("@deliverart/sdk-js-core");
|
|
506
|
+
var updateCustomerBusinessProfileInputSchema = writableCustomerBusinessProfileSchema.partial();
|
|
507
|
+
var updateCustomerBusinessProfileResponseSchema = customerBusinessProfileDetailsSchema;
|
|
508
|
+
var UpdateCustomerBusinessProfile = class extends import_sdk_js_core12.AbstractApiRequest {
|
|
509
|
+
constructor(customerId, input) {
|
|
510
|
+
super(input);
|
|
511
|
+
this.method = "PATCH";
|
|
512
|
+
this.contentType = "application/merge-patch+json";
|
|
513
|
+
this.accept = "application/json";
|
|
514
|
+
this.inputSchema = updateCustomerBusinessProfileInputSchema;
|
|
515
|
+
this.outputSchema = updateCustomerBusinessProfileResponseSchema;
|
|
516
|
+
this.querySchema = void 0;
|
|
517
|
+
this.headersSchema = void 0;
|
|
518
|
+
this.customerId = customerId;
|
|
519
|
+
}
|
|
520
|
+
getPath() {
|
|
521
|
+
return `/customers/business_profiles/${this.customerId}`;
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
// src/requests/customers/CreateCustomer.ts
|
|
526
|
+
var import_sdk_js_core13 = require("@deliverart/sdk-js-core");
|
|
527
|
+
var createCustomerInputSchema = writableCreateCustomerSchema.required();
|
|
528
|
+
var createCustomerResponseSchema = customerDetailsSchema;
|
|
529
|
+
var CreateCustomer = class extends import_sdk_js_core13.AbstractApiRequest {
|
|
530
|
+
constructor(input) {
|
|
531
|
+
super(input);
|
|
532
|
+
this.method = "POST";
|
|
533
|
+
this.contentType = "application/json";
|
|
534
|
+
this.accept = "application/json";
|
|
535
|
+
this.inputSchema = createCustomerInputSchema;
|
|
536
|
+
this.outputSchema = createCustomerResponseSchema;
|
|
537
|
+
this.querySchema = void 0;
|
|
538
|
+
this.headersSchema = void 0;
|
|
539
|
+
}
|
|
540
|
+
getPath() {
|
|
541
|
+
return "/customers";
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
// src/requests/customers/CreateCustomerFromCurrentUser.ts
|
|
546
|
+
var import_sdk_js_core14 = require("@deliverart/sdk-js-core");
|
|
547
|
+
var createCustomerFromCurrentUserInputSchema = writableCreateCustomerSchema.required();
|
|
548
|
+
var createCustomerFromCurrentUserResponseSchema = customerDetailsSchema;
|
|
549
|
+
var CreateCustomerFromCurrentUser = class extends import_sdk_js_core14.AbstractApiRequest {
|
|
550
|
+
constructor(input) {
|
|
551
|
+
super(input);
|
|
552
|
+
this.method = "POST";
|
|
553
|
+
this.contentType = "application/json";
|
|
554
|
+
this.accept = "application/json";
|
|
555
|
+
this.inputSchema = createCustomerFromCurrentUserInputSchema;
|
|
556
|
+
this.outputSchema = createCustomerFromCurrentUserResponseSchema;
|
|
557
|
+
this.querySchema = void 0;
|
|
558
|
+
this.headersSchema = void 0;
|
|
559
|
+
}
|
|
560
|
+
getPath() {
|
|
561
|
+
return "/customers/from/me";
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
// src/requests/customers/DeleteCustomer.ts
|
|
566
|
+
var import_sdk_js_core15 = require("@deliverart/sdk-js-core");
|
|
567
|
+
var import_sdk_js_global_types9 = require("@deliverart/sdk-js-global-types");
|
|
568
|
+
var import_zod10 = require("zod");
|
|
569
|
+
var deleteCustomerInputSchema = import_zod10.z.undefined();
|
|
570
|
+
var deleteCustomerResponseSchema = import_sdk_js_global_types9.emptyResponseSchema;
|
|
571
|
+
var DeleteCustomer = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
572
|
+
constructor(customerId) {
|
|
573
|
+
super(void 0);
|
|
574
|
+
this.method = "DELETE";
|
|
575
|
+
this.contentType = "application/json";
|
|
576
|
+
this.accept = "application/json";
|
|
577
|
+
this.inputSchema = deleteCustomerInputSchema;
|
|
578
|
+
this.outputSchema = deleteCustomerResponseSchema;
|
|
579
|
+
this.querySchema = void 0;
|
|
580
|
+
this.headersSchema = void 0;
|
|
581
|
+
this.customerId = customerId;
|
|
582
|
+
}
|
|
583
|
+
getPath() {
|
|
584
|
+
return `/customers/${this.customerId}`;
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
// src/requests/customers/GetCustomerDetails.ts
|
|
589
|
+
var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
590
|
+
var import_zod11 = require("zod");
|
|
591
|
+
var getCustomerDetailsInputSchema = import_zod11.z.undefined();
|
|
592
|
+
var getCustomerDetailsResponseSchema = customerDetailsSchema;
|
|
593
|
+
var GetCustomerDetails = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
594
|
+
constructor(customerId) {
|
|
595
|
+
super(void 0);
|
|
596
|
+
this.method = "GET";
|
|
597
|
+
this.contentType = "application/json";
|
|
598
|
+
this.accept = "application/json";
|
|
599
|
+
this.inputSchema = getCustomerDetailsInputSchema;
|
|
600
|
+
this.outputSchema = getCustomerDetailsResponseSchema;
|
|
601
|
+
this.querySchema = void 0;
|
|
602
|
+
this.headersSchema = void 0;
|
|
603
|
+
this.customerId = customerId;
|
|
604
|
+
}
|
|
605
|
+
getPath() {
|
|
606
|
+
return `/customers/${this.customerId}`;
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
// src/requests/customers/GetCustomers.ts
|
|
611
|
+
var import_sdk_js_core17 = require("@deliverart/sdk-js-core");
|
|
612
|
+
var import_sdk_js_global_types10 = require("@deliverart/sdk-js-global-types");
|
|
613
|
+
var import_zod12 = require("zod");
|
|
614
|
+
var getCustomersQuerySchema = customersQuerySchema;
|
|
615
|
+
var getCustomersInputSchema = import_zod12.z.undefined();
|
|
616
|
+
var getCustomersResponseSchema = (0, import_sdk_js_global_types10.createPaginatedSchema)(customerSchema);
|
|
617
|
+
var GetCustomers = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
618
|
+
constructor(options) {
|
|
619
|
+
super(void 0, options);
|
|
620
|
+
this.method = "GET";
|
|
621
|
+
this.contentType = "application/json";
|
|
622
|
+
this.accept = "application/json";
|
|
623
|
+
this.inputSchema = getCustomersInputSchema;
|
|
624
|
+
this.outputSchema = getCustomersResponseSchema;
|
|
625
|
+
this.querySchema = getCustomersQuerySchema;
|
|
626
|
+
this.headersSchema = void 0;
|
|
627
|
+
// Declare list behavior
|
|
628
|
+
this.listItemSchema = customerSchema;
|
|
629
|
+
this.paginationDefaultEnabled = true;
|
|
630
|
+
}
|
|
631
|
+
getPath() {
|
|
632
|
+
return "/customers";
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
// src/requests/customers/GetCustomersFromPointOfSale.ts
|
|
637
|
+
var import_sdk_js_core18 = require("@deliverart/sdk-js-core");
|
|
638
|
+
var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
|
|
639
|
+
var import_zod13 = require("zod");
|
|
640
|
+
var getCustomersFromPointOfSaleQuerySchema = customersQuerySchema;
|
|
641
|
+
var getCustomersFromPointOfSaleInputSchema = import_zod13.z.undefined();
|
|
642
|
+
var getCustomersFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types11.createPaginatedSchema)(customerSchema);
|
|
643
|
+
var GetCustomersFromPointOfSale = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
644
|
+
constructor(pointOfSaleId, options) {
|
|
645
|
+
super(void 0, options);
|
|
646
|
+
this.method = "GET";
|
|
647
|
+
this.contentType = "application/json";
|
|
648
|
+
this.accept = "application/json";
|
|
649
|
+
this.inputSchema = getCustomersFromPointOfSaleInputSchema;
|
|
650
|
+
this.outputSchema = getCustomersFromPointOfSaleResponseSchema;
|
|
651
|
+
this.querySchema = getCustomersFromPointOfSaleQuerySchema;
|
|
652
|
+
this.headersSchema = void 0;
|
|
653
|
+
// Declare list behavior
|
|
654
|
+
this.listItemSchema = customerSchema;
|
|
655
|
+
this.paginationDefaultEnabled = true;
|
|
656
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
657
|
+
}
|
|
658
|
+
getPath() {
|
|
659
|
+
return `/point_of_sales/${this.pointOfSaleId}/customers`;
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
// src/requests/customers/UpdateCustomer.ts
|
|
664
|
+
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
665
|
+
var updateCustomerInputSchema = writableCustomerSchema.partial();
|
|
666
|
+
var updateCustomerResponseSchema = customerDetailsSchema;
|
|
667
|
+
var UpdateCustomer = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
668
|
+
constructor(customerId, input) {
|
|
669
|
+
super(input);
|
|
670
|
+
this.method = "PATCH";
|
|
671
|
+
this.contentType = "application/merge-patch+json";
|
|
672
|
+
this.accept = "application/json";
|
|
673
|
+
this.inputSchema = updateCustomerInputSchema;
|
|
674
|
+
this.outputSchema = updateCustomerResponseSchema;
|
|
675
|
+
this.querySchema = void 0;
|
|
676
|
+
this.headersSchema = void 0;
|
|
677
|
+
this.customerId = customerId;
|
|
678
|
+
}
|
|
679
|
+
getPath() {
|
|
680
|
+
return `/customers/${this.customerId}`;
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
684
|
+
0 && (module.exports = {
|
|
685
|
+
CreateCustomer,
|
|
686
|
+
CreateCustomerAddress,
|
|
687
|
+
CreateCustomerBusinessProfile,
|
|
688
|
+
CreateCustomerFromCurrentUser,
|
|
689
|
+
DeleteCustomer,
|
|
690
|
+
DeleteCustomerAddress,
|
|
691
|
+
DeleteCustomerBusinessProfile,
|
|
692
|
+
GetCustomerAddressDetails,
|
|
693
|
+
GetCustomerAddresses,
|
|
694
|
+
GetCustomerAddressesForCustomer,
|
|
695
|
+
GetCustomerBusinessProfileDetails,
|
|
696
|
+
GetCustomerBusinessProfiles,
|
|
697
|
+
GetCustomerBusinessProfilesForCustomer,
|
|
698
|
+
GetCustomerDetails,
|
|
699
|
+
GetCustomers,
|
|
700
|
+
GetCustomersFromPointOfSale,
|
|
701
|
+
UpdateCustomer,
|
|
702
|
+
UpdateCustomerAddress,
|
|
703
|
+
UpdateCustomerBusinessProfile,
|
|
704
|
+
createCustomerAddressInputSchema,
|
|
705
|
+
createCustomerAddressResponseSchema,
|
|
706
|
+
createCustomerBusinessProfileInputSchema,
|
|
707
|
+
createCustomerBusinessProfileResponseSchema,
|
|
708
|
+
createCustomerFromCurrentUserInputSchema,
|
|
709
|
+
createCustomerFromCurrentUserResponseSchema,
|
|
710
|
+
createCustomerInputSchema,
|
|
711
|
+
createCustomerResponseSchema,
|
|
712
|
+
customerAddressDetailsSchema,
|
|
713
|
+
customerAddressIriSchema,
|
|
714
|
+
customerAddressNullableIriSchema,
|
|
715
|
+
customerAddressSchema,
|
|
716
|
+
customerBusinessProfileDetailsSchema,
|
|
717
|
+
customerBusinessProfileIriSchema,
|
|
718
|
+
customerBusinessProfileNullableIriSchema,
|
|
719
|
+
customerBusinessProfileSchema,
|
|
720
|
+
customerDetailsSchema,
|
|
721
|
+
customerIriSchema,
|
|
722
|
+
customerNullableIriSchema,
|
|
723
|
+
customerSchema,
|
|
724
|
+
customersQuerySchema,
|
|
725
|
+
deleteCustomerAddressInputSchema,
|
|
726
|
+
deleteCustomerAddressResponseSchema,
|
|
727
|
+
deleteCustomerBusinessProfileInputSchema,
|
|
728
|
+
deleteCustomerBusinessProfileResponseSchema,
|
|
729
|
+
deleteCustomerInputSchema,
|
|
730
|
+
deleteCustomerResponseSchema,
|
|
731
|
+
getCustomerAddressDetailsInputSchema,
|
|
732
|
+
getCustomerAddressDetailsResponseSchema,
|
|
733
|
+
getCustomerAddressesForCustomerInputSchema,
|
|
734
|
+
getCustomerAddressesForCustomerQuerySchema,
|
|
735
|
+
getCustomerAddressesForCustomerResponseSchema,
|
|
736
|
+
getCustomerAddressesInputSchema,
|
|
737
|
+
getCustomerAddressesQuerySchema,
|
|
738
|
+
getCustomerAddressesResponseSchema,
|
|
739
|
+
getCustomerBusinessProfileDetailsInputSchema,
|
|
740
|
+
getCustomerBusinessProfileDetailsResponseSchema,
|
|
741
|
+
getCustomerBusinessProfilesForCustomerInputSchema,
|
|
742
|
+
getCustomerBusinessProfilesForCustomerQuerySchema,
|
|
743
|
+
getCustomerBusinessProfilesForCustomerResponseSchema,
|
|
744
|
+
getCustomerBusinessProfilesInputSchema,
|
|
745
|
+
getCustomerBusinessProfilesQuerySchema,
|
|
746
|
+
getCustomerBusinessProfilesResponseSchema,
|
|
747
|
+
getCustomerDetailsInputSchema,
|
|
748
|
+
getCustomerDetailsResponseSchema,
|
|
749
|
+
getCustomersFromPointOfSaleInputSchema,
|
|
750
|
+
getCustomersFromPointOfSaleQuerySchema,
|
|
751
|
+
getCustomersFromPointOfSaleResponseSchema,
|
|
752
|
+
getCustomersInputSchema,
|
|
753
|
+
getCustomersQuerySchema,
|
|
754
|
+
getCustomersResponseSchema,
|
|
755
|
+
updateCustomerAddressInputSchema,
|
|
756
|
+
updateCustomerAddressResponseSchema,
|
|
757
|
+
updateCustomerBusinessProfileInputSchema,
|
|
758
|
+
updateCustomerBusinessProfileResponseSchema,
|
|
759
|
+
updateCustomerInputSchema,
|
|
760
|
+
updateCustomerResponseSchema,
|
|
761
|
+
writableCreateCustomerAddressSchema,
|
|
762
|
+
writableCreateCustomerBusinessProfileSchema,
|
|
763
|
+
writableCreateCustomerSchema,
|
|
764
|
+
writableCustomerAddressSchema,
|
|
765
|
+
writableCustomerBusinessProfileSchema,
|
|
766
|
+
writableCustomerSchema
|
|
767
|
+
});
|