@valtimo/document 4.15.3-next-main.16 → 4.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/valtimo-document.umd.js +313 -215
- package/bundles/valtimo-document.umd.js.map +1 -1
- package/bundles/valtimo-document.umd.min.js +1 -1
- package/bundles/valtimo-document.umd.min.js.map +1 -1
- package/esm2015/lib/document-search-request.js +64 -64
- package/esm2015/lib/document.module.js +22 -22
- package/esm2015/lib/document.service.js +118 -118
- package/esm2015/lib/models/audit.model.js +16 -0
- package/esm2015/lib/models/document.model.js +52 -0
- package/esm2015/lib/models/index.js +21 -0
- package/esm2015/lib/models/list-sorting.model.js +1 -0
- package/esm2015/public_api.js +23 -22
- package/esm2015/valtimo-document.js +5 -5
- package/fesm2015/valtimo-document.js +293 -207
- package/fesm2015/valtimo-document.js.map +1 -1
- package/lib/document-search-request.d.ts +50 -50
- package/lib/document.module.d.ts +2 -2
- package/lib/document.service.d.ts +30 -30
- package/lib/models/audit.model.d.ts +18 -0
- package/lib/models/document.model.d.ts +178 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/list-sorting.model.d.ts +9 -0
- package/package.json +1 -1
- package/public_api.d.ts +4 -3
- package/valtimo-document.d.ts +5 -4
- package/valtimo-document.metadata.json +1 -1
|
@@ -4,235 +4,333 @@
|
|
|
4
4
|
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.document = {}), global.ng.core, global.ng.common.http, global.config));
|
|
5
5
|
}(this, (function (exports, i0, i1, i2) { 'use strict';
|
|
6
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
|
|
23
|
-
function
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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 ModifyDocumentRequestImpl = /** @class */ (function () {
|
|
23
|
+
function ModifyDocumentRequestImpl(documentId, content, versionBasedOn) {
|
|
24
|
+
this.documentId = documentId;
|
|
25
|
+
this.content = content;
|
|
26
|
+
this.versionBasedOn = versionBasedOn;
|
|
27
|
+
}
|
|
28
|
+
return ModifyDocumentRequestImpl;
|
|
29
|
+
}());
|
|
30
|
+
var ModifyDocumentAndCompleteTaskRequestImpl = /** @class */ (function () {
|
|
31
|
+
function ModifyDocumentAndCompleteTaskRequestImpl(taskId, request) {
|
|
32
|
+
this.taskId = taskId;
|
|
33
|
+
this.request = request;
|
|
34
|
+
}
|
|
35
|
+
return ModifyDocumentAndCompleteTaskRequestImpl;
|
|
36
|
+
}());
|
|
37
|
+
var NewDocumentRequestImpl = /** @class */ (function () {
|
|
38
|
+
function NewDocumentRequestImpl(definition, content) {
|
|
39
|
+
this.definition = definition;
|
|
40
|
+
this.content = content;
|
|
41
|
+
}
|
|
42
|
+
return NewDocumentRequestImpl;
|
|
43
|
+
}());
|
|
44
|
+
var NewDocumentAndStartProcessRequestImpl = /** @class */ (function () {
|
|
45
|
+
function NewDocumentAndStartProcessRequestImpl(processDefinitionKey, request) {
|
|
46
|
+
this.processDefinitionKey = processDefinitionKey;
|
|
47
|
+
this.request = request;
|
|
48
|
+
}
|
|
49
|
+
return NewDocumentAndStartProcessRequestImpl;
|
|
50
|
+
}());
|
|
51
|
+
var ModifyDocumentAndStartProcessRequestImpl = /** @class */ (function () {
|
|
52
|
+
function ModifyDocumentAndStartProcessRequestImpl(processDefinitionKey, request) {
|
|
53
|
+
this.processDefinitionKey = processDefinitionKey;
|
|
54
|
+
this.request = request;
|
|
55
|
+
}
|
|
56
|
+
return ModifyDocumentAndStartProcessRequestImpl;
|
|
57
|
+
}());
|
|
58
|
+
var DocumentDefinitionCreateRequest = /** @class */ (function () {
|
|
59
|
+
function DocumentDefinitionCreateRequest(definition) {
|
|
60
|
+
this.definition = definition;
|
|
61
|
+
}
|
|
62
|
+
return DocumentDefinitionCreateRequest;
|
|
63
|
+
}());
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
67
|
+
*
|
|
68
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
69
|
+
* you may not use this file except in compliance with the License.
|
|
70
|
+
* You may obtain a copy of the License at
|
|
71
|
+
*
|
|
72
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
73
|
+
*
|
|
74
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
75
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
76
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
77
|
+
* See the License for the specific language governing permissions and
|
|
78
|
+
* limitations under the License.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
/*
|
|
82
|
+
*
|
|
83
|
+
* * Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
84
|
+
* *
|
|
85
|
+
* * Licensed under EUPL, Version 1.2 (the "License");
|
|
86
|
+
* * you may not use this file except in compliance with the License.
|
|
87
|
+
* * You may obtain a copy of the License at
|
|
88
|
+
* *
|
|
89
|
+
* * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
90
|
+
* *
|
|
91
|
+
* * Unless required by applicable law or agreed to in writing, software
|
|
92
|
+
* * distributed under the License is distributed on an "AS IS" basis,
|
|
93
|
+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
94
|
+
* * See the License for the specific language governing permissions and
|
|
95
|
+
* * limitations under the License.
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
/*
|
|
100
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
101
|
+
*
|
|
102
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
103
|
+
* you may not use this file except in compliance with the License.
|
|
104
|
+
* You may obtain a copy of the License at
|
|
105
|
+
*
|
|
106
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
107
|
+
*
|
|
108
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
109
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
110
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
111
|
+
* See the License for the specific language governing permissions and
|
|
112
|
+
* limitations under the License.
|
|
113
|
+
*/
|
|
114
|
+
var DocumentService = /** @class */ (function () {
|
|
115
|
+
function DocumentService(http, configService) {
|
|
116
|
+
this.http = http;
|
|
117
|
+
this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
|
|
118
|
+
}
|
|
119
|
+
// Document-calls
|
|
120
|
+
DocumentService.prototype.getAllDefinitions = function () {
|
|
121
|
+
return this.http.get(this.valtimoEndpointUri + "document-definition");
|
|
122
|
+
};
|
|
123
|
+
DocumentService.prototype.queryDefinitions = function (params) {
|
|
124
|
+
return this.http.get(this.valtimoEndpointUri + "document-definition", { params: params });
|
|
125
|
+
};
|
|
126
|
+
DocumentService.prototype.getDocumentDefinition = function (documentDefinitionName) {
|
|
127
|
+
return this.http.get(this.valtimoEndpointUri + "document-definition/" + documentDefinitionName);
|
|
128
|
+
};
|
|
129
|
+
DocumentService.prototype.getDocuments = function (documentSearchRequest) {
|
|
130
|
+
return this.http.post(this.valtimoEndpointUri + "document-search", documentSearchRequest.asHttpBody(), { params: documentSearchRequest.asHttpParams() });
|
|
131
|
+
};
|
|
132
|
+
DocumentService.prototype.getDocument = function (documentId) {
|
|
133
|
+
return this.http.get(this.valtimoEndpointUri + "document/" + documentId);
|
|
134
|
+
};
|
|
135
|
+
DocumentService.prototype.modifyDocument = function (document) {
|
|
136
|
+
return this.http.put(this.valtimoEndpointUri + "document", document);
|
|
137
|
+
};
|
|
138
|
+
// ProcessDocument-calls
|
|
139
|
+
DocumentService.prototype.getProcessDocumentDefinitions = function () {
|
|
140
|
+
return this.http.get(this.valtimoEndpointUri + "process-document/definition");
|
|
141
|
+
};
|
|
142
|
+
DocumentService.prototype.findProcessDocumentDefinitions = function (documentDefinitionName) {
|
|
143
|
+
return this.http.get(this.valtimoEndpointUri + "process-document/definition/document/" + documentDefinitionName);
|
|
144
|
+
};
|
|
145
|
+
DocumentService.prototype.findProcessDocumentInstances = function (documentId) {
|
|
146
|
+
return this.http.get(this.valtimoEndpointUri + "process-document/instance/document/" + documentId);
|
|
147
|
+
};
|
|
148
|
+
DocumentService.prototype.newDocumentAndStartProcess = function (request) {
|
|
149
|
+
return this.http.post(this.valtimoEndpointUri + "process-document/operation/new-document-and-start-process", request);
|
|
150
|
+
};
|
|
151
|
+
DocumentService.prototype.modifyDocumentAndCompleteTask = function (request) {
|
|
152
|
+
return this.http.post(this.valtimoEndpointUri + "process-document/operation/modify-document-and-complete-task", request);
|
|
153
|
+
};
|
|
154
|
+
DocumentService.prototype.modifyDocumentAndStartProcess = function (request) {
|
|
155
|
+
return this.http.post(this.valtimoEndpointUri + "process-document/operation/modify-document-and-start-process", request);
|
|
156
|
+
};
|
|
157
|
+
DocumentService.prototype.createProcessDocumentDefinition = function (request) {
|
|
158
|
+
return this.http.post(this.valtimoEndpointUri + "process-document/definition", request);
|
|
159
|
+
};
|
|
160
|
+
DocumentService.prototype.createDocumentDefinition = function (documentDefinitionCreateRequest) {
|
|
161
|
+
var options = {
|
|
162
|
+
headers: new i1.HttpHeaders({
|
|
163
|
+
'Content-Type': 'application/json',
|
|
164
|
+
}),
|
|
165
|
+
};
|
|
166
|
+
return this.http.post(this.valtimoEndpointUri + "document-definition", documentDefinitionCreateRequest, options);
|
|
167
|
+
};
|
|
168
|
+
DocumentService.prototype.deleteProcessDocumentDefinition = function (request) {
|
|
169
|
+
var options = {
|
|
170
|
+
headers: new i1.HttpHeaders({
|
|
171
|
+
'Content-Type': 'application/json',
|
|
172
|
+
}),
|
|
173
|
+
body: request,
|
|
174
|
+
};
|
|
175
|
+
return this.http.delete(this.valtimoEndpointUri + "process-document/definition", options);
|
|
176
|
+
};
|
|
177
|
+
DocumentService.prototype.getAuditLog = function (documentId, page) {
|
|
178
|
+
if (page === void 0) { page = 0; }
|
|
179
|
+
var params = new i1.HttpParams();
|
|
180
|
+
params = params.set('page', page.toString());
|
|
181
|
+
return this.http.get(this.valtimoEndpointUri + "process-document/instance/document/" + documentId + "/audit", { params: params });
|
|
182
|
+
};
|
|
183
|
+
DocumentService.prototype.assignResource = function (documentId, resourceId) {
|
|
184
|
+
return this.http.post(this.valtimoEndpointUri + "document/" + documentId + "/resource/" + resourceId, {});
|
|
185
|
+
};
|
|
186
|
+
DocumentService.prototype.removeResource = function (documentId, resourceId) {
|
|
187
|
+
var options = {
|
|
188
|
+
headers: new i1.HttpHeaders({
|
|
189
|
+
'Content-Type': 'application/json',
|
|
190
|
+
}),
|
|
191
|
+
};
|
|
192
|
+
return this.http.delete(this.valtimoEndpointUri + "document/" + documentId + "/resource/" + resourceId, options);
|
|
193
|
+
};
|
|
194
|
+
DocumentService.prototype.removeDocumentDefinition = function (name) {
|
|
195
|
+
return this.http.delete(this.valtimoEndpointUri + "document-definition/" + name);
|
|
196
|
+
};
|
|
197
|
+
DocumentService.prototype.sendMessage = function (documentId, request) {
|
|
198
|
+
return this.http.post(this.valtimoEndpointUri + "document/" + documentId + "/message", request);
|
|
199
|
+
};
|
|
200
|
+
return DocumentService;
|
|
201
|
+
}());
|
|
202
|
+
DocumentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DocumentService_Factory() { return new DocumentService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: DocumentService, providedIn: "root" });
|
|
203
|
+
DocumentService.decorators = [
|
|
204
|
+
{ type: i0.Injectable, args: [{
|
|
205
|
+
providedIn: 'root',
|
|
206
|
+
},] }
|
|
207
|
+
];
|
|
208
|
+
DocumentService.ctorParameters = function () { return [
|
|
209
|
+
{ type: i1.HttpClient },
|
|
210
|
+
{ type: i2.ConfigService }
|
|
119
211
|
]; };
|
|
120
212
|
|
|
121
|
-
/*
|
|
122
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
123
|
-
*
|
|
124
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
125
|
-
* you may not use this file except in compliance with the License.
|
|
126
|
-
* You may obtain a copy of the License at
|
|
127
|
-
*
|
|
128
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
129
|
-
*
|
|
130
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
131
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
132
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
133
|
-
* See the License for the specific language governing permissions and
|
|
134
|
-
* limitations under the License.
|
|
135
|
-
*/
|
|
136
|
-
var DocumentModule = /** @class */ (function () {
|
|
137
|
-
function DocumentModule() {
|
|
138
|
-
}
|
|
139
|
-
return DocumentModule;
|
|
140
|
-
}());
|
|
141
|
-
DocumentModule.decorators = [
|
|
142
|
-
{ type: i0.NgModule }
|
|
213
|
+
/*
|
|
214
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
215
|
+
*
|
|
216
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
217
|
+
* you may not use this file except in compliance with the License.
|
|
218
|
+
* You may obtain a copy of the License at
|
|
219
|
+
*
|
|
220
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
221
|
+
*
|
|
222
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
223
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
224
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
225
|
+
* See the License for the specific language governing permissions and
|
|
226
|
+
* limitations under the License.
|
|
227
|
+
*/
|
|
228
|
+
var DocumentModule = /** @class */ (function () {
|
|
229
|
+
function DocumentModule() {
|
|
230
|
+
}
|
|
231
|
+
return DocumentModule;
|
|
232
|
+
}());
|
|
233
|
+
DocumentModule.decorators = [
|
|
234
|
+
{ type: i0.NgModule }
|
|
143
235
|
];
|
|
144
236
|
|
|
145
|
-
/*
|
|
146
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
147
|
-
*
|
|
148
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
149
|
-
* you may not use this file except in compliance with the License.
|
|
150
|
-
* You may obtain a copy of the License at
|
|
151
|
-
*
|
|
152
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
153
|
-
*
|
|
154
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
155
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
156
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
157
|
-
* See the License for the specific language governing permissions and
|
|
158
|
-
* limitations under the License.
|
|
159
|
-
*/
|
|
160
|
-
var DocumentSearchRequestHttpBody = /** @class */ (function () {
|
|
161
|
-
function DocumentSearchRequestHttpBody() {
|
|
162
|
-
}
|
|
163
|
-
return DocumentSearchRequestHttpBody;
|
|
164
|
-
}());
|
|
165
|
-
var DocumentSearchRequestImpl = /** @class */ (function () {
|
|
166
|
-
function DocumentSearchRequestImpl(definitionName, page, size, sequence, createdBy, globalSearchFilter, sort, otherFilters) {
|
|
167
|
-
this.definitionName = definitionName;
|
|
168
|
-
this.page = page;
|
|
169
|
-
this.size = size;
|
|
170
|
-
this.sequence = sequence;
|
|
171
|
-
this.createdBy = createdBy;
|
|
172
|
-
this.globalSearchFilter = globalSearchFilter;
|
|
173
|
-
this.sort = sort;
|
|
174
|
-
this.otherFilters = otherFilters;
|
|
175
|
-
}
|
|
176
|
-
DocumentSearchRequestImpl.prototype.asHttpBody = function () {
|
|
177
|
-
var httpBody = new DocumentSearchRequestHttpBody();
|
|
178
|
-
httpBody.documentDefinitionName = this.definitionName;
|
|
179
|
-
if (this.sequence) {
|
|
180
|
-
httpBody.sequence = this.sequence;
|
|
181
|
-
}
|
|
182
|
-
if (this.createdBy) {
|
|
183
|
-
httpBody.createdBy = this.createdBy;
|
|
184
|
-
}
|
|
185
|
-
if (this.globalSearchFilter) {
|
|
186
|
-
httpBody.globalSearchFilter = this.globalSearchFilter;
|
|
187
|
-
}
|
|
188
|
-
if (this.otherFilters) {
|
|
189
|
-
httpBody.otherFilters = this.otherFilters;
|
|
190
|
-
}
|
|
191
|
-
return httpBody;
|
|
192
|
-
};
|
|
193
|
-
DocumentSearchRequestImpl.prototype.asHttpParams = function () {
|
|
194
|
-
var params = new i1.HttpParams()
|
|
195
|
-
.set('definitionName', this.definitionName)
|
|
196
|
-
.set('page', this.page.toString())
|
|
197
|
-
.set('size', this.size.toString());
|
|
198
|
-
if (this.sort) {
|
|
199
|
-
params = params.set('sort', this.getSortString(this.sort));
|
|
200
|
-
}
|
|
201
|
-
return params;
|
|
202
|
-
};
|
|
203
|
-
DocumentSearchRequestImpl.prototype.setPage = function (page) {
|
|
204
|
-
this.page = page;
|
|
205
|
-
};
|
|
206
|
-
DocumentSearchRequestImpl.prototype.getSortString = function (sort) {
|
|
207
|
-
return sort.state.name + "," + sort.state.direction;
|
|
208
|
-
};
|
|
209
|
-
return DocumentSearchRequestImpl;
|
|
237
|
+
/*
|
|
238
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
239
|
+
*
|
|
240
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
241
|
+
* you may not use this file except in compliance with the License.
|
|
242
|
+
* You may obtain a copy of the License at
|
|
243
|
+
*
|
|
244
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
245
|
+
*
|
|
246
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
247
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
248
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
249
|
+
* See the License for the specific language governing permissions and
|
|
250
|
+
* limitations under the License.
|
|
251
|
+
*/
|
|
252
|
+
var DocumentSearchRequestHttpBody = /** @class */ (function () {
|
|
253
|
+
function DocumentSearchRequestHttpBody() {
|
|
254
|
+
}
|
|
255
|
+
return DocumentSearchRequestHttpBody;
|
|
256
|
+
}());
|
|
257
|
+
var DocumentSearchRequestImpl = /** @class */ (function () {
|
|
258
|
+
function DocumentSearchRequestImpl(definitionName, page, size, sequence, createdBy, globalSearchFilter, sort, otherFilters) {
|
|
259
|
+
this.definitionName = definitionName;
|
|
260
|
+
this.page = page;
|
|
261
|
+
this.size = size;
|
|
262
|
+
this.sequence = sequence;
|
|
263
|
+
this.createdBy = createdBy;
|
|
264
|
+
this.globalSearchFilter = globalSearchFilter;
|
|
265
|
+
this.sort = sort;
|
|
266
|
+
this.otherFilters = otherFilters;
|
|
267
|
+
}
|
|
268
|
+
DocumentSearchRequestImpl.prototype.asHttpBody = function () {
|
|
269
|
+
var httpBody = new DocumentSearchRequestHttpBody();
|
|
270
|
+
httpBody.documentDefinitionName = this.definitionName;
|
|
271
|
+
if (this.sequence) {
|
|
272
|
+
httpBody.sequence = this.sequence;
|
|
273
|
+
}
|
|
274
|
+
if (this.createdBy) {
|
|
275
|
+
httpBody.createdBy = this.createdBy;
|
|
276
|
+
}
|
|
277
|
+
if (this.globalSearchFilter) {
|
|
278
|
+
httpBody.globalSearchFilter = this.globalSearchFilter;
|
|
279
|
+
}
|
|
280
|
+
if (this.otherFilters) {
|
|
281
|
+
httpBody.otherFilters = this.otherFilters;
|
|
282
|
+
}
|
|
283
|
+
return httpBody;
|
|
284
|
+
};
|
|
285
|
+
DocumentSearchRequestImpl.prototype.asHttpParams = function () {
|
|
286
|
+
var params = new i1.HttpParams()
|
|
287
|
+
.set('definitionName', this.definitionName)
|
|
288
|
+
.set('page', this.page.toString())
|
|
289
|
+
.set('size', this.size.toString());
|
|
290
|
+
if (this.sort) {
|
|
291
|
+
params = params.set('sort', this.getSortString(this.sort));
|
|
292
|
+
}
|
|
293
|
+
return params;
|
|
294
|
+
};
|
|
295
|
+
DocumentSearchRequestImpl.prototype.setPage = function (page) {
|
|
296
|
+
this.page = page;
|
|
297
|
+
};
|
|
298
|
+
DocumentSearchRequestImpl.prototype.getSortString = function (sort) {
|
|
299
|
+
return sort.state.name + "," + sort.state.direction;
|
|
300
|
+
};
|
|
301
|
+
return DocumentSearchRequestImpl;
|
|
210
302
|
}());
|
|
211
303
|
|
|
212
|
-
/*
|
|
213
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
214
|
-
*
|
|
215
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
216
|
-
* you may not use this file except in compliance with the License.
|
|
217
|
-
* You may obtain a copy of the License at
|
|
218
|
-
*
|
|
219
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
220
|
-
*
|
|
221
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
222
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
223
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
224
|
-
* See the License for the specific language governing permissions and
|
|
225
|
-
* limitations under the License.
|
|
304
|
+
/*
|
|
305
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
306
|
+
*
|
|
307
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
308
|
+
* you may not use this file except in compliance with the License.
|
|
309
|
+
* You may obtain a copy of the License at
|
|
310
|
+
*
|
|
311
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
312
|
+
*
|
|
313
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
314
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
315
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
316
|
+
* See the License for the specific language governing permissions and
|
|
317
|
+
* limitations under the License.
|
|
226
318
|
*/
|
|
227
319
|
|
|
228
|
-
/**
|
|
229
|
-
* Generated bundle index. Do not edit.
|
|
320
|
+
/**
|
|
321
|
+
* Generated bundle index. Do not edit.
|
|
230
322
|
*/
|
|
231
323
|
|
|
324
|
+
exports.DocumentDefinitionCreateRequest = DocumentDefinitionCreateRequest;
|
|
232
325
|
exports.DocumentModule = DocumentModule;
|
|
233
326
|
exports.DocumentSearchRequestHttpBody = DocumentSearchRequestHttpBody;
|
|
234
327
|
exports.DocumentSearchRequestImpl = DocumentSearchRequestImpl;
|
|
235
328
|
exports.DocumentService = DocumentService;
|
|
329
|
+
exports.ModifyDocumentAndCompleteTaskRequestImpl = ModifyDocumentAndCompleteTaskRequestImpl;
|
|
330
|
+
exports.ModifyDocumentAndStartProcessRequestImpl = ModifyDocumentAndStartProcessRequestImpl;
|
|
331
|
+
exports.ModifyDocumentRequestImpl = ModifyDocumentRequestImpl;
|
|
332
|
+
exports.NewDocumentAndStartProcessRequestImpl = NewDocumentAndStartProcessRequestImpl;
|
|
333
|
+
exports.NewDocumentRequestImpl = NewDocumentRequestImpl;
|
|
236
334
|
|
|
237
335
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
238
336
|
|