@deliverart/sdk-js-point-of-sale 2.5.34 → 2.6.0
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 -50
- package/dist/index.d.cts +354 -41
- package/dist/index.d.ts +354 -41
- package/dist/index.js +23 -70
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -11588,17 +11588,12 @@ var GetPointOfSaleUsers = class extends import_sdk_js_core3.AbstractApiRequest {
|
|
|
11588
11588
|
this.outputSchema = getPointOfSaleUsersResponseSchema;
|
|
11589
11589
|
this.querySchema = getPointOfSaleUsersQuerySchema;
|
|
11590
11590
|
this.headersSchema = void 0;
|
|
11591
|
+
this.listItemSchema = pointOfSaleUserSchema;
|
|
11592
|
+
this.paginationDefaultEnabled = true;
|
|
11591
11593
|
}
|
|
11592
11594
|
getPath() {
|
|
11593
11595
|
return "/point_of_sale_users";
|
|
11594
11596
|
}
|
|
11595
|
-
parseResponse(data, rawResponse) {
|
|
11596
|
-
const pointOfSaleUsers = external_exports.array(pointOfSaleUserSchema).parse(data);
|
|
11597
|
-
return this.validateOutput({
|
|
11598
|
-
data: pointOfSaleUsers,
|
|
11599
|
-
pagination: (0, import_sdk_js_global_types4.responseToPagination)(rawResponse)
|
|
11600
|
-
});
|
|
11601
|
-
}
|
|
11602
11597
|
};
|
|
11603
11598
|
|
|
11604
11599
|
// src/requests/point-of-sale-users/GetPointOfSaleUsersFromPointOfSale.ts
|
|
@@ -11621,14 +11616,13 @@ var GetPointOfSaleUsersFromPointOfSale = class extends import_sdk_js_core4.Abstr
|
|
|
11621
11616
|
this.outputSchema = getPointOfSaleUsersFromPointOfSaleResponseSchema;
|
|
11622
11617
|
this.querySchema = getPointOfSaleUsersFromPointOfSaleQuerySchema;
|
|
11623
11618
|
this.headersSchema = void 0;
|
|
11619
|
+
this.listItemSchema = pointOfSaleUserSchemaFromUser;
|
|
11620
|
+
this.paginationDefaultEnabled = false;
|
|
11624
11621
|
this.pointOfSaleId = pointOfSaleId;
|
|
11625
11622
|
}
|
|
11626
11623
|
getPath() {
|
|
11627
11624
|
return `/point_of_sales/${this.pointOfSaleId}/point_of_sale_users`;
|
|
11628
11625
|
}
|
|
11629
|
-
parseResponse(data) {
|
|
11630
|
-
return external_exports.array(pointOfSaleUserSchemaFromUser).parse(data);
|
|
11631
|
-
}
|
|
11632
11626
|
};
|
|
11633
11627
|
|
|
11634
11628
|
// src/requests/point-of-sale-users/GetPointOfSaleUsersFromUser.ts
|
|
@@ -11649,14 +11643,13 @@ var GetPointOfSaleUsersFromUser = class extends import_sdk_js_core5.AbstractApiR
|
|
|
11649
11643
|
this.outputSchema = getPointOfSaleUsersFromUserResponseSchema;
|
|
11650
11644
|
this.querySchema = getPointOfSaleUsersFromUserQuerySchema;
|
|
11651
11645
|
this.headersSchema = void 0;
|
|
11646
|
+
this.listItemSchema = pointOfSaleUserSchemaFromUser2;
|
|
11647
|
+
this.paginationDefaultEnabled = false;
|
|
11652
11648
|
this.userId = userId;
|
|
11653
11649
|
}
|
|
11654
11650
|
getPath() {
|
|
11655
11651
|
return `/users/${this.userId}/point_of_sale_users`;
|
|
11656
11652
|
}
|
|
11657
|
-
parseResponse(data) {
|
|
11658
|
-
return external_exports.array(pointOfSaleUserSchemaFromUser2).parse(data);
|
|
11659
|
-
}
|
|
11660
11653
|
};
|
|
11661
11654
|
|
|
11662
11655
|
// src/requests/point-of-sale-users/UpdatePointOfSaleUser.ts
|
|
@@ -11746,9 +11739,6 @@ var GetAvailablePointOfSaleDeliveryTimes = class extends import_sdk_js_core9.Abs
|
|
|
11746
11739
|
getPath() {
|
|
11747
11740
|
return `/point_of_sales/${this.pointOfSaleId}/available_delivery_times`;
|
|
11748
11741
|
}
|
|
11749
|
-
parseResponse(data) {
|
|
11750
|
-
return getAvailablePointOfSaleDeliveryTimesResponseSchema.parse(data);
|
|
11751
|
-
}
|
|
11752
11742
|
};
|
|
11753
11743
|
|
|
11754
11744
|
// src/requests/point-of-sales/GetAvailablePointOfSaleTakeAwayTimes.ts
|
|
@@ -11773,9 +11763,6 @@ var GetAvailablePointOfSaleTakeAwayTimes = class extends import_sdk_js_core10.Ab
|
|
|
11773
11763
|
getPath() {
|
|
11774
11764
|
return `/point_of_sales/${this.pointOfSaleId}/available_take_away_times`;
|
|
11775
11765
|
}
|
|
11776
|
-
parseResponse(data) {
|
|
11777
|
-
return getAvailablePointOfSaleTakeAwayTimesResponseSchema.parse(data);
|
|
11778
|
-
}
|
|
11779
11766
|
};
|
|
11780
11767
|
|
|
11781
11768
|
// src/requests/point-of-sales/GetCompanyPointOfSales.ts
|
|
@@ -11793,14 +11780,13 @@ var GetCompanyPointOfSales = class extends import_sdk_js_core11.AbstractApiReque
|
|
|
11793
11780
|
this.outputSchema = getCompanyPointOfSalesResponseSchema;
|
|
11794
11781
|
this.querySchema = getCompanyPointOfSalesQuerySchema;
|
|
11795
11782
|
this.headersSchema = void 0;
|
|
11783
|
+
this.listItemSchema = pointOfSaleSchema;
|
|
11784
|
+
this.paginationDefaultEnabled = false;
|
|
11796
11785
|
this.companyId = companyId;
|
|
11797
11786
|
}
|
|
11798
11787
|
getPath() {
|
|
11799
11788
|
return `/companies/${this.companyId}/point_of_sales`;
|
|
11800
11789
|
}
|
|
11801
|
-
parseResponse(data) {
|
|
11802
|
-
return external_exports.array(pointOfSaleSchema).parse(data);
|
|
11803
|
-
}
|
|
11804
11790
|
};
|
|
11805
11791
|
|
|
11806
11792
|
// src/requests/point-of-sales/GetPointOfSaleDetails.ts
|
|
@@ -11864,18 +11850,14 @@ var GetPointOfSaleMenuVersions = class extends import_sdk_js_core14.AbstractApiR
|
|
|
11864
11850
|
this.outputSchema = getPointOfSaleMenuVersionsResponseSchema;
|
|
11865
11851
|
this.querySchema = getPointOfSaleMenuVersionsQuerySchema;
|
|
11866
11852
|
this.headersSchema = void 0;
|
|
11853
|
+
// Declare list behavior
|
|
11854
|
+
this.listItemSchema = menuVersionSchema;
|
|
11855
|
+
this.paginationDefaultEnabled = true;
|
|
11867
11856
|
this.pointOfSaleId = pointOfSaleId;
|
|
11868
11857
|
}
|
|
11869
11858
|
getPath() {
|
|
11870
11859
|
return `/point_of_sales/${this.pointOfSaleId}/menu_versions`;
|
|
11871
11860
|
}
|
|
11872
|
-
parseResponse(data, rawResponse) {
|
|
11873
|
-
const integrations = external_exports.array(menuVersionSchema).parse(data);
|
|
11874
|
-
return this.validateOutput({
|
|
11875
|
-
data: integrations,
|
|
11876
|
-
pagination: (0, import_sdk_js_global_types6.responseToPagination)(rawResponse)
|
|
11877
|
-
});
|
|
11878
|
-
}
|
|
11879
11861
|
};
|
|
11880
11862
|
|
|
11881
11863
|
// src/requests/point-of-sales/GetPointOfSales.ts
|
|
@@ -11894,17 +11876,13 @@ var GetPointOfSales = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
|
11894
11876
|
this.outputSchema = getPointOfSalesResponseSchema;
|
|
11895
11877
|
this.querySchema = getPointOfSalesQuerySchema;
|
|
11896
11878
|
this.headersSchema = void 0;
|
|
11879
|
+
// Declare list behavior
|
|
11880
|
+
this.listItemSchema = pointOfSaleSchema;
|
|
11881
|
+
this.paginationDefaultEnabled = true;
|
|
11897
11882
|
}
|
|
11898
11883
|
getPath() {
|
|
11899
11884
|
return "/point_of_sales";
|
|
11900
11885
|
}
|
|
11901
|
-
parseResponse(data, rawResponse) {
|
|
11902
|
-
const pointOfSales = external_exports.array(pointOfSaleSchema).parse(data);
|
|
11903
|
-
return this.validateOutput({
|
|
11904
|
-
data: pointOfSales,
|
|
11905
|
-
pagination: (0, import_sdk_js_global_types7.responseToPagination)(rawResponse)
|
|
11906
|
-
});
|
|
11907
|
-
}
|
|
11908
11886
|
};
|
|
11909
11887
|
|
|
11910
11888
|
// src/requests/point-of-sales/UpdatePointOfSale.ts
|
|
@@ -12009,17 +11987,12 @@ var GetPointOfSaleTimeOverrides = class extends import_sdk_js_core20.AbstractApi
|
|
|
12009
11987
|
this.outputSchema = getPointOfSaleTimeOverridesResponseSchema;
|
|
12010
11988
|
this.querySchema = getPointOfSaleTimeOverridesQuerySchema;
|
|
12011
11989
|
this.headersSchema = void 0;
|
|
11990
|
+
this.listItemSchema = pointOfSaleTimeOverrideSchema;
|
|
11991
|
+
this.paginationDefaultEnabled = true;
|
|
12012
11992
|
}
|
|
12013
11993
|
getPath() {
|
|
12014
11994
|
return "/point_of_sales/time_overrides";
|
|
12015
11995
|
}
|
|
12016
|
-
parseResponse(data, rawResponse) {
|
|
12017
|
-
const pointOfSaleTimeOverrides = external_exports.array(pointOfSaleTimeOverrideSchema).parse(data);
|
|
12018
|
-
return this.validateOutput({
|
|
12019
|
-
data: pointOfSaleTimeOverrides,
|
|
12020
|
-
pagination: (0, import_sdk_js_global_types9.responseToPagination)(rawResponse)
|
|
12021
|
-
});
|
|
12022
|
-
}
|
|
12023
11996
|
};
|
|
12024
11997
|
|
|
12025
11998
|
// src/requests/point-of-time-overrides/GetPointOfSaleTimeOverridesFromPointOfSale.ts
|
|
@@ -12040,18 +12013,13 @@ var GetPointOfSaleTimeOverridesFromPointOfSale = class extends import_sdk_js_cor
|
|
|
12040
12013
|
this.outputSchema = getPointOfSaleTimeOverridesFromPointOfSaleResponseSchema;
|
|
12041
12014
|
this.querySchema = getPointOfSaleTimeOverridesFromPointOfSaleQuerySchema;
|
|
12042
12015
|
this.headersSchema = void 0;
|
|
12016
|
+
this.listItemSchema = pointOfSaleTimeOverrideSchema;
|
|
12017
|
+
this.paginationDefaultEnabled = true;
|
|
12043
12018
|
this.pointOfSaleId = pointOfSaleId;
|
|
12044
12019
|
}
|
|
12045
12020
|
getPath() {
|
|
12046
12021
|
return `/point_of_sales/${this.pointOfSaleId}/time_overrides`;
|
|
12047
12022
|
}
|
|
12048
|
-
parseResponse(data, rawResponse) {
|
|
12049
|
-
const pointOfSaleTimeOverridesFromPointOfSale = external_exports.array(pointOfSaleTimeOverrideSchema).parse(data);
|
|
12050
|
-
return this.validateOutput({
|
|
12051
|
-
data: pointOfSaleTimeOverridesFromPointOfSale,
|
|
12052
|
-
pagination: (0, import_sdk_js_global_types10.responseToPagination)(rawResponse)
|
|
12053
|
-
});
|
|
12054
|
-
}
|
|
12055
12023
|
};
|
|
12056
12024
|
|
|
12057
12025
|
// src/requests/point-of-time-overrides/UpdatePointOfSaleTimeOverride.ts
|