@agentforge-io/sdk-server 4.57.0 → 4.58.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.
|
@@ -67,6 +67,13 @@ export declare class CasesResource {
|
|
|
67
67
|
*/
|
|
68
68
|
receiptReopen(token: string): Promise<CaseReceipt>;
|
|
69
69
|
receiptRedoProposal(token: string): Promise<CaseReceipt>;
|
|
70
|
+
/**
|
|
71
|
+
* `POST /api/v1/cases/receipts/:token/cancel` — «Cancelar pedido»: the customer cancels from
|
|
72
|
+
* the receipt while the order is a draft (sent, accepted, being prepared or redone, changes
|
|
73
|
+
* waiting). Its stock goes back. 400 once confirmed or closed; any other case only before the
|
|
74
|
+
* business accepted it.
|
|
75
|
+
*/
|
|
76
|
+
receiptCancel(token: string): Promise<CaseReceipt>;
|
|
70
77
|
/**
|
|
71
78
|
* `POST /api/v1/cases/:id/transition` — the business moves a case:
|
|
72
79
|
* `accepted` / `rejected` from `submitted`, then the type's states,
|
package/dist/resources/cases.js
CHANGED
|
@@ -114,6 +114,15 @@ class CasesResource {
|
|
|
114
114
|
async receiptRedoProposal(token) {
|
|
115
115
|
return this.client.request('POST', `/api/v1/cases/receipts/${encodeURIComponent(token)}/proposal/redo`, {});
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* `POST /api/v1/cases/receipts/:token/cancel` — «Cancelar pedido»: the customer cancels from
|
|
119
|
+
* the receipt while the order is a draft (sent, accepted, being prepared or redone, changes
|
|
120
|
+
* waiting). Its stock goes back. 400 once confirmed or closed; any other case only before the
|
|
121
|
+
* business accepted it.
|
|
122
|
+
*/
|
|
123
|
+
async receiptCancel(token) {
|
|
124
|
+
return this.client.request('POST', `/api/v1/cases/receipts/${encodeURIComponent(token)}/cancel`, {});
|
|
125
|
+
}
|
|
117
126
|
/**
|
|
118
127
|
* `POST /api/v1/cases/:id/transition` — the business moves a case:
|
|
119
128
|
* `accepted` / `rejected` from `submitted`, then the type's states,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentforge-io/sdk-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.58.0",
|
|
4
4
|
"description": "Server-side SDK for backend apps integrating with AgentForge platform. Auth via ChatToken, ak_live_ API key or App secret (sk_live_), with App installations across tenants.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|