@deliverart/sdk-js-customer 2.2.0 → 2.2.2
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +60 -60
- package/dist/index.d.ts +60 -60
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -11270,7 +11270,7 @@ var customerSchema = external_exports.object({
|
|
|
11270
11270
|
phoneNumber: external_exports.string().nullable(),
|
|
11271
11271
|
hasBusinessProfiles: external_exports.boolean(),
|
|
11272
11272
|
hasAddresses: external_exports.boolean(),
|
|
11273
|
-
ordersPlaced: external_exports.number(),
|
|
11273
|
+
ordersPlaced: external_exports.coerce.number(),
|
|
11274
11274
|
totalSpent: external_exports.string(),
|
|
11275
11275
|
createdAt: import_sdk_js_global_types2.datetimeSchema,
|
|
11276
11276
|
updatedAt: import_sdk_js_global_types2.datetimeSchema
|
package/dist/index.d.cts
CHANGED
|
@@ -11,7 +11,7 @@ declare const customerSchema: z.ZodObject<{
|
|
|
11
11
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
12
12
|
hasBusinessProfiles: z.ZodBoolean;
|
|
13
13
|
hasAddresses: z.ZodBoolean;
|
|
14
|
-
ordersPlaced: z.
|
|
14
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
15
15
|
totalSpent: z.ZodString;
|
|
16
16
|
createdAt: z.ZodString;
|
|
17
17
|
updatedAt: z.ZodString;
|
|
@@ -25,7 +25,7 @@ declare const customerDetailsSchema: z.ZodObject<{
|
|
|
25
25
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
26
26
|
hasBusinessProfiles: z.ZodBoolean;
|
|
27
27
|
hasAddresses: z.ZodBoolean;
|
|
28
|
-
ordersPlaced: z.
|
|
28
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
29
29
|
totalSpent: z.ZodString;
|
|
30
30
|
createdAt: z.ZodString;
|
|
31
31
|
updatedAt: z.ZodString;
|
|
@@ -410,12 +410,12 @@ declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
|
410
410
|
updatedAt: z.ZodString;
|
|
411
411
|
}, z.core.$strip>>;
|
|
412
412
|
pagination: z.ZodObject<{
|
|
413
|
-
from: z.
|
|
414
|
-
to: z.
|
|
415
|
-
itemsPerPage: z.
|
|
416
|
-
totalItems: z.
|
|
417
|
-
currentPage: z.
|
|
418
|
-
lastPage: z.
|
|
413
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
414
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
415
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
416
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
417
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
418
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
419
419
|
}, z.core.$strip>;
|
|
420
420
|
}, z.core.$strip>;
|
|
421
421
|
type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
|
|
@@ -443,12 +443,12 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
|
|
|
443
443
|
updatedAt: z.ZodString;
|
|
444
444
|
}, z.core.$strip>>;
|
|
445
445
|
pagination: z.ZodObject<{
|
|
446
|
-
from: z.
|
|
447
|
-
to: z.
|
|
448
|
-
itemsPerPage: z.
|
|
449
|
-
totalItems: z.
|
|
450
|
-
currentPage: z.
|
|
451
|
-
lastPage: z.
|
|
446
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
447
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
448
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
449
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
450
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
451
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
452
452
|
}, z.core.$strip>;
|
|
453
453
|
}, z.core.$strip>;
|
|
454
454
|
readonly querySchema: z.ZodObject<{
|
|
@@ -848,12 +848,12 @@ declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
|
848
848
|
updatedAt: z.ZodString;
|
|
849
849
|
}, z.core.$strip>>;
|
|
850
850
|
pagination: z.ZodObject<{
|
|
851
|
-
from: z.
|
|
852
|
-
to: z.
|
|
853
|
-
itemsPerPage: z.
|
|
854
|
-
totalItems: z.
|
|
855
|
-
currentPage: z.
|
|
856
|
-
lastPage: z.
|
|
851
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
852
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
853
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
854
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
855
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
856
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
857
857
|
}, z.core.$strip>;
|
|
858
858
|
}, z.core.$strip>;
|
|
859
859
|
type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
|
|
@@ -884,12 +884,12 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
|
|
|
884
884
|
updatedAt: z.ZodString;
|
|
885
885
|
}, z.core.$strip>>;
|
|
886
886
|
pagination: z.ZodObject<{
|
|
887
|
-
from: z.
|
|
888
|
-
to: z.
|
|
889
|
-
itemsPerPage: z.
|
|
890
|
-
totalItems: z.
|
|
891
|
-
currentPage: z.
|
|
892
|
-
lastPage: z.
|
|
887
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
888
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
889
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
890
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
891
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
892
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
893
893
|
}, z.core.$strip>;
|
|
894
894
|
}, z.core.$strip>;
|
|
895
895
|
readonly querySchema: z.ZodObject<{
|
|
@@ -1139,7 +1139,7 @@ declare const createCustomerResponseSchema: z.ZodObject<{
|
|
|
1139
1139
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1140
1140
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1141
1141
|
hasAddresses: z.ZodBoolean;
|
|
1142
|
-
ordersPlaced: z.
|
|
1142
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1143
1143
|
totalSpent: z.ZodString;
|
|
1144
1144
|
createdAt: z.ZodString;
|
|
1145
1145
|
updatedAt: z.ZodString;
|
|
@@ -1168,7 +1168,7 @@ declare class CreateCustomer extends AbstractApiRequest<typeof createCustomerInp
|
|
|
1168
1168
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1169
1169
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1170
1170
|
hasAddresses: z.ZodBoolean;
|
|
1171
|
-
ordersPlaced: z.
|
|
1171
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1172
1172
|
totalSpent: z.ZodString;
|
|
1173
1173
|
createdAt: z.ZodString;
|
|
1174
1174
|
updatedAt: z.ZodString;
|
|
@@ -1208,7 +1208,7 @@ declare const getCustomerDetailsResponseSchema: z.ZodObject<{
|
|
|
1208
1208
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1209
1209
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1210
1210
|
hasAddresses: z.ZodBoolean;
|
|
1211
|
-
ordersPlaced: z.
|
|
1211
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1212
1212
|
totalSpent: z.ZodString;
|
|
1213
1213
|
createdAt: z.ZodString;
|
|
1214
1214
|
updatedAt: z.ZodString;
|
|
@@ -1231,7 +1231,7 @@ declare class GetCustomerDetails extends AbstractApiRequest<typeof getCustomerDe
|
|
|
1231
1231
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1232
1232
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1233
1233
|
hasAddresses: z.ZodBoolean;
|
|
1234
|
-
ordersPlaced: z.
|
|
1234
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1235
1235
|
totalSpent: z.ZodString;
|
|
1236
1236
|
createdAt: z.ZodString;
|
|
1237
1237
|
updatedAt: z.ZodString;
|
|
@@ -1302,18 +1302,18 @@ declare const getCustomersResponseSchema: z.ZodObject<{
|
|
|
1302
1302
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1303
1303
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1304
1304
|
hasAddresses: z.ZodBoolean;
|
|
1305
|
-
ordersPlaced: z.
|
|
1305
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1306
1306
|
totalSpent: z.ZodString;
|
|
1307
1307
|
createdAt: z.ZodString;
|
|
1308
1308
|
updatedAt: z.ZodString;
|
|
1309
1309
|
}, z.core.$strip>>;
|
|
1310
1310
|
pagination: z.ZodObject<{
|
|
1311
|
-
from: z.
|
|
1312
|
-
to: z.
|
|
1313
|
-
itemsPerPage: z.
|
|
1314
|
-
totalItems: z.
|
|
1315
|
-
currentPage: z.
|
|
1316
|
-
lastPage: z.
|
|
1311
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1312
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1313
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1314
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1315
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1316
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1317
1317
|
}, z.core.$strip>;
|
|
1318
1318
|
}, z.core.$strip>;
|
|
1319
1319
|
type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
|
|
@@ -1331,18 +1331,18 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
|
|
|
1331
1331
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1332
1332
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1333
1333
|
hasAddresses: z.ZodBoolean;
|
|
1334
|
-
ordersPlaced: z.
|
|
1334
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1335
1335
|
totalSpent: z.ZodString;
|
|
1336
1336
|
createdAt: z.ZodString;
|
|
1337
1337
|
updatedAt: z.ZodString;
|
|
1338
1338
|
}, z.core.$strip>>;
|
|
1339
1339
|
pagination: z.ZodObject<{
|
|
1340
|
-
from: z.
|
|
1341
|
-
to: z.
|
|
1342
|
-
itemsPerPage: z.
|
|
1343
|
-
totalItems: z.
|
|
1344
|
-
currentPage: z.
|
|
1345
|
-
lastPage: z.
|
|
1340
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1341
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1342
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1343
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1344
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1345
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1346
1346
|
}, z.core.$strip>;
|
|
1347
1347
|
}, z.core.$strip>;
|
|
1348
1348
|
readonly querySchema: z.ZodObject<{
|
|
@@ -1451,18 +1451,18 @@ declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1451
1451
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1452
1452
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1453
1453
|
hasAddresses: z.ZodBoolean;
|
|
1454
|
-
ordersPlaced: z.
|
|
1454
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1455
1455
|
totalSpent: z.ZodString;
|
|
1456
1456
|
createdAt: z.ZodString;
|
|
1457
1457
|
updatedAt: z.ZodString;
|
|
1458
1458
|
}, z.core.$strip>>;
|
|
1459
1459
|
pagination: z.ZodObject<{
|
|
1460
|
-
from: z.
|
|
1461
|
-
to: z.
|
|
1462
|
-
itemsPerPage: z.
|
|
1463
|
-
totalItems: z.
|
|
1464
|
-
currentPage: z.
|
|
1465
|
-
lastPage: z.
|
|
1460
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1461
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1462
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1463
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1464
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1465
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1466
1466
|
}, z.core.$strip>;
|
|
1467
1467
|
}, z.core.$strip>;
|
|
1468
1468
|
type GetCustomersFromPointOfSaleResponse = z.infer<typeof getCustomersFromPointOfSaleResponseSchema>;
|
|
@@ -1480,18 +1480,18 @@ declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getC
|
|
|
1480
1480
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1481
1481
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1482
1482
|
hasAddresses: z.ZodBoolean;
|
|
1483
|
-
ordersPlaced: z.
|
|
1483
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1484
1484
|
totalSpent: z.ZodString;
|
|
1485
1485
|
createdAt: z.ZodString;
|
|
1486
1486
|
updatedAt: z.ZodString;
|
|
1487
1487
|
}, z.core.$strip>>;
|
|
1488
1488
|
pagination: z.ZodObject<{
|
|
1489
|
-
from: z.
|
|
1490
|
-
to: z.
|
|
1491
|
-
itemsPerPage: z.
|
|
1492
|
-
totalItems: z.
|
|
1493
|
-
currentPage: z.
|
|
1494
|
-
lastPage: z.
|
|
1489
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1490
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1491
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1492
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1493
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1494
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1495
1495
|
}, z.core.$strip>;
|
|
1496
1496
|
}, z.core.$strip>;
|
|
1497
1497
|
readonly querySchema: z.ZodObject<{
|
|
@@ -1561,7 +1561,7 @@ declare const updateCustomerResponseSchema: z.ZodObject<{
|
|
|
1561
1561
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1562
1562
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1563
1563
|
hasAddresses: z.ZodBoolean;
|
|
1564
|
-
ordersPlaced: z.
|
|
1564
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1565
1565
|
totalSpent: z.ZodString;
|
|
1566
1566
|
createdAt: z.ZodString;
|
|
1567
1567
|
updatedAt: z.ZodString;
|
|
@@ -1589,7 +1589,7 @@ declare class UpdateCustomer extends AbstractApiRequest<typeof updateCustomerInp
|
|
|
1589
1589
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1590
1590
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1591
1591
|
hasAddresses: z.ZodBoolean;
|
|
1592
|
-
ordersPlaced: z.
|
|
1592
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1593
1593
|
totalSpent: z.ZodString;
|
|
1594
1594
|
createdAt: z.ZodString;
|
|
1595
1595
|
updatedAt: z.ZodString;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare const customerSchema: z.ZodObject<{
|
|
|
11
11
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
12
12
|
hasBusinessProfiles: z.ZodBoolean;
|
|
13
13
|
hasAddresses: z.ZodBoolean;
|
|
14
|
-
ordersPlaced: z.
|
|
14
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
15
15
|
totalSpent: z.ZodString;
|
|
16
16
|
createdAt: z.ZodString;
|
|
17
17
|
updatedAt: z.ZodString;
|
|
@@ -25,7 +25,7 @@ declare const customerDetailsSchema: z.ZodObject<{
|
|
|
25
25
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
26
26
|
hasBusinessProfiles: z.ZodBoolean;
|
|
27
27
|
hasAddresses: z.ZodBoolean;
|
|
28
|
-
ordersPlaced: z.
|
|
28
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
29
29
|
totalSpent: z.ZodString;
|
|
30
30
|
createdAt: z.ZodString;
|
|
31
31
|
updatedAt: z.ZodString;
|
|
@@ -410,12 +410,12 @@ declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
|
410
410
|
updatedAt: z.ZodString;
|
|
411
411
|
}, z.core.$strip>>;
|
|
412
412
|
pagination: z.ZodObject<{
|
|
413
|
-
from: z.
|
|
414
|
-
to: z.
|
|
415
|
-
itemsPerPage: z.
|
|
416
|
-
totalItems: z.
|
|
417
|
-
currentPage: z.
|
|
418
|
-
lastPage: z.
|
|
413
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
414
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
415
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
416
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
417
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
418
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
419
419
|
}, z.core.$strip>;
|
|
420
420
|
}, z.core.$strip>;
|
|
421
421
|
type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
|
|
@@ -443,12 +443,12 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
|
|
|
443
443
|
updatedAt: z.ZodString;
|
|
444
444
|
}, z.core.$strip>>;
|
|
445
445
|
pagination: z.ZodObject<{
|
|
446
|
-
from: z.
|
|
447
|
-
to: z.
|
|
448
|
-
itemsPerPage: z.
|
|
449
|
-
totalItems: z.
|
|
450
|
-
currentPage: z.
|
|
451
|
-
lastPage: z.
|
|
446
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
447
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
448
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
449
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
450
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
451
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
452
452
|
}, z.core.$strip>;
|
|
453
453
|
}, z.core.$strip>;
|
|
454
454
|
readonly querySchema: z.ZodObject<{
|
|
@@ -848,12 +848,12 @@ declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
|
848
848
|
updatedAt: z.ZodString;
|
|
849
849
|
}, z.core.$strip>>;
|
|
850
850
|
pagination: z.ZodObject<{
|
|
851
|
-
from: z.
|
|
852
|
-
to: z.
|
|
853
|
-
itemsPerPage: z.
|
|
854
|
-
totalItems: z.
|
|
855
|
-
currentPage: z.
|
|
856
|
-
lastPage: z.
|
|
851
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
852
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
853
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
854
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
855
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
856
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
857
857
|
}, z.core.$strip>;
|
|
858
858
|
}, z.core.$strip>;
|
|
859
859
|
type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
|
|
@@ -884,12 +884,12 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
|
|
|
884
884
|
updatedAt: z.ZodString;
|
|
885
885
|
}, z.core.$strip>>;
|
|
886
886
|
pagination: z.ZodObject<{
|
|
887
|
-
from: z.
|
|
888
|
-
to: z.
|
|
889
|
-
itemsPerPage: z.
|
|
890
|
-
totalItems: z.
|
|
891
|
-
currentPage: z.
|
|
892
|
-
lastPage: z.
|
|
887
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
888
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
889
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
890
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
891
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
892
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
893
893
|
}, z.core.$strip>;
|
|
894
894
|
}, z.core.$strip>;
|
|
895
895
|
readonly querySchema: z.ZodObject<{
|
|
@@ -1139,7 +1139,7 @@ declare const createCustomerResponseSchema: z.ZodObject<{
|
|
|
1139
1139
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1140
1140
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1141
1141
|
hasAddresses: z.ZodBoolean;
|
|
1142
|
-
ordersPlaced: z.
|
|
1142
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1143
1143
|
totalSpent: z.ZodString;
|
|
1144
1144
|
createdAt: z.ZodString;
|
|
1145
1145
|
updatedAt: z.ZodString;
|
|
@@ -1168,7 +1168,7 @@ declare class CreateCustomer extends AbstractApiRequest<typeof createCustomerInp
|
|
|
1168
1168
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1169
1169
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1170
1170
|
hasAddresses: z.ZodBoolean;
|
|
1171
|
-
ordersPlaced: z.
|
|
1171
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1172
1172
|
totalSpent: z.ZodString;
|
|
1173
1173
|
createdAt: z.ZodString;
|
|
1174
1174
|
updatedAt: z.ZodString;
|
|
@@ -1208,7 +1208,7 @@ declare const getCustomerDetailsResponseSchema: z.ZodObject<{
|
|
|
1208
1208
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1209
1209
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1210
1210
|
hasAddresses: z.ZodBoolean;
|
|
1211
|
-
ordersPlaced: z.
|
|
1211
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1212
1212
|
totalSpent: z.ZodString;
|
|
1213
1213
|
createdAt: z.ZodString;
|
|
1214
1214
|
updatedAt: z.ZodString;
|
|
@@ -1231,7 +1231,7 @@ declare class GetCustomerDetails extends AbstractApiRequest<typeof getCustomerDe
|
|
|
1231
1231
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1232
1232
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1233
1233
|
hasAddresses: z.ZodBoolean;
|
|
1234
|
-
ordersPlaced: z.
|
|
1234
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1235
1235
|
totalSpent: z.ZodString;
|
|
1236
1236
|
createdAt: z.ZodString;
|
|
1237
1237
|
updatedAt: z.ZodString;
|
|
@@ -1302,18 +1302,18 @@ declare const getCustomersResponseSchema: z.ZodObject<{
|
|
|
1302
1302
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1303
1303
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1304
1304
|
hasAddresses: z.ZodBoolean;
|
|
1305
|
-
ordersPlaced: z.
|
|
1305
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1306
1306
|
totalSpent: z.ZodString;
|
|
1307
1307
|
createdAt: z.ZodString;
|
|
1308
1308
|
updatedAt: z.ZodString;
|
|
1309
1309
|
}, z.core.$strip>>;
|
|
1310
1310
|
pagination: z.ZodObject<{
|
|
1311
|
-
from: z.
|
|
1312
|
-
to: z.
|
|
1313
|
-
itemsPerPage: z.
|
|
1314
|
-
totalItems: z.
|
|
1315
|
-
currentPage: z.
|
|
1316
|
-
lastPage: z.
|
|
1311
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1312
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1313
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1314
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1315
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1316
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1317
1317
|
}, z.core.$strip>;
|
|
1318
1318
|
}, z.core.$strip>;
|
|
1319
1319
|
type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
|
|
@@ -1331,18 +1331,18 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
|
|
|
1331
1331
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1332
1332
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1333
1333
|
hasAddresses: z.ZodBoolean;
|
|
1334
|
-
ordersPlaced: z.
|
|
1334
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1335
1335
|
totalSpent: z.ZodString;
|
|
1336
1336
|
createdAt: z.ZodString;
|
|
1337
1337
|
updatedAt: z.ZodString;
|
|
1338
1338
|
}, z.core.$strip>>;
|
|
1339
1339
|
pagination: z.ZodObject<{
|
|
1340
|
-
from: z.
|
|
1341
|
-
to: z.
|
|
1342
|
-
itemsPerPage: z.
|
|
1343
|
-
totalItems: z.
|
|
1344
|
-
currentPage: z.
|
|
1345
|
-
lastPage: z.
|
|
1340
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1341
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1342
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1343
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1344
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1345
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1346
1346
|
}, z.core.$strip>;
|
|
1347
1347
|
}, z.core.$strip>;
|
|
1348
1348
|
readonly querySchema: z.ZodObject<{
|
|
@@ -1451,18 +1451,18 @@ declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1451
1451
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1452
1452
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1453
1453
|
hasAddresses: z.ZodBoolean;
|
|
1454
|
-
ordersPlaced: z.
|
|
1454
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1455
1455
|
totalSpent: z.ZodString;
|
|
1456
1456
|
createdAt: z.ZodString;
|
|
1457
1457
|
updatedAt: z.ZodString;
|
|
1458
1458
|
}, z.core.$strip>>;
|
|
1459
1459
|
pagination: z.ZodObject<{
|
|
1460
|
-
from: z.
|
|
1461
|
-
to: z.
|
|
1462
|
-
itemsPerPage: z.
|
|
1463
|
-
totalItems: z.
|
|
1464
|
-
currentPage: z.
|
|
1465
|
-
lastPage: z.
|
|
1460
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1461
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1462
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1463
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1464
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1465
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1466
1466
|
}, z.core.$strip>;
|
|
1467
1467
|
}, z.core.$strip>;
|
|
1468
1468
|
type GetCustomersFromPointOfSaleResponse = z.infer<typeof getCustomersFromPointOfSaleResponseSchema>;
|
|
@@ -1480,18 +1480,18 @@ declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getC
|
|
|
1480
1480
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1481
1481
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1482
1482
|
hasAddresses: z.ZodBoolean;
|
|
1483
|
-
ordersPlaced: z.
|
|
1483
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1484
1484
|
totalSpent: z.ZodString;
|
|
1485
1485
|
createdAt: z.ZodString;
|
|
1486
1486
|
updatedAt: z.ZodString;
|
|
1487
1487
|
}, z.core.$strip>>;
|
|
1488
1488
|
pagination: z.ZodObject<{
|
|
1489
|
-
from: z.
|
|
1490
|
-
to: z.
|
|
1491
|
-
itemsPerPage: z.
|
|
1492
|
-
totalItems: z.
|
|
1493
|
-
currentPage: z.
|
|
1494
|
-
lastPage: z.
|
|
1489
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1490
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1491
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1492
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1493
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1494
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1495
1495
|
}, z.core.$strip>;
|
|
1496
1496
|
}, z.core.$strip>;
|
|
1497
1497
|
readonly querySchema: z.ZodObject<{
|
|
@@ -1561,7 +1561,7 @@ declare const updateCustomerResponseSchema: z.ZodObject<{
|
|
|
1561
1561
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1562
1562
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1563
1563
|
hasAddresses: z.ZodBoolean;
|
|
1564
|
-
ordersPlaced: z.
|
|
1564
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1565
1565
|
totalSpent: z.ZodString;
|
|
1566
1566
|
createdAt: z.ZodString;
|
|
1567
1567
|
updatedAt: z.ZodString;
|
|
@@ -1589,7 +1589,7 @@ declare class UpdateCustomer extends AbstractApiRequest<typeof updateCustomerInp
|
|
|
1589
1589
|
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1590
1590
|
hasBusinessProfiles: z.ZodBoolean;
|
|
1591
1591
|
hasAddresses: z.ZodBoolean;
|
|
1592
|
-
ordersPlaced: z.
|
|
1592
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1593
1593
|
totalSpent: z.ZodString;
|
|
1594
1594
|
createdAt: z.ZodString;
|
|
1595
1595
|
updatedAt: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -11179,7 +11179,7 @@ var customerSchema = external_exports.object({
|
|
|
11179
11179
|
phoneNumber: external_exports.string().nullable(),
|
|
11180
11180
|
hasBusinessProfiles: external_exports.boolean(),
|
|
11181
11181
|
hasAddresses: external_exports.boolean(),
|
|
11182
|
-
ordersPlaced: external_exports.number(),
|
|
11182
|
+
ordersPlaced: external_exports.coerce.number(),
|
|
11183
11183
|
totalSpent: external_exports.string(),
|
|
11184
11184
|
createdAt: datetimeSchema,
|
|
11185
11185
|
updatedAt: datetimeSchema
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-customer",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Customer and CustomerAddress Management",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.2.
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.2.2",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.2.2",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.2.2",
|
|
24
|
+
"@deliverart/sdk-js-user": "2.2.2"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|