nextemos 5.3.14 → 5.3.15
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.
|
@@ -27,6 +27,11 @@ export interface Banner {
|
|
|
27
27
|
}
|
|
28
28
|
export interface BannerContainer {
|
|
29
29
|
id?: number;
|
|
30
|
+
name?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
type?: string;
|
|
33
|
+
keys?: string;
|
|
34
|
+
extensionData?: any;
|
|
30
35
|
tenantId?: string;
|
|
31
36
|
bannerContainerTypeId?: number;
|
|
32
37
|
templateId?: number;
|
|
@@ -40,3 +40,18 @@ export interface IDynamicPropertyOption {
|
|
|
40
40
|
orderNumber: number;
|
|
41
41
|
isApproved: boolean;
|
|
42
42
|
}
|
|
43
|
+
export interface ICurrenciesResponse extends IResponse {
|
|
44
|
+
currencyLists: ICurrency[];
|
|
45
|
+
}
|
|
46
|
+
export interface ICurrency {
|
|
47
|
+
id: number;
|
|
48
|
+
name: string;
|
|
49
|
+
shortName: string;
|
|
50
|
+
currencyCode: string;
|
|
51
|
+
symbol: string;
|
|
52
|
+
isApproved: boolean;
|
|
53
|
+
integrationCode: string;
|
|
54
|
+
format: string;
|
|
55
|
+
currencyPositivePatternId: number;
|
|
56
|
+
currencyNegativePatternId: number;
|
|
57
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, ICheckUpdateResponse, IDynamicPropertiesResponse, IDynamicValuesResponse, IRequestBase, IRequestInit, IService } from "../..";
|
|
1
|
+
import { IApiResponse, ICheckUpdateResponse, ICurrenciesResponse, IDynamicPropertiesResponse, IDynamicValuesResponse, IRequestBase, IRequestInit, IResponse, IService } from "../..";
|
|
2
2
|
export interface ICheckUpdateRequest extends IRequestBase {
|
|
3
3
|
version: string;
|
|
4
4
|
mobilePlatform: string;
|
|
@@ -6,8 +6,13 @@ export interface ICheckUpdateRequest extends IRequestBase {
|
|
|
6
6
|
export interface IDynamicPropertiesRequest extends IRequestBase {
|
|
7
7
|
formName: string;
|
|
8
8
|
}
|
|
9
|
+
export interface ISetCurrencyRequest extends IRequestBase {
|
|
10
|
+
currencyId: number;
|
|
11
|
+
}
|
|
9
12
|
export interface ICoreService extends IService {
|
|
10
13
|
CheckUpdate: (data: ICheckUpdateRequest, options?: IRequestInit) => Promise<IApiResponse<ICheckUpdateResponse>>;
|
|
11
14
|
DynamicProperties: (data: IDynamicPropertiesRequest, options?: IRequestInit) => Promise<IApiResponse<IDynamicPropertiesResponse>>;
|
|
12
15
|
DynamicValues: (data: FormData, options?: IRequestInit) => Promise<IApiResponse<IDynamicValuesResponse>>;
|
|
16
|
+
Currencies: (options?: IRequestInit) => Promise<IApiResponse<ICurrenciesResponse>>;
|
|
17
|
+
SetCurrency: (data: ISetCurrencyRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
13
18
|
}
|
|
@@ -61,4 +61,11 @@ exports.CoreService = {
|
|
|
61
61
|
DynamicValues: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
62
62
|
return (0, __1.fetchRequest)().post(exports.CoreService.Url(urls_1.default.DynamicForm.Values, options), Object.assign({ body: data }, options));
|
|
63
63
|
}),
|
|
64
|
+
// Currency Api
|
|
65
|
+
Currencies: (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
66
|
+
return (0, __1.fetchRequest)().get(exports.CoreService.Url(urls_1.default.Core.Currencies, options), Object.assign({}, options));
|
|
67
|
+
}),
|
|
68
|
+
SetCurrency: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
69
|
+
return (0, __1.fetchRequest)().post(exports.CoreService.Url(urls_1.default.Core.SetCurrency, options), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
70
|
+
}),
|
|
64
71
|
};
|
package/dist/services/urls.d.ts
CHANGED
|
@@ -182,6 +182,10 @@ declare const _default: {
|
|
|
182
182
|
Properties: string;
|
|
183
183
|
Values: string;
|
|
184
184
|
};
|
|
185
|
+
Core: {
|
|
186
|
+
Currencies: string;
|
|
187
|
+
SetCurrency: string;
|
|
188
|
+
};
|
|
185
189
|
};
|
|
186
190
|
export default _default;
|
|
187
191
|
export declare const getUrl: ({ isClient, language, methodName, serviceUrl, prefix, id, }: {
|
package/dist/services/urls.js
CHANGED
|
@@ -193,6 +193,10 @@ exports.default = {
|
|
|
193
193
|
Properties: "/{language}/DynamicForm/v1/Properties",
|
|
194
194
|
Values: "/{language}/DynamicForm/v1/Values",
|
|
195
195
|
},
|
|
196
|
+
Core: {
|
|
197
|
+
Currencies: "/{language}/Currency/v1/GetList",
|
|
198
|
+
SetCurrency: "/{language}/Currency/v1/SetCurrency",
|
|
199
|
+
},
|
|
196
200
|
};
|
|
197
201
|
const getUrl = ({ isClient = false, language = DEFAULT_LANGUAGE || "tr", methodName, serviceUrl, prefix, id = "", }) => {
|
|
198
202
|
let url = serviceUrl;
|