@valtimo/document 4.15.3-next-main.16 → 4.17.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.
@@ -2,221 +2,307 @@ 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 DocumentService {
21
- constructor(http, configService) {
22
- this.http = http;
23
- this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
24
- }
25
- // Document-calls
26
- getAllDefinitions() {
27
- return this.http.get(`${this.valtimoEndpointUri}document-definition`);
28
- }
29
- queryDefinitions(params) {
30
- return this.http.get(`${this.valtimoEndpointUri}document-definition`, { params: params });
31
- }
32
- getDocumentDefinition(documentDefinitionName) {
33
- return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);
34
- }
35
- getDocuments(documentSearchRequest) {
36
- return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), { params: documentSearchRequest.asHttpParams() });
37
- }
38
- getDocument(documentId) {
39
- return this.http.get(`${this.valtimoEndpointUri}document/${documentId}`);
40
- }
41
- modifyDocument(document) {
42
- return this.http.put(`${this.valtimoEndpointUri}document`, document);
43
- }
44
- // ProcessDocument-calls
45
- getProcessDocumentDefinitions() {
46
- return this.http.get(`${this.valtimoEndpointUri}process-document/definition`);
47
- }
48
- findProcessDocumentDefinitions(documentDefinitionName) {
49
- return this.http.get(`${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`);
50
- }
51
- findProcessDocumentInstances(documentId) {
52
- return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);
53
- }
54
- newDocumentAndStartProcess(request) {
55
- return this.http.post(`${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`, request);
56
- }
57
- modifyDocumentAndCompleteTask(request) {
58
- return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`, request);
59
- }
60
- modifyDocumentAndStartProcess(request) {
61
- return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`, request);
62
- }
63
- createProcessDocumentDefinition(request) {
64
- return this.http.post(`${this.valtimoEndpointUri}process-document/definition`, request);
65
- }
66
- createDocumentDefinition(documentDefinitionCreateRequest) {
67
- const options = {
68
- headers: new HttpHeaders({
69
- 'Content-Type': 'application/json',
70
- }),
71
- };
72
- return this.http.post(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);
73
- }
74
- deleteProcessDocumentDefinition(request) {
75
- const options = {
76
- headers: new HttpHeaders({
77
- 'Content-Type': 'application/json',
78
- }),
79
- body: request,
80
- };
81
- return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);
82
- }
83
- getAuditLog(documentId, page = 0) {
84
- let params = new HttpParams();
85
- params = params.set('page', page.toString());
86
- return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`, { params });
87
- }
88
- assignResource(documentId, resourceId) {
89
- return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});
90
- }
91
- removeResource(documentId, resourceId) {
92
- const options = {
93
- headers: new HttpHeaders({
94
- 'Content-Type': 'application/json',
95
- }),
96
- };
97
- return this.http.delete(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);
98
- }
99
- removeDocumentDefinition(name) {
100
- return this.http.delete(`${this.valtimoEndpointUri}document-definition/${name}`);
101
- }
102
- sendMessage(documentId, request) {
103
- return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);
104
- }
105
- }
106
- DocumentService.ɵprov = ɵɵdefineInjectable({ factory: function DocumentService_Factory() { return new DocumentService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: DocumentService, providedIn: "root" });
107
- DocumentService.decorators = [
108
- { type: Injectable, args: [{
109
- providedIn: 'root',
110
- },] }
111
- ];
112
- DocumentService.ctorParameters = () => [
113
- { type: HttpClient },
114
- { type: ConfigService }
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
+
91
+ /*
92
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
93
+ *
94
+ * Licensed under EUPL, Version 1.2 (the "License");
95
+ * you may not use this file except in compliance with the License.
96
+ * You may obtain a copy of the License at
97
+ *
98
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
99
+ *
100
+ * Unless required by applicable law or agreed to in writing, software
101
+ * distributed under the License is distributed on an "AS IS" basis,
102
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
103
+ * See the License for the specific language governing permissions and
104
+ * limitations under the License.
105
+ */
106
+ class DocumentService {
107
+ constructor(http, configService) {
108
+ this.http = http;
109
+ this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
110
+ }
111
+ // Document-calls
112
+ getAllDefinitions() {
113
+ return this.http.get(`${this.valtimoEndpointUri}document-definition`);
114
+ }
115
+ queryDefinitions(params) {
116
+ return this.http.get(`${this.valtimoEndpointUri}document-definition`, { params: params });
117
+ }
118
+ getDocumentDefinition(documentDefinitionName) {
119
+ return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);
120
+ }
121
+ getDocuments(documentSearchRequest) {
122
+ return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), { params: documentSearchRequest.asHttpParams() });
123
+ }
124
+ getDocument(documentId) {
125
+ return this.http.get(`${this.valtimoEndpointUri}document/${documentId}`);
126
+ }
127
+ modifyDocument(document) {
128
+ return this.http.put(`${this.valtimoEndpointUri}document`, document);
129
+ }
130
+ // ProcessDocument-calls
131
+ getProcessDocumentDefinitions() {
132
+ return this.http.get(`${this.valtimoEndpointUri}process-document/definition`);
133
+ }
134
+ findProcessDocumentDefinitions(documentDefinitionName) {
135
+ return this.http.get(`${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`);
136
+ }
137
+ findProcessDocumentInstances(documentId) {
138
+ return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);
139
+ }
140
+ newDocumentAndStartProcess(request) {
141
+ return this.http.post(`${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`, request);
142
+ }
143
+ modifyDocumentAndCompleteTask(request) {
144
+ return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`, request);
145
+ }
146
+ modifyDocumentAndStartProcess(request) {
147
+ return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`, request);
148
+ }
149
+ createProcessDocumentDefinition(request) {
150
+ return this.http.post(`${this.valtimoEndpointUri}process-document/definition`, request);
151
+ }
152
+ createDocumentDefinition(documentDefinitionCreateRequest) {
153
+ const options = {
154
+ headers: new HttpHeaders({
155
+ 'Content-Type': 'application/json',
156
+ }),
157
+ };
158
+ return this.http.post(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);
159
+ }
160
+ deleteProcessDocumentDefinition(request) {
161
+ const options = {
162
+ headers: new HttpHeaders({
163
+ 'Content-Type': 'application/json',
164
+ }),
165
+ body: request,
166
+ };
167
+ return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);
168
+ }
169
+ getAuditLog(documentId, page = 0) {
170
+ let params = new HttpParams();
171
+ params = params.set('page', page.toString());
172
+ return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`, { params });
173
+ }
174
+ assignResource(documentId, resourceId) {
175
+ return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});
176
+ }
177
+ removeResource(documentId, resourceId) {
178
+ const options = {
179
+ headers: new HttpHeaders({
180
+ 'Content-Type': 'application/json',
181
+ }),
182
+ };
183
+ return this.http.delete(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);
184
+ }
185
+ removeDocumentDefinition(name) {
186
+ return this.http.delete(`${this.valtimoEndpointUri}document-definition/${name}`);
187
+ }
188
+ sendMessage(documentId, request) {
189
+ return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);
190
+ }
191
+ }
192
+ DocumentService.ɵprov = ɵɵdefineInjectable({ factory: function DocumentService_Factory() { return new DocumentService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: DocumentService, providedIn: "root" });
193
+ DocumentService.decorators = [
194
+ { type: Injectable, args: [{
195
+ providedIn: 'root',
196
+ },] }
197
+ ];
198
+ DocumentService.ctorParameters = () => [
199
+ { type: HttpClient },
200
+ { type: ConfigService }
115
201
  ];
116
202
 
117
- /*
118
- * Copyright 2015-2020 Ritense BV, the Netherlands.
119
- *
120
- * Licensed under EUPL, Version 1.2 (the "License");
121
- * you may not use this file except in compliance with the License.
122
- * You may obtain a copy of the License at
123
- *
124
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
125
- *
126
- * Unless required by applicable law or agreed to in writing, software
127
- * distributed under the License is distributed on an "AS IS" basis,
128
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
129
- * See the License for the specific language governing permissions and
130
- * limitations under the License.
131
- */
132
- class DocumentModule {
133
- }
134
- DocumentModule.decorators = [
135
- { type: NgModule }
203
+ /*
204
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
205
+ *
206
+ * Licensed under EUPL, Version 1.2 (the "License");
207
+ * you may not use this file except in compliance with the License.
208
+ * You may obtain a copy of the License at
209
+ *
210
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
211
+ *
212
+ * Unless required by applicable law or agreed to in writing, software
213
+ * distributed under the License is distributed on an "AS IS" basis,
214
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
215
+ * See the License for the specific language governing permissions and
216
+ * limitations under the License.
217
+ */
218
+ class DocumentModule {
219
+ }
220
+ DocumentModule.decorators = [
221
+ { type: NgModule }
136
222
  ];
137
223
 
138
- /*
139
- * Copyright 2015-2020 Ritense BV, the Netherlands.
140
- *
141
- * Licensed under EUPL, Version 1.2 (the "License");
142
- * you may not use this file except in compliance with the License.
143
- * You may obtain a copy of the License at
144
- *
145
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
146
- *
147
- * Unless required by applicable law or agreed to in writing, software
148
- * distributed under the License is distributed on an "AS IS" basis,
149
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
150
- * See the License for the specific language governing permissions and
151
- * limitations under the License.
152
- */
153
- class DocumentSearchRequestHttpBody {
154
- }
155
- class DocumentSearchRequestImpl {
156
- constructor(definitionName, page, size, sequence, createdBy, globalSearchFilter, sort, otherFilters) {
157
- this.definitionName = definitionName;
158
- this.page = page;
159
- this.size = size;
160
- this.sequence = sequence;
161
- this.createdBy = createdBy;
162
- this.globalSearchFilter = globalSearchFilter;
163
- this.sort = sort;
164
- this.otherFilters = otherFilters;
165
- }
166
- asHttpBody() {
167
- const httpBody = new DocumentSearchRequestHttpBody();
168
- httpBody.documentDefinitionName = this.definitionName;
169
- if (this.sequence) {
170
- httpBody.sequence = this.sequence;
171
- }
172
- if (this.createdBy) {
173
- httpBody.createdBy = this.createdBy;
174
- }
175
- if (this.globalSearchFilter) {
176
- httpBody.globalSearchFilter = this.globalSearchFilter;
177
- }
178
- if (this.otherFilters) {
179
- httpBody.otherFilters = this.otherFilters;
180
- }
181
- return httpBody;
182
- }
183
- asHttpParams() {
184
- let params = new HttpParams()
185
- .set('definitionName', this.definitionName)
186
- .set('page', this.page.toString())
187
- .set('size', this.size.toString());
188
- if (this.sort) {
189
- params = params.set('sort', this.getSortString(this.sort));
190
- }
191
- return params;
192
- }
193
- setPage(page) {
194
- this.page = page;
195
- }
196
- getSortString(sort) {
197
- return `${sort.state.name},${sort.state.direction}`;
198
- }
224
+ /*
225
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
226
+ *
227
+ * Licensed under EUPL, Version 1.2 (the "License");
228
+ * you may not use this file except in compliance with the License.
229
+ * You may obtain a copy of the License at
230
+ *
231
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
232
+ *
233
+ * Unless required by applicable law or agreed to in writing, software
234
+ * distributed under the License is distributed on an "AS IS" basis,
235
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
236
+ * See the License for the specific language governing permissions and
237
+ * limitations under the License.
238
+ */
239
+ class DocumentSearchRequestHttpBody {
240
+ }
241
+ class DocumentSearchRequestImpl {
242
+ constructor(definitionName, page, size, sequence, createdBy, globalSearchFilter, sort, otherFilters) {
243
+ this.definitionName = definitionName;
244
+ this.page = page;
245
+ this.size = size;
246
+ this.sequence = sequence;
247
+ this.createdBy = createdBy;
248
+ this.globalSearchFilter = globalSearchFilter;
249
+ this.sort = sort;
250
+ this.otherFilters = otherFilters;
251
+ }
252
+ asHttpBody() {
253
+ const httpBody = new DocumentSearchRequestHttpBody();
254
+ httpBody.documentDefinitionName = this.definitionName;
255
+ if (this.sequence) {
256
+ httpBody.sequence = this.sequence;
257
+ }
258
+ if (this.createdBy) {
259
+ httpBody.createdBy = this.createdBy;
260
+ }
261
+ if (this.globalSearchFilter) {
262
+ httpBody.globalSearchFilter = this.globalSearchFilter;
263
+ }
264
+ if (this.otherFilters) {
265
+ httpBody.otherFilters = this.otherFilters;
266
+ }
267
+ return httpBody;
268
+ }
269
+ asHttpParams() {
270
+ let params = new HttpParams()
271
+ .set('definitionName', this.definitionName)
272
+ .set('page', this.page.toString())
273
+ .set('size', this.size.toString());
274
+ if (this.sort) {
275
+ params = params.set('sort', this.getSortString(this.sort));
276
+ }
277
+ return params;
278
+ }
279
+ setPage(page) {
280
+ this.page = page;
281
+ }
282
+ getSortString(sort) {
283
+ return `${sort.state.name},${sort.state.direction}`;
284
+ }
199
285
  }
200
286
 
201
- /*
202
- * Copyright 2015-2020 Ritense BV, the Netherlands.
203
- *
204
- * Licensed under EUPL, Version 1.2 (the "License");
205
- * you may not use this file except in compliance with the License.
206
- * You may obtain a copy of the License at
207
- *
208
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
209
- *
210
- * Unless required by applicable law or agreed to in writing, software
211
- * distributed under the License is distributed on an "AS IS" basis,
212
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213
- * See the License for the specific language governing permissions and
214
- * limitations under the License.
287
+ /*
288
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
289
+ *
290
+ * Licensed under EUPL, Version 1.2 (the "License");
291
+ * you may not use this file except in compliance with the License.
292
+ * You may obtain a copy of the License at
293
+ *
294
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
295
+ *
296
+ * Unless required by applicable law or agreed to in writing, software
297
+ * distributed under the License is distributed on an "AS IS" basis,
298
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
299
+ * See the License for the specific language governing permissions and
300
+ * limitations under the License.
215
301
  */
216
302
 
217
- /**
218
- * Generated bundle index. Do not edit.
303
+ /**
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>>(\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 '@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,CAClB,GAAG,IAAI,CAAC,kBAAkB,qBAAqB,EAC/C,EAAC,MAAM,EAAE,MAAM,EAAC,CACjB,CAAC;KACH;IAED,qBAAqB,CAAC,sBAA8B;QAClD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAClB,GAAG,IAAI,CAAC,kBAAkB,uBAAuB,sBAAsB,EAAE,CAC1E,CAAC;KACH;IAED,YAAY,CAAC,qBAA4C;QACvD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAC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ects/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;K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