lua-cli 2.2.2 → 2.2.4
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 -0
- package/dist/services/api.d.ts +14 -2
- package/dist/services/api.js +14 -0
- package/package.json +2 -1
- package/template/package.json +1 -1
package/dist/product-api.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export interface Basket {
|
|
|
48
48
|
agentId: string;
|
|
49
49
|
data: {
|
|
50
50
|
currency: string;
|
|
51
|
+
metadata?: any;
|
|
51
52
|
items: BasketItem[];
|
|
52
53
|
createdAt: string;
|
|
53
54
|
};
|
|
@@ -62,6 +63,7 @@ export interface Basket {
|
|
|
62
63
|
}
|
|
63
64
|
export interface CreateBasketRequest {
|
|
64
65
|
currency: string;
|
|
66
|
+
metadata?: any;
|
|
65
67
|
}
|
|
66
68
|
export interface CreateBasketResponse {
|
|
67
69
|
success: boolean;
|
package/dist/services/api.d.ts
CHANGED
|
@@ -172,6 +172,7 @@ export interface Basket {
|
|
|
172
172
|
agentId: string;
|
|
173
173
|
data: {
|
|
174
174
|
currency: string;
|
|
175
|
+
metadata?: any;
|
|
175
176
|
items: BasketItem[];
|
|
176
177
|
createdAt: string;
|
|
177
178
|
};
|
|
@@ -186,6 +187,7 @@ export interface Basket {
|
|
|
186
187
|
}
|
|
187
188
|
export interface CreateBasketRequest {
|
|
188
189
|
currency: string;
|
|
190
|
+
metadata?: any;
|
|
189
191
|
}
|
|
190
192
|
export interface CreateBasketResponse {
|
|
191
193
|
success: boolean;
|
|
@@ -268,8 +270,18 @@ export interface GetUserOrdersResponse {
|
|
|
268
270
|
message: string;
|
|
269
271
|
data: Order[];
|
|
270
272
|
}
|
|
271
|
-
export
|
|
272
|
-
|
|
273
|
+
export declare enum BasketStatus {
|
|
274
|
+
ACTIVE = "active",
|
|
275
|
+
CHECKED_OUT = "checked_out",
|
|
276
|
+
ABANDONED = "abandoned",
|
|
277
|
+
EXPIRED = "expired"
|
|
278
|
+
}
|
|
279
|
+
export declare enum OrderStatus {
|
|
280
|
+
PENDING = "pending",
|
|
281
|
+
CONFIRMED = "confirmed",
|
|
282
|
+
FULFILLED = "fulfilled",
|
|
283
|
+
CANCELLED = "cancelled"
|
|
284
|
+
}
|
|
273
285
|
export interface CustomDataEntry {
|
|
274
286
|
id: string;
|
|
275
287
|
data: any;
|
package/dist/services/api.js
CHANGED
|
@@ -9,6 +9,20 @@ const BASE_URLS = {
|
|
|
9
9
|
AUTH: 'https://auth.heylua.ai',
|
|
10
10
|
CHAT: 'https://api.heylua.ai'
|
|
11
11
|
};
|
|
12
|
+
export var BasketStatus;
|
|
13
|
+
(function (BasketStatus) {
|
|
14
|
+
BasketStatus["ACTIVE"] = "active";
|
|
15
|
+
BasketStatus["CHECKED_OUT"] = "checked_out";
|
|
16
|
+
BasketStatus["ABANDONED"] = "abandoned";
|
|
17
|
+
BasketStatus["EXPIRED"] = "expired";
|
|
18
|
+
})(BasketStatus || (BasketStatus = {}));
|
|
19
|
+
export var OrderStatus;
|
|
20
|
+
(function (OrderStatus) {
|
|
21
|
+
OrderStatus["PENDING"] = "pending";
|
|
22
|
+
OrderStatus["CONFIRMED"] = "confirmed";
|
|
23
|
+
OrderStatus["FULFILLED"] = "fulfilled";
|
|
24
|
+
OrderStatus["CANCELLED"] = "cancelled";
|
|
25
|
+
})(OrderStatus || (OrderStatus = {}));
|
|
12
26
|
/**
|
|
13
27
|
* Generic HTTP client with common error handling
|
|
14
28
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lua-cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
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,6 +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.2",
|
|
68
69
|
"node-fetch": "^3.3.2",
|
|
69
70
|
"open": "^10.1.0",
|
|
70
71
|
"react": "^18.2.0",
|