@valtimo/document 5.15.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/document.module.mjs +4 -4
- package/esm2020/lib/document.service.mjs +35 -35
- package/fesm2015/valtimo-document.mjs +38 -38
- package/fesm2015/valtimo-document.mjs.map +1 -1
- package/fesm2020/valtimo-document.mjs +38 -38
- package/fesm2020/valtimo-document.mjs.map +1 -1
- package/{valtimo-document.d.ts → index.d.ts} +0 -0
- package/package.json +5 -5
|
@@ -17,10 +17,10 @@ import { NgModule } from '@angular/core';
|
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
18
|
export class DocumentModule {
|
|
19
19
|
}
|
|
20
|
-
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
22
|
-
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
21
|
+
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule });
|
|
22
|
+
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule, decorators: [{
|
|
24
24
|
type: NgModule
|
|
25
25
|
}] });
|
|
26
26
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG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XRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBOZ01vZHVsZSgpXG5leHBvcnQgY2xhc3MgRG9jdW1lbnRNb2R1bGUge31cbiJdfQ==
|
|
@@ -25,16 +25,16 @@ export class DocumentService {
|
|
|
25
25
|
}
|
|
26
26
|
// Document-calls
|
|
27
27
|
getAllDefinitions() {
|
|
28
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition`);
|
|
28
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition`);
|
|
29
29
|
}
|
|
30
30
|
queryDefinitions(params) {
|
|
31
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition`, { params });
|
|
31
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition`, { params });
|
|
32
32
|
}
|
|
33
33
|
getDocumentDefinition(documentDefinitionName) {
|
|
34
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);
|
|
34
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}`);
|
|
35
35
|
}
|
|
36
36
|
getDocuments(documentSearchRequest) {
|
|
37
|
-
return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), {
|
|
37
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document-search`, documentSearchRequest.asHttpBody(), {
|
|
38
38
|
params: documentSearchRequest.asHttpParams(),
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -69,38 +69,38 @@ export class DocumentService {
|
|
|
69
69
|
return this.http.delete(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`, options);
|
|
70
70
|
}
|
|
71
71
|
getDocumentRoles(documentDefinitionName) {
|
|
72
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`);
|
|
72
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`);
|
|
73
73
|
}
|
|
74
74
|
modifyDocumentRoles(documentDefinitionName, roles) {
|
|
75
|
-
return this.http.put(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`, roles);
|
|
75
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`, roles);
|
|
76
76
|
}
|
|
77
77
|
getDocument(documentId) {
|
|
78
|
-
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}`);
|
|
78
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document/${documentId}`);
|
|
79
79
|
}
|
|
80
80
|
modifyDocument(document) {
|
|
81
|
-
return this.http.put(`${this.valtimoEndpointUri}document`, document);
|
|
81
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/document`, document);
|
|
82
82
|
}
|
|
83
83
|
// ProcessDocument-calls
|
|
84
84
|
getProcessDocumentDefinitions() {
|
|
85
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/definition`);
|
|
85
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition`);
|
|
86
86
|
}
|
|
87
87
|
findProcessDocumentDefinitions(documentDefinitionName) {
|
|
88
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`);
|
|
88
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}`);
|
|
89
89
|
}
|
|
90
90
|
findProcessDocumentInstances(documentId) {
|
|
91
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);
|
|
91
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}`);
|
|
92
92
|
}
|
|
93
93
|
newDocumentAndStartProcess(request) {
|
|
94
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`, request);
|
|
94
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/new-document-and-start-process`, request);
|
|
95
95
|
}
|
|
96
96
|
modifyDocumentAndCompleteTask(request) {
|
|
97
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`, request);
|
|
97
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/modify-document-and-complete-task`, request);
|
|
98
98
|
}
|
|
99
99
|
modifyDocumentAndStartProcess(request) {
|
|
100
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`, request);
|
|
100
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/modify-document-and-start-process`, request);
|
|
101
101
|
}
|
|
102
102
|
createProcessDocumentDefinition(request) {
|
|
103
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/definition`, request);
|
|
103
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/definition`, request);
|
|
104
104
|
}
|
|
105
105
|
createDocumentDefinition(documentDefinitionCreateRequest) {
|
|
106
106
|
const options = {
|
|
@@ -108,7 +108,7 @@ export class DocumentService {
|
|
|
108
108
|
'Content-Type': 'application/json',
|
|
109
109
|
}),
|
|
110
110
|
};
|
|
111
|
-
return this.http.post(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);
|
|
111
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document-definition`, documentDefinitionCreateRequest, options);
|
|
112
112
|
}
|
|
113
113
|
deleteProcessDocumentDefinition(request) {
|
|
114
114
|
const options = {
|
|
@@ -117,15 +117,15 @@ export class DocumentService {
|
|
|
117
117
|
}),
|
|
118
118
|
body: request,
|
|
119
119
|
};
|
|
120
|
-
return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);
|
|
120
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/process-document/definition`, options);
|
|
121
121
|
}
|
|
122
122
|
getAuditLog(documentId, page = 0) {
|
|
123
123
|
let params = new HttpParams();
|
|
124
124
|
params = params.set('page', page.toString());
|
|
125
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`, { params });
|
|
125
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}/audit`, { params });
|
|
126
126
|
}
|
|
127
127
|
assignResource(documentId, resourceId) {
|
|
128
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});
|
|
128
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/resource/${resourceId}`, {});
|
|
129
129
|
}
|
|
130
130
|
removeResource(documentId, resourceId) {
|
|
131
131
|
const options = {
|
|
@@ -133,43 +133,43 @@ export class DocumentService {
|
|
|
133
133
|
'Content-Type': 'application/json',
|
|
134
134
|
}),
|
|
135
135
|
};
|
|
136
|
-
return this.http.delete(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);
|
|
136
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/document/${documentId}/resource/${resourceId}`, options);
|
|
137
137
|
}
|
|
138
138
|
removeDocumentDefinition(name) {
|
|
139
|
-
return this.http.delete(`${this.valtimoEndpointUri}document-definition/${name}`);
|
|
139
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/document-definition/${name}`);
|
|
140
140
|
}
|
|
141
141
|
sendMessage(documentId, request) {
|
|
142
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);
|
|
142
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/message`, request);
|
|
143
143
|
}
|
|
144
144
|
getDocumentTypes(documentDefinitionName) {
|
|
145
|
-
return this.http.get(`${this.valtimoEndpointUri}documentdefinition/${documentDefinitionName}/zaaktype/documenttype`);
|
|
145
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/documentdefinition/${documentDefinitionName}/zaaktype/documenttype`);
|
|
146
146
|
}
|
|
147
147
|
getLinkedUploadProcess(documentDefinitionName) {
|
|
148
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`);
|
|
148
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`);
|
|
149
149
|
}
|
|
150
150
|
updateLinkedUploadProcess(documentDefinitionName, processDefinitionKey) {
|
|
151
|
-
return this.http.put(`${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`, {
|
|
151
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`, {
|
|
152
152
|
processDefinitionKey,
|
|
153
153
|
linkType: 'DOCUMENT_UPLOAD',
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
deleteLinkedUploadProcess(documentDefinitionName) {
|
|
157
|
-
return this.http.delete(`${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`);
|
|
157
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`);
|
|
158
158
|
}
|
|
159
159
|
getProcessDocumentDefinitionFromProcessInstanceId(processInstanceId) {
|
|
160
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/definition/processinstance/${processInstanceId}`);
|
|
160
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/processinstance/${processInstanceId}`);
|
|
161
161
|
}
|
|
162
162
|
assignHandlerToDocument(documentId, assigneeId) {
|
|
163
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/assign`, { assigneeId });
|
|
163
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/assign`, { assigneeId });
|
|
164
164
|
}
|
|
165
165
|
unassignHandlerFromDocument(documentId) {
|
|
166
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/unassign`, {});
|
|
166
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/unassign`, {});
|
|
167
167
|
}
|
|
168
168
|
getCandidateUsers(documentId) {
|
|
169
|
-
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}/candidate-user`);
|
|
169
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document/${documentId}/candidate-user`);
|
|
170
170
|
}
|
|
171
171
|
getOpenDocumentCount() {
|
|
172
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition/open/count`);
|
|
172
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/open/count`);
|
|
173
173
|
}
|
|
174
174
|
patchCaseSettings(documentDefinitionName, request) {
|
|
175
175
|
return this.http.patch(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`, { ...request });
|
|
@@ -178,12 +178,12 @@ export class DocumentService {
|
|
|
178
178
|
return this.http.get(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
182
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
181
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
182
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentService, decorators: [{
|
|
184
184
|
type: Injectable,
|
|
185
185
|
args: [{
|
|
186
186
|
providedIn: 'root',
|
|
187
187
|
}]
|
|
188
188
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type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UtdXNlcmBcbiAgICApO1xuICB9XG5cbiAgZ2V0T3BlbkRvY3VtZW50Q291bnQoKTogT2JzZXJ2YWJsZTxBcnJheTxPcGVuRG9jdW1lbnRDb3VudD4+IHtcbiAgICByZXR1cm4gdGhpcy5odHRwLmdldDxBcnJheTxPcGVuRG9jdW1lbnRDb3VudD4+KFxuICAgICAgYCR7dGhpcy52YWx0aW1vRW5kcG9pbnRVcml9djEvZG9jdW1lbnQtZGVmaW5pdGlvbi9vcGVuL2NvdW50YFxuICAgICk7XG4gIH1cblxuICBwYXRjaENhc2VTZXR0aW5ncyhcbiAgICBkb2N1bWVudERlZmluaXRpb25OYW1lOiBzdHJpbmcsXG4gICAgcmVxdWVzdDogQ2FzZVNldHRpbmdzXG4gICk6IE9ic2VydmFibGU8Q2FzZVNldHRpbmdzPiB7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5wYXRjaDxDYXNlU2V0dGluZ3M+KFxuICAgICAgYCR7dGhpcy52YWx0aW1vRW5kcG9pbnRVcml9djEvY2FzZS8ke2RvY3VtZW50RGVmaW5pdGlvbk5hbWV9L3NldHRpbmdzYCxcbiAgICAgIHsuLi5yZXF1ZXN0fVxuICAgICk7XG4gIH1cblxuICBnZXRDYXNlU2V0dGluZ3MoZG9jdW1lbnREZWZpbml0aW9uTmFtZTogc3RyaW5nKTogT2JzZXJ2YWJsZTxDYXNlU2V0dGluZ3M+IHtcbiAgICByZXR1cm4gdGhpcy5odHRwLmdldDxDYXNlU2V0dGluZ3M+KFxuICAgICAgYCR7dGhpcy52YWx0aW1vRW5kcG9pbnRVcml9djEvY2FzZS8ke2RvY3VtZW50RGVmaW5pdGlvbk5hbWV9L3NldHRpbmdzYFxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -94,16 +94,16 @@ class DocumentService {
|
|
|
94
94
|
}
|
|
95
95
|
// Document-calls
|
|
96
96
|
getAllDefinitions() {
|
|
97
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition`);
|
|
97
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition`);
|
|
98
98
|
}
|
|
99
99
|
queryDefinitions(params) {
|
|
100
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition`, { params });
|
|
100
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition`, { params });
|
|
101
101
|
}
|
|
102
102
|
getDocumentDefinition(documentDefinitionName) {
|
|
103
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);
|
|
103
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}`);
|
|
104
104
|
}
|
|
105
105
|
getDocuments(documentSearchRequest) {
|
|
106
|
-
return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), {
|
|
106
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document-search`, documentSearchRequest.asHttpBody(), {
|
|
107
107
|
params: documentSearchRequest.asHttpParams(),
|
|
108
108
|
});
|
|
109
109
|
}
|
|
@@ -138,38 +138,38 @@ class DocumentService {
|
|
|
138
138
|
return this.http.delete(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`, options);
|
|
139
139
|
}
|
|
140
140
|
getDocumentRoles(documentDefinitionName) {
|
|
141
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`);
|
|
141
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`);
|
|
142
142
|
}
|
|
143
143
|
modifyDocumentRoles(documentDefinitionName, roles) {
|
|
144
|
-
return this.http.put(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`, roles);
|
|
144
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`, roles);
|
|
145
145
|
}
|
|
146
146
|
getDocument(documentId) {
|
|
147
|
-
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}`);
|
|
147
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document/${documentId}`);
|
|
148
148
|
}
|
|
149
149
|
modifyDocument(document) {
|
|
150
|
-
return this.http.put(`${this.valtimoEndpointUri}document`, document);
|
|
150
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/document`, document);
|
|
151
151
|
}
|
|
152
152
|
// ProcessDocument-calls
|
|
153
153
|
getProcessDocumentDefinitions() {
|
|
154
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/definition`);
|
|
154
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition`);
|
|
155
155
|
}
|
|
156
156
|
findProcessDocumentDefinitions(documentDefinitionName) {
|
|
157
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`);
|
|
157
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}`);
|
|
158
158
|
}
|
|
159
159
|
findProcessDocumentInstances(documentId) {
|
|
160
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);
|
|
160
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}`);
|
|
161
161
|
}
|
|
162
162
|
newDocumentAndStartProcess(request) {
|
|
163
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`, request);
|
|
163
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/new-document-and-start-process`, request);
|
|
164
164
|
}
|
|
165
165
|
modifyDocumentAndCompleteTask(request) {
|
|
166
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`, request);
|
|
166
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/modify-document-and-complete-task`, request);
|
|
167
167
|
}
|
|
168
168
|
modifyDocumentAndStartProcess(request) {
|
|
169
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`, request);
|
|
169
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/modify-document-and-start-process`, request);
|
|
170
170
|
}
|
|
171
171
|
createProcessDocumentDefinition(request) {
|
|
172
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/definition`, request);
|
|
172
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/definition`, request);
|
|
173
173
|
}
|
|
174
174
|
createDocumentDefinition(documentDefinitionCreateRequest) {
|
|
175
175
|
const options = {
|
|
@@ -177,7 +177,7 @@ class DocumentService {
|
|
|
177
177
|
'Content-Type': 'application/json',
|
|
178
178
|
}),
|
|
179
179
|
};
|
|
180
|
-
return this.http.post(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);
|
|
180
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document-definition`, documentDefinitionCreateRequest, options);
|
|
181
181
|
}
|
|
182
182
|
deleteProcessDocumentDefinition(request) {
|
|
183
183
|
const options = {
|
|
@@ -186,15 +186,15 @@ class DocumentService {
|
|
|
186
186
|
}),
|
|
187
187
|
body: request,
|
|
188
188
|
};
|
|
189
|
-
return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);
|
|
189
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/process-document/definition`, options);
|
|
190
190
|
}
|
|
191
191
|
getAuditLog(documentId, page = 0) {
|
|
192
192
|
let params = new HttpParams();
|
|
193
193
|
params = params.set('page', page.toString());
|
|
194
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`, { params });
|
|
194
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}/audit`, { params });
|
|
195
195
|
}
|
|
196
196
|
assignResource(documentId, resourceId) {
|
|
197
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});
|
|
197
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/resource/${resourceId}`, {});
|
|
198
198
|
}
|
|
199
199
|
removeResource(documentId, resourceId) {
|
|
200
200
|
const options = {
|
|
@@ -202,43 +202,43 @@ class DocumentService {
|
|
|
202
202
|
'Content-Type': 'application/json',
|
|
203
203
|
}),
|
|
204
204
|
};
|
|
205
|
-
return this.http.delete(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);
|
|
205
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/document/${documentId}/resource/${resourceId}`, options);
|
|
206
206
|
}
|
|
207
207
|
removeDocumentDefinition(name) {
|
|
208
|
-
return this.http.delete(`${this.valtimoEndpointUri}document-definition/${name}`);
|
|
208
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/document-definition/${name}`);
|
|
209
209
|
}
|
|
210
210
|
sendMessage(documentId, request) {
|
|
211
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);
|
|
211
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/message`, request);
|
|
212
212
|
}
|
|
213
213
|
getDocumentTypes(documentDefinitionName) {
|
|
214
|
-
return this.http.get(`${this.valtimoEndpointUri}documentdefinition/${documentDefinitionName}/zaaktype/documenttype`);
|
|
214
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/documentdefinition/${documentDefinitionName}/zaaktype/documenttype`);
|
|
215
215
|
}
|
|
216
216
|
getLinkedUploadProcess(documentDefinitionName) {
|
|
217
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`);
|
|
217
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`);
|
|
218
218
|
}
|
|
219
219
|
updateLinkedUploadProcess(documentDefinitionName, processDefinitionKey) {
|
|
220
|
-
return this.http.put(`${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`, {
|
|
220
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`, {
|
|
221
221
|
processDefinitionKey,
|
|
222
222
|
linkType: 'DOCUMENT_UPLOAD',
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
deleteLinkedUploadProcess(documentDefinitionName) {
|
|
226
|
-
return this.http.delete(`${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`);
|
|
226
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`);
|
|
227
227
|
}
|
|
228
228
|
getProcessDocumentDefinitionFromProcessInstanceId(processInstanceId) {
|
|
229
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/definition/processinstance/${processInstanceId}`);
|
|
229
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/processinstance/${processInstanceId}`);
|
|
230
230
|
}
|
|
231
231
|
assignHandlerToDocument(documentId, assigneeId) {
|
|
232
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/assign`, { assigneeId });
|
|
232
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/assign`, { assigneeId });
|
|
233
233
|
}
|
|
234
234
|
unassignHandlerFromDocument(documentId) {
|
|
235
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/unassign`, {});
|
|
235
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/unassign`, {});
|
|
236
236
|
}
|
|
237
237
|
getCandidateUsers(documentId) {
|
|
238
|
-
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}/candidate-user`);
|
|
238
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document/${documentId}/candidate-user`);
|
|
239
239
|
}
|
|
240
240
|
getOpenDocumentCount() {
|
|
241
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition/open/count`);
|
|
241
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/open/count`);
|
|
242
242
|
}
|
|
243
243
|
patchCaseSettings(documentDefinitionName, request) {
|
|
244
244
|
return this.http.patch(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`, Object.assign({}, request));
|
|
@@ -247,9 +247,9 @@ class DocumentService {
|
|
|
247
247
|
return this.http.get(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
251
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
250
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
251
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentService, decorators: [{
|
|
253
253
|
type: Injectable,
|
|
254
254
|
args: [{
|
|
255
255
|
providedIn: 'root',
|
|
@@ -273,10 +273,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
273
273
|
*/
|
|
274
274
|
class DocumentModule {
|
|
275
275
|
}
|
|
276
|
-
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
277
|
-
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
278
|
-
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
276
|
+
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
277
|
+
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule });
|
|
278
|
+
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule });
|
|
279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule, decorators: [{
|
|
280
280
|
type: NgModule
|
|
281
281
|
}] });
|
|
282
282
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-document.mjs","sources":["../../../../projects/valtimo/document/src/lib/models/document.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/lib/advanced-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 assigneeFullName: string;\n assigneeId: string;\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 isActive: boolean;\n}\n\nexport interface AssignHandlerToDocumentResult {\n assigneeId: 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\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n\nexport interface DocumentType {\n url: string;\n name: string;\n}\n\nexport interface UploadProcessLink {\n processDefinitionKey: string;\n processName: string;\n}\n\nexport interface UpdateUploadProcessLinkRequest {\n processDefinitionKey: string;\n}\n\nexport interface CaseSettings {\n name?: string;\n canHaveAssignee: boolean;\n}\n\nexport interface OpenDocumentCount {\n documentDefinitionName: string;\n openDocumentCount: number;\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 * 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 AssignHandlerToDocumentResult,\n AuditRecord,\n CaseSettings,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n DocumentType,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n OpenDocumentCount,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n UploadProcessLink,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {\n AssigneeFilter,\n ConfigService,\n SearchField,\n SearchFilter,\n SearchFilterRange,\n SearchOperator,\n User,\n} from '@valtimo/config';\nimport {AdvancedDocumentSearchRequest} from './advanced-document-search-request';\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}\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 {\n params: documentSearchRequest.asHttpParams(),\n }\n );\n }\n\n getDocumentsSearch(\n documentSearchRequest: AdvancedDocumentSearchRequest,\n searchOperator?: SearchOperator,\n assigneeFilter?: AssigneeFilter,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ): Observable<Documents> {\n const body = documentSearchRequest.asHttpBody();\n\n if (searchOperator) {\n body.searchOperator = searchOperator;\n }\n\n if (assigneeFilter) {\n body.assigneeFilter = assigneeFilter;\n }\n\n if (otherFilters) {\n body.otherFilters = otherFilters;\n }\n\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentSearchRequest.definitionName}/search`,\n body,\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n getDocumentSearchFields(documentDefinitionName: string): Observable<Array<SearchField>> {\n return this.http.get<Array<SearchField>>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`\n );\n }\n\n putDocumentSearch(documentDefinitionName: string, request: Array<SearchField>): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n [...request]\n );\n }\n\n postDocumentSearch(documentDefinitionName: string, request: SearchField): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n {...request}\n );\n }\n\n deleteDocumentSearch(documentDefinitionName: string, key: string): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`,\n options\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\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 getDocumentTypes(documentDefinitionName: string): Observable<Array<DocumentType>> {\n return this.http.get<Array<DocumentType>>(\n `${this.valtimoEndpointUri}documentdefinition/${documentDefinitionName}/zaaktype/documenttype`\n );\n }\n\n getLinkedUploadProcess(documentDefinitionName: string): Observable<UploadProcessLink> {\n return this.http.get<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n updateLinkedUploadProcess(\n documentDefinitionName: string,\n processDefinitionKey: string\n ): Observable<UploadProcessLink> {\n return this.http.put<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`,\n {\n processDefinitionKey,\n linkType: 'DOCUMENT_UPLOAD',\n }\n );\n }\n\n deleteLinkedUploadProcess(documentDefinitionName: string): Observable<void> {\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n getProcessDocumentDefinitionFromProcessInstanceId(\n processInstanceId: string\n ): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition/processinstance/${processInstanceId}`\n );\n }\n\n assignHandlerToDocument(\n documentId: string,\n assigneeId: string\n ): Observable<AssignHandlerToDocumentResult> {\n return this.http.post<AssignHandlerToDocumentResult>(\n `${this.valtimoEndpointUri}document/${documentId}/assign`,\n {assigneeId}\n );\n }\n\n unassignHandlerFromDocument(documentId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}document/${documentId}/unassign`, {});\n }\n\n getCandidateUsers(documentId: string): Observable<Array<User>> {\n return this.http.get<Array<User>>(\n `${this.valtimoEndpointUri}document/${documentId}/candidate-user`\n );\n }\n\n getOpenDocumentCount(): Observable<Array<OpenDocumentCount>> {\n return this.http.get<Array<OpenDocumentCount>>(\n `${this.valtimoEndpointUri}document-definition/open/count`\n );\n }\n\n patchCaseSettings(\n documentDefinitionName: string,\n request: CaseSettings\n ): Observable<CaseSettings> {\n return this.http.patch<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`,\n {...request}\n );\n }\n\n getCaseSettings(documentDefinitionName: string): Observable<CaseSettings> {\n return this.http.get<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`\n );\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\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\nimport {AssigneeFilter, SearchFilter, SearchFilterRange, SearchOperator} from '@valtimo/config';\n\nexport interface AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class AdvancedDocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n assigneeFilter?: AssigneeFilter;\n}\n\nexport class AdvancedDocumentSearchRequestImpl implements AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sort?: SortState,\n searchOperator?: SearchOperator,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sort = sort;\n this.otherFilters = otherFilters;\n this.searchOperator = searchOperator;\n }\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody {\n const httpBody = new AdvancedDocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n if (this.searchOperator) {\n httpBody.searchOperator = this.searchOperator;\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';\nexport * from './lib/advanced-document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAiJU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,MAAc,EAAE,OAAkC,EAAA;AAC5D,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MAOY,sBAAsB,CAAA;IAIjC,WAAY,CAAA,UAAkB,EAAE,OAAe,EAAA;AAC7C,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,qCAAqC,CAAA;IAMhD,WAAY,CAAA,oBAA4B,EAAE,OAA+B,EAAA;AACvE,QAAA,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACjD,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,oBAA4B,EAAE,OAAkC,EAAA;AAC1E,QAAA,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACjD,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,+BAA+B,CAAA;AAG1C,IAAA,WAAA,CAAY,UAAkB,EAAA;AAC5B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AA,OAAO,QAAQ,CAAC;KACjB;IAED,YAAY,GAAA;AACV,QAAA,IAAI,MAAM,GAAG,IAAI,UAAU,EAAE;AAC1B,aAAA,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;AACb,YAAA,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5D,SAAA;AACD,QAAA,OAAO,MAAM,CAAC;KACf;AAED,IAAA,OAAO,CAAC,IAAY,EAAA;AAClB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;AAED,IAAA,aAAa,CAAC,IAAe,EAAA;AAC3B,QAAA,OAAO,CAAG,EAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;AACF;;AClGD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"valtimo-document.mjs","sources":["../../../../projects/valtimo/document/src/lib/models/document.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/lib/advanced-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 assigneeFullName: string;\n assigneeId: string;\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 isActive: boolean;\n}\n\nexport interface AssignHandlerToDocumentResult {\n assigneeId: 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\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n\nexport interface DocumentType {\n url: string;\n name: string;\n}\n\nexport interface UploadProcessLink {\n processDefinitionKey: string;\n processName: string;\n}\n\nexport interface UpdateUploadProcessLinkRequest {\n processDefinitionKey: string;\n}\n\nexport interface CaseSettings {\n name?: string;\n canHaveAssignee: boolean;\n}\n\nexport interface OpenDocumentCount {\n documentDefinitionName: string;\n openDocumentCount: number;\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 * 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 AssignHandlerToDocumentResult,\n AuditRecord,\n CaseSettings,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n DocumentType,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n OpenDocumentCount,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n UploadProcessLink,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {\n AssigneeFilter,\n ConfigService,\n SearchField,\n SearchFilter,\n SearchFilterRange,\n SearchOperator,\n User,\n} from '@valtimo/config';\nimport {AdvancedDocumentSearchRequest} from './advanced-document-search-request';\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}v1/document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}v1/document-definition`,\n {params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}v1/document-search`,\n documentSearchRequest.asHttpBody(),\n {\n params: documentSearchRequest.asHttpParams(),\n }\n );\n }\n\n getDocumentsSearch(\n documentSearchRequest: AdvancedDocumentSearchRequest,\n searchOperator?: SearchOperator,\n assigneeFilter?: AssigneeFilter,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ): Observable<Documents> {\n const body = documentSearchRequest.asHttpBody();\n\n if (searchOperator) {\n body.searchOperator = searchOperator;\n }\n\n if (assigneeFilter) {\n body.assigneeFilter = assigneeFilter;\n }\n\n if (otherFilters) {\n body.otherFilters = otherFilters;\n }\n\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentSearchRequest.definitionName}/search`,\n body,\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n getDocumentSearchFields(documentDefinitionName: string): Observable<Array<SearchField>> {\n return this.http.get<Array<SearchField>>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`\n );\n }\n\n putDocumentSearch(documentDefinitionName: string, request: Array<SearchField>): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n [...request]\n );\n }\n\n postDocumentSearch(documentDefinitionName: string, request: SearchField): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n {...request}\n );\n }\n\n deleteDocumentSearch(documentDefinitionName: string, key: string): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`,\n options\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}v1/document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}v1/document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}v1/process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}v1/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}v1/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}v1/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}v1/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}v1/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}v1/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}v1/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}v1/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}v1/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}v1/document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}v1/document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/message`, request);\n }\n\n getDocumentTypes(documentDefinitionName: string): Observable<Array<DocumentType>> {\n return this.http.get<Array<DocumentType>>(\n `${this.valtimoEndpointUri}v1/documentdefinition/${documentDefinitionName}/zaaktype/documenttype`\n );\n }\n\n getLinkedUploadProcess(documentDefinitionName: string): Observable<UploadProcessLink> {\n return this.http.get<UploadProcessLink>(\n `${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n updateLinkedUploadProcess(\n documentDefinitionName: string,\n processDefinitionKey: string\n ): Observable<UploadProcessLink> {\n return this.http.put<UploadProcessLink>(\n `${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`,\n {\n processDefinitionKey,\n linkType: 'DOCUMENT_UPLOAD',\n }\n );\n }\n\n deleteLinkedUploadProcess(documentDefinitionName: string): Observable<void> {\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n getProcessDocumentDefinitionFromProcessInstanceId(\n processInstanceId: string\n ): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}v1/process-document/definition/processinstance/${processInstanceId}`\n );\n }\n\n assignHandlerToDocument(\n documentId: string,\n assigneeId: string\n ): Observable<AssignHandlerToDocumentResult> {\n return this.http.post<AssignHandlerToDocumentResult>(\n `${this.valtimoEndpointUri}v1/document/${documentId}/assign`,\n {assigneeId}\n );\n }\n\n unassignHandlerFromDocument(documentId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}v1/document/${documentId}/unassign`, {});\n }\n\n getCandidateUsers(documentId: string): Observable<Array<User>> {\n return this.http.get<Array<User>>(\n `${this.valtimoEndpointUri}v1/document/${documentId}/candidate-user`\n );\n }\n\n getOpenDocumentCount(): Observable<Array<OpenDocumentCount>> {\n return this.http.get<Array<OpenDocumentCount>>(\n `${this.valtimoEndpointUri}v1/document-definition/open/count`\n );\n }\n\n patchCaseSettings(\n documentDefinitionName: string,\n request: CaseSettings\n ): Observable<CaseSettings> {\n return this.http.patch<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`,\n {...request}\n );\n }\n\n getCaseSettings(documentDefinitionName: string): Observable<CaseSettings> {\n return this.http.get<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`\n );\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\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\nimport {AssigneeFilter, SearchFilter, SearchFilterRange, SearchOperator} from '@valtimo/config';\n\nexport interface AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class AdvancedDocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n assigneeFilter?: AssigneeFilter;\n}\n\nexport class AdvancedDocumentSearchRequestImpl implements AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sort?: SortState,\n searchOperator?: SearchOperator,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sort = sort;\n this.otherFilters = otherFilters;\n this.searchOperator = searchOperator;\n }\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody {\n const httpBody = new AdvancedDocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n if (this.searchOperator) {\n httpBody.searchOperator = this.searchOperator;\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';\nexport * from './lib/advanced-document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAiJU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,MAAc,EAAE,OAAkC,EAAA;AAC5D,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;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;AAED,IAAA,aAAa,CAAC,IAAe,EAAA;AAC3B,QAAA,OAAO,CAAG,EAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;AACF;;AClGD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
@@ -126,16 +126,16 @@ class DocumentService {
|
|
|
126
126
|
}
|
|
127
127
|
// Document-calls
|
|
128
128
|
getAllDefinitions() {
|
|
129
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition`);
|
|
129
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition`);
|
|
130
130
|
}
|
|
131
131
|
queryDefinitions(params) {
|
|
132
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition`, { params });
|
|
132
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition`, { params });
|
|
133
133
|
}
|
|
134
134
|
getDocumentDefinition(documentDefinitionName) {
|
|
135
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);
|
|
135
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}`);
|
|
136
136
|
}
|
|
137
137
|
getDocuments(documentSearchRequest) {
|
|
138
|
-
return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), {
|
|
138
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document-search`, documentSearchRequest.asHttpBody(), {
|
|
139
139
|
params: documentSearchRequest.asHttpParams(),
|
|
140
140
|
});
|
|
141
141
|
}
|
|
@@ -170,38 +170,38 @@ class DocumentService {
|
|
|
170
170
|
return this.http.delete(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`, options);
|
|
171
171
|
}
|
|
172
172
|
getDocumentRoles(documentDefinitionName) {
|
|
173
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`);
|
|
173
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`);
|
|
174
174
|
}
|
|
175
175
|
modifyDocumentRoles(documentDefinitionName, roles) {
|
|
176
|
-
return this.http.put(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`, roles);
|
|
176
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`, roles);
|
|
177
177
|
}
|
|
178
178
|
getDocument(documentId) {
|
|
179
|
-
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}`);
|
|
179
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document/${documentId}`);
|
|
180
180
|
}
|
|
181
181
|
modifyDocument(document) {
|
|
182
|
-
return this.http.put(`${this.valtimoEndpointUri}document`, document);
|
|
182
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/document`, document);
|
|
183
183
|
}
|
|
184
184
|
// ProcessDocument-calls
|
|
185
185
|
getProcessDocumentDefinitions() {
|
|
186
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/definition`);
|
|
186
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition`);
|
|
187
187
|
}
|
|
188
188
|
findProcessDocumentDefinitions(documentDefinitionName) {
|
|
189
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`);
|
|
189
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}`);
|
|
190
190
|
}
|
|
191
191
|
findProcessDocumentInstances(documentId) {
|
|
192
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);
|
|
192
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}`);
|
|
193
193
|
}
|
|
194
194
|
newDocumentAndStartProcess(request) {
|
|
195
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`, request);
|
|
195
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/new-document-and-start-process`, request);
|
|
196
196
|
}
|
|
197
197
|
modifyDocumentAndCompleteTask(request) {
|
|
198
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`, request);
|
|
198
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/modify-document-and-complete-task`, request);
|
|
199
199
|
}
|
|
200
200
|
modifyDocumentAndStartProcess(request) {
|
|
201
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`, request);
|
|
201
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/operation/modify-document-and-start-process`, request);
|
|
202
202
|
}
|
|
203
203
|
createProcessDocumentDefinition(request) {
|
|
204
|
-
return this.http.post(`${this.valtimoEndpointUri}process-document/definition`, request);
|
|
204
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/process-document/definition`, request);
|
|
205
205
|
}
|
|
206
206
|
createDocumentDefinition(documentDefinitionCreateRequest) {
|
|
207
207
|
const options = {
|
|
@@ -209,7 +209,7 @@ class DocumentService {
|
|
|
209
209
|
'Content-Type': 'application/json',
|
|
210
210
|
}),
|
|
211
211
|
};
|
|
212
|
-
return this.http.post(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);
|
|
212
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document-definition`, documentDefinitionCreateRequest, options);
|
|
213
213
|
}
|
|
214
214
|
deleteProcessDocumentDefinition(request) {
|
|
215
215
|
const options = {
|
|
@@ -218,15 +218,15 @@ class DocumentService {
|
|
|
218
218
|
}),
|
|
219
219
|
body: request,
|
|
220
220
|
};
|
|
221
|
-
return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);
|
|
221
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/process-document/definition`, options);
|
|
222
222
|
}
|
|
223
223
|
getAuditLog(documentId, page = 0) {
|
|
224
224
|
let params = new HttpParams();
|
|
225
225
|
params = params.set('page', page.toString());
|
|
226
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`, { params });
|
|
226
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/instance/document/${documentId}/audit`, { params });
|
|
227
227
|
}
|
|
228
228
|
assignResource(documentId, resourceId) {
|
|
229
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});
|
|
229
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/resource/${resourceId}`, {});
|
|
230
230
|
}
|
|
231
231
|
removeResource(documentId, resourceId) {
|
|
232
232
|
const options = {
|
|
@@ -234,43 +234,43 @@ class DocumentService {
|
|
|
234
234
|
'Content-Type': 'application/json',
|
|
235
235
|
}),
|
|
236
236
|
};
|
|
237
|
-
return this.http.delete(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);
|
|
237
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/document/${documentId}/resource/${resourceId}`, options);
|
|
238
238
|
}
|
|
239
239
|
removeDocumentDefinition(name) {
|
|
240
|
-
return this.http.delete(`${this.valtimoEndpointUri}document-definition/${name}`);
|
|
240
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/document-definition/${name}`);
|
|
241
241
|
}
|
|
242
242
|
sendMessage(documentId, request) {
|
|
243
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);
|
|
243
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/message`, request);
|
|
244
244
|
}
|
|
245
245
|
getDocumentTypes(documentDefinitionName) {
|
|
246
|
-
return this.http.get(`${this.valtimoEndpointUri}documentdefinition/${documentDefinitionName}/zaaktype/documenttype`);
|
|
246
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/documentdefinition/${documentDefinitionName}/zaaktype/documenttype`);
|
|
247
247
|
}
|
|
248
248
|
getLinkedUploadProcess(documentDefinitionName) {
|
|
249
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`);
|
|
249
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`);
|
|
250
250
|
}
|
|
251
251
|
updateLinkedUploadProcess(documentDefinitionName, processDefinitionKey) {
|
|
252
|
-
return this.http.put(`${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`, {
|
|
252
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`, {
|
|
253
253
|
processDefinitionKey,
|
|
254
254
|
linkType: 'DOCUMENT_UPLOAD',
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
deleteLinkedUploadProcess(documentDefinitionName) {
|
|
258
|
-
return this.http.delete(`${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`);
|
|
258
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`);
|
|
259
259
|
}
|
|
260
260
|
getProcessDocumentDefinitionFromProcessInstanceId(processInstanceId) {
|
|
261
|
-
return this.http.get(`${this.valtimoEndpointUri}process-document/definition/processinstance/${processInstanceId}`);
|
|
261
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/process-document/definition/processinstance/${processInstanceId}`);
|
|
262
262
|
}
|
|
263
263
|
assignHandlerToDocument(documentId, assigneeId) {
|
|
264
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/assign`, { assigneeId });
|
|
264
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/assign`, { assigneeId });
|
|
265
265
|
}
|
|
266
266
|
unassignHandlerFromDocument(documentId) {
|
|
267
|
-
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/unassign`, {});
|
|
267
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/unassign`, {});
|
|
268
268
|
}
|
|
269
269
|
getCandidateUsers(documentId) {
|
|
270
|
-
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}/candidate-user`);
|
|
270
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document/${documentId}/candidate-user`);
|
|
271
271
|
}
|
|
272
272
|
getOpenDocumentCount() {
|
|
273
|
-
return this.http.get(`${this.valtimoEndpointUri}document-definition/open/count`);
|
|
273
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-definition/open/count`);
|
|
274
274
|
}
|
|
275
275
|
patchCaseSettings(documentDefinitionName, request) {
|
|
276
276
|
return this.http.patch(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`, { ...request });
|
|
@@ -279,9 +279,9 @@ class DocumentService {
|
|
|
279
279
|
return this.http.get(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`);
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
283
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
282
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
283
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentService, decorators: [{
|
|
285
285
|
type: Injectable,
|
|
286
286
|
args: [{
|
|
287
287
|
providedIn: 'root',
|
|
@@ -305,10 +305,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
305
305
|
*/
|
|
306
306
|
class DocumentModule {
|
|
307
307
|
}
|
|
308
|
-
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
309
|
-
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
310
|
-
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
308
|
+
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
309
|
+
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule });
|
|
310
|
+
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule });
|
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DocumentModule, decorators: [{
|
|
312
312
|
type: NgModule
|
|
313
313
|
}] });
|
|
314
314
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-document.mjs","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/list-sorting.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/lib/advanced-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 assigneeFullName: string;\n assigneeId: string;\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 isActive: boolean;\n}\n\nexport interface AssignHandlerToDocumentResult {\n assigneeId: 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\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n\nexport interface DocumentType {\n url: string;\n name: string;\n}\n\nexport interface UploadProcessLink {\n processDefinitionKey: string;\n processName: string;\n}\n\nexport interface UpdateUploadProcessLinkRequest {\n processDefinitionKey: string;\n}\n\nexport interface CaseSettings {\n name?: string;\n canHaveAssignee: boolean;\n}\n\nexport interface OpenDocumentCount {\n documentDefinitionName: string;\n openDocumentCount: number;\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 type Direction = 'ASC' | 'DESC';\n\nexport interface Sort {\n name: string;\n direction: Direction;\n}\n\nexport interface SortState {\n state: Sort;\n isSorting: boolean;\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 * 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 * 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 AssignHandlerToDocumentResult,\n AuditRecord,\n CaseSettings,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n DocumentType,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n OpenDocumentCount,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n UploadProcessLink,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {\n AssigneeFilter,\n ConfigService,\n SearchField,\n SearchFilter,\n SearchFilterRange,\n SearchOperator,\n User,\n} from '@valtimo/config';\nimport {AdvancedDocumentSearchRequest} from './advanced-document-search-request';\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}\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 {\n params: documentSearchRequest.asHttpParams(),\n }\n );\n }\n\n getDocumentsSearch(\n documentSearchRequest: AdvancedDocumentSearchRequest,\n searchOperator?: SearchOperator,\n assigneeFilter?: AssigneeFilter,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ): Observable<Documents> {\n const body = documentSearchRequest.asHttpBody();\n\n if (searchOperator) {\n body.searchOperator = searchOperator;\n }\n\n if (assigneeFilter) {\n body.assigneeFilter = assigneeFilter;\n }\n\n if (otherFilters) {\n body.otherFilters = otherFilters;\n }\n\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentSearchRequest.definitionName}/search`,\n body,\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n getDocumentSearchFields(documentDefinitionName: string): Observable<Array<SearchField>> {\n return this.http.get<Array<SearchField>>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`\n );\n }\n\n putDocumentSearch(documentDefinitionName: string, request: Array<SearchField>): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n [...request]\n );\n }\n\n postDocumentSearch(documentDefinitionName: string, request: SearchField): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n {...request}\n );\n }\n\n deleteDocumentSearch(documentDefinitionName: string, key: string): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`,\n options\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\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 getDocumentTypes(documentDefinitionName: string): Observable<Array<DocumentType>> {\n return this.http.get<Array<DocumentType>>(\n `${this.valtimoEndpointUri}documentdefinition/${documentDefinitionName}/zaaktype/documenttype`\n );\n }\n\n getLinkedUploadProcess(documentDefinitionName: string): Observable<UploadProcessLink> {\n return this.http.get<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n updateLinkedUploadProcess(\n documentDefinitionName: string,\n processDefinitionKey: string\n ): Observable<UploadProcessLink> {\n return this.http.put<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`,\n {\n processDefinitionKey,\n linkType: 'DOCUMENT_UPLOAD',\n }\n );\n }\n\n deleteLinkedUploadProcess(documentDefinitionName: string): Observable<void> {\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n getProcessDocumentDefinitionFromProcessInstanceId(\n processInstanceId: string\n ): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition/processinstance/${processInstanceId}`\n );\n }\n\n assignHandlerToDocument(\n documentId: string,\n assigneeId: string\n ): Observable<AssignHandlerToDocumentResult> {\n return this.http.post<AssignHandlerToDocumentResult>(\n `${this.valtimoEndpointUri}document/${documentId}/assign`,\n {assigneeId}\n );\n }\n\n unassignHandlerFromDocument(documentId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}document/${documentId}/unassign`, {});\n }\n\n getCandidateUsers(documentId: string): Observable<Array<User>> {\n return this.http.get<Array<User>>(\n `${this.valtimoEndpointUri}document/${documentId}/candidate-user`\n );\n }\n\n getOpenDocumentCount(): Observable<Array<OpenDocumentCount>> {\n return this.http.get<Array<OpenDocumentCount>>(\n `${this.valtimoEndpointUri}document-definition/open/count`\n );\n }\n\n patchCaseSettings(\n documentDefinitionName: string,\n request: CaseSettings\n ): Observable<CaseSettings> {\n return this.http.patch<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`,\n {...request}\n );\n }\n\n getCaseSettings(documentDefinitionName: string): Observable<CaseSettings> {\n return this.http.get<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`\n );\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\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\nimport {AssigneeFilter, SearchFilter, SearchFilterRange, SearchOperator} from '@valtimo/config';\n\nexport interface AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class AdvancedDocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n assigneeFilter?: AssigneeFilter;\n}\n\nexport class AdvancedDocumentSearchRequestImpl implements AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sort?: SortState,\n searchOperator?: SearchOperator,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sort = sort;\n this.otherFilters = otherFilters;\n this.searchOperator = searchOperator;\n }\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody {\n const httpBody = new AdvancedDocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n if (this.searchOperator) {\n httpBody.searchOperator = this.searchOperator;\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';\nexport * from './lib/advanced-document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAiJU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,MAAc,EAAE,OAAkC,EAAA;AAC5D,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MAOY,sBAAsB,CAAA;IAIjC,WAAY,CAAA,UAAkB,EAAE,OAAe,EAAA;AAC7C,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,qCAAqC,CAAA;IAMhD,WAAY,CAAA,oBAA4B,EAAE,OAA+B,EAAA;AACvE,QAAA,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACjD,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,oBAA4B,EAAE,OAAkC,EAAA;AAC1E,QAAA,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACjD,QAAA,IAAI,CA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ACD,IAAI,IAAI,CAAC,cAAc,EAAE;AACvB,YAAA,QAAQ,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;AAC/C,SAAA;AAED,QAAA,OAAO,QAAQ,CAAC;KACjB;IAED,YAAY,GAAA;AACV,QAAA,IAAI,MAAM,GAAG,IAAI,UAAU,EAAE;AAC1B,aAAA,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;AACb,YAAA,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5D,SAAA;AACD,QAAA,OAAO,MAAM,CAAC;KACf;AAED,IAAA,OAAO,CAAC,IAAY,EAAA;AAClB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;AAED,IAAA,aAAa,CAAC,IAAe,EAAA;AAC3B,QAAA,OAAO,CAAG,EAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;AACF;;AClGD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"valtimo-document.mjs","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/list-sorting.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/lib/advanced-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 assigneeFullName: string;\n assigneeId: string;\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 isActive: boolean;\n}\n\nexport interface AssignHandlerToDocumentResult {\n assigneeId: 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\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n\nexport interface DocumentType {\n url: string;\n name: string;\n}\n\nexport interface UploadProcessLink {\n processDefinitionKey: string;\n processName: string;\n}\n\nexport interface UpdateUploadProcessLinkRequest {\n processDefinitionKey: string;\n}\n\nexport interface CaseSettings {\n name?: string;\n canHaveAssignee: boolean;\n}\n\nexport interface OpenDocumentCount {\n documentDefinitionName: string;\n openDocumentCount: number;\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 type Direction = 'ASC' | 'DESC';\n\nexport interface Sort {\n name: string;\n direction: Direction;\n}\n\nexport interface SortState {\n state: Sort;\n isSorting: boolean;\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 * 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 * 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 AssignHandlerToDocumentResult,\n AuditRecord,\n CaseSettings,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n DocumentType,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n OpenDocumentCount,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n UploadProcessLink,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {\n AssigneeFilter,\n ConfigService,\n SearchField,\n SearchFilter,\n SearchFilterRange,\n SearchOperator,\n User,\n} from '@valtimo/config';\nimport {AdvancedDocumentSearchRequest} from './advanced-document-search-request';\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}v1/document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}v1/document-definition`,\n {params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}v1/document-search`,\n documentSearchRequest.asHttpBody(),\n {\n params: documentSearchRequest.asHttpParams(),\n }\n );\n }\n\n getDocumentsSearch(\n documentSearchRequest: AdvancedDocumentSearchRequest,\n searchOperator?: SearchOperator,\n assigneeFilter?: AssigneeFilter,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ): Observable<Documents> {\n const body = documentSearchRequest.asHttpBody();\n\n if (searchOperator) {\n body.searchOperator = searchOperator;\n }\n\n if (assigneeFilter) {\n body.assigneeFilter = assigneeFilter;\n }\n\n if (otherFilters) {\n body.otherFilters = otherFilters;\n }\n\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentSearchRequest.definitionName}/search`,\n body,\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n getDocumentSearchFields(documentDefinitionName: string): Observable<Array<SearchField>> {\n return this.http.get<Array<SearchField>>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`\n );\n }\n\n putDocumentSearch(documentDefinitionName: string, request: Array<SearchField>): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n [...request]\n );\n }\n\n postDocumentSearch(documentDefinitionName: string, request: SearchField): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n {...request}\n );\n }\n\n deleteDocumentSearch(documentDefinitionName: string, key: string): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`,\n options\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}v1/document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}v1/document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}v1/process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}v1/process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}v1/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}v1/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}v1/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}v1/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}v1/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}v1/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}v1/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}v1/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}v1/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}v1/document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}v1/document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}v1/document/${documentId}/message`, request);\n }\n\n getDocumentTypes(documentDefinitionName: string): Observable<Array<DocumentType>> {\n return this.http.get<Array<DocumentType>>(\n `${this.valtimoEndpointUri}v1/documentdefinition/${documentDefinitionName}/zaaktype/documenttype`\n );\n }\n\n getLinkedUploadProcess(documentDefinitionName: string): Observable<UploadProcessLink> {\n return this.http.get<UploadProcessLink>(\n `${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n updateLinkedUploadProcess(\n documentDefinitionName: string,\n processDefinitionKey: string\n ): Observable<UploadProcessLink> {\n return this.http.put<UploadProcessLink>(\n `${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`,\n {\n processDefinitionKey,\n linkType: 'DOCUMENT_UPLOAD',\n }\n );\n }\n\n deleteLinkedUploadProcess(documentDefinitionName: string): Observable<void> {\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}v1/process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n getProcessDocumentDefinitionFromProcessInstanceId(\n processInstanceId: string\n ): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}v1/process-document/definition/processinstance/${processInstanceId}`\n );\n }\n\n assignHandlerToDocument(\n documentId: string,\n assigneeId: string\n ): Observable<AssignHandlerToDocumentResult> {\n return this.http.post<AssignHandlerToDocumentResult>(\n `${this.valtimoEndpointUri}v1/document/${documentId}/assign`,\n {assigneeId}\n );\n }\n\n unassignHandlerFromDocument(documentId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}v1/document/${documentId}/unassign`, {});\n }\n\n getCandidateUsers(documentId: string): Observable<Array<User>> {\n return this.http.get<Array<User>>(\n `${this.valtimoEndpointUri}v1/document/${documentId}/candidate-user`\n );\n }\n\n getOpenDocumentCount(): Observable<Array<OpenDocumentCount>> {\n return this.http.get<Array<OpenDocumentCount>>(\n `${this.valtimoEndpointUri}v1/document-definition/open/count`\n );\n }\n\n patchCaseSettings(\n documentDefinitionName: string,\n request: CaseSettings\n ): Observable<CaseSettings> {\n return this.http.patch<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`,\n {...request}\n );\n }\n\n getCaseSettings(documentDefinitionName: string): Observable<CaseSettings> {\n return this.http.get<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`\n );\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\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\nimport {AssigneeFilter, SearchFilter, SearchFilterRange, SearchOperator} from '@valtimo/config';\n\nexport interface AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class AdvancedDocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n assigneeFilter?: AssigneeFilter;\n}\n\nexport class AdvancedDocumentSearchRequestImpl implements AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sort?: SortState,\n searchOperator?: SearchOperator,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sort = sort;\n this.otherFilters = otherFilters;\n this.searchOperator = searchOperator;\n }\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody {\n const httpBody = new AdvancedDocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n if (this.searchOperator) {\n httpBody.searchOperator = this.searchOperator;\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';\nexport * from './lib/advanced-document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAiJU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,MAAc,EAAE,OAAkC,EAAA;AAC5D,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MAOY,sBAAsB,CAAA;IAIjC,WAAY,CAAA,UAAkB,EAAE,OAAe,EAAA;AAC7C,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7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AAK,CAAC,SAAS,EAAE,CAAC;KACrD;AACF;;AClGD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valtimo/document",
|
|
3
3
|
"license": "EUPL-1.2",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "10.0.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "^
|
|
7
|
-
"@angular/core": "^
|
|
6
|
+
"@angular/common": "^14.2.5",
|
|
7
|
+
"@angular/core": "^14.2.5"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"tslib": "^2.0.0"
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"esm2020": "esm2020/valtimo-document.mjs",
|
|
15
15
|
"fesm2020": "fesm2020/valtimo-document.mjs",
|
|
16
16
|
"fesm2015": "fesm2015/valtimo-document.mjs",
|
|
17
|
-
"typings": "
|
|
17
|
+
"typings": "index.d.ts",
|
|
18
18
|
"exports": {
|
|
19
19
|
"./package.json": {
|
|
20
20
|
"default": "./package.json"
|
|
21
21
|
},
|
|
22
22
|
".": {
|
|
23
|
-
"types": "./
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
24
|
"esm2020": "./esm2020/valtimo-document.mjs",
|
|
25
25
|
"es2020": "./fesm2020/valtimo-document.mjs",
|
|
26
26
|
"es2015": "./fesm2015/valtimo-document.mjs",
|