@flashbacktech/flashbackclient 0.1.13 → 0.1.14
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/api/client.d.ts +2 -0
- package/dist/api/client.js +3 -0
- package/dist/gcs/storage.js +1 -1
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ 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
5
|
import { NodeInfo } from './types/bridge';
|
|
6
|
+
import { FeedbackEmailBody } from './types/email';
|
|
6
7
|
interface ErrorResponse {
|
|
7
8
|
message?: string;
|
|
8
9
|
[key: string]: any;
|
|
@@ -73,5 +74,6 @@ export declare class ApiClient implements IApiClient {
|
|
|
73
74
|
unitId?: string[];
|
|
74
75
|
}) => Promise<UnitStatsResponse>;
|
|
75
76
|
getNodeInfo: () => Promise<NodeInfo[]>;
|
|
77
|
+
sendFeedbackEmail: (data: FeedbackEmailBody) => Promise<ActionResponse>;
|
|
76
78
|
}
|
|
77
79
|
export {};
|
package/dist/api/client.js
CHANGED
|
@@ -296,6 +296,9 @@ class ApiClient {
|
|
|
296
296
|
this.getNodeInfo = async () => {
|
|
297
297
|
return this.makeRequest('node', 'GET', null);
|
|
298
298
|
};
|
|
299
|
+
this.sendFeedbackEmail = async (data) => {
|
|
300
|
+
return this.makeRequest('email/feedback', 'POST', data);
|
|
301
|
+
};
|
|
299
302
|
this.baseURL = baseURL;
|
|
300
303
|
this.headers = {};
|
|
301
304
|
this.debug = false;
|
package/dist/gcs/storage.js
CHANGED
|
@@ -15,7 +15,7 @@ class FlashbackGCSStorage extends storage_1.Storage {
|
|
|
15
15
|
const { credentials, apiEndpoint = 'https://gcs-us-east-1-gcp.flashback.tech', tokenScopes = ['READ', 'WRITE'], ...rest } = opts;
|
|
16
16
|
// Ensure the endpoint doesn't have a trailing slash
|
|
17
17
|
const cleanEndpoint = apiEndpoint.replace(/\/$/, '');
|
|
18
|
-
const authClient = new oauth2_1.FlashbackAuthClient(cleanEndpoint + '/token',
|
|
18
|
+
const authClient = new oauth2_1.FlashbackAuthClient(cleanEndpoint + '/token', credentials, tokenScopes);
|
|
19
19
|
super({
|
|
20
20
|
...rest,
|
|
21
21
|
apiEndpoint: cleanEndpoint,
|