@frontegg/rest-api 3.0.95 → 3.0.97
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ISettingsResponse, IUpdateSettings } from './interfaces';
|
|
1
|
+
import { IPublicSettingsResponse, ISettingsResponse, IUpdateSettings } from './interfaces';
|
|
2
2
|
/*** update account settings for tenant.
|
|
3
3
|
* tenantId is caclulated in the backend from context
|
|
4
4
|
* ``authorized user``
|
|
5
5
|
*/
|
|
6
6
|
export declare function updateSettings(body: IUpdateSettings): Promise<ISettingsResponse>;
|
|
7
7
|
export declare function getSettings(): Promise<ISettingsResponse>;
|
|
8
|
+
export declare function getPublicSettings(): Promise<IPublicSettingsResponse>;
|
|
@@ -6,4 +6,9 @@ export interface ISettingsResponse {
|
|
|
6
6
|
currency?: string;
|
|
7
7
|
logo?: string;
|
|
8
8
|
}
|
|
9
|
+
export interface IPublicSettingsResponse {
|
|
10
|
+
tenantId: string;
|
|
11
|
+
applicationUrl?: string;
|
|
12
|
+
loginUrl?: string;
|
|
13
|
+
}
|
|
9
14
|
export declare type IUpdateSettings = Partial<ISettingsResponse>;
|
package/index.js
CHANGED
package/interfaces.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.getPublicSettings = getPublicSettings;
|
|
6
7
|
exports.getSettings = getSettings;
|
|
7
8
|
exports.updateSettings = updateSettings;
|
|
8
9
|
|
|
@@ -16,4 +17,8 @@ async function updateSettings(body) {
|
|
|
16
17
|
|
|
17
18
|
async function getSettings() {
|
|
18
19
|
return (0, _fetch.Get)(_constants.urls.tenants.accountSettings.v1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async function getPublicSettings() {
|
|
23
|
+
return (0, _fetch.Get)(`${_constants.urls.tenants.accountSettings.v1}/public`);
|
|
19
24
|
}
|
package/node/index.js
CHANGED