@alfresco/adf-process-services 8.6.0-27406412358 → 9.0.0

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 (130) hide show
  1. package/fesm2022/adf-process-services.mjs +704 -771
  2. package/fesm2022/adf-process-services.mjs.map +1 -1
  3. package/index.d.ts +4486 -3
  4. package/lib/form/widgets/dropdown/dropdown.widget.scss +6 -0
  5. package/lib/form/widgets/functional-group/functional-group.widget.scss +6 -0
  6. package/lib/form/widgets/people/people.widget.scss +6 -0
  7. package/lib/form/widgets/typeahead/typeahead.widget.scss +6 -0
  8. package/lib/styles/_mixins.scss +7 -0
  9. package/lib/task-list/components/start-task/start-task.component.scss +5 -5
  10. package/package.json +14 -14
  11. package/lib/app-list/apps-list.component.d.ts +0 -91
  12. package/lib/app-list/icon.model.d.ts +0 -27
  13. package/lib/app-list/index.d.ts +0 -17
  14. package/lib/app-list/public-api.d.ts +0 -22
  15. package/lib/app-list/select-apps-dialog/select-apps-dialog.component.d.ts +0 -13
  16. package/lib/attachment/create-process-attachment/create-process-attachment.component.d.ts +0 -38
  17. package/lib/attachment/create-task-attachment/create-task-attachment.component.d.ts +0 -38
  18. package/lib/attachment/index.d.ts +0 -17
  19. package/lib/attachment/process-attachment-list/process-attachment-list.component.d.ts +0 -64
  20. package/lib/attachment/public-api.d.ts +0 -25
  21. package/lib/attachment/task-attachment-list/task-attachment-list.component.d.ts +0 -60
  22. package/lib/compat/types.d.ts +0 -31
  23. package/lib/form/events/validate-dynamic-table-row.event.d.ts +0 -25
  24. package/lib/form/form-custom-outcomes.component.d.ts +0 -5
  25. package/lib/form/form-list/form-list.component.d.ts +0 -29
  26. package/lib/form/form.component.d.ts +0 -109
  27. package/lib/form/index.d.ts +0 -17
  28. package/lib/form/model/form-definition.model.d.ts +0 -25
  29. package/lib/form/process-form-rendering.service.d.ts +0 -7
  30. package/lib/form/public-api.d.ts +0 -27
  31. package/lib/form/services/activiti-alfresco.service.d.ts +0 -41
  32. package/lib/form/services/ecm-model.service.d.ts +0 -30
  33. package/lib/form/services/editor.service.d.ts +0 -41
  34. package/lib/form/services/external-alfresco-api.service.d.ts +0 -9
  35. package/lib/form/services/index.d.ts +0 -25
  36. package/lib/form/services/model.service.d.ts +0 -59
  37. package/lib/form/services/process-content.service.d.ts +0 -132
  38. package/lib/form/services/process-definition.service.d.ts +0 -44
  39. package/lib/form/services/task-form.service.d.ts +0 -69
  40. package/lib/form/services/task.service.d.ts +0 -32
  41. package/lib/form/start-form/start-form.component.d.ts +0 -50
  42. package/lib/form/widgets/content-widget/attach-file-widget-dialog-component.interface.d.ts +0 -31
  43. package/lib/form/widgets/content-widget/attach-file-widget-dialog.component.d.ts +0 -48
  44. package/lib/form/widgets/content-widget/attach-file-widget-dialog.service.d.ts +0 -47
  45. package/lib/form/widgets/content-widget/attach-file-widget.component.d.ts +0 -64
  46. package/lib/form/widgets/content-widget/attach-folder-widget.component.d.ts +0 -33
  47. package/lib/form/widgets/content-widget/index.d.ts +0 -17
  48. package/lib/form/widgets/content-widget/public-api.d.ts +0 -21
  49. package/lib/form/widgets/document/content.widget.d.ts +0 -50
  50. package/lib/form/widgets/document/document.widget.d.ts +0 -26
  51. package/lib/form/widgets/dropdown/dropdown.widget.d.ts +0 -48
  52. package/lib/form/widgets/dynamic-table/dynamic-table.widget.d.ts +0 -51
  53. package/lib/form/widgets/dynamic-table/editors/amount/amount.editor.d.ts +0 -31
  54. package/lib/form/widgets/dynamic-table/editors/boolean/boolean.editor.d.ts +0 -12
  55. package/lib/form/widgets/dynamic-table/editors/date/date.editor.d.ts +0 -20
  56. package/lib/form/widgets/dynamic-table/editors/datetime/datetime.editor.d.ts +0 -20
  57. package/lib/form/widgets/dynamic-table/editors/dropdown/dropdown.editor.d.ts +0 -39
  58. package/lib/form/widgets/dynamic-table/editors/models/cell-validator.model.d.ts +0 -23
  59. package/lib/form/widgets/dynamic-table/editors/models/date-cell-validator-model.d.ts +0 -26
  60. package/lib/form/widgets/dynamic-table/editors/models/dynamic-row-validation-summary.model.d.ts +0 -21
  61. package/lib/form/widgets/dynamic-table/editors/models/dynamic-table-column-option.model.d.ts +0 -20
  62. package/lib/form/widgets/dynamic-table/editors/models/dynamic-table-column.model.d.ts +0 -37
  63. package/lib/form/widgets/dynamic-table/editors/models/dynamic-table-row.model.d.ts +0 -21
  64. package/lib/form/widgets/dynamic-table/editors/models/dynamic-table.widget.model.d.ts +0 -40
  65. package/lib/form/widgets/dynamic-table/editors/models/number-cell-validator.model.d.ts +0 -26
  66. package/lib/form/widgets/dynamic-table/editors/models/required-cell-validator.model.d.ts +0 -25
  67. package/lib/form/widgets/dynamic-table/editors/row-editor/row.editor.d.ts +0 -42
  68. package/lib/form/widgets/dynamic-table/editors/text/text.editor.d.ts +0 -31
  69. package/lib/form/widgets/dynamic-table/index.d.ts +0 -17
  70. package/lib/form/widgets/dynamic-table/public-api.d.ts +0 -34
  71. package/lib/form/widgets/file-viewer/file-viewer.widget.d.ts +0 -22
  72. package/lib/form/widgets/functional-group/functional-group.widget.d.ts +0 -40
  73. package/lib/form/widgets/index.d.ts +0 -17
  74. package/lib/form/widgets/people/people.widget.d.ts +0 -44
  75. package/lib/form/widgets/public-api.d.ts +0 -31
  76. package/lib/form/widgets/radio-buttons/radio-buttons.widget.d.ts +0 -33
  77. package/lib/form/widgets/typeahead/typeahead.widget.d.ts +0 -39
  78. package/lib/form/widgets/upload/upload.widget.d.ts +0 -39
  79. package/lib/people/components/people/people.component.d.ts +0 -50
  80. package/lib/people/components/people-list/people-list.component.d.ts +0 -42
  81. package/lib/people/components/people-search/people-search.component.d.ts +0 -44
  82. package/lib/people/components/people-search-field/people-search-field.component.d.ts +0 -25
  83. package/lib/people/components/people-selector/people-selector.component.d.ts +0 -40
  84. package/lib/people/helpers/get-display-user.d.ts +0 -17
  85. package/lib/people/index.d.ts +0 -17
  86. package/lib/people/interfaces/perform-search-callback.interface.d.ts +0 -19
  87. package/lib/people/public-api.d.ts +0 -28
  88. package/lib/process-comments/index.d.ts +0 -20
  89. package/lib/process-comments/process-comments.component.d.ts +0 -9
  90. package/lib/process-comments/services/comment-process.service.d.ts +0 -27
  91. package/lib/process-list/components/process-filters/process-filters.component.d.ts +0 -109
  92. package/lib/process-list/components/process-instance-details/process-instance-details.component.d.ts +0 -40
  93. package/lib/process-list/components/process-instance-header/process-instance-header.component.d.ts +0 -39
  94. package/lib/process-list/components/process-instance-tasks/process-instance-tasks.component.d.ts +0 -48
  95. package/lib/process-list/components/process-list/process-list.component.d.ts +0 -141
  96. package/lib/process-list/components/start-process/start-process.component.d.ts +0 -117
  97. package/lib/process-list/index.d.ts +0 -17
  98. package/lib/process-list/public-api.d.ts +0 -31
  99. package/lib/process-list/services/process-filter.service.d.ts +0 -73
  100. package/lib/process-list/services/process.service.d.ts +0 -148
  101. package/lib/process.module.d.ts +0 -89
  102. package/lib/services/apps-process.service.d.ts +0 -22
  103. package/lib/services/people-process.service.d.ts +0 -65
  104. package/lib/services/task-comments.service.d.ts +0 -45
  105. package/lib/task-comments/index.d.ts +0 -20
  106. package/lib/task-comments/task-comments.component.d.ts +0 -9
  107. package/lib/task-list/components/attach-form/attach-form.component.d.ts +0 -50
  108. package/lib/task-list/components/checklist/checklist.component.d.ts +0 -51
  109. package/lib/task-list/components/start-task/start-task.component.d.ts +0 -64
  110. package/lib/task-list/components/task-details/task-details.component.d.ts +0 -131
  111. package/lib/task-list/components/task-filters/task-filters.component.d.ts +0 -108
  112. package/lib/task-list/components/task-form/claim-task.directive.d.ts +0 -35
  113. package/lib/task-list/components/task-form/task-form.component.d.ts +0 -119
  114. package/lib/task-list/components/task-form/unclaim-task.directive.d.ts +0 -35
  115. package/lib/task-list/components/task-header/task-header.component.d.ts +0 -148
  116. package/lib/task-list/components/task-list/task-list.component.d.ts +0 -167
  117. package/lib/task-list/components/task-standalone/task-standalone.component.d.ts +0 -44
  118. package/lib/task-list/index.d.ts +0 -17
  119. package/lib/task-list/models/form.model.d.ts +0 -24
  120. package/lib/task-list/models/task-details.event.d.ts +0 -25
  121. package/lib/task-list/models/task-preset.model.d.ts +0 -31
  122. package/lib/task-list/models/user-event.model.d.ts +0 -23
  123. package/lib/task-list/models/user-group.model.d.ts +0 -26
  124. package/lib/task-list/public-api.d.ts +0 -47
  125. package/lib/task-list/services/process-upload.service.d.ts +0 -25
  126. package/lib/task-list/services/task-filter.service.d.ts +0 -102
  127. package/lib/task-list/services/task-upload.service.d.ts +0 -25
  128. package/lib/task-list/services/tasklist.service.d.ts +0 -159
  129. package/lib/task-list/validators/task-description.validator.d.ts +0 -21
  130. package/public-api.d.ts +0 -29
