@omnia/wcm 6.7.127-preview → 6.10.0-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.
@@ -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 generatePageSocialCountingColumn;
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 {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "6.7.127-preview",
4
+ "version": "6.10.0-dev",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
package/task.js CHANGED
@@ -1,10 +1,10 @@
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");
7
+ var _a = require("@omnia/tooling-vue"), registerManifestsReference = _a.registerManifestsReference, registerWebComponentDefinitions = _a.registerWebComponentDefinitions;
8
8
  export 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');
package/task.ts CHANGED
@@ -1,13 +1,12 @@
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");
10
-
9
+ const { registerManifestsReference, registerWebComponentDefinitions } = require("@omnia/tooling-vue");
11
10
 
12
11
  export 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")) {