@flashbacktech/flashbackclient 0.2.73 → 0.2.74

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.
@@ -138,7 +138,7 @@ export declare class ApiClient implements IApiClient {
138
138
  getBucketStats: (params?: {
139
139
  bucketId?: string[];
140
140
  }) => Promise<BucketStatsResponse>;
141
- getNodeInfo: () => Promise<NodeInfoResponse>;
141
+ getNodeInfo: (nodeServices: number) => Promise<NodeInfoResponse>;
142
142
  getPrivateNodeInfo: (orgId: string) => Promise<NodeInfoResponse>;
143
143
  deletePrivateNode: (orgId: string, nodeId: string) => Promise<{
144
144
  success: boolean;
@@ -377,8 +377,8 @@ class ApiClient {
377
377
  }
378
378
  return this.makeRequest(`bucket/stats${queryParams.toString() ? `?${queryParams.toString()}` : ''}`, 'GET', null);
379
379
  };
380
- this.getNodeInfo = async () => {
381
- return this.makeRequest('node', 'GET', null);
380
+ this.getNodeInfo = async (nodeServices) => {
381
+ return this.makeRequest('node?nodeServices=' + nodeServices, 'GET', null);
382
382
  };
383
383
  this.getPrivateNodeInfo = async (orgId) => {
384
384
  return this.makeRequest(`organization/${orgId}/nodes`, 'GET', null);
@@ -52,10 +52,17 @@ export interface NodeInfo {
52
52
  lastUpdated: string;
53
53
  url: string;
54
54
  id_org?: string;
55
+ nodeServices: number;
55
56
  }
56
57
  export interface NodeInfoResponse {
57
58
  success: true;
58
59
  data: NodeInfo[];
59
60
  total: number;
60
61
  }
62
+ export declare enum ServiceFlag {
63
+ SERVICE_FLAG_NONE = 0,
64
+ SERVICE_FLAG_STORAGE = 1,
65
+ SERVICE_FLAG_AILLM = 2,
66
+ SERVICE_FLAG_CHAT = 4
67
+ }
61
68
  export {};
@@ -1,9 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeStatusType = void 0;
3
+ exports.ServiceFlag = exports.NodeStatusType = void 0;
4
4
  var NodeStatusType;
5
5
  (function (NodeStatusType) {
6
6
  NodeStatusType["ONLINE"] = "ONLINE";
7
7
  NodeStatusType["OFFLINE"] = "OFFLINE";
8
8
  NodeStatusType["DISCONNECTED"] = "DISCONNECTED";
9
9
  })(NodeStatusType || (exports.NodeStatusType = NodeStatusType = {}));
10
+ var ServiceFlag;
11
+ (function (ServiceFlag) {
12
+ ServiceFlag[ServiceFlag["SERVICE_FLAG_NONE"] = 0] = "SERVICE_FLAG_NONE";
13
+ ServiceFlag[ServiceFlag["SERVICE_FLAG_STORAGE"] = 1] = "SERVICE_FLAG_STORAGE";
14
+ ServiceFlag[ServiceFlag["SERVICE_FLAG_AILLM"] = 2] = "SERVICE_FLAG_AILLM";
15
+ ServiceFlag[ServiceFlag["SERVICE_FLAG_CHAT"] = 4] = "SERVICE_FLAG_CHAT";
16
+ })(ServiceFlag || (exports.ServiceFlag = ServiceFlag = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.2.73",
3
+ "version": "0.2.74",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"