@joai/sdk 14.0.2 → 14.0.3

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.d.mts CHANGED
@@ -208,6 +208,12 @@ declare class ReturnsResource {
208
208
  resolution?: number;
209
209
  returnShippingCostPayer?: number;
210
210
  }): Promise<_$_joai_core0.IAppResponse<Return>>;
211
+ withdraw(data: {
212
+ orderId: string;
213
+ email: string;
214
+ name: string;
215
+ statement?: string;
216
+ }): Promise<_$_joai_core0.IAppResponse<Return>>;
211
217
  }
212
218
  //#endregion
213
219
  //#region src/commerce/shipping.d.ts
package/dist/index.mjs CHANGED
@@ -220,6 +220,9 @@ var ReturnsResource = class {
220
220
  update(id, data) {
221
221
  return this.http.patch(`returns/${id}`, data);
222
222
  }
223
+ withdraw(data) {
224
+ return this.http.post("withdrawals", data);
225
+ }
223
226
  };
224
227
  //#endregion
225
228
  //#region src/commerce/shipping.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/sdk",
3
- "version": "14.0.2",
3
+ "version": "14.0.3",
4
4
  "description": "JoAi public API SDK — build with your AI agents",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,11 +35,11 @@
35
35
  "test": "jest --config jest.config.js"
36
36
  },
37
37
  "dependencies": {
38
- "@joai/core": "^5.4.7",
38
+ "@joai/core": "^5.4.9",
39
39
  "@joai/warps": "*"
40
40
  },
41
41
  "peerDependencies": {
42
- "@joai/core": "^5.4.7"
42
+ "@joai/core": "^5.4.9"
43
43
  },
44
44
  "devDependencies": {
45
45
  "tsdown": "^0.21.0",