@alfresco/adf-process-services-cloud 7.0.0-alpha.2 → 7.0.0-alpha.2-10617418261

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.
@@ -18,11 +18,11 @@ import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angu
18
18
  import { ContentLinkModel, FormFieldValidator, FormModel } from '@alfresco/adf-core';
19
19
  import { FormControl, FormGroup, ValidatorFn } from '@angular/forms';
20
20
  import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
21
- import { ProcessInstanceCloud } from '../models/process-instance-cloud.model';
22
- import { ProcessPayloadCloud } from '../models/process-payload-cloud.model';
23
21
  import { Subject } from 'rxjs';
24
- import { ProcessDefinitionCloud } from '../../../models/process-definition-cloud.model';
25
22
  import { TaskVariableCloud } from '../../../form/models/task-variable-cloud.model';
23
+ import { ProcessDefinitionCloud } from '../../../models/process-definition-cloud.model';
24
+ import { ProcessInstanceCloud } from '../models/process-instance-cloud.model';
25
+ import { ProcessPayloadCloud } from '../models/process-payload-cloud.model';
26
26
  import * as i0 from "@angular/core";
27
27
  export declare class StartProcessCloudComponent implements OnChanges, OnInit, OnDestroy {
28
28
  inputAutocomplete: MatAutocompleteTrigger;
@@ -51,7 +51,7 @@ export declare class StartProcessCloudComponent implements OnChanges, OnInit, On
51
51
  /** Emitted when the starting process is cancelled */
52
52
  cancel: EventEmitter<ProcessInstanceCloud>;
53
53
  /** Emitted when an error occurs. */
54
- error: EventEmitter<ProcessInstanceCloud>;
54
+ error: EventEmitter<any>;
55
55
  /** Emitted when form content is clicked. */
56
56
  formContentClicked: EventEmitter<ContentLinkModel>;
57
57
  /** Emitted when process definition selection changes. */
@@ -98,6 +98,7 @@ export declare class StartProcessCloudComponent implements OnChanges, OnInit, On
98
98
  private getProcessDefinition;
99
99
  buildProcessCloudPayload(): void;
100
100
  startProcess(): void;
101
+ private unifyErrorResponse;
101
102
  cancelStartProcess(): void;
102
103
  private resetErrorMessage;
103
104
  private resetProcessDefinitionList;
@@ -0,0 +1,23 @@
1
+ /*!
2
+ * @license
3
+ * Copyright © 2005-2024 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 declare class ProcessWithFormPayloadCloud {
18
+ processName: string;
19
+ processDefinitionKey: string;
20
+ variables: any;
21
+ values: any;
22
+ constructor(obj: ProcessWithFormPayloadCloud);
23
+ }
@@ -25,6 +25,7 @@ export declare class StartProcessCloudService extends BaseCloudService {
25
25
  * @returns Details of the process instance just started
26
26
  */
27
27
  startProcess(appName: string, payload: ProcessPayloadCloud): Observable<ProcessInstanceCloud>;
28
+ startProcessWithForm(appName: string, formId: string, version: number, payload: any): Observable<ProcessInstanceCloud>;
28
29
  /**
29
30
  * Update an existing process instance
30
31
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfresco/adf-process-services-cloud",
3
3
  "description": "Alfresco ADF process services cloud",
4
- "version": "7.0.0-alpha.2",
4
+ "version": "7.0.0-alpha.2-10617418261",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -35,9 +35,9 @@
35
35
  "@angular/platform-browser": ">=14.1.3",
36
36
  "@angular/platform-browser-dynamic": ">=14.1.3",
37
37
  "@angular/router": ">=14.1.3",
38
- "@alfresco/js-api": ">=8.0.0-alpha.2",
39
- "@alfresco/adf-core": ">=7.0.0-alpha.2",
40
- "@alfresco/adf-content-services": ">=7.0.0-alpha.2",
38
+ "@alfresco/js-api": ">=8.0.0-alpha.2-10617418261",
39
+ "@alfresco/adf-core": ">=7.0.0-alpha.2-10617418261",
40
+ "@alfresco/adf-content-services": ">=7.0.0-alpha.2-10617418261",
41
41
  "@apollo/client": "^3.7.2",
42
42
  "@ngx-translate/core": ">=14.0.0",
43
43
  "apollo-angular": "^4.0.1",