@@ -1,109 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
18
- import { ContentLinkModel, FormBaseComponent, FormFieldModel, FormModel, FormOutcomeModel, FormService, FormValues, TaskProcessVariableModel, WidgetVisibilityService } from '@alfresco/adf-core';
19
- import { Observable } from 'rxjs';
20
- import { EcmModelService } from './services/ecm-model.service';
21
- import { ModelService } from './services/model.service';
22
- import { EditorService } from './services/editor.service';
23
- import { TaskService } from './services/task.service';
24
- import { TaskFormService } from './services/task-form.service';
25
- import { NodesApiService } from '@alfresco/adf-content-services';
26
- import * as i0 from "@angular/core";
27
- export declare class FormComponent extends FormBaseComponent implements OnInit, OnChanges {
28
- protected formService: FormService;
29
- protected taskFormService: TaskFormService;
30
- protected taskService: TaskService;
31
- protected editorService: EditorService;
32
- protected modelService: ModelService;
33
- protected visibilityService: WidgetVisibilityService;
34
- protected ecmModelService: EcmModelService;
35
- protected nodeService: NodesApiService;
36
- private readonly cdRef;
37
- /** Task id to fetch corresponding form and values. */
38
- taskId: string;
39
- /** Content Services node ID for the form metadata. */
40
- nodeId: string;
41
- /** The id of the form definition to load and display with custom values. */
42
- formId: number;
43
- /** Name of the form definition to load and display with custom values. */
44
- formName: string;
45
- /** Toggle saving of form metadata. */
46
- saveMetadata: boolean;
47
- /** Custom form values map to be used with the rendered form. */
48
- data: FormValues;
49
- /** The form will set a prefixed space for invisible fields. */
50
- enableFixedSpacedForm: boolean;
51
- /** Emitted when the form is submitted with the `Save` or custom outcomes. */
52
- formSaved: EventEmitter<FormModel>;
53
- /** Emitted when the form is submitted with the `Complete` outcome. */
54
- formCompleted: EventEmitter<FormModel>;
55
- /** Emitted when form content is clicked. */
56
- formContentClicked: EventEmitter<ContentLinkModel>;
57
- /** Emitted when the form is loaded or reloaded. */
58
- formLoaded: EventEmitter<FormModel>;
59
- /** Emitted when form values are refreshed due to a data property change. */
60
- formDataRefreshed: EventEmitter<FormModel>;
61
- debugMode: boolean;
62
- private readonly destroyRef;
63
- constructor();
64
- ngOnInit(): void;
65
- ngOnChanges(changes: SimpleChanges): void;
66
- /**
67
- * Invoked when user clicks form refresh button.
68
- */
69
- onRefreshClicked(): void;
70
- loadForm(): void;
71
- findProcessVariablesByTaskId(taskId: string): Observable<TaskProcessVariableModel[]>;
72
- isAProcessTask(taskRepresentation: any): boolean;
73
- getFormByTaskId(taskId: string): Promise<FormModel>;
74
- getFormDefinitionByFormId(formId: number): void;
75
- getFormDefinitionByFormName(formName: string): void;
76
- saveTaskForm(): void;
77
- completeTaskForm(outcome?: string): void;
78
- handleError(err: any): any;
79
- parseForm(formRepresentationJSON: any): FormModel;
80
- /**
81
- * Get custom set of outcomes for a Form Definition.
82
- *
83
- * @param form Form definition model.
84
- * @returns list of form outcomes
85
- */
86
- getFormDefinitionOutcomes(form: FormModel): FormOutcomeModel[];
87
- checkVisibility(field: FormFieldModel): void;
88
- loadFormFromActiviti(nodeType: string): any;
89
- /**
90
- * Creates a Form with a field for each metadata property.
91
- *
92
- * @param formName Name of the new form
93
- * @returns The new form
94
- */
95
- createFormFromANode(formName: string): Observable<any>;
96
- protected storeFormAsMetadata(): void;
97
- protected onFormLoaded(form: FormModel): void;
98
- protected onFormDataRefreshed(form: FormModel): void;
99
- protected onTaskSaved(form: FormModel): void;
100
- protected onTaskSavedError(form: FormModel, error: any): void;
101
- protected onTaskCompleted(form: FormModel): void;
102
- protected onTaskCompletedError(form: FormModel, error: any): void;
103
- protected onExecuteOutcome(outcome: FormOutcomeModel): boolean;
104
- private refreshFormData;
105
- private loadFormForEcmNode;
106
- private loadFormFromFormId;
107
- static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
108
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "adf-form", never, { "taskId": { "alias": "taskId"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "formName": { "alias": "formName"; "required": false; }; "saveMetadata": { "alias": "saveMetadata"; "required": false; }; "data": { "alias": "data"; "required": false; }; "enableFixedSpacedForm": { "alias": "enableFixedSpacedForm"; "required": false; }; }, { "formSaved": "formSaved"; "formCompleted": "formCompleted"; "formContentClicked": "formContentClicked"; "formLoaded": "formLoaded"; "formDataRefreshed": "formDataRefreshed"; }, never, ["[empty-form]", "adf-form-custom-outcomes"], true, never>;
109
- }
@@ -1,17 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export * from './public-api';
@@ -1,25 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { FormSaveRepresentation } from '@alfresco/js-api';
18
- export declare class FormDefinitionModel extends FormSaveRepresentation {
19
- reusable: boolean;
20
- newVersion: boolean;
21
- formRepresentation: any;
22
- formImageBase64: string;
23
- constructor(id: string, name: any, lastUpdatedByFullName: string, lastUpdated: string, metadata: any);
24
- private metadataToFields;
25
- }
@@ -1,7 +0,0 @@
1
- import { FormRenderingService } from '@alfresco/adf-core';
2
- import * as i0 from "@angular/core";
3
- export declare class ProcessFormRenderingService extends FormRenderingService {
4
- constructor();
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ProcessFormRenderingService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<ProcessFormRenderingService>;
7
- }
@@ -1,27 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { FormCustomOutcomesComponent } from './form-custom-outcomes.component';
18
- export * from './events/validate-dynamic-table-row.event';
19
- export * from './form-list/form-list.component';
20
- export * from './model/form-definition.model';
21
- export * from './services';
22
- export * from './start-form/start-form.component';
23
- export * from './widgets/public-api';
24
- export * from './form.component';
25
- export * from './form-custom-outcomes.component';
26
- export * from './process-form-rendering.service';
27
- export declare const FORM_DIRECTIVES: (typeof FormCustomOutcomesComponent)[];
@@ -1,41 +0,0 @@
1
- import { ExternalContent } from '@alfresco/adf-core';
2
- import { IntegrationAlfrescoOnPremiseApi, Node, RelatedContentRepresentation, ActivitiContentApi, AlfrescoEndpointRepresentation, AlfrescoContentRepresentation } from '@alfresco/js-api';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class ActivitiContentService {
6
- private readonly apiService;
7
- private readonly sitesService;
8
- static UNKNOWN_ERROR_MESSAGE: string;
9
- static GENERIC_ERROR_MESSAGE: string;
10
- readonly integrationAlfrescoOnPremiseApi: IntegrationAlfrescoOnPremiseApi;
11
- readonly contentApi: ActivitiContentApi;
12
- /**
13
- * Returns a list of child nodes below the specified folder
14
- *
15
- * @param accountId account id
16
- * @param folderId folder id
17
- * @returns list of external content instances
18
- */
19
- getAlfrescoNodes(accountId: string, folderId: string): Observable<AlfrescoContentRepresentation[]>;
20
- /**
21
- * Returns a list of all the repositories configured
22
- *
23
- * @param tenantId tenant id
24
- * @param includeAccount include accounts
25
- * @returns list of endpoints
26
- */
27
- getAlfrescoRepositories(tenantId?: string, includeAccount?: boolean): Observable<AlfrescoEndpointRepresentation[]>;
28
- /**
29
- * Returns a list of child nodes below the specified folder
30
- *
31
- * @param accountId account id
32
- * @param node node details
33
- * @param siteId site id
34
- * @returns link to external content
35
- */
36
- linkAlfrescoNode(accountId: string, node: ExternalContent, siteId: string): Observable<RelatedContentRepresentation>;
37
- applyAlfrescoNode(node: Node, siteId: string, accountId: string): Observable<RelatedContentRepresentation>;
38
- private handleError;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<ActivitiContentService, never>;
40
- static ɵprov: i0.ɵɵInjectableDeclaration<ActivitiContentService>;
41
- }
@@ -1,30 +0,0 @@
1
- import { FormModel } from '@alfresco/adf-core';
2
- import { EventEmitter } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
- import { CustomModelApi } from '@alfresco/js-api';
5
- import * as i0 from "@angular/core";
6
- export declare class EcmModelService {
7
- private readonly apiService;
8
- static MODEL_NAMESPACE: string;
9
- static MODEL_NAME: string;
10
- static TYPE_MODEL: string;
11
- error: EventEmitter<any>;
12
- readonly customModelApi: CustomModelApi;
13
- createEcmTypeForActivitiForm(formName: string, form: FormModel): Observable<any>;
14
- searchActivitiEcmModel(): Observable<any>;
15
- createActivitiEcmModel(formName: string, form: FormModel): Observable<any>;
16
- saveFomType(formName: string, form: FormModel): Observable<any>;
17
- createEcmTypeWithProperties(formName: string, form: FormModel): Observable<any>;
18
- searchEcmType(typeName: string, modelName: string): Observable<any>;
19
- activeEcmModel(modelName: string): Observable<any>;
20
- createEcmModel(modelName: string, nameSpace: string): Observable<any>;
21
- getEcmModels(): Observable<any>;
22
- getEcmType(modelName: string): Observable<any>;
23
- createEcmType(typeName: string, modelName: string, parentType: string): Observable<any>;
24
- addPropertyToAType(modelName: string, typeName: string, formFields: any): Observable<any>;
25
- cleanNameType(name: string): string;
26
- toJson(res: any): any;
27
- private handleError;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<EcmModelService, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<EcmModelService>;
30
- }
@@ -1,41 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { FormModelsApi, FormRepresentation } from '@alfresco/js-api';
3
- import { FormDefinitionModel } from '../model/form-definition.model';
4
- import * as i0 from "@angular/core";
5
- export declare class EditorService {
6
- private readonly apiService;
7
- static UNKNOWN_ERROR_MESSAGE: string;
8
- static GENERIC_ERROR_MESSAGE: string;
9
- readonly editorApi: FormModelsApi;
10
- /**
11
- * Saves a form.
12
- *
13
- * @param formId ID of the form to save
14
- * @param formModel Model data for the form
15
- * @returns Data for the saved form
16
- */
17
- saveForm(formId: number, formModel: FormDefinitionModel): Observable<FormRepresentation>;
18
- /**
19
- * Gets a form definition.
20
- *
21
- * @param formId ID of the target form
22
- * @returns Form definition
23
- */
24
- getFormDefinitionById(formId: number): Observable<any>;
25
- /**
26
- * Creates a JSON representation of form data.
27
- *
28
- * @param res Object representing form data
29
- * @returns JSON data
30
- */
31
- toJson(res: any): any;
32
- /**
33
- * Reports an error message.
34
- *
35
- * @param error Data object with optional `message` and `status` fields for the error
36
- * @returns Error message
37
- */
38
- private handleError;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<EditorService, never>;
40
- static ɵprov: i0.ɵɵInjectableDeclaration<EditorService>;
41
- }
@@ -1,9 +0,0 @@
1
- import { AlfrescoApiService } from '@alfresco/adf-content-services';
2
- import * as i0 from "@angular/core";
3
- export declare class ExternalAlfrescoApiService extends AlfrescoApiService {
4
- init(ecmHost: string, contextRoot: string): void;
5
- private setup;
6
- private createPrefixFromHost;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ExternalAlfrescoApiService, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<ExternalAlfrescoApiService>;
9
- }
@@ -1,25 +0,0 @@
1
- /*!
2
- * @license
3
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export * from './activiti-alfresco.service';
18
- export * from './ecm-model.service';
19
- export * from './editor.service';
20
- export * from './external-alfresco-api.service';
21
- export * from './model.service';
22
- export * from './process-content.service';
23
- export * from './process-definition.service';
24
- export * from './task.service';
25
- export * from './task-form.service';
@@ -1,59 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ModelsApi } from '@alfresco/js-api';
3
- import * as i0 from "@angular/core";
4
- export declare class ModelService {
5
- private readonly apiService;
6
- static UNKNOWN_ERROR_MESSAGE: string;
7
- static GENERIC_ERROR_MESSAGE: string;
8
- readonly modelsApi: ModelsApi;
9
- /**
10
- * Create a Form.
11
- *
12
- * @param formName Name of the new form
13
- * @returns The new form
14
- */
15
- createForm(formName: string): Observable<any>;
16
- /**
17
- * Gets all the forms.
18
- *
19
- * @returns List of form models
20
- */
21
- getForms(): Observable<any>;
22
- /**
23
- * Creates a JSON array representation of form data.
24
- *
25
- * @param res Object representing form data
26
- * @returns JSON data
27
- */
28
- toJsonArray(res: any): any;
29
- /**
30
- * Searches for a form by name.
31
- *
32
- * @param name The form name to search for
33
- * @returns Form model(s) matching the search name
34
- */
35
- searchFrom(name: string): Observable<any>;
36
- /**
37
- * Gets the form definition with a given name.
38
- *
39
- * @param name The form name
40
- * @returns Form definition
41
- */
42
- getFormDefinitionByName(name: string): Observable<any>;
43
- /**
44
- * Gets the ID of a form.
45
- *
46
- * @param form Object representing a form
47
- * @returns ID string
48
- */
49
- getFormId(form: any): string;
50
- /**
51
- * Reports an error message.
52
- *
53
- * @param error Data object with optional `message` and `status` fields for the error
54
- * @returns Error message
55
- */
56
- private handleError;
57
- static ɵfac: i0.ɵɵFactoryDeclaration<ModelService, never>;
58
- static ɵprov: i0.ɵɵInjectableDeclaration<ModelService>;
59
- }
@@ -1,132 +0,0 @@
1
- import { ActivitiContentApi, RelatedContentRepresentation, ResultListDataRepresentationRelatedProcessTask, ResultListDataRepresentationRelatedContentRepresentation } from '@alfresco/js-api';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class ProcessContentService {
5
- private readonly apiService;
6
- static UNKNOWN_ERROR_MESSAGE: string;
7
- static GENERIC_ERROR_MESSAGE: string;
8
- readonly contentApi: ActivitiContentApi;
9
- /**
10
- * Create temporary related content from an uploaded file.
11
- *
12
- * @param file File to use for content
13
- * @returns The created content data
14
- */
15
- createTemporaryRawRelatedContent(file: any): Observable<RelatedContentRepresentation>;
16
- /**
17
- * Gets the metadata for a related content item.
18
- *
19
- * @param contentId ID of the content item
20
- * @returns Metadata for the content
21
- */
22
- getFileContent(contentId: number): Observable<RelatedContentRepresentation>;
23
- /**
24
- * Gets raw binary content data for a related content file.
25
- *
26
- * @param contentId ID of the related content
27
- * @returns Binary data of the related content
28
- */
29
- getFileRawContent(contentId: number): Observable<Blob>;
30
- /**
31
- * Gets the preview for a related content file.
32
- *
33
- * @param contentId ID of the related content
34
- * @returns Binary data of the content preview
35
- */
36
- getContentPreview(contentId: number): Observable<Blob>;
37
- /**
38
- * Gets a URL for direct access to a related content file.
39
- *
40
- * @param contentId ID of the related content
41
- * @returns URL to access the content
42
- */
43
- getFileRawContentUrl(contentId: number): string;
44
- /**
45
- * Gets the thumbnail for a related content file.
46
- *
47
- * @param contentId ID of the related content
48
- * @returns Binary data of the thumbnail image
49
- */
50
- getContentThumbnail(contentId: number): Observable<Blob>;
51
- /**
52
- * Gets the preview rendition for a related content file.
53
- *
54
- * @param contentId ID of the related content
55
- * @returns Binary data of the related content
56
- */
57
- getContentRenditionTypePreview(contentId: number): Observable<Blob>;
58
- /**
59
- * Gets related content items for a task instance.
60
- *
61
- * @param taskId ID of the target task
62
- * @param opts Options supported by JS-API
63
- * @returns Metadata for the content
64
- */
65
- getTaskRelatedContent(taskId: string, opts?: any): Observable<ResultListDataRepresentationRelatedContentRepresentation>;
66
- /**
67
- * Gets related content items for a process instance.
68
- *
69
- * @param processId ID of the target process
70
- * @param opts Options supported by JS-API
71
- * @returns Metadata for the content
72
- */
73
- getProcessRelatedContent(processId: string, opts?: any): Observable<ResultListDataRepresentationRelatedContentRepresentation>;
74
- /**
75
- * Deletes related content.
76
- *
77
- * @param contentId Identifier of the content to delete
78
- * @returns Null response that notifies when the deletion is complete
79
- */
80
- deleteRelatedContent(contentId: number): Observable<any>;
81
- /**
82
- * Associates an uploaded file with a process instance.
83
- *
84
- * @param processInstanceId ID of the target process instance
85
- * @param content File to associate
86
- * @param opts Options supported by JS-API
87
- * @returns Details of created content
88
- */
89
- createProcessRelatedContent(processInstanceId: string, content: any, opts?: any): Observable<RelatedContentRepresentation>;
90
- /**
91
- * Associates an uploaded file with a task instance.
92
- *
93
- * @param taskId ID of the target task
94
- * @param file File to associate
95
- * @param opts Options supported by JS-API
96
- * @returns Details of created content
97
- */
98
- createTaskRelatedContent(taskId: string, file: any, opts?: any): Observable<RelatedContentRepresentation>;
99
- /**
100
- * Lists processes and tasks on workflow started with provided document
101
- *
102
- * @param sourceId - id of the document that workflow or task has been started with
103
- * @param source - source of the document that workflow or task has been started with
104
- * @param size - size of the entries to get
105
- * @param page - page number
106
- * @returns Promise<ResultListDataRepresentationRelatedProcessTask>
107
- */
108
- getProcessesAndTasksOnContent(sourceId: string, source: string, size?: number, page?: number): Observable<ResultListDataRepresentationRelatedProcessTask>;
109
- /**
110
- * Creates a JSON representation of data.
111
- *
112
- * @param res Object representing data
113
- * @returns JSON object
114
- */
115
- toJson(res: any): any;
116
- /**
117
- * Creates a JSON array representation of data.
118
- *
119
- * @param res Object representing data
120
- * @returns JSON array object
121
- */
122
- toJsonArray(res: any): any;
123
- /**
124
- * Reports an error message.
125
- *
126
- * @param error Data object with optional `message` and `status` fields for the error
127
- * @returns Callback when an error occurs
128
- */
129
- handleError(error: any): Observable<any>;
130
- static ɵfac: i0.ɵɵFactoryDeclaration<ProcessContentService, never>;
131
- static ɵprov: i0.ɵɵInjectableDeclaration<ProcessContentService>;
132
- }
@@ -1,44 +0,0 @@
1
- import { FormFieldOption } from '@alfresco/adf-core';
2
- import { Observable } from 'rxjs';
3
- import { ProcessDefinitionsApi } from '@alfresco/js-api';
4
- import { DynamicTableColumnOption } from '../widgets/dynamic-table/editors/models/dynamic-table-column-option.model';
5
- import * as i0 from "@angular/core";
6
- export declare class ProcessDefinitionService {
7
- private readonly apiService;
8
- static UNKNOWN_ERROR_MESSAGE: string;
9
- static GENERIC_ERROR_MESSAGE: string;
10
- readonly processDefinitionsApi: ProcessDefinitionsApi;
11
- /**
12
- * Gets values of fields populated by a REST backend using a process ID.
13
- *
14
- * @param processDefinitionId Process identifier
15
- * @param field Field identifier
16
- * @returns Field values
17
- */
18
- getRestFieldValuesByProcessId(processDefinitionId: string, field: string): Observable<FormFieldOption[]>;
19
- /**
20
- * Gets column values of fields populated by a REST backend using a process ID.
21
- *
22
- * @param processDefinitionId Process identifier
23
- * @param field Field identifier
24
- * @param column Column identifier
25
- * @returns Field values
26
- */
27
- getRestFieldValuesColumnByProcessId(processDefinitionId: string, field: string, column?: string): Observable<DynamicTableColumnOption[]>;
28
- /**
29
- * Creates a JSON representation of form data.
30
- *
31
- * @param res Object representing form data
32
- * @returns JSON data
33
- */
34
- toJson(res: any): any;
35
- /**
36
- * Reports an error message.
37
- *
38
- * @param error Data object with optional `message` and `status` fields for the error
39
- * @returns Error message
40
- */
41
- private handleError;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<ProcessDefinitionService, never>;
43
- static ɵprov: i0.ɵɵInjectableDeclaration<ProcessDefinitionService>;
44
- }
@@ -1,69 +0,0 @@
1
- import { FormFieldOption, FormValues, TaskProcessVariableModel } from '@alfresco/adf-core';
2
- import { Observable } from 'rxjs';
3
- import { TaskFormsApi } from '@alfresco/js-api';
4
- import { DynamicTableColumnOption } from '../widgets/dynamic-table/editors/models/dynamic-table-column-option.model';
5
- import * as i0 from "@angular/core";
6
- export declare class TaskFormService {
7
- private readonly apiService;
8
- static UNKNOWN_ERROR_MESSAGE: string;
9
- static GENERIC_ERROR_MESSAGE: string;
10
- readonly taskFormsApi: TaskFormsApi;
11
- /**
12
- * Saves a task form.
13
- *
14
- * @param taskId Task Id
15
- * @param formValues Form Values
16
- * @returns Null response when the operation is complete
17
- */
18
- saveTaskForm(taskId: string, formValues: FormValues): Observable<any>;
19
- /**
20
- * Completes a Task Form.
21
- *
22
- * @param taskId Task Id
23
- * @param formValues Form Values
24
- * @param outcome Form Outcome
25
- * @returns Null response when the operation is complete
26
- */
27
- completeTaskForm(taskId: string, formValues: FormValues, outcome?: string): Observable<any>;
28
- /**
29
- * Gets a form related to a task.
30
- *
31
- * @param taskId ID of the target task
32
- * @returns Form definition
33
- */
34
- getTaskForm(taskId: string): Observable<any>;
35
- /**
36
- * Gets values of fields populated by a REST backend.
37
- *
38
- * @param taskId Task identifier
39
- * @param field Field identifier
40
- * @returns Field values
41
- */
42
- getRestFieldValues(taskId: string, field: string): Observable<FormFieldOption[]>;
43
- /**
44
- * Gets column values of fields populated by a REST backend.
45
- *
46
- * @param taskId Task identifier
47
- * @param field Field identifier
48
- * @param column Column identifier
49
- * @returns Field values
50
- */
51
- getRestFieldValuesColumn(taskId: string, field: string, column?: string): Observable<DynamicTableColumnOption[]>;
52
- getTaskProcessVariable(taskId: string): Observable<TaskProcessVariableModel[]>;
53
- /**
54
- * Creates a JSON representation of form data.
55
- *
56
- * @param res Object representing form data
57
- * @returns JSON data
58
- */
59
- toJson(res: any): any;
60
- /**
61
- * Reports an error message.
62
- *
63
- * @param error Data object with optional `message` and `status` fields for the error
64
- * @returns Error message
65
- */
66
- private handleError;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<TaskFormService, never>;
68
- static ɵprov: i0.ɵɵInjectableDeclaration<TaskFormService>;
69
- }