@valtimo/document 5.4.0 → 5.5.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.
@@ -1,21 +1,19 @@
1
1
  /*
2
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
2
3
  *
3
- * * Copyright 2015-2020 Ritense BV, the Netherlands.
4
- * *
5
- * * Licensed under EUPL, Version 1.2 (the "License");
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy92YWx0aW1vL2RvY3VtZW50L3NyYy9saWIvbW9kZWxzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7O0dBZ0JHO0FBRUgsY0FBYyxrQkFBa0IsQ0FBQztBQU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FOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9kb2N1bWVudC5tb2RlbCc7XG5leHBvcnQgKiBmcm9tICcuL2xpc3Qtc29ydGluZy5tb2RlbCc7XG5leHBvcnQgKiBmcm9tICcuL2F1ZGl0Lm1vZGVsJztcbiJdfQ==
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC1zb3J0aW5nLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9kb2N1bWVudC9zcmMvbGliL21vZGVscy9saXN0LXNvcnRpbmcubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIERpcmVjdGlvbiA9ICdBU0MnIHwgJ0RFU0MnO1xuXG5leHBvcnQgaW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YnV0ZWQgb24gYW4gXCJBUyBJU1wiIGJhc2lzLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5leHBvcnQgdHlwZSBEaXJlY3Rpb24gPSAnQVNDJyB8ICdERVNDJztcblxuZXhwb3J0IGludGVyZmFjZSBTb3J0IHtcbiAgbmFtZTogc3RyaW5nO1xuICBkaXJlY3Rpb246IERpcmVjdGlvbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBTb3J0U3RhdGUge1xuICBzdGF0ZTogU29ydDtcbiAgaXNTb3J0aW5nOiBib29sZWFuO1xufVxuIl19
@@ -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
- * * Copyright 2015-2020 Ritense BV, the Netherlands.
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
  /*
@@ -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,E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AG,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;;;;"}
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,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D;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
- * * Copyright 2015-2020 Ritense BV, the Netherlands.
78
- * *
79
- * * Licensed under EUPL, Version 1.2 (the "License");
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
  /*
@@ -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,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,C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AAS,GAAG,IAAI,CAAC,SAAS,CAAC;AACrC,SAAA;QACD,IAAI,IAAI,CAAC,kBAAkB,EAAE;AAC3B,YAAA,QAAQ,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;AACvD,SAAA;QACD,IAAI,IAAI,CAAC,YAAY,EAAE;AACrB,YAAA,QAAQ,CAAC,YAAY,GAAG,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;;;;"}
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,yB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ED,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":"AAkBA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
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":"AAAA,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"}
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"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/document",
3
3
  "license": "EUPL-1.2",
4
- "version": "5.4.0",
4
+ "version": "5.5.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^13.2.3",
7
7
  "@angular/core": "^13.2.3"