@deliverart/sdk-js-customer 2.6.0 → 2.6.1
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 +4 -4
- package/dist/index.d.cts +134 -16
- package/dist/index.d.ts +134 -16
- package/dist/index.js +8 -8
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -11428,7 +11428,7 @@ var getCustomerAddressesQuerySchema = external_exports.object({
|
|
|
11428
11428
|
page: external_exports.coerce.number().optional()
|
|
11429
11429
|
}).extend(import_sdk_js_global_types4.timestampsFilterSchema.shape);
|
|
11430
11430
|
var getCustomerAddressesInputSchema = external_exports.undefined();
|
|
11431
|
-
var getCustomerAddressesResponseSchema = (0, import_sdk_js_global_types4.
|
|
11431
|
+
var getCustomerAddressesResponseSchema = (0, import_sdk_js_global_types4.mixedPaginationSchema)(customerAddressSchema);
|
|
11432
11432
|
var GetCustomerAddresses = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
11433
11433
|
constructor(options) {
|
|
11434
11434
|
super(void 0, options);
|
|
@@ -11572,7 +11572,7 @@ var getCustomerBusinessProfilesQuerySchema = external_exports.object({
|
|
|
11572
11572
|
page: external_exports.coerce.number().optional()
|
|
11573
11573
|
}).extend(import_sdk_js_global_types7.timestampsFilterSchema.shape);
|
|
11574
11574
|
var getCustomerBusinessProfilesInputSchema = external_exports.undefined();
|
|
11575
|
-
var getCustomerBusinessProfilesResponseSchema = (0, import_sdk_js_global_types7.
|
|
11575
|
+
var getCustomerBusinessProfilesResponseSchema = (0, import_sdk_js_global_types7.mixedPaginationSchema)(
|
|
11576
11576
|
customerBusinessProfileSchema
|
|
11577
11577
|
);
|
|
11578
11578
|
var GetCustomerBusinessProfiles = class extends import_sdk_js_core10.AbstractApiRequest {
|
|
@@ -11716,7 +11716,7 @@ var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
|
11716
11716
|
var import_sdk_js_global_types10 = require("@deliverart/sdk-js-global-types");
|
|
11717
11717
|
var getCustomersQuerySchema = customersQuerySchema;
|
|
11718
11718
|
var getCustomersInputSchema = external_exports.undefined();
|
|
11719
|
-
var getCustomersResponseSchema = (0, import_sdk_js_global_types10.
|
|
11719
|
+
var getCustomersResponseSchema = (0, import_sdk_js_global_types10.mixedPaginationSchema)(customerSchema);
|
|
11720
11720
|
var GetCustomers = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
11721
11721
|
constructor(options) {
|
|
11722
11722
|
super(void 0, options);
|
|
@@ -11741,7 +11741,7 @@ var import_sdk_js_core17 = require("@deliverart/sdk-js-core");
|
|
|
11741
11741
|
var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
|
|
11742
11742
|
var getCustomersFromPointOfSaleQuerySchema = customersQuerySchema;
|
|
11743
11743
|
var getCustomersFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11744
|
-
var getCustomersFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types11.
|
|
11744
|
+
var getCustomersFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types11.mixedPaginationSchema)(customerSchema);
|
|
11745
11745
|
var GetCustomersFromPointOfSale = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
11746
11746
|
constructor(pointOfSaleId, options) {
|
|
11747
11747
|
super(void 0, options);
|
package/dist/index.d.cts
CHANGED
|
@@ -390,7 +390,7 @@ declare const getCustomerAddressesQuerySchema: z.ZodObject<{
|
|
|
390
390
|
type GetCustomerAddressesQueryParams = z.infer<typeof getCustomerAddressesQuerySchema>;
|
|
391
391
|
declare const getCustomerAddressesInputSchema: z.ZodUndefined;
|
|
392
392
|
type GetCustomerAddressesInput = z.input<typeof getCustomerAddressesInputSchema>;
|
|
393
|
-
declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
393
|
+
declare const getCustomerAddressesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
394
394
|
data: z.ZodArray<z.ZodObject<{
|
|
395
395
|
id: z.ZodString;
|
|
396
396
|
address: z.ZodObject<{
|
|
@@ -416,14 +416,30 @@ declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
|
416
416
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
417
417
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
418
418
|
}, z.core.$strip>;
|
|
419
|
-
}, z.core.$strip
|
|
419
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
420
|
+
id: z.ZodString;
|
|
421
|
+
address: z.ZodObject<{
|
|
422
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
423
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
426
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
427
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
location: z.ZodObject<{
|
|
430
|
+
latitude: z.ZodNumber;
|
|
431
|
+
longitude: z.ZodNumber;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
createdAt: z.ZodString;
|
|
434
|
+
updatedAt: z.ZodString;
|
|
435
|
+
}, z.core.$strip>>]>;
|
|
420
436
|
type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
|
|
421
437
|
declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomerAddressesInputSchema, typeof getCustomerAddressesResponseSchema, GetCustomerAddressesQueryParams> {
|
|
422
438
|
readonly method: "GET";
|
|
423
439
|
readonly contentType: "application/json";
|
|
424
440
|
readonly accept: "application/json";
|
|
425
441
|
readonly inputSchema: z.ZodUndefined;
|
|
426
|
-
readonly outputSchema: z.ZodObject<{
|
|
442
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
427
443
|
data: z.ZodArray<z.ZodObject<{
|
|
428
444
|
id: z.ZodString;
|
|
429
445
|
address: z.ZodObject<{
|
|
@@ -449,7 +465,23 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
|
|
|
449
465
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
450
466
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
451
467
|
}, z.core.$strip>;
|
|
452
|
-
}, z.core.$strip
|
|
468
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
469
|
+
id: z.ZodString;
|
|
470
|
+
address: z.ZodObject<{
|
|
471
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
472
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
473
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
474
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
475
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
476
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
location: z.ZodObject<{
|
|
479
|
+
latitude: z.ZodNumber;
|
|
480
|
+
longitude: z.ZodNumber;
|
|
481
|
+
}, z.core.$strip>;
|
|
482
|
+
createdAt: z.ZodString;
|
|
483
|
+
updatedAt: z.ZodString;
|
|
484
|
+
}, z.core.$strip>>]>;
|
|
453
485
|
readonly querySchema: z.ZodObject<{
|
|
454
486
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
455
487
|
asc: "asc";
|
|
@@ -859,7 +891,7 @@ declare const getCustomerBusinessProfilesQuerySchema: z.ZodObject<{
|
|
|
859
891
|
type GetCustomerBusinessProfilesQueryParams = z.infer<typeof getCustomerBusinessProfilesQuerySchema>;
|
|
860
892
|
declare const getCustomerBusinessProfilesInputSchema: z.ZodUndefined;
|
|
861
893
|
type GetCustomerBusinessProfilesInput = z.infer<typeof getCustomerBusinessProfilesInputSchema>;
|
|
862
|
-
declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
894
|
+
declare const getCustomerBusinessProfilesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
863
895
|
data: z.ZodArray<z.ZodObject<{
|
|
864
896
|
id: z.ZodString;
|
|
865
897
|
businessName: z.ZodString;
|
|
@@ -888,14 +920,33 @@ declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
|
888
920
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
889
921
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
890
922
|
}, z.core.$strip>;
|
|
891
|
-
}, z.core.$strip
|
|
923
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
924
|
+
id: z.ZodString;
|
|
925
|
+
businessName: z.ZodString;
|
|
926
|
+
vat: z.ZodString;
|
|
927
|
+
taxCode: z.ZodString;
|
|
928
|
+
billingAddress: z.ZodObject<{
|
|
929
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
930
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
931
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
932
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
933
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
934
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
935
|
+
}, z.core.$strip>;
|
|
936
|
+
billingData: z.ZodObject<{
|
|
937
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
938
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
939
|
+
}, z.core.$strip>;
|
|
940
|
+
createdAt: z.ZodString;
|
|
941
|
+
updatedAt: z.ZodString;
|
|
942
|
+
}, z.core.$strip>>]>;
|
|
892
943
|
type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
|
|
893
944
|
declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getCustomerBusinessProfilesInputSchema, typeof getCustomerBusinessProfilesResponseSchema, GetCustomerBusinessProfilesQueryParams> {
|
|
894
945
|
readonly method: "GET";
|
|
895
946
|
readonly contentType: "application/json";
|
|
896
947
|
readonly accept: "application/json";
|
|
897
948
|
readonly inputSchema: z.ZodUndefined;
|
|
898
|
-
readonly outputSchema: z.ZodObject<{
|
|
949
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
899
950
|
data: z.ZodArray<z.ZodObject<{
|
|
900
951
|
id: z.ZodString;
|
|
901
952
|
businessName: z.ZodString;
|
|
@@ -924,7 +975,26 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
|
|
|
924
975
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
925
976
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
926
977
|
}, z.core.$strip>;
|
|
927
|
-
}, z.core.$strip
|
|
978
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
979
|
+
id: z.ZodString;
|
|
980
|
+
businessName: z.ZodString;
|
|
981
|
+
vat: z.ZodString;
|
|
982
|
+
taxCode: z.ZodString;
|
|
983
|
+
billingAddress: z.ZodObject<{
|
|
984
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
985
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
986
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
987
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
988
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
989
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
990
|
+
}, z.core.$strip>;
|
|
991
|
+
billingData: z.ZodObject<{
|
|
992
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
993
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
994
|
+
}, z.core.$strip>;
|
|
995
|
+
createdAt: z.ZodString;
|
|
996
|
+
updatedAt: z.ZodString;
|
|
997
|
+
}, z.core.$strip>>]>;
|
|
928
998
|
readonly querySchema: z.ZodObject<{
|
|
929
999
|
'order[businessName]': z.ZodOptional<z.ZodEnum<{
|
|
930
1000
|
asc: "asc";
|
|
@@ -1366,7 +1436,7 @@ declare const getCustomersQuerySchema: z.ZodObject<{
|
|
|
1366
1436
|
type GetCustomersQueryParams = z.infer<typeof getCustomersQuerySchema>;
|
|
1367
1437
|
declare const getCustomersInputSchema: z.ZodUndefined;
|
|
1368
1438
|
type GetCustomersInput = z.input<typeof getCustomersInputSchema>;
|
|
1369
|
-
declare const getCustomersResponseSchema: z.ZodObject<{
|
|
1439
|
+
declare const getCustomersResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1370
1440
|
data: z.ZodArray<z.ZodObject<{
|
|
1371
1441
|
id: z.ZodString;
|
|
1372
1442
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1388,14 +1458,26 @@ declare const getCustomersResponseSchema: z.ZodObject<{
|
|
|
1388
1458
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1389
1459
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1390
1460
|
}, z.core.$strip>;
|
|
1391
|
-
}, z.core.$strip
|
|
1461
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1462
|
+
id: z.ZodString;
|
|
1463
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1464
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1465
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1466
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1467
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1468
|
+
hasAddresses: z.ZodBoolean;
|
|
1469
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1470
|
+
totalSpent: z.ZodString;
|
|
1471
|
+
createdAt: z.ZodString;
|
|
1472
|
+
updatedAt: z.ZodString;
|
|
1473
|
+
}, z.core.$strip>>]>;
|
|
1392
1474
|
type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
|
|
1393
1475
|
declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSchema, typeof getCustomersResponseSchema, GetCustomersQueryParams> {
|
|
1394
1476
|
readonly method: "GET";
|
|
1395
1477
|
readonly contentType: "application/json";
|
|
1396
1478
|
readonly accept: "application/json";
|
|
1397
1479
|
readonly inputSchema: z.ZodUndefined;
|
|
1398
|
-
readonly outputSchema: z.ZodObject<{
|
|
1480
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1399
1481
|
data: z.ZodArray<z.ZodObject<{
|
|
1400
1482
|
id: z.ZodString;
|
|
1401
1483
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1417,7 +1499,19 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
|
|
|
1417
1499
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1418
1500
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1419
1501
|
}, z.core.$strip>;
|
|
1420
|
-
}, z.core.$strip
|
|
1502
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1503
|
+
id: z.ZodString;
|
|
1504
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1505
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1506
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1507
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1508
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1509
|
+
hasAddresses: z.ZodBoolean;
|
|
1510
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1511
|
+
totalSpent: z.ZodString;
|
|
1512
|
+
createdAt: z.ZodString;
|
|
1513
|
+
updatedAt: z.ZodString;
|
|
1514
|
+
}, z.core.$strip>>]>;
|
|
1421
1515
|
readonly querySchema: z.ZodObject<{
|
|
1422
1516
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1423
1517
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -1528,7 +1622,7 @@ declare const getCustomersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
1528
1622
|
type GetCustomersFromPointOfSaleQueryParams = z.infer<typeof getCustomersFromPointOfSaleQuerySchema>;
|
|
1529
1623
|
declare const getCustomersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1530
1624
|
type GetCustomersFromPointOfSaleInput = z.input<typeof getCustomersFromPointOfSaleInputSchema>;
|
|
1531
|
-
declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1625
|
+
declare const getCustomersFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1532
1626
|
data: z.ZodArray<z.ZodObject<{
|
|
1533
1627
|
id: z.ZodString;
|
|
1534
1628
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1550,14 +1644,26 @@ declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1550
1644
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1551
1645
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1552
1646
|
}, z.core.$strip>;
|
|
1553
|
-
}, z.core.$strip
|
|
1647
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1648
|
+
id: z.ZodString;
|
|
1649
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1650
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1651
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1652
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1653
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1654
|
+
hasAddresses: z.ZodBoolean;
|
|
1655
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1656
|
+
totalSpent: z.ZodString;
|
|
1657
|
+
createdAt: z.ZodString;
|
|
1658
|
+
updatedAt: z.ZodString;
|
|
1659
|
+
}, z.core.$strip>>]>;
|
|
1554
1660
|
type GetCustomersFromPointOfSaleResponse = z.infer<typeof getCustomersFromPointOfSaleResponseSchema>;
|
|
1555
1661
|
declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getCustomersFromPointOfSaleInputSchema, typeof getCustomersFromPointOfSaleResponseSchema, GetCustomersFromPointOfSaleQueryParams> {
|
|
1556
1662
|
readonly method: "GET";
|
|
1557
1663
|
readonly contentType: "application/json";
|
|
1558
1664
|
readonly accept: "application/json";
|
|
1559
1665
|
readonly inputSchema: z.ZodUndefined;
|
|
1560
|
-
readonly outputSchema: z.ZodObject<{
|
|
1666
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1561
1667
|
data: z.ZodArray<z.ZodObject<{
|
|
1562
1668
|
id: z.ZodString;
|
|
1563
1669
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1579,7 +1685,19 @@ declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getC
|
|
|
1579
1685
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1580
1686
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1581
1687
|
}, z.core.$strip>;
|
|
1582
|
-
}, z.core.$strip
|
|
1688
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1689
|
+
id: z.ZodString;
|
|
1690
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1691
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1692
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1693
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1694
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1695
|
+
hasAddresses: z.ZodBoolean;
|
|
1696
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1697
|
+
totalSpent: z.ZodString;
|
|
1698
|
+
createdAt: z.ZodString;
|
|
1699
|
+
updatedAt: z.ZodString;
|
|
1700
|
+
}, z.core.$strip>>]>;
|
|
1583
1701
|
readonly querySchema: z.ZodObject<{
|
|
1584
1702
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1585
1703
|
lastName: z.ZodOptional<z.ZodString>;
|
package/dist/index.d.ts
CHANGED
|
@@ -390,7 +390,7 @@ declare const getCustomerAddressesQuerySchema: z.ZodObject<{
|
|
|
390
390
|
type GetCustomerAddressesQueryParams = z.infer<typeof getCustomerAddressesQuerySchema>;
|
|
391
391
|
declare const getCustomerAddressesInputSchema: z.ZodUndefined;
|
|
392
392
|
type GetCustomerAddressesInput = z.input<typeof getCustomerAddressesInputSchema>;
|
|
393
|
-
declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
393
|
+
declare const getCustomerAddressesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
394
394
|
data: z.ZodArray<z.ZodObject<{
|
|
395
395
|
id: z.ZodString;
|
|
396
396
|
address: z.ZodObject<{
|
|
@@ -416,14 +416,30 @@ declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
|
416
416
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
417
417
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
418
418
|
}, z.core.$strip>;
|
|
419
|
-
}, z.core.$strip
|
|
419
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
420
|
+
id: z.ZodString;
|
|
421
|
+
address: z.ZodObject<{
|
|
422
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
423
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
426
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
427
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
location: z.ZodObject<{
|
|
430
|
+
latitude: z.ZodNumber;
|
|
431
|
+
longitude: z.ZodNumber;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
createdAt: z.ZodString;
|
|
434
|
+
updatedAt: z.ZodString;
|
|
435
|
+
}, z.core.$strip>>]>;
|
|
420
436
|
type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
|
|
421
437
|
declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomerAddressesInputSchema, typeof getCustomerAddressesResponseSchema, GetCustomerAddressesQueryParams> {
|
|
422
438
|
readonly method: "GET";
|
|
423
439
|
readonly contentType: "application/json";
|
|
424
440
|
readonly accept: "application/json";
|
|
425
441
|
readonly inputSchema: z.ZodUndefined;
|
|
426
|
-
readonly outputSchema: z.ZodObject<{
|
|
442
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
427
443
|
data: z.ZodArray<z.ZodObject<{
|
|
428
444
|
id: z.ZodString;
|
|
429
445
|
address: z.ZodObject<{
|
|
@@ -449,7 +465,23 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
|
|
|
449
465
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
450
466
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
451
467
|
}, z.core.$strip>;
|
|
452
|
-
}, z.core.$strip
|
|
468
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
469
|
+
id: z.ZodString;
|
|
470
|
+
address: z.ZodObject<{
|
|
471
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
472
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
473
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
474
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
475
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
476
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
location: z.ZodObject<{
|
|
479
|
+
latitude: z.ZodNumber;
|
|
480
|
+
longitude: z.ZodNumber;
|
|
481
|
+
}, z.core.$strip>;
|
|
482
|
+
createdAt: z.ZodString;
|
|
483
|
+
updatedAt: z.ZodString;
|
|
484
|
+
}, z.core.$strip>>]>;
|
|
453
485
|
readonly querySchema: z.ZodObject<{
|
|
454
486
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
455
487
|
asc: "asc";
|
|
@@ -859,7 +891,7 @@ declare const getCustomerBusinessProfilesQuerySchema: z.ZodObject<{
|
|
|
859
891
|
type GetCustomerBusinessProfilesQueryParams = z.infer<typeof getCustomerBusinessProfilesQuerySchema>;
|
|
860
892
|
declare const getCustomerBusinessProfilesInputSchema: z.ZodUndefined;
|
|
861
893
|
type GetCustomerBusinessProfilesInput = z.infer<typeof getCustomerBusinessProfilesInputSchema>;
|
|
862
|
-
declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
894
|
+
declare const getCustomerBusinessProfilesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
863
895
|
data: z.ZodArray<z.ZodObject<{
|
|
864
896
|
id: z.ZodString;
|
|
865
897
|
businessName: z.ZodString;
|
|
@@ -888,14 +920,33 @@ declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
|
888
920
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
889
921
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
890
922
|
}, z.core.$strip>;
|
|
891
|
-
}, z.core.$strip
|
|
923
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
924
|
+
id: z.ZodString;
|
|
925
|
+
businessName: z.ZodString;
|
|
926
|
+
vat: z.ZodString;
|
|
927
|
+
taxCode: z.ZodString;
|
|
928
|
+
billingAddress: z.ZodObject<{
|
|
929
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
930
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
931
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
932
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
933
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
934
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
935
|
+
}, z.core.$strip>;
|
|
936
|
+
billingData: z.ZodObject<{
|
|
937
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
938
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
939
|
+
}, z.core.$strip>;
|
|
940
|
+
createdAt: z.ZodString;
|
|
941
|
+
updatedAt: z.ZodString;
|
|
942
|
+
}, z.core.$strip>>]>;
|
|
892
943
|
type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
|
|
893
944
|
declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getCustomerBusinessProfilesInputSchema, typeof getCustomerBusinessProfilesResponseSchema, GetCustomerBusinessProfilesQueryParams> {
|
|
894
945
|
readonly method: "GET";
|
|
895
946
|
readonly contentType: "application/json";
|
|
896
947
|
readonly accept: "application/json";
|
|
897
948
|
readonly inputSchema: z.ZodUndefined;
|
|
898
|
-
readonly outputSchema: z.ZodObject<{
|
|
949
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
899
950
|
data: z.ZodArray<z.ZodObject<{
|
|
900
951
|
id: z.ZodString;
|
|
901
952
|
businessName: z.ZodString;
|
|
@@ -924,7 +975,26 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
|
|
|
924
975
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
925
976
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
926
977
|
}, z.core.$strip>;
|
|
927
|
-
}, z.core.$strip
|
|
978
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
979
|
+
id: z.ZodString;
|
|
980
|
+
businessName: z.ZodString;
|
|
981
|
+
vat: z.ZodString;
|
|
982
|
+
taxCode: z.ZodString;
|
|
983
|
+
billingAddress: z.ZodObject<{
|
|
984
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
985
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
986
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
987
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
988
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
989
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
990
|
+
}, z.core.$strip>;
|
|
991
|
+
billingData: z.ZodObject<{
|
|
992
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
993
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
994
|
+
}, z.core.$strip>;
|
|
995
|
+
createdAt: z.ZodString;
|
|
996
|
+
updatedAt: z.ZodString;
|
|
997
|
+
}, z.core.$strip>>]>;
|
|
928
998
|
readonly querySchema: z.ZodObject<{
|
|
929
999
|
'order[businessName]': z.ZodOptional<z.ZodEnum<{
|
|
930
1000
|
asc: "asc";
|
|
@@ -1366,7 +1436,7 @@ declare const getCustomersQuerySchema: z.ZodObject<{
|
|
|
1366
1436
|
type GetCustomersQueryParams = z.infer<typeof getCustomersQuerySchema>;
|
|
1367
1437
|
declare const getCustomersInputSchema: z.ZodUndefined;
|
|
1368
1438
|
type GetCustomersInput = z.input<typeof getCustomersInputSchema>;
|
|
1369
|
-
declare const getCustomersResponseSchema: z.ZodObject<{
|
|
1439
|
+
declare const getCustomersResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1370
1440
|
data: z.ZodArray<z.ZodObject<{
|
|
1371
1441
|
id: z.ZodString;
|
|
1372
1442
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1388,14 +1458,26 @@ declare const getCustomersResponseSchema: z.ZodObject<{
|
|
|
1388
1458
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1389
1459
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1390
1460
|
}, z.core.$strip>;
|
|
1391
|
-
}, z.core.$strip
|
|
1461
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1462
|
+
id: z.ZodString;
|
|
1463
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1464
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1465
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1466
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1467
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1468
|
+
hasAddresses: z.ZodBoolean;
|
|
1469
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1470
|
+
totalSpent: z.ZodString;
|
|
1471
|
+
createdAt: z.ZodString;
|
|
1472
|
+
updatedAt: z.ZodString;
|
|
1473
|
+
}, z.core.$strip>>]>;
|
|
1392
1474
|
type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
|
|
1393
1475
|
declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSchema, typeof getCustomersResponseSchema, GetCustomersQueryParams> {
|
|
1394
1476
|
readonly method: "GET";
|
|
1395
1477
|
readonly contentType: "application/json";
|
|
1396
1478
|
readonly accept: "application/json";
|
|
1397
1479
|
readonly inputSchema: z.ZodUndefined;
|
|
1398
|
-
readonly outputSchema: z.ZodObject<{
|
|
1480
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1399
1481
|
data: z.ZodArray<z.ZodObject<{
|
|
1400
1482
|
id: z.ZodString;
|
|
1401
1483
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1417,7 +1499,19 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
|
|
|
1417
1499
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1418
1500
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1419
1501
|
}, z.core.$strip>;
|
|
1420
|
-
}, z.core.$strip
|
|
1502
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1503
|
+
id: z.ZodString;
|
|
1504
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1505
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1506
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1507
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1508
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1509
|
+
hasAddresses: z.ZodBoolean;
|
|
1510
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1511
|
+
totalSpent: z.ZodString;
|
|
1512
|
+
createdAt: z.ZodString;
|
|
1513
|
+
updatedAt: z.ZodString;
|
|
1514
|
+
}, z.core.$strip>>]>;
|
|
1421
1515
|
readonly querySchema: z.ZodObject<{
|
|
1422
1516
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1423
1517
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -1528,7 +1622,7 @@ declare const getCustomersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
1528
1622
|
type GetCustomersFromPointOfSaleQueryParams = z.infer<typeof getCustomersFromPointOfSaleQuerySchema>;
|
|
1529
1623
|
declare const getCustomersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1530
1624
|
type GetCustomersFromPointOfSaleInput = z.input<typeof getCustomersFromPointOfSaleInputSchema>;
|
|
1531
|
-
declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1625
|
+
declare const getCustomersFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1532
1626
|
data: z.ZodArray<z.ZodObject<{
|
|
1533
1627
|
id: z.ZodString;
|
|
1534
1628
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1550,14 +1644,26 @@ declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1550
1644
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1551
1645
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1552
1646
|
}, z.core.$strip>;
|
|
1553
|
-
}, z.core.$strip
|
|
1647
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1648
|
+
id: z.ZodString;
|
|
1649
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1650
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1651
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1652
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1653
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1654
|
+
hasAddresses: z.ZodBoolean;
|
|
1655
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1656
|
+
totalSpent: z.ZodString;
|
|
1657
|
+
createdAt: z.ZodString;
|
|
1658
|
+
updatedAt: z.ZodString;
|
|
1659
|
+
}, z.core.$strip>>]>;
|
|
1554
1660
|
type GetCustomersFromPointOfSaleResponse = z.infer<typeof getCustomersFromPointOfSaleResponseSchema>;
|
|
1555
1661
|
declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getCustomersFromPointOfSaleInputSchema, typeof getCustomersFromPointOfSaleResponseSchema, GetCustomersFromPointOfSaleQueryParams> {
|
|
1556
1662
|
readonly method: "GET";
|
|
1557
1663
|
readonly contentType: "application/json";
|
|
1558
1664
|
readonly accept: "application/json";
|
|
1559
1665
|
readonly inputSchema: z.ZodUndefined;
|
|
1560
|
-
readonly outputSchema: z.ZodObject<{
|
|
1666
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1561
1667
|
data: z.ZodArray<z.ZodObject<{
|
|
1562
1668
|
id: z.ZodString;
|
|
1563
1669
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1579,7 +1685,19 @@ declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getC
|
|
|
1579
1685
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1580
1686
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1581
1687
|
}, z.core.$strip>;
|
|
1582
|
-
}, z.core.$strip
|
|
1688
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1689
|
+
id: z.ZodString;
|
|
1690
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1691
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1692
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1693
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1694
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1695
|
+
hasAddresses: z.ZodBoolean;
|
|
1696
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1697
|
+
totalSpent: z.ZodString;
|
|
1698
|
+
createdAt: z.ZodString;
|
|
1699
|
+
updatedAt: z.ZodString;
|
|
1700
|
+
}, z.core.$strip>>]>;
|
|
1583
1701
|
readonly querySchema: z.ZodObject<{
|
|
1584
1702
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1585
1703
|
lastName: z.ZodOptional<z.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -11332,7 +11332,7 @@ var GetCustomerAddressDetails = class extends AbstractApiRequest3 {
|
|
|
11332
11332
|
// src/requests/customer-addresses/GetCustomerAddresses.ts
|
|
11333
11333
|
import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
|
|
11334
11334
|
import {
|
|
11335
|
-
|
|
11335
|
+
mixedPaginationSchema,
|
|
11336
11336
|
sortDirSchema as sortDirSchema2,
|
|
11337
11337
|
timestampsFilterSchema as timestampsFilterSchema2
|
|
11338
11338
|
} from "@deliverart/sdk-js-global-types";
|
|
@@ -11342,7 +11342,7 @@ var getCustomerAddressesQuerySchema = external_exports.object({
|
|
|
11342
11342
|
page: external_exports.coerce.number().optional()
|
|
11343
11343
|
}).extend(timestampsFilterSchema2.shape);
|
|
11344
11344
|
var getCustomerAddressesInputSchema = external_exports.undefined();
|
|
11345
|
-
var getCustomerAddressesResponseSchema =
|
|
11345
|
+
var getCustomerAddressesResponseSchema = mixedPaginationSchema(customerAddressSchema);
|
|
11346
11346
|
var GetCustomerAddresses = class extends AbstractApiRequest4 {
|
|
11347
11347
|
constructor(options) {
|
|
11348
11348
|
super(void 0, options);
|
|
@@ -11476,7 +11476,7 @@ var GetCustomerBusinessProfileDetails = class extends AbstractApiRequest9 {
|
|
|
11476
11476
|
// src/requests/customer-business-profiles/GetCustomerBusinessProfiles.ts
|
|
11477
11477
|
import { AbstractApiRequest as AbstractApiRequest10 } from "@deliverart/sdk-js-core";
|
|
11478
11478
|
import {
|
|
11479
|
-
|
|
11479
|
+
mixedPaginationSchema as mixedPaginationSchema2,
|
|
11480
11480
|
sortDirSchema as sortDirSchema4,
|
|
11481
11481
|
timestampsFilterSchema as timestampsFilterSchema4
|
|
11482
11482
|
} from "@deliverart/sdk-js-global-types";
|
|
@@ -11490,7 +11490,7 @@ var getCustomerBusinessProfilesQuerySchema = external_exports.object({
|
|
|
11490
11490
|
page: external_exports.coerce.number().optional()
|
|
11491
11491
|
}).extend(timestampsFilterSchema4.shape);
|
|
11492
11492
|
var getCustomerBusinessProfilesInputSchema = external_exports.undefined();
|
|
11493
|
-
var getCustomerBusinessProfilesResponseSchema =
|
|
11493
|
+
var getCustomerBusinessProfilesResponseSchema = mixedPaginationSchema2(
|
|
11494
11494
|
customerBusinessProfileSchema
|
|
11495
11495
|
);
|
|
11496
11496
|
var GetCustomerBusinessProfiles = class extends AbstractApiRequest10 {
|
|
@@ -11631,10 +11631,10 @@ var GetCustomerDetails = class extends AbstractApiRequest15 {
|
|
|
11631
11631
|
|
|
11632
11632
|
// src/requests/customers/GetCustomers.ts
|
|
11633
11633
|
import { AbstractApiRequest as AbstractApiRequest16 } from "@deliverart/sdk-js-core";
|
|
11634
|
-
import {
|
|
11634
|
+
import { mixedPaginationSchema as mixedPaginationSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11635
11635
|
var getCustomersQuerySchema = customersQuerySchema;
|
|
11636
11636
|
var getCustomersInputSchema = external_exports.undefined();
|
|
11637
|
-
var getCustomersResponseSchema =
|
|
11637
|
+
var getCustomersResponseSchema = mixedPaginationSchema3(customerSchema);
|
|
11638
11638
|
var GetCustomers = class extends AbstractApiRequest16 {
|
|
11639
11639
|
constructor(options) {
|
|
11640
11640
|
super(void 0, options);
|
|
@@ -11656,10 +11656,10 @@ var GetCustomers = class extends AbstractApiRequest16 {
|
|
|
11656
11656
|
|
|
11657
11657
|
// src/requests/customers/GetCustomersFromPointOfSale.ts
|
|
11658
11658
|
import { AbstractApiRequest as AbstractApiRequest17 } from "@deliverart/sdk-js-core";
|
|
11659
|
-
import {
|
|
11659
|
+
import { mixedPaginationSchema as mixedPaginationSchema4 } from "@deliverart/sdk-js-global-types";
|
|
11660
11660
|
var getCustomersFromPointOfSaleQuerySchema = customersQuerySchema;
|
|
11661
11661
|
var getCustomersFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11662
|
-
var getCustomersFromPointOfSaleResponseSchema =
|
|
11662
|
+
var getCustomersFromPointOfSaleResponseSchema = mixedPaginationSchema4(customerSchema);
|
|
11663
11663
|
var GetCustomersFromPointOfSale = class extends AbstractApiRequest17 {
|
|
11664
11664
|
constructor(pointOfSaleId, options) {
|
|
11665
11665
|
super(void 0, options);
|
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.6.
|
|
4
|
+
"version": "2.6.1",
|
|
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-
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.6.1",
|
|
22
|
+
"@deliverart/sdk-js-user": "2.6.1",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.6.1",
|
|
24
|
+
"@deliverart/sdk-js-global-types": "2.6.1"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|