@valtimo/document 5.13.0 → 5.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/advanced-document-search-request.mjs +56 -0
- package/esm2020/lib/document.module.mjs +4 -4
- package/esm2020/lib/document.service.mjs +45 -59
- package/esm2020/lib/models/document.model.mjs +1 -1
- package/esm2020/public_api.mjs +2 -1
- package/fesm2015/valtimo-document.mjs +104 -63
- package/fesm2015/valtimo-document.mjs.map +1 -1
- package/fesm2020/valtimo-document.mjs +104 -63
- package/fesm2020/valtimo-document.mjs.map +1 -1
- package/lib/advanced-document-search-request.d.ts +35 -0
- package/lib/advanced-document-search-request.d.ts.map +1 -0
- package/lib/document.service.d.ts +11 -3
- package/lib/document.service.d.ts.map +1 -1
- package/lib/models/document.model.d.ts +8 -0
- package/lib/models/document.model.d.ts.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/public_api.d.ts.map +1 -1
|
@@ -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 assigneeFullName: string;\n assigneeId: string;\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n isActive: boolean;\n}\n\nexport interface AssignHandlerToDocumentResult {\n assigneeId: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n\nexport interface DocumentType {\n url: string;\n name: string;\n}\n\nexport interface UploadProcessLink {\n processDefinitionKey: string;\n processName: string;\n}\n\nexport interface UpdateUploadProcessLinkRequest {\n processDefinitionKey: string;\n}\n","/*\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 {delay, Observable, of} from 'rxjs';\nimport {\n AssignHandlerToDocumentResult,\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n DocumentType,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n UploadProcessLink,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService, SearchField, User} 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 getDocumentTypes(documentDefinitionName: string): Observable<Array<DocumentType>> {\n return this.http.get<Array<DocumentType>>(\n `${this.valtimoEndpointUri}documentdefinition/${documentDefinitionName}/zaaktype/documenttype`\n );\n }\n\n getLinkedUploadProcess(documentDefinitionName: string): Observable<UploadProcessLink> {\n return this.http.get<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n updateLinkedUploadProcess(\n documentDefinitionName: string,\n processDefinitionKey: string\n ): Observable<UploadProcessLink> {\n return this.http.put<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`,\n {\n processDefinitionKey,\n linkType: 'DOCUMENT_UPLOAD',\n }\n );\n }\n\n deleteLinkedUploadProcess(documentDefinitionName: string): Observable<void> {\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n getProcessDocumentDefinitionFromProcessInstanceId(\n processInstanceId: string\n ): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition/processinstance/${processInstanceId}`\n );\n }\n\n assignHandlerToDocument(\n documentId: string,\n assigneeId: string\n ): Observable<AssignHandlerToDocumentResult> {\n return this.http.post<AssignHandlerToDocumentResult>(\n `${this.valtimoEndpointUri}document/${documentId}/assign`,\n {assigneeId}\n );\n }\n\n unassignHandlerFromDocument(documentId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}document/${documentId}/unassign`, {});\n }\n\n getCandidateUsers(documentId: string): Observable<Array<User>> {\n return this.http.get<Array<User>>(\n `${this.valtimoEndpointUri}document/${documentId}/candidate-user`\n );\n }\n\n getDocumentSearchFields(documentDefinitionName: string): Observable<Array<SearchField>> {\n return of([\n {\n key: 'text',\n datatype: 'text',\n fieldtype: 'single',\n matchtype: 'exact',\n path: '/profile/name',\n },\n {\n key: 'number',\n datatype: 'number',\n fieldtype: 'single',\n matchtype: 'exact',\n },\n {\n key: 'date',\n datatype: 'date',\n fieldtype: 'single',\n matchtype: 'exact',\n path: '/profile/dateOfBirth',\n },\n {\n key: 'numberRange',\n datatype: 'number',\n fieldtype: 'range',\n matchtype: 'exact',\n },\n {\n key: 'dateRange',\n datatype: 'date',\n fieldtype: 'range',\n matchtype: 'exact',\n },\n {\n key: 'datetime',\n datatype: 'datetime',\n fieldtype: 'single',\n matchtype: 'exact',\n },\n {\n key: 'boolean',\n datatype: 'boolean',\n fieldtype: 'single',\n matchtype: 'exact',\n },\n {\n key: 'datetimeRange',\n datatype: 'datetime',\n fieldtype: 'range',\n matchtype: 'exact',\n },\n ] as Array<SearchField>).pipe(delay(1000));\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;MAiJU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,MAAc,EAAE,OAAkC,EAAA;AAC5D,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MAOY,sBAAsB,CAAA;IAIjC,WAAY,CAAA,UAAkB,EAAE,OAAe,EAAA;AAC7C,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;AACF,CAAA;MASY,qCAAqC,CAAA;IAMhD,WAAY,CAAA,oBAA4B,EAAE,OAA+B,EAAA;AACvE,QAAA,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACjD,QAAA,IAAI,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ects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/lib/advanced-document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n assigneeFullName: string;\n assigneeId: string;\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n isActive: boolean;\n}\n\nexport interface AssignHandlerToDocumentResult {\n assigneeId: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n\nexport interface DocumentType {\n url: string;\n name: string;\n}\n\nexport interface UploadProcessLink {\n processDefinitionKey: string;\n processName: string;\n}\n\nexport interface UpdateUploadProcessLinkRequest {\n processDefinitionKey: string;\n}\n\nexport interface CaseSettings {\n name?: string;\n canHaveAssignee: boolean;\n}\n\nexport interface OpenDocumentCount {\n documentDefinitionName: string;\n openDocumentCount: number;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AssignHandlerToDocumentResult,\n AuditRecord,\n CaseSettings,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n DocumentType,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n OpenDocumentCount,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n UploadProcessLink,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {\n AssigneeFilter,\n ConfigService,\n SearchField,\n SearchFilter,\n SearchFilterRange,\n SearchOperator,\n User,\n} from '@valtimo/config';\nimport {AdvancedDocumentSearchRequest} from './advanced-document-search-request';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(),\n {\n params: documentSearchRequest.asHttpParams(),\n }\n );\n }\n\n getDocumentsSearch(\n documentSearchRequest: AdvancedDocumentSearchRequest,\n searchOperator?: SearchOperator,\n assigneeFilter?: AssigneeFilter,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ): Observable<Documents> {\n const body = documentSearchRequest.asHttpBody();\n\n if (searchOperator) {\n body.searchOperator = searchOperator;\n }\n\n if (assigneeFilter) {\n body.assigneeFilter = assigneeFilter;\n }\n\n if (otherFilters) {\n body.otherFilters = otherFilters;\n }\n\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentSearchRequest.definitionName}/search`,\n body,\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n getDocumentSearchFields(documentDefinitionName: string): Observable<Array<SearchField>> {\n return this.http.get<Array<SearchField>>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`\n );\n }\n\n putDocumentSearch(documentDefinitionName: string, request: Array<SearchField>): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n [...request]\n );\n }\n\n postDocumentSearch(documentDefinitionName: string, request: SearchField): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n {...request}\n );\n }\n\n deleteDocumentSearch(documentDefinitionName: string, key: string): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`,\n options\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n\n getDocumentTypes(documentDefinitionName: string): Observable<Array<DocumentType>> {\n return this.http.get<Array<DocumentType>>(\n `${this.valtimoEndpointUri}documentdefinition/${documentDefinitionName}/zaaktype/documenttype`\n );\n }\n\n getLinkedUploadProcess(documentDefinitionName: string): Observable<UploadProcessLink> {\n return this.http.get<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n updateLinkedUploadProcess(\n documentDefinitionName: string,\n processDefinitionKey: string\n ): Observable<UploadProcessLink> {\n return this.http.put<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`,\n {\n processDefinitionKey,\n linkType: 'DOCUMENT_UPLOAD',\n }\n );\n }\n\n deleteLinkedUploadProcess(documentDefinitionName: string): Observable<void> {\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n getProcessDocumentDefinitionFromProcessInstanceId(\n processInstanceId: string\n ): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition/processinstance/${processInstanceId}`\n );\n }\n\n assignHandlerToDocument(\n documentId: string,\n assigneeId: string\n ): Observable<AssignHandlerToDocumentResult> {\n return this.http.post<AssignHandlerToDocumentResult>(\n `${this.valtimoEndpointUri}document/${documentId}/assign`,\n {assigneeId}\n );\n }\n\n unassignHandlerFromDocument(documentId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}document/${documentId}/unassign`, {});\n }\n\n getCandidateUsers(documentId: string): Observable<Array<User>> {\n return this.http.get<Array<User>>(\n `${this.valtimoEndpointUri}document/${documentId}/candidate-user`\n );\n }\n\n getOpenDocumentCount(): Observable<Array<OpenDocumentCount>> {\n return this.http.get<Array<OpenDocumentCount>>(\n `${this.valtimoEndpointUri}document-definition/open/count`\n );\n }\n\n patchCaseSettings(\n documentDefinitionName: string,\n request: CaseSettings\n ): Observable<CaseSettings> {\n return this.http.patch<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`,\n {...request}\n );\n }\n\n getCaseSettings(documentDefinitionName: string): Observable<CaseSettings> {\n return this.http.get<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`\n );\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\nimport {AssigneeFilter, SearchFilter, SearchFilterRange, SearchOperator} from '@valtimo/config';\n\nexport interface AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class AdvancedDocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n assigneeFilter?: AssigneeFilter;\n}\n\nexport class AdvancedDocumentSearchRequestImpl implements AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sort?: SortState,\n searchOperator?: SearchOperator,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sort = sort;\n this.otherFilters = otherFilters;\n this.searchOperator = searchOperator;\n }\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody {\n const httpBody = new AdvancedDocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n if (this.searchOperator) {\n httpBody.searchOperator = this.searchOperator;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\nexport * from './lib/advanced-document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAiJU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAA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b,YAAA,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5D,SAAA;AACD,QAAA,OAAO,MAAM,CAAC;KACf;AAED,IAAA,OAAO,CAAC,IAAY,EAAA;AAClB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;AAED,IAAA,aAAa,CAAC,IAAe,EAAA;AAC3B,QAAA,OAAO,CAAG,EAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;AACF;;AClGD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
@@ -2,7 +2,6 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Injectable, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
5
|
-
import { of, delay } from 'rxjs';
|
|
6
5
|
import * as i2 from '@valtimo/config';
|
|
7
6
|
|
|
8
7
|
/*
|
|
@@ -136,7 +135,39 @@ class DocumentService {
|
|
|
136
135
|
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`);
|
|
137
136
|
}
|
|
138
137
|
getDocuments(documentSearchRequest) {
|
|
139
|
-
return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), {
|
|
138
|
+
return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), {
|
|
139
|
+
params: documentSearchRequest.asHttpParams(),
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
getDocumentsSearch(documentSearchRequest, searchOperator, assigneeFilter, otherFilters) {
|
|
143
|
+
const body = documentSearchRequest.asHttpBody();
|
|
144
|
+
if (searchOperator) {
|
|
145
|
+
body.searchOperator = searchOperator;
|
|
146
|
+
}
|
|
147
|
+
if (assigneeFilter) {
|
|
148
|
+
body.assigneeFilter = assigneeFilter;
|
|
149
|
+
}
|
|
150
|
+
if (otherFilters) {
|
|
151
|
+
body.otherFilters = otherFilters;
|
|
152
|
+
}
|
|
153
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document-definition/${documentSearchRequest.definitionName}/search`, body, { params: documentSearchRequest.asHttpParams() });
|
|
154
|
+
}
|
|
155
|
+
getDocumentSearchFields(documentDefinitionName) {
|
|
156
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`);
|
|
157
|
+
}
|
|
158
|
+
putDocumentSearch(documentDefinitionName, request) {
|
|
159
|
+
return this.http.put(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`, [...request]);
|
|
160
|
+
}
|
|
161
|
+
postDocumentSearch(documentDefinitionName, request) {
|
|
162
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`, { ...request });
|
|
163
|
+
}
|
|
164
|
+
deleteDocumentSearch(documentDefinitionName, key) {
|
|
165
|
+
const options = {
|
|
166
|
+
headers: new HttpHeaders({
|
|
167
|
+
'Content-Type': 'application/json',
|
|
168
|
+
}),
|
|
169
|
+
};
|
|
170
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`, options);
|
|
140
171
|
}
|
|
141
172
|
getDocumentRoles(documentDefinitionName) {
|
|
142
173
|
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`);
|
|
@@ -238,64 +269,19 @@ class DocumentService {
|
|
|
238
269
|
getCandidateUsers(documentId) {
|
|
239
270
|
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}/candidate-user`);
|
|
240
271
|
}
|
|
241
|
-
|
|
242
|
-
return
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
key: 'number',
|
|
252
|
-
datatype: 'number',
|
|
253
|
-
fieldtype: 'single',
|
|
254
|
-
matchtype: 'exact',
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
key: 'date',
|
|
258
|
-
datatype: 'date',
|
|
259
|
-
fieldtype: 'single',
|
|
260
|
-
matchtype: 'exact',
|
|
261
|
-
path: '/profile/dateOfBirth',
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
key: 'numberRange',
|
|
265
|
-
datatype: 'number',
|
|
266
|
-
fieldtype: 'range',
|
|
267
|
-
matchtype: 'exact',
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
key: 'dateRange',
|
|
271
|
-
datatype: 'date',
|
|
272
|
-
fieldtype: 'range',
|
|
273
|
-
matchtype: 'exact',
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
key: 'datetime',
|
|
277
|
-
datatype: 'datetime',
|
|
278
|
-
fieldtype: 'single',
|
|
279
|
-
matchtype: 'exact',
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
key: 'boolean',
|
|
283
|
-
datatype: 'boolean',
|
|
284
|
-
fieldtype: 'single',
|
|
285
|
-
matchtype: 'exact',
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
key: 'datetimeRange',
|
|
289
|
-
datatype: 'datetime',
|
|
290
|
-
fieldtype: 'range',
|
|
291
|
-
matchtype: 'exact',
|
|
292
|
-
},
|
|
293
|
-
]).pipe(delay(1000));
|
|
272
|
+
getOpenDocumentCount() {
|
|
273
|
+
return this.http.get(`${this.valtimoEndpointUri}document-definition/open/count`);
|
|
274
|
+
}
|
|
275
|
+
patchCaseSettings(documentDefinitionName, request) {
|
|
276
|
+
return this.http.patch(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`, { ...request });
|
|
277
|
+
}
|
|
278
|
+
getCaseSettings(documentDefinitionName) {
|
|
279
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`);
|
|
294
280
|
}
|
|
295
281
|
}
|
|
296
|
-
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
297
|
-
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
298
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
282
|
+
DocumentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
283
|
+
DocumentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DocumentService, decorators: [{
|
|
299
285
|
type: Injectable,
|
|
300
286
|
args: [{
|
|
301
287
|
providedIn: 'root',
|
|
@@ -319,10 +305,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
319
305
|
*/
|
|
320
306
|
class DocumentModule {
|
|
321
307
|
}
|
|
322
|
-
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
323
|
-
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
324
|
-
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
308
|
+
DocumentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DocumentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
309
|
+
DocumentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DocumentModule });
|
|
310
|
+
DocumentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DocumentModule });
|
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DocumentModule, decorators: [{
|
|
326
312
|
type: NgModule
|
|
327
313
|
}] });
|
|
328
314
|
|
|
@@ -389,6 +375,61 @@ class DocumentSearchRequestImpl {
|
|
|
389
375
|
}
|
|
390
376
|
}
|
|
391
377
|
|
|
378
|
+
/*
|
|
379
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
380
|
+
*
|
|
381
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
382
|
+
* you may not use this file except in compliance with the License.
|
|
383
|
+
* You may obtain a copy of the License at
|
|
384
|
+
*
|
|
385
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
386
|
+
*
|
|
387
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
388
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
389
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
390
|
+
* See the License for the specific language governing permissions and
|
|
391
|
+
* limitations under the License.
|
|
392
|
+
*/
|
|
393
|
+
class AdvancedDocumentSearchRequestHttpBody {
|
|
394
|
+
}
|
|
395
|
+
class AdvancedDocumentSearchRequestImpl {
|
|
396
|
+
constructor(definitionName, page, size, sort, searchOperator, otherFilters) {
|
|
397
|
+
this.definitionName = definitionName;
|
|
398
|
+
this.page = page;
|
|
399
|
+
this.size = size;
|
|
400
|
+
this.sort = sort;
|
|
401
|
+
this.otherFilters = otherFilters;
|
|
402
|
+
this.searchOperator = searchOperator;
|
|
403
|
+
}
|
|
404
|
+
asHttpBody() {
|
|
405
|
+
const httpBody = new AdvancedDocumentSearchRequestHttpBody();
|
|
406
|
+
httpBody.documentDefinitionName = this.definitionName;
|
|
407
|
+
if (this.otherFilters) {
|
|
408
|
+
httpBody.otherFilters = this.otherFilters;
|
|
409
|
+
}
|
|
410
|
+
if (this.searchOperator) {
|
|
411
|
+
httpBody.searchOperator = this.searchOperator;
|
|
412
|
+
}
|
|
413
|
+
return httpBody;
|
|
414
|
+
}
|
|
415
|
+
asHttpParams() {
|
|
416
|
+
let params = new HttpParams()
|
|
417
|
+
.set('definitionName', this.definitionName)
|
|
418
|
+
.set('page', this.page.toString())
|
|
419
|
+
.set('size', this.size.toString());
|
|
420
|
+
if (this.sort) {
|
|
421
|
+
params = params.set('sort', this.getSortString(this.sort));
|
|
422
|
+
}
|
|
423
|
+
return params;
|
|
424
|
+
}
|
|
425
|
+
setPage(page) {
|
|
426
|
+
this.page = page;
|
|
427
|
+
}
|
|
428
|
+
getSortString(sort) {
|
|
429
|
+
return `${sort.state.name},${sort.state.direction}`;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
392
433
|
/*
|
|
393
434
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
394
435
|
*
|
|
@@ -409,5 +450,5 @@ class DocumentSearchRequestImpl {
|
|
|
409
450
|
* Generated bundle index. Do not edit.
|
|
410
451
|
*/
|
|
411
452
|
|
|
412
|
-
export { DocumentDefinitionCreateRequest, DocumentModule, DocumentSearchRequestHttpBody, DocumentSearchRequestImpl, DocumentService, ModifyDocumentAndCompleteTaskRequestImpl, ModifyDocumentAndStartProcessRequestImpl, ModifyDocumentRequestImpl, NewDocumentAndStartProcessRequestImpl, NewDocumentRequestImpl };
|
|
453
|
+
export { AdvancedDocumentSearchRequestHttpBody, AdvancedDocumentSearchRequestImpl, DocumentDefinitionCreateRequest, DocumentModule, DocumentSearchRequestHttpBody, DocumentSearchRequestImpl, DocumentService, ModifyDocumentAndCompleteTaskRequestImpl, ModifyDocumentAndStartProcessRequestImpl, ModifyDocumentRequestImpl, NewDocumentAndStartProcessRequestImpl, NewDocumentRequestImpl };
|
|
413
454
|
//# sourceMappingURL=valtimo-document.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-document.mjs","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/list-sorting.model.ts","../../../../projects/valtimo/document/src/lib/models/audit.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n assigneeFullName: string;\n assigneeId: string;\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n isActive: boolean;\n}\n\nexport interface AssignHandlerToDocumentResult {\n assigneeId: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n\nexport interface DocumentType {\n url: string;\n name: string;\n}\n\nexport interface UploadProcessLink {\n processDefinitionKey: string;\n processName: string;\n}\n\nexport interface UpdateUploadProcessLinkRequest {\n processDefinitionKey: string;\n}\n","/*\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 {delay, Observable, of} from 'rxjs';\nimport {\n AssignHandlerToDocumentResult,\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n DocumentType,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n UploadProcessLink,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService, SearchField, User} 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 getDocumentTypes(documentDefinitionName: string): Observable<Array<DocumentType>> {\n return this.http.get<Array<DocumentType>>(\n `${this.valtimoEndpointUri}documentdefinition/${documentDefinitionName}/zaaktype/documenttype`\n );\n }\n\n getLinkedUploadProcess(documentDefinitionName: string): Observable<UploadProcessLink> {\n return this.http.get<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n updateLinkedUploadProcess(\n documentDefinitionName: string,\n processDefinitionKey: string\n ): Observable<UploadProcessLink> {\n return this.http.put<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`,\n {\n processDefinitionKey,\n linkType: 'DOCUMENT_UPLOAD',\n }\n );\n }\n\n deleteLinkedUploadProcess(documentDefinitionName: string): Observable<void> {\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n getProcessDocumentDefinitionFromProcessInstanceId(\n processInstanceId: string\n ): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition/processinstance/${processInstanceId}`\n );\n }\n\n assignHandlerToDocument(\n documentId: string,\n assigneeId: string\n ): Observable<AssignHandlerToDocumentResult> {\n return this.http.post<AssignHandlerToDocumentResult>(\n `${this.valtimoEndpointUri}document/${documentId}/assign`,\n {assigneeId}\n );\n }\n\n unassignHandlerFromDocument(documentId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}document/${documentId}/unassign`, {});\n }\n\n getCandidateUsers(documentId: string): Observable<Array<User>> {\n return this.http.get<Array<User>>(\n `${this.valtimoEndpointUri}document/${documentId}/candidate-user`\n );\n }\n\n getDocumentSearchFields(documentDefinitionName: string): Observable<Array<SearchField>> {\n return of([\n {\n key: 'text',\n datatype: 'text',\n fieldtype: 'single',\n matchtype: 'exact',\n path: '/profile/name',\n },\n {\n key: 'number',\n datatype: 'number',\n fieldtype: 'single',\n matchtype: 'exact',\n },\n {\n key: 'date',\n datatype: 'date',\n fieldtype: 'single',\n matchtype: 'exact',\n path: '/profile/dateOfBirth',\n },\n {\n key: 'numberRange',\n datatype: 'number',\n fieldtype: 'range',\n matchtype: 'exact',\n },\n {\n key: 'dateRange',\n datatype: 'date',\n fieldtype: 'range',\n matchtype: 'exact',\n },\n {\n key: 'datetime',\n datatype: 'datetime',\n fieldtype: 'single',\n matchtype: 'exact',\n },\n {\n key: 'boolean',\n datatype: 'boolean',\n fieldtype: 'single',\n matchtype: 'exact',\n },\n {\n key: 'datetimeRange',\n datatype: 'datetime',\n fieldtype: 'range',\n matchtype: 'exact',\n },\n ] as Array<SearchField>).pipe(delay(1000));\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;MAiJU,yBAAyB,CAAA;AAKpC,IAAA,WAAA,CAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB,EAAA;AACrE,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;AACF,CAAA;MASY,wCAAwC,CAAA;IAMnD,WAAY,CAAA,MAAc,EAAE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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/lib/advanced-document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n assigneeFullName: string;\n assigneeId: string;\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n isActive: boolean;\n}\n\nexport interface AssignHandlerToDocumentResult {\n assigneeId: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n\nexport interface DocumentType {\n url: string;\n name: string;\n}\n\nexport interface UploadProcessLink {\n processDefinitionKey: string;\n processName: string;\n}\n\nexport interface UpdateUploadProcessLinkRequest {\n processDefinitionKey: string;\n}\n\nexport interface CaseSettings {\n name?: string;\n canHaveAssignee: boolean;\n}\n\nexport interface OpenDocumentCount {\n documentDefinitionName: string;\n openDocumentCount: number;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type Direction = 'ASC' | 'DESC';\n\nexport interface Sort {\n name: string;\n direction: Direction;\n}\n\nexport interface SortState {\n state: Sort;\n isSorting: boolean;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface AuditEvent {\n className: string;\n id: string;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface MetaData {\n id: any;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface AuditRecord {\n metaData: MetaData;\n createdOn: Date;\n auditEvent: AuditEvent;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AssignHandlerToDocumentResult,\n AuditRecord,\n CaseSettings,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n DocumentType,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n OpenDocumentCount,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n UploadProcessLink,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {\n AssigneeFilter,\n ConfigService,\n SearchField,\n SearchFilter,\n SearchFilterRange,\n SearchOperator,\n User,\n} from '@valtimo/config';\nimport {AdvancedDocumentSearchRequest} from './advanced-document-search-request';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(),\n {\n params: documentSearchRequest.asHttpParams(),\n }\n );\n }\n\n getDocumentsSearch(\n documentSearchRequest: AdvancedDocumentSearchRequest,\n searchOperator?: SearchOperator,\n assigneeFilter?: AssigneeFilter,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ): Observable<Documents> {\n const body = documentSearchRequest.asHttpBody();\n\n if (searchOperator) {\n body.searchOperator = searchOperator;\n }\n\n if (assigneeFilter) {\n body.assigneeFilter = assigneeFilter;\n }\n\n if (otherFilters) {\n body.otherFilters = otherFilters;\n }\n\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}v1/document-definition/${documentSearchRequest.definitionName}/search`,\n body,\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n getDocumentSearchFields(documentDefinitionName: string): Observable<Array<SearchField>> {\n return this.http.get<Array<SearchField>>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`\n );\n }\n\n putDocumentSearch(documentDefinitionName: string, request: Array<SearchField>): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n [...request]\n );\n }\n\n postDocumentSearch(documentDefinitionName: string, request: SearchField): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields`,\n {...request}\n );\n }\n\n deleteDocumentSearch(documentDefinitionName: string, key: string): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete(\n `${this.valtimoEndpointUri}v1/document-search/${documentDefinitionName}/fields?key=${key}`,\n options\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<string>> {\n return this.http.get<Array<string>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n\n getDocumentTypes(documentDefinitionName: string): Observable<Array<DocumentType>> {\n return this.http.get<Array<DocumentType>>(\n `${this.valtimoEndpointUri}documentdefinition/${documentDefinitionName}/zaaktype/documenttype`\n );\n }\n\n getLinkedUploadProcess(documentDefinitionName: string): Observable<UploadProcessLink> {\n return this.http.get<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n updateLinkedUploadProcess(\n documentDefinitionName: string,\n processDefinitionKey: string\n ): Observable<UploadProcessLink> {\n return this.http.put<UploadProcessLink>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`,\n {\n processDefinitionKey,\n linkType: 'DOCUMENT_UPLOAD',\n }\n );\n }\n\n deleteLinkedUploadProcess(documentDefinitionName: string): Observable<void> {\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}process-document/demo/${documentDefinitionName}/process`\n );\n }\n\n getProcessDocumentDefinitionFromProcessInstanceId(\n processInstanceId: string\n ): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition/processinstance/${processInstanceId}`\n );\n }\n\n assignHandlerToDocument(\n documentId: string,\n assigneeId: string\n ): Observable<AssignHandlerToDocumentResult> {\n return this.http.post<AssignHandlerToDocumentResult>(\n `${this.valtimoEndpointUri}document/${documentId}/assign`,\n {assigneeId}\n );\n }\n\n unassignHandlerFromDocument(documentId: string): Observable<void> {\n return this.http.post<void>(`${this.valtimoEndpointUri}document/${documentId}/unassign`, {});\n }\n\n getCandidateUsers(documentId: string): Observable<Array<User>> {\n return this.http.get<Array<User>>(\n `${this.valtimoEndpointUri}document/${documentId}/candidate-user`\n );\n }\n\n getOpenDocumentCount(): Observable<Array<OpenDocumentCount>> {\n return this.http.get<Array<OpenDocumentCount>>(\n `${this.valtimoEndpointUri}document-definition/open/count`\n );\n }\n\n patchCaseSettings(\n documentDefinitionName: string,\n request: CaseSettings\n ): Observable<CaseSettings> {\n return this.http.patch<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`,\n {...request}\n );\n }\n\n getCaseSettings(documentDefinitionName: string): Observable<CaseSettings> {\n return this.http.get<CaseSettings>(\n `${this.valtimoEndpointUri}v1/case/${documentDefinitionName}/settings`\n );\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\nimport {AssigneeFilter, SearchFilter, SearchFilterRange, SearchOperator} from '@valtimo/config';\n\nexport interface AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class AdvancedDocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n assigneeFilter?: AssigneeFilter;\n}\n\nexport class AdvancedDocumentSearchRequestImpl implements AdvancedDocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sort?: SortState;\n searchOperator?: SearchOperator;\n otherFilters?: Array<SearchFilter | SearchFilterRange>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sort?: SortState,\n searchOperator?: SearchOperator,\n otherFilters?: Array<SearchFilter | SearchFilterRange>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sort = sort;\n this.otherFilters = otherFilters;\n this.searchOperator = searchOperator;\n }\n\n asHttpBody(): AdvancedDocumentSearchRequestHttpBody {\n const httpBody = new AdvancedDocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n if (this.searchOperator) {\n httpBody.searchOperator = this.searchOperator;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\nexport * from './lib/advanced-document-search-request';\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