@compassdigital/sdk.typescript 4.845.0 → 4.847.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 +24 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +28 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +16 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/order.d.ts +10 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +68 -0
- package/src/interface/consumer.ts +33 -0
- package/src/interface/order.ts +18 -0
package/lib/index.js
CHANGED
|
@@ -386,6 +386,16 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
386
386
|
post_order_apex_sns(body, options) {
|
|
387
387
|
return this.request('order', '/order/apex/sns', 'POST', `/order/apex/sns`, body, options);
|
|
388
388
|
}
|
|
389
|
+
/**
|
|
390
|
+
* POST /order/{id}/pos-receipt - Send POS receipt email
|
|
391
|
+
*
|
|
392
|
+
* @param id - The order ID
|
|
393
|
+
* @param body - Email address to send the receipt to
|
|
394
|
+
* @param options - additional request options
|
|
395
|
+
*/
|
|
396
|
+
post_order_pos_receipt(id, body, options) {
|
|
397
|
+
return this.request('order', '/order/{id}/pos-receipt', 'POST', `/order/${id}/pos-receipt`, body, options);
|
|
398
|
+
}
|
|
389
399
|
/**
|
|
390
400
|
* PATCH /order/{id}/receipt-email - Update order receipt email
|
|
391
401
|
*
|
|
@@ -6684,6 +6694,24 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6684
6694
|
post_consumer_delivery_order_close_lid(id, options) {
|
|
6685
6695
|
return this.request('consumer', '/consumer/delivery/order/{id}/close', 'POST', `/consumer/delivery/order/${id}/close`, null, options);
|
|
6686
6696
|
}
|
|
6697
|
+
/**
|
|
6698
|
+
* POST /consumer/user/access-code/validate - Validate an access code
|
|
6699
|
+
*
|
|
6700
|
+
* @param body
|
|
6701
|
+
* @param options - additional request options
|
|
6702
|
+
*/
|
|
6703
|
+
post_consumer_user_access_code_validate(body, options) {
|
|
6704
|
+
return this.request('consumer', '/consumer/user/access-code/validate', 'POST', `/consumer/user/access-code/validate`, body, options);
|
|
6705
|
+
}
|
|
6706
|
+
/**
|
|
6707
|
+
* POST /consumer/user/access-code/redeem - Redeem an access code
|
|
6708
|
+
*
|
|
6709
|
+
* @param body
|
|
6710
|
+
* @param options - additional request options
|
|
6711
|
+
*/
|
|
6712
|
+
post_consumer_user_access_code_redeem(body, options) {
|
|
6713
|
+
return this.request('consumer', '/consumer/user/access-code/redeem', 'POST', `/consumer/user/access-code/redeem`, body, options);
|
|
6714
|
+
}
|
|
6687
6715
|
/**
|
|
6688
6716
|
* POST /ai/language/generate - Generate text from a given prompt
|
|
6689
6717
|
*
|