@omnia/wcm 7.7.37-preview → 7.8.2-preview

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.
@@ -312,6 +312,13 @@ export declare module EditorLocalization {
312
312
  Properties: string;
313
313
  AddPageType: string;
314
314
  SwitchPageType: string;
315
+ Analytics: {
316
+ Title: string;
317
+ };
318
+ };
319
+ ContentAnalysis: {
320
+ Title: string;
321
+ AddContentAnalysisSetting: string;
315
322
  };
316
323
  PageCollections: {
317
324
  Title: string;
@@ -618,6 +625,22 @@ export declare module EditorLocalization {
618
625
  Cancel: string;
619
626
  NoPropertyAbleToOverride: string;
620
627
  };
628
+ EditContentAnalysis: {
629
+ Title: string;
630
+ TextProperties: string;
631
+ Save: string;
632
+ Cancel: string;
633
+ ContentAnalysisTitle: string;
634
+ };
635
+ PrePublishContentAnalysis: {
636
+ Title: string;
637
+ EditPage: string;
638
+ FixPage: string;
639
+ Passed: string;
640
+ Failed: string;
641
+ ContinutePublishing: string;
642
+ ErrorMessage: string;
643
+ };
621
644
  AddContent: {
622
645
  Title: string;
623
646
  SearchForABlock: string;
@@ -330,6 +330,7 @@ export declare module PublishingAppLocalization {
330
330
  SharepointSyncSettingsLabel: string;
331
331
  OverrideSharepointSyncSettings: string;
332
332
  EnableRedirectPageToOmnia: string;
333
+ EnablePromoteToViva: string;
333
334
  PageSummary: string;
334
335
  PageImage: string;
335
336
  PageContent: string;
@@ -17,6 +17,7 @@ export declare class PublishingAppTopics {
17
17
  static get refreshNavigationContentUI(): MessageBusTopicMediator<void>;
18
18
  static get showPageScheduleDialogTopic(): MessageBusTopicMediator<PageScheduleMessage>;
19
19
  static get showPagePublishDialogTopic(): MessageBusTopicMediator<void>;
20
+ static get showPrePublishContentAnalysisDialogTopic(): MessageBusTopicMediator<void>;
20
21
  static get showPageSendEmailDialogTopic(): MessageBusTopicMediator<void>;
21
22
  static get showInviteCoAuthorsDialogTopic(): MessageBusTopicMediator<void>;
22
23
  }
@@ -0,0 +1,4 @@
1
+ export interface FixPageContentAnalysisRequest {
2
+ pageId: number;
3
+ contentAnalysisRuleIds: number[];
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -35,3 +35,9 @@ export interface PageAiAnalysisReport {
35
35
  status: AiContentReportStatus;
36
36
  publishingAppId: Guid;
37
37
  }
38
+ export interface PageContentAnalysisResult {
39
+ aiSettingId: number;
40
+ reason: string;
41
+ isSucceed: boolean;
42
+ isShowReason: boolean;
43
+ }
@@ -24,6 +24,7 @@ export interface OpenAIPropertiesMapping {
24
24
  }
25
25
  export interface PageCollectionData extends PlainPageData {
26
26
  availablePageTypes: Array<PageId>;
27
+ contentAnalysisRules: Array<ContentAnalysisSetting>;
27
28
  pageCreationSettings: PageCreationSettings;
28
29
  activityPointSettings: ActivityPointSettings;
29
30
  enableNotificationReset: boolean;
@@ -109,6 +110,10 @@ export interface OverriddenPageTypeSetting {
109
110
  pageTypeId: number;
110
111
  overriddenProperties: Array<OverriddenProperty>;
111
112
  }
113
+ export interface ContentAnalysisSetting {
114
+ id: number;
115
+ properties: Array<string>;
116
+ }
112
117
  export interface OverriddenProperty {
113
118
  propertyId?: GuidValue;
114
119
  defaultValue?: any;
@@ -1,4 +1,4 @@
1
- import { EnterprisePropertyDefinition, EnterprisePropertyItemSettings, GuidValue, Identity, MultilingualString, TimePeriodSettings } from "@omnia/fx-models";
1
+ import { EnterprisePropertyDefinition, EnterprisePropertyItemSettings, GuidValue, Identity, MultilingualString, TimePeriodSettings, AnalyticsSettings } from "@omnia/fx-models";
2
2
  import { RichTextEditorExtension } from "@omnia/fx/ux/richtexteditor";
3
3
  import { SharepointSyncPageSettings } from "../../../sp";
4
4
  import { PageData } from "./PageData";
@@ -38,6 +38,7 @@ export interface PageTypeData extends PageData {
38
38
  propertiesSortOrder: string[];
39
39
  sharepointSyncPageSettings?: SharepointSyncPageSettings;
40
40
  automaticArchiveSettings: AutomaticArchiveSettings;
41
+ analyticsSettings?: AnalyticsSettings;
41
42
  }
42
43
  export interface PageTypeProperty extends EnterprisePropertyDefinition {
43
44
  info: PageTypePropertyInfo;
@@ -1,5 +1,6 @@
1
- import { PageAiAnalysisReport, PageAiAnalysisReportAddRequest, PageAiAnalysisReportQuery, PageAiAnalysisReportSummary, PageId, PageAiAnalysisReportDetails, AiAnalysisReportPageSnapshot } from "../models";
1
+ import { PageAiAnalysisReport, PageAiAnalysisReportAddRequest, PageAiAnalysisReportQuery, PageAiAnalysisReportSummary, PageId, PageAiAnalysisReportDetails, AiAnalysisReportPageSnapshot, PageContentAnalysisResult } from "../models";
2
2
  import { PageAiAnalysisPropertyRequest } from "../models/aipagecontentreport/PageAiAnalysisPropertyRequest";
3
+ import { FixPageContentAnalysisRequest } from "../models/aipagecontentreport/FixPageContentAnalysisRequest";
3
4
  export declare class AiContentPageReportService {
4
5
  private httpClient;
5
6
  private readonly baseUrl;
@@ -8,6 +9,8 @@ export declare class AiContentPageReportService {
8
9
  getReportSummary: (reportId: any) => Promise<PageAiAnalysisReportSummary>;
9
10
  getReportSummaries: (payload: PageAiAnalysisReportQuery) => Promise<Array<PageAiAnalysisReportSummary>>;
10
11
  getReportDetails: (reportId: number) => Promise<PageAiAnalysisReportDetails>;
12
+ analyzePageContent: (pageId: PageId) => Promise<Array<PageContentAnalysisResult>>;
13
+ fixPageContent: (payload: FixPageContentAnalysisRequest) => Promise<void>;
11
14
  fixPage: (reportId: number, pageId: PageId) => Promise<void>;
12
15
  getPageStatus: (reportId: number, pageId: PageId) => Promise<AiAnalysisReportPageSnapshot>;
13
16
  getAnalyzeReasonResult: (payload: PageAiAnalysisPropertyRequest) => Promise<string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "7.7.37-preview",
4
+ "version": "7.8.2-preview",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"