@deliverart/sdk-js-customer 2.5.34 → 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 +18 -32
- package/dist/index.d.cts +258 -41
- package/dist/index.d.ts +258 -41
- package/dist/index.js +22 -44
- 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);
|
|
@@ -11439,17 +11439,12 @@ var GetCustomerAddresses = class extends import_sdk_js_core4.AbstractApiRequest
|
|
|
11439
11439
|
this.outputSchema = getCustomerAddressesResponseSchema;
|
|
11440
11440
|
this.querySchema = getCustomerAddressesQuerySchema;
|
|
11441
11441
|
this.headersSchema = void 0;
|
|
11442
|
+
this.listItemSchema = customerAddressSchema;
|
|
11443
|
+
this.paginationDefaultEnabled = true;
|
|
11442
11444
|
}
|
|
11443
11445
|
getPath() {
|
|
11444
11446
|
return "/customers/addresses";
|
|
11445
11447
|
}
|
|
11446
|
-
parseResponse(data, rawResponse) {
|
|
11447
|
-
const customerAddresses = external_exports.array(customerAddressSchema).parse(data);
|
|
11448
|
-
return this.validateOutput({
|
|
11449
|
-
data: customerAddresses,
|
|
11450
|
-
pagination: (0, import_sdk_js_global_types4.responseToPagination)(rawResponse)
|
|
11451
|
-
});
|
|
11452
|
-
}
|
|
11453
11448
|
};
|
|
11454
11449
|
|
|
11455
11450
|
// src/requests/customer-addresses/GetCustomerAddressesForCustomer.ts
|
|
@@ -11471,14 +11466,13 @@ var GetCustomerAddressesForCustomer = class extends import_sdk_js_core5.Abstract
|
|
|
11471
11466
|
this.outputSchema = getCustomerAddressesForCustomerResponseSchema;
|
|
11472
11467
|
this.querySchema = getCustomerAddressesForCustomerQuerySchema;
|
|
11473
11468
|
this.headersSchema = void 0;
|
|
11469
|
+
this.listItemSchema = customerAddressSchema;
|
|
11470
|
+
this.paginationDefaultEnabled = false;
|
|
11474
11471
|
this.customerId = customerId;
|
|
11475
11472
|
}
|
|
11476
11473
|
getPath() {
|
|
11477
11474
|
return `/customers/${this.customerId}/addresses`;
|
|
11478
11475
|
}
|
|
11479
|
-
parseResponse(data) {
|
|
11480
|
-
return external_exports.array(customerAddressSchema).parse(data);
|
|
11481
|
-
}
|
|
11482
11476
|
};
|
|
11483
11477
|
|
|
11484
11478
|
// src/requests/customer-addresses/UpdateCustomerAddress.ts
|
|
@@ -11578,7 +11572,7 @@ var getCustomerBusinessProfilesQuerySchema = external_exports.object({
|
|
|
11578
11572
|
page: external_exports.coerce.number().optional()
|
|
11579
11573
|
}).extend(import_sdk_js_global_types7.timestampsFilterSchema.shape);
|
|
11580
11574
|
var getCustomerBusinessProfilesInputSchema = external_exports.undefined();
|
|
11581
|
-
var getCustomerBusinessProfilesResponseSchema = (0, import_sdk_js_global_types7.
|
|
11575
|
+
var getCustomerBusinessProfilesResponseSchema = (0, import_sdk_js_global_types7.mixedPaginationSchema)(
|
|
11582
11576
|
customerBusinessProfileSchema
|
|
11583
11577
|
);
|
|
11584
11578
|
var GetCustomerBusinessProfiles = class extends import_sdk_js_core10.AbstractApiRequest {
|
|
@@ -11591,17 +11585,12 @@ var GetCustomerBusinessProfiles = class extends import_sdk_js_core10.AbstractApi
|
|
|
11591
11585
|
this.outputSchema = getCustomerBusinessProfilesResponseSchema;
|
|
11592
11586
|
this.querySchema = getCustomerBusinessProfilesQuerySchema;
|
|
11593
11587
|
this.headersSchema = void 0;
|
|
11588
|
+
this.listItemSchema = customerBusinessProfileSchema;
|
|
11589
|
+
this.paginationDefaultEnabled = true;
|
|
11594
11590
|
}
|
|
11595
11591
|
getPath() {
|
|
11596
11592
|
return "/customers/business_profiles";
|
|
11597
11593
|
}
|
|
11598
|
-
parseResponse(data, rawResponse) {
|
|
11599
|
-
const customerBusinessProfiles = external_exports.array(customerBusinessProfileSchema).parse(data);
|
|
11600
|
-
return this.validateOutput({
|
|
11601
|
-
data: customerBusinessProfiles,
|
|
11602
|
-
pagination: (0, import_sdk_js_global_types7.responseToPagination)(rawResponse)
|
|
11603
|
-
});
|
|
11604
|
-
}
|
|
11605
11594
|
};
|
|
11606
11595
|
|
|
11607
11596
|
// src/requests/customer-business-profiles/GetCustomerBusinessProfilesForCustomer.ts
|
|
@@ -11629,14 +11618,13 @@ var GetCustomerBusinessProfilesForCustomer = class extends import_sdk_js_core11.
|
|
|
11629
11618
|
this.outputSchema = getCustomerBusinessProfilesForCustomerResponseSchema;
|
|
11630
11619
|
this.querySchema = getCustomerBusinessProfilesForCustomerQuerySchema;
|
|
11631
11620
|
this.headersSchema = void 0;
|
|
11621
|
+
this.listItemSchema = customerBusinessProfileSchema;
|
|
11622
|
+
this.paginationDefaultEnabled = false;
|
|
11632
11623
|
this.customerId = customerId;
|
|
11633
11624
|
}
|
|
11634
11625
|
getPath() {
|
|
11635
11626
|
return `/customers/${this.customerId}/business_profiles`;
|
|
11636
11627
|
}
|
|
11637
|
-
parseResponse(data) {
|
|
11638
|
-
return external_exports.array(customerBusinessProfileSchema).parse(data);
|
|
11639
|
-
}
|
|
11640
11628
|
};
|
|
11641
11629
|
|
|
11642
11630
|
// src/requests/customer-business-profiles/UpdateCustomerBusinessProfile.ts
|
|
@@ -11728,7 +11716,7 @@ var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
|
11728
11716
|
var import_sdk_js_global_types10 = require("@deliverart/sdk-js-global-types");
|
|
11729
11717
|
var getCustomersQuerySchema = customersQuerySchema;
|
|
11730
11718
|
var getCustomersInputSchema = external_exports.undefined();
|
|
11731
|
-
var getCustomersResponseSchema = (0, import_sdk_js_global_types10.
|
|
11719
|
+
var getCustomersResponseSchema = (0, import_sdk_js_global_types10.mixedPaginationSchema)(customerSchema);
|
|
11732
11720
|
var GetCustomers = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
11733
11721
|
constructor(options) {
|
|
11734
11722
|
super(void 0, options);
|
|
@@ -11739,14 +11727,13 @@ var GetCustomers = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
|
11739
11727
|
this.outputSchema = getCustomersResponseSchema;
|
|
11740
11728
|
this.querySchema = getCustomersQuerySchema;
|
|
11741
11729
|
this.headersSchema = void 0;
|
|
11730
|
+
// Declare list behavior
|
|
11731
|
+
this.listItemSchema = customerSchema;
|
|
11732
|
+
this.paginationDefaultEnabled = true;
|
|
11742
11733
|
}
|
|
11743
11734
|
getPath() {
|
|
11744
11735
|
return "/customers";
|
|
11745
11736
|
}
|
|
11746
|
-
parseResponse(data, rawResponse) {
|
|
11747
|
-
const customers = external_exports.array(customerSchema).parse(data);
|
|
11748
|
-
return this.validateOutput({ data: customers, pagination: (0, import_sdk_js_global_types10.responseToPagination)(rawResponse) });
|
|
11749
|
-
}
|
|
11750
11737
|
};
|
|
11751
11738
|
|
|
11752
11739
|
// src/requests/customers/GetCustomersFromPointOfSale.ts
|
|
@@ -11754,7 +11741,7 @@ var import_sdk_js_core17 = require("@deliverart/sdk-js-core");
|
|
|
11754
11741
|
var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
|
|
11755
11742
|
var getCustomersFromPointOfSaleQuerySchema = customersQuerySchema;
|
|
11756
11743
|
var getCustomersFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11757
|
-
var getCustomersFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types11.
|
|
11744
|
+
var getCustomersFromPointOfSaleResponseSchema = (0, import_sdk_js_global_types11.mixedPaginationSchema)(customerSchema);
|
|
11758
11745
|
var GetCustomersFromPointOfSale = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
11759
11746
|
constructor(pointOfSaleId, options) {
|
|
11760
11747
|
super(void 0, options);
|
|
@@ -11765,15 +11752,14 @@ var GetCustomersFromPointOfSale = class extends import_sdk_js_core17.AbstractApi
|
|
|
11765
11752
|
this.outputSchema = getCustomersFromPointOfSaleResponseSchema;
|
|
11766
11753
|
this.querySchema = getCustomersFromPointOfSaleQuerySchema;
|
|
11767
11754
|
this.headersSchema = void 0;
|
|
11755
|
+
// Declare list behavior
|
|
11756
|
+
this.listItemSchema = customerSchema;
|
|
11757
|
+
this.paginationDefaultEnabled = true;
|
|
11768
11758
|
this.pointOfSaleId = pointOfSaleId;
|
|
11769
11759
|
}
|
|
11770
11760
|
getPath() {
|
|
11771
11761
|
return `/point_of_sales/${this.pointOfSaleId}/customers`;
|
|
11772
11762
|
}
|
|
11773
|
-
parseResponse(data, rawResponse) {
|
|
11774
|
-
const customers = external_exports.array(customerSchema).parse(data);
|
|
11775
|
-
return this.validateOutput({ data: customers, pagination: (0, import_sdk_js_global_types11.responseToPagination)(rawResponse) });
|
|
11776
|
-
}
|
|
11777
11763
|
};
|
|
11778
11764
|
|
|
11779
11765
|
// src/requests/customers/UpdateCustomer.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
-
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
2
|
import { z } from 'zod';
|
|
4
3
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
4
|
|
|
@@ -391,7 +390,7 @@ declare const getCustomerAddressesQuerySchema: z.ZodObject<{
|
|
|
391
390
|
type GetCustomerAddressesQueryParams = z.infer<typeof getCustomerAddressesQuerySchema>;
|
|
392
391
|
declare const getCustomerAddressesInputSchema: z.ZodUndefined;
|
|
393
392
|
type GetCustomerAddressesInput = z.input<typeof getCustomerAddressesInputSchema>;
|
|
394
|
-
declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
393
|
+
declare const getCustomerAddressesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
395
394
|
data: z.ZodArray<z.ZodObject<{
|
|
396
395
|
id: z.ZodString;
|
|
397
396
|
address: z.ZodObject<{
|
|
@@ -417,14 +416,30 @@ declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
|
417
416
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
418
417
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
419
418
|
}, z.core.$strip>;
|
|
420
|
-
}, 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>>]>;
|
|
421
436
|
type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
|
|
422
437
|
declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomerAddressesInputSchema, typeof getCustomerAddressesResponseSchema, GetCustomerAddressesQueryParams> {
|
|
423
|
-
readonly method
|
|
424
|
-
readonly contentType
|
|
425
|
-
readonly accept
|
|
438
|
+
readonly method: "GET";
|
|
439
|
+
readonly contentType: "application/json";
|
|
440
|
+
readonly accept: "application/json";
|
|
426
441
|
readonly inputSchema: z.ZodUndefined;
|
|
427
|
-
readonly outputSchema: z.ZodObject<{
|
|
442
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
428
443
|
data: z.ZodArray<z.ZodObject<{
|
|
429
444
|
id: z.ZodString;
|
|
430
445
|
address: z.ZodObject<{
|
|
@@ -450,7 +465,23 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
|
|
|
450
465
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
451
466
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
452
467
|
}, z.core.$strip>;
|
|
453
|
-
}, 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>>]>;
|
|
454
485
|
readonly querySchema: z.ZodObject<{
|
|
455
486
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
456
487
|
asc: "asc";
|
|
@@ -471,11 +502,28 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
|
|
|
471
502
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
472
503
|
}, z.core.$strip>;
|
|
473
504
|
readonly headersSchema: undefined;
|
|
505
|
+
readonly listItemSchema: z.ZodObject<{
|
|
506
|
+
id: z.ZodString;
|
|
507
|
+
address: z.ZodObject<{
|
|
508
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
509
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
512
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
513
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
514
|
+
}, z.core.$strip>;
|
|
515
|
+
location: z.ZodObject<{
|
|
516
|
+
latitude: z.ZodNumber;
|
|
517
|
+
longitude: z.ZodNumber;
|
|
518
|
+
}, z.core.$strip>;
|
|
519
|
+
createdAt: z.ZodString;
|
|
520
|
+
updatedAt: z.ZodString;
|
|
521
|
+
}, z.core.$strip>;
|
|
522
|
+
readonly paginationDefaultEnabled = true;
|
|
474
523
|
constructor(options?: {
|
|
475
524
|
query?: GetCustomerAddressesQueryParams;
|
|
476
525
|
});
|
|
477
526
|
getPath(): string;
|
|
478
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<CustomerAddress>;
|
|
479
527
|
}
|
|
480
528
|
|
|
481
529
|
declare const getCustomerAddressesForCustomerQuerySchema: z.ZodObject<{
|
|
@@ -518,9 +566,9 @@ declare const getCustomerAddressesForCustomerResponseSchema: z.ZodArray<z.ZodObj
|
|
|
518
566
|
}, z.core.$strip>>;
|
|
519
567
|
type GetCustomerAddressesForCustomerResponse = z.infer<typeof getCustomerAddressesForCustomerResponseSchema>;
|
|
520
568
|
declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<typeof getCustomerAddressesForCustomerInputSchema, typeof getCustomerAddressesForCustomerResponseSchema, GetCustomerAddressesForCustomerQueryParams> {
|
|
521
|
-
readonly method
|
|
522
|
-
readonly contentType
|
|
523
|
-
readonly accept
|
|
569
|
+
readonly method: "GET";
|
|
570
|
+
readonly contentType: "application/json";
|
|
571
|
+
readonly accept: "application/json";
|
|
524
572
|
readonly inputSchema: z.ZodUndefined;
|
|
525
573
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
526
574
|
id: z.ZodString;
|
|
@@ -558,12 +606,29 @@ declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<typeof
|
|
|
558
606
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
559
607
|
}, z.core.$strip>;
|
|
560
608
|
readonly headersSchema: undefined;
|
|
609
|
+
readonly listItemSchema: z.ZodObject<{
|
|
610
|
+
id: z.ZodString;
|
|
611
|
+
address: z.ZodObject<{
|
|
612
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
613
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
614
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
615
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
616
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
617
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
618
|
+
}, z.core.$strip>;
|
|
619
|
+
location: z.ZodObject<{
|
|
620
|
+
latitude: z.ZodNumber;
|
|
621
|
+
longitude: z.ZodNumber;
|
|
622
|
+
}, z.core.$strip>;
|
|
623
|
+
createdAt: z.ZodString;
|
|
624
|
+
updatedAt: z.ZodString;
|
|
625
|
+
}, z.core.$strip>;
|
|
626
|
+
readonly paginationDefaultEnabled = false;
|
|
561
627
|
private readonly customerId;
|
|
562
628
|
constructor(customerId: string, options?: {
|
|
563
629
|
query?: GetCustomerAddressesForCustomerQueryParams;
|
|
564
630
|
});
|
|
565
631
|
getPath(): string;
|
|
566
|
-
parseResponse(data: unknown): CustomerAddress[];
|
|
567
632
|
}
|
|
568
633
|
|
|
569
634
|
declare const updateCustomerAddressInputSchema: z.ZodObject<{
|
|
@@ -826,7 +891,7 @@ declare const getCustomerBusinessProfilesQuerySchema: z.ZodObject<{
|
|
|
826
891
|
type GetCustomerBusinessProfilesQueryParams = z.infer<typeof getCustomerBusinessProfilesQuerySchema>;
|
|
827
892
|
declare const getCustomerBusinessProfilesInputSchema: z.ZodUndefined;
|
|
828
893
|
type GetCustomerBusinessProfilesInput = z.infer<typeof getCustomerBusinessProfilesInputSchema>;
|
|
829
|
-
declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
894
|
+
declare const getCustomerBusinessProfilesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
830
895
|
data: z.ZodArray<z.ZodObject<{
|
|
831
896
|
id: z.ZodString;
|
|
832
897
|
businessName: z.ZodString;
|
|
@@ -855,14 +920,33 @@ declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
|
855
920
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
856
921
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
857
922
|
}, z.core.$strip>;
|
|
858
|
-
}, 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>>]>;
|
|
859
943
|
type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
|
|
860
944
|
declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getCustomerBusinessProfilesInputSchema, typeof getCustomerBusinessProfilesResponseSchema, GetCustomerBusinessProfilesQueryParams> {
|
|
861
|
-
readonly method
|
|
862
|
-
readonly contentType
|
|
863
|
-
readonly accept
|
|
945
|
+
readonly method: "GET";
|
|
946
|
+
readonly contentType: "application/json";
|
|
947
|
+
readonly accept: "application/json";
|
|
864
948
|
readonly inputSchema: z.ZodUndefined;
|
|
865
|
-
readonly outputSchema: z.ZodObject<{
|
|
949
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
866
950
|
data: z.ZodArray<z.ZodObject<{
|
|
867
951
|
id: z.ZodString;
|
|
868
952
|
businessName: z.ZodString;
|
|
@@ -891,7 +975,26 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
|
|
|
891
975
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
892
976
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
893
977
|
}, z.core.$strip>;
|
|
894
|
-
}, 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>>]>;
|
|
895
998
|
readonly querySchema: z.ZodObject<{
|
|
896
999
|
'order[businessName]': z.ZodOptional<z.ZodEnum<{
|
|
897
1000
|
asc: "asc";
|
|
@@ -919,11 +1022,31 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
|
|
|
919
1022
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
920
1023
|
}, z.core.$strip>;
|
|
921
1024
|
readonly headersSchema: undefined;
|
|
1025
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1026
|
+
id: z.ZodString;
|
|
1027
|
+
businessName: z.ZodString;
|
|
1028
|
+
vat: z.ZodString;
|
|
1029
|
+
taxCode: z.ZodString;
|
|
1030
|
+
billingAddress: z.ZodObject<{
|
|
1031
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1032
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1033
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1034
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1035
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1037
|
+
}, z.core.$strip>;
|
|
1038
|
+
billingData: z.ZodObject<{
|
|
1039
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1040
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1041
|
+
}, z.core.$strip>;
|
|
1042
|
+
createdAt: z.ZodString;
|
|
1043
|
+
updatedAt: z.ZodString;
|
|
1044
|
+
}, z.core.$strip>;
|
|
1045
|
+
readonly paginationDefaultEnabled = true;
|
|
922
1046
|
constructor(options?: {
|
|
923
1047
|
query?: GetCustomerBusinessProfilesQueryParams;
|
|
924
1048
|
});
|
|
925
1049
|
getPath(): string;
|
|
926
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<CustomerBusinessProfile>;
|
|
927
1050
|
}
|
|
928
1051
|
|
|
929
1052
|
declare const getCustomerBusinessProfilesForCustomerQuerySchema: z.ZodObject<{
|
|
@@ -976,9 +1099,9 @@ declare const getCustomerBusinessProfilesForCustomerResponseSchema: z.ZodArray<z
|
|
|
976
1099
|
}, z.core.$strip>>;
|
|
977
1100
|
type GetCustomerBusinessProfilesForCustomerResponse = z.infer<typeof getCustomerBusinessProfilesForCustomerResponseSchema>;
|
|
978
1101
|
declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<typeof getCustomerBusinessProfilesForCustomerInputSchema, typeof getCustomerBusinessProfilesForCustomerResponseSchema, GetCustomerBusinessProfilesForCustomerQueryParams> {
|
|
979
|
-
readonly method
|
|
980
|
-
readonly contentType
|
|
981
|
-
readonly accept
|
|
1102
|
+
readonly method: "GET";
|
|
1103
|
+
readonly contentType: "application/json";
|
|
1104
|
+
readonly accept: "application/json";
|
|
982
1105
|
readonly inputSchema: z.ZodUndefined;
|
|
983
1106
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
984
1107
|
id: z.ZodString;
|
|
@@ -1026,12 +1149,32 @@ declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<
|
|
|
1026
1149
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1027
1150
|
}, z.core.$strip>;
|
|
1028
1151
|
readonly headersSchema: undefined;
|
|
1152
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1153
|
+
id: z.ZodString;
|
|
1154
|
+
businessName: z.ZodString;
|
|
1155
|
+
vat: z.ZodString;
|
|
1156
|
+
taxCode: z.ZodString;
|
|
1157
|
+
billingAddress: z.ZodObject<{
|
|
1158
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1159
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1160
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1162
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1163
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1164
|
+
}, z.core.$strip>;
|
|
1165
|
+
billingData: z.ZodObject<{
|
|
1166
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1167
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1168
|
+
}, z.core.$strip>;
|
|
1169
|
+
createdAt: z.ZodString;
|
|
1170
|
+
updatedAt: z.ZodString;
|
|
1171
|
+
}, z.core.$strip>;
|
|
1172
|
+
readonly paginationDefaultEnabled = false;
|
|
1029
1173
|
private readonly customerId;
|
|
1030
1174
|
constructor(customerId: string, options?: {
|
|
1031
1175
|
query?: GetCustomerBusinessProfilesForCustomerQueryParams;
|
|
1032
1176
|
});
|
|
1033
1177
|
getPath(): string;
|
|
1034
|
-
parseResponse(data: unknown): CustomerBusinessProfile[];
|
|
1035
1178
|
}
|
|
1036
1179
|
|
|
1037
1180
|
declare const updateCustomerBusinessProfileInputSchema: z.ZodObject<{
|
|
@@ -1293,7 +1436,7 @@ declare const getCustomersQuerySchema: z.ZodObject<{
|
|
|
1293
1436
|
type GetCustomersQueryParams = z.infer<typeof getCustomersQuerySchema>;
|
|
1294
1437
|
declare const getCustomersInputSchema: z.ZodUndefined;
|
|
1295
1438
|
type GetCustomersInput = z.input<typeof getCustomersInputSchema>;
|
|
1296
|
-
declare const getCustomersResponseSchema: z.ZodObject<{
|
|
1439
|
+
declare const getCustomersResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1297
1440
|
data: z.ZodArray<z.ZodObject<{
|
|
1298
1441
|
id: z.ZodString;
|
|
1299
1442
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1315,14 +1458,26 @@ declare const getCustomersResponseSchema: z.ZodObject<{
|
|
|
1315
1458
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1316
1459
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1317
1460
|
}, z.core.$strip>;
|
|
1318
|
-
}, 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>>]>;
|
|
1319
1474
|
type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
|
|
1320
1475
|
declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSchema, typeof getCustomersResponseSchema, GetCustomersQueryParams> {
|
|
1321
|
-
readonly method
|
|
1322
|
-
readonly contentType
|
|
1323
|
-
readonly accept
|
|
1476
|
+
readonly method: "GET";
|
|
1477
|
+
readonly contentType: "application/json";
|
|
1478
|
+
readonly accept: "application/json";
|
|
1324
1479
|
readonly inputSchema: z.ZodUndefined;
|
|
1325
|
-
readonly outputSchema: z.ZodObject<{
|
|
1480
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1326
1481
|
data: z.ZodArray<z.ZodObject<{
|
|
1327
1482
|
id: z.ZodString;
|
|
1328
1483
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1344,7 +1499,19 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
|
|
|
1344
1499
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1345
1500
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1346
1501
|
}, z.core.$strip>;
|
|
1347
|
-
}, 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>>]>;
|
|
1348
1515
|
readonly querySchema: z.ZodObject<{
|
|
1349
1516
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1350
1517
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -1389,11 +1556,24 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
|
|
|
1389
1556
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1390
1557
|
}, z.core.$strip>;
|
|
1391
1558
|
readonly headersSchema: undefined;
|
|
1559
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1560
|
+
id: z.ZodString;
|
|
1561
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1562
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1563
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1564
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1565
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1566
|
+
hasAddresses: z.ZodBoolean;
|
|
1567
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1568
|
+
totalSpent: z.ZodString;
|
|
1569
|
+
createdAt: z.ZodString;
|
|
1570
|
+
updatedAt: z.ZodString;
|
|
1571
|
+
}, z.core.$strip>;
|
|
1572
|
+
readonly paginationDefaultEnabled = true;
|
|
1392
1573
|
constructor(options?: {
|
|
1393
1574
|
query?: GetCustomersQueryParams;
|
|
1394
1575
|
});
|
|
1395
1576
|
getPath(): string;
|
|
1396
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<Customer>;
|
|
1397
1577
|
}
|
|
1398
1578
|
|
|
1399
1579
|
declare const getCustomersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -1442,7 +1622,7 @@ declare const getCustomersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
1442
1622
|
type GetCustomersFromPointOfSaleQueryParams = z.infer<typeof getCustomersFromPointOfSaleQuerySchema>;
|
|
1443
1623
|
declare const getCustomersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1444
1624
|
type GetCustomersFromPointOfSaleInput = z.input<typeof getCustomersFromPointOfSaleInputSchema>;
|
|
1445
|
-
declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1625
|
+
declare const getCustomersFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1446
1626
|
data: z.ZodArray<z.ZodObject<{
|
|
1447
1627
|
id: z.ZodString;
|
|
1448
1628
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1464,14 +1644,26 @@ declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1464
1644
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1465
1645
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1466
1646
|
}, z.core.$strip>;
|
|
1467
|
-
}, 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>>]>;
|
|
1468
1660
|
type GetCustomersFromPointOfSaleResponse = z.infer<typeof getCustomersFromPointOfSaleResponseSchema>;
|
|
1469
1661
|
declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getCustomersFromPointOfSaleInputSchema, typeof getCustomersFromPointOfSaleResponseSchema, GetCustomersFromPointOfSaleQueryParams> {
|
|
1470
|
-
readonly method
|
|
1471
|
-
readonly contentType
|
|
1472
|
-
readonly accept
|
|
1662
|
+
readonly method: "GET";
|
|
1663
|
+
readonly contentType: "application/json";
|
|
1664
|
+
readonly accept: "application/json";
|
|
1473
1665
|
readonly inputSchema: z.ZodUndefined;
|
|
1474
|
-
readonly outputSchema: z.ZodObject<{
|
|
1666
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1475
1667
|
data: z.ZodArray<z.ZodObject<{
|
|
1476
1668
|
id: z.ZodString;
|
|
1477
1669
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1493,7 +1685,19 @@ declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getC
|
|
|
1493
1685
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1494
1686
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1495
1687
|
}, z.core.$strip>;
|
|
1496
|
-
}, 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>>]>;
|
|
1497
1701
|
readonly querySchema: z.ZodObject<{
|
|
1498
1702
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1499
1703
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -1538,12 +1742,25 @@ declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getC
|
|
|
1538
1742
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1539
1743
|
}, z.core.$strip>;
|
|
1540
1744
|
readonly headersSchema: undefined;
|
|
1745
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1746
|
+
id: z.ZodString;
|
|
1747
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1748
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1749
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1750
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1751
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1752
|
+
hasAddresses: z.ZodBoolean;
|
|
1753
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1754
|
+
totalSpent: z.ZodString;
|
|
1755
|
+
createdAt: z.ZodString;
|
|
1756
|
+
updatedAt: z.ZodString;
|
|
1757
|
+
}, z.core.$strip>;
|
|
1758
|
+
readonly paginationDefaultEnabled = true;
|
|
1541
1759
|
private readonly pointOfSaleId;
|
|
1542
1760
|
constructor(pointOfSaleId: string, options?: {
|
|
1543
1761
|
query?: GetCustomersFromPointOfSaleQueryParams;
|
|
1544
1762
|
});
|
|
1545
1763
|
getPath(): string;
|
|
1546
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<Customer>;
|
|
1547
1764
|
}
|
|
1548
1765
|
|
|
1549
1766
|
declare const updateCustomerInputSchema: z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
-
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
2
|
import { z } from 'zod';
|
|
4
3
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
4
|
|
|
@@ -391,7 +390,7 @@ declare const getCustomerAddressesQuerySchema: z.ZodObject<{
|
|
|
391
390
|
type GetCustomerAddressesQueryParams = z.infer<typeof getCustomerAddressesQuerySchema>;
|
|
392
391
|
declare const getCustomerAddressesInputSchema: z.ZodUndefined;
|
|
393
392
|
type GetCustomerAddressesInput = z.input<typeof getCustomerAddressesInputSchema>;
|
|
394
|
-
declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
393
|
+
declare const getCustomerAddressesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
395
394
|
data: z.ZodArray<z.ZodObject<{
|
|
396
395
|
id: z.ZodString;
|
|
397
396
|
address: z.ZodObject<{
|
|
@@ -417,14 +416,30 @@ declare const getCustomerAddressesResponseSchema: z.ZodObject<{
|
|
|
417
416
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
418
417
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
419
418
|
}, z.core.$strip>;
|
|
420
|
-
}, 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>>]>;
|
|
421
436
|
type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
|
|
422
437
|
declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomerAddressesInputSchema, typeof getCustomerAddressesResponseSchema, GetCustomerAddressesQueryParams> {
|
|
423
|
-
readonly method
|
|
424
|
-
readonly contentType
|
|
425
|
-
readonly accept
|
|
438
|
+
readonly method: "GET";
|
|
439
|
+
readonly contentType: "application/json";
|
|
440
|
+
readonly accept: "application/json";
|
|
426
441
|
readonly inputSchema: z.ZodUndefined;
|
|
427
|
-
readonly outputSchema: z.ZodObject<{
|
|
442
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
428
443
|
data: z.ZodArray<z.ZodObject<{
|
|
429
444
|
id: z.ZodString;
|
|
430
445
|
address: z.ZodObject<{
|
|
@@ -450,7 +465,23 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
|
|
|
450
465
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
451
466
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
452
467
|
}, z.core.$strip>;
|
|
453
|
-
}, 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>>]>;
|
|
454
485
|
readonly querySchema: z.ZodObject<{
|
|
455
486
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
456
487
|
asc: "asc";
|
|
@@ -471,11 +502,28 @@ declare class GetCustomerAddresses extends AbstractApiRequest<typeof getCustomer
|
|
|
471
502
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
472
503
|
}, z.core.$strip>;
|
|
473
504
|
readonly headersSchema: undefined;
|
|
505
|
+
readonly listItemSchema: z.ZodObject<{
|
|
506
|
+
id: z.ZodString;
|
|
507
|
+
address: z.ZodObject<{
|
|
508
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
509
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
511
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
512
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
513
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
514
|
+
}, z.core.$strip>;
|
|
515
|
+
location: z.ZodObject<{
|
|
516
|
+
latitude: z.ZodNumber;
|
|
517
|
+
longitude: z.ZodNumber;
|
|
518
|
+
}, z.core.$strip>;
|
|
519
|
+
createdAt: z.ZodString;
|
|
520
|
+
updatedAt: z.ZodString;
|
|
521
|
+
}, z.core.$strip>;
|
|
522
|
+
readonly paginationDefaultEnabled = true;
|
|
474
523
|
constructor(options?: {
|
|
475
524
|
query?: GetCustomerAddressesQueryParams;
|
|
476
525
|
});
|
|
477
526
|
getPath(): string;
|
|
478
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<CustomerAddress>;
|
|
479
527
|
}
|
|
480
528
|
|
|
481
529
|
declare const getCustomerAddressesForCustomerQuerySchema: z.ZodObject<{
|
|
@@ -518,9 +566,9 @@ declare const getCustomerAddressesForCustomerResponseSchema: z.ZodArray<z.ZodObj
|
|
|
518
566
|
}, z.core.$strip>>;
|
|
519
567
|
type GetCustomerAddressesForCustomerResponse = z.infer<typeof getCustomerAddressesForCustomerResponseSchema>;
|
|
520
568
|
declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<typeof getCustomerAddressesForCustomerInputSchema, typeof getCustomerAddressesForCustomerResponseSchema, GetCustomerAddressesForCustomerQueryParams> {
|
|
521
|
-
readonly method
|
|
522
|
-
readonly contentType
|
|
523
|
-
readonly accept
|
|
569
|
+
readonly method: "GET";
|
|
570
|
+
readonly contentType: "application/json";
|
|
571
|
+
readonly accept: "application/json";
|
|
524
572
|
readonly inputSchema: z.ZodUndefined;
|
|
525
573
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
526
574
|
id: z.ZodString;
|
|
@@ -558,12 +606,29 @@ declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<typeof
|
|
|
558
606
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
559
607
|
}, z.core.$strip>;
|
|
560
608
|
readonly headersSchema: undefined;
|
|
609
|
+
readonly listItemSchema: z.ZodObject<{
|
|
610
|
+
id: z.ZodString;
|
|
611
|
+
address: z.ZodObject<{
|
|
612
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
613
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
614
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
615
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
616
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
617
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
618
|
+
}, z.core.$strip>;
|
|
619
|
+
location: z.ZodObject<{
|
|
620
|
+
latitude: z.ZodNumber;
|
|
621
|
+
longitude: z.ZodNumber;
|
|
622
|
+
}, z.core.$strip>;
|
|
623
|
+
createdAt: z.ZodString;
|
|
624
|
+
updatedAt: z.ZodString;
|
|
625
|
+
}, z.core.$strip>;
|
|
626
|
+
readonly paginationDefaultEnabled = false;
|
|
561
627
|
private readonly customerId;
|
|
562
628
|
constructor(customerId: string, options?: {
|
|
563
629
|
query?: GetCustomerAddressesForCustomerQueryParams;
|
|
564
630
|
});
|
|
565
631
|
getPath(): string;
|
|
566
|
-
parseResponse(data: unknown): CustomerAddress[];
|
|
567
632
|
}
|
|
568
633
|
|
|
569
634
|
declare const updateCustomerAddressInputSchema: z.ZodObject<{
|
|
@@ -826,7 +891,7 @@ declare const getCustomerBusinessProfilesQuerySchema: z.ZodObject<{
|
|
|
826
891
|
type GetCustomerBusinessProfilesQueryParams = z.infer<typeof getCustomerBusinessProfilesQuerySchema>;
|
|
827
892
|
declare const getCustomerBusinessProfilesInputSchema: z.ZodUndefined;
|
|
828
893
|
type GetCustomerBusinessProfilesInput = z.infer<typeof getCustomerBusinessProfilesInputSchema>;
|
|
829
|
-
declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
894
|
+
declare const getCustomerBusinessProfilesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
830
895
|
data: z.ZodArray<z.ZodObject<{
|
|
831
896
|
id: z.ZodString;
|
|
832
897
|
businessName: z.ZodString;
|
|
@@ -855,14 +920,33 @@ declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
|
|
|
855
920
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
856
921
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
857
922
|
}, z.core.$strip>;
|
|
858
|
-
}, 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>>]>;
|
|
859
943
|
type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
|
|
860
944
|
declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getCustomerBusinessProfilesInputSchema, typeof getCustomerBusinessProfilesResponseSchema, GetCustomerBusinessProfilesQueryParams> {
|
|
861
|
-
readonly method
|
|
862
|
-
readonly contentType
|
|
863
|
-
readonly accept
|
|
945
|
+
readonly method: "GET";
|
|
946
|
+
readonly contentType: "application/json";
|
|
947
|
+
readonly accept: "application/json";
|
|
864
948
|
readonly inputSchema: z.ZodUndefined;
|
|
865
|
-
readonly outputSchema: z.ZodObject<{
|
|
949
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
866
950
|
data: z.ZodArray<z.ZodObject<{
|
|
867
951
|
id: z.ZodString;
|
|
868
952
|
businessName: z.ZodString;
|
|
@@ -891,7 +975,26 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
|
|
|
891
975
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
892
976
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
893
977
|
}, z.core.$strip>;
|
|
894
|
-
}, 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>>]>;
|
|
895
998
|
readonly querySchema: z.ZodObject<{
|
|
896
999
|
'order[businessName]': z.ZodOptional<z.ZodEnum<{
|
|
897
1000
|
asc: "asc";
|
|
@@ -919,11 +1022,31 @@ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<typeof getC
|
|
|
919
1022
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
920
1023
|
}, z.core.$strip>;
|
|
921
1024
|
readonly headersSchema: undefined;
|
|
1025
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1026
|
+
id: z.ZodString;
|
|
1027
|
+
businessName: z.ZodString;
|
|
1028
|
+
vat: z.ZodString;
|
|
1029
|
+
taxCode: z.ZodString;
|
|
1030
|
+
billingAddress: z.ZodObject<{
|
|
1031
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1032
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1033
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1034
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1035
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1037
|
+
}, z.core.$strip>;
|
|
1038
|
+
billingData: z.ZodObject<{
|
|
1039
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1040
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1041
|
+
}, z.core.$strip>;
|
|
1042
|
+
createdAt: z.ZodString;
|
|
1043
|
+
updatedAt: z.ZodString;
|
|
1044
|
+
}, z.core.$strip>;
|
|
1045
|
+
readonly paginationDefaultEnabled = true;
|
|
922
1046
|
constructor(options?: {
|
|
923
1047
|
query?: GetCustomerBusinessProfilesQueryParams;
|
|
924
1048
|
});
|
|
925
1049
|
getPath(): string;
|
|
926
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<CustomerBusinessProfile>;
|
|
927
1050
|
}
|
|
928
1051
|
|
|
929
1052
|
declare const getCustomerBusinessProfilesForCustomerQuerySchema: z.ZodObject<{
|
|
@@ -976,9 +1099,9 @@ declare const getCustomerBusinessProfilesForCustomerResponseSchema: z.ZodArray<z
|
|
|
976
1099
|
}, z.core.$strip>>;
|
|
977
1100
|
type GetCustomerBusinessProfilesForCustomerResponse = z.infer<typeof getCustomerBusinessProfilesForCustomerResponseSchema>;
|
|
978
1101
|
declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<typeof getCustomerBusinessProfilesForCustomerInputSchema, typeof getCustomerBusinessProfilesForCustomerResponseSchema, GetCustomerBusinessProfilesForCustomerQueryParams> {
|
|
979
|
-
readonly method
|
|
980
|
-
readonly contentType
|
|
981
|
-
readonly accept
|
|
1102
|
+
readonly method: "GET";
|
|
1103
|
+
readonly contentType: "application/json";
|
|
1104
|
+
readonly accept: "application/json";
|
|
982
1105
|
readonly inputSchema: z.ZodUndefined;
|
|
983
1106
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
984
1107
|
id: z.ZodString;
|
|
@@ -1026,12 +1149,32 @@ declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<
|
|
|
1026
1149
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1027
1150
|
}, z.core.$strip>;
|
|
1028
1151
|
readonly headersSchema: undefined;
|
|
1152
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1153
|
+
id: z.ZodString;
|
|
1154
|
+
businessName: z.ZodString;
|
|
1155
|
+
vat: z.ZodString;
|
|
1156
|
+
taxCode: z.ZodString;
|
|
1157
|
+
billingAddress: z.ZodObject<{
|
|
1158
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1159
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1160
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1162
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1163
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1164
|
+
}, z.core.$strip>;
|
|
1165
|
+
billingData: z.ZodObject<{
|
|
1166
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1167
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
1168
|
+
}, z.core.$strip>;
|
|
1169
|
+
createdAt: z.ZodString;
|
|
1170
|
+
updatedAt: z.ZodString;
|
|
1171
|
+
}, z.core.$strip>;
|
|
1172
|
+
readonly paginationDefaultEnabled = false;
|
|
1029
1173
|
private readonly customerId;
|
|
1030
1174
|
constructor(customerId: string, options?: {
|
|
1031
1175
|
query?: GetCustomerBusinessProfilesForCustomerQueryParams;
|
|
1032
1176
|
});
|
|
1033
1177
|
getPath(): string;
|
|
1034
|
-
parseResponse(data: unknown): CustomerBusinessProfile[];
|
|
1035
1178
|
}
|
|
1036
1179
|
|
|
1037
1180
|
declare const updateCustomerBusinessProfileInputSchema: z.ZodObject<{
|
|
@@ -1293,7 +1436,7 @@ declare const getCustomersQuerySchema: z.ZodObject<{
|
|
|
1293
1436
|
type GetCustomersQueryParams = z.infer<typeof getCustomersQuerySchema>;
|
|
1294
1437
|
declare const getCustomersInputSchema: z.ZodUndefined;
|
|
1295
1438
|
type GetCustomersInput = z.input<typeof getCustomersInputSchema>;
|
|
1296
|
-
declare const getCustomersResponseSchema: z.ZodObject<{
|
|
1439
|
+
declare const getCustomersResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1297
1440
|
data: z.ZodArray<z.ZodObject<{
|
|
1298
1441
|
id: z.ZodString;
|
|
1299
1442
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1315,14 +1458,26 @@ declare const getCustomersResponseSchema: z.ZodObject<{
|
|
|
1315
1458
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1316
1459
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1317
1460
|
}, z.core.$strip>;
|
|
1318
|
-
}, 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>>]>;
|
|
1319
1474
|
type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
|
|
1320
1475
|
declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSchema, typeof getCustomersResponseSchema, GetCustomersQueryParams> {
|
|
1321
|
-
readonly method
|
|
1322
|
-
readonly contentType
|
|
1323
|
-
readonly accept
|
|
1476
|
+
readonly method: "GET";
|
|
1477
|
+
readonly contentType: "application/json";
|
|
1478
|
+
readonly accept: "application/json";
|
|
1324
1479
|
readonly inputSchema: z.ZodUndefined;
|
|
1325
|
-
readonly outputSchema: z.ZodObject<{
|
|
1480
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1326
1481
|
data: z.ZodArray<z.ZodObject<{
|
|
1327
1482
|
id: z.ZodString;
|
|
1328
1483
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1344,7 +1499,19 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
|
|
|
1344
1499
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1345
1500
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1346
1501
|
}, z.core.$strip>;
|
|
1347
|
-
}, 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>>]>;
|
|
1348
1515
|
readonly querySchema: z.ZodObject<{
|
|
1349
1516
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1350
1517
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -1389,11 +1556,24 @@ declare class GetCustomers extends AbstractApiRequest<typeof getCustomersInputSc
|
|
|
1389
1556
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1390
1557
|
}, z.core.$strip>;
|
|
1391
1558
|
readonly headersSchema: undefined;
|
|
1559
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1560
|
+
id: z.ZodString;
|
|
1561
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1562
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1563
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1564
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1565
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1566
|
+
hasAddresses: z.ZodBoolean;
|
|
1567
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1568
|
+
totalSpent: z.ZodString;
|
|
1569
|
+
createdAt: z.ZodString;
|
|
1570
|
+
updatedAt: z.ZodString;
|
|
1571
|
+
}, z.core.$strip>;
|
|
1572
|
+
readonly paginationDefaultEnabled = true;
|
|
1392
1573
|
constructor(options?: {
|
|
1393
1574
|
query?: GetCustomersQueryParams;
|
|
1394
1575
|
});
|
|
1395
1576
|
getPath(): string;
|
|
1396
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<Customer>;
|
|
1397
1577
|
}
|
|
1398
1578
|
|
|
1399
1579
|
declare const getCustomersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -1442,7 +1622,7 @@ declare const getCustomersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
1442
1622
|
type GetCustomersFromPointOfSaleQueryParams = z.infer<typeof getCustomersFromPointOfSaleQuerySchema>;
|
|
1443
1623
|
declare const getCustomersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1444
1624
|
type GetCustomersFromPointOfSaleInput = z.input<typeof getCustomersFromPointOfSaleInputSchema>;
|
|
1445
|
-
declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1625
|
+
declare const getCustomersFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1446
1626
|
data: z.ZodArray<z.ZodObject<{
|
|
1447
1627
|
id: z.ZodString;
|
|
1448
1628
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1464,14 +1644,26 @@ declare const getCustomersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1464
1644
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1465
1645
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1466
1646
|
}, z.core.$strip>;
|
|
1467
|
-
}, 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>>]>;
|
|
1468
1660
|
type GetCustomersFromPointOfSaleResponse = z.infer<typeof getCustomersFromPointOfSaleResponseSchema>;
|
|
1469
1661
|
declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getCustomersFromPointOfSaleInputSchema, typeof getCustomersFromPointOfSaleResponseSchema, GetCustomersFromPointOfSaleQueryParams> {
|
|
1470
|
-
readonly method
|
|
1471
|
-
readonly contentType
|
|
1472
|
-
readonly accept
|
|
1662
|
+
readonly method: "GET";
|
|
1663
|
+
readonly contentType: "application/json";
|
|
1664
|
+
readonly accept: "application/json";
|
|
1473
1665
|
readonly inputSchema: z.ZodUndefined;
|
|
1474
|
-
readonly outputSchema: z.ZodObject<{
|
|
1666
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1475
1667
|
data: z.ZodArray<z.ZodObject<{
|
|
1476
1668
|
id: z.ZodString;
|
|
1477
1669
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1493,7 +1685,19 @@ declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getC
|
|
|
1493
1685
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1494
1686
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1495
1687
|
}, z.core.$strip>;
|
|
1496
|
-
}, 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>>]>;
|
|
1497
1701
|
readonly querySchema: z.ZodObject<{
|
|
1498
1702
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1499
1703
|
lastName: z.ZodOptional<z.ZodString>;
|
|
@@ -1538,12 +1742,25 @@ declare class GetCustomersFromPointOfSale extends AbstractApiRequest<typeof getC
|
|
|
1538
1742
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1539
1743
|
}, z.core.$strip>;
|
|
1540
1744
|
readonly headersSchema: undefined;
|
|
1745
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1746
|
+
id: z.ZodString;
|
|
1747
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
1748
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
1749
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
1750
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
1751
|
+
hasBusinessProfiles: z.ZodBoolean;
|
|
1752
|
+
hasAddresses: z.ZodBoolean;
|
|
1753
|
+
ordersPlaced: z.ZodCoercedNumber<unknown>;
|
|
1754
|
+
totalSpent: z.ZodString;
|
|
1755
|
+
createdAt: z.ZodString;
|
|
1756
|
+
updatedAt: z.ZodString;
|
|
1757
|
+
}, z.core.$strip>;
|
|
1758
|
+
readonly paginationDefaultEnabled = true;
|
|
1541
1759
|
private readonly pointOfSaleId;
|
|
1542
1760
|
constructor(pointOfSaleId: string, options?: {
|
|
1543
1761
|
query?: GetCustomersFromPointOfSaleQueryParams;
|
|
1544
1762
|
});
|
|
1545
1763
|
getPath(): string;
|
|
1546
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<Customer>;
|
|
1547
1764
|
}
|
|
1548
1765
|
|
|
1549
1766
|
declare const updateCustomerInputSchema: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -11332,8 +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
|
-
|
|
11336
|
-
responseToPagination,
|
|
11335
|
+
mixedPaginationSchema,
|
|
11337
11336
|
sortDirSchema as sortDirSchema2,
|
|
11338
11337
|
timestampsFilterSchema as timestampsFilterSchema2
|
|
11339
11338
|
} from "@deliverart/sdk-js-global-types";
|
|
@@ -11343,7 +11342,7 @@ var getCustomerAddressesQuerySchema = external_exports.object({
|
|
|
11343
11342
|
page: external_exports.coerce.number().optional()
|
|
11344
11343
|
}).extend(timestampsFilterSchema2.shape);
|
|
11345
11344
|
var getCustomerAddressesInputSchema = external_exports.undefined();
|
|
11346
|
-
var getCustomerAddressesResponseSchema =
|
|
11345
|
+
var getCustomerAddressesResponseSchema = mixedPaginationSchema(customerAddressSchema);
|
|
11347
11346
|
var GetCustomerAddresses = class extends AbstractApiRequest4 {
|
|
11348
11347
|
constructor(options) {
|
|
11349
11348
|
super(void 0, options);
|
|
@@ -11354,17 +11353,12 @@ var GetCustomerAddresses = class extends AbstractApiRequest4 {
|
|
|
11354
11353
|
this.outputSchema = getCustomerAddressesResponseSchema;
|
|
11355
11354
|
this.querySchema = getCustomerAddressesQuerySchema;
|
|
11356
11355
|
this.headersSchema = void 0;
|
|
11356
|
+
this.listItemSchema = customerAddressSchema;
|
|
11357
|
+
this.paginationDefaultEnabled = true;
|
|
11357
11358
|
}
|
|
11358
11359
|
getPath() {
|
|
11359
11360
|
return "/customers/addresses";
|
|
11360
11361
|
}
|
|
11361
|
-
parseResponse(data, rawResponse) {
|
|
11362
|
-
const customerAddresses = external_exports.array(customerAddressSchema).parse(data);
|
|
11363
|
-
return this.validateOutput({
|
|
11364
|
-
data: customerAddresses,
|
|
11365
|
-
pagination: responseToPagination(rawResponse)
|
|
11366
|
-
});
|
|
11367
|
-
}
|
|
11368
11362
|
};
|
|
11369
11363
|
|
|
11370
11364
|
// src/requests/customer-addresses/GetCustomerAddressesForCustomer.ts
|
|
@@ -11386,14 +11380,13 @@ var GetCustomerAddressesForCustomer = class extends AbstractApiRequest5 {
|
|
|
11386
11380
|
this.outputSchema = getCustomerAddressesForCustomerResponseSchema;
|
|
11387
11381
|
this.querySchema = getCustomerAddressesForCustomerQuerySchema;
|
|
11388
11382
|
this.headersSchema = void 0;
|
|
11383
|
+
this.listItemSchema = customerAddressSchema;
|
|
11384
|
+
this.paginationDefaultEnabled = false;
|
|
11389
11385
|
this.customerId = customerId;
|
|
11390
11386
|
}
|
|
11391
11387
|
getPath() {
|
|
11392
11388
|
return `/customers/${this.customerId}/addresses`;
|
|
11393
11389
|
}
|
|
11394
|
-
parseResponse(data) {
|
|
11395
|
-
return external_exports.array(customerAddressSchema).parse(data);
|
|
11396
|
-
}
|
|
11397
11390
|
};
|
|
11398
11391
|
|
|
11399
11392
|
// src/requests/customer-addresses/UpdateCustomerAddress.ts
|
|
@@ -11483,8 +11476,7 @@ var GetCustomerBusinessProfileDetails = class extends AbstractApiRequest9 {
|
|
|
11483
11476
|
// src/requests/customer-business-profiles/GetCustomerBusinessProfiles.ts
|
|
11484
11477
|
import { AbstractApiRequest as AbstractApiRequest10 } from "@deliverart/sdk-js-core";
|
|
11485
11478
|
import {
|
|
11486
|
-
|
|
11487
|
-
responseToPagination as responseToPagination2,
|
|
11479
|
+
mixedPaginationSchema as mixedPaginationSchema2,
|
|
11488
11480
|
sortDirSchema as sortDirSchema4,
|
|
11489
11481
|
timestampsFilterSchema as timestampsFilterSchema4
|
|
11490
11482
|
} from "@deliverart/sdk-js-global-types";
|
|
@@ -11498,7 +11490,7 @@ var getCustomerBusinessProfilesQuerySchema = external_exports.object({
|
|
|
11498
11490
|
page: external_exports.coerce.number().optional()
|
|
11499
11491
|
}).extend(timestampsFilterSchema4.shape);
|
|
11500
11492
|
var getCustomerBusinessProfilesInputSchema = external_exports.undefined();
|
|
11501
|
-
var getCustomerBusinessProfilesResponseSchema =
|
|
11493
|
+
var getCustomerBusinessProfilesResponseSchema = mixedPaginationSchema2(
|
|
11502
11494
|
customerBusinessProfileSchema
|
|
11503
11495
|
);
|
|
11504
11496
|
var GetCustomerBusinessProfiles = class extends AbstractApiRequest10 {
|
|
@@ -11511,17 +11503,12 @@ var GetCustomerBusinessProfiles = class extends AbstractApiRequest10 {
|
|
|
11511
11503
|
this.outputSchema = getCustomerBusinessProfilesResponseSchema;
|
|
11512
11504
|
this.querySchema = getCustomerBusinessProfilesQuerySchema;
|
|
11513
11505
|
this.headersSchema = void 0;
|
|
11506
|
+
this.listItemSchema = customerBusinessProfileSchema;
|
|
11507
|
+
this.paginationDefaultEnabled = true;
|
|
11514
11508
|
}
|
|
11515
11509
|
getPath() {
|
|
11516
11510
|
return "/customers/business_profiles";
|
|
11517
11511
|
}
|
|
11518
|
-
parseResponse(data, rawResponse) {
|
|
11519
|
-
const customerBusinessProfiles = external_exports.array(customerBusinessProfileSchema).parse(data);
|
|
11520
|
-
return this.validateOutput({
|
|
11521
|
-
data: customerBusinessProfiles,
|
|
11522
|
-
pagination: responseToPagination2(rawResponse)
|
|
11523
|
-
});
|
|
11524
|
-
}
|
|
11525
11512
|
};
|
|
11526
11513
|
|
|
11527
11514
|
// src/requests/customer-business-profiles/GetCustomerBusinessProfilesForCustomer.ts
|
|
@@ -11549,14 +11536,13 @@ var GetCustomerBusinessProfilesForCustomer = class extends AbstractApiRequest11
|
|
|
11549
11536
|
this.outputSchema = getCustomerBusinessProfilesForCustomerResponseSchema;
|
|
11550
11537
|
this.querySchema = getCustomerBusinessProfilesForCustomerQuerySchema;
|
|
11551
11538
|
this.headersSchema = void 0;
|
|
11539
|
+
this.listItemSchema = customerBusinessProfileSchema;
|
|
11540
|
+
this.paginationDefaultEnabled = false;
|
|
11552
11541
|
this.customerId = customerId;
|
|
11553
11542
|
}
|
|
11554
11543
|
getPath() {
|
|
11555
11544
|
return `/customers/${this.customerId}/business_profiles`;
|
|
11556
11545
|
}
|
|
11557
|
-
parseResponse(data) {
|
|
11558
|
-
return external_exports.array(customerBusinessProfileSchema).parse(data);
|
|
11559
|
-
}
|
|
11560
11546
|
};
|
|
11561
11547
|
|
|
11562
11548
|
// src/requests/customer-business-profiles/UpdateCustomerBusinessProfile.ts
|
|
@@ -11645,13 +11631,10 @@ var GetCustomerDetails = class extends AbstractApiRequest15 {
|
|
|
11645
11631
|
|
|
11646
11632
|
// src/requests/customers/GetCustomers.ts
|
|
11647
11633
|
import { AbstractApiRequest as AbstractApiRequest16 } from "@deliverart/sdk-js-core";
|
|
11648
|
-
import {
|
|
11649
|
-
createPaginatedSchema as createPaginatedSchema3,
|
|
11650
|
-
responseToPagination as responseToPagination3
|
|
11651
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11634
|
+
import { mixedPaginationSchema as mixedPaginationSchema3 } from "@deliverart/sdk-js-global-types";
|
|
11652
11635
|
var getCustomersQuerySchema = customersQuerySchema;
|
|
11653
11636
|
var getCustomersInputSchema = external_exports.undefined();
|
|
11654
|
-
var getCustomersResponseSchema =
|
|
11637
|
+
var getCustomersResponseSchema = mixedPaginationSchema3(customerSchema);
|
|
11655
11638
|
var GetCustomers = class extends AbstractApiRequest16 {
|
|
11656
11639
|
constructor(options) {
|
|
11657
11640
|
super(void 0, options);
|
|
@@ -11662,25 +11645,21 @@ var GetCustomers = class extends AbstractApiRequest16 {
|
|
|
11662
11645
|
this.outputSchema = getCustomersResponseSchema;
|
|
11663
11646
|
this.querySchema = getCustomersQuerySchema;
|
|
11664
11647
|
this.headersSchema = void 0;
|
|
11648
|
+
// Declare list behavior
|
|
11649
|
+
this.listItemSchema = customerSchema;
|
|
11650
|
+
this.paginationDefaultEnabled = true;
|
|
11665
11651
|
}
|
|
11666
11652
|
getPath() {
|
|
11667
11653
|
return "/customers";
|
|
11668
11654
|
}
|
|
11669
|
-
parseResponse(data, rawResponse) {
|
|
11670
|
-
const customers = external_exports.array(customerSchema).parse(data);
|
|
11671
|
-
return this.validateOutput({ data: customers, pagination: responseToPagination3(rawResponse) });
|
|
11672
|
-
}
|
|
11673
11655
|
};
|
|
11674
11656
|
|
|
11675
11657
|
// src/requests/customers/GetCustomersFromPointOfSale.ts
|
|
11676
11658
|
import { AbstractApiRequest as AbstractApiRequest17 } from "@deliverart/sdk-js-core";
|
|
11677
|
-
import {
|
|
11678
|
-
createPaginatedSchema as createPaginatedSchema4,
|
|
11679
|
-
responseToPagination as responseToPagination4
|
|
11680
|
-
} from "@deliverart/sdk-js-global-types";
|
|
11659
|
+
import { mixedPaginationSchema as mixedPaginationSchema4 } from "@deliverart/sdk-js-global-types";
|
|
11681
11660
|
var getCustomersFromPointOfSaleQuerySchema = customersQuerySchema;
|
|
11682
11661
|
var getCustomersFromPointOfSaleInputSchema = external_exports.undefined();
|
|
11683
|
-
var getCustomersFromPointOfSaleResponseSchema =
|
|
11662
|
+
var getCustomersFromPointOfSaleResponseSchema = mixedPaginationSchema4(customerSchema);
|
|
11684
11663
|
var GetCustomersFromPointOfSale = class extends AbstractApiRequest17 {
|
|
11685
11664
|
constructor(pointOfSaleId, options) {
|
|
11686
11665
|
super(void 0, options);
|
|
@@ -11691,15 +11670,14 @@ var GetCustomersFromPointOfSale = class extends AbstractApiRequest17 {
|
|
|
11691
11670
|
this.outputSchema = getCustomersFromPointOfSaleResponseSchema;
|
|
11692
11671
|
this.querySchema = getCustomersFromPointOfSaleQuerySchema;
|
|
11693
11672
|
this.headersSchema = void 0;
|
|
11673
|
+
// Declare list behavior
|
|
11674
|
+
this.listItemSchema = customerSchema;
|
|
11675
|
+
this.paginationDefaultEnabled = true;
|
|
11694
11676
|
this.pointOfSaleId = pointOfSaleId;
|
|
11695
11677
|
}
|
|
11696
11678
|
getPath() {
|
|
11697
11679
|
return `/point_of_sales/${this.pointOfSaleId}/customers`;
|
|
11698
11680
|
}
|
|
11699
|
-
parseResponse(data, rawResponse) {
|
|
11700
|
-
const customers = external_exports.array(customerSchema).parse(data);
|
|
11701
|
-
return this.validateOutput({ data: customers, pagination: responseToPagination4(rawResponse) });
|
|
11702
|
-
}
|
|
11703
11681
|
};
|
|
11704
11682
|
|
|
11705
11683
|
// src/requests/customers/UpdateCustomer.ts
|
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.
|
|
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-core": "2.
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.
|
|
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"
|