nextemos 5.1.22 → 5.1.23
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,10 @@
|
|
|
1
|
-
import { IResponse } from
|
|
1
|
+
import { IResponse } from "./response";
|
|
2
2
|
export interface IInitEnvironmentResponse extends IResponse {
|
|
3
3
|
environment: string;
|
|
4
4
|
}
|
|
5
|
+
export interface IGetTokenConfigResponse extends IResponse {
|
|
6
|
+
publicKey: string;
|
|
7
|
+
}
|
|
5
8
|
export interface IReadEnvironmentResponse extends IResponse {
|
|
6
9
|
isValid: boolean;
|
|
7
10
|
version: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEnvironmentParameters, IInitEnvironmentResponse, IReadEnvironmentResponse, IService, IUpdateEnvironmentResponse } from "../../";
|
|
1
|
+
import { IEnvironmentParameters, IGetTokenConfigResponse, IInitEnvironmentResponse, IReadEnvironmentResponse, IService, IUpdateEnvironmentResponse } from "../../";
|
|
2
2
|
import { IApiResponse, IRequestInit } from "../..";
|
|
3
3
|
export interface IInitEnvironmentRequest {
|
|
4
4
|
platform: "desktop" | "mobile";
|
|
@@ -17,9 +17,13 @@ export interface IUpdateEnvironmentRequest {
|
|
|
17
17
|
export interface IRefreshEnvironmentRequest extends IInitEnvironmentRequest {
|
|
18
18
|
environment: string;
|
|
19
19
|
}
|
|
20
|
+
export interface IGetTokenConfigRequest {
|
|
21
|
+
language?: string;
|
|
22
|
+
}
|
|
20
23
|
export interface IEnvironmentService extends IService {
|
|
21
24
|
Init: (data: IInitEnvironmentRequest, options?: IRequestInit) => Promise<IApiResponse<IInitEnvironmentResponse>>;
|
|
22
25
|
Read: (data: IReadEnvironmentRequest, options?: IRequestInit) => Promise<IApiResponse<IReadEnvironmentResponse>>;
|
|
23
26
|
Update: (data: IUpdateEnvironmentRequest, options?: IRequestInit) => Promise<IApiResponse<IUpdateEnvironmentResponse>>;
|
|
24
27
|
Refresh: (data: IRefreshEnvironmentRequest, options?: IRequestInit) => Promise<IApiResponse<IInitEnvironmentResponse>>;
|
|
28
|
+
GetTokenConfig: (data?: IGetTokenConfigRequest, options?: IRequestInit) => Promise<IApiResponse<IGetTokenConfigResponse>>;
|
|
25
29
|
}
|
|
@@ -51,6 +51,9 @@ exports.EnvironmentService = {
|
|
|
51
51
|
language,
|
|
52
52
|
methodName,
|
|
53
53
|
}),
|
|
54
|
+
GetTokenConfig: (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (data = {}, options) {
|
|
55
|
+
return (0, __1.fetchRequest)().post(exports.EnvironmentService.Url(urls_1.default.Environment.GetTokenConfig, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
56
|
+
}),
|
|
54
57
|
Init: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
55
58
|
return (0, __1.fetchRequest)().post(exports.EnvironmentService.Url(urls_1.default.Environment.Init, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
56
59
|
}),
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -115,6 +115,7 @@ exports.default = {
|
|
|
115
115
|
Read: "/{language}/Environment/v1/Read",
|
|
116
116
|
Update: "/{language}/Environment/v1/Update",
|
|
117
117
|
Refresh: "/{language}/Environment/v1/Refresh",
|
|
118
|
+
GetTokenConfig: "/{language}/Configuration/v1/GetTokenConfig",
|
|
118
119
|
},
|
|
119
120
|
Notification: {
|
|
120
121
|
RenderTemplate: "/{language}/Template/v1/RenderTemplate",
|