nextemos 3.8.4 → 3.8.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.
@@ -78,6 +78,17 @@ export interface BlogPostBlogCategoryMapping {
78
78
  hierarchy?: number[];
79
79
  isDefault?: boolean;
80
80
  isApproved?: boolean;
81
+ templateId?: number;
82
+ parentId?: number;
83
+ order?: number;
84
+ culture?: string;
85
+ name?: string;
86
+ key?: string;
87
+ description?: string;
88
+ className?: string;
89
+ keys?: string;
90
+ path?: string;
91
+ extensionData?: any;
81
92
  }
82
93
  export interface IChildCategory {
83
94
  id: number;
@@ -23,3 +23,29 @@ export interface Route {
23
23
  description?: string;
24
24
  isRedirected?: boolean;
25
25
  }
26
+ export interface ICommonPage {
27
+ id?: number;
28
+ pageTypeId?: number;
29
+ contentPageId?: number;
30
+ routeKeys?: string;
31
+ order?: number;
32
+ createdBy?: number;
33
+ createdAtUtc?: string;
34
+ updatedBy?: number;
35
+ updatedAtUtc?: string;
36
+ tenantId?: string;
37
+ commonPageLocalizations?: ICommonPageLocalization[];
38
+ }
39
+ export interface ICommonPageLocalization {
40
+ id?: number;
41
+ mask?: string;
42
+ titleMask?: string;
43
+ descriptionMask?: string;
44
+ culture?: string;
45
+ updatedAtUtc?: string;
46
+ updatedBy?: number;
47
+ createdAtUtc?: string;
48
+ createdBy?: number;
49
+ isApproved?: boolean;
50
+ commonPageId?: number;
51
+ }
@@ -49,5 +49,16 @@ exports.RouteService = {
49
49
  methodName: urls_1.default.Route.GetRouteInfo,
50
50
  }), Object.assign(Object.assign({}, options), { params: data }));
51
51
  });
52
+ },
53
+ GetCommonPages: function () {
54
+ return __awaiter(this, arguments, void 0, function* (data = {}, options) {
55
+ return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
56
+ serviceUrl: this.ServiceUrl,
57
+ prefix: this.Prefix,
58
+ isClient: options === null || options === void 0 ? void 0 : options.useClient,
59
+ language: data === null || data === void 0 ? void 0 : data.language,
60
+ methodName: urls_1.default.Route.GetCommonPages,
61
+ }), Object.assign(Object.assign({}, options), { params: data }));
62
+ });
52
63
  }
53
64
  };
@@ -1,12 +1,16 @@
1
- import { IApiResponse, IRequestInit, IRouteResponse } from '../..';
1
+ import { IApiResponse, ICommonPage, IRequestInit, IRouteResponse } from '../..';
2
2
  export interface IGetRouteInfoRequest {
3
3
  baseUrl: string;
4
4
  queryString?: string;
5
5
  showRedirectDetail?: boolean;
6
6
  language?: string;
7
7
  }
8
+ export interface IGetCommonPagesRequest {
9
+ language?: string;
10
+ }
8
11
  export interface IRouteService {
9
12
  ServiceUrl: string;
10
13
  Prefix: string;
11
14
  GetRouteInfo: (data: IGetRouteInfoRequest, options?: IRequestInit) => Promise<IApiResponse<IRouteResponse>>;
15
+ GetCommonPages: (data?: IGetCommonPagesRequest, options?: IRequestInit) => Promise<IApiResponse<ICommonPage[]>>;
12
16
  }
@@ -18,6 +18,7 @@ declare const _default: {
18
18
  };
19
19
  Route: {
20
20
  GetRouteInfo: string;
21
+ GetCommonPages: string;
21
22
  };
22
23
  Product: {
23
24
  Product: string;
@@ -24,6 +24,7 @@ exports.default = {
24
24
  },
25
25
  Route: {
26
26
  GetRouteInfo: '/{language}/Route/v1/GetRouteInfo',
27
+ GetCommonPages: '/{language}/Route/v1/GetCommonPages',
27
28
  },
28
29
  Product: {
29
30
  Product: '/live/{language}/Product/v1/{id}',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "3.8.4",
3
+ "version": "3.8.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",