@flashbacktech/flashbackclient 0.1.11 → 0.1.13

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.
@@ -2,6 +2,7 @@ import { CreateUnitRequest, CreateUnitResponse, CreateRepoRequest, CreateRepoRes
2
2
  import { IApiClient, ProviderType } from './interfaces';
3
3
  import { ActivateResponse, DeactivateResponse, LoginBody, LoginResponse, LogoutResponse, OAuth2ResponseDTO, RefreshTokenErrorResponse, RefreshTokenResponse, RegisterBody, RegisterResponse } from './types/auth';
4
4
  import { StatsQueryParams, StatsResponse, NodeStatsMinuteResponse, NodeStatsDailyResponse, NodeStatsQueryParams, UnitStatsResponse, RepoStatsResponse, NodeStatsDailyQueryParams } from './types/stats';
5
+ import { NodeInfo } from './types/bridge';
5
6
  interface ErrorResponse {
6
7
  message?: string;
7
8
  [key: string]: any;
@@ -71,5 +72,6 @@ export declare class ApiClient implements IApiClient {
71
72
  getUnitStats: (params?: {
72
73
  unitId?: string[];
73
74
  }) => Promise<UnitStatsResponse>;
75
+ getNodeInfo: () => Promise<NodeInfo[]>;
74
76
  }
75
77
  export {};
@@ -293,6 +293,9 @@ class ApiClient {
293
293
  }
294
294
  return this.makeRequest(`unit/stats${queryParams.toString() ? `?${queryParams.toString()}` : ''}`, 'GET', null);
295
295
  };
296
+ this.getNodeInfo = async () => {
297
+ return this.makeRequest('node', 'GET', null);
298
+ };
296
299
  this.baseURL = baseURL;
297
300
  this.headers = {};
298
301
  this.debug = false;
@@ -4,4 +4,5 @@ import * as AuthTypes from './types/auth';
4
4
  import * as StatsTypes from './types/stats';
5
5
  import * as ApiInterfaces from './interfaces';
6
6
  import * as BridgeTypes from './types/bridge';
7
- export { ApiClient, ApiTypes, AuthTypes, StatsTypes, ApiInterfaces, HttpError, BridgeTypes };
7
+ import * as EmailTypes from './types/email';
8
+ export { ApiClient, ApiTypes, AuthTypes, StatsTypes, ApiInterfaces, HttpError, BridgeTypes, EmailTypes };
package/dist/api/index.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.BridgeTypes = exports.HttpError = exports.ApiInterfaces = exports.StatsTypes = exports.AuthTypes = exports.ApiTypes = exports.ApiClient = void 0;
36
+ exports.EmailTypes = exports.BridgeTypes = exports.HttpError = exports.ApiInterfaces = exports.StatsTypes = exports.AuthTypes = exports.ApiTypes = exports.ApiClient = void 0;
37
37
  const client_1 = require("./client");
38
38
  Object.defineProperty(exports, "ApiClient", { enumerable: true, get: function () { return client_1.ApiClient; } });
39
39
  Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return client_1.HttpError; } });
@@ -47,3 +47,5 @@ const ApiInterfaces = __importStar(require("./interfaces"));
47
47
  exports.ApiInterfaces = ApiInterfaces;
48
48
  const BridgeTypes = __importStar(require("./types/bridge"));
49
49
  exports.BridgeTypes = BridgeTypes;
50
+ const EmailTypes = __importStar(require("./types/email"));
51
+ exports.EmailTypes = EmailTypes;
@@ -0,0 +1,5 @@
1
+ export interface FeedbackEmailBody {
2
+ email: string;
3
+ message: string;
4
+ subject: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"