@omnia/wcm 7.10.0-preview.29 → 7.10.0-preview.30

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.
Files changed (19) hide show
  1. package/internal-do-not-import-from-here/core/loc/EditorLocalization.d.ts +3 -0
  2. package/internal-do-not-import-from-here/core/loc/PublishingAppLocalization.d.ts +2 -0
  3. package/internal-do-not-import-from-here/core/messaging/WcmPublicTopics.d.ts +1 -0
  4. package/internal-do-not-import-from-here/fx/models/pages/ArchivePageResult.d.ts +2 -1
  5. package/internal-do-not-import-from-here/fx/models/pages/ArchivePageResult.js +1 -0
  6. package/internal-do-not-import-from-here/fx/models/pages/PageData.d.ts +1 -0
  7. package/internal-do-not-import-from-here/fx/models/publishingrule/ApprovalRuleResolver.d.ts +21 -0
  8. package/internal-do-not-import-from-here/fx/models/publishingrule/ApprovalRuleResolver.js +40 -0
  9. package/internal-do-not-import-from-here/fx/models/publishingrule/index.d.ts +1 -0
  10. package/internal-do-not-import-from-here/fx/models/publishingrule/index.js +1 -0
  11. package/internal-do-not-import-from-here/fx/services/PublishingRuleService.d.ts +1 -1
  12. package/internal-do-not-import-from-here/fx/stores/PublishingRuleStore.d.ts +4 -4
  13. package/internal-do-not-import-from-here/manifests/omnia.wcm.fx.core.manifest.json +1 -1
  14. package/internal-do-not-import-from-here/models/publishingapp/approval/PageApproval.d.ts +14 -4
  15. package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.d.ts +2 -0
  16. package/internal-do-not-import-from-here/models/publishingapp/editor/Constants.js +2 -0
  17. package/internal-do-not-import-from-here/models/publishingapp/publish/PagePublish.d.ts +2 -1
  18. package/internal-do-not-import-from-here/models/publishingapp/publish/PagePublish.js +1 -0
  19. package/package.json +1 -1
