lua-cli 2.2.6 → 2.2.7
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/product-api.d.ts +2 -2
- package/dist/product-api.js +2 -2
- package/dist/services/api.d.ts +1 -1
- package/dist/services/api.js +2 -2
- package/dist/utils/sandbox.js +2 -2
- package/package.json +2 -2
- package/template/package.json +1 -1
package/dist/product-api.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ export declare class ProductAPI {
|
|
|
171
171
|
updateBasketStatus(basketId: string, status: BasketStatus): Promise<UpdateBasketStatusResponse>;
|
|
172
172
|
createOrder(data: CreateOrderRequest): Promise<CreateOrderResponse>;
|
|
173
173
|
updateOrderStatus(orderId: string, status: OrderStatus): Promise<UpdateOrderStatusResponse>;
|
|
174
|
-
getUserOrders(
|
|
174
|
+
getUserOrders(): Promise<GetUserOrdersResponse>;
|
|
175
175
|
}
|
|
176
176
|
export declare const product: {
|
|
177
177
|
create: (data: Record<string, any>) => Promise<CreateProductResponse>;
|
|
@@ -192,6 +192,6 @@ export declare const product: {
|
|
|
192
192
|
order: {
|
|
193
193
|
create: (data: CreateOrderRequest) => Promise<CreateOrderResponse>;
|
|
194
194
|
updateStatus: (orderId: string, status: OrderStatus) => Promise<UpdateOrderStatusResponse>;
|
|
195
|
-
get: (
|
|
195
|
+
get: () => Promise<GetUserOrdersResponse>;
|
|
196
196
|
};
|
|
197
197
|
};
|
package/dist/product-api.js
CHANGED
|
@@ -123,8 +123,8 @@ export class ProductAPI {
|
|
|
123
123
|
}
|
|
124
124
|
return { success: false, message: 'Order not found', data: null };
|
|
125
125
|
}
|
|
126
|
-
async getUserOrders(
|
|
127
|
-
return { success: true, message: 'User orders fetched successfully', data: this.orders
|
|
126
|
+
async getUserOrders() {
|
|
127
|
+
return { success: true, message: 'User orders fetched successfully', data: this.orders };
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
const productAPI = new ProductAPI();
|
package/dist/services/api.d.ts
CHANGED
|
@@ -489,7 +489,7 @@ export declare class ProductApi {
|
|
|
489
489
|
/**
|
|
490
490
|
* Get user orders with optional status filter
|
|
491
491
|
*/
|
|
492
|
-
static getUserOrders(apiKey: string, agentId: string,
|
|
492
|
+
static getUserOrders(apiKey: string, agentId: string, status?: OrderStatus): Promise<GetUserOrdersResponse | {
|
|
493
493
|
success: false;
|
|
494
494
|
message: string;
|
|
495
495
|
}>;
|
package/dist/services/api.js
CHANGED
|
@@ -426,9 +426,9 @@ export class ProductApi {
|
|
|
426
426
|
/**
|
|
427
427
|
* Get user orders with optional status filter
|
|
428
428
|
*/
|
|
429
|
-
static async getUserOrders(apiKey, agentId,
|
|
429
|
+
static async getUserOrders(apiKey, agentId, status) {
|
|
430
430
|
const statusParam = status ? `?status=${status}` : '';
|
|
431
|
-
const response = await httpClient.get(`${BASE_URLS.LOCAL}/developer/agents/${agentId}/order/user
|
|
431
|
+
const response = await httpClient.get(`${BASE_URLS.LOCAL}/developer/agents/${agentId}/order/user${statusParam}`, {
|
|
432
432
|
Authorization: `Bearer ${apiKey}`,
|
|
433
433
|
});
|
|
434
434
|
if (response.success) {
|
package/dist/utils/sandbox.js
CHANGED
|
@@ -109,8 +109,8 @@ export function createSandbox(options) {
|
|
|
109
109
|
const updateOrderStatus = async (orderId, status) => {
|
|
110
110
|
return await ProductApi.updateOrderStatus(apiKey, agentId, orderId, status);
|
|
111
111
|
};
|
|
112
|
-
const getUserOrders = async (
|
|
113
|
-
return await ProductApi.getUserOrders(apiKey, agentId
|
|
112
|
+
const getUserOrders = async () => {
|
|
113
|
+
return await ProductApi.getUserOrders(apiKey, agentId);
|
|
114
114
|
};
|
|
115
115
|
// Custom Data API functions
|
|
116
116
|
const createCustomData = async (collectionName, data) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lua-cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"description": "Command-line interface for Lua AI platform - develop, test, and deploy LuaSkills with custom tools",
|
|
5
5
|
"readmeFilename": "README.md",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"inquirer": "^12.9.6",
|
|
66
66
|
"js-yaml": "^4.1.0",
|
|
67
67
|
"keytar": "^7.9.0",
|
|
68
|
-
"lua-cli": "^2.2.
|
|
68
|
+
"lua-cli": "^2.2.7",
|
|
69
69
|
"node-fetch": "^3.3.2",
|
|
70
70
|
"open": "^10.1.0",
|
|
71
71
|
"react": "^18.2.0",
|