@omnia/management-system 7.6.23-preview → 7.6.23
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/apis/documents/DocumentLibraryCommandButtonApi.d.ts +1 -0
- package/internal-do-not-import-from-here/apis/documents/DocumentLibraryCommandButtonApi.manifest.d.ts +1 -0
- package/internal-do-not-import-from-here/constants.d.ts +86 -0
- package/internal-do-not-import-from-here/index.d.ts +1 -0
- package/internal-do-not-import-from-here/manifests/omnia.ms.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/models/components/documentlibrary/DocumentLibraryCommandButtonApi.d.ts +38 -0
- package/internal-do-not-import-from-here/models/components/documentlibrary/DocumentLibraryCommandButtonApi.js +7 -0
- package/internal-do-not-import-from-here/models/components/documentlibrary/index.d.ts +1 -0
- package/internal-do-not-import-from-here/models/components/documentlibrary/index.js +1 -0
- package/internal-do-not-import-from-here/models/data/settings/DefaultControlSettings.d.ts +1 -0
- package/internal-do-not-import-from-here/models/data/shapedefinitions/ShapeDefinition.d.ts +0 -8
- package/internal-do-not-import-from-here/models/data/shapedefinitions/ShapeDefinition.js +1 -32
- package/internal-do-not-import-from-here/models/index.d.ts +1 -1
- package/internal-do-not-import-from-here/models/index.js +1 -1
- package/internal-do-not-import-from-here/models/readreceiptsignoff/DocumentNotifiedPerson.d.ts +16 -0
- package/internal-do-not-import-from-here/models/readreceiptsignoff/DocumentNotifiedPerson.js +2 -0
- package/internal-do-not-import-from-here/models/readreceiptsignoff/DocumentReadReceiptHistory.d.ts +9 -0
- package/internal-do-not-import-from-here/models/readreceiptsignoff/DocumentReadReceiptHistory.js +2 -0
- package/internal-do-not-import-from-here/models/readreceiptsignoff/index.d.ts +2 -0
- package/internal-do-not-import-from-here/models/readreceiptsignoff/index.js +5 -0
- package/internal-do-not-import-from-here/processshape/index.d.ts +1 -0
- package/internal-do-not-import-from-here/processshape/shapedefinitions/ShapeDefinitionData.d.ts +9 -0
- package/internal-do-not-import-from-here/processshape/shapedefinitions/index.d.ts +1 -0
- package/internal-do-not-import-from-here/services/UserService.d.ts +6 -0
- package/internal-do-not-import-from-here/services/document/DocumentService.d.ts +56 -0
- package/internal-do-not-import-from-here/services/document/DocumentTemplateService.d.ts +18 -0
- package/internal-do-not-import-from-here/services/document/DocumentTypeService.d.ts +15 -0
- package/internal-do-not-import-from-here/services/document/index.d.ts +3 -0
- package/internal-do-not-import-from-here/services/documentlibrary/ApprovalTaskService.d.ts +12 -0
- package/internal-do-not-import-from-here/services/documentlibrary/DocumentLibraryService.d.ts +21 -0
- package/internal-do-not-import-from-here/services/documentlibrary/PublishDocumentService.d.ts +15 -0
- package/internal-do-not-import-from-here/services/documentlibrary/ReviewReminderTaskService.d.ts +5 -0
- package/internal-do-not-import-from-here/services/documentlibrary/ReviewTaskService.d.ts +17 -0
- package/internal-do-not-import-from-here/services/documentlibrary/TaskService.d.ts +11 -0
- package/internal-do-not-import-from-here/services/documentlibrary/index.d.ts +6 -0
- package/internal-do-not-import-from-here/services/index.d.ts +3 -0
- package/internal-do-not-import-from-here/stores/documentlibrary/DocumentConversionStore.d.ts +14 -0
- package/internal-do-not-import-from-here/stores/documentlibrary/DocumentPropetiesStore.d.ts +32 -0
- package/internal-do-not-import-from-here/stores/documentlibrary/DocumentSharePointFieldStore.d.ts +22 -0
- package/internal-do-not-import-from-here/stores/documentlibrary/DocumentTemplateStore.d.ts +37 -0
- package/internal-do-not-import-from-here/stores/documentlibrary/DocumentTypeStore.d.ts +42 -0
- package/internal-do-not-import-from-here/stores/documentlibrary/LibraryStore.d.ts +85 -0
- package/internal-do-not-import-from-here/stores/documentlibrary/NewDocumentStore.d.ts +36 -0
- package/internal-do-not-import-from-here/stores/documentlibrary/index.d.ts +7 -0
- package/internal-do-not-import-from-here/stores/index.d.ts +1 -0
- package/internal-do-not-import-from-here/utils.d.ts +14 -1
- package/package.json +1 -1
- package/internal-do-not-import-from-here/models/Constants.d.ts +0 -33
- package/internal-do-not-import-from-here/models/Constants.js +0 -37
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -4,6 +4,8 @@ import { ShapeTemplate } from "./models/data/shapetemplates/ShapeTemplate";
|
|
4
4
|
import { Version } from "./models/shared/Version";
|
5
5
|
import { ContentBlockSettings, LinksBlockSettings, TitleBlockSettings, TasksBlockSettings, PropertiesBlockSettings, ProcessNavigationBlockSettings, DrawingBlockSettings, ProcessLayoutBlockSettings } from "./models";
|
6
6
|
import { ActionHandlerRegistrationId } from "@omnia/fx/models";
|
7
|
+
export declare const ODMRecentDocumentTypesLocalStorageKey = "odm_recentdocumenttypes_key";
|
8
|
+
export declare const OWA_QUERY_PARAMETER = "?Web=1";
|
7
9
|
export declare class ODMFeatureIds {
|
8
10
|
static get ControlledDocument(): Guid;
|
9
11
|
static get CreateNewDocumentInLibrary(): Guid;
|
@@ -103,6 +105,57 @@ export declare const ShapeHighlightProperties: {
|
|
103
105
|
strokeDashArray: number[];
|
104
106
|
};
|
105
107
|
};
|
108
|
+
export declare const ODMFieldNameConstants: {
|
109
|
+
readonly ODMDocId: string;
|
110
|
+
readonly ODMDocIdNumber: string;
|
111
|
+
readonly ODMEdition: string;
|
112
|
+
readonly ODMRevision: string;
|
113
|
+
readonly ODMPublished: string;
|
114
|
+
readonly ODMReviewDate: string;
|
115
|
+
readonly ODMEditionComment: string;
|
116
|
+
readonly ODMApprovedBy: string;
|
117
|
+
readonly ODMApproved: string;
|
118
|
+
readonly ODMContentLanguage: string;
|
119
|
+
readonly ODMDocumentType: string;
|
120
|
+
readonly ODMDocumentTypeId: string;
|
121
|
+
readonly ODMIsFirstDraftVersion: string;
|
122
|
+
readonly ODMAppendixForDocumentId: string;
|
123
|
+
readonly ODMDocumentHistory: string;
|
124
|
+
readonly ODMIsPublished: string;
|
125
|
+
readonly ODMIsRecord: string;
|
126
|
+
readonly ODMIsArchived: string;
|
127
|
+
readonly ODMRelatedDocuments: string;
|
128
|
+
readonly ODMSignedDocuments: string;
|
129
|
+
readonly ODMAppendices: string;
|
130
|
+
readonly ODMIsAllowToBeUsedAsTemplate: string;
|
131
|
+
readonly ODMIsAllowSignedCopy: string;
|
132
|
+
readonly ODMProperties: string;
|
133
|
+
readonly ODMTemplateDocumentIdNumber: string;
|
134
|
+
readonly ODMTemplateDocumentEditionNumber: string;
|
135
|
+
readonly Title: string;
|
136
|
+
readonly ODMIsLimitedAccess: string;
|
137
|
+
readonly ODMLimitedUsers: string;
|
138
|
+
readonly ODMIsConvertedPDF: string;
|
139
|
+
readonly ODMIsNotifiedUsers: string;
|
140
|
+
readonly ODMListNotifiedUsers: string;
|
141
|
+
readonly ODMIsRequireReadReceipt: string;
|
142
|
+
readonly ODMTemplateId: string;
|
143
|
+
readonly ODMReviewReminderDate: string;
|
144
|
+
readonly ODMIsPreview: string;
|
145
|
+
readonly ODMRetentionDate: string;
|
146
|
+
readonly ODMPublishedBy: string;
|
147
|
+
readonly ODMTableDocId: string;
|
148
|
+
readonly ODMDeletedAt: string;
|
149
|
+
readonly ODMDeletedBy: string;
|
150
|
+
};
|
151
|
+
export declare const DocumentLibrariesUrl: {
|
152
|
+
readonly Drafts: string;
|
153
|
+
readonly Published: string;
|
154
|
+
readonly Tasks: string;
|
155
|
+
readonly Unprocessed: string;
|
156
|
+
readonly Archived: string;
|
157
|
+
readonly RecycleBin: string;
|
158
|
+
};
|
106
159
|
export declare const ProcessDefaultData: {
|
107
160
|
readonly canvasDefinition: CanvasDefinition;
|
108
161
|
};
|
@@ -143,3 +196,36 @@ export declare const ImageFolders: {
|
|
143
196
|
readonly legacy: string;
|
144
197
|
};
|
145
198
|
export declare const WebEmojiIcons: Array<string>;
|
199
|
+
export declare const OPMEnterprisePropertyInternalNames: {
|
200
|
+
readonly OPMEdition: string;
|
201
|
+
readonly OPMRevision: string;
|
202
|
+
readonly OPMProcessType: string;
|
203
|
+
readonly OPMProcessIdNumber: string;
|
204
|
+
readonly OPMPublished: string;
|
205
|
+
readonly OPMApprovedBy: string;
|
206
|
+
readonly OPMIsArchived: string;
|
207
|
+
readonly OPMIsPublished: string;
|
208
|
+
};
|
209
|
+
export declare const OPMProcessProperty: {
|
210
|
+
readonly Id: string;
|
211
|
+
};
|
212
|
+
export declare module Security {
|
213
|
+
const OPMRoleDefinitions: {
|
214
|
+
readonly Author: string;
|
215
|
+
readonly Reader: string;
|
216
|
+
readonly Approver: string;
|
217
|
+
readonly Reviewer: string;
|
218
|
+
};
|
219
|
+
const OPMResourceEvaluators: {
|
220
|
+
readonly SecurityResourceIdResource: string;
|
221
|
+
readonly OPMProcessIdResource: string;
|
222
|
+
};
|
223
|
+
const Parameters: {
|
224
|
+
readonly OPMProcessId: string;
|
225
|
+
readonly SecurityResourceId: string;
|
226
|
+
};
|
227
|
+
const ODMRoleDefinitions: {
|
228
|
+
readonly AppInstanceAuthor: string;
|
229
|
+
readonly AppInstanceReader: string;
|
230
|
+
};
|
231
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"omniaWebpackJsonp['b3d13ef7-5ff8-4496-a283-81a742080aef']['54a125ba-c2f8-4c4c-b549-ce0c3861026b']","content":{"./node_modules/@omnia/management-system/messaging/InternalOPMTopics.js":{"id":"./node_modules/@omnia/management-system/messaging/internalopmtopics.js","buildMeta":{"exportsType":"namespace"},"expo.js":["InternalOPMTopics"]},"./node_modules/@omnia/management-system/services/index.js":{"id":"./node_modules/@omnia/management-system/services/index.js","buildMeta":{"exportsType":"namespace"},"expo.js":["ImageService","MoveProcessService","PermissionService","ProcessDocumentRelationshipService","ProcessFeedbackService","ProcessRollupService","ProcessService","ProcessTaskService","ProcessTemplateService","ProcessTypeService","QueryablePropertiesService","SettingsService","ShapeTemplateService","SharePointTaskService","TeamAppPropertyService"]},"./node_modules/@omnia/management-system/models/index.js":{"id":"711e87d2-a76a-42d5-8658-eb2d0f74135a","buildMeta":{"exportsType":"namespace"},"expo.js":["AddShapePanelStyles","ArchiveFactory","CenterConfigurableHeightDialogStyles","CenterScrollableDialogStyles","DateTimeMode","DefaultControlSettings","DisplayProcessButtonType","DocumentApproverId","DocumentAuthorsType","DocumentConversions","DocumentTaskBulkUpdateTrackingStatusEnum","DocumentTemplateCategoryFactory","DocumentTemplateContentFactory","DocumentTemplateContentTypes","DocumentTemplateFactory","DocumentTemplateSettingsFactory","DocumentTemplateSettingsTypes","DocumentTypeFactory","DocumentTypeSettingsTypes","DocumentTypeTermSynchronizationStatusStatuses","DrawingCanvasSettingsStyles","DrawingShapeTypes","DynamicKeySetting","Enums","FreeformPickerStyles","GlobalSettings","GraphApiPlannerTaskProgress","MSService","MediaPickerStyles","NavigationNodeStyles","ODMResourceManifests","ODMWebComponentManifests","
|
1
|
+
{"name":"omniaWebpackJsonp['b3d13ef7-5ff8-4496-a283-81a742080aef']['54a125ba-c2f8-4c4c-b549-ce0c3861026b']","content":{"./node_modules/@omnia/management-system/constants.js":{"id":"./node_modules/@omnia/management-system/constants.js","buildMeta":{"exportsType":"namespace"},"expo.js":["BuiltInActionButtonHandlers","ContentBlockConfigurationFactory","DefaultDateFormat","DocumentLibrariesUrl","DocumentsBlockDataSettingsKey","DrawingBlockConfigurationFactory","ImageFolders","LinksBlockConfigurationFactory","ODMDocumentRollupDisplayFields","ODMFeatureIds","ODMFieldNameConstants","ODMRecentDocumentTypesLocalStorageKey","OPMEnterprisePropertyInternalNames","OPMFeatureIds","OPMProcessProperty","OPMSpecialRouteVersion","OWA_QUERY_PARAMETER","PagesBlockDataSettingsKey","ProcessDefaultData","ProcessLayoutBlockConfigurationFactory","ProcessNavigationConfigurationFactory","ProcessRollupConstants","ProcessTableColumnsConstants","ProcessTaskProviderIds","PropertiesBlockConfigurationFactory","RootProcessStepDesignerItemIds","Security","ShapeHighlightProperties","ShapeTemplatesConstants","SharePointFieldsConstants","SystemProcessProperties","TasksBlockConfigurationFactory","TextSpacingWithShape","TitleBlockConfigurationFactory","WebEmojiIcons"]},"./node_modules/@omnia/management-system/messaging/InternalOPMTopics.js":{"id":"./node_modules/@omnia/management-system/messaging/internalopmtopics.js","buildMeta":{"exportsType":"namespace"},"expo.js":["InternalOPMTopics"]},"./node_modules/@omnia/management-system/processshape/fabricshape/FabricShapeData.js":{"id":"./node_modules/@omnia/management-system/processshape/fabricshape/fabricshapedata.js","buildMeta":{"exportsType":"namespace"},"expo.js":["FabricShapeDataTypes"]},"./node_modules/@omnia/management-system/processshape/fabricshape/index.js":{"id":"./node_modules/@omnia/management-system/processshape/fabricshape/index.js","buildMeta":{"exportsType":"namespace"},"expo.js":["FabricShapeDataTypes"]},"./node_modules/@omnia/management-system/processshape/index.js":{"id":"./node_modules/@omnia/management-system/processshape/index.js","buildMeta":{"exportsType":"namespace"},"expo.js":["FabricShapeDataTypes","ShapeDefinitionFactory","ShapeFactory"]},"./node_modules/@omnia/management-system/processshape/shapedefinitions/index.js":{"id":"./node_modules/@omnia/management-system/processshape/shapedefinitions/index.js","buildMeta":{"exportsType":"namespace"},"expo.js":["ShapeDefinitionFactory"]},"./node_modules/@omnia/management-system/processshape/shapedefinitions/ShapeDefinitionData.js":{"id":"./node_modules/@omnia/management-system/processshape/shapedefinitions/shapedefinitiondata.js","buildMeta":{"exportsType":"namespace"},"expo.js":["ShapeDefinitionFactory"]},"./node_modules/@omnia/management-system/processshape/shapes/index.js":{"id":"./node_modules/@omnia/management-system/processshape/shapes/index.js","buildMeta":{"exportsType":"namespace"},"expo.js":["ShapeFactory"]},"./node_modules/@omnia/management-system/processshape/shapes/Shape.js":{"id":"./node_modules/@omnia/management-system/processshape/shapes/shape.js","buildMeta":{"exportsType":"namespace"},"expo.js":["ShapeFactory"]},"./node_modules/@omnia/management-system/processshape/shapes/ShapeObject.js":{"id":"./node_modules/@omnia/management-system/processshape/shapes/shapeobject.js","buildMeta":{"exportsType":"namespace"},"expo.js":[]},"./node_modules/@omnia/management-system/services/index.js":{"id":"./node_modules/@omnia/management-system/services/index.js","buildMeta":{"exportsType":"namespace"},"expo.js":["ApprovalTaskService","DocumentLibraryService","DocumentService","DocumentTemplateService","DocumentTypeService","ImageService","MoveProcessService","PermissionService","ProcessDocumentRelationshipService","ProcessFeedbackService","ProcessRollupService","ProcessService","ProcessTaskService","ProcessTemplateService","ProcessTypeService","PublishDocumentService","QueryablePropertiesService","ReviewReminderTaskService","ReviewTaskService","SettingsService","ShapeTemplateService","SharePointTaskService","TaskService","TeamAppPropertyService","UserService"]},"./node_modules/@omnia/management-system/models/index.js":{"id":"711e87d2-a76a-42d5-8658-eb2d0f74135a","buildMeta":{"exportsType":"namespace"},"expo.js":["AddShapePanelStyles","ArchiveFactory","CenterConfigurableHeightDialogStyles","CenterScrollableDialogStyles","DateTimeMode","DefaultControlSettings","DisplayProcessButtonType","DocumentApproverId","DocumentAuthorsType","DocumentConversions","DocumentLibraryViewType","DocumentTaskBulkUpdateTrackingStatusEnum","DocumentTemplateCategoryFactory","DocumentTemplateContentFactory","DocumentTemplateContentTypes","DocumentTemplateFactory","DocumentTemplateSettingsFactory","DocumentTemplateSettingsTypes","DocumentTypeFactory","DocumentTypeSettingsTypes","DocumentTypeTermSynchronizationStatusStatuses","DrawingCanvasSettingsStyles","DrawingShapeTypes","DynamicKeySetting","Enums","FreeformPickerStyles","GlobalSettings","GraphApiPlannerTaskProgress","MSService","MediaPickerStyles","NavigationNodeStyles","ODMResourceManifests","ODMWebComponentManifests","OPMResourceManifests","OPMWebComponentManifests","PagingServerQuery","ProcessApproverId","ProcessButtonType","ProcessDefaultControlSettings","ProcessDesignerStyles","ProcessFieldDisplayStyles","ProcessGlobalSettings","ProcessLayoutProvider","ProcessMediaPickerProviderContext","ProcessNavigationBlockStyles","ProcessPickerStyles","ProcessReviewReminderFactory","ProcessStepDrawingStyles","ProcessStepPickerStyles","ProcessStepStatusType","ProcessStepType","ProcessTaskAssignmentDataType","ProcessTaskProvider","ProcessTemplateFactory","ProcessTemplateLayoutDefinition","ProcessTypeFactory","ProcessTypeSettingsTypes","ProcessTypeTermSynchronizationStatusStatuses","ProcessVersionType","ProcessWorkflowType","ProcessWorkingStatus","PropertySelectionListType","PublishingApprovalSettingsFactory","PublishingApprovalSettingsTypes","RetentionFactory","RetentionTypes","ReviewReminderFactory","ReviewReminderScheduleFactory","ReviewReminderScheduleTypes","ReviewReminderTaskFactory","ReviewReminderTaskSettingsFactory","Setting","ShapeDefinitionTypes","ShapeGalleryDefaultSettingStyles","ShapeMovingDirection","ShapeSelectionStyles","ShapeSettingsStyles","ShapeTemplateFactory","ShapeTemplateMediaPickerProviderContext","ShapeTemplateType","ShapeTypeStyles","SiteGroupIdSettings","TargetControlIdentifierType","TaskOutcome","TextAlignment","TextPosition","TitleBlockStyles","UnpublishProcessDialogStyles","VDialogScrollableDialogStyles","WorkflowCompletedType"]},"./node_modules/@omnia/management-system/index.js":{"id":"c91869c1-7bd3-46b4-9e71-21d5b16a5460","buildMeta":{"exportsType":"namespace"},"expo.js":["ApprovalTaskService","BuiltInActionButtonHandlers","ContentBlockConfigurationFactory","CurrentProcessStore","DefaultDateFormat","DocumentConversionStore","DocumentLibrariesUrl","DocumentLibraryService","DocumentPropetiesStore","DocumentRollupSettingsProvider","DocumentService","DocumentSharePointFieldStore","DocumentTemplateService","DocumentTemplateStore","DocumentTypeService","DocumentTypeStore","DocumentsBlockDataSettingsKey","DrawingBlockConfigurationFactory","FabricShapeDataTypes","ImageFolders","ImageService","InternalOPMTopics","LibraryStore","LinksBlockConfigurationFactory","MoveProcessService","NewDocumentStore","ODMDocumentRollupDisplayFields","ODMFeatureIds","ODMFieldNameConstants","ODMRecentDocumentTypesLocalStorageKey","ODMUtils","OPMEnterprisePropertyInternalNames","OPMFeatureIds","OPMProcessProperty","OPMPublicTopics","OPMRouter","OPMSpecialRouteVersion","OPMUtils","OWA_QUERY_PARAMETER","OdmPublicTopics","PageRollupSettingsProvider","PagesBlockDataSettingsKey","PermissionService","ProcessDefaultData","ProcessDocumentRelationshipService","ProcessFeedbackService","ProcessLayoutBlockConfigurationFactory","ProcessNavigationConfigurationFactory","ProcessRendererOptions","ProcessRollupConstants","ProcessRollupService","ProcessService","ProcessStore","ProcessTableColumnsConstants","ProcessTaskProviderIds","ProcessTaskService","ProcessTemplateLayoutStore","ProcessTemplateService","ProcessTemplateStore","ProcessTypeService","ProcessTypeStore","PropertiesBlockConfigurationFactory","PublishDocumentService","QueryablePropertiesService","ReviewReminderTaskService","ReviewTaskService","RootProcessStepDesignerItemIds","Security","SettingsService","SettingsStore","ShapeDefinitionFactory","ShapeFactory","ShapeHighlightProperties","ShapeTemplateService","ShapeTemplateStore","ShapeTemplatesConstants","SharePointFieldsConstants","SharePointTaskService","SystemProcessProperties","TaskService","TasksBlockConfigurationFactory","TeamAppPropertyService","TextSpacingWithShape","TitleBlockConfigurationFactory","UserService","WebEmojiIcons"]}}}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { Future, GuidValue, IExtendApiManifestWithConfiguration, IIcon } from "@omnia/fx/models";
|
2
|
+
import { ControlledDocument } from "../../data";
|
3
|
+
export declare enum DocumentLibraryViewType {
|
4
|
+
Draft = "4074dea2-4159-422a-8c02-df6f273d3e5f"
|
5
|
+
}
|
6
|
+
export interface ICommandButtonComponent<T extends ICommandButton = ICommandButton> {
|
7
|
+
button: T;
|
8
|
+
}
|
9
|
+
export interface ICommandButton {
|
10
|
+
id: GuidValue;
|
11
|
+
title: string;
|
12
|
+
order: number;
|
13
|
+
icon?: IIcon;
|
14
|
+
disabled?: boolean;
|
15
|
+
hidden?: boolean;
|
16
|
+
onInit?: () => Future<void>;
|
17
|
+
onClicked?: (documents: ControlledDocument[]) => Future<void>;
|
18
|
+
componentManifestId?: GuidValue;
|
19
|
+
}
|
20
|
+
export interface IDraftViewCommandButton extends ICommandButton {
|
21
|
+
onSelectionChanged?: (documents: ControlledDocument[]) => Future<void>;
|
22
|
+
}
|
23
|
+
export interface IDocumentLibraryCommandButtonApi {
|
24
|
+
addDraftViewButton: (items: IDraftViewCommandButton) => void;
|
25
|
+
getCommandButtonsByType: (viewType: DocumentLibraryViewType) => Future<Array<ICommandButton>>;
|
26
|
+
}
|
27
|
+
declare module "../../../apis/index" {
|
28
|
+
interface IMSApi {
|
29
|
+
documentLibraryCommandButton: {
|
30
|
+
registration: Promise<IDocumentLibraryCommandButtonApi>;
|
31
|
+
};
|
32
|
+
}
|
33
|
+
interface IMSExtendApiManifest {
|
34
|
+
documentLibraryCommandButton: {
|
35
|
+
registration: IExtendApiManifestWithConfiguration<DocumentLibraryViewType>;
|
36
|
+
};
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DocumentLibraryViewType = void 0;
|
4
|
+
var DocumentLibraryViewType;
|
5
|
+
(function (DocumentLibraryViewType) {
|
6
|
+
DocumentLibraryViewType["Draft"] = "4074dea2-4159-422a-8c02-df6f273d3e5f";
|
7
|
+
})(DocumentLibraryViewType = exports.DocumentLibraryViewType || (exports.DocumentLibraryViewType = {}));
|
@@ -4,3 +4,4 @@ const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./DocumentLibraryDisplaySettings"), exports);
|
5
5
|
tslib_1.__exportStar(require("./DocumentLibrarySettings"), exports);
|
6
6
|
tslib_1.__exportStar(require("./DocumentLibraryViewSettings"), exports);
|
7
|
+
tslib_1.__exportStar(require("./DocumentLibraryCommandButtonApi"), exports);
|
@@ -6,6 +6,7 @@ export interface MSTeamsAppTabTargetControlIdentifier extends TargetControlIdent
|
|
6
6
|
channelId: string;
|
7
7
|
threadId: string;
|
8
8
|
tabId: string;
|
9
|
+
tabEntityId?: string;
|
9
10
|
appId: GuidValue;
|
10
11
|
}
|
11
12
|
export interface AppLayoutTargetControlIdentifier extends TargetControlIdentifier {
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { MultilingualString, GuidValue } from "@omnia/fx-models";
|
2
|
-
import { OmniaTheming } from "@omnia/fx/ux";
|
3
2
|
import { FabricShapeData } from "../../../processshape";
|
4
3
|
export declare enum ShapeDefinitionTypes {
|
5
4
|
Heading = 1,
|
@@ -19,10 +18,3 @@ export interface ShapeDefinition {
|
|
19
18
|
multilingualTitle?: string;
|
20
19
|
clonedNodes?: FabricShapeData[];
|
21
20
|
}
|
22
|
-
/**
|
23
|
-
* NOTE: whenever an new property is added in settings, we need to define its initial value in factory
|
24
|
-
* To ensure it fully react on view
|
25
|
-
* */
|
26
|
-
export declare const ShapeDefinitionFactory: {
|
27
|
-
createDefaultProcessTemplate(theming: OmniaTheming, type?: ShapeDefinitionTypes): ShapeDefinition;
|
28
|
-
};
|
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
const fx_models_1 = require("@omnia/fx-models");
|
5
|
-
const constants_1 = require("../../../constants");
|
6
|
-
const enums_1 = require("../enums");
|
3
|
+
exports.ShapeMovingDirection = exports.ShapeDefinitionTypes = void 0;
|
7
4
|
var ShapeDefinitionTypes;
|
8
5
|
(function (ShapeDefinitionTypes) {
|
9
6
|
ShapeDefinitionTypes[ShapeDefinitionTypes["Heading"] = 1] = "Heading";
|
@@ -17,31 +14,3 @@ var ShapeMovingDirection;
|
|
17
14
|
ShapeMovingDirection[ShapeMovingDirection["Left"] = 2] = "Left";
|
18
15
|
ShapeMovingDirection[ShapeMovingDirection["Right"] = 3] = "Right";
|
19
16
|
})(ShapeMovingDirection = exports.ShapeMovingDirection || (exports.ShapeMovingDirection = {}));
|
20
|
-
/**
|
21
|
-
* NOTE: whenever an new property is added in settings, we need to define its initial value in factory
|
22
|
-
* To ensure it fully react on view
|
23
|
-
* */
|
24
|
-
exports.ShapeDefinitionFactory = {
|
25
|
-
createDefaultProcessTemplate(theming, type) {
|
26
|
-
const shapeDefinition = {
|
27
|
-
type: type ? type : ShapeDefinitionTypes.Drawing,
|
28
|
-
title: { isMultilingualString: true },
|
29
|
-
id: fx_models_1.Guid.newGuid()
|
30
|
-
};
|
31
|
-
if (shapeDefinition.type == ShapeDefinitionTypes.Drawing) {
|
32
|
-
shapeDefinition.shapeTemplateId = constants_1.ShapeTemplatesConstants.Diamond.id;
|
33
|
-
shapeDefinition.shapeTemplateType = constants_1.ShapeTemplatesConstants.Diamond.settings.type;
|
34
|
-
shapeDefinition.title = constants_1.ShapeTemplatesConstants.Diamond.title;
|
35
|
-
shapeDefinition.fontSize = 20;
|
36
|
-
shapeDefinition.backgroundColor = theming.promoted.header.background.base;
|
37
|
-
shapeDefinition.textColor = theming.promoted.header.text.base;
|
38
|
-
shapeDefinition.width = 100;
|
39
|
-
shapeDefinition.height = 100;
|
40
|
-
shapeDefinition.textPosition = enums_1.TextPosition.On;
|
41
|
-
shapeDefinition.textAlignment = enums_1.TextAlignment.Center;
|
42
|
-
shapeDefinition.textHorizontalAdjustment = 0;
|
43
|
-
shapeDefinition.textVerticalAdjustment = 0;
|
44
|
-
}
|
45
|
-
return shapeDefinition;
|
46
|
-
}
|
47
|
-
};
|
@@ -9,10 +9,10 @@ export * from "./components";
|
|
9
9
|
export * from "./styles";
|
10
10
|
export * from "./shared";
|
11
11
|
export * from "./contexts";
|
12
|
-
export * from "./Constants";
|
13
12
|
export * from "./paging";
|
14
13
|
export * from "./richtexteditorextensions";
|
15
14
|
export * from "./mediapicker";
|
16
15
|
export * from "./graph";
|
17
16
|
export * from "./processtaskassignments";
|
18
17
|
export * from "./processstepstatuses";
|
18
|
+
export * from "./readreceiptsignoff";
|
@@ -13,10 +13,10 @@ tslib_1.__exportStar(require("./components"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./styles"), exports);
|
14
14
|
tslib_1.__exportStar(require("./shared"), exports);
|
15
15
|
tslib_1.__exportStar(require("./contexts"), exports);
|
16
|
-
tslib_1.__exportStar(require("./Constants"), exports);
|
17
16
|
tslib_1.__exportStar(require("./paging"), exports);
|
18
17
|
tslib_1.__exportStar(require("./richtexteditorextensions"), exports);
|
19
18
|
tslib_1.__exportStar(require("./mediapicker"), exports);
|
20
19
|
tslib_1.__exportStar(require("./graph"), exports);
|
21
20
|
tslib_1.__exportStar(require("./processtaskassignments"), exports);
|
22
21
|
tslib_1.__exportStar(require("./processstepstatuses"), exports);
|
22
|
+
tslib_1.__exportStar(require("./readreceiptsignoff"), exports);
|
package/internal-do-not-import-from-here/models/readreceiptsignoff/DocumentNotifiedPerson.d.ts
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
import { GuidValue, Identity } from "@omnia/fx-models";
|
2
|
+
import { ControlledDocument } from "..";
|
3
|
+
export interface DocumentNotifiedPerson {
|
4
|
+
id: GuidValue;
|
5
|
+
documentId: GuidValue;
|
6
|
+
identity: Identity;
|
7
|
+
isReadReceiptRequired: boolean;
|
8
|
+
oDMDocId: string;
|
9
|
+
edition: number;
|
10
|
+
isReadAndUnderstood: boolean;
|
11
|
+
publishedDocument: ControlledDocument;
|
12
|
+
}
|
13
|
+
export interface DocumentNotifiedPersonUI extends DocumentNotifiedPerson {
|
14
|
+
displayName: string;
|
15
|
+
userEmail: string;
|
16
|
+
}
|
package/internal-do-not-import-from-here/models/readreceiptsignoff/DocumentReadReceiptHistory.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
import { DocumentNotifiedPerson } from "./DocumentNotifiedPerson";
|
2
|
+
export interface DocumentReadReceiptsHistory {
|
3
|
+
edition: number;
|
4
|
+
published: Date;
|
5
|
+
isRequireReadReceipt: boolean;
|
6
|
+
notifiedUsers: Array<DocumentNotifiedPerson>;
|
7
|
+
numberOfSignedOffUsers: number;
|
8
|
+
title?: string;
|
9
|
+
}
|
package/internal-do-not-import-from-here/processshape/shapedefinitions/ShapeDefinitionData.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
import { OmniaTheming } from "@omnia/fx/ux";
|
2
|
+
import { ShapeDefinition, ShapeDefinitionTypes } from "../../models";
|
3
|
+
/**
|
4
|
+
* NOTE: whenever an new property is added in settings, we need to define its initial value in factory
|
5
|
+
* To ensure it fully react on view
|
6
|
+
* */
|
7
|
+
export declare const ShapeDefinitionFactory: {
|
8
|
+
createDefaultProcessTemplate(theming: OmniaTheming, type?: ShapeDefinitionTypes): ShapeDefinition;
|
9
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./ShapeDefinitionData";
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { GuidValue } from "@omnia/fx/models";
|
2
|
+
import { CreateDraftFromPublishedRequest, GetDocumentFieldsRequest, GetDraftDocumentAppendicesRequest, GetDocumentFieldsResponse, SharePointField, AppendixWithSharePointFields, ControlledDocument, SqlDocument, Enums, DocumentRequest, ProcessDocumentAndMergeTemplateRequest, PagingRequest, GetControlledDocumentsResponse, DocumentMetadataStatus, ProcessExistedDocumentAndMergeTemplateRequest, PublishedDocumentSharepointStatus, DocumentSharepointStatus, SharePointUser, SetNewReviewDateRequest, SetNewChangeCommentRequest } from "../../models";
|
3
|
+
export declare class DocumentService {
|
4
|
+
private httpClient;
|
5
|
+
constructor();
|
6
|
+
updateDocumentFields: (siteUrl: string, documentUrl: string, sharePointFields: Array<SharePointField>, isUpdateDocId: boolean, isUpdateDocStatus: boolean, odmDocId?: string, sqlDocumentId?: GuidValue, mergeSettings?: ProcessExistedDocumentAndMergeTemplateRequest) => Promise<string>;
|
7
|
+
updateDocumentFieldsStatus: (siteUrl: string, sqlId: GuidValue, odmDocId: string, documentTypeId: GuidValue) => Promise<SqlDocument>;
|
8
|
+
unlockFile: (webUrl: string, spDocumentId: number, sqlId: GuidValue) => Promise<boolean>;
|
9
|
+
getFileLockedByUser: (webUrl: string, spDocumentId: number) => Promise<SharePointUser>;
|
10
|
+
getDocumentFields: (request: GetDocumentFieldsRequest) => Promise<GetDocumentFieldsResponse>;
|
11
|
+
getDraftDocumentAppendices: (request: GetDraftDocumentAppendicesRequest) => Promise<AppendixWithSharePointFields[]>;
|
12
|
+
deleteDraftDocuments: (webUrl: string, spDocumentIds: Array<number>, sqlIds?: Array<GuidValue>) => Promise<void>;
|
13
|
+
deleteAppendixDocuments: (webUrl: string, spDocumentIds: Array<number>) => Promise<void>;
|
14
|
+
permanentlyDeleteDocuments: (webUrl: string, documentIds: Array<string>) => Promise<void>;
|
15
|
+
setStatusPermanentlyDeleteDocuments: (webUrl: string, documentIds: Array<string>) => Promise<Array<DocumentMetadataStatus>>;
|
16
|
+
deleteSignedDocuments: (spUrl: string, documentSpId: number, odmDocId: string) => Promise<void>;
|
17
|
+
createDraftDocumentFrompUnprocessedEdition: (request: CreateDraftFromPublishedRequest) => Promise<ControlledDocument>;
|
18
|
+
createDraftAndMergeTemplate: (request: ProcessDocumentAndMergeTemplateRequest) => Promise<void>;
|
19
|
+
mergeDraftWithTemplate: (request: ProcessExistedDocumentAndMergeTemplateRequest) => Promise<void>;
|
20
|
+
previewMergeWithTemplate: (request: ProcessDocumentAndMergeTemplateRequest) => Promise<void>;
|
21
|
+
copyDocumentsToAppendices: (webUrl: string, selectedDocuments: Array<ControlledDocument>, documentId: number, isOverwrite: boolean) => Promise<void>;
|
22
|
+
createDraftDocumentFrompNewUploadedFile: (file: File, fileName: string, odmDocId: string, edition: number, webUrl: string, isRestoring?: boolean) => Promise<void>;
|
23
|
+
getExistingDraftDocument: (odmDocId: string, webUrl: string) => Promise<ControlledDocument>;
|
24
|
+
getLatestPublishedDocument: (documentId: string, webUrl: string) => Promise<SqlDocument>;
|
25
|
+
getDocumentByDocIdNumber: (docIdNumber: number, webUrl: string) => Promise<ControlledDocument>;
|
26
|
+
deletePublishDocument: (odmDocId: string, odmDocIdNumber: number, webUrl: string, documentTypeId: string, comment: string) => Promise<boolean>;
|
27
|
+
getCurrentUserRolesOfListItems(request: DocumentRequest, library: string): Promise<{
|
28
|
+
[key: number]: Enums.DocumentViewEnums.DocumentRoles[];
|
29
|
+
}[]>;
|
30
|
+
getCurrentUserRolesOfList(webUrl: string, library: string): Promise<Enums.DocumentViewEnums.DocumentRoles[]>;
|
31
|
+
canCurrentUserEditLibraryDocument: (webUrl: string, libraryName: string) => Promise<boolean>;
|
32
|
+
getExpireReviewsDocuments: (request: PagingRequest) => Promise<GetControlledDocumentsResponse>;
|
33
|
+
getDocumentsStatus(request: {
|
34
|
+
[key: string]: GuidValue;
|
35
|
+
}, library: string): Promise<DocumentMetadataStatus[]>;
|
36
|
+
getRecycleBinDocumentsStatus(request: {
|
37
|
+
[key: string]: GuidValue;
|
38
|
+
}): Promise<DocumentMetadataStatus[]>;
|
39
|
+
getPublishedDocumentsSharepointStatus(request: {
|
40
|
+
[key: number]: number;
|
41
|
+
}, webUrl: string, library: string, loadAppendix: boolean, loadSignedDocument: boolean): Promise<PublishedDocumentSharepointStatus[]>;
|
42
|
+
getDocumentsSharepointStatus(request: Array<number>, webUrl: string, library: string): Promise<{
|
43
|
+
[key: number]: DocumentSharepointStatus;
|
44
|
+
}>;
|
45
|
+
getDocumentsTitle(request: Array<number>, webUrl: string, library: string): Promise<{
|
46
|
+
[key: number]: string;
|
47
|
+
}>;
|
48
|
+
updateBulkUpdateCache(webUrl: string): Promise<void>;
|
49
|
+
retoreDraftDocuments(documentIds: string[]): Promise<void>;
|
50
|
+
createDocumentComparison: (webUrl: string, odmDocId: string, leftSideEdition: number, rightSideEdition?: number, draftDocumentSpId?: number, comparisonId?: string, leftSideFileSuffix?: string, rightSideFileSuffix?: string) => Promise<string>;
|
51
|
+
getDocumentComparisonInfo: (comparisonId: string) => Promise<any>;
|
52
|
+
getDocumentComparisonViewUrl: (comparisonId: string, wait?: boolean) => Promise<any>;
|
53
|
+
deleteDocumentComparison: (comparisonId: string) => Promise<any>;
|
54
|
+
setNewReviewDate: (request: SetNewReviewDateRequest) => Promise<ControlledDocument>;
|
55
|
+
setNewChangeComment: (request: SetNewChangeCommentRequest) => Promise<void>;
|
56
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { DocumentTemplate, DocumentTemplateCategory, UploadedDocumentTemplateContent, DocumentTemplateContent } from "../../models";
|
2
|
+
export declare class DocumentTemplateService {
|
3
|
+
private multilingualStore;
|
4
|
+
private httpClient;
|
5
|
+
constructor();
|
6
|
+
getAllDocumentTemplates: () => Promise<DocumentTemplate[]>;
|
7
|
+
addOrUpdateDocumentTemplate: (documentTemplate: DocumentTemplate, files: {
|
8
|
+
[id: string]: File;
|
9
|
+
}) => Promise<DocumentTemplate>;
|
10
|
+
deleteDocumentTemplate: (documentTemplate: DocumentTemplate) => Promise<void>;
|
11
|
+
getAllDocumentTemplateCategories: () => Promise<DocumentTemplateCategory[]>;
|
12
|
+
addOrUpdateDocumentTemplateCategory: (documentTemplateCategory: DocumentTemplateCategory) => Promise<DocumentTemplateCategory>;
|
13
|
+
deleteDocumentTemplateCategory: (documentTemplateCategory: DocumentTemplateCategory) => Promise<void>;
|
14
|
+
private generateDocumentTemplatesMultilingualText;
|
15
|
+
private generateDocumentTemplateCategoriesMultilingualText;
|
16
|
+
getUploadedDocumentDownloadUrl: (content: UploadedDocumentTemplateContent) => string;
|
17
|
+
checkHeaderFooterHasShape: (template: DocumentTemplateContent) => Promise<boolean>;
|
18
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { GuidValue, Identity } from "@omnia/fx/models";
|
2
|
+
import { DocumentType } from "../../models";
|
3
|
+
export declare class DocumentTypeService {
|
4
|
+
private httpClient;
|
5
|
+
constructor();
|
6
|
+
refreshServerCache: () => Promise<void>;
|
7
|
+
getByIds: (ids: Array<GuidValue>) => Promise<Array<DocumentType>>;
|
8
|
+
getChildren: (parentId?: GuidValue) => Promise<Array<DocumentType>>;
|
9
|
+
getDocumentTypeTermSetId: () => Promise<GuidValue>;
|
10
|
+
create: (documentType: DocumentType) => Promise<DocumentType>;
|
11
|
+
update: (documentType: DocumentType) => Promise<DocumentType>;
|
12
|
+
remove: (id: GuidValue) => Promise<void>;
|
13
|
+
getUsersInApproverGroup: (docTypeId: GuidValue, webUrl: string) => Promise<Identity[]>;
|
14
|
+
getByDocumentTemplateId: (documentTemplateId: GuidValue) => Promise<Array<DocumentType>>;
|
15
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ApprovalTask, PublishDocumentWithApprovalRequest, Workflow } from "../../models";
|
2
|
+
export declare class ApprovalTaskService {
|
3
|
+
private httpClient;
|
4
|
+
private emptyHttpClient;
|
5
|
+
constructor();
|
6
|
+
getApprovalTaskById: (itemId: number, webUrl: string) => Promise<ApprovalTask>;
|
7
|
+
completeApprovalTask: (task: ApprovalTask) => Promise<string>;
|
8
|
+
cancelWorkflow: (documentReview: Workflow) => Promise<void>;
|
9
|
+
publishDocumentWithApproval: (request: PublishDocumentWithApprovalRequest) => Promise<void>;
|
10
|
+
processCompletingApprovalTask: (task: ApprovalTask) => Promise<void>;
|
11
|
+
processCancellingApprovalWorkflow: (approval: Workflow) => Promise<void>;
|
12
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { GuidValue } from "@omnia/fx/models";
|
2
|
+
import { MergeMetadataRequest, DocumentRequest, SharePointField, SPList, GetControlledDocumentsResponse, WorkflowHistory, SPSite } from "../../models";
|
3
|
+
export declare class DocumentLibraryService {
|
4
|
+
private httpClient;
|
5
|
+
private emptyHttpClient;
|
6
|
+
constructor();
|
7
|
+
filterDraftDocuments: (request: DocumentRequest, openInClientApp: boolean) => Promise<GetControlledDocumentsResponse>;
|
8
|
+
filterPublishedDocuments: (request: DocumentRequest, openInClientApp: boolean) => Promise<GetControlledDocumentsResponse>;
|
9
|
+
filterDeletedDocuments: (request: DocumentRequest) => Promise<GetControlledDocumentsResponse>;
|
10
|
+
getLibraryWithFields: (webUrl: string, listUrl: string) => Promise<SPList>;
|
11
|
+
getFilteringOptionsPage: (webUrl: string, listId: string, fieldName: string, viewId: string) => Promise<string>;
|
12
|
+
getNextTaxonomyFilteringHierarchy: (siteUrl: string, listId: string, fieldId: string, termId: string) => Promise<string>;
|
13
|
+
getRestOfFilteringHierarchy: (webUrl: string, listId: string, fieldId: string, termId: string) => Promise<string>;
|
14
|
+
getDisplayFieldsInList: (webUrl: string, listUrl: string) => Promise<SharePointField[]>;
|
15
|
+
getTestFile: () => Promise<void>;
|
16
|
+
mergeMetadataToDocument: (mergeRequest: MergeMetadataRequest, fileData: ArrayBuffer) => Promise<void>;
|
17
|
+
testConvertToPDF: () => Promise<void>;
|
18
|
+
getWorkflowHistories: (sqlId: GuidValue) => Promise<WorkflowHistory[]>;
|
19
|
+
isExistingDraftDocument: (webUrl: string, odmDocId: string) => Promise<boolean>;
|
20
|
+
resolveAuthoringSite: (webUrl: string) => Promise<SPSite>;
|
21
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { GuidValue } from "@omnia/fx/models";
|
2
|
+
import { DocumentNotifiedPerson, DocumentReadReceiptsHistory, Enums, PublishDocumentWithoutApprovalRequest, MoveDocumentToTargetSiteRequest, PreviewPublishedDocumentRequest } from "../../models";
|
3
|
+
export declare class PublishDocumentService {
|
4
|
+
private httpClient;
|
5
|
+
constructor();
|
6
|
+
fixPublishingFailedDocument: (webUrl: string, odmDocumentId: string, sqlId: GuidValue) => Promise<void>;
|
7
|
+
checkPrePublishCondition: (webUrl: string, spDocumentId: number, sqlId: GuidValue, status: Enums.DocumentViewEnums.LibraryDocumentStatus) => Promise<boolean>;
|
8
|
+
publishDocumentWithoutApproval: (request: PublishDocumentWithoutApprovalRequest) => Promise<void>;
|
9
|
+
previewPublishedDocument: (request: PreviewPublishedDocumentRequest) => Promise<void>;
|
10
|
+
getReadReceiptSignOffByOdmDocId: (odmDocId: string, webUrl: string) => Promise<DocumentNotifiedPerson>;
|
11
|
+
getReadReceiptHistory: (odmDocId: string, webUrl: string) => Promise<Array<DocumentReadReceiptsHistory>>;
|
12
|
+
setReadReceiptSignOffStatus: (id: GuidValue, isReadAndUnderstood: boolean) => Promise<void>;
|
13
|
+
setMovingToTargetSiteDocumentStatus: (sqlDocumentId: string, odmDocumentId: string, currentSiteUrl: string, targetSiteUrl: string) => Promise<Enums.DocumentViewEnums.LibraryDocumentStatus>;
|
14
|
+
movePageToTargetSite: (moveDocumentRequest: MoveDocumentToTargetSiteRequest) => Promise<void>;
|
15
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Workflow, ReviewTaskParams, ReviewTask, SqlDocument, SharePointUser, WorkflowTask } from "../../models";
|
2
|
+
export declare class ReviewTaskService {
|
3
|
+
private httpClient;
|
4
|
+
private emptyHttpClient;
|
5
|
+
constructor();
|
6
|
+
getReviewTaskById: (itemId: number, webUrl: string) => Promise<ReviewTask>;
|
7
|
+
completeReviewTask: (request: ReviewTaskParams) => Promise<string>;
|
8
|
+
processCompletingReviewTask: (task: ReviewTask) => Promise<void>;
|
9
|
+
getFileLockedByUserWhenTaskIsLastIncompleted: (task: ReviewTask) => Promise<SharePointUser>;
|
10
|
+
sendDocumentToReview: (params: ReviewTaskParams) => Promise<SqlDocument>;
|
11
|
+
processSendingDocumentToReview: (params: ReviewTaskParams) => Promise<void>;
|
12
|
+
addNewReviewer: (params: ReviewTaskParams) => Promise<WorkflowTask[]>;
|
13
|
+
forwardToReviewer: (params: ReviewTaskParams) => Promise<string>;
|
14
|
+
cancelReviewWorkflow: (documentReview: Workflow, spId: number, webUrl: string) => Promise<void>;
|
15
|
+
processCancellingReviewWorkflow: (documentReview: Workflow) => Promise<void>;
|
16
|
+
removeReviewTask: (task: ReviewTask) => Promise<boolean>;
|
17
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { GuidValue } from "@omnia/fx/models";
|
2
|
+
import { Workflow, DocumentTaskDetail, TaskRequest, TaskItemResponse, Enums } from "../../models";
|
3
|
+
export declare class TaskService {
|
4
|
+
private httpClient;
|
5
|
+
private emptyHttpClient;
|
6
|
+
constructor();
|
7
|
+
getFilterTasks: (request: TaskRequest) => Promise<TaskItemResponse>;
|
8
|
+
getTaskById: (webUrl: string, taskId: number) => Promise<DocumentTaskDetail>;
|
9
|
+
getDocumentWorkflow: (spDocumentId: number, sqlId: GuidValue, webUrl: string, workflowType?: Enums.DocumentViewEnums.WorkflowType) => Promise<Workflow>;
|
10
|
+
deleteTask: (webUrl: string, spId: number) => Promise<void>;
|
11
|
+
}
|
@@ -13,3 +13,6 @@ export * from "./MoveProcessService";
|
|
13
13
|
export * from "./ProcessFeedbackService";
|
14
14
|
export * from "./QueryablePropertiesService";
|
15
15
|
export * from "./ProcessTaskService";
|
16
|
+
export * from "./documentlibrary";
|
17
|
+
export * from "./document";
|
18
|
+
export * from "./UserService";
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Store } from "@omnia/fx/stores";
|
2
|
+
export declare class DocumentConversionStore extends Store {
|
3
|
+
private conversionSettingsPromise;
|
4
|
+
private supportCustomProvider;
|
5
|
+
getters: {
|
6
|
+
supportCustomProvider: () => boolean;
|
7
|
+
};
|
8
|
+
mutations: {};
|
9
|
+
actions: {
|
10
|
+
checkSupportCustomProvider: import("@omnia/fx/stores").StoreAction<unknown, (ensureFunc: Promise<boolean>) => void, (result: boolean, ensureFunc: Promise<boolean>) => void, (failureReason: any, ensureFunc: Promise<boolean>) => void, (ensureFunc: Promise<boolean>) => Promise<boolean>>;
|
11
|
+
};
|
12
|
+
onActivated(): void;
|
13
|
+
onDisposing(): void;
|
14
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { GuidValue } from "@omnia/fx-models";
|
2
|
+
import { Store } from "@omnia/fx/stores";
|
3
|
+
import { SharePointField } from "../../models";
|
4
|
+
import { DocumentSharePointFieldStore } from "./DocumentSharePointFieldStore";
|
5
|
+
/**
|
6
|
+
* The store is using for process document properties *
|
7
|
+
* */
|
8
|
+
export declare class DocumentPropetiesStore extends Store {
|
9
|
+
private enterprisePropertyStore;
|
10
|
+
private enterprisePropertySetStore;
|
11
|
+
private documentTypeStore;
|
12
|
+
documentSharePointFieldStore: DocumentSharePointFieldStore;
|
13
|
+
private teamworkContext;
|
14
|
+
private loadDocumentFieldsPromise;
|
15
|
+
private documentTypeField;
|
16
|
+
private documentTypeIdField;
|
17
|
+
private documentFields;
|
18
|
+
getters: {
|
19
|
+
documentFields: () => SharePointField[];
|
20
|
+
documentTypeFields: () => Array<SharePointField>;
|
21
|
+
};
|
22
|
+
mutations: {};
|
23
|
+
actions: {
|
24
|
+
ensureDocumentTypeFields: import("@omnia/fx/stores").StoreAction<unknown, (documentTypeId: GuidValue, fileUrl: string) => void, (result: void, documentTypeId: GuidValue, fileUrl: string) => void, (failureReason: any, documentTypeId: GuidValue, fileUrl: string) => void, (documentTypeId: GuidValue, fileUrl: string) => Promise<void>>;
|
25
|
+
ensureDocumentFields: import("@omnia/fx/stores").StoreAction<unknown, (...args: string[]) => void, (result: void, ...args: string[]) => void, (failureReason: any, ...args: string[]) => void, (...fileUrls: string[]) => Promise<void>>;
|
26
|
+
};
|
27
|
+
private ensureLoadDocumentFields;
|
28
|
+
private processDocumentFields;
|
29
|
+
private getDocumentFieldsInSet;
|
30
|
+
protected onActivated(): void;
|
31
|
+
protected onDisposing(): void;
|
32
|
+
}
|
package/internal-do-not-import-from-here/stores/documentlibrary/DocumentSharePointFieldStore.d.ts
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Store } from "@omnia/fx/stores";
|
2
|
+
import { GuidValue } from "@omnia/fx-models";
|
3
|
+
import { SharePointField } from "../../models";
|
4
|
+
export declare class DocumentSharePointFieldStore extends Store {
|
5
|
+
private documentService;
|
6
|
+
private enterprisePropertyStore;
|
7
|
+
private documents;
|
8
|
+
private SystemColumns;
|
9
|
+
getters: {
|
10
|
+
sharePointFields: (documentUrl: string) => SharePointField[];
|
11
|
+
existNotResolvedPersonFields: (documentUrl: any) => boolean;
|
12
|
+
cannotResolvePersonField: (documentUrl: string, id: GuidValue) => boolean;
|
13
|
+
generateEnterpriseKeywordsFields: (fields: Array<SharePointField>) => Array<SharePointField>;
|
14
|
+
existEnterpriseKeywordsFields: (fields: Array<string>) => boolean;
|
15
|
+
};
|
16
|
+
mutations: {};
|
17
|
+
actions: {
|
18
|
+
ensureDocumentSharePointFields: import("@omnia/fx/stores").StoreAction<unknown, (documentUrl: string, siteUrl: string) => void, (result: any, documentUrl: string, siteUrl: string) => void, (failureReason: any, documentUrl: string, siteUrl: string) => void, (documentUrl: string, siteUrl: string) => Promise<any>>;
|
19
|
+
};
|
20
|
+
protected onActivated(): void;
|
21
|
+
protected onDisposing(): void;
|
22
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { Store } from "@omnia/fx/stores";
|
2
|
+
import { DocumentTemplateCategory, DocumentTemplate, DocumentTemplateContent } from "../../models";
|
3
|
+
export declare class DocumentTemplateStore extends Store {
|
4
|
+
private documentTemplateSerivice;
|
5
|
+
private documentTemplates;
|
6
|
+
private documentTemplateCategories;
|
7
|
+
private ensureLoadDocumentTemplatesPromise;
|
8
|
+
private ensureLoadDocumentTemplateCategoriesPromise;
|
9
|
+
private checkingMergedTemplatePromises;
|
10
|
+
private templateContentValidChecking;
|
11
|
+
getters: {
|
12
|
+
documentTemplates: () => DocumentTemplate[];
|
13
|
+
documentTemplateCategories: () => DocumentTemplateCategory[];
|
14
|
+
getShapeInFooterHeaderChecking: (template: DocumentTemplateContent) => boolean;
|
15
|
+
};
|
16
|
+
private privateMutations;
|
17
|
+
actions: {
|
18
|
+
ensureLoadDocumentTemplates: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: null) => void, (failureReason: any) => void, () => Promise<null>>;
|
19
|
+
ensureLoadDocumentTemplateCategories: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: null) => void, (failureReason: any) => void, () => Promise<null>>;
|
20
|
+
addOrUpdateDocumentTemplate: import("@omnia/fx/stores").StoreAction<unknown, (documentTemplate: DocumentTemplate, files: {
|
21
|
+
[id: string]: File;
|
22
|
+
}) => void, (result: any, documentTemplate: DocumentTemplate, files: {
|
23
|
+
[id: string]: File;
|
24
|
+
}) => void, (failureReason: any, documentTemplate: DocumentTemplate, files: {
|
25
|
+
[id: string]: File;
|
26
|
+
}) => void, (documentTemplate: DocumentTemplate, files: {
|
27
|
+
[id: string]: File;
|
28
|
+
}) => Promise<any>>;
|
29
|
+
addOrUpdateDocumentTemplateCategory: import("@omnia/fx/stores").StoreAction<unknown, (documentTemplateCategory: DocumentTemplateCategory) => void, (result: any, documentTemplateCategory: DocumentTemplateCategory) => void, (failureReason: any, documentTemplateCategory: DocumentTemplateCategory) => void, (documentTemplateCategory: DocumentTemplateCategory) => Promise<any>>;
|
30
|
+
deleteDocumentTemplate: import("@omnia/fx/stores").StoreAction<unknown, (documentTemplate: DocumentTemplate) => void, (result: any, documentTemplate: DocumentTemplate) => void, (failureReason: any, documentTemplate: DocumentTemplate) => void, (documentTemplate: DocumentTemplate) => Promise<any>>;
|
31
|
+
deleteDocumentTemplateCategory: import("@omnia/fx/stores").StoreAction<unknown, (documentTemplateCategory: DocumentTemplateCategory) => void, (result: any, documentTemplateCategory: DocumentTemplateCategory) => void, (failureReason: any, documentTemplateCategory: DocumentTemplateCategory) => void, (documentTemplateCategory: DocumentTemplateCategory) => Promise<any>>;
|
32
|
+
ensureCheckingTemplates: import("@omnia/fx/stores").StoreAction<unknown, (template: DocumentTemplateContent) => void, (result: void, template: DocumentTemplateContent) => void, (failureReason: any, template: DocumentTemplateContent) => void, (template: DocumentTemplateContent) => Promise<void>>;
|
33
|
+
};
|
34
|
+
protected onActivated(): void;
|
35
|
+
protected onDisposing(): void;
|
36
|
+
private getTemplateKey;
|
37
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { Store } from "@omnia/fx/stores";
|
2
|
+
import { GuidValue } from "@omnia/fx-models";
|
3
|
+
import { DocumentType } from "../../models";
|
4
|
+
export declare class DocumentTypeStore extends Store {
|
5
|
+
private documentTypeService;
|
6
|
+
private termStore;
|
7
|
+
private multilingualTextsStore;
|
8
|
+
private ensuredChildrenPromises;
|
9
|
+
private ensuredDocumentTypePromises;
|
10
|
+
private refreshCachePromises;
|
11
|
+
private ensureRootDocumentTypePromise;
|
12
|
+
private documentTypeTermSetId;
|
13
|
+
private documentTypes;
|
14
|
+
private documentTypesDict;
|
15
|
+
private documentTypesByDocumentTemplateDict;
|
16
|
+
private loadByDocumentTemplatesPromises;
|
17
|
+
getters: {
|
18
|
+
children: (parentId?: GuidValue, includeInvalid?: boolean) => Array<DocumentType>;
|
19
|
+
byId: (id: GuidValue, includeInvalid?: boolean) => DocumentType;
|
20
|
+
rootDocumentTypeInGlobalSettings: () => DocumentType;
|
21
|
+
SeachTypebyName: (search: string, language: string) => Array<DocumentType>;
|
22
|
+
documentTypesByDocumentTemplate: (documentTemplateId: GuidValue) => Array<DocumentType>;
|
23
|
+
};
|
24
|
+
private isValidDocumentType;
|
25
|
+
private privateMutations;
|
26
|
+
private sortByChildrenOrders;
|
27
|
+
private ensureChildren;
|
28
|
+
actions: {
|
29
|
+
ensureRootDocumentType: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: null) => void, (failureReason: any) => void, () => Promise<null>>;
|
30
|
+
ensureChildren: import("@omnia/fx/stores").StoreAction<unknown, (parentId?: GuidValue, moving?: boolean) => void, (result: null, parentId?: GuidValue, moving?: boolean) => void, (failureReason: any, parentId?: GuidValue, moving?: boolean) => void, (parentId?: GuidValue, moving?: boolean) => Promise<null>>;
|
31
|
+
createDocumentType: import("@omnia/fx/stores").StoreAction<unknown, (documentType: DocumentType) => void, (result: DocumentType, documentType: DocumentType) => void, (failureReason: any, documentType: DocumentType) => void, (documentType: DocumentType) => Promise<DocumentType>>;
|
32
|
+
updateDocumentType: import("@omnia/fx/stores").StoreAction<unknown, (documentType: DocumentType) => void, (result: DocumentType, documentType: DocumentType) => void, (failureReason: any, documentType: DocumentType) => void, (documentType: DocumentType) => Promise<DocumentType>>;
|
33
|
+
removeDocumentType: import("@omnia/fx/stores").StoreAction<unknown, (documentType: DocumentType) => void, (result: any, documentType: DocumentType) => void, (failureReason: any, documentType: DocumentType) => void, (documentType: DocumentType) => Promise<any>>;
|
34
|
+
ensureDocumentTypes: import("@omnia/fx/stores").StoreAction<unknown, (documentTypeIds: GuidValue[]) => void, (result: any, documentTypeIds: GuidValue[]) => void, (failureReason: any, documentTypeIds: GuidValue[]) => void, (documentTypeIds: Array<GuidValue>) => Promise<any>>;
|
35
|
+
refreshCache: import("@omnia/fx/stores").StoreAction<unknown, (trackingNumber: number) => void, (result: null, trackingNumber: number) => void, (failureReason: any, trackingNumber: number) => void, (trackingNumber: number) => Promise<null>>;
|
36
|
+
ensureDocumentTypeByDocumentTemplate: import("@omnia/fx/stores").StoreAction<unknown, (documentTemplateId: GuidValue) => void, (result: DocumentType[], documentTemplateId: GuidValue) => void, (failureReason: any, documentTemplateId: GuidValue) => void, (documentTemplateId: GuidValue) => Promise<DocumentType[]>>;
|
37
|
+
};
|
38
|
+
private isRootParentId;
|
39
|
+
private getParentId;
|
40
|
+
protected onActivated(): void;
|
41
|
+
protected onDisposing(): void;
|
42
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { Store } from "@omnia/fx/stores";
|
2
|
+
import { GuidValue } from "@omnia/fx-models";
|
3
|
+
import { Enums, SharePointField, DocumentMetadataStatus, ProcessExistedDocumentAndMergeTemplateRequest, DocumentSharepointStatus, PublishedDocumentSharepointStatus } from "../../models";
|
4
|
+
import { NewDocumentStore } from "./NewDocumentStore";
|
5
|
+
import { DocumentPropetiesStore } from "./DocumentPropetiesStore";
|
6
|
+
import { DocumentService } from "../../services";
|
7
|
+
export declare class LibraryStore extends Store {
|
8
|
+
documentService: DocumentService;
|
9
|
+
private teamworkContext;
|
10
|
+
newDocumentStore: NewDocumentStore;
|
11
|
+
documentPropetiesStore: DocumentPropetiesStore;
|
12
|
+
private isLoadingDraft;
|
13
|
+
private isLoadingPublished;
|
14
|
+
private isLoadingRecycleBin;
|
15
|
+
private listItemsUserRoles;
|
16
|
+
private publishedLibraryUserRoles;
|
17
|
+
private ensureUpdatePropertiesPromises;
|
18
|
+
private publishDocumentPromises;
|
19
|
+
private creatingDraftPromises;
|
20
|
+
private documentStatusPromises;
|
21
|
+
private documentSharepointStatusPromises;
|
22
|
+
private documentsTitlePromises;
|
23
|
+
getters: {
|
24
|
+
isLoadingDraft: () => boolean;
|
25
|
+
isLoadingPublished: () => boolean;
|
26
|
+
isLoadingRecycleBin: () => boolean;
|
27
|
+
listItemsUserRoles: (library: string, id: number) => {
|
28
|
+
[key: string]: Enums.DocumentViewEnums.DocumentRoles[];
|
29
|
+
}[];
|
30
|
+
publishedLibraryUserRoles: () => Array<Enums.DocumentViewEnums.DocumentRoles>;
|
31
|
+
getDocumentStatus: (documents: Array<DocumentMetadataStatus>, siteUrl: string) => Array<DocumentMetadataStatus>;
|
32
|
+
isCreatingDraftStatus: (key: string) => boolean;
|
33
|
+
isPublishingDocument: (sqlId: GuidValue, spWebUrl: string) => boolean;
|
34
|
+
};
|
35
|
+
mutations: {
|
36
|
+
setLoading: import("@omnia/fx/stores").StoreMutation<(isLoading: boolean, lib: string, siteUrl: string) => void, (isLoading: boolean, lib: string, siteUrl: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
37
|
+
setListItemsUserRoles: import("@omnia/fx/stores").StoreMutation<(library: string, ids: number[], userRoles: {
|
38
|
+
[id: number]: Enums.DocumentViewEnums.DocumentRoles[];
|
39
|
+
}[]) => void, (library: string, ids: number[], userRoles: {
|
40
|
+
[id: number]: Enums.DocumentViewEnums.DocumentRoles[];
|
41
|
+
}[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
42
|
+
setPublishedLibraryUserRoles: import("@omnia/fx/stores").StoreMutation<(userRoles: Array<Enums.DocumentViewEnums.DocumentRoles>) => void, (userRoles: Enums.DocumentViewEnums.DocumentRoles[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
43
|
+
forceReloadDocumentStatus: import("@omnia/fx/stores").StoreMutation<(lib: string, siteUrl: string) => void, (lib: string, siteUrl: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
44
|
+
forceReloadDocument: import("@omnia/fx/stores").StoreMutation<(lib: string, siteUrl: string, sqlId: GuidValue) => void, (lib: string, siteUrl: string, sqlId: GuidValue) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
45
|
+
updatePublishPromises: import("@omnia/fx/stores").StoreMutation<(sqlId: GuidValue, siteUrl: string, value: Enums.DocumentViewEnums.LibraryDocumentStatus) => void, (sqlId: GuidValue, siteUrl: string, value: Enums.DocumentViewEnums.LibraryDocumentStatus) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
46
|
+
updateCreatingDraftPromises: import("@omnia/fx/stores").StoreMutation<(id: string, value: Enums.DocumentViewEnums.LibraryDocumentStatus, msg?: string) => void, (id: string, value: Enums.DocumentViewEnums.LibraryDocumentStatus, msg?: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
47
|
+
clearPublishDocumentPromises: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
48
|
+
resetDocumentStatusPromises: import("@omnia/fx/stores").StoreMutation<(url: string, libraryName: string) => void, (url: string, libraryName: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
49
|
+
};
|
50
|
+
actions: {
|
51
|
+
ensureUpdateDocumentProperties: import("@omnia/fx/stores").StoreAction<unknown, (absoluteUrl: string, fileUrl: string, fields: SharePointField[], documentTypeFields: SharePointField[], odmDocId: string, sqlId: GuidValue, isUpdateDocStatus: boolean, forceRefresh?: boolean, mergeSettings?: ProcessExistedDocumentAndMergeTemplateRequest) => void, (result: string, absoluteUrl: string, fileUrl: string, fields: SharePointField[], documentTypeFields: SharePointField[], odmDocId: string, sqlId: GuidValue, isUpdateDocStatus: boolean, forceRefresh?: boolean, mergeSettings?: ProcessExistedDocumentAndMergeTemplateRequest) => void, (failureReason: any, absoluteUrl: string, fileUrl: string, fields: SharePointField[], documentTypeFields: SharePointField[], odmDocId: string, sqlId: GuidValue, isUpdateDocStatus: boolean, forceRefresh?: boolean, mergeSettings?: ProcessExistedDocumentAndMergeTemplateRequest) => void, (absoluteUrl: string, fileUrl: string, fields: SharePointField[], documentTypeFields: SharePointField[], odmDocId: string, sqlId: GuidValue, isUpdateDocStatus: boolean, forceRefresh?: boolean, mergeSettings?: ProcessExistedDocumentAndMergeTemplateRequest) => Promise<string>>;
|
52
|
+
ensureDocumentStatus: import("@omnia/fx/stores").StoreAction<unknown, (url: string, params: {
|
53
|
+
[key: string]: GuidValue;
|
54
|
+
}, libraryName: string) => void, (result: DocumentMetadataStatus[], url: string, params: {
|
55
|
+
[key: string]: GuidValue;
|
56
|
+
}, libraryName: string) => void, (failureReason: any, url: string, params: {
|
57
|
+
[key: string]: GuidValue;
|
58
|
+
}, libraryName: string) => void, (url: string, params: {
|
59
|
+
[key: string]: GuidValue;
|
60
|
+
}, libraryName: string) => Promise<DocumentMetadataStatus[]>>;
|
61
|
+
ensureDocumentSharepointStatus: import("@omnia/fx/stores").StoreAction<unknown, (url: string, params: number[], libraryName: string) => void, (result: {
|
62
|
+
[key: number]: DocumentSharepointStatus;
|
63
|
+
}, url: string, params: number[], libraryName: string) => void, (failureReason: any, url: string, params: number[], libraryName: string) => void, (url: string, params: Array<number>, libraryName: string) => Promise<{
|
64
|
+
[key: number]: DocumentSharepointStatus;
|
65
|
+
}>>;
|
66
|
+
ensureDocumentTitleStatus: import("@omnia/fx/stores").StoreAction<unknown, (url: string, params: number[], libraryName: string) => void, (result: {
|
67
|
+
[key: number]: string;
|
68
|
+
}, url: string, params: number[], libraryName: string) => void, (failureReason: any, url: string, params: number[], libraryName: string) => void, (url: string, params: Array<number>, libraryName: string) => Promise<{
|
69
|
+
[key: number]: string;
|
70
|
+
}>>;
|
71
|
+
ensurePublishedDocumentSharepointStatus: import("@omnia/fx/stores").StoreAction<unknown, (url: string, params: {
|
72
|
+
[key: number]: number;
|
73
|
+
}, libraryName: string, loadAppendix: boolean, loadSignedDocument: boolean) => void, (result: PublishedDocumentSharepointStatus[], url: string, params: {
|
74
|
+
[key: number]: number;
|
75
|
+
}, libraryName: string, loadAppendix: boolean, loadSignedDocument: boolean) => void, (failureReason: any, url: string, params: {
|
76
|
+
[key: number]: number;
|
77
|
+
}, libraryName: string, loadAppendix: boolean, loadSignedDocument: boolean) => void, (url: string, params: {
|
78
|
+
[key: number]: number;
|
79
|
+
}, libraryName: string, loadAppendix: boolean, loadSignedDocument: boolean) => Promise<PublishedDocumentSharepointStatus[]>>;
|
80
|
+
ensureRetoreDraftDocuments: import("@omnia/fx/stores").StoreAction<unknown, (documentIds: string[]) => void, (result: void, documentIds: string[]) => void, (failureReason: any, documentIds: string[]) => void, (documentIds: string[]) => Promise<void>>;
|
81
|
+
};
|
82
|
+
private getUserRolesKey;
|
83
|
+
protected onActivated(): void;
|
84
|
+
protected onDisposing(): void;
|
85
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { Store } from "@omnia/fx/stores";
|
2
|
+
import { GuidValue } from "@omnia/fx-models";
|
3
|
+
import { SharePointField } from "../../models";
|
4
|
+
/**
|
5
|
+
* The store is using for sharing data between tabs
|
6
|
+
* And we don't cache data here, we reload the latest document value everytime
|
7
|
+
*
|
8
|
+
* */
|
9
|
+
export declare class NewDocumentStore extends Store {
|
10
|
+
private enterprisePropertyStore;
|
11
|
+
private enterprisePropertySetStore;
|
12
|
+
private teamAppPropertyService;
|
13
|
+
private documentTypeStore;
|
14
|
+
private documentTypeId;
|
15
|
+
private fields;
|
16
|
+
private loadSiteFieldsPromise;
|
17
|
+
getters: {
|
18
|
+
fields: () => SharePointField[];
|
19
|
+
documentTypeId: () => GuidValue;
|
20
|
+
};
|
21
|
+
mutations: {
|
22
|
+
setCurrentDocument: import("@omnia/fx/stores").StoreMutation<(fields: Array<SharePointField>) => void, (fields: SharePointField[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
23
|
+
updateDocumentTypeId: import("@omnia/fx/stores").StoreMutation<(id: GuidValue) => void, (id: GuidValue) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
24
|
+
};
|
25
|
+
actions: {
|
26
|
+
ensureLoadFields: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
27
|
+
};
|
28
|
+
private getDocumentFieldsInSet;
|
29
|
+
private mergeDefaultValue;
|
30
|
+
private prepareDefaultValues;
|
31
|
+
private getSharePointFieldWithFromSiteDefaultValue;
|
32
|
+
private getSharePointFieldWithFixedDefaultValue;
|
33
|
+
private ensureLoadSitePropertiesFields;
|
34
|
+
protected onActivated(): void;
|
35
|
+
protected onDisposing(): void;
|
36
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export * from "./DocumentTypeStore";
|
2
|
+
export * from "./LibraryStore";
|
3
|
+
export * from "./DocumentSharePointFieldStore";
|
4
|
+
export * from "./DocumentTemplateStore";
|
5
|
+
export * from "./NewDocumentStore";
|
6
|
+
export * from "./DocumentPropetiesStore";
|
7
|
+
export * from "./DocumentConversionStore";
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { ProcessStep, Process, ProcessReference, RootProcessStep, InternalProcessStep, DrawingShapeDefinition } from "
|
1
|
+
import { ProcessStep, Process, ProcessReference, RootProcessStep, InternalProcessStep, DrawingShapeDefinition } from "./models";
|
2
2
|
import { GuidValue } from "@omnia/fx-models";
|
3
3
|
import { MultilingualStore } from "@omnia/fx/stores";
|
4
4
|
import { MultilingualString } from "@omnia/fx/models";
|
5
|
+
import { RecentDocumentType } from "../models";
|
5
6
|
export declare module OPMUtils {
|
6
7
|
function generateProcessStepExpandState(processStep: RootProcessStep, processStepId: GuidValue): {
|
7
8
|
[processStepId: string]: true;
|
@@ -26,4 +27,16 @@ export declare module OPMUtils {
|
|
26
27
|
function parentFrameIsMsTeams(): boolean;
|
27
28
|
function IsOpenEditorPreview(): boolean;
|
28
29
|
function buildContextIdentifier(appId: GuidValue, processRoute: string): string;
|
30
|
+
function getMaximumLengthOfMultilingualString(multilingualString: MultilingualString): number;
|
31
|
+
}
|
32
|
+
export declare module ODMUtils {
|
33
|
+
function orderBy(input: any, [config]: [string?]): any;
|
34
|
+
function getOfficeClientPrefix(extension: string): string;
|
35
|
+
function addOfficeClientPrefix(url: string): string;
|
36
|
+
function saveRecentDocumentType(documentTypeId: GuidValue): void;
|
37
|
+
function getRecentDocumentTypes(): Array<RecentDocumentType>;
|
38
|
+
function isSupportedByOfficeWebApp(fileExtension: string): boolean;
|
39
|
+
function isSupportedByOfficeWebAppWithMsTeams(fileExtension: string): boolean;
|
40
|
+
function correctDateOnlyValue(dateValue: any): Date;
|
41
|
+
function isAllowedToConvertToPDF(fileExtension: string): boolean;
|
29
42
|
}
|
package/package.json
CHANGED
@@ -1,33 +0,0 @@
|
|
1
|
-
export declare const OPMEnterprisePropertyInternalNames: {
|
2
|
-
readonly OPMEdition: string;
|
3
|
-
readonly OPMRevision: string;
|
4
|
-
readonly OPMProcessType: string;
|
5
|
-
readonly OPMProcessIdNumber: string;
|
6
|
-
readonly OPMPublished: string;
|
7
|
-
readonly OPMApprovedBy: string;
|
8
|
-
readonly OPMIsArchived: string;
|
9
|
-
readonly OPMIsPublished: string;
|
10
|
-
};
|
11
|
-
export declare const OPMProcessProperty: {
|
12
|
-
readonly Id: string;
|
13
|
-
};
|
14
|
-
export declare module Security {
|
15
|
-
const OPMRoleDefinitions: {
|
16
|
-
readonly Author: string;
|
17
|
-
readonly Reader: string;
|
18
|
-
readonly Approver: string;
|
19
|
-
readonly Reviewer: string;
|
20
|
-
};
|
21
|
-
const OPMResourceEvaluators: {
|
22
|
-
readonly SecurityResourceIdResource: string;
|
23
|
-
readonly OPMProcessIdResource: string;
|
24
|
-
};
|
25
|
-
const Parameters: {
|
26
|
-
readonly OPMProcessId: string;
|
27
|
-
readonly SecurityResourceId: string;
|
28
|
-
};
|
29
|
-
const ODMRoleDefinitions: {
|
30
|
-
readonly AppInstanceAuthor: string;
|
31
|
-
readonly AppInstanceReader: string;
|
32
|
-
};
|
33
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Security = exports.OPMProcessProperty = exports.OPMEnterprisePropertyInternalNames = void 0;
|
4
|
-
exports.OPMEnterprisePropertyInternalNames = {
|
5
|
-
get OPMEdition() { return "OPMEdition"; },
|
6
|
-
get OPMRevision() { return "OPMRevision"; },
|
7
|
-
get OPMProcessType() { return "OPMProcessType"; },
|
8
|
-
get OPMProcessIdNumber() { return "OPMProcessIdNumber"; },
|
9
|
-
get OPMPublished() { return "OPMPublished"; },
|
10
|
-
get OPMApprovedBy() { return "OPMApprovedBy"; },
|
11
|
-
get OPMIsArchived() { return "OPMIsArchived"; },
|
12
|
-
get OPMIsPublished() { return "OPMIsPublished"; }
|
13
|
-
};
|
14
|
-
exports.OPMProcessProperty = {
|
15
|
-
get Id() { return "7491ec1a-9cf5-4c49-b102-2f84f89795eb"; }
|
16
|
-
};
|
17
|
-
var Security;
|
18
|
-
(function (Security) {
|
19
|
-
Security.OPMRoleDefinitions = {
|
20
|
-
get Author() { return "f412d0be-16e8-4fc2-80cf-dca39a265a08"; },
|
21
|
-
get Reader() { return "38c86dbf-44a2-45c4-b370-2c1cabea954c"; },
|
22
|
-
get Approver() { return "22672fb9-e62f-470c-a68d-77ae03a5115d"; },
|
23
|
-
get Reviewer() { return "89e89b72-a75c-41d2-8303-b83800980faa"; }
|
24
|
-
};
|
25
|
-
Security.OPMResourceEvaluators = {
|
26
|
-
get SecurityResourceIdResource() { return "Omnia.ManagementSystem.Web.Security.ResourceEvaluators.ISecurityResourceIdResourceEvaluator"; },
|
27
|
-
get OPMProcessIdResource() { return "Omnia.ManagementSystem.Web.Security.ResourceEvaluators.IOPMProcessIdResourceEvaluator"; }
|
28
|
-
};
|
29
|
-
Security.Parameters = {
|
30
|
-
get OPMProcessId() { return "opmProcessId"; },
|
31
|
-
get SecurityResourceId() { return "opmSecurityResourceId"; }
|
32
|
-
};
|
33
|
-
Security.ODMRoleDefinitions = {
|
34
|
-
get AppInstanceAuthor() { return "86c0c947-91e5-45aa-b85e-4ea8a9a31b07"; },
|
35
|
-
get AppInstanceReader() { return "cde81de4-58b0-4fe5-a45f-ed66138cb64c"; }
|
36
|
-
};
|
37
|
-
})(Security = exports.Security || (exports.Security = {}));
|