nextemos 6.1.5 → 6.1.6

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.
@@ -9,10 +9,15 @@ export interface IDynamicPropertiesRequest extends IRequestBase {
9
9
  export interface ISetCurrencyRequest extends IRequestBase {
10
10
  currencyId: number;
11
11
  }
12
+ export interface ILogRequest extends IRequestBase {
13
+ type: string;
14
+ message: string;
15
+ }
12
16
  export interface ICoreService extends IService {
13
17
  CheckUpdate: (data: ICheckUpdateRequest, options?: IRequestInit) => Promise<IApiResponse<ICheckUpdateResponse>>;
14
18
  DynamicProperties: (data: IDynamicPropertiesRequest, options?: IRequestInit) => Promise<IApiResponse<IDynamicPropertiesResponse>>;
15
19
  DynamicValues: (data: FormData, options?: IRequestInit) => Promise<IApiResponse<IDynamicValuesResponse>>;
16
20
  Currencies: (options?: IRequestInit) => Promise<IApiResponse<ICurrenciesResponse>>;
17
21
  SetCurrency: (data: ISetCurrencyRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
22
+ Log: (data: ILogRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
18
23
  }
@@ -69,4 +69,8 @@ exports.CoreService = {
69
69
  SetCurrency: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
70
70
  return (0, __1.fetchRequest)().post(exports.CoreService.Url(urls_1.default.Core.SetCurrency, options), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
71
71
  }),
72
+ // Log
73
+ Log: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
74
+ return (0, __1.fetchRequest)().post(exports.CoreService.Url(urls_1.default.Core.Log, options), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
75
+ }),
72
76
  };
@@ -218,6 +218,7 @@ declare const _default: {
218
218
  Core: {
219
219
  Currencies: string;
220
220
  SetCurrency: string;
221
+ Log: string;
221
222
  };
222
223
  Coupon: {
223
224
  GetMemberCoupons: string;
@@ -229,6 +229,7 @@ exports.default = {
229
229
  Core: {
230
230
  Currencies: "/{language}/Currency/{version}/GetList",
231
231
  SetCurrency: "/{language}/Currency/{version}/SetCurrency",
232
+ Log: "/{language}/LogApi/{version}/Log",
232
233
  },
233
234
  Coupon: {
234
235
  GetMemberCoupons: "/{language}/CouponGateway/{version}/GetMemberCoupons",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "6.1.5",
3
+ "version": "6.1.6",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",