@@ -157,6 +157,7 @@ export declare module EditorLocalization {
157
157
  VariationNotFoundMessage: string;
158
158
  VariationPageIsAlreadyExistMessage: string;
159
159
  Older: string;
160
+ ArchiveWithApprovalRequireMessage: string;
160
161
  SystemMessages: {
161
162
  ArchiveErrorMessages: {
162
163
  PageTypeInUse: string;
@@ -338,6 +339,7 @@ export declare module EditorLocalization {
338
339
  };
339
340
  Approval: {
340
341
  Title: string;
342
+ DeletionApproval: string;
341
343
  EnableApproval: string;
342
344
  Anyone: string;
343
345
  LimitedUsers: string;
@@ -690,6 +692,7 @@ export declare module EditorLocalization {
690
692
  };
691
693
  ArchivePageType: {
692
694
  Title: string;
695
+ NotAllowedByHavingApproval: string;
693
696
  AllowedMessage: string;
694
697
  NotAllowedMessage: string;
695
698
  ActionRequiredMessage: string;
@@ -179,6 +179,8 @@ export declare module PublishingAppLocalization {
179
179
  Delete: string;
180
180
  SaveAndClose: string;
181
181
  Feedback: string;
182
+ DeletionApproval: string;
183
+ CancelDeletionApproval: string;
182
184
  };
183
185
  SpeedDialButtons: {
184
186
  OpenEditor: string;
@@ -14,6 +14,7 @@ export declare class PublishingAppTopics {
14
14
  static get showNavigationPermissionPanelTopic(): MessageBusTopicMediator<NavigationNode<NavigationData>>;
15
15
  static get showPageTypePropertySettingTopic(): MessageBusTopicMediator<PageTypeProperty>;
16
16
  static get showPageApprovalDialogTopic(): MessageBusTopicMediator<PageApprovalMessage>;
17
+ static get showPageDeletionApprovalDialogTopic(): MessageBusTopicMediator<PageApprovalMessage>;
17
18
  static get refreshNavigationContentUI(): MessageBusTopicMediator<void>;
18
19
  static get showPageScheduleDialogTopic(): MessageBusTopicMediator<PageScheduleMessage>;
19
20
  static get showPagePublishDialogTopic(): MessageBusTopicMediator<void>;
@@ -2,7 +2,8 @@ import { PageId } from "./Page";
2
2
  export declare enum ValidationArchivePageResult {
3
3
  NotAllowed = 0,
4
4
  Allowed = 1,
5
- AdditionalActionRequired = 2
5
+ AdditionalActionRequired = 2,
6
+ NotAllowedByHavingApproval = 3
6
7
  }
7
8
  export interface ArchivePageResult {
8
9
  versionId: number;
@@ -6,4 +6,5 @@ var ValidationArchivePageResult;
6
6
  ValidationArchivePageResult[ValidationArchivePageResult["NotAllowed"] = 0] = "NotAllowed";
7
7
  ValidationArchivePageResult[ValidationArchivePageResult["Allowed"] = 1] = "Allowed";
8
8
  ValidationArchivePageResult[ValidationArchivePageResult["AdditionalActionRequired"] = 2] = "AdditionalActionRequired";
9
+ ValidationArchivePageResult[ValidationArchivePageResult["NotAllowedByHavingApproval"] = 3] = "NotAllowedByHavingApproval";
9
10
  })(ValidationArchivePageResult = exports.ValidationArchivePageResult || (exports.ValidationArchivePageResult = {}));
@@ -32,6 +32,7 @@ export interface PageData {
32
32
  enterprisePropertiesInheritance?: EnterprisePropertiesInheritance;
33
33
  layoutVersionedDataIdentifier?: IVersionedDataIdentifier;
34
34
  approvalData?: ApprovalData;
35
+ deletionApprovalData?: ApprovalData;
35
36
  propertyBag?: {
36
37
  search: {
37
38
  [blockId: string]: SearchValue;
@@ -0,0 +1,21 @@
1
+ import { ICurrentPageState } from "@omnia/wcm";
2
+ import { ApprovalData, ApprovalRequestType, PageData, VersionedPageData } from "../pages";
3
+ import { PublishingRule } from "./PublishingRule";
4
+ export declare abstract class ApprovalRuleResolver {
5
+ type: ApprovalRequestType;
6
+ abstract getApprovalData(versionedPageData: VersionedPageData<PageData>): ApprovalData;
7
+ abstract isRuleDataMatched(rule: PublishingRule): boolean;
8
+ abstract isValidToHaveApproval(currentPage: ICurrentPageState): boolean;
9
+ }
10
+ export declare class PublishApprovalRuleResolver implements ApprovalRuleResolver {
11
+ type: ApprovalRequestType;
12
+ getApprovalData(versionedPageData: VersionedPageData<PageData>): ApprovalData;
13
+ isRuleDataMatched(rule: PublishingRule): boolean;
14
+ isValidToHaveApproval(currentPage: ICurrentPageState): boolean;
15
+ }
16
+ export declare class DeletionApprovalRuleResolver implements ApprovalRuleResolver {
17
+ type: ApprovalRequestType;
18
+ getApprovalData(versionedPageData: VersionedPageData<PageData>): ApprovalData;
19
+ isRuleDataMatched(rule: PublishingRule): boolean;
20
+ isValidToHaveApproval(currentPage: ICurrentPageState): boolean;
21
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletionApprovalRuleResolver = exports.PublishApprovalRuleResolver = exports.ApprovalRuleResolver = void 0;
4
+ const pages_1 = require("../pages");
5
+ const PublishingRule_1 = require("./PublishingRule");
6
+ class ApprovalRuleResolver {
7
+ }
8
+ exports.ApprovalRuleResolver = ApprovalRuleResolver;
9
+ class PublishApprovalRuleResolver {
10
+ constructor() {
11
+ this.type = pages_1.ApprovalRequestType.Publishing;
12
+ }
13
+ getApprovalData(versionedPageData) {
14
+ var _a;
15
+ return (_a = versionedPageData.pageData) === null || _a === void 0 ? void 0 : _a.approvalData;
16
+ }
17
+ isRuleDataMatched(rule) {
18
+ return rule.ruleData.type === PublishingRule_1.RuleTypes.Approval || rule.ruleData.type === PublishingRule_1.RuleTypes.MultipleApproval;
19
+ }
20
+ isValidToHaveApproval(currentPage) {
21
+ return currentPage && currentPage.currentPage.pageType === pages_1.WCMPageTypes.plainPage && currentPage.currentVersion.versionData.versionType !== pages_1.VersionType.PublishedVersion;
22
+ }
23
+ }
24
+ exports.PublishApprovalRuleResolver = PublishApprovalRuleResolver;
25
+ class DeletionApprovalRuleResolver {
26
+ constructor() {
27
+ this.type = pages_1.ApprovalRequestType.Deletion;
28
+ }
29
+ getApprovalData(versionedPageData) {
30
+ var _a;
31
+ return (_a = versionedPageData.pageData) === null || _a === void 0 ? void 0 : _a.deletionApprovalData;
32
+ }
33
+ isRuleDataMatched(rule) {
34
+ return rule.ruleData.type === PublishingRule_1.RuleTypes.DeletionApproval || rule.ruleData.type === PublishingRule_1.RuleTypes.DeletionMultipleApproval;
35
+ }
36
+ isValidToHaveApproval(currentPage) {
37
+ return currentPage && currentPage.currentPage.pageType === pages_1.WCMPageTypes.plainPage;
38
+ }
39
+ }
40
+ exports.DeletionApprovalRuleResolver = DeletionApprovalRuleResolver;
@@ -2,3 +2,4 @@ export * from "./PublishingRule";
2
2
  export * from "./PageVersionPublishingRules";
3
3
  export * from "./SendBackPageInfo";
4
4
  export * from "./ApprovePageInfo";
5
+ export * from "./ApprovalRuleResolver";
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./PublishingRule"), exports);
5
5
  tslib_1.__exportStar(require("./PageVersionPublishingRules"), exports);
6
6
  tslib_1.__exportStar(require("./SendBackPageInfo"), exports);
7
7
  tslib_1.__exportStar(require("./ApprovePageInfo"), exports);
8
+ tslib_1.__exportStar(require("./ApprovalRuleResolver"), exports);
@@ -9,7 +9,7 @@ export declare class PublishingRuleService {
9
9
  [pageId: number]: PublishingRule<PublishingRuleData>[];
10
10
  }>;
11
11
  updateRule: (rule: PublishingRule) => Promise<PublishingRule>;
12
- cancelApproval: (rule: PublishingRule<ApprovalRuleData>) => Promise<Array<PublishingRule>>;
12
+ cancelApproval: (rule: PublishingRule) => Promise<Array<PublishingRule>>;
13
13
  approveApproval: (approvePageInfo: ApprovePageInfo) => Promise<PublishingRule<ApprovalRuleData>[]>;
14
14
  rejectApproval: (rejectPageInfo: RejectPageInfo) => Promise<Array<PublishingRule>>;
15
15
  sendBackApproval: (sendBackPageInfo: SendBackPageInfo) => Promise<PublishingRule>;
@@ -1,7 +1,7 @@
1
1
  import { NotificationMessage } from "@omnia/fx-models";
2
2
  import { Store } from "@omnia/fx/stores";
3
3
  import { ApprovalRequest, ApprovalRuleData } from "../../models";
4
- import { ApprovePageInfo, PageId, PublishingRule, PublishingRuleData, SendBackPageInfo } from "../models";
4
+ import { ApprovePageInfo, PageId, PublishingRule, PublishingRuleData, ApprovalRuleResolver, SendBackPageInfo } from "../models";
5
5
  import { ApprovalData } from "internal/fx/models";
6
6
  import { RejectPageInfo } from "../models/publishingrule/RejectPageInfo";
7
7
  export declare class PublishingRuleStore extends Store {
@@ -35,8 +35,8 @@ export declare class PublishingRuleStore extends Store {
35
35
  [pageId: number]: PublishingRule<PublishingRuleData>[];
36
36
  }>) => void) => import("@omnia/fx-models").IMessageBusSubscriptionHandler;
37
37
  isPublishingRuleExisted: (pageId: PageId) => boolean;
38
- canCancelApproval: (pageId: PageId, approvalData: ApprovalData) => boolean;
39
- canApproveOrReject: (pageId: PageId, defaultPageCollectionApprovalData: ApprovalData) => boolean;
38
+ canCancelApproval: (pageId: PageId, approvalData: ApprovalData, resolver?: ApprovalRuleResolver) => boolean;
39
+ canApproveOrReject: (pageId: PageId, defaultPageCollectionApprovalData: ApprovalData, resolver?: ApprovalRuleResolver) => boolean;
40
40
  isEditableApprovalStep: (pageId: PageId) => boolean;
41
41
  };
42
42
  mutations: {
@@ -47,7 +47,7 @@ export declare class PublishingRuleStore extends Store {
47
47
  ensurePageRules: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId, forceRefresh?: boolean) => void, (result: void, pageId: PageId, forceRefresh?: boolean) => void, (failureReason: any, pageId: PageId, forceRefresh?: boolean) => void, (pageId: PageId, forceRefresh?: boolean) => Promise<void>>;
48
48
  getAllPageRules: import("@omnia/fx/stores").StoreAction<unknown, (pageId: PageId) => void, (result: unknown, pageId: PageId) => void, (failureReason: any, pageId: PageId) => void, (pageId: PageId) => Promise<unknown>>;
49
49
  sendApprovalRequest: import("@omnia/fx/stores").StoreAction<unknown, (request: ApprovalRequest) => void, (result: PublishingRule<ApprovalRuleData>[], request: ApprovalRequest) => void, (failureReason: any, request: ApprovalRequest) => void, (request: ApprovalRequest) => Promise<PublishingRule<ApprovalRuleData>[]>>;
50
- cancelApproval: import("@omnia/fx/stores").StoreAction<unknown, (ruleData: PublishingRule<ApprovalRuleData>) => void, (result: PublishingRule<PublishingRuleData>[], ruleData: PublishingRule<ApprovalRuleData>) => void, (failureReason: any, ruleData: PublishingRule<ApprovalRuleData>) => void, (ruleData: PublishingRule<ApprovalRuleData>) => Promise<Array<PublishingRule>>>;
50
+ cancelApproval: import("@omnia/fx/stores").StoreAction<unknown, (ruleData: PublishingRule<PublishingRuleData>) => void, (result: PublishingRule<PublishingRuleData>[], ruleData: PublishingRule<PublishingRuleData>) => void, (failureReason: any, ruleData: PublishingRule<PublishingRuleData>) => void, (ruleData: PublishingRule) => Promise<Array<PublishingRule>>>;
51
51
  approve: import("@omnia/fx/stores").StoreAction<unknown, (approvePageInfo: ApprovePageInfo) => void, (result: PublishingRule<ApprovalRuleData>[], approvePageInfo: ApprovePageInfo) => void, (failureReason: any, approvePageInfo: ApprovePageInfo) => void, (approvePageInfo: ApprovePageInfo) => Promise<PublishingRule<ApprovalRuleData>[]>>;
52
52
  reject: import("@omnia/fx/stores").StoreAction<unknown, (rejectPageInfo: RejectPageInfo) => void, (result: PublishingRule<PublishingRuleData>[], rejectPageInfo: RejectPageInfo) => void, (failureReason: any, rejectPageInfo: RejectPageInfo) => void, (rejectPageInfo: RejectPageInfo) => Promise<Array<PublishingRule>>>;
53
53
  addRule: import("@omnia/fx/stores").StoreAction<unknown, (ruleData: PublishingRuleData, pageId: PageId) => void, (result: PublishingRule<PublishingRuleData>, ruleData: PublishingRuleData, pageId: PageId) => void, (failureReason: any, ruleData: PublishingRuleData, pageId: PageId) => void, (ruleData: PublishingRuleData, pageId: PageId) => Promise<PublishingRule>>;
@@ -1 +1 @@
1
- {"name":"omniaWebpackJsonp['d60fa82a-129a-41a9-93ce-d784dcb217b0']['73f0116c-212c-4912-b780-d8df4ea3d78b']","content":{"./node_modules/@omnia/wcm/models/index.js":{"id":"0044f6fa-6f28-4130-9b07-649c0ab06fca","buildMeta":{"exportsType":"namespace"},"expo.js":["AccordionBlockStyles","ActionButtonLinkHandlerTargets","ActionButtonType","ActivityActionTypes","ActivityFeedScopes","ActivityType","AiContentReportPageStatus","AiContentReportStatus","AnalyticsReportColumnConstants","AnyoneApprovalData","AnyoneApprovalStep","ApplySettingsChangedStatus","ApprovalData","ApprovalMetaData","ApprovalRequestType","ApprovalStep","ApprovalType","AutomaticPageCreationStatusType","AvatarPosition","AvatarSize","BannerBlockStyles","BannerLayout","BreadcrumbBlockStyles","BuildInContentBlockTextStyleFormatting","ButtonGroupings","CalendarRollupBlockListViewSettingsStyles","CalendarRollupBlockSettingsStyles","CalendarRollupBlockStyles","CalendarRollupEnums","CalendarType","CardTypes","ChannelCardViewStyles","ChannelRollupBlockAdministrationViewStyles","ChannelRollupBlockSettingsFilterTabStyles","ChannelRollupBlockSettingsGeneralTabStyles","ChannelRollupBlockStyles","ChildStructureType","ColleagueDialogContentStyles","CommentSorting","CommunityAppLayoutDefinition","CommunityPageActivityStyles","CommunityStyles","Constants","ContentBlockModes","ContentBlockStyles","CurrentNavigationBlockSettingsStyles","CurrentNavigationBlockStyles","CurrentNavigationStatus","CurrentPageStatus","DailyRecurrenceTypeEnums","DatePeriods","DeletedPageDialogStyles","DigitalSignageConstants","DigitalSignageManifests","DigitalSignageQuerySettingsType","DigitalSigningScreenType","Directions","DistributionChannelType","DocumentTypes","DynamicRollerSizes","DynamicRollerTypes","EnterpriseGlossaryPageInformationProviderStyles","EnterprisePropertiesBlockDateTimeModes","EnterprisePropertiesRichTextSettings","EnterprisePropertyDataTypeProvider","EnterprisePropertyDocumentProviderProperty","EventAttedeeType","EventCloneDialogContentStyles","EventParticipantCounterBlockStyles","EventParticipantListEnums","EventParticipantListStyles","EventParticipantListViewStyles","FileUploaderWCMPageContext","FilterKey","GetRoleDefinitions","HtmlScriptBlockStyle","InfoScreenConstants","InfoScreenManifests","InfoScreenViewIdConstants","ItemQueryEnums","LabelPositions","LimitedUserApprovalData","LimitedUserApprovalStep","LinkPickerStyle","ListView","MediaBlockStyles","MediaPickerStorageProviderPageContext","MediaPickerStorageProviderPageCreationContext","MediaPickerStorageProviderPageReadContext","MediaPickerStorageProviderWCMChannelAdminContext","MediaRollupConstants","MediaRollupStyles","MediaRollupThumbnailSize","MediaRollupType","MegaMenuStyles","MessageType","MicrosoftSearch","MobileNavigationNodeStyles","MobileNavigationStyles","MonthlyRecurrenceTypeEnums","MoveNavigationNodeType","MovePageCollectionDialogStyles","MovePageStatus","MsSearchFieldsConstants","MultiApprovalData","NavigationDataType","NavigationNodeQuery","NavigationNodeStyles","NavigationNodeType","NavigationRenders","NodeId","OmniaSearchConstants","OpenDocumentOptions","Operator","OutlookCalendarType","PageBuiltInColumnConstants","PageCalendarViewMode","PageCollectionDisplaySettings","PageCollectionPropertyDefinition","PageCollectionPropertyDefinitionId","PageCollectionPropertyValue","PageCollectionTopic","PageDataType","PageFeedbackBlockStyles","PageFeedbackDialogStyles","PageFeedbacksStyles","PageFile","PageId","PageItemTemplateStyles","PageMoveTypes","PageNavigationDirection","PagePickerNodeStyles","PagePickerProviderStyles","PagePropertiesBlockAdvancedStyles","PagePropertiesBlockStyles","PageRollUpDialogViewStyles","PageRollupBlockCalendarViewSettingsStyles","PageRollupBlockCalendarViewStyles","PageRollupBlockCardViewSettingsStyles","PageRollupBlockListViewSettingsStyles","PageRollupBlockListViewViewStyles","PageRollupBlockListingWithImageViewViewStyles","PageRollupBlockRollerViewViewStyles","PageRollupBlockSettingsFilterTabStyles","PageRollupBlockSettingsGeneralTabStyles","PageRollupBlockStyles","PageRollupConstants","PageRollupEnums","PageRollupFilterEngineContextPropertyTypes","PageRollupListViewSettingsStyles","PageRollupListViewStyles","PageRollupListingPickedPagesStyles","PageRollupNavigationViewStyles","PageRollupNewsletterViewStyles","PageRollupPickedPagesDialogStyles","PageRollupUniqueUsersDetailsStyles","PageTopic","PageTypeDisplaySettings","PageTypePropertyDefinition","PageTypePropertyDefinitionId","PageTypePropertyValue","PagesDashboardSettingsStyles","PagingTypes","Parameters","ParticipantType","PendingFileStatus","PersonPropertyApprovalData","PersonPropertyApprovalStep","PhotowallView","PublishingAppArchiveSettingsRouteProperty","PublishingAppBootRouteProperty","PublishingAppDisplaySettings","PublishingAppLayoutDefinition","PublishingAppPropertyDefinition","PublishingAppPropertyDefinitionId","PublishingAppPropertyValue","PublishingAppReuseContentSettingsRouteProperty","PublishingAppTopic","PublishingChannelId","PublishingChannelTopic","PublishingStatus","QrCodeStyles","QueryScope","QueryValueOptions","RecurrenceTypeEnums","RelatedLinkAddHeadingDialogStyles","RelatedLinkBlockStyles","RelatedLinkEditFormStyles","ReportTypesEnum","ResourceEvaluators","ReusablePageStatusType","ReuseContentMode","RoleDefinitions","RootService","RssReaderBlockLeftImageViewStyles","RssReaderBlockNoImageViewStyles","RssReaderBlockStyles","RuleStatus","RuleTypes","ScheduleEndTypeEnums","SearchTemplateOmniaPageStyles","SelectedPageItemStyles","SharePointLibrary","SharepointPageTemplateStyles","SignOffRequestBlockStyles","SignOffRequestConstants","SortByProperties","SpsSearch","StatisticsPerPageDataSourcesEnum","TableView","TagTopic","TaxonomyFilterType","TaxonomyNavigationStyles","TaxonomyTopic","TermDrivenApprovalData","TermDrivenApprovalStep","TimePeriod","TopicInformationType","TopicType","UserTopic","ValidationArchivePageResult","VariationId","VariationInputStyles","VariationsRouteProperty","VersionComparisonType","VersionId","VersionMetaData","VersionType","VersionUpdationMode","VideoType","WCMEnterpriseProperties","WCMFxLocalization","WCMGlossary","WCMGlossaryType","WCMGlossaryVariation","WCMNavigationDataTypes","WCMPageIdCustomPropertyName","WCMPageTypes","WCMReaderContext","WcmAppDefaultResourceUrl","WcmEditorDynamicNavigationRouteProperty","WcmExtension","WcmGroupManifests","WcmLayoutProvider","WcmPropertyDefaultBooleanValues","WcmPropertyDefaultValues","WcmResourceManifests","WcmService","WcmWebComponentManifests","WebBrowserDigitalSigningScreenStepType","WebsiteQueryType","WeekOfMonthEnums","WelcomeBlockStyles","WorkplaceService","YammerProperties","layoutItemAction"]}}}
1
+ {"name":"omniaWebpackJsonp['d60fa82a-129a-41a9-93ce-d784dcb217b0']['73f0116c-212c-4912-b780-d8df4ea3d78b']","content":{"./node_modules/@omnia/wcm/models/index.js":{"id":"0044f6fa-6f28-4130-9b07-649c0ab06fca","buildMeta":{"exportsType":"namespace"},"expo.js":["AccordionBlockStyles","ActionButtonLinkHandlerTargets","ActionButtonType","ActivityActionTypes","ActivityFeedScopes","ActivityType","AiContentReportPageStatus","AiContentReportStatus","AnalyticsReportColumnConstants","AnyoneApprovalData","AnyoneApprovalStep","ApplySettingsChangedStatus","ApprovalData","ApprovalMetaData","ApprovalRequestType","ApprovalRuleResolver","ApprovalStep","ApprovalType","AutomaticPageCreationStatusType","AvatarPosition","AvatarSize","BannerBlockStyles","BannerLayout","BreadcrumbBlockStyles","BuildInContentBlockTextStyleFormatting","ButtonGroupings","CalendarRollupBlockListViewSettingsStyles","CalendarRollupBlockSettingsStyles","CalendarRollupBlockStyles","CalendarRollupEnums","CalendarType","CardTypes","ChannelCardViewStyles","ChannelRollupBlockAdministrationViewStyles","ChannelRollupBlockSettingsFilterTabStyles","ChannelRollupBlockSettingsGeneralTabStyles","ChannelRollupBlockStyles","ChildStructureType","ColleagueDialogContentStyles","CommentSorting","CommunityAppLayoutDefinition","CommunityPageActivityStyles","CommunityStyles","Constants","ContentBlockModes","ContentBlockStyles","CurrentNavigationBlockSettingsStyles","CurrentNavigationBlockStyles","CurrentNavigationStatus","CurrentPageStatus","DailyRecurrenceTypeEnums","DatePeriods","DeletedPageDialogStyles","DeletionApprovalRuleResolver","DigitalSignageConstants","DigitalSignageManifests","DigitalSignageQuerySettingsType","DigitalSigningScreenType","Directions","DistributionChannelType","DocumentTypes","DynamicRollerSizes","DynamicRollerTypes","EnterpriseGlossaryPageInformationProviderStyles","EnterprisePropertiesBlockDateTimeModes","EnterprisePropertiesRichTextSettings","EnterprisePropertyDataTypeProvider","EnterprisePropertyDocumentProviderProperty","EventAttedeeType","EventCloneDialogContentStyles","EventParticipantCounterBlockStyles","EventParticipantListEnums","EventParticipantListStyles","EventParticipantListViewStyles","FileUploaderWCMPageContext","FilterKey","GetRoleDefinitions","HtmlScriptBlockStyle","InfoScreenConstants","InfoScreenManifests","InfoScreenViewIdConstants","ItemQueryEnums","LabelPositions","LimitedUserApprovalData","LimitedUserApprovalStep","LinkPickerStyle","ListView","MediaBlockStyles","MediaPickerStorageProviderPageContext","MediaPickerStorageProviderPageCreationContext","MediaPickerStorageProviderPageReadContext","MediaPickerStorageProviderWCMChannelAdminContext","MediaRollupConstants","MediaRollupStyles","MediaRollupThumbnailSize","MediaRollupType","MegaMenuStyles","MessageType","MicrosoftSearch","MobileNavigationNodeStyles","MobileNavigationStyles","MonthlyRecurrenceTypeEnums","MoveNavigationNodeType","MovePageCollectionDialogStyles","MovePageStatus","MsSearchFieldsConstants","MultiApprovalData","NavigationDataType","NavigationNodeQuery","NavigationNodeStyles","NavigationNodeType","NavigationRenders","NodeId","OmniaSearchConstants","OpenDocumentOptions","Operator","OutlookCalendarType","PageBuiltInColumnConstants","PageCalendarViewMode","PageCollectionDisplaySettings","PageCollectionPropertyDefinition","PageCollectionPropertyDefinitionId","PageCollectionPropertyValue","PageCollectionTopic","PageDataType","PageFeedbackBlockStyles","PageFeedbackDialogStyles","PageFeedbacksStyles","PageFile","PageId","PageItemTemplateStyles","PageMoveTypes","PageNavigationDirection","PagePickerNodeStyles","PagePickerProviderStyles","PagePropertiesBlockAdvancedStyles","PagePropertiesBlockStyles","PageRollUpDialogViewStyles","PageRollupBlockCalendarViewSettingsStyles","PageRollupBlockCalendarViewStyles","PageRollupBlockCardViewSettingsStyles","PageRollupBlockListViewSettingsStyles","PageRollupBlockListViewViewStyles","PageRollupBlockListingWithImageViewViewStyles","PageRollupBlockRollerViewViewStyles","PageRollupBlockSettingsFilterTabStyles","PageRollupBlockSettingsGeneralTabStyles","PageRollupBlockStyles","PageRollupConstants","PageRollupEnums","PageRollupFilterEngineContextPropertyTypes","PageRollupListViewSettingsStyles","PageRollupListViewStyles","PageRollupListingPickedPagesStyles","PageRollupNavigationViewStyles","PageRollupNewsletterViewStyles","PageRollupPickedPagesDialogStyles","PageRollupUniqueUsersDetailsStyles","PageTopic","PageTypeDisplaySettings","PageTypePropertyDefinition","PageTypePropertyDefinitionId","PageTypePropertyValue","PagesDashboardSettingsStyles","PagingTypes","Parameters","ParticipantType","PendingFileStatus","PersonPropertyApprovalData","PersonPropertyApprovalStep","PhotowallView","PublishApprovalRuleResolver","PublishingAppArchiveSettingsRouteProperty","PublishingAppBootRouteProperty","PublishingAppDisplaySettings","PublishingAppLayoutDefinition","PublishingAppPropertyDefinition","PublishingAppPropertyDefinitionId","PublishingAppPropertyValue","PublishingAppReuseContentSettingsRouteProperty","PublishingAppTopic","PublishingChannelId","PublishingChannelTopic","PublishingStatus","QrCodeStyles","QueryScope","QueryValueOptions","RecurrenceTypeEnums","RelatedLinkAddHeadingDialogStyles","RelatedLinkBlockStyles","RelatedLinkEditFormStyles","ReportTypesEnum","ResourceEvaluators","ReusablePageStatusType","ReuseContentMode","RoleDefinitions","RootService","RssReaderBlockLeftImageViewStyles","RssReaderBlockNoImageViewStyles","RssReaderBlockStyles","RuleStatus","RuleTypes","ScheduleEndTypeEnums","SearchTemplateOmniaPageStyles","SelectedPageItemStyles","SharePointLibrary","SharepointPageTemplateStyles","SignOffRequestBlockStyles","SignOffRequestConstants","SortByProperties","SpsSearch","StatisticsPerPageDataSourcesEnum","TableView","TagTopic","TaxonomyFilterType","TaxonomyNavigationStyles","TaxonomyTopic","TermDrivenApprovalData","TermDrivenApprovalStep","TimePeriod","TopicInformationType","TopicType","UserTopic","ValidationArchivePageResult","VariationId","VariationInputStyles","VariationsRouteProperty","VersionComparisonType","VersionId","VersionMetaData","VersionType","VersionUpdationMode","VideoType","WCMEnterpriseProperties","WCMFxLocalization","WCMGlossary","WCMGlossaryType","WCMGlossaryVariation","WCMNavigationDataTypes","WCMPageIdCustomPropertyName","WCMPageTypes","WCMReaderContext","WcmAppDefaultResourceUrl","WcmEditorDynamicNavigationRouteProperty","WcmExtension","WcmGroupManifests","WcmLayoutProvider","WcmPropertyDefaultBooleanValues","WcmPropertyDefaultValues","WcmResourceManifests","WcmService","WcmWebComponentManifests","WebBrowserDigitalSigningScreenStepType","WebsiteQueryType","WeekOfMonthEnums","WelcomeBlockStyles","WorkplaceService","YammerProperties","layoutItemAction"]}}}
@@ -8,8 +8,7 @@ export declare enum ApprovalAction {
8
8
  Cancel = 3,
9
9
  SendBack = 4
10
10
  }
11
- export interface ApprovalRuleData extends PublishingRuleData {
12
- type: RuleTypes.Approval;
11
+ export interface SingleStepApprovalRuleData extends PublishingRuleData {
13
12
  approver: Identity;
14
13
  requester: Identity;
15
14
  approvalAction: ApprovalAction;
@@ -18,13 +17,24 @@ export interface ApprovalRuleData extends PublishingRuleData {
18
17
  recipients?: string[];
19
18
  events: Array<ApprovalEvent>;
20
19
  }
21
- export interface MultipleApprovalRuleData extends PublishingRuleData {
22
- type: RuleTypes.MultipleApproval;
20
+ export interface MultipleStepApprovalRuleData extends PublishingRuleData {
23
21
  events: Array<ApprovalEvent>;
24
22
  isSendMail: boolean;
25
23
  recipients: Array<string>;
26
24
  scheduleDate: string;
27
25
  }
26
+ export interface ApprovalRuleData extends SingleStepApprovalRuleData {
27
+ type: RuleTypes.Approval;
28
+ }
29
+ export interface MultipleApprovalRuleData extends MultipleStepApprovalRuleData {
30
+ type: RuleTypes.MultipleApproval;
31
+ }
32
+ export interface DeletionSingleStepApprovalRuleData extends SingleStepApprovalRuleData {
33
+ type: RuleTypes.DeletionApproval;
34
+ }
35
+ export interface DeletionMultipleStepApprovalRuleData extends MultipleStepApprovalRuleData {
36
+ type: RuleTypes.DeletionMultipleApproval;
37
+ }
28
38
  export interface ApprovalStepAction extends ApprovalEvent {
29
39
  }
30
40
  export interface ApprovalEvent {
@@ -20,6 +20,7 @@ export declare const CreateDialogType: {
20
20
  };
21
21
  export declare const PageApprovalDialogType: {
22
22
  sendApprovalRequest: string;
23
+ sendDeletionApprovalRequest: string;
23
24
  approvePage: string;
24
25
  rejectPage: string;
25
26
  };
@@ -36,6 +37,7 @@ export declare const ActionButtonIds: {
36
37
  approve: string;
37
38
  reject: string;
38
39
  cancelApproval: string;
40
+ cancelDeletionApproval: string;
39
41
  variationSelector: string;
40
42
  publishChannels: string;
41
43
  delete: string;
@@ -23,6 +23,7 @@ exports.CreateDialogType = {
23
23
  };
24
24
  exports.PageApprovalDialogType = {
25
25
  sendApprovalRequest: "sendapprovalrequest",
26
+ sendDeletionApprovalRequest: "senddeletionapprovalrequest",
26
27
  approvePage: "approvepage",
27
28
  rejectPage: "rejectpage"
28
29
  };
@@ -39,6 +40,7 @@ exports.ActionButtonIds = {
39
40
  approve: "Approve",
40
41
  reject: "Reject",
41
42
  cancelApproval: "CancelApproval",
43
+ cancelDeletionApproval: "CancelDeletionApproval",
42
44
  variationSelector: "VariationSelector",
43
45
  publishChannels: "PublishChannels",
44
46
  delete: "Delete",
@@ -1,4 +1,5 @@
1
1
  export declare enum PublishMode {
2
2
  Publish = 0,
3
- PublishAndSendEmail = 1
3
+ PublishAndSendEmail = 1,
4
+ Deletion = 2
4
5
  }
@@ -5,4 +5,5 @@ var PublishMode;
5
5
  (function (PublishMode) {
6
6
  PublishMode[PublishMode["Publish"] = 0] = "Publish";
7
7
  PublishMode[PublishMode["PublishAndSendEmail"] = 1] = "PublishAndSendEmail";
8
+ PublishMode[PublishMode["Deletion"] = 2] = "Deletion";
8
9
  })(PublishMode = exports.PublishMode || (exports.PublishMode = {}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/wcm",
3
3
  "license": "MIT",
4
- "version": "7.10.0-preview.29",
4
+ "version": "7.10.0-preview.30",
5
5
  "description": "Omnia Web Content Management.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"