cloreai 0.1.2 → 0.1.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/build/WebAPI.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AxiosInstance, type AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { type WebOptions } from './types/options.js';
|
|
3
|
+
import { type WebCancelOrderBody, type WebCancelOrderOutput } from './types/webapi/cancelOrder.js';
|
|
3
4
|
import { type WebCreateOrderBody, type WebCreateOrderOutput } from './types/webapi/createOrder.js';
|
|
4
5
|
import { type WebMarketplaceOrdersBody, type WebMarketplaceOrdersOutput } from './types/webapi/marketplaceOrders.js';
|
|
5
6
|
import { type WebMarketplaceServersOutput } from './types/webapi/marketplaceServers.js';
|
|
@@ -8,5 +9,6 @@ export declare class WebAPI {
|
|
|
8
9
|
constructor(options: WebOptions);
|
|
9
10
|
marketplaceServers(config?: AxiosRequestConfig): Promise<WebMarketplaceServersOutput>;
|
|
10
11
|
marketplaceOrders(body: WebMarketplaceOrdersBody, config?: AxiosRequestConfig<WebMarketplaceOrdersBody>): Promise<WebMarketplaceOrdersOutput>;
|
|
12
|
+
cancelOrder(body: WebCancelOrderBody, config?: AxiosRequestConfig<WebCancelOrderBody>): Promise<WebCancelOrderOutput>;
|
|
11
13
|
createOrder(body: WebCreateOrderBody, config?: AxiosRequestConfig<WebCreateOrderBody>): Promise<WebCreateOrderOutput>;
|
|
12
14
|
}
|
package/build/WebAPI.js
CHANGED
|
@@ -33,6 +33,10 @@ export class WebAPI {
|
|
|
33
33
|
const response = await this.api.post('/marketplace/orders', body, config);
|
|
34
34
|
return response.data;
|
|
35
35
|
}
|
|
36
|
+
async cancelOrder(body, config) {
|
|
37
|
+
const response = await this.api.post('/marketplace/cancel_order', body, config);
|
|
38
|
+
return response.data;
|
|
39
|
+
}
|
|
36
40
|
async createOrder(body, config) {
|
|
37
41
|
const response = await this.api.post('/create_order', body, config);
|
|
38
42
|
return response.data;
|
package/build/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './types/cloreai/wallets.js';
|
|
|
14
14
|
export * from './types/common.js';
|
|
15
15
|
export * from './types/options.js';
|
|
16
16
|
export * from './types/output.js';
|
|
17
|
+
export * from './types/webapi/cancelOrder.js';
|
|
17
18
|
export * from './types/webapi/createOrder.js';
|
|
18
19
|
export * from './types/webapi/marketplaceOrders.js';
|
|
19
20
|
export * from './types/webapi/marketplaceServers.js';
|
package/build/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export * from './types/cloreai/wallets.js';
|
|
|
14
14
|
export * from './types/common.js';
|
|
15
15
|
export * from './types/options.js';
|
|
16
16
|
export * from './types/output.js';
|
|
17
|
+
export * from './types/webapi/cancelOrder.js';
|
|
17
18
|
export * from './types/webapi/createOrder.js';
|
|
18
19
|
export * from './types/webapi/marketplaceOrders.js';
|
|
19
20
|
export * from './types/webapi/marketplaceServers.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloreai",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "CLORE.AI API client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloreai",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"husky": "^9.0.11",
|
|
41
41
|
"npm-check-updates": "^16.14.20",
|
|
42
42
|
"prettier": "^3.3.3",
|
|
43
|
-
"prettier-config-vladpuz": "^0.
|
|
43
|
+
"prettier-config-vladpuz": "^0.4.0",
|
|
44
44
|
"rimraf": "^6.0.1",
|
|
45
45
|
"typescript": "^5.5.3"
|
|
46
46
|
}
|