@omnia/wcm 7.10.0-preview.31 → 7.10.0-preview.33
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/fx/models/pages/ApprovalRequestInfo.d.ts +1 -0
- package/internal-do-not-import-from-here/fx/models/publishingrule/ApprovalRuleResolver.js +2 -2
- package/internal-do-not-import-from-here/models/publishingapp/approval/PageApproval.d.ts +3 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ class PublishApprovalRuleResolver {
|
|
|
12
12
|
}
|
|
13
13
|
getApprovalData(versionedPageData) {
|
|
14
14
|
var _a;
|
|
15
|
-
return (_a = versionedPageData.pageData) === null || _a === void 0 ? void 0 : _a.approvalData;
|
|
15
|
+
return (_a = versionedPageData === null || versionedPageData === void 0 ? void 0 : versionedPageData.pageData) === null || _a === void 0 ? void 0 : _a.approvalData;
|
|
16
16
|
}
|
|
17
17
|
isRuleDataMatched(rule) {
|
|
18
18
|
return rule.ruleData.type === PublishingRule_1.RuleTypes.Approval || rule.ruleData.type === PublishingRule_1.RuleTypes.MultipleApproval;
|
|
@@ -28,7 +28,7 @@ class DeletionApprovalRuleResolver {
|
|
|
28
28
|
}
|
|
29
29
|
getApprovalData(versionedPageData) {
|
|
30
30
|
var _a;
|
|
31
|
-
return (_a = versionedPageData.pageData) === null || _a === void 0 ? void 0 : _a.deletionApprovalData;
|
|
31
|
+
return (_a = versionedPageData === null || versionedPageData === void 0 ? void 0 : versionedPageData.pageData) === null || _a === void 0 ? void 0 : _a.deletionApprovalData;
|
|
32
32
|
}
|
|
33
33
|
isRuleDataMatched(rule) {
|
|
34
34
|
return rule.ruleData.type === PublishingRule_1.RuleTypes.DeletionApproval || rule.ruleData.type === PublishingRule_1.RuleTypes.DeletionMultipleApproval;
|
|
@@ -31,9 +31,11 @@ export interface MultipleApprovalRuleData extends MultipleStepApprovalRuleData {
|
|
|
31
31
|
}
|
|
32
32
|
export interface DeletionSingleStepApprovalRuleData extends SingleStepApprovalRuleData {
|
|
33
33
|
type: RuleTypes.DeletionApproval;
|
|
34
|
+
isCreateCopy?: boolean;
|
|
34
35
|
}
|
|
35
36
|
export interface DeletionMultipleStepApprovalRuleData extends MultipleStepApprovalRuleData {
|
|
36
37
|
type: RuleTypes.DeletionMultipleApproval;
|
|
38
|
+
isCreateCopy?: boolean;
|
|
37
39
|
}
|
|
38
40
|
export interface ApprovalStepAction extends ApprovalEvent {
|
|
39
41
|
}
|
|
@@ -51,5 +53,6 @@ export interface ApprovalRequest {
|
|
|
51
53
|
message: string;
|
|
52
54
|
publishMode: PublishMode;
|
|
53
55
|
approvalRequestType: ApprovalRequestType;
|
|
56
|
+
isCreateCopy?: boolean;
|
|
54
57
|
stepId?: GuidValue;
|
|
55
58
|
}
|