@valtimo/document 4.15.3-next-main.14 → 4.16.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.
- package/bundles/valtimo-document.umd.js +105 -7
- package/bundles/valtimo-document.umd.js.map +1 -1
- package/bundles/valtimo-document.umd.min.js +1 -1
- package/bundles/valtimo-document.umd.min.js.map +1 -1
- package/esm2015/lib/document-search-request.js +1 -1
- package/esm2015/lib/document.module.js +1 -1
- package/esm2015/lib/document.service.js +8 -8
- package/esm2015/lib/models/audit.model.js +16 -0
- package/esm2015/lib/models/document.model.js +52 -0
- package/esm2015/lib/models/index.js +21 -0
- package/esm2015/lib/models/list-sorting.model.js +1 -0
- package/esm2015/public_api.js +2 -1
- package/esm2015/valtimo-document.js +1 -1
- package/fesm2015/valtimo-document.js +94 -8
- package/fesm2015/valtimo-document.js.map +1 -1
- package/lib/document-search-request.d.ts +1 -1
- package/lib/document.service.d.ts +1 -1
- package/lib/models/audit.model.d.ts +18 -0
- package/lib/models/document.model.d.ts +178 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/list-sorting.model.d.ts +9 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/valtimo-document.d.ts +1 -0
- package/valtimo-document.metadata.json +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export class ModifyDocumentRequestImpl {
|
|
17
|
+
constructor(documentId, content, versionBasedOn) {
|
|
18
|
+
this.documentId = documentId;
|
|
19
|
+
this.content = content;
|
|
20
|
+
this.versionBasedOn = versionBasedOn;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export class ModifyDocumentAndCompleteTaskRequestImpl {
|
|
24
|
+
constructor(taskId, request) {
|
|
25
|
+
this.taskId = taskId;
|
|
26
|
+
this.request = request;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export class NewDocumentRequestImpl {
|
|
30
|
+
constructor(definition, content) {
|
|
31
|
+
this.definition = definition;
|
|
32
|
+
this.content = content;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export class NewDocumentAndStartProcessRequestImpl {
|
|
36
|
+
constructor(processDefinitionKey, request) {
|
|
37
|
+
this.processDefinitionKey = processDefinitionKey;
|
|
38
|
+
this.request = request;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export class ModifyDocumentAndStartProcessRequestImpl {
|
|
42
|
+
constructor(processDefinitionKey, request) {
|
|
43
|
+
this.processDefinitionKey = processDefinitionKey;
|
|
44
|
+
this.request = request;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export class DocumentDefinitionCreateRequest {
|
|
48
|
+
constructor(definition) {
|
|
49
|
+
this.definition = definition;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQubW9kZWwuanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLTRjM2JiNzcwL3dvcmtzcGFjZS9WYWx0aW1vXy1fQW5ndWxhcl9MaWJyYXJpZXNfbWFpbi9wcm9qZWN0cy92YWx0aW1vL2RvY3VtZW50L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9t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Vzc0RlZmluaXRpb25LZXk6IHN0cmluZywgcmVxdWVzdDogTW9kaWZ5RG9jdW1lbnRSZXF1ZXN0SW1wbCkge1xuICAgIHRoaXMucHJvY2Vzc0RlZmluaXRpb25LZXkgPSBwcm9jZXNzRGVmaW5pdGlvbktleTtcbiAgICB0aGlzLnJlcXVlc3QgPSByZXF1ZXN0O1xuICB9XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgUHJvY2Vzc0RvY3VtZW50RGVmaW5pdGlvblJlcXVlc3Qge1xuICBwcm9jZXNzRGVmaW5pdGlvbktleTogc3RyaW5nO1xuICBkb2N1bWVudERlZmluaXRpb25OYW1lOiBzdHJpbmc7XG4gIGNhbkluaXRpYWxpemVEb2N1bWVudDogYm9vbGVhbjtcbiAgc3RhcnRhYmxlQnlVc2VyOiBib29sZWFuO1xufVxuXG5leHBvcnQgY2xhc3MgRG9jdW1lbnREZWZpbml0aW9uQ3JlYXRlUmVxdWVzdCB7XG4gIGRlZmluaXRpb246IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihkZWZpbml0aW9uOiBzdHJpbmcpIHtcbiAgICB0aGlzLmRlZmluaXRpb24gPSBkZWZpbml0aW9uO1xuICB9XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgVW5kZXBsb3lEb2N1bWVudERlZmluaXRpb25SZXN1bHQge1xuICBkb2N1bWVudERlZmluaXRpb25OYW1lOiBzdHJpbmc7XG4gIGVycm9yczogc3RyaW5nW107XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgRG9jdW1lbnRTZW5kTWVzc2FnZVJlcXVlc3Qge1xuICBzdWJqZWN0OiBzdHJpbmc7XG4gIGJvZHlUZXh0OiBzdHJpbmc7XG59XG4iXX0=
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* * Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
4
|
+
* *
|
|
5
|
+
* * Licensed under EUPL, Version 1.2 (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
|
+
* * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
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
|
+
*/
|
|
18
|
+
export * from './document.model';
|
|
19
|
+
export * from './list-sorting.model';
|
|
20
|
+
export * from './audit.model';
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLTRjM2JiNzcwL3dvcmtzcGFjZS9WYWx0aW1vXy1fQW5ndWxhcl9MaWJyYXJpZXNfbWFpbi9wcm9qZWN0cy92YWx0aW1vL2RvY3VtZW50L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7R0FnQkc7QUFFSCxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICpcbiAqICAqIENvcHlyaWdodCAyMDE1LTIwMjAgUml0ZW5zZSBCViwgdGhlIE5ldGhlcmxhbmRzLlxuICogICpcbiAqICAqIExpY2Vuc2VkIHVuZGVyIEVVUEwsIFZlcnNpb24gMS4yICh0aGUgXCJMaWNlbnNlXCIpO1xuICogICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGx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iwic291cmNlcyI6WyJsaWIvbW9kZWxzL2xpc3Qtc29ydGluZy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgRGlyZWN0aW9uID0gJ0FTQycgfCAnREVTQyc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgU29ydCB7XG4gIG5hbWU6IHN0cmluZztcbiAgZGlyZWN0aW9uOiBEaXJlY3Rpb247XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU29ydFN0YXRlIHtcbiAgc3RhdGU6IFNvcnQ7XG4gIGlzU29ydGluZzogYm9vbGVhbjtcbn1cbiJdfQ==
|
package/esm2015/public_api.js
CHANGED
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
/*
|
|
17
17
|
* Public API Surface of document
|
|
18
18
|
*/
|
|
19
|
+
export * from './lib/models';
|
|
19
20
|
export * from './lib/document.service';
|
|
20
21
|
export * from './lib/document.module';
|
|
21
22
|
export * from './lib/document-search-request';
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtNGMzYmI3NzAvd29ya3NwYWNlL1ZhbHRpbW9fLV9Bbmd1bGFyX0xpYnJhcmllc19tYWluL3Byb2plY3RzL3ZhbHRpbW8vZG9jdW1lbnQvc3JjLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVIOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2Vz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WxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2RvY3VtZW50LXNlYXJjaC1yZXF1ZXN0JztcbiJdfQ==
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public_api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1kb2N1bWVudC5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtNGMzYmI3NzAvd29ya3NwYWNlL1ZhbHRpbW9fLV9Bbmd1bGFyX0xpYnJhcmllc19tYWluL3Byb2plY3RzL3ZhbHRpbW8vZG9jdW1lbnQvc3JjLyIsInNvdXJjZXMiOlsidmFsdGltby1kb2N1bWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuXG5leHBvcnQge1NvcnRTdGF0ZSBhcyDJtWF9IGZyb20gJy4vbGliL21vZGVscyc7Il19
|
|
@@ -2,6 +2,92 @@ import { ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule } from '@angular
|
|
|
2
2
|
import { HttpHeaders, HttpParams, HttpClient } from '@angular/common/http';
|
|
3
3
|
import { ConfigService } from '@valtimo/config';
|
|
4
4
|
|
|
5
|
+
/*
|
|
6
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
class ModifyDocumentRequestImpl {
|
|
21
|
+
constructor(documentId, content, versionBasedOn) {
|
|
22
|
+
this.documentId = documentId;
|
|
23
|
+
this.content = content;
|
|
24
|
+
this.versionBasedOn = versionBasedOn;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
class ModifyDocumentAndCompleteTaskRequestImpl {
|
|
28
|
+
constructor(taskId, request) {
|
|
29
|
+
this.taskId = taskId;
|
|
30
|
+
this.request = request;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
class NewDocumentRequestImpl {
|
|
34
|
+
constructor(definition, content) {
|
|
35
|
+
this.definition = definition;
|
|
36
|
+
this.content = content;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
class NewDocumentAndStartProcessRequestImpl {
|
|
40
|
+
constructor(processDefinitionKey, request) {
|
|
41
|
+
this.processDefinitionKey = processDefinitionKey;
|
|
42
|
+
this.request = request;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
class ModifyDocumentAndStartProcessRequestImpl {
|
|
46
|
+
constructor(processDefinitionKey, request) {
|
|
47
|
+
this.processDefinitionKey = processDefinitionKey;
|
|
48
|
+
this.request = request;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
class DocumentDefinitionCreateRequest {
|
|
52
|
+
constructor(definition) {
|
|
53
|
+
this.definition = definition;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/*
|
|
58
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
59
|
+
*
|
|
60
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
61
|
+
* you may not use this file except in compliance with the License.
|
|
62
|
+
* You may obtain a copy of the License at
|
|
63
|
+
*
|
|
64
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
65
|
+
*
|
|
66
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
67
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
68
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
69
|
+
* See the License for the specific language governing permissions and
|
|
70
|
+
* limitations under the License.
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
*
|
|
75
|
+
* * Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
76
|
+
* *
|
|
77
|
+
* * Licensed under EUPL, Version 1.2 (the "License");
|
|
78
|
+
* * you may not use this file except in compliance with the License.
|
|
79
|
+
* * You may obtain a copy of the License at
|
|
80
|
+
* *
|
|
81
|
+
* * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
82
|
+
* *
|
|
83
|
+
* * Unless required by applicable law or agreed to in writing, software
|
|
84
|
+
* * distributed under the License is distributed on an "AS IS" basis,
|
|
85
|
+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
86
|
+
* * See the License for the specific language governing permissions and
|
|
87
|
+
* * limitations under the License.
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
|
|
5
91
|
/*
|
|
6
92
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
7
93
|
*
|
|
@@ -66,17 +152,17 @@ class DocumentService {
|
|
|
66
152
|
createDocumentDefinition(documentDefinitionCreateRequest) {
|
|
67
153
|
const options = {
|
|
68
154
|
headers: new HttpHeaders({
|
|
69
|
-
'Content-Type': 'application/json'
|
|
70
|
-
})
|
|
155
|
+
'Content-Type': 'application/json',
|
|
156
|
+
}),
|
|
71
157
|
};
|
|
72
158
|
return this.http.post(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);
|
|
73
159
|
}
|
|
74
160
|
deleteProcessDocumentDefinition(request) {
|
|
75
161
|
const options = {
|
|
76
162
|
headers: new HttpHeaders({
|
|
77
|
-
'Content-Type': 'application/json'
|
|
163
|
+
'Content-Type': 'application/json',
|
|
78
164
|
}),
|
|
79
|
-
body: request
|
|
165
|
+
body: request,
|
|
80
166
|
};
|
|
81
167
|
return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);
|
|
82
168
|
}
|
|
@@ -91,8 +177,8 @@ class DocumentService {
|
|
|
91
177
|
removeResource(documentId, resourceId) {
|
|
92
178
|
const options = {
|
|
93
179
|
headers: new HttpHeaders({
|
|
94
|
-
'Content-Type': 'application/json'
|
|
95
|
-
})
|
|
180
|
+
'Content-Type': 'application/json',
|
|
181
|
+
}),
|
|
96
182
|
};
|
|
97
183
|
return this.http.delete(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);
|
|
98
184
|
}
|
|
@@ -106,7 +192,7 @@ class DocumentService {
|
|
|
106
192
|
DocumentService.ɵprov = ɵɵdefineInjectable({ factory: function DocumentService_Factory() { return new DocumentService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: DocumentService, providedIn: "root" });
|
|
107
193
|
DocumentService.decorators = [
|
|
108
194
|
{ type: Injectable, args: [{
|
|
109
|
-
providedIn: 'root'
|
|
195
|
+
providedIn: 'root',
|
|
110
196
|
},] }
|
|
111
197
|
];
|
|
112
198
|
DocumentService.ctorParameters = () => [
|
|
@@ -218,5 +304,5 @@ class DocumentSearchRequestImpl {
|
|
|
218
304
|
* Generated bundle index. Do not edit.
|
|
219
305
|
*/
|
|
220
306
|
|
|
221
|
-
export { DocumentModule, DocumentSearchRequestHttpBody, DocumentSearchRequestImpl, DocumentService };
|
|
307
|
+
export { DocumentDefinitionCreateRequest, DocumentModule, DocumentSearchRequestHttpBody, DocumentSearchRequestImpl, DocumentService, ModifyDocumentAndCompleteTaskRequestImpl, ModifyDocumentAndStartProcessRequestImpl, ModifyDocumentRequestImpl, NewDocumentAndStartProcessRequestImpl, NewDocumentRequestImpl };
|
|
222
308
|
//# sourceMappingURL=valtimo-document.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-document.js","sources":["../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n DocumentDefinitionCreateRequest,\n UndeployDocumentDefinitionResult,\n DocumentSendMessageRequest\n} from '@valtimo/contract';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(`${this.valtimoEndpointUri}document-definition`, {params: params});\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(`${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(), {params: documentSearchRequest.asHttpParams()});\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(`${this.valtimoEndpointUri}process-document/definition`);\n }\n\n findProcessDocumentDefinitions(documentDefinitionName: string): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);\n }\n\n newDocumentAndStartProcess(request: NewDocumentAndStartProcessRequestImpl): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(request: ModifyDocumentAndCompleteTaskRequestImpl): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(request: ModifyDocumentAndStartProcessRequestImpl): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(`${this.valtimoEndpointUri}process-document/definition`, request);\n }\n\n createDocumentDefinition(documentDefinitionCreateRequest: DocumentDefinitionCreateRequest): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.post<void>(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n body: request\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.delete<void>(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(`${this.valtimoEndpointUri}document-definition/${name}`);\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from '@valtimo/contract';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;MA8Ca,eAAe;IAG1B,YAAoB,IAAgB,EAAE,aAA4B;QAA9C,SAAI,GAAJ,IAAI,CAAY;QAClC,IAAI,CAAC,kBAAkB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC;KACvE;;IAGM,iBAAiB;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAsB,GAAG,IAAI,CAAC,kBAAkB,qBAAqB,CAAC,CAAC;KAC5F;IAED,gBAAgB,CAAC,MAAY;QAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA2B,GAAG,IAAI,CAAC,kBAAkB,qBAAqB,EAAE,EAAC,MAAM,EAAE,MAAM,EAAC,CAAC,CAAC;KACnH;IAED,qBAAqB,CAAC,sBAA8B;QAClD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAqB,GAAG,IAAI,CAAC,kBAAkB,uBAAuB,sBAAsB,EAAE,CAAC,CAAC;KACrH;IAED,YAAY,CAAC,qBAA4C;QACvD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAY,GAAG,IAAI,CAAC,kBAAkB,iBAAiB,EAC1E,qBAAqB,CAAC,UAAU,EAAE,EAAE,EAAC,MAAM,EAAE,qBAAqB,CAAC,YAAY,EAAE,EAAC,CAAC,CAAC;KACvF;IAED,WAAW,CAAC,UAAkB;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAW,GAAG,IAAI,CAAC,kBAAkB,YAAY,UAAU,EAAE,CAAC,CAAC;KACpF;IAED,cAAc,CAAC,QAAa;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAiB,GAAG,IAAI,CAAC,kBAAkB,UA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vD;QACD,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;SAC3C;QAED,OAAO,QAAQ,CAAC;KACjB;IAED,YAAY;QACV,IAAI,MAAM,GAAG,IAAI,UAAU,EAAE;aAC1B,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC;aAC1C,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;aACjC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACrC,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SAC5D;QACD,OAAO,MAAM,CAAC;KACf;IAED,OAAO,CAAC,IAAY;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;IAED,aAAa,CAAC,IAAe;QAC3B,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;;;AC/GH;;;;;;;;;;;;;;;;ACAA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"valtimo-document.js","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/audit.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface AuditEvent {\n className: string;\n id: string;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface MetaData {\n id: any;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface AuditRecord {\n metaData: MetaData;\n createdOn: Date;\n auditEvent: AuditEvent;\n}\n","/*\n *\n * * Copyright 2015-2020 Ritense BV, the Netherlands.\n * *\n * * Licensed under EUPL, Version 1.2 (the \"License\");\n * * you may not use this file except in compliance with the License.\n * * You may obtain a copy of the License at\n * *\n * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n * *\n * * Unless required by applicable law or agreed to in writing, software\n * * distributed under the License is distributed on an \"AS IS\" basis,\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * * See the License for the specific language governing permissions and\n * * limitations under the License.\n *\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n DocumentDefinitionCreateRequest,\n UndeployDocumentDefinitionResult,\n DocumentSendMessageRequest,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params: params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(),\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {SortState as ɵa} from './lib/models';"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;MAwJa,yBAAyB;IAKpC,YAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB;QACrE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;CACF;MASY,wCAAwC;IAMnD,YAAY,MAAc,EAAE,OAAkC;QAC5D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;CACF;MAOY,sBAAsB;IAIjC,YAAY,UAAkB,EAAE,OAAe;QAC7C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;CACF;MASY,qCAAqC;IAMhD,YAAY,oBAA4B,EAAE,OAA+B;QACvE,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;CACF;MASY,wCAAwC;IAMnD,YAAY,oBAA4B,EAAE,OAAkC;QAC1E,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;CACF;MASY,+BAA+B;IAG1C,YAAY,UAAkB;QAC5B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC9B;;;ACxPH;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;MA8Ca,eAAe;IAG1B,YAAoB,IAAgB,EAAE,aAA4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aAC1C,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;aACjC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACrC,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SAC5D;QACD,OAAO,MAAM,CAAC;KACf;IAED,OAAO,CAAC,IAAY;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;IAED,aAAa,CAAC,IAAe;QAC3B,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;;;AC/GH;;;;;;;;;;;;;;;;ACAA;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { AuditRecord, Document, DocumentDefinition, DocumentDefinitions, DocumentResult, Documents, ModifyDocumentAndCompleteTaskRequestImpl, ModifyDocumentAndCompleteTaskResult, ModifyDocumentAndStartProcessRequestImpl, ModifyDocumentAndStartProcessResult, NewDocumentAndStartProcessRequestImpl, NewDocumentAndStartProcessResult, Page, ProcessDocumentDefinition, ProcessDocumentDefinitionRequest, ProcessDocumentInstance, DocumentDefinitionCreateRequest, UndeployDocumentDefinitionResult, DocumentSendMessageRequest } from '
|
|
3
|
+
import { AuditRecord, Document, DocumentDefinition, DocumentDefinitions, DocumentResult, Documents, ModifyDocumentAndCompleteTaskRequestImpl, ModifyDocumentAndCompleteTaskResult, ModifyDocumentAndStartProcessRequestImpl, ModifyDocumentAndStartProcessResult, NewDocumentAndStartProcessRequestImpl, NewDocumentAndStartProcessResult, Page, ProcessDocumentDefinition, ProcessDocumentDefinitionRequest, ProcessDocumentInstance, DocumentDefinitionCreateRequest, UndeployDocumentDefinitionResult, DocumentSendMessageRequest } from './models';
|
|
4
4
|
import { DocumentSearchRequest } from './document-search-request';
|
|
5
5
|
import { ConfigService } from '@valtimo/config';
|
|
6
6
|
export declare class DocumentService {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface AuditEvent {
|
|
2
|
+
className: string;
|
|
3
|
+
id: string;
|
|
4
|
+
origin: string;
|
|
5
|
+
occurredOn: Date;
|
|
6
|
+
user: string;
|
|
7
|
+
}
|
|
8
|
+
export interface MetaData {
|
|
9
|
+
id: any;
|
|
10
|
+
origin: string;
|
|
11
|
+
occurredOn: Date;
|
|
12
|
+
user: string;
|
|
13
|
+
}
|
|
14
|
+
export interface AuditRecord {
|
|
15
|
+
metaData: MetaData;
|
|
16
|
+
createdOn: Date;
|
|
17
|
+
auditEvent: AuditEvent;
|
|
18
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
export interface SortResult {
|
|
2
|
+
sorted: boolean;
|
|
3
|
+
unsorted: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface Pageable {
|
|
6
|
+
sort: SortResult;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
pageNumber: number;
|
|
9
|
+
offset: number;
|
|
10
|
+
unpaged: boolean;
|
|
11
|
+
paged: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface Page<T> {
|
|
14
|
+
content: Array<T>;
|
|
15
|
+
pageable: Pageable;
|
|
16
|
+
last: boolean;
|
|
17
|
+
totalPages: number;
|
|
18
|
+
totalElements: number;
|
|
19
|
+
first: boolean;
|
|
20
|
+
sort: SortResult;
|
|
21
|
+
numberOfElements: number;
|
|
22
|
+
size: number;
|
|
23
|
+
number: number;
|
|
24
|
+
}
|
|
25
|
+
export interface DocumentDefinitions {
|
|
26
|
+
content: DocumentDefinition[];
|
|
27
|
+
empty: boolean;
|
|
28
|
+
first: boolean;
|
|
29
|
+
last: boolean;
|
|
30
|
+
number: number;
|
|
31
|
+
numberOfElements: number;
|
|
32
|
+
size: number;
|
|
33
|
+
sort: any;
|
|
34
|
+
totalElements: number;
|
|
35
|
+
totalPages: number;
|
|
36
|
+
}
|
|
37
|
+
export interface DocumentDefinition {
|
|
38
|
+
id: DefinitionId;
|
|
39
|
+
schema: any;
|
|
40
|
+
createdOn: string;
|
|
41
|
+
readOnly: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface DefinitionId {
|
|
44
|
+
name: string;
|
|
45
|
+
version: number;
|
|
46
|
+
}
|
|
47
|
+
export interface Documents {
|
|
48
|
+
content: Document[];
|
|
49
|
+
empty: boolean;
|
|
50
|
+
first: boolean;
|
|
51
|
+
last: boolean;
|
|
52
|
+
number: number;
|
|
53
|
+
numberOfElements: number;
|
|
54
|
+
size: number;
|
|
55
|
+
sort: any;
|
|
56
|
+
totalElements: number;
|
|
57
|
+
totalPages: number;
|
|
58
|
+
}
|
|
59
|
+
export interface RelatedFile {
|
|
60
|
+
fileId: string;
|
|
61
|
+
fileName: string;
|
|
62
|
+
sizeInBytes: number;
|
|
63
|
+
createdOn: Date;
|
|
64
|
+
createdBy: string;
|
|
65
|
+
}
|
|
66
|
+
export interface Document {
|
|
67
|
+
id: string;
|
|
68
|
+
content: object;
|
|
69
|
+
version: string;
|
|
70
|
+
createdOn: Date;
|
|
71
|
+
modifiedOn: Date;
|
|
72
|
+
createdBy: string;
|
|
73
|
+
sequence: number;
|
|
74
|
+
definitionName: string;
|
|
75
|
+
relations: string[];
|
|
76
|
+
relatedFiles: RelatedFile[];
|
|
77
|
+
}
|
|
78
|
+
export interface ProcessDocumentDefinitionId {
|
|
79
|
+
processDefinitionKey: string;
|
|
80
|
+
documentDefinitionId: DefinitionId;
|
|
81
|
+
}
|
|
82
|
+
export interface ProcessDocumentDefinition {
|
|
83
|
+
id: ProcessDocumentDefinitionId;
|
|
84
|
+
processName: string;
|
|
85
|
+
canInitializeDocument: boolean;
|
|
86
|
+
startableByUser: boolean;
|
|
87
|
+
}
|
|
88
|
+
export interface ProcessDocumentInstanceId {
|
|
89
|
+
processInstanceId: string;
|
|
90
|
+
documentId: string;
|
|
91
|
+
}
|
|
92
|
+
export interface ProcessDocumentInstance {
|
|
93
|
+
id: ProcessDocumentInstanceId;
|
|
94
|
+
processName: string;
|
|
95
|
+
}
|
|
96
|
+
export interface NewDocumentAndStartProcessResult {
|
|
97
|
+
document: Document;
|
|
98
|
+
processInstanceId: string;
|
|
99
|
+
errors: string[];
|
|
100
|
+
}
|
|
101
|
+
export interface ModifyDocumentAndCompleteTaskResult {
|
|
102
|
+
document: Document;
|
|
103
|
+
errors: string[];
|
|
104
|
+
}
|
|
105
|
+
export interface ModifyDocumentAndStartProcessResult {
|
|
106
|
+
document: Document;
|
|
107
|
+
processInstanceId: string;
|
|
108
|
+
errors: string[];
|
|
109
|
+
}
|
|
110
|
+
export interface DocumentResult {
|
|
111
|
+
document: Document;
|
|
112
|
+
errors: string[];
|
|
113
|
+
}
|
|
114
|
+
export interface ModifyDocumentRequest {
|
|
115
|
+
documentId: string;
|
|
116
|
+
content: object;
|
|
117
|
+
versionBasedOn: string;
|
|
118
|
+
}
|
|
119
|
+
export declare class ModifyDocumentRequestImpl implements ModifyDocumentRequest {
|
|
120
|
+
documentId: string;
|
|
121
|
+
content: object;
|
|
122
|
+
versionBasedOn: string;
|
|
123
|
+
constructor(documentId: string, content: object, versionBasedOn: string);
|
|
124
|
+
}
|
|
125
|
+
export interface ModifyDocumentAndCompleteTaskRequest<T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest> {
|
|
126
|
+
taskId: string;
|
|
127
|
+
request: T_MODIFY_DOCUMENT_REQUEST;
|
|
128
|
+
}
|
|
129
|
+
export declare class ModifyDocumentAndCompleteTaskRequestImpl implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl> {
|
|
130
|
+
taskId: string;
|
|
131
|
+
request: ModifyDocumentRequestImpl;
|
|
132
|
+
constructor(taskId: string, request: ModifyDocumentRequestImpl);
|
|
133
|
+
}
|
|
134
|
+
export interface NewDocumentRequest {
|
|
135
|
+
definition: string;
|
|
136
|
+
content: object;
|
|
137
|
+
}
|
|
138
|
+
export declare class NewDocumentRequestImpl implements NewDocumentRequest {
|
|
139
|
+
definition: string;
|
|
140
|
+
content: object;
|
|
141
|
+
constructor(definition: string, content: object);
|
|
142
|
+
}
|
|
143
|
+
export interface NewDocumentAndStartProcessRequest<T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest> {
|
|
144
|
+
processDefinitionKey: string;
|
|
145
|
+
request: T_NEW_DOCUMENT_REQUEST;
|
|
146
|
+
}
|
|
147
|
+
export declare class NewDocumentAndStartProcessRequestImpl implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl> {
|
|
148
|
+
processDefinitionKey: string;
|
|
149
|
+
request: NewDocumentRequestImpl;
|
|
150
|
+
constructor(processDefinitionKey: string, request: NewDocumentRequestImpl);
|
|
151
|
+
}
|
|
152
|
+
export interface ModifyDocumentAndStartProcessRequest<T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest> {
|
|
153
|
+
processDefinitionKey: string;
|
|
154
|
+
request: T_MODIFY_DOCUMENT_REQUEST;
|
|
155
|
+
}
|
|
156
|
+
export declare class ModifyDocumentAndStartProcessRequestImpl implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl> {
|
|
157
|
+
processDefinitionKey: string;
|
|
158
|
+
request: ModifyDocumentRequestImpl;
|
|
159
|
+
constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl);
|
|
160
|
+
}
|
|
161
|
+
export interface ProcessDocumentDefinitionRequest {
|
|
162
|
+
processDefinitionKey: string;
|
|
163
|
+
documentDefinitionName: string;
|
|
164
|
+
canInitializeDocument: boolean;
|
|
165
|
+
startableByUser: boolean;
|
|
166
|
+
}
|
|
167
|
+
export declare class DocumentDefinitionCreateRequest {
|
|
168
|
+
definition: string;
|
|
169
|
+
constructor(definition: string);
|
|
170
|
+
}
|
|
171
|
+
export interface UndeployDocumentDefinitionResult {
|
|
172
|
+
documentDefinitionName: string;
|
|
173
|
+
errors: string[];
|
|
174
|
+
}
|
|
175
|
+
export interface DocumentSendMessageRequest {
|
|
176
|
+
subject: string;
|
|
177
|
+
bodyText: string;
|
|
178
|
+
}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
package/valtimo-document.d.ts
CHANGED