@omnia/wcm 6.7.127-preview → 6.10.3-dev
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.
- package/internal-do-not-import-from-here/core/loc/PageRollupLocalization.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/models/Constants.d.ts +6 -0
- package/internal-do-not-import-from-here/fx/models/Constants.js +6 -0
- package/internal-do-not-import-from-here/fx/models/components/PageRollupBlock.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageDetailsQuery.d.ts +13 -0
- package/internal-do-not-import-from-here/fx/models/pagequery/PageRollupQuery.d.ts +2 -0
- package/internal-do-not-import-from-here/fx/stores/PageRollupStore.d.ts +1 -1
- package/internal-do-not-import-from-here/fx/stores/PageRollupStoreHelper.d.ts +0 -1
- package/internal-do-not-import-from-here/tooling/extensions/ComposerExtensions.d.ts +0 -1
- package/internal-do-not-import-from-here/tooling/extensions/ComposerExtensions.js +18 -0
- package/internal-do-not-import-from-here/tooling/index.d.ts +0 -1
- package/internal-do-not-import-from-here/tooling/index.js +1 -1
- package/package.json +1 -1
- package/task.d.ts +5 -1
- package/task.js +4 -3
- package/task.ts +4 -5
|
@@ -98,6 +98,12 @@ export declare module PageRollupLocalization {
|
|
|
98
98
|
Channel: string;
|
|
99
99
|
CurrentUserSubscription: string;
|
|
100
100
|
CustomQuery: string;
|
|
101
|
+
PageHits: string;
|
|
102
|
+
CurrentUser: string;
|
|
103
|
+
AllUsers: string;
|
|
104
|
+
UniqueUsers: string;
|
|
105
|
+
LastViewed: string;
|
|
106
|
+
PageStatistics: string;
|
|
101
107
|
};
|
|
102
108
|
PagePicker: {
|
|
103
109
|
AddPage: string;
|
|
@@ -23,6 +23,12 @@ export declare const PageRollupConstants: {
|
|
|
23
23
|
readonly DefaultPageSize: number;
|
|
24
24
|
readonly channelIdInternalName: string;
|
|
25
25
|
readonly FilterByCurrentUserSubscription: string;
|
|
26
|
+
readonly pageHitsCurrentUserInternalName: string;
|
|
27
|
+
readonly pageHitsAllUsersInternalName: string;
|
|
28
|
+
readonly uniqueUsersInternalName: string;
|
|
29
|
+
readonly lastViewedCurrentUserInternalName: string;
|
|
30
|
+
readonly lastViewedAllUsersInternalName: string;
|
|
31
|
+
readonly pageStatistisGroupInternalName: string;
|
|
26
32
|
};
|
|
27
33
|
export declare const Constants: {
|
|
28
34
|
social: {
|
|
@@ -27,6 +27,12 @@ export var PageRollupConstants = {
|
|
|
27
27
|
get DefaultPageSize() { return 30; },
|
|
28
28
|
get channelIdInternalName() { return "PChannelId"; },
|
|
29
29
|
get FilterByCurrentUserSubscription() { return "CurrentUserSubscription"; },
|
|
30
|
+
get pageHitsCurrentUserInternalName() { return "5406e550-676e-4319-bbc8-3c2c21251d1f"; },
|
|
31
|
+
get pageHitsAllUsersInternalName() { return "9ac55985-8418-488e-96d3-3fbdee776408"; },
|
|
32
|
+
get uniqueUsersInternalName() { return "d3c32225-c550-4d75-ad11-c86f75a37b92"; },
|
|
33
|
+
get lastViewedCurrentUserInternalName() { return "ecc2ab45-85eb-4f83-a446-5518a4fbe754"; },
|
|
34
|
+
get lastViewedAllUsersInternalName() { return "d2c1a9f8-dc6e-4d3a-ac2c-734aed808ef6"; },
|
|
35
|
+
get pageStatistisGroupInternalName() { return "e91beabc-bde3-40e0-9ae5-24d362667bad"; }
|
|
30
36
|
};
|
|
31
37
|
export var Constants = {
|
|
32
38
|
social: {
|
|
@@ -158,6 +158,7 @@ export interface PageRollupBlockSettings {
|
|
|
158
158
|
commentPeriod?: PageRollupEnums.DatePeriods;
|
|
159
159
|
ratingPeriod?: PageRollupEnums.DatePeriods;
|
|
160
160
|
feedbackPeriod?: PageRollupEnums.DatePeriods;
|
|
161
|
+
pageStatisticsPeriod?: PageRollupEnums.DatePeriods;
|
|
161
162
|
sortBy?: string;
|
|
162
163
|
sortDescending?: boolean;
|
|
163
164
|
showCreateButton?: boolean;
|
|
@@ -40,3 +40,16 @@ export interface PageDetailsQuery {
|
|
|
40
40
|
contentLimit?: number;
|
|
41
41
|
contentProp?: string;
|
|
42
42
|
}
|
|
43
|
+
export interface PageQueryPageStatistic {
|
|
44
|
+
datePeriod: PageRollupEnums.DatePeriods;
|
|
45
|
+
internalName: string;
|
|
46
|
+
}
|
|
47
|
+
export interface PageStatisticPageHits extends PageQueryPageStatistic {
|
|
48
|
+
pageHits: number;
|
|
49
|
+
}
|
|
50
|
+
export interface PageStatisticLastViewed extends PageQueryPageStatistic {
|
|
51
|
+
lastViewed: Date;
|
|
52
|
+
}
|
|
53
|
+
export interface PageStatisticUniqueUsers extends PageQueryPageStatistic {
|
|
54
|
+
uniqueUsers: number;
|
|
55
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PageQuery, PageDetailsQueryResult, PageId } from '..';
|
|
2
|
+
import { PageRollupEnums } from './PageRollupEnums';
|
|
2
3
|
export interface PageRollupQuery {
|
|
3
4
|
uniqueKey: string;
|
|
4
5
|
itemQuery: PageQuery;
|
|
@@ -20,6 +21,7 @@ export interface NormalPageRollupPagingQuery {
|
|
|
20
21
|
sortDesc?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export interface BatchQueryPages extends PageQuery {
|
|
24
|
+
pageStatisticsPeriod: PageRollupEnums.DatePeriods;
|
|
23
25
|
queryId: string;
|
|
24
26
|
internalNames?: Array<string>;
|
|
25
27
|
trimDuplicates?: boolean;
|
|
@@ -68,7 +68,7 @@ export declare class PageRollupStore extends Store {
|
|
|
68
68
|
pageTypes: (uniqueKey: string) => PageTypeSelection[];
|
|
69
69
|
publishingChannelSettings: (uniqueKey: string) => string[];
|
|
70
70
|
};
|
|
71
|
-
private
|
|
71
|
+
private generatePageSocialCountingAndPageStatisticsColumn;
|
|
72
72
|
private getPageRollupDataFromIndexedDB;
|
|
73
73
|
private setPageRollupDataToIndexedDb;
|
|
74
74
|
/**
|
|
@@ -104,7 +104,6 @@ export declare class PageRollupStoreHelper {
|
|
|
104
104
|
queries: VariationQuery[];
|
|
105
105
|
}>;
|
|
106
106
|
populateTargetingVariationIds(variationQueries: VariationQuery[], settings: PageRollupBlockSettings, pageCollectionSelections: Array<PageCollectionSelection>): any[];
|
|
107
|
-
buildQuery(serviceContainerContext: ServiceContainerContext, settings: PageRollupBlockSettings, instance: IBlockInstance<PageRollupBlockSettings>, uiQueryFilters: QueryFilter[]): Promise<PageQuery>;
|
|
108
107
|
getPagesDetails(pageIds: number[], selectProps: PageDialogPropertiesMapping, contentLimit?: number, reloadData?: boolean): Promise<PageDialogData>;
|
|
109
108
|
}
|
|
110
109
|
export declare class FilterManager {
|
|
@@ -1,3 +1,21 @@
|
|
|
1
1
|
//import { ComponentComposer, ComponentRegistry } from "@omnia/tooling/composers";
|
|
2
2
|
//import * as deepExtend from 'deep-extend';
|
|
3
3
|
export {};
|
|
4
|
+
//export interface OmniaBlock {
|
|
5
|
+
// category?: string;
|
|
6
|
+
// editorsettings?: EditorConfigSettings;
|
|
7
|
+
//}
|
|
8
|
+
//declare module '@omnia/tooling-composers/internal-do-not-import-from-here/ComponentComposer' {
|
|
9
|
+
// interface IWebComponentComposer {
|
|
10
|
+
// registerOmniaBlock?(omniaBlock?: OmniaBlock): IWebComponentComposer;
|
|
11
|
+
// }
|
|
12
|
+
//}
|
|
13
|
+
//function registerOmniaBlock<T>(this: ComponentComposer, omniaBlock?: OmniaBlock) {
|
|
14
|
+
// let definition = ComponentRegistry.getComponentDefinition(this.manifest) || {};
|
|
15
|
+
// ComponentRegistry.addComponentDefinition(this.manifest, deepExtend(definition, Object.assign({
|
|
16
|
+
// showInOmniaBlock: true
|
|
17
|
+
// }, omniaBlock)));
|
|
18
|
+
// return this;
|
|
19
|
+
//}
|
|
20
|
+
//ComponentComposer.prototype['registerOmniaBlock'] = registerOmniaBlock;
|
|
21
|
+
//export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./extensions/ComposerExtensions";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require("./extensions/ComposerExtensions"); //
|
package/package.json
CHANGED
package/task.d.ts
CHANGED
package/task.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
import { registerManifestsReference, registerWebComponentDefinitions } from "@omnia/tooling-vue";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
//import { registerManifestsReference, registerWebComponentDefinitions } from "@omnia/tooling-vue";
|
|
4
3
|
var path = require('path');
|
|
5
4
|
var fs = require('fs');
|
|
6
5
|
var fsExtra = require('fs-extra');
|
|
7
6
|
require("./internal-do-not-import-from-here/tooling");
|
|
8
|
-
|
|
7
|
+
var _a = require("@omnia/tooling-vue"), registerManifestsReference = _a.registerManifestsReference, registerWebComponentDefinitions = _a.registerWebComponentDefinitions;
|
|
8
|
+
function init() {
|
|
9
9
|
if (fs.existsSync(process.cwd().replace(/\\/g, "/") + "/node_modules/@omnia/tooling-vue/internal-do-not-import-from-here/tasks/bundle.js")) {
|
|
10
10
|
//const tooling = require('@omnia/tooling-vue/internal-do-not-import-from-here/tasks/bundle');
|
|
11
11
|
registerManifestsReference([
|
|
@@ -31,3 +31,4 @@ export function init() {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
exports.init = init;
|
package/task.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
import { registerManifestsReference, registerWebComponentDefinitions } from "@omnia/tooling-vue";
|
|
2
|
+
//import { registerManifestsReference, registerWebComponentDefinitions } from "@omnia/tooling-vue";
|
|
3
3
|
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
4
|
|
|
6
5
|
const path = require('path');
|
|
7
6
|
const fs = require('fs');
|
|
8
7
|
const fsExtra = require('fs-extra');
|
|
9
8
|
require("./internal-do-not-import-from-here/tooling");
|
|
9
|
+
const { registerManifestsReference, registerWebComponentDefinitions } = require("@omnia/tooling-vue");
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
export function init() {
|
|
11
|
+
function init() {
|
|
13
12
|
if (fs.existsSync(process.cwd().replace(/\\/g, "/") + "/node_modules/@omnia/tooling-vue/internal-do-not-import-from-here/tasks/bundle.js")) {
|
|
14
13
|
//const tooling = require('@omnia/tooling-vue/internal-do-not-import-from-here/tasks/bundle');
|
|
15
14
|
|
|
@@ -38,4 +37,4 @@ export function init() {
|
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
|
|
40
|
+
exports.init = init;
|