@compassdigital/sdk.typescript 4.210.0 → 4.211.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/lib/index.d.ts +5 -5
- package/lib/index.js +3 -3
- package/lib/interface/order.d.ts +5 -5
- package/package.json +1 -1
- package/src/index.ts +9 -9
- package/src/interface/order.ts +6 -6
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PostPaymentTransactionBody, PostPaymentTransactionResponse, PostPaymentTransactionRefundBody, PostPaymentTransactionRefundResponse, GetPaymentClienttokenQuery, GetPaymentClienttokenResponse, PostPaymentPaymenttokenBody, PostPaymentPaymenttokenResponse, PostPaymentConsumerBody, PostPaymentConsumerResponse, PostPaymentMethodBody, PostPaymentMethodResponse, GetPaymentTokenQuery, GetPaymentTokenResponse, PostPaymentTokenBody, PostPaymentTokenResponse, PutPaymentTokenBody, PutPaymentTokenResponse, DeletePaymentTokenBody, DeletePaymentTokenResponse, GetPaymentMethodsQuery, GetPaymentMethodsResponse, GetPaymentHpcQuery, GetPaymentHpcResponse, GetPaymentCashlessQuery, GetPaymentCashlessResponse, PostPaymentCashlessBody, PostPaymentCashlessResponse, DeletePaymentCashlessBody, DeletePaymentCashlessResponse, PostPaymentConfigvalidateBody, PostPaymentConfigvalidateResponse, PostPaymentValidatemerchantBody, PostPaymentValidatemerchantResponse } from './interface/payment';
|
|
2
|
-
import { PostOrderQuery, PostOrderBody, PostOrderResponse,
|
|
2
|
+
import { PostOrderQuery, PostOrderBody, PostOrderResponse, PostOrderPosQuery, PostOrderPosBody, PostOrderPosResponse, GetOrderQuery, GetOrderResponse, PutOrderResponse, PatchOrderBody, PatchOrderResponse, PostOrderIssueBody, PostOrderIssueResponse, PatchOrderRefundBody, PatchOrderRefundResponse, PatchOrderCancelBody, PatchOrderCancelResponse, GetOrderCustomerOrdersQuery, GetOrderCustomerOrdersResponse, GetOrderCustomerOrdersBrandQuery, GetOrderCustomerOrdersBrandResponse, GetOrderLocationBrandQuery, GetOrderLocationBrandResponse, GetOrderLocationOrdersQuery, GetOrderLocationOrdersResponse, GetOrderGroupOrdersQuery, GetOrderGroupOrdersResponse, GetOrderUserOrdersQuery, GetOrderUserOrdersResponse, PatchOrderCheckinResponse, PostOrderApexSnsBody, PostOrderApexSnsResponse } from './interface/order';
|
|
3
3
|
import { PostLocationBody, PostLocationResponse, GetLocationSearchQuery, GetLocationSearchResponse, GetLocationQuery, GetLocationResponse, PutLocationBody, PutLocationResponse, DeleteLocationBody, DeleteLocationResponse, PatchLocationBody, PatchLocationResponse, PostLocationBatchGetBody, PostLocationBatchGetResponse, GetLocationMultigroupsQuery, GetLocationMultigroupsResponse, PostLocationMultigroupBody, PostLocationMultigroupResponse, GetLocationMultigroupQuery, GetLocationMultigroupResponse, PutLocationMultigroupBody, PutLocationMultigroupResponse, DeleteLocationMultigroupBody, DeleteLocationMultigroupResponse, PatchLocationMultigroupBody, PatchLocationMultigroupResponse, GetLocationUserMultigroupQuery, GetLocationUserMultigroupResponse, PostLocationGroupBody, PostLocationGroupResponse, GetLocationGroupQuery, GetLocationGroupResponse, PutLocationGroupBody, PutLocationGroupResponse, DeleteLocationGroupBody, DeleteLocationGroupResponse, PatchLocationGroupBody, PatchLocationGroupResponse, GetLocationGroupAppThemeQuery, GetLocationGroupAppThemeResponse, PostLocationGroupBatchGetBody, PostLocationGroupBatchGetResponse, GetLocationGroupWaittimesQuery, GetLocationGroupWaittimesResponse, GetLocationGroupDeliverydestinationsQuery, GetLocationGroupDeliverydestinationsResponse, PostLocationGroupDeliverydestinationBody, PostLocationGroupDeliverydestinationResponse, PatchLocationGroupDeliverydestinationBody, PatchLocationGroupDeliverydestinationResponse, DeleteLocationGroupDeliverydestinationBody, DeleteLocationGroupDeliverydestinationResponse, GetLocationGroupDeliverydestinationQuery, GetLocationGroupDeliverydestinationResponse, GetLocationBrandsQuery, GetLocationBrandsResponse, GetLocationBrandDestinationsQuery, GetLocationBrandDestinationsResponse, GetLocationBrandTimeslotsQuery, GetLocationBrandTimeslotsResponse, PostLocationMarketplaceTimeslotsQuery, PostLocationMarketplaceTimeslotsBody, PostLocationMarketplaceTimeslotsResponse, PostLocationMarketplaceTimeslotsDeliveryQuery, PostLocationMarketplaceTimeslotsDeliveryBody, PostLocationMarketplaceTimeslotsDeliveryResponse, GetLocationBrandMenuTimeslotsQuery, GetLocationBrandMenuTimeslotsResponse, GetLocationBrandDeliveryTimeslotsQuery, GetLocationBrandDeliveryTimeslotsResponse, GetLocationBrandMenuDeliveryTimeslostsQuery, GetLocationBrandMenuDeliveryTimeslostsResponse, PostLocationBrandBody, PostLocationBrandResponse, PostLocationBrandBatchGetQuery, PostLocationBrandBatchGetBody, PostLocationBrandBatchGetResponse, PatchLocationBrandBulkBody, PatchLocationBrandBulkResponse, GetLocationBrandQuery, GetLocationBrandResponse, PatchLocationBrandBody, PatchLocationBrandResponse, DeleteLocationBrandResponse, PutLocationBrandBody, PutLocationBrandResponse, GetLocationSectorsQuery, GetLocationSectorsResponse, PostLocationSectorBody, PostLocationSectorResponse, GetLocationSectorQuery, GetLocationSectorResponse, PatchLocationSectorQuery, PatchLocationSectorBody, PatchLocationSectorResponse, PostLocationCompanyBody, PostLocationCompanyResponse, GetLocationCompanyQuery, GetLocationCompanyResponse, PatchLocationCompanyBody, PatchLocationCompanyResponse, DeleteLocationRecordQuery, DeleteLocationRecordResponse, GetLocationV2GroupsQuery, GetLocationV2GroupsResponse, GetLocationMenuAssociationBrandQuery, GetLocationMenuAssociationBrandResponse, GetLocationMenuAssociationMenuQuery, GetLocationMenuAssociationMenuResponse } from './interface/location';
|
|
4
4
|
import { PostShoppingcartCartQuery, PostShoppingcartCartBody, PostShoppingcartCartResponse, PutShoppingcartCartItemsBody, PutShoppingcartCartItemsResponse, DeleteShoppingcartCartItemsBody, DeleteShoppingcartCartItemsResponse, GetShoppingcartCartQuery, GetShoppingcartCartResponse, PatchShoppingcartCartBody, PatchShoppingcartCartResponse, PutShoppingcartCartPromoBody, PutShoppingcartCartPromoResponse, DeleteShoppingcartCartPromoResponse, PutShoppingcartCartPaymentBody, PutShoppingcartCartPaymentResponse, GetShoppingcartPaymentMethodsQuery, GetShoppingcartPaymentMethodsResponse, PutShoppingcartCartOrderBody, PutShoppingcartCartOrderResponse, PostShoppingcartCloneCartQuery, PostShoppingcartCloneCartBody, PostShoppingcartCloneCartResponse, PutShoppingcartCheckoutQuery, PutShoppingcartCheckoutResponse, PostShoppingcartBulkBody, PostShoppingcartBulkResponse } from './interface/shoppingcart';
|
|
5
5
|
import { PostPartnerEventBody, PostPartnerEventResponse, GetPartnerSwaggerQuery, GetPartnerSwaggerResponse, PostPartnerMenuBody, PostPartnerMenuResponse } from './interface/partner';
|
|
@@ -176,14 +176,14 @@ export declare class ServiceClient extends BaseServiceClient {
|
|
|
176
176
|
query?: PostOrderQuery;
|
|
177
177
|
} & RequestOptions): ResponsePromise<PostOrderResponse>;
|
|
178
178
|
/**
|
|
179
|
-
* POST /pos
|
|
179
|
+
* POST /order/pos - Place a POS order
|
|
180
180
|
*
|
|
181
181
|
* @param body - Order object that needs to be created
|
|
182
182
|
* @param options - additional request options
|
|
183
183
|
*/
|
|
184
|
-
|
|
185
|
-
query?:
|
|
186
|
-
} & RequestOptions): ResponsePromise<
|
|
184
|
+
post_order_pos(body: PostOrderPosBody, options?: {
|
|
185
|
+
query?: PostOrderPosQuery;
|
|
186
|
+
} & RequestOptions): ResponsePromise<PostOrderPosResponse>;
|
|
187
187
|
/**
|
|
188
188
|
* GET /order/{id} - Get an individual order
|
|
189
189
|
*
|
package/lib/index.js
CHANGED
|
@@ -185,13 +185,13 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
185
185
|
return this.request('order', '/order', 'POST', `/order`, body, options);
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
|
-
* POST /pos
|
|
188
|
+
* POST /order/pos - Place a POS order
|
|
189
189
|
*
|
|
190
190
|
* @param body - Order object that needs to be created
|
|
191
191
|
* @param options - additional request options
|
|
192
192
|
*/
|
|
193
|
-
|
|
194
|
-
return this.request('order', '/pos
|
|
193
|
+
post_order_pos(body, options) {
|
|
194
|
+
return this.request('order', '/order/pos', 'POST', `/order/pos`, body, options);
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
197
197
|
* GET /order/{id} - Get an individual order
|
package/lib/interface/order.d.ts
CHANGED
|
@@ -364,13 +364,13 @@ export type PostOrderResponse = Order;
|
|
|
364
364
|
export interface PostOrderRequest extends BaseRequest, RequestQuery<PostOrderQuery> {
|
|
365
365
|
body: PostOrderBody;
|
|
366
366
|
}
|
|
367
|
-
export interface
|
|
367
|
+
export interface PostOrderPosQuery {
|
|
368
368
|
lang?: string;
|
|
369
369
|
}
|
|
370
|
-
export type
|
|
371
|
-
export type
|
|
372
|
-
export interface
|
|
373
|
-
body:
|
|
370
|
+
export type PostOrderPosBody = CreatePOSOrder;
|
|
371
|
+
export type PostOrderPosResponse = Order;
|
|
372
|
+
export interface PostOrderPosRequest extends BaseRequest, RequestQuery<PostOrderPosQuery> {
|
|
373
|
+
body: PostOrderPosBody;
|
|
374
374
|
}
|
|
375
375
|
export interface GetOrderPath {
|
|
376
376
|
id: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -41,9 +41,9 @@ import {
|
|
|
41
41
|
PostOrderQuery,
|
|
42
42
|
PostOrderBody,
|
|
43
43
|
PostOrderResponse,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
PostOrderPosQuery,
|
|
45
|
+
PostOrderPosBody,
|
|
46
|
+
PostOrderPosResponse,
|
|
47
47
|
GetOrderQuery,
|
|
48
48
|
GetOrderResponse,
|
|
49
49
|
PutOrderResponse,
|
|
@@ -1687,18 +1687,18 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
|
|
1689
1689
|
/**
|
|
1690
|
-
* POST /pos
|
|
1690
|
+
* POST /order/pos - Place a POS order
|
|
1691
1691
|
*
|
|
1692
1692
|
* @param body - Order object that needs to be created
|
|
1693
1693
|
* @param options - additional request options
|
|
1694
1694
|
*/
|
|
1695
|
-
|
|
1696
|
-
body:
|
|
1695
|
+
post_order_pos(
|
|
1696
|
+
body: PostOrderPosBody,
|
|
1697
1697
|
options?: {
|
|
1698
|
-
query?:
|
|
1698
|
+
query?: PostOrderPosQuery;
|
|
1699
1699
|
} & RequestOptions,
|
|
1700
|
-
): ResponsePromise<
|
|
1701
|
-
return this.request('order', '/pos
|
|
1700
|
+
): ResponsePromise<PostOrderPosResponse> {
|
|
1701
|
+
return this.request('order', '/order/pos', 'POST', `/order/pos`, body, options);
|
|
1702
1702
|
}
|
|
1703
1703
|
|
|
1704
1704
|
/**
|
package/src/interface/order.ts
CHANGED
|
@@ -496,19 +496,19 @@ export interface PostOrderRequest extends BaseRequest, RequestQuery<PostOrderQue
|
|
|
496
496
|
body: PostOrderBody;
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
// POST /pos
|
|
499
|
+
// POST /order/pos - Place a POS order
|
|
500
500
|
|
|
501
|
-
export interface
|
|
501
|
+
export interface PostOrderPosQuery {
|
|
502
502
|
// The language of the user ex en, fr
|
|
503
503
|
lang?: string;
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
export type
|
|
506
|
+
export type PostOrderPosBody = CreatePOSOrder;
|
|
507
507
|
|
|
508
|
-
export type
|
|
508
|
+
export type PostOrderPosResponse = Order;
|
|
509
509
|
|
|
510
|
-
export interface
|
|
511
|
-
body:
|
|
510
|
+
export interface PostOrderPosRequest extends BaseRequest, RequestQuery<PostOrderPosQuery> {
|
|
511
|
+
body: PostOrderPosBody;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
// GET /order/{id} - Get an individual order
|