@valtimo/document 5.3.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/document.module.mjs +5 -5
- package/esm2020/lib/document.service.mjs +4 -4
- package/esm2020/lib/models/index.mjs +12 -14
- package/esm2020/lib/models/list-sorting.model.mjs +16 -1
- package/fesm2015/valtimo-document.mjs +18 -20
- package/fesm2015/valtimo-document.mjs.map +1 -1
- package/fesm2020/valtimo-document.mjs +34 -20
- package/fesm2020/valtimo-document.mjs.map +1 -1
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/list-sorting.model.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -17,10 +17,10 @@ import { NgModule } from '@angular/core';
|
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
18
|
export class DocumentModule {
|
|
19
19
|
}
|
|
20
|
-
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
21
|
-
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
22
|
-
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
20
|
+
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
21
|
+
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule });
|
|
22
|
+
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule, decorators: [{
|
|
24
24
|
type: NgModule
|
|
25
25
|
}] });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9kb2N1bWVudC9zcmMvbGliL2RvY3VtZW50Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7O0FBR3ZDLE1BQU0sT0FBTyxjQUFjOzs0R0FBZCxjQUFjOzZHQUFkLGNBQWM7NkdBQWQsY0FBYzs0RkFBZCxjQUFjO2tCQUQxQixRQUFRIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIENvcHlyaWdodCAyMDE1LTIwMjAgUml0ZW5zZSBCViwgdGhlIE5ldGhlcmxhbmRzLlxuICpcbiAqIExpY2Vuc2VkIHVuZGVyIEVVUEwsIFZlcnNpb24gMS4yICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogaHR0cHM6Ly9qb2ludXAuZWMuZXVyb3BhLmV1L2NvbGxlY3Rpb24vZXVwbC9ldXBsLXRleHQtZXVwbC0xMlxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBiYXNpcyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBOZ01vZHVsZSgpXG5leHBvcnQgY2xhc3MgRG9jdW1lbnRNb2R1bGUge31cbiJdfQ==
|
|
@@ -110,12 +110,12 @@ export class DocumentService {
|
|
|
110
110
|
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
114
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
113
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
114
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentService, decorators: [{
|
|
116
116
|
type: Injectable,
|
|
117
117
|
args: [{
|
|
118
118
|
providedIn: 'root',
|
|
119
119
|
}]
|
|
120
120
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i2.ConfigService }]; } });
|
|
121
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZhbHRpbW8vZG9jdW1lbnQvc3JjL2xpYi9kb2N1bWVudC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUgsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQWEsV0FBVyxFQUFFLFVBQVUsRUFBQyxNQUFNLHNCQUFzQixDQUFDOzs7O0FBNkJ6RSxNQUFNLE9BQU8sZUFBZTtJQUcxQixZQUFvQixJQUFnQixFQUFFLGFBQTRCO1FBQTlDLFNBQUksR0FBSixJQUFJLENBQVk7UUFDbEMsSUFBSSxDQUFDLGtCQUFrQixHQUFHLGFBQWEsQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLFdBQVcsQ0FBQztJQUN4RSxDQUFDO0lBRUQsaUJBQWlCO0lBQ1YsaUJBQWlCO1FBQ3RCLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQXNCLEdBQUcsSUFBSSxDQUFDLGtCQUFrQixxQkFBcUIsQ0FBQyxDQUFDO0lBQzdGLENBQUM7SUFFRCxnQkFBZ0IsQ0FBQyxNQUFZO1FBQzNCLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQ2xCLEdBQUcsSUFBSSxDQUFDLGtCQUFrQixxQkFBcUIsRUFDL0MsRUFBQyxNQUFNLEVBQUMsQ0FDVCxDQUF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2FwcGxpY2F0aW9uL2pzb24nLFxuICAgICAgfSksXG4gICAgfTtcbiAgICByZXR1cm4gdGhpcy5odHRwLmRlbGV0ZTx2b2lkPihcbiAgICAgIGAke3RoaXMudmFsdGltb0VuZHBvaW50VXJpfWRvY3VtZW50LyR7ZG9jdW1lbnRJZH0vcmVzb3VyY2UvJHtyZXNvdXJjZUlkfWAsXG4gICAgICBvcHRpb25zXG4gICAgKTtcbiAgfVxuXG4gIHJlbW92ZURvY3VtZW50RGVmaW5pdGlvbihuYW1lOiBzdHJpbmcpOiBPYnNlcnZhYmxlPFVuZGVwbG95RG9jdW1lbnREZWZpbml0aW9uUmVzdWx0PiB7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5kZWxldGU8VW5kZXBsb3lEb2N1bWVudERlZmluaXRpb25SZXN1bHQ+KFxuICAgICAgYCR7dGhpcy52YWx0aW1vRW5kcG9pbnRVcml9ZG9jdW1lbnQtZGVmaW5pdGlvbi8ke25hbWV9YFxuICAgICk7XG4gIH1cblxuICBzZW5kTWVzc2FnZShkb2N1bWVudElkOiBzdHJpbmcsIHJlcXVlc3Q6IERvY3VtZW50U2VuZE1lc3NhZ2VSZXF1ZXN0KTogT2JzZXJ2YWJsZTxhbnk+IHtcbiAgICByZXR1cm4gdGhpcy5odHRwLnBvc3QoYCR7dGhpcy52YWx0aW1vRW5kcG9pbnRVcml9ZG9jdW1lbnQvJHtkb2N1bWVudElkfS9tZXNzYWdlYCwgcmVxdWVzdCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
2
3
|
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* * you may not use this file except in compliance with the License.
|
|
7
|
-
* * You may obtain a copy of the License at
|
|
8
|
-
* *
|
|
9
|
-
* * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
10
|
-
* *
|
|
11
|
-
* * Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* * distributed under the License is distributed on an "AS IS" basis,
|
|
13
|
-
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* * See the License for the specific language governing permissions and
|
|
15
|
-
* * limitations under the License.
|
|
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
|
|
16
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.
|
|
17
15
|
*/
|
|
18
16
|
export * from './document.model';
|
|
19
17
|
export * from './list-sorting.model';
|
|
20
18
|
export * from './audit.model';
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2RvY3VtZW50L3NyYy9saWIvbW9kZWxzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUgsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLHNCQUFzQixDQUFDO0FBQ3JDLGNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIENvcHlyaWdodCAyMDE1LTIwMjAgUml0ZW5zZSBCViwgdGhlIE5ldGhlcmxhbmRzLlxuICpcbiAqIExpY2Vuc2VkIHVuZGVyIEVVUEwsIFZlcnNpb24gMS4yICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogaHR0cHM6Ly9qb2ludXAuZWMuZXVyb3BhLmV1L2NvbGxlY3Rpb24vZXVwbC9ldXBsLXRleHQtZXVwbC0xMlxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBiYXNpcyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9kb2N1bWVudC5tb2RlbCc7XG5leHBvcnQgKiBmcm9tICcuL2xpc3Qtc29ydGluZy5tb2RlbCc7XG5leHBvcnQgKiBmcm9tICcuL2F1ZGl0Lm1vZGVsJztcbiJdfQ==
|
|
@@ -1,2 +1,17 @@
|
|
|
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
|
+
*/
|
|
1
16
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC1zb3J0aW5nLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9kb2N1bWVudC9zcmMvbGliL21vZGVscy9saXN0LXNvcnRpbmcubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0ciLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQ29weXJpZ2h0IDIwMTUtMjAyMCBSaXRlbnNlIEJWLCB0aGUgTmV0aGVybGFuZHMuXG4gKlxuICogTGljZW5zZWQgdW5kZXIgRVVQTCwgVmVyc2lvbiAxLjIgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiBodHRwczovL2pvaW51cC5lYy5ldXJvcGEuZXUvY29sbGVjdGlvbi9ldXBsL2V1cGwtdGV4dC1ldXBsLTEyXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIGJhc2lzLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgdHlwZSBEaXJlY3Rpb24gPSAnQVNDJyB8ICdERVNDJztcblxuZXhwb3J0IGludGVyZmFjZSBTb3J0IHtcbiAgbmFtZTogc3RyaW5nO1xuICBkaXJlY3Rpb246IERpcmVjdGlvbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBTb3J0U3RhdGUge1xuICBzdGF0ZTogU29ydDtcbiAgaXNTb3J0aW5nOiBib29sZWFuO1xufVxuIl19
|
|
@@ -57,21 +57,19 @@ class DocumentDefinitionCreateRequest {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/*
|
|
60
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
61
|
+
*
|
|
62
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
63
|
+
* you may not use this file except in compliance with the License.
|
|
64
|
+
* You may obtain a copy of the License at
|
|
60
65
|
*
|
|
61
|
-
*
|
|
62
|
-
* *
|
|
63
|
-
* * Licensed under EUPL, Version 1.2 (the "License");
|
|
64
|
-
* * you may not use this file except in compliance with the License.
|
|
65
|
-
* * You may obtain a copy of the License at
|
|
66
|
-
* *
|
|
67
|
-
* * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
68
|
-
* *
|
|
69
|
-
* * Unless required by applicable law or agreed to in writing, software
|
|
70
|
-
* * distributed under the License is distributed on an "AS IS" basis,
|
|
71
|
-
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
72
|
-
* * See the License for the specific language governing permissions and
|
|
73
|
-
* * limitations under the License.
|
|
66
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
74
67
|
*
|
|
68
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
69
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
70
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
71
|
+
* See the License for the specific language governing permissions and
|
|
72
|
+
* limitations under the License.
|
|
75
73
|
*/
|
|
76
74
|
|
|
77
75
|
/*
|
|
@@ -181,9 +179,9 @@ class DocumentService {
|
|
|
181
179
|
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);
|
|
182
180
|
}
|
|
183
181
|
}
|
|
184
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
185
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
182
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
183
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentService, decorators: [{
|
|
187
185
|
type: Injectable,
|
|
188
186
|
args: [{
|
|
189
187
|
providedIn: 'root',
|
|
@@ -207,10 +205,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
207
205
|
*/
|
|
208
206
|
class DocumentModule {
|
|
209
207
|
}
|
|
210
|
-
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
211
|
-
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
212
|
-
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
208
|
+
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
209
|
+
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule });
|
|
210
|
+
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule });
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule, decorators: [{
|
|
214
212
|
type: NgModule
|
|
215
213
|
}] });
|
|
216
214
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-document.mjs","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n","/*\n *\n * * Copyright 2015-2020 Ritense BV, the Netherlands.\n * *\n * * Licensed under EUPL, Version 1.2 (the \"License\");\n * * you may not use this file except in compliance with the License.\n * * You may obtain a copy of the License at\n * *\n * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n * *\n * * Unless required by applicable law or agreed to in writing, software\n * * distributed under the License is distributed on an \"AS IS\" basis,\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * * See the License for the specific language governing permissions and\n * * limitations under the License.\n *\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(),\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;AAcG;MA0IU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,MAAc,EAAE,OAAkC,EAAA;AAC5D,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MAOY,sBAAsB,CAAA;IAIjC,WAAY,CAAA,UAAkB,EAAE,OAAe,EAAA;AAC7C,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,qCAAqC,CAAA;IAMhD,WAAY,CAAA,oBAA4B,EAAE,OAA+B,EAAA;AACvE,QAAA,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACjD,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,oBAA4B,EAAE,OAAkC,EAAA;AAC1E,QAAA,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACjD,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,+BAA+B,CAAA;AAG1C,IAAA,WAAA,CAAY,UAAkB,EAAA;AAC5B,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC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AAC;KACf;AAED,IAAA,OAAO,CAAC,IAAY,EAAA;AAClB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;AAED,IAAA,aAAa,CAAC,IAAe,EAAA;AAC3B,QAAA,OAAO,CAAG,EAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;AACF;;AChHD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"valtimo-document.mjs","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(),\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;AAcG;MA0IU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,MAAc,EAAE,OAAkC,EAAA;AAC5D,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MAOY,sBAAsB,CAAA;IAIjC,WAAY,CAAA,UAAkB,EAAE,OAAe,EAAA;AAC7C,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,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,IAAI,CAAC,YAAY,CAAC;AAC3C,SAAA;AAED,QAAA,OAAO,QAAQ,CAAC;KACjB;IAED,YAAY,GAAA;AACV,QAAA,IAAI,MAAM,GAAG,IAAI,UAAU,EAAE;AAC1B,aAAA,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC;aAC1C,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;aACjC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACrC,IAAI,IAAI,CAAC,IAAI,EAAE;AACb,YAAA,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5D,SAAA;AACD,QAAA,OAAO,MAAM,CAAC;KACf;AAED,IAAA,OAAO,CAAC,IAAY,EAAA;AAClB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;AAED,IAAA,aAAa,CAAC,IAAe,EAAA;AAC3B,QAAA,OAAO,CAAG,EAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;AACF;;AChHD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
@@ -73,21 +73,35 @@ class DocumentDefinitionCreateRequest {
|
|
|
73
73
|
*/
|
|
74
74
|
|
|
75
75
|
/*
|
|
76
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
76
77
|
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* * you may not use this file except in compliance with the License.
|
|
81
|
-
* * You may obtain a copy of the License at
|
|
82
|
-
* *
|
|
83
|
-
* * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
84
|
-
* *
|
|
85
|
-
* * Unless required by applicable law or agreed to in writing, software
|
|
86
|
-
* * distributed under the License is distributed on an "AS IS" basis,
|
|
87
|
-
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
88
|
-
* * See the License for the specific language governing permissions and
|
|
89
|
-
* * limitations under the License.
|
|
78
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
79
|
+
* you may not use this file except in compliance with the License.
|
|
80
|
+
* You may obtain a copy of the License at
|
|
90
81
|
*
|
|
82
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
83
|
+
*
|
|
84
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
85
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
86
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
87
|
+
* See the License for the specific language governing permissions and
|
|
88
|
+
* limitations under the License.
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/*
|
|
92
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
93
|
+
*
|
|
94
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
95
|
+
* you may not use this file except in compliance with the License.
|
|
96
|
+
* You may obtain a copy of the License at
|
|
97
|
+
*
|
|
98
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
99
|
+
*
|
|
100
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
101
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
102
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
103
|
+
* See the License for the specific language governing permissions and
|
|
104
|
+
* limitations under the License.
|
|
91
105
|
*/
|
|
92
106
|
|
|
93
107
|
/*
|
|
@@ -197,9 +211,9 @@ class DocumentService {
|
|
|
197
211
|
return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);
|
|
198
212
|
}
|
|
199
213
|
}
|
|
200
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
201
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
214
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
215
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentService, decorators: [{
|
|
203
217
|
type: Injectable,
|
|
204
218
|
args: [{
|
|
205
219
|
providedIn: 'root',
|
|
@@ -223,10 +237,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
223
237
|
*/
|
|
224
238
|
class DocumentModule {
|
|
225
239
|
}
|
|
226
|
-
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
227
|
-
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
228
|
-
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
240
|
+
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
241
|
+
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule });
|
|
242
|
+
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule });
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentModule, decorators: [{
|
|
230
244
|
type: NgModule
|
|
231
245
|
}] });
|
|
232
246
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-document.mjs","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/audit.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface AuditEvent {\n className: string;\n id: string;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface MetaData {\n id: any;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface AuditRecord {\n metaData: MetaData;\n createdOn: Date;\n auditEvent: AuditEvent;\n}\n","/*\n *\n * * Copyright 2015-2020 Ritense BV, the Netherlands.\n * *\n * * Licensed under EUPL, Version 1.2 (the \"License\");\n * * you may not use this file except in compliance with the License.\n * * You may obtain a copy of the License at\n * *\n * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n * *\n * * Unless required by applicable law or agreed to in writing, software\n * * distributed under the License is distributed on an \"AS IS\" basis,\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * * See the License for the specific language governing permissions and\n * * limitations under the License.\n *\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(),\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;AAcG;MA0IU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,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,EAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;AACF;;AChHD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"valtimo-document.mjs","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/list-sorting.model.ts","../../../../projects/valtimo/document/src/lib/models/audit.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type Direction = 'ASC' | 'DESC';\n\nexport interface Sort {\n name: string;\n direction: Direction;\n}\n\nexport interface SortState {\n state: Sort;\n isSorting: boolean;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface AuditEvent {\n className: string;\n id: string;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface MetaData {\n id: any;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface AuditRecord {\n metaData: MetaData;\n createdOn: Date;\n auditEvent: AuditEvent;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(),\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;AAcG;MA0IU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,MAAc,EAAE,OAAkC,EAAA;AAC5D,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MAOY,sBAAsB,CAAA;IAIjC,WAAY,CAAA,UAAkB,EAAE,OAAe,EAAA;AAC7C,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,qCAAqC,CAAA;IAMhD,WAAY,CAAA,oBAA4B,EAAE,OAA+B,EAAA;AACvE,QAAA,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACjD,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,oBAA4B,EAAE,OAAkC,EAAA;AAC1E,QAAA,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACjD,QAAA,IAAI,CAAC,OAAO,GA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AAC;QACrC,IAAI,IAAI,CAAC,IAAI,EAAE;AACb,YAAA,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5D,SAAA;AACD,QAAA,OAAO,MAAM,CAAC;KACf;AAED,IAAA,OAAO,CAAC,IAAY,EAAA;AAClB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;AAED,IAAA,aAAa,CAAC,IAAe,EAAA;AAC3B,QAAA,OAAO,CAAG,EAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;AACF;;AChHD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/document/src/lib/models/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/document/src/lib/models/index.ts"],"names":[],"mappings":"AAgBA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-sorting.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/document/src/lib/models/list-sorting.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-sorting.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/document/src/lib/models/list-sorting.model.ts"],"names":[],"mappings":"AAgBA,oBAAY,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;AAEvC,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,IAAI,CAAC;IACZ,SAAS,EAAE,OAAO,CAAC;CACpB"}
|