@valtimo/document 4.15.2-next-main.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/valtimo-document.umd.js +234 -0
- package/bundles/valtimo-document.umd.js.map +1 -0
- package/bundles/valtimo-document.umd.min.js +2 -0
- package/bundles/valtimo-document.umd.min.js.map +1 -0
- package/esm2015/lib/document-search-request.js +64 -0
- package/esm2015/lib/document.module.js +22 -0
- package/esm2015/lib/document.service.js +113 -0
- package/esm2015/public_api.js +22 -0
- package/esm2015/valtimo-document.js +5 -0
- package/fesm2015/valtimo-document.js +217 -0
- package/fesm2015/valtimo-document.js.map +1 -0
- package/lib/document-search-request.d.ts +50 -0
- package/lib/document.module.d.ts +2 -0
- package/lib/document.service.d.ts +29 -0
- package/package.json +22 -0
- package/public_api.d.ts +3 -0
- package/valtimo-document.d.ts +4 -0
- package/valtimo-document.metadata.json +1 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@valtimo/config')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@valtimo/document', ['exports', '@angular/core', '@angular/common/http', '@valtimo/config'], factory) :
|
|
4
|
+
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.document = {}), global.ng.core, global.ng.common.http, global.config));
|
|
5
|
+
}(this, (function (exports, i0, i1, i2) { 'use strict';
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
var DocumentService = /** @class */ (function () {
|
|
23
|
+
function DocumentService(http, configService) {
|
|
24
|
+
this.http = http;
|
|
25
|
+
this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
|
|
26
|
+
}
|
|
27
|
+
// Document-calls
|
|
28
|
+
DocumentService.prototype.getAllDefinitions = function () {
|
|
29
|
+
return this.http.get(this.valtimoEndpointUri + "document-definition");
|
|
30
|
+
};
|
|
31
|
+
DocumentService.prototype.queryDefinitions = function (params) {
|
|
32
|
+
return this.http.get(this.valtimoEndpointUri + "document-definition", { params: params });
|
|
33
|
+
};
|
|
34
|
+
DocumentService.prototype.getDocumentDefinition = function (documentDefinitionName) {
|
|
35
|
+
return this.http.get(this.valtimoEndpointUri + "document-definition/" + documentDefinitionName);
|
|
36
|
+
};
|
|
37
|
+
DocumentService.prototype.getDocuments = function (documentSearchRequest) {
|
|
38
|
+
return this.http.post(this.valtimoEndpointUri + "document-search", documentSearchRequest.asHttpBody(), { params: documentSearchRequest.asHttpParams() });
|
|
39
|
+
};
|
|
40
|
+
DocumentService.prototype.getDocument = function (documentId) {
|
|
41
|
+
return this.http.get(this.valtimoEndpointUri + "document/" + documentId);
|
|
42
|
+
};
|
|
43
|
+
DocumentService.prototype.modifyDocument = function (document) {
|
|
44
|
+
return this.http.put(this.valtimoEndpointUri + "document", document);
|
|
45
|
+
};
|
|
46
|
+
// ProcessDocument-calls
|
|
47
|
+
DocumentService.prototype.getProcessDocumentDefinitions = function () {
|
|
48
|
+
return this.http.get(this.valtimoEndpointUri + "process-document/definition");
|
|
49
|
+
};
|
|
50
|
+
DocumentService.prototype.findProcessDocumentDefinitions = function (documentDefinitionName) {
|
|
51
|
+
return this.http.get(this.valtimoEndpointUri + "process-document/definition/document/" + documentDefinitionName);
|
|
52
|
+
};
|
|
53
|
+
DocumentService.prototype.findProcessDocumentInstances = function (documentId) {
|
|
54
|
+
return this.http.get(this.valtimoEndpointUri + "process-document/instance/document/" + documentId);
|
|
55
|
+
};
|
|
56
|
+
DocumentService.prototype.newDocumentAndStartProcess = function (request) {
|
|
57
|
+
return this.http.post(this.valtimoEndpointUri + "process-document/operation/new-document-and-start-process", request);
|
|
58
|
+
};
|
|
59
|
+
DocumentService.prototype.modifyDocumentAndCompleteTask = function (request) {
|
|
60
|
+
return this.http.post(this.valtimoEndpointUri + "process-document/operation/modify-document-and-complete-task", request);
|
|
61
|
+
};
|
|
62
|
+
DocumentService.prototype.modifyDocumentAndStartProcess = function (request) {
|
|
63
|
+
return this.http.post(this.valtimoEndpointUri + "process-document/operation/modify-document-and-start-process", request);
|
|
64
|
+
};
|
|
65
|
+
DocumentService.prototype.createProcessDocumentDefinition = function (request) {
|
|
66
|
+
return this.http.post(this.valtimoEndpointUri + "process-document/definition", request);
|
|
67
|
+
};
|
|
68
|
+
DocumentService.prototype.createDocumentDefinition = function (documentDefinitionCreateRequest) {
|
|
69
|
+
var options = {
|
|
70
|
+
headers: new i1.HttpHeaders({
|
|
71
|
+
'Content-Type': 'application/json'
|
|
72
|
+
})
|
|
73
|
+
};
|
|
74
|
+
return this.http.post(this.valtimoEndpointUri + "document-definition", documentDefinitionCreateRequest, options);
|
|
75
|
+
};
|
|
76
|
+
DocumentService.prototype.deleteProcessDocumentDefinition = function (request) {
|
|
77
|
+
var options = {
|
|
78
|
+
headers: new i1.HttpHeaders({
|
|
79
|
+
'Content-Type': 'application/json'
|
|
80
|
+
}),
|
|
81
|
+
body: request
|
|
82
|
+
};
|
|
83
|
+
return this.http.delete(this.valtimoEndpointUri + "process-document/definition", options);
|
|
84
|
+
};
|
|
85
|
+
DocumentService.prototype.getAuditLog = function (documentId) {
|
|
86
|
+
return this.http.get(this.valtimoEndpointUri + "process-document/instance/document/" + documentId + "/audit");
|
|
87
|
+
};
|
|
88
|
+
DocumentService.prototype.assignResource = function (documentId, resourceId) {
|
|
89
|
+
return this.http.post(this.valtimoEndpointUri + "document/" + documentId + "/resource/" + resourceId, {});
|
|
90
|
+
};
|
|
91
|
+
DocumentService.prototype.removeResource = function (documentId, resourceId) {
|
|
92
|
+
var options = {
|
|
93
|
+
headers: new i1.HttpHeaders({
|
|
94
|
+
'Content-Type': 'application/json'
|
|
95
|
+
})
|
|
96
|
+
};
|
|
97
|
+
return this.http.delete(this.valtimoEndpointUri + "document/" + documentId + "/resource/" + resourceId, options);
|
|
98
|
+
};
|
|
99
|
+
DocumentService.prototype.removeDocumentDefinition = function (name) {
|
|
100
|
+
return this.http.delete(this.valtimoEndpointUri + "document-definition/" + name);
|
|
101
|
+
};
|
|
102
|
+
return DocumentService;
|
|
103
|
+
}());
|
|
104
|
+
DocumentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DocumentService_Factory() { return new DocumentService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: DocumentService, providedIn: "root" });
|
|
105
|
+
DocumentService.decorators = [
|
|
106
|
+
{ type: i0.Injectable, args: [{
|
|
107
|
+
providedIn: 'root'
|
|
108
|
+
},] }
|
|
109
|
+
];
|
|
110
|
+
DocumentService.ctorParameters = function () { return [
|
|
111
|
+
{ type: i1.HttpClient },
|
|
112
|
+
{ type: i2.ConfigService }
|
|
113
|
+
]; };
|
|
114
|
+
|
|
115
|
+
/*
|
|
116
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
117
|
+
*
|
|
118
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
119
|
+
* you may not use this file except in compliance with the License.
|
|
120
|
+
* You may obtain a copy of the License at
|
|
121
|
+
*
|
|
122
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
123
|
+
*
|
|
124
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
125
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
126
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
127
|
+
* See the License for the specific language governing permissions and
|
|
128
|
+
* limitations under the License.
|
|
129
|
+
*/
|
|
130
|
+
var DocumentModule = /** @class */ (function () {
|
|
131
|
+
function DocumentModule() {
|
|
132
|
+
}
|
|
133
|
+
return DocumentModule;
|
|
134
|
+
}());
|
|
135
|
+
DocumentModule.decorators = [
|
|
136
|
+
{ type: i0.NgModule }
|
|
137
|
+
];
|
|
138
|
+
|
|
139
|
+
/*
|
|
140
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
141
|
+
*
|
|
142
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
143
|
+
* you may not use this file except in compliance with the License.
|
|
144
|
+
* You may obtain a copy of the License at
|
|
145
|
+
*
|
|
146
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
147
|
+
*
|
|
148
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
149
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
150
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
151
|
+
* See the License for the specific language governing permissions and
|
|
152
|
+
* limitations under the License.
|
|
153
|
+
*/
|
|
154
|
+
var DocumentSearchRequestHttpBody = /** @class */ (function () {
|
|
155
|
+
function DocumentSearchRequestHttpBody() {
|
|
156
|
+
}
|
|
157
|
+
return DocumentSearchRequestHttpBody;
|
|
158
|
+
}());
|
|
159
|
+
var DocumentSearchRequestImpl = /** @class */ (function () {
|
|
160
|
+
function DocumentSearchRequestImpl(definitionName, page, size, sequence, createdBy, globalSearchFilter, sort, otherFilters) {
|
|
161
|
+
this.definitionName = definitionName;
|
|
162
|
+
this.page = page;
|
|
163
|
+
this.size = size;
|
|
164
|
+
this.sequence = sequence;
|
|
165
|
+
this.createdBy = createdBy;
|
|
166
|
+
this.globalSearchFilter = globalSearchFilter;
|
|
167
|
+
this.sort = sort;
|
|
168
|
+
this.otherFilters = otherFilters;
|
|
169
|
+
}
|
|
170
|
+
DocumentSearchRequestImpl.prototype.asHttpBody = function () {
|
|
171
|
+
var httpBody = new DocumentSearchRequestHttpBody();
|
|
172
|
+
httpBody.documentDefinitionName = this.definitionName;
|
|
173
|
+
if (this.sequence) {
|
|
174
|
+
httpBody.sequence = this.sequence;
|
|
175
|
+
}
|
|
176
|
+
if (this.createdBy) {
|
|
177
|
+
httpBody.createdBy = this.createdBy;
|
|
178
|
+
}
|
|
179
|
+
if (this.globalSearchFilter) {
|
|
180
|
+
httpBody.globalSearchFilter = this.globalSearchFilter;
|
|
181
|
+
}
|
|
182
|
+
if (this.otherFilters) {
|
|
183
|
+
httpBody.otherFilters = this.otherFilters;
|
|
184
|
+
}
|
|
185
|
+
return httpBody;
|
|
186
|
+
};
|
|
187
|
+
DocumentSearchRequestImpl.prototype.asHttpParams = function () {
|
|
188
|
+
var params = new i1.HttpParams()
|
|
189
|
+
.set('definitionName', this.definitionName)
|
|
190
|
+
.set('page', this.page.toString())
|
|
191
|
+
.set('size', this.size.toString());
|
|
192
|
+
if (this.sort) {
|
|
193
|
+
params = params.set('sort', this.getSortString(this.sort));
|
|
194
|
+
}
|
|
195
|
+
return params;
|
|
196
|
+
};
|
|
197
|
+
DocumentSearchRequestImpl.prototype.setPage = function (page) {
|
|
198
|
+
this.page = page;
|
|
199
|
+
};
|
|
200
|
+
DocumentSearchRequestImpl.prototype.getSortString = function (sort) {
|
|
201
|
+
return sort.state.name + "," + sort.state.direction;
|
|
202
|
+
};
|
|
203
|
+
return DocumentSearchRequestImpl;
|
|
204
|
+
}());
|
|
205
|
+
|
|
206
|
+
/*
|
|
207
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
208
|
+
*
|
|
209
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
210
|
+
* you may not use this file except in compliance with the License.
|
|
211
|
+
* You may obtain a copy of the License at
|
|
212
|
+
*
|
|
213
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
214
|
+
*
|
|
215
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
216
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
217
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
218
|
+
* See the License for the specific language governing permissions and
|
|
219
|
+
* limitations under the License.
|
|
220
|
+
*/
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Generated bundle index. Do not edit.
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
exports.DocumentModule = DocumentModule;
|
|
227
|
+
exports.DocumentSearchRequestHttpBody = DocumentSearchRequestHttpBody;
|
|
228
|
+
exports.DocumentSearchRequestImpl = DocumentSearchRequestImpl;
|
|
229
|
+
exports.DocumentService = DocumentService;
|
|
230
|
+
|
|
231
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
232
|
+
|
|
233
|
+
})));
|
|
234
|
+
//# sourceMappingURL=valtimo-document.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valtimo-document.umd.js","sources":["../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n DocumentDefinitionCreateRequest,\n UndeployDocumentDefinitionResult\n} from '@valtimo/contract';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(`${this.valtimoEndpointUri}document-definition`, {params: params});\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(`${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(), {params: documentSearchRequest.asHttpParams()});\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(`${this.valtimoEndpointUri}process-document/definition`);\n }\n\n findProcessDocumentDefinitions(documentDefinitionName: string): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);\n }\n\n newDocumentAndStartProcess(request: NewDocumentAndStartProcessRequestImpl): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(request: ModifyDocumentAndCompleteTaskRequestImpl): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(request: ModifyDocumentAndStartProcessRequestImpl): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(`${this.valtimoEndpointUri}process-document/definition`, request);\n }\n\n createDocumentDefinition(documentDefinitionCreateRequest: DocumentDefinitionCreateRequest): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.post<void>(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n body: request\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string): Observable<Page<AuditRecord>> {\n return this.http.get<Page<AuditRecord>>(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`);\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.delete<void>(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(`${this.valtimoEndpointUri}document-definition/${name}`);\n }\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from '@valtimo/contract';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["HttpHeaders","Injectable","HttpClient","ConfigService","NgModule","HttpParams"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;;;QAgDE,yBAAoB,IAAgB,EAAE,aAA4B;YAA9C,SAAI,GAAJ,IAAI,CAAY;YAClC,IAAI,CAAC,kBAAkB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC;SACvE;;QAGM,2CAAiB,GAAjB;YACL,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAyB,IAAI,CAAC,kBAAkB,wBAAqB,CAAC,CAAC;SAC5F;QAED,0CAAgB,GAAhB,UAAiB,MAAY;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA8B,IAAI,CAAC,kBAAkB,wBAAqB,EAAE,EAAC,MAAM,EAAE,MAAM,EAAC,CAAC,CAAC;SACnH;QAED,+CAAqB,GAArB,UAAsB,sBAA8B;YAClD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAwB,IAAI,CAAC,kBAAkB,4BAAuB,sBAAwB,CAAC,CAAC;SACrH;QAED,sCAAY,GAAZ,UAAa,qBAA4C;YACvD,OAAO,IAAI,CAAC,IAAI,CAAC,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AAE;gBAC3B,QAAQ,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;aACvD;YACD,IAAI,IAAI,CAAC,YAAY,EAAE;gBACrB,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;aAC3C;YAED,OAAO,QAAQ,CAAC;SACjB;QAED,gDAAY,GAAZ;YACE,IAAI,MAAM,GAAG,IAAIC,aAAU,EAAE;iBAC1B,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC;iBAC1C,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;iBACjC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YACrC,IAAI,IAAI,CAAC,IAAI,EAAE;gBACb,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aAC5D;YACD,OAAO,MAAM,CAAC;SACf;QAED,2CAAO,GAAP,UAAQ,IAAY;YAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;SAClB;QAED,iDAAa,GAAb,UAAc,IAAe;YAC3B,OAAU,IAAI,CAAC,KAAK,CAAC,IAAI,SAAI,IAAI,CAAC,KAAK,CAAC,SAAW,CAAC;SACrD;wCACF;KAAA;;IChHD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("@valtimo/config")):"function"==typeof define&&define.amd?define("@valtimo/document",["exports","@angular/core","@angular/common/http","@valtimo/config"],e):e(((t=t||self).valtimo=t.valtimo||{},t.valtimo.document={}),t.ng.core,t.ng.common.http,t.config)}(this,(function(t,e,o,n){"use strict";var i=function(){function t(t,e){this.http=t,this.valtimoEndpointUri=e.config.valtimoApi.endpointUri}return t.prototype.getAllDefinitions=function(){return this.http.get(this.valtimoEndpointUri+"document-definition")},t.prototype.queryDefinitions=function(t){return this.http.get(this.valtimoEndpointUri+"document-definition",{params:t})},t.prototype.getDocumentDefinition=function(t){return this.http.get(this.valtimoEndpointUri+"document-definition/"+t)},t.prototype.getDocuments=function(t){return this.http.post(this.valtimoEndpointUri+"document-search",t.asHttpBody(),{params:t.asHttpParams()})},t.prototype.getDocument=function(t){return this.http.get(this.valtimoEndpointUri+"document/"+t)},t.prototype.modifyDocument=function(t){return this.http.put(this.valtimoEndpointUri+"document",t)},t.prototype.getProcessDocumentDefinitions=function(){return this.http.get(this.valtimoEndpointUri+"process-document/definition")},t.prototype.findProcessDocumentDefinitions=function(t){return this.http.get(this.valtimoEndpointUri+"process-document/definition/document/"+t)},t.prototype.findProcessDocumentInstances=function(t){return this.http.get(this.valtimoEndpointUri+"process-document/instance/document/"+t)},t.prototype.newDocumentAndStartProcess=function(t){return this.http.post(this.valtimoEndpointUri+"process-document/operation/new-document-and-start-process",t)},t.prototype.modifyDocumentAndCompleteTask=function(t){return this.http.post(this.valtimoEndpointUri+"process-document/operation/modify-document-and-complete-task",t)},t.prototype.modifyDocumentAndStartProcess=function(t){return this.http.post(this.valtimoEndpointUri+"process-document/operation/modify-document-and-start-process",t)},t.prototype.createProcessDocumentDefinition=function(t){return this.http.post(this.valtimoEndpointUri+"process-document/definition",t)},t.prototype.createDocumentDefinition=function(t){var e={headers:new o.HttpHeaders({"Content-Type":"application/json"})};return this.http.post(this.valtimoEndpointUri+"document-definition",t,e)},t.prototype.deleteProcessDocumentDefinition=function(t){var e={headers:new o.HttpHeaders({"Content-Type":"application/json"}),body:t};return this.http.delete(this.valtimoEndpointUri+"process-document/definition",e)},t.prototype.getAuditLog=function(t){return this.http.get(this.valtimoEndpointUri+"process-document/instance/document/"+t+"/audit")},t.prototype.assignResource=function(t,e){return this.http.post(this.valtimoEndpointUri+"document/"+t+"/resource/"+e,{})},t.prototype.removeResource=function(t,e){var n={headers:new o.HttpHeaders({"Content-Type":"application/json"})};return this.http.delete(this.valtimoEndpointUri+"document/"+t+"/resource/"+e,n)},t.prototype.removeDocumentDefinition=function(t){return this.http.delete(this.valtimoEndpointUri+"document-definition/"+t)},t}();i.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new i(e.ɵɵinject(o.HttpClient),e.ɵɵinject(n.ConfigService))},token:i,providedIn:"root"}),i.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],i.ctorParameters=function(){return[{type:o.HttpClient},{type:n.ConfigService}]};var r=function(){};r.decorators=[{type:e.NgModule}];var s=function(){},p=function(){function t(t,e,o,n,i,r,s,p){this.definitionName=t,this.page=e,this.size=o,this.sequence=n,this.createdBy=i,this.globalSearchFilter=r,this.sort=s,this.otherFilters=p}return t.prototype.asHttpBody=function(){var t=new s;return t.documentDefinitionName=this.definitionName,this.sequence&&(t.sequence=this.sequence),this.createdBy&&(t.createdBy=this.createdBy),this.globalSearchFilter&&(t.globalSearchFilter=this.globalSearchFilter),this.otherFilters&&(t.otherFilters=this.otherFilters),t},t.prototype.asHttpParams=function(){var t=(new o.HttpParams).set("definitionName",this.definitionName).set("page",this.page.toString()).set("size",this.size.toString());return this.sort&&(t=t.set("sort",this.getSortString(this.sort))),t},t.prototype.setPage=function(t){this.page=t},t.prototype.getSortString=function(t){return t.state.name+","+t.state.direction},t}();t.DocumentModule=r,t.DocumentSearchRequestHttpBody=s,t.DocumentSearchRequestImpl=p,t.DocumentService=i,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
2
|
+
//# sourceMappingURL=valtimo-document.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts"],"names":["DocumentService","http","configService","this","valtimoEndpointUri","config","valtimoApi","endpointUri","prototype","getAllDefinitions","get","queryDefinitions","params","getDocumentDefinition","documentDefinitionName","getDocuments","documentSearchRequest","post","asHttpBody","asHttpParams","getDocument","documentId","modifyDocument","document","put","getProcessDocumentDefinitions","findProcessDocumentDefinitions","findProcessDocumentInstances","newDocumentAndStartProcess","request","modifyDocumentAndCompleteTask","modifyDocumentAndStartProcess","createProcessDocumentDefinition","createDocumentDefinition","documentDefinitionCreateRequest","options","headers","HttpHeaders","Content-Type","deleteProcessDocumentDefinition","body","delete","getAuditLog","assignResource","resourceId","removeResource","removeDocumentDefinition","name","Injectable","args","providedIn","HttpClient","ConfigService","NgModule","DocumentSearchRequestImpl","definitionName","page","size","sequence","createdBy","globalSearchFilter","sort","otherFilters","httpBody","DocumentSearchRequestHttpBody","HttpParams","set","toString","getSortString","setPage","state","direction"],"mappings":"ocAgDE,SAAAA,EAAoBC,EAAkBC,GAAlBC,KAAAF,KAAAA,EAClBE,KAAKC,mBAAqBF,EAAcG,OAAOC,WAAWC,mBAIrDP,EAAAQ,UAAAC,kBAAA,WACL,OAAON,KAAKF,KAAKS,IAA4BP,KAAKC,mBAAkB,wBAGtEJ,EAAAQ,UAAAG,iBAAA,SAAiBC,GACf,OAAOT,KAAKF,KAAKS,IAAiCP,KAAKC,mBAAkB,sBAAuB,CAACQ,OAAQA,KAG3GZ,EAAAQ,UAAAK,sBAAA,SAAsBC,GACpB,OAAOX,KAAKF,KAAKS,IAA2BP,KAAKC,mBAAkB,uBAAuBU,IAG5Fd,EAAAQ,UAAAO,aAAA,SAAaC,GACX,OAAOb,KAAKF,KAAKgB,KAAmBd,KAAKC,mBAAkB,kBACzDY,EAAsBE,aAAc,CAACN,OAAQI,EAAsBG,kBAGvEnB,EAAAQ,UAAAY,YAAA,SAAYC,GACV,OAAOlB,KAAKF,KAAKS,IAAiBP,KAAKC,mBAAkB,YAAYiB,IAGvErB,EAAAQ,UAAAc,eAAA,SAAeC,GACb,OAAOpB,KAAKF,KAAKuB,IAAuBrB,KAAKC,mBAAkB,WA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I,OAAQ/D,KAAKsD,KAAKU,YAIzB,OAHIhE,KAAK0D,OACPjD,EAASA,EAAOsD,IAAI,OAAQ/D,KAAKiE,cAAcjE,KAAK0D,QAE/CjD,GAGT0C,EAAA9C,UAAA6D,QAAA,SAAQb,GACNrD,KAAKqD,KAAOA,GAGdF,EAAA9C,UAAA4D,cAAA,SAAcP,GACZ,OAAUA,EAAKS,MAAMvB,KAAI,IAAIc,EAAKS,MAAMC","sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n DocumentDefinitionCreateRequest,\n UndeployDocumentDefinitionResult\n} from '@valtimo/contract';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(`${this.valtimoEndpointUri}document-definition`, {params: params});\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(`${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(), {params: documentSearchRequest.asHttpParams()});\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(`${this.valtimoEndpointUri}process-document/definition`);\n }\n\n findProcessDocumentDefinitions(documentDefinitionName: string): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);\n }\n\n newDocumentAndStartProcess(request: NewDocumentAndStartProcessRequestImpl): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(request: ModifyDocumentAndCompleteTaskRequestImpl): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(request: ModifyDocumentAndStartProcessRequestImpl): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(`${this.valtimoEndpointUri}process-document/definition`, request);\n }\n\n createDocumentDefinition(documentDefinitionCreateRequest: DocumentDefinitionCreateRequest): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.post<void>(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n body: request\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string): Observable<Page<AuditRecord>> {\n return this.http.get<Page<AuditRecord>>(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`);\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.delete<void>(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(`${this.valtimoEndpointUri}document-definition/${name}`);\n }\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from '@valtimo/contract';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n"]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { HttpParams } from '@angular/common/http';
|
|
17
|
+
export class DocumentSearchRequestHttpBody {
|
|
18
|
+
}
|
|
19
|
+
export class DocumentSearchRequestImpl {
|
|
20
|
+
constructor(definitionName, page, size, sequence, createdBy, globalSearchFilter, sort, otherFilters) {
|
|
21
|
+
this.definitionName = definitionName;
|
|
22
|
+
this.page = page;
|
|
23
|
+
this.size = size;
|
|
24
|
+
this.sequence = sequence;
|
|
25
|
+
this.createdBy = createdBy;
|
|
26
|
+
this.globalSearchFilter = globalSearchFilter;
|
|
27
|
+
this.sort = sort;
|
|
28
|
+
this.otherFilters = otherFilters;
|
|
29
|
+
}
|
|
30
|
+
asHttpBody() {
|
|
31
|
+
const httpBody = new DocumentSearchRequestHttpBody();
|
|
32
|
+
httpBody.documentDefinitionName = this.definitionName;
|
|
33
|
+
if (this.sequence) {
|
|
34
|
+
httpBody.sequence = this.sequence;
|
|
35
|
+
}
|
|
36
|
+
if (this.createdBy) {
|
|
37
|
+
httpBody.createdBy = this.createdBy;
|
|
38
|
+
}
|
|
39
|
+
if (this.globalSearchFilter) {
|
|
40
|
+
httpBody.globalSearchFilter = this.globalSearchFilter;
|
|
41
|
+
}
|
|
42
|
+
if (this.otherFilters) {
|
|
43
|
+
httpBody.otherFilters = this.otherFilters;
|
|
44
|
+
}
|
|
45
|
+
return httpBody;
|
|
46
|
+
}
|
|
47
|
+
asHttpParams() {
|
|
48
|
+
let params = new HttpParams()
|
|
49
|
+
.set('definitionName', this.definitionName)
|
|
50
|
+
.set('page', this.page.toString())
|
|
51
|
+
.set('size', this.size.toString());
|
|
52
|
+
if (this.sort) {
|
|
53
|
+
params = params.set('sort', this.getSortString(this.sort));
|
|
54
|
+
}
|
|
55
|
+
return params;
|
|
56
|
+
}
|
|
57
|
+
setPage(page) {
|
|
58
|
+
this.page = page;
|
|
59
|
+
}
|
|
60
|
+
getSortString(sort) {
|
|
61
|
+
return `${sort.state.name},${sort.state.direction}`;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZX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uICBzZXRQYWdlKHBhZ2U6IG51bWJlcik6IHZvaWQge1xuICAgIHRoaXMucGFnZSA9IHBhZ2U7XG4gIH1cblxuICBnZXRTb3J0U3RyaW5nKHNvcnQ6IFNvcnRTdGF0ZSk6IHN0cmluZyB7XG4gICAgcmV0dXJuIGAke3NvcnQuc3RhdGUubmFtZX0sJHtzb3J0LnN0YXRlLmRpcmVjdGlvbn1gO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { NgModule } from '@angular/core';
|
|
17
|
+
export class DocumentModule {
|
|
18
|
+
}
|
|
19
|
+
DocumentModule.decorators = [
|
|
20
|
+
{ type: NgModule }
|
|
21
|
+
];
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9kb2N1bWVudC9zcmMvbGliL2RvY3VtZW50Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVIL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dW1lbnRNb2R1bGUge1xuXG59XG4iXX0=
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Injectable } from '@angular/core';
|
|
17
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
18
|
+
import { ConfigService } from '@valtimo/config';
|
|
19
|
+
import * as i0 from "@angular/core";
|
|
20
|
+
import * as i1 from "@angular/common/http";
|
|
21
|
+
import * as i2 from "@valtimo/config";
|
|
22
|
+
export class DocumentService {
|
|
23
|
+
constructor(http, configService) {
|
|
24
|
+
this.http = http;
|
|
25
|
+
this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
|
|
26
|
+
}
|
|
27
|
+
// Document-calls
|
|
28
|
+
getAllDefinitions() {
|
|
29
|
+
return this.http.get(`${this.valtimoEndpointUri}document-definition`);
|
|
30
|
+
}
|
|
31
|
+
queryDefinitions(params) {
|
|
32
|
+
return this.http.get(`${this.valtimoEndpointUri}document-definition`, { params: params });
|
|
33
|
+
}
|
|
34
|
+
getDocumentDefinition(documentDefinitionName) {
|
|
35
|
+
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);
|
|
36
|
+
}
|
|
37
|
+
getDocuments(documentSearchRequest) {
|
|
38
|
+
return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), { params: documentSearchRequest.asHttpParams() });
|
|
39
|
+
}
|
|
40
|
+
getDocument(documentId) {
|
|
41
|
+
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}`);
|
|
42
|
+
}
|
|
43
|
+
modifyDocument(document) {
|
|
44
|
+
return this.http.put(`${this.valtimoEndpointUri}document`, document);
|
|
45
|
+
}
|
|
46
|
+
// ProcessDocument-calls
|
|
47
|
+
getProcessDocumentDefinitions() {
|
|
48
|
+
return this.http.get(`${this.valtimoEndpointUri}process-document/definition`);
|
|
49
|
+
}
|
|
50
|
+
findProcessDocumentDefinitions(documentDefinitionName) {
|
|
51
|
+
return this.http.get(`${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`);
|
|
52
|
+
}
|
|
53
|
+
findProcessDocumentInstances(documentId) {
|
|
54
|
+
return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);
|
|
55
|
+
}
|
|
56
|
+
newDocumentAndStartProcess(request) {
|
|
57
|
+
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`, request);
|
|
58
|
+
}
|
|
59
|
+
modifyDocumentAndCompleteTask(request) {
|
|
60
|
+
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`, request);
|
|
61
|
+
}
|
|
62
|
+
modifyDocumentAndStartProcess(request) {
|
|
63
|
+
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`, request);
|
|
64
|
+
}
|
|
65
|
+
createProcessDocumentDefinition(request) {
|
|
66
|
+
return this.http.post(`${this.valtimoEndpointUri}process-document/definition`, request);
|
|
67
|
+
}
|
|
68
|
+
createDocumentDefinition(documentDefinitionCreateRequest) {
|
|
69
|
+
const options = {
|
|
70
|
+
headers: new HttpHeaders({
|
|
71
|
+
'Content-Type': 'application/json'
|
|
72
|
+
})
|
|
73
|
+
};
|
|
74
|
+
return this.http.post(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);
|
|
75
|
+
}
|
|
76
|
+
deleteProcessDocumentDefinition(request) {
|
|
77
|
+
const options = {
|
|
78
|
+
headers: new HttpHeaders({
|
|
79
|
+
'Content-Type': 'application/json'
|
|
80
|
+
}),
|
|
81
|
+
body: request
|
|
82
|
+
};
|
|
83
|
+
return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);
|
|
84
|
+
}
|
|
85
|
+
getAuditLog(documentId) {
|
|
86
|
+
return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`);
|
|
87
|
+
}
|
|
88
|
+
assignResource(documentId, resourceId) {
|
|
89
|
+
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});
|
|
90
|
+
}
|
|
91
|
+
removeResource(documentId, resourceId) {
|
|
92
|
+
const options = {
|
|
93
|
+
headers: new HttpHeaders({
|
|
94
|
+
'Content-Type': 'application/json'
|
|
95
|
+
})
|
|
96
|
+
};
|
|
97
|
+
return this.http.delete(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);
|
|
98
|
+
}
|
|
99
|
+
removeDocumentDefinition(name) {
|
|
100
|
+
return this.http.delete(`${this.valtimoEndpointUri}document-definition/${name}`);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
DocumentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DocumentService_Factory() { return new DocumentService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: DocumentService, providedIn: "root" });
|
|
104
|
+
DocumentService.decorators = [
|
|
105
|
+
{ type: Injectable, args: [{
|
|
106
|
+
providedIn: 'root'
|
|
107
|
+
},] }
|
|
108
|
+
];
|
|
109
|
+
DocumentService.ctorParameters = () => [
|
|
110
|
+
{ type: HttpClient },
|
|
111
|
+
{ type: ConfigService }
|
|
112
|
+
];
|
|
113
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJm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b3VyY2UvJHtyZXNvdXJjZUlkfWAsIG9wdGlvbnMpO1xuICB9XG5cbiAgcmVtb3ZlRG9jdW1lbnREZWZpbml0aW9uKG5hbWU6IHN0cmluZyk6IE9ic2VydmFibGU8VW5kZXBsb3lEb2N1bWVudERlZmluaXRpb25SZXN1bHQ+IHtcbiAgICByZXR1cm4gdGhpcy5odHRwLmRlbGV0ZTxVbmRlcGxveURvY3VtZW50RGVmaW5pdGlvblJlc3VsdD4oYCR7dGhpcy52YWx0aW1vRW5kcG9pbnRVcml9ZG9jdW1lbnQtZGVmaW5pdGlvbi8ke25hbWV9YCk7XG4gIH1cblxufVxuIl19
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/*
|
|
17
|
+
* Public API Surface of document
|
|
18
|
+
*/
|
|
19
|
+
export * from './lib/document.service';
|
|
20
|
+
export * from './lib/document.module';
|
|
21
|
+
export * from './lib/document-search-request';
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vZG9jdW1lbnQvc3Jj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LypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBkb2N1bWVudFxuICovXG5leHBvcnQgKiBmcm9tICcuL2xpYi9kb2N1bWVudC5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2RvY3VtZW50Lm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9kb2N1bWVudC1zZWFyY2gtcmVxdWVzdCc7XG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public_api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1kb2N1bWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vZG9jdW1lbnQvc3JjL3ZhbHRpbW8tZG9jdW1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { ɵɵdefineInjectable, ɵɵinject, Injectable, NgModule } from '@angular/core';
|
|
2
|
+
import { HttpHeaders, HttpClient, HttpParams } from '@angular/common/http';
|
|
3
|
+
import { ConfigService } from '@valtimo/config';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*/
|
|
20
|
+
class DocumentService {
|
|
21
|
+
constructor(http, configService) {
|
|
22
|
+
this.http = http;
|
|
23
|
+
this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
|
|
24
|
+
}
|
|
25
|
+
// Document-calls
|
|
26
|
+
getAllDefinitions() {
|
|
27
|
+
return this.http.get(`${this.valtimoEndpointUri}document-definition`);
|
|
28
|
+
}
|
|
29
|
+
queryDefinitions(params) {
|
|
30
|
+
return this.http.get(`${this.valtimoEndpointUri}document-definition`, { params: params });
|
|
31
|
+
}
|
|
32
|
+
getDocumentDefinition(documentDefinitionName) {
|
|
33
|
+
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);
|
|
34
|
+
}
|
|
35
|
+
getDocuments(documentSearchRequest) {
|
|
36
|
+
return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), { params: documentSearchRequest.asHttpParams() });
|
|
37
|
+
}
|
|
38
|
+
getDocument(documentId) {
|
|
39
|
+
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}`);
|
|
40
|
+
}
|
|
41
|
+
modifyDocument(document) {
|
|
42
|
+
return this.http.put(`${this.valtimoEndpointUri}document`, document);
|
|
43
|
+
}
|
|
44
|
+
// ProcessDocument-calls
|
|
45
|
+
getProcessDocumentDefinitions() {
|
|
46
|
+
return this.http.get(`${this.valtimoEndpointUri}process-document/definition`);
|
|
47
|
+
}
|
|
48
|
+
findProcessDocumentDefinitions(documentDefinitionName) {
|
|
49
|
+
return this.http.get(`${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`);
|
|
50
|
+
}
|
|
51
|
+
findProcessDocumentInstances(documentId) {
|
|
52
|
+
return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);
|
|
53
|
+
}
|
|
54
|
+
newDocumentAndStartProcess(request) {
|
|
55
|
+
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`, request);
|
|
56
|
+
}
|
|
57
|
+
modifyDocumentAndCompleteTask(request) {
|
|
58
|
+
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`, request);
|
|
59
|
+
}
|
|
60
|
+
modifyDocumentAndStartProcess(request) {
|
|
61
|
+
return this.http.post(`${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`, request);
|
|
62
|
+
}
|
|
63
|
+
createProcessDocumentDefinition(request) {
|
|
64
|
+
return this.http.post(`${this.valtimoEndpointUri}process-document/definition`, request);
|
|
65
|
+
}
|
|
66
|
+
createDocumentDefinition(documentDefinitionCreateRequest) {
|
|
67
|
+
const options = {
|
|
68
|
+
headers: new HttpHeaders({
|
|
69
|
+
'Content-Type': 'application/json'
|
|
70
|
+
})
|
|
71
|
+
};
|
|
72
|
+
return this.http.post(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);
|
|
73
|
+
}
|
|
74
|
+
deleteProcessDocumentDefinition(request) {
|
|
75
|
+
const options = {
|
|
76
|
+
headers: new HttpHeaders({
|
|
77
|
+
'Content-Type': 'application/json'
|
|
78
|
+
}),
|
|
79
|
+
body: request
|
|
80
|
+
};
|
|
81
|
+
return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);
|
|
82
|
+
}
|
|
83
|
+
getAuditLog(documentId) {
|
|
84
|
+
return this.http.get(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`);
|
|
85
|
+
}
|
|
86
|
+
assignResource(documentId, resourceId) {
|
|
87
|
+
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});
|
|
88
|
+
}
|
|
89
|
+
removeResource(documentId, resourceId) {
|
|
90
|
+
const options = {
|
|
91
|
+
headers: new HttpHeaders({
|
|
92
|
+
'Content-Type': 'application/json'
|
|
93
|
+
})
|
|
94
|
+
};
|
|
95
|
+
return this.http.delete(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);
|
|
96
|
+
}
|
|
97
|
+
removeDocumentDefinition(name) {
|
|
98
|
+
return this.http.delete(`${this.valtimoEndpointUri}document-definition/${name}`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
DocumentService.ɵprov = ɵɵdefineInjectable({ factory: function DocumentService_Factory() { return new DocumentService(ɵɵinject(HttpClient), ɵɵinject(ConfigService)); }, token: DocumentService, providedIn: "root" });
|
|
102
|
+
DocumentService.decorators = [
|
|
103
|
+
{ type: Injectable, args: [{
|
|
104
|
+
providedIn: 'root'
|
|
105
|
+
},] }
|
|
106
|
+
];
|
|
107
|
+
DocumentService.ctorParameters = () => [
|
|
108
|
+
{ type: HttpClient },
|
|
109
|
+
{ type: ConfigService }
|
|
110
|
+
];
|
|
111
|
+
|
|
112
|
+
/*
|
|
113
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
114
|
+
*
|
|
115
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
116
|
+
* you may not use this file except in compliance with the License.
|
|
117
|
+
* You may obtain a copy of the License at
|
|
118
|
+
*
|
|
119
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
120
|
+
*
|
|
121
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
122
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
123
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
124
|
+
* See the License for the specific language governing permissions and
|
|
125
|
+
* limitations under the License.
|
|
126
|
+
*/
|
|
127
|
+
class DocumentModule {
|
|
128
|
+
}
|
|
129
|
+
DocumentModule.decorators = [
|
|
130
|
+
{ type: NgModule }
|
|
131
|
+
];
|
|
132
|
+
|
|
133
|
+
/*
|
|
134
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
135
|
+
*
|
|
136
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
137
|
+
* you may not use this file except in compliance with the License.
|
|
138
|
+
* You may obtain a copy of the License at
|
|
139
|
+
*
|
|
140
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
141
|
+
*
|
|
142
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
143
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
144
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
145
|
+
* See the License for the specific language governing permissions and
|
|
146
|
+
* limitations under the License.
|
|
147
|
+
*/
|
|
148
|
+
class DocumentSearchRequestHttpBody {
|
|
149
|
+
}
|
|
150
|
+
class DocumentSearchRequestImpl {
|
|
151
|
+
constructor(definitionName, page, size, sequence, createdBy, globalSearchFilter, sort, otherFilters) {
|
|
152
|
+
this.definitionName = definitionName;
|
|
153
|
+
this.page = page;
|
|
154
|
+
this.size = size;
|
|
155
|
+
this.sequence = sequence;
|
|
156
|
+
this.createdBy = createdBy;
|
|
157
|
+
this.globalSearchFilter = globalSearchFilter;
|
|
158
|
+
this.sort = sort;
|
|
159
|
+
this.otherFilters = otherFilters;
|
|
160
|
+
}
|
|
161
|
+
asHttpBody() {
|
|
162
|
+
const httpBody = new DocumentSearchRequestHttpBody();
|
|
163
|
+
httpBody.documentDefinitionName = this.definitionName;
|
|
164
|
+
if (this.sequence) {
|
|
165
|
+
httpBody.sequence = this.sequence;
|
|
166
|
+
}
|
|
167
|
+
if (this.createdBy) {
|
|
168
|
+
httpBody.createdBy = this.createdBy;
|
|
169
|
+
}
|
|
170
|
+
if (this.globalSearchFilter) {
|
|
171
|
+
httpBody.globalSearchFilter = this.globalSearchFilter;
|
|
172
|
+
}
|
|
173
|
+
if (this.otherFilters) {
|
|
174
|
+
httpBody.otherFilters = this.otherFilters;
|
|
175
|
+
}
|
|
176
|
+
return httpBody;
|
|
177
|
+
}
|
|
178
|
+
asHttpParams() {
|
|
179
|
+
let params = new HttpParams()
|
|
180
|
+
.set('definitionName', this.definitionName)
|
|
181
|
+
.set('page', this.page.toString())
|
|
182
|
+
.set('size', this.size.toString());
|
|
183
|
+
if (this.sort) {
|
|
184
|
+
params = params.set('sort', this.getSortString(this.sort));
|
|
185
|
+
}
|
|
186
|
+
return params;
|
|
187
|
+
}
|
|
188
|
+
setPage(page) {
|
|
189
|
+
this.page = page;
|
|
190
|
+
}
|
|
191
|
+
getSortString(sort) {
|
|
192
|
+
return `${sort.state.name},${sort.state.direction}`;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/*
|
|
197
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
198
|
+
*
|
|
199
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
200
|
+
* you may not use this file except in compliance with the License.
|
|
201
|
+
* You may obtain a copy of the License at
|
|
202
|
+
*
|
|
203
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
204
|
+
*
|
|
205
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
206
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
207
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
208
|
+
* See the License for the specific language governing permissions and
|
|
209
|
+
* limitations under the License.
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Generated bundle index. Do not edit.
|
|
214
|
+
*/
|
|
215
|
+
|
|
216
|
+
export { DocumentModule, DocumentSearchRequestHttpBody, DocumentSearchRequestImpl, DocumentService };
|
|
217
|
+
//# sourceMappingURL=valtimo-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valtimo-document.js","sources":["../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n DocumentDefinitionCreateRequest,\n UndeployDocumentDefinitionResult\n} from '@valtimo/contract';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(`${this.valtimoEndpointUri}document-definition`, {params: params});\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(`${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(), {params: documentSearchRequest.asHttpParams()});\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(`${this.valtimoEndpointUri}process-document/definition`);\n }\n\n findProcessDocumentDefinitions(documentDefinitionName: string): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}`);\n }\n\n newDocumentAndStartProcess(request: NewDocumentAndStartProcessRequestImpl): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(request: ModifyDocumentAndCompleteTaskRequestImpl): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(request: ModifyDocumentAndStartProcessRequestImpl): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(`${this.valtimoEndpointUri}process-document/definition`, request);\n }\n\n createDocumentDefinition(documentDefinitionCreateRequest: DocumentDefinitionCreateRequest): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.post<void>(`${this.valtimoEndpointUri}document-definition`, documentDefinitionCreateRequest, options);\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n body: request\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string): Observable<Page<AuditRecord>> {\n return this.http.get<Page<AuditRecord>>(`${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`);\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, {});\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.delete<void>(`${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`, options);\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(`${this.valtimoEndpointUri}document-definition/${name}`);\n }\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {\n\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from '@valtimo/contract';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;MA6Ca,eAAe;IAG1B,YAAoB,IAAgB,EAAE,aAA4B;QAA9C,SAAI,GAAJ,IAAI,CAAY;QAClC,IAAI,CAAC,kBAAkB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC;KACvE;;IAGM,iBAAiB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AAK,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;;;AC/GH;;;;;;;;;;;;;;;;ACAA;;;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { HttpParams } from '@angular/common/http';
|
|
2
|
+
import { SortState } from '@valtimo/contract';
|
|
3
|
+
export interface DocumentSearchRequest {
|
|
4
|
+
definitionName: string;
|
|
5
|
+
page: number;
|
|
6
|
+
size: number;
|
|
7
|
+
sequence?: number;
|
|
8
|
+
createdBy?: string;
|
|
9
|
+
globalSearchFilter?: string;
|
|
10
|
+
sort?: SortState;
|
|
11
|
+
searchCriteria?: Array<{
|
|
12
|
+
path: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}>;
|
|
15
|
+
asHttpBody(): DocumentSearchRequestHttpBody;
|
|
16
|
+
asHttpParams(): HttpParams;
|
|
17
|
+
setPage(page: number): void;
|
|
18
|
+
getSortString(sort: SortState): string;
|
|
19
|
+
}
|
|
20
|
+
export declare class DocumentSearchRequestHttpBody {
|
|
21
|
+
documentDefinitionName?: string;
|
|
22
|
+
sequence?: number;
|
|
23
|
+
createdBy?: string;
|
|
24
|
+
globalSearchFilter?: string;
|
|
25
|
+
otherFilters?: Array<{
|
|
26
|
+
path: string;
|
|
27
|
+
value: string;
|
|
28
|
+
}>;
|
|
29
|
+
}
|
|
30
|
+
export declare class DocumentSearchRequestImpl implements DocumentSearchRequest {
|
|
31
|
+
definitionName: string;
|
|
32
|
+
page: number;
|
|
33
|
+
size: number;
|
|
34
|
+
sequence?: number;
|
|
35
|
+
createdBy?: string;
|
|
36
|
+
globalSearchFilter?: string;
|
|
37
|
+
sort?: SortState;
|
|
38
|
+
otherFilters?: Array<{
|
|
39
|
+
path: string;
|
|
40
|
+
value: string;
|
|
41
|
+
}>;
|
|
42
|
+
constructor(definitionName: string, page: number, size: number, sequence?: number, createdBy?: string, globalSearchFilter?: string, sort?: SortState, otherFilters?: Array<{
|
|
43
|
+
path: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}>);
|
|
46
|
+
asHttpBody(): DocumentSearchRequestHttpBody;
|
|
47
|
+
asHttpParams(): HttpParams;
|
|
48
|
+
setPage(page: number): void;
|
|
49
|
+
getSortString(sort: SortState): string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { AuditRecord, Document, DocumentDefinition, DocumentDefinitions, DocumentResult, Documents, ModifyDocumentAndCompleteTaskRequestImpl, ModifyDocumentAndCompleteTaskResult, ModifyDocumentAndStartProcessRequestImpl, ModifyDocumentAndStartProcessResult, NewDocumentAndStartProcessRequestImpl, NewDocumentAndStartProcessResult, Page, ProcessDocumentDefinition, ProcessDocumentDefinitionRequest, ProcessDocumentInstance, DocumentDefinitionCreateRequest, UndeployDocumentDefinitionResult } from '@valtimo/contract';
|
|
4
|
+
import { DocumentSearchRequest } from './document-search-request';
|
|
5
|
+
import { ConfigService } from '@valtimo/config';
|
|
6
|
+
export declare class DocumentService {
|
|
7
|
+
private http;
|
|
8
|
+
private valtimoEndpointUri;
|
|
9
|
+
constructor(http: HttpClient, configService: ConfigService);
|
|
10
|
+
getAllDefinitions(): Observable<DocumentDefinitions>;
|
|
11
|
+
queryDefinitions(params?: any): Observable<Page<DocumentDefinition>>;
|
|
12
|
+
getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition>;
|
|
13
|
+
getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents>;
|
|
14
|
+
getDocument(documentId: string): Observable<Document>;
|
|
15
|
+
modifyDocument(document: any): Observable<DocumentResult>;
|
|
16
|
+
getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition>;
|
|
17
|
+
findProcessDocumentDefinitions(documentDefinitionName: string): Observable<ProcessDocumentDefinition[]>;
|
|
18
|
+
findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]>;
|
|
19
|
+
newDocumentAndStartProcess(request: NewDocumentAndStartProcessRequestImpl): Observable<NewDocumentAndStartProcessResult>;
|
|
20
|
+
modifyDocumentAndCompleteTask(request: ModifyDocumentAndCompleteTaskRequestImpl): Observable<ModifyDocumentAndCompleteTaskResult>;
|
|
21
|
+
modifyDocumentAndStartProcess(request: ModifyDocumentAndStartProcessRequestImpl): Observable<ModifyDocumentAndStartProcessResult>;
|
|
22
|
+
createProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<ProcessDocumentDefinition>;
|
|
23
|
+
createDocumentDefinition(documentDefinitionCreateRequest: DocumentDefinitionCreateRequest): Observable<void>;
|
|
24
|
+
deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any>;
|
|
25
|
+
getAuditLog(documentId: string): Observable<Page<AuditRecord>>;
|
|
26
|
+
assignResource(documentId: string, resourceId: string): Observable<void>;
|
|
27
|
+
removeResource(documentId: string, resourceId: string): Observable<void>;
|
|
28
|
+
removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult>;
|
|
29
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@valtimo/document",
|
|
3
|
+
"version": "4.15.2-next-main.8",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"registry": "http://repo.ritense.com/repository/npm-ritense-private/"
|
|
6
|
+
},
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"@angular/common": "^10.0.11",
|
|
9
|
+
"@angular/core": "^10.0.11"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"tslib": "^2.0.0"
|
|
13
|
+
},
|
|
14
|
+
"main": "bundles/valtimo-document.umd.js",
|
|
15
|
+
"module": "fesm2015/valtimo-document.js",
|
|
16
|
+
"es2015": "fesm2015/valtimo-document.js",
|
|
17
|
+
"esm2015": "esm2015/valtimo-document.js",
|
|
18
|
+
"fesm2015": "fesm2015/valtimo-document.js",
|
|
19
|
+
"typings": "valtimo-document.d.ts",
|
|
20
|
+
"metadata": "valtimo-document.metadata.json",
|
|
21
|
+
"sideEffects": false
|
|
22
|
+
}
|
package/public_api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"DocumentService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":42,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":48,"character":28},{"__symbolic":"reference","module":"@valtimo/config","name":"ConfigService","line":48,"character":55}]}],"getAllDefinitions":[{"__symbolic":"method"}],"queryDefinitions":[{"__symbolic":"method"}],"getDocumentDefinition":[{"__symbolic":"method"}],"getDocuments":[{"__symbolic":"method"}],"getDocument":[{"__symbolic":"method"}],"modifyDocument":[{"__symbolic":"method"}],"getProcessDocumentDefinitions":[{"__symbolic":"method"}],"findProcessDocumentDefinitions":[{"__symbolic":"method"}],"findProcessDocumentInstances":[{"__symbolic":"method"}],"newDocumentAndStartProcess":[{"__symbolic":"method"}],"modifyDocumentAndCompleteTask":[{"__symbolic":"method"}],"modifyDocumentAndStartProcess":[{"__symbolic":"method"}],"createProcessDocumentDefinition":[{"__symbolic":"method"}],"createDocumentDefinition":[{"__symbolic":"method"}],"deleteProcessDocumentDefinition":[{"__symbolic":"method"}],"getAuditLog":[{"__symbolic":"method"}],"assignResource":[{"__symbolic":"method"}],"removeResource":[{"__symbolic":"method"}],"removeDocumentDefinition":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"DocumentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":18,"character":1}}],"members":{}},"DocumentSearchRequest":{"__symbolic":"interface"},"DocumentSearchRequestHttpBody":{"__symbolic":"class","members":{}},"DocumentSearchRequestImpl":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"@valtimo/contract","name":"SortState","line":60,"character":11},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25,"module":"./lib/document-search-request"}]}]}],"asHttpBody":[{"__symbolic":"method"}],"asHttpParams":[{"__symbolic":"method"}],"setPage":[{"__symbolic":"method"}],"getSortString":[{"__symbolic":"method"}]}}},"origins":{"DocumentService":"./lib/document.service","DocumentModule":"./lib/document.module","DocumentSearchRequest":"./lib/document-search-request","DocumentSearchRequestHttpBody":"./lib/document-search-request","DocumentSearchRequestImpl":"./lib/document-search-request"},"importAs":"@valtimo/document"}
|