@joai/sdk 13.1.0 → 13.1.1
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 +3 -2
- package/dist/index.mjs +3 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -121,7 +121,7 @@ declare class FulfillmentsResource {
|
|
|
121
121
|
carriers(): Promise<_$_joai_core0.IAppResponse<ShippingCarrierOption[]>>;
|
|
122
122
|
create(orderId: string, data: {
|
|
123
123
|
items: {
|
|
124
|
-
orderItemId:
|
|
124
|
+
orderItemId: string;
|
|
125
125
|
quantity: number;
|
|
126
126
|
}[];
|
|
127
127
|
carrierCode?: string;
|
|
@@ -141,7 +141,7 @@ declare class ReturnsResource {
|
|
|
141
141
|
reason: string;
|
|
142
142
|
fulfillmentId?: string;
|
|
143
143
|
items: {
|
|
144
|
-
orderItemId:
|
|
144
|
+
orderItemId: string;
|
|
145
145
|
quantity: number;
|
|
146
146
|
condition?: string;
|
|
147
147
|
}[];
|
|
@@ -1526,6 +1526,7 @@ declare class OrdersResource {
|
|
|
1526
1526
|
private readonly http;
|
|
1527
1527
|
constructor(http: IHttpService);
|
|
1528
1528
|
list(team: string, page?: number, perPage?: number): Promise<_$_joai_core0.IAppResponse<Order$1[]>>;
|
|
1529
|
+
listOwn(team: string, page?: number, perPage?: number): Promise<_$_joai_core0.IAppResponse<Order$1[]>>;
|
|
1529
1530
|
get(id: string, accessToken?: string): Promise<_$_joai_core0.IAppResponse<Order$1>>;
|
|
1530
1531
|
create(data: {
|
|
1531
1532
|
contactId?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -2317,6 +2317,9 @@ var OrdersResource = class {
|
|
|
2317
2317
|
list(team, page = 1, perPage = 10) {
|
|
2318
2318
|
return this.http.get(`orders?page=${page}&perPage=${perPage}`, { headers: { "X-Team": team } });
|
|
2319
2319
|
}
|
|
2320
|
+
listOwn(team, page = 1, perPage = 10) {
|
|
2321
|
+
return this.http.get(`orders?team=${encodeURIComponent(team)}&page=${page}&perPage=${perPage}`);
|
|
2322
|
+
}
|
|
2320
2323
|
get(id, accessToken) {
|
|
2321
2324
|
return this.http.get(`orders/${id}`, orderAccessHeaders(accessToken));
|
|
2322
2325
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joai/sdk",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.1",
|
|
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.
|
|
38
|
+
"@joai/core": "^5.4.3",
|
|
39
39
|
"@joai/warps": "*"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@joai/core": "^5.4.
|
|
42
|
+
"@joai/core": "^5.4.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"tsdown": "^0.21.0",
|