@valtimo/document 4.16.0 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/valtimo-document.umd.js +6 -0
- package/bundles/valtimo-document.umd.js.map +1 -1
- package/bundles/valtimo-document.umd.min.js +1 -1
- package/bundles/valtimo-document.umd.min.js.map +1 -1
- package/esm2015/lib/document-search-request.js +1 -1
- package/esm2015/lib/document.module.js +1 -1
- package/esm2015/lib/document.service.js +7 -1
- package/esm2015/lib/models/audit.model.js +1 -1
- package/esm2015/lib/models/document.model.js +1 -1
- package/esm2015/lib/models/index.js +1 -1
- package/esm2015/lib/models/list-sorting.model.js +1 -1
- package/esm2015/public_api.js +1 -1
- package/esm2015/valtimo-document.js +1 -1
- package/fesm2015/valtimo-document.js +6 -0
- package/fesm2015/valtimo-document.js.map +1 -1
- package/lib/document.service.d.ts +3 -1
- package/lib/models/document.model.d.ts +6 -0
- package/package.json +1 -1
- package/valtimo-document.metadata.json +1 -1
|
@@ -129,6 +129,12 @@
|
|
|
129
129
|
DocumentService.prototype.getDocuments = function (documentSearchRequest) {
|
|
130
130
|
return this.http.post(this.valtimoEndpointUri + "document-search", documentSearchRequest.asHttpBody(), { params: documentSearchRequest.asHttpParams() });
|
|
131
131
|
};
|
|
132
|
+
DocumentService.prototype.getDocumentRoles = function (documentDefinitionName) {
|
|
133
|
+
return this.http.get(this.valtimoEndpointUri + "document-definition/" + documentDefinitionName + "/roles");
|
|
134
|
+
};
|
|
135
|
+
DocumentService.prototype.modifyDocumentRoles = function (documentDefinitionName, roles) {
|
|
136
|
+
return this.http.put(this.valtimoEndpointUri + "document-definition/" + documentDefinitionName + "/roles", roles);
|
|
137
|
+
};
|
|
132
138
|
DocumentService.prototype.getDocument = function (documentId) {
|
|
133
139
|
return this.http.get(this.valtimoEndpointUri + "document/" + documentId);
|
|
134
140
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-document.umd.js","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/audit.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface AuditEvent {\n className: string;\n id: string;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface MetaData {\n id: any;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface AuditRecord {\n metaData: MetaData;\n createdOn: Date;\n auditEvent: AuditEvent;\n}\n","/*\n *\n * * Copyright 2015-2020 Ritense BV, the Netherlands.\n * *\n * * Licensed under EUPL, Version 1.2 (the \"License\");\n * * you may not use this file except in compliance with the License.\n * * You may obtain a copy of the License at\n * *\n * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n * *\n * * Unless required by applicable law or agreed to in writing, software\n * * distributed under the License is distributed on an \"AS IS\" basis,\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * * See the License for the specific language governing permissions and\n * * limitations under the License.\n *\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n DocumentDefinitionCreateRequest,\n UndeployDocumentDefinitionResult,\n DocumentSendMessageRequest,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params: 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 getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {SortState as ɵa} from './lib/models';"],"names":["HttpHeaders","HttpParams","Injectable","HttpClient","ConfigService","NgModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;;;QA6JE,mCAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB;YACrE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;SACtC;wCACF;KAAA,IAAA;;QAeC,kDAAY,MAAc,EAAE,OAAkC;YAC5D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;SACxB;uDACF;KAAA,IAAA;;QAWC,gCAAY,UAAkB,EAAE,OAAe;YAC7C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;SACxB;qCACF;KAAA,IAAA;;QAeC,+CAAY,oBAA4B,EAAE,OAA+B;YACvE,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,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;aACnC;YACD,IAAI,IAAI,CAAC,SAAS,EAAE;gBAClB,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;aACrC;YACD,IAAI,IAAI,CAAC,kBAAkB,EAAE;gBAC3B,QAAQ,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;aACvD;YACD,IAAI,IAAI,CAAC,YAAY,EAAE;gBACrB,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;aAC3C;YAED,OAAO,QAAQ,CAAC;SACjB;QAED,gDAAY,GAAZ;YACE,IAAI,MAAM,GAAG,IAAIJ,aAAU,EAAE;iBAC1B,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC;iBAC1C,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;iBACjC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YACrC,IAAI,IAAI,CAAC,IAAI,EAAE;gBACb,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;aAC5D;YACD,OAAO,MAAM,CAAC;SACf;QAED,2CAAO,GAAP,UAAQ,IAAY;YAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;SAClB;QAED,iDAAa,GAAb,UAAc,IAAe;YAC3B,OAAU,IAAI,CAAC,KAAK,CAAC,IAAI,SAAI,IAAI,CAAC,KAAK,CAAC,SAAW,CAAC;SACrD;wCACF;KAAA;;IChHD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"valtimo-document.umd.js","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/audit.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface AuditEvent {\n className: string;\n id: string;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface MetaData {\n id: any;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface AuditRecord {\n metaData: MetaData;\n createdOn: Date;\n auditEvent: AuditEvent;\n}\n","/*\n *\n * * Copyright 2015-2020 Ritense BV, the Netherlands.\n * *\n * * Licensed under EUPL, Version 1.2 (the \"License\");\n * * you may not use this file except in compliance with the License.\n * * You may obtain a copy of the License at\n * *\n * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n * *\n * * Unless required by applicable law or agreed to in writing, software\n * * distributed under the License is distributed on an \"AS IS\" basis,\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * * See the License for the specific language governing permissions and\n * * limitations under the License.\n *\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params: params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(),\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<String>> {\n return this.http.get<Array<String>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {SortState as ɵa} from './lib/models';"],"names":["HttpHeaders","HttpParams","Injectable","HttpClient","ConfigService","NgModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;;;QA6JE,mCAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB;YACrE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;SACtC;wCACF;KAAA,IAAA;;QAeC,kDAAY,MAAc,EAAE,OAAkC;YAC5D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;SACxB;uDACF;KAAA,IAAA;;QAWC,gCAAY,UAAkB,EAAE,OAAe;YAC7C,IAA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AC,IAAI,CAAC,CAAC,CAAC;aAC5D;YACD,OAAO,MAAM,CAAC;SACf;QAED,2CAAO,GAAP,UAAQ,IAAY;YAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;SAClB;QAED,iDAAa,GAAb,UAAc,IAAe;YAC3B,OAAU,IAAI,CAAC,KAAK,CAAC,IAAI,SAAI,IAAI,CAAC,KAAK,CAAC,SAAW,CAAC;SACrD;wCACF;KAAA;;IChHD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("@valtimo/config")):"function"==typeof define&&define.amd?define("@valtimo/document",["exports","@angular/core","@angular/common/http","@valtimo/config"],e):e(((t=t||self).valtimo=t.valtimo||{},t.valtimo.document={}),t.ng.core,t.ng.common.http,t.config)}(this,(function(t,e,n,o){"use strict";var i=function(t,e,n){this.documentId=t,this.content=e,this.versionBasedOn=n},r=function(t,e){this.taskId=t,this.request=e},s=function(t,e){this.definition=t,this.content=e},
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("@valtimo/config")):"function"==typeof define&&define.amd?define("@valtimo/document",["exports","@angular/core","@angular/common/http","@valtimo/config"],e):e(((t=t||self).valtimo=t.valtimo||{},t.valtimo.document={}),t.ng.core,t.ng.common.http,t.config)}(this,(function(t,e,n,o){"use strict";var i=function(t,e,n){this.documentId=t,this.content=e,this.versionBasedOn=n},r=function(t,e){this.taskId=t,this.request=e},s=function(t,e){this.definition=t,this.content=e},p=function(t,e){this.processDefinitionKey=t,this.request=e},c=function(t,e){this.processDefinitionKey=t,this.request=e},u=function(t){this.definition=t},a=function(){function t(t,e){this.http=t,this.valtimoEndpointUri=e.config.valtimoApi.endpointUri}return t.prototype.getAllDefinitions=function(){return this.http.get(this.valtimoEndpointUri+"document-definition")},t.prototype.queryDefinitions=function(t){return this.http.get(this.valtimoEndpointUri+"document-definition",{params:t})},t.prototype.getDocumentDefinition=function(t){return this.http.get(this.valtimoEndpointUri+"document-definition/"+t)},t.prototype.getDocuments=function(t){return this.http.post(this.valtimoEndpointUri+"document-search",t.asHttpBody(),{params:t.asHttpParams()})},t.prototype.getDocumentRoles=function(t){return this.http.get(this.valtimoEndpointUri+"document-definition/"+t+"/roles")},t.prototype.modifyDocumentRoles=function(t,e){return this.http.put(this.valtimoEndpointUri+"document-definition/"+t+"/roles",e)},t.prototype.getDocument=function(t){return this.http.get(this.valtimoEndpointUri+"document/"+t)},t.prototype.modifyDocument=function(t){return this.http.put(this.valtimoEndpointUri+"document",t)},t.prototype.getProcessDocumentDefinitions=function(){return this.http.get(this.valtimoEndpointUri+"process-document/definition")},t.prototype.findProcessDocumentDefinitions=function(t){return this.http.get(this.valtimoEndpointUri+"process-document/definition/document/"+t)},t.prototype.findProcessDocumentInstances=function(t){return this.http.get(this.valtimoEndpointUri+"process-document/instance/document/"+t)},t.prototype.newDocumentAndStartProcess=function(t){return this.http.post(this.valtimoEndpointUri+"process-document/operation/new-document-and-start-process",t)},t.prototype.modifyDocumentAndCompleteTask=function(t){return this.http.post(this.valtimoEndpointUri+"process-document/operation/modify-document-and-complete-task",t)},t.prototype.modifyDocumentAndStartProcess=function(t){return this.http.post(this.valtimoEndpointUri+"process-document/operation/modify-document-and-start-process",t)},t.prototype.createProcessDocumentDefinition=function(t){return this.http.post(this.valtimoEndpointUri+"process-document/definition",t)},t.prototype.createDocumentDefinition=function(t){var e={headers:new n.HttpHeaders({"Content-Type":"application/json"})};return this.http.post(this.valtimoEndpointUri+"document-definition",t,e)},t.prototype.deleteProcessDocumentDefinition=function(t){var e={headers:new n.HttpHeaders({"Content-Type":"application/json"}),body:t};return this.http.delete(this.valtimoEndpointUri+"process-document/definition",e)},t.prototype.getAuditLog=function(t,e){void 0===e&&(e=0);var o=new n.HttpParams;return o=o.set("page",e.toString()),this.http.get(this.valtimoEndpointUri+"process-document/instance/document/"+t+"/audit",{params:o})},t.prototype.assignResource=function(t,e){return this.http.post(this.valtimoEndpointUri+"document/"+t+"/resource/"+e,{})},t.prototype.removeResource=function(t,e){var o={headers:new n.HttpHeaders({"Content-Type":"application/json"})};return this.http.delete(this.valtimoEndpointUri+"document/"+t+"/resource/"+e,o)},t.prototype.removeDocumentDefinition=function(t){return this.http.delete(this.valtimoEndpointUri+"document-definition/"+t)},t.prototype.sendMessage=function(t,e){return this.http.post(this.valtimoEndpointUri+"document/"+t+"/message",e)},t}();a.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new a(e.ɵɵinject(n.HttpClient),e.ɵɵinject(o.ConfigService))},token:a,providedIn:"root"}),a.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],a.ctorParameters=function(){return[{type:n.HttpClient},{type:o.ConfigService}]};var d=function(){};d.decorators=[{type:e.NgModule}];var m=function(){},h=function(){function t(t,e,n,o,i,r,s,p){this.definitionName=t,this.page=e,this.size=n,this.sequence=o,this.createdBy=i,this.globalSearchFilter=r,this.sort=s,this.otherFilters=p}return t.prototype.asHttpBody=function(){var t=new m;return t.documentDefinitionName=this.definitionName,this.sequence&&(t.sequence=this.sequence),this.createdBy&&(t.createdBy=this.createdBy),this.globalSearchFilter&&(t.globalSearchFilter=this.globalSearchFilter),this.otherFilters&&(t.otherFilters=this.otherFilters),t},t.prototype.asHttpParams=function(){var t=(new n.HttpParams).set("definitionName",this.definitionName).set("page",this.page.toString()).set("size",this.size.toString());return this.sort&&(t=t.set("sort",this.getSortString(this.sort))),t},t.prototype.setPage=function(t){this.page=t},t.prototype.getSortString=function(t){return t.state.name+","+t.state.direction},t}();t.DocumentDefinitionCreateRequest=u,t.DocumentModule=d,t.DocumentSearchRequestHttpBody=m,t.DocumentSearchRequestImpl=h,t.DocumentService=a,t.ModifyDocumentAndCompleteTaskRequestImpl=r,t.ModifyDocumentAndStartProcessRequestImpl=c,t.ModifyDocumentRequestImpl=i,t.NewDocumentAndStartProcessRequestImpl=p,t.NewDocumentRequestImpl=s,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=valtimo-document.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../projects/valtimo/document/src/lib/models/document.model.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"],"names":["documentId","content","versionBasedOn","this","taskId","request","definition","processDefinitionKey","DocumentService","http","configService","valtimoEndpointUri","config","valtimoApi","endpointUri","prototype","getAllDefinitions","get","queryDefinitions","params","getDocumentDefinition","documentDefinitionName","getDocuments","documentSearchRequest","post","asHttpBody","asHttpParams","getDocument","modifyDocument","document","put","getProcessDocumentDefinitions","findProcessDocumentDefinitions","findProcessDocumentInstances","newDocumentAndStartProcess","modifyDocumentAndCompleteTask","modifyDocumentAndStartProcess","createProcessDocumentDefinition","createDocumentDefinition","documentDefinitionCreateRequest","options","headers","HttpHeaders","deleteProcessDocumentDefinition","body","delete","getAuditLog","page","HttpParams","set","toString","assignResource","resourceId","removeResource","removeDocumentDefinition","name","sendMessage","Injectable","args","providedIn","HttpClient","ConfigService","NgModule","DocumentSearchRequestImpl","definitionName","size","sequence","createdBy","globalSearchFilter","sort","otherFilters","httpBody","DocumentSearchRequestHttpBody","getSortString","setPage","state","direction"],"mappings":"ybA6JE,SAAYA,EAAoBC,EAAiBC,GAC/CC,KAAKH,WAAaA,EAClBG,KAAKF,QAAUA,EACfE,KAAKD,eAAiBA,KAiBxB,SAAYE,EAAgBC,GAC1BF,KAAKC,OAASA,EACdD,KAAKE,QAAUA,KAajB,SAAYC,EAAoBL,GAC9BE,KAAKG,WAAaA,EAClBH,KAAKF,QAAUA,KAiBjB,SAAYM,EAA8BF,GACxCF,KAAKI,qBAAuBA,EAC5BJ,KAAKE,QAAUA,KAiBjB,SAAYE,EAA8B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hD,UAAA0D,cAAA,SAAcJ,GACZ,OAAUA,EAAKM,MAAMpB,KAAI,IAAIc,EAAKM,MAAMC","sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n DocumentDefinitionCreateRequest,\n UndeployDocumentDefinitionResult,\n DocumentSendMessageRequest,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params: 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 getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../../projects/valtimo/document/src/lib/models/document.model.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"],"names":["documentId","content","versionBasedOn","this","taskId","request","definition","processDefinitionKey","DocumentService","http","configService","valtimoEndpointUri","config","valtimoApi","endpointUri","prototype","getAllDefinitions","get","queryDefinitions","params","getDocumentDefinition","documentDefinitionName","getDocuments","documentSearchRequest","post","asHttpBody","asHttpParams","getDocumentRoles","modifyDocumentRoles","roles","put","getDocument","modifyDocument","document","getProcessDocumentDefinitions","findProcessDocumentDefinitions","findProcessDocumentInstances","newDocumentAndStartProcess","modifyDocumentAndCompleteTask","modifyDocumentAndStartProcess","createProcessDocumentDefinition","createDocumentDefinition","documentDefinitionCreateRequest","options","headers","HttpHeaders","deleteProcessDocumentDefinition","body","delete","getAuditLog","page","HttpParams","set","toString","assignResource","resourceId","removeResource","removeDocumentDefinition","name","sendMessage","Injectable","args","providedIn","HttpClient","ConfigService","NgModule","DocumentSearchRequestImpl","definitionName","size","sequence","createdBy","globalSearchFilter","sort","otherFilters","httpBody","DocumentSearchRequestHttpBody","getSortString","setPage","state","direction"],"mappings":"ybA6JE,SAAYA,EAAoBC,EAAiBC,GAC/CC,KAAKH,WAAaA,EAClBG,KAAKF,QAAUA,EACfE,KAAKD,eAAiBA,KAiBxB,SAAYE,EAAgBC,GAC1BF,KAAKC,OAASA,EACdD,KAAKE,QAAUA,K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CpE,KAAKsE,eACPC,EAASD,aAAetE,KAAKsE,cAGxBC,GAGTR,EAAAnD,UAAAW,aAAA,WACE,IAAIP,GAAS,IAAIgC,EAAAA,YACdC,IAAI,iBAAkBjD,KAAKgE,gBAC3Bf,IAAI,OAAQjD,KAAK+C,KAAKG,YACtBD,IAAI,OAAQjD,KAAKiE,KAAKf,YAIzB,OAHIlD,KAAKqE,OACPrD,EAASA,EAAOiC,IAAI,OAAQjD,KAAKyE,cAAczE,KAAKqE,QAE/CrD,GAGT+C,EAAAnD,UAAA8D,QAAA,SAAQ3B,GACN/C,KAAK+C,KAAOA,GAGdgB,EAAAnD,UAAA6D,cAAA,SAAcJ,GACZ,OAAUA,EAAKM,MAAMpB,KAAI,IAAIc,EAAKM,MAAMC","sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params: params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(),\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<String>> {\n return this.http.get<Array<String>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n"]}
|
|
@@ -61,4 +61,4 @@ export class DocumentSearchRequestImpl {
|
|
|
61
61
|
return `${sort.state.name},${sort.state.direction}`;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQtc2VhcmNoLXJlcX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gICB9XG4gICAgcmV0dXJuIHBhcmFtcztcbiAgfVxuXG4gIHNldFBhZ2UocGFnZTogbnVtYmVyKTogdm9pZCB7XG4gICAgdGhpcy5wYWdlID0gcGFnZTtcbiAgfVxuXG4gIGdldFNvcnRTdHJpbmcoc29ydDogU29ydFN0YXRlKTogc3RyaW5nIHtcbiAgICByZXR1cm4gYCR7c29ydC5zdGF0ZS5uYW1lfSwke3NvcnQuc3RhdGUuZGlyZWN0aW9ufWA7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -19,4 +19,4 @@ export class DocumentModule {
|
|
|
19
19
|
DocumentModule.decorators = [
|
|
20
20
|
{ type: NgModule }
|
|
21
21
|
];
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Ii90bXAvamVua2lucy1iYTgwNTM5Mi93b3Jrc3BhY2Uvcm9udGVuZF9saWJyYXJpZXNfLV9yZWxlYXNlX21haW4vcHJvamVjdHMvdmFsdGltby9kb2N1bWVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvZG9jdW1lbnQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUgsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUd2QyxNQUFNLE9BQU8sY0FBYzs7O1lBRDFCLFFBQVEiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQ29weXJpZ2h0IDIwMTUtMjAyMCBSaXRlbnNlIEJWLCB0aGUgTmV0aGVybGFuZHMuXG4gKlxuICogTGljZW5zZWQgdW5kZXIgRVVQTCwgVmVyc2lvbiAxLjIgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiBodHRwczovL2pvaW51cC5lYy5ldXJvcGEuZXUvY29sbGVjdGlvbi9ldXBsL2V1cGwtdGV4dC1ldXBsLTEyXG4gKlxuICogVW5sZXNzIHJlcXVpcmVkIGJ5IGFwcGxpY2FibGUgbGF3IG9yIGFncmVlZCB0byBpbiB3cml0aW5nLCBzb2Z0d2FyZVxuICogZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4gXCJBUyBJU1wiIGJhc2lzLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5pbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQE5nTW9kdWxlKClcbmV4cG9ydCBjbGFzcyBEb2N1bWVudE1vZHVsZSB7fVxuIl19
|
|
@@ -37,6 +37,12 @@ export class DocumentService {
|
|
|
37
37
|
getDocuments(documentSearchRequest) {
|
|
38
38
|
return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), { params: documentSearchRequest.asHttpParams() });
|
|
39
39
|
}
|
|
40
|
+
getDocumentRoles(documentDefinitionName) {
|
|
41
|
+
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`);
|
|
42
|
+
}
|
|
43
|
+
modifyDocumentRoles(documentDefinitionName, roles) {
|
|
44
|
+
return this.http.put(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`, roles);
|
|
45
|
+
}
|
|
40
46
|
getDocument(documentId) {
|
|
41
47
|
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}`);
|
|
42
48
|
}
|
|
@@ -115,4 +121,4 @@ DocumentService.ctorParameters = () => [
|
|
|
115
121
|
{ type: HttpClient },
|
|
116
122
|
{ type: ConfigService }
|
|
117
123
|
];
|
|
118
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtNGMzYmI3NzAvd29ya3NwYWNlL1ZhbHRpbW9fLV9Bbmd1bGFyX0xpYnJhcmllc19tYWluL3Byb2plY3RzL3ZhbHRpbW8vZG9jdW1lbnQvc3JjLyIsInNvdXJjZXMiOlsibGliL2RvY3VtZW50LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFFSCxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBQyxVQUFVLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBd0J6RSxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0saUJBQWlCLENBQUM7Ozs7QUFLOUMsTUFBTSxPQUFPLGVBQWU7SUFHMUIsWUFBb0IsSUFBZ0IsRUFBRSxhQUE0QjtRQUE5QyxTQUFJLEdBQUosSUFBSSxDQUFZO1FBQ2xDLElBQUksQ0FBQyxrQkFBa0IsR0FBRyxhQUFhLENBQUMsTUFBTSxDQUFDLFVBQVUsQ0FBQyxXQUFXLENBQUM7SUFDeEUsQ0FBQztJQUVELGlCQUFpQjtJQUNWLGlCQUFpQjtRQUN0QixPQUFPLEl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Togc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgaHR0cDogSHR0cENsaWVudCwgY29uZmlnU2VydmljZTogQ29uZmlnU2VydmljZSkge1xuICAgIHRoaXMudmFsdGltb0VuZHBvaW50VXJpID0gY29uZmlnU2VydmljZS5jb25maWcudmFsdGltb0FwaS5lbmRwb2ludFVyaTtcbiAgfVxuXG4gIC8vIERvY3VtZW50LWNhbGxzXG4gIHB1YmxpYyBnZXRBbGxEZWZpbml0aW9ucygpOiBPYnNlcnZhYmxlPERvY3VtZW50RGVmaW5pdGlvbnM+IHtcbiAgICByZXR1cm4gdGhpcy5odHRwLmdldDxEb2N1bWVudERlZmluaXRpb25zPihgJHt0aGlzLnZhbHRpbW9FbmRwb2ludFVyaX1kb2N1bWVudC1kZWZpbml0aW9uYCk7XG4gIH1cblxuICBxdWVyeURlZmluaXRpb25zKHBhcmFtcz86IGFueSk6IE9ic2VydmFibGU8UGFnZTxEb2N1bWVudERlZmluaXRpb24+PiB7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQ8UGFnZTxEb2N1bWVudERlZmluaXRpb24+PihcbiAgICAgIGAke3RoaXMudmFsdGltb0VuZHBvaW50VXJpfWRvY3VtZW50LWRlZmluaXRpb25gLFxuICAgICAge3BhcmFtczogcGFyYW1zfVxuICAgICk7XG4gIH1cblxuICBnZXREb2N1bWVudERlZmluaXRpb24oZG9jdW1lbnREZWZpbml0aW9uTmFtZTogc3RyaW5nKTogT2JzZXJ2YWJsZTxEb2N1bWVudERlZmluaXRpb24+IHtcbiAgICByZXR1cm4gdGhpcy5odHRwLmdldDxEb2N1bWVudERlZmluaXRpb24+KFxuICAgICAgYCR7dGhpcy52YWx0aW1vRW5kcG9pbnRVcml9ZG9jdW1lbnQtZGVmaW5pdGlvbi8ke2RvY3VtZW50RGVmaW5pdGlvbk5hbWV9YFxuICAgICk7XG4gIH1cblxuICBnZXREb2N1bWVudHMoZG9jdW1lbnRTZWFyY2hSZXF1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U2VydmljZSkge1xuICAgIHRoaXMudmFsdGltb0VuZHBvaW50VXJpID0gY29uZmlnU2VydmljZS5jb25maWcudmFsdGltb0FwaS5lbmRwb2ludFVyaTtcbiAgfVxuXG4gIC8vIERvY3VtZW50LWNhbGxzXG4gIHB1YmxpYyBnZXRBbGxEZWZpbml0aW9ucygpOiBPYnNlcnZhYmxlPERvY3VtZW50RGVmaW5pdGlvbnM+IHtcbiAgICByZXR1cm4gdGhpcy5odHRwLmdldDxEb2N1bWVudERlZmluaXRpb25zPihgJHt0aGlzLnZhbHRpbW9FbmRwb2ludFVyaX1kb2N1bWVudC1kZWZpbml0aW9uYCk7XG4gIH1cblxuICBxdWVyeURlZmluaXRpb25zKHBhcmFtcz86IGFueSk6IE9ic2VydmFibGU8UGFnZTxEb2N1bWVudERlZmluaXRpb24+PiB7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQ8UGFnZTxEb2N1bWVudERlZmluaXRpb24+PihcbiAgICAgIGAke3RoaXMudmFsdGltb0VuZHBvaW50VXJpfWRvY3VtZW50LWRlZmluaXRpb25gLFxuICAgICAge3BhcmFtczogcGFyYW1zfVxuICAgICk7XG4gIH1cblxuICBnZXREb2N1bWVudERlZmluaXRpb24oZG9jdW1lbnREZWZpbml0aW9uTmFtZTogc3RyaW5nKTogT2JzZXJ2YWJsZTxEb2N1bWVudERlZmluaXRpb24+IHtcbiAgICByZXR1cm4gdGhpcy5odHRwLmdldDxEb2N1bWVudERlZmluaXRpb24+KFxuICAgICAgYCR7dGhpcy52YWx0aW1vRW5kcG9pbnRVcml9ZG9jdW1lbnQtZGVmaW5pdGlvbi8ke2RvY3VtZW50RGVmaW5pdGlvbk5hbWV9YFxuICAgICk7XG4gIH1cblxuICBnZXREb2N1bWVudHMoZG9jdW1lbnRTZWFyY2hSZXF1ZXN0OiBEb2N1bWVudFNlYXJjaFJlcXVlc3QpOiBPYnNlcnZhYmxlPERvY3VtZW50cz4ge1xuICAgIHJldHVybiB0aGlzLmh0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9uLyR7bmFtZX1gXG4gICAgKTtcbiAgfVxuXG4gIHNlbmRNZXNzYWdlKGRvY3VtZW50SWQ6IHN0cmluZywgcmVxdWVzdDogRG9jdW1lbnRTZW5kTWVzc2FnZVJlcXVlc3QpOiBPYnNlcnZhYmxlPGFueT4ge1xuICAgIHJldHVybiB0aGlzLmh0dHAucG9zdChgJHt0aGlzLnZhbHRpbW9FbmRwb2ludFVyaX1kb2N1bWVudC8ke2RvY3VtZW50SWR9L21lc3NhZ2VgLCByZXF1ZXN0KTtcbiAgfVxufVxuIl19
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXVkaXQubW9kZWwuanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLWJhODA1MzkyL3dvcmtzcGFjZS9yb250ZW5kX2xpYnJhcmllc18tX3JlbGVhc2VfbWFpbi9wcm9qZWN0cy92YWx0aW1vL2RvY3VtZW50L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbHMvYXVkaXQubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0ciLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQ29weXJpZ2h0IDIwMTUtMjAyMCBSaXRlbnNlIEJWLCB0aGUgTmV0aGVybGFuZHMuXG4gKlxuICogTGljZW5zZWQgdW5kZXIgRVVQTCwgVmVyc2lvbiAxLjIgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNv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est {
|
|
|
49
49
|
this.definition = definition;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQubW9kZWwuanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLWJhODA1MzkyL3dvcmtzcGFjZS9yb250ZW5kX2xpYnJhcmllc18tX3JlbGVhc2VfbWFpbi9wcm9qZWN0cy92YWx0aW1vL2RvY3VtZW50L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbHMvZG9jdW1lbnQubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUEwSUgsTUFBTSxPQUFPLHlCQUF5QjtJQUtwQyxZQUFZLFVBQWtCLEVBQUUsT0FBZSxFQUFFLGNBQXNCO1FBQ3JFLElBQUksQ0FBQyxVQUFVLEdBQUcsVUFBVSxDQUFDO1FBQzdCLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDO1FBQ3ZCLElBQUksQ0FBQyxjQUFjLEdBQUcsY0FBYyxDQUFDO0lBQ3ZDLENBQUM7Q0FDRjtBQVNELE1BQU0sT0FBTyx3Q0FBd0M7SUFNbkQsWUFBWSxNQUFjLEVBQUUsT0FBa0M7UUFDNUQsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDckIsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7SUFDekIsQ0FBQztDQUNGO0FBT0QsTUFBTSxPQUFPLHNCQUFzQjtJQUlqQyxZQUFZLFVBQWtCLEVBQUUsT0FBZTtRQUM3QyxJQUFJLENBQUMsVUFBVSxHQUFHLFVBQVUsQ0FBQztRQUM3QixJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQztJQUN6QixDQUFDO0NBQ0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VudERlZmluaXRpb25OYW1lOiBzdHJpbmc7XG4gIGVycm9yczogc3RyaW5nW107XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgRG9jdW1lbnRTZW5kTWVzc2FnZVJlcXVlc3Qge1xuICBzdWJqZWN0OiBzdHJpbmc7XG4gIGJvZHlUZXh0OiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgRG9jdW1lbnRSb2xlcyB7XG4gIGNvbnRlbnQ6IERvY3VtZW50Um9sZVtdO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIERvY3VtZW50Um9sZSB7XG4gIG5hbWU6IHN0cmluZztcbn1cbiJdfQ==
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
export * from './document.model';
|
|
19
19
|
export * from './list-sorting.model';
|
|
20
20
|
export * from './audit.model';
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLWJhODA1MzkyL3dvcmtzcGFjZS9yb250ZW5kX2xpYnJhcmllc18tX3JlbGVhc2VfbWFpbi9wcm9qZWN0cy92YWx0aW1vL2RvY3VtZW50L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7R0FnQkc7QUFFSCxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICpcbiAqICAqIENvcHlyaWdodCAyMDE1LTIwMjAgUml0ZW5zZSBCViwgdGhlIE5ldGhlcmxhbmRzLlxuICogICpcbiAqICAqIExpY2Vuc2VkIHVuZGVyIEVVUEwsIFZlcnNpb24gMS4yICh0aGUgXCJMaWNlbnNlXCIpO1xuICogICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKiAgKlxuICogICogaHR0cHM6Ly9qb2ludXAuZWMuZXVyb3BhLmV1L2NvbGxlY3Rpb24vZXVwbC9ldXBsLXRleHQtZXVwbC0xMlxuICogICpcbiAqICAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqICAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBiYXNpcyxcbiAqICAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vZG9jdW1lbnQubW9kZWwnO1xuZXhwb3J0ICogZnJvbSAnLi9saXN0LXNvcnRpbmcubW9kZWwnO1xuZXhwb3J0ICogZnJvbSAnLi9hdWRpdC5tb2RlbCc7XG4iXX0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC1zb3J0aW5nLm1vZGVsLmpzIiwic291cmNlUm9vdCI6Ii90bXAvamVua2lucy1iYTgwNTM5Mi93b3Jrc3BhY2Uvcm9udGVuZF9saWJyYXJpZXNfLV9yZWxlYXNlX21haW4vcHJvamVjdHMvdmFsdGltby9kb2N1bWVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvbW9kZWxzL2xpc3Qtc29ydGluZy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgRGlyZWN0aW9uID0gJ0FTQycgfCAnREVTQyc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgU29ydCB7XG4gIG5hbWU6IHN0cmluZztcbiAgZGlyZWN0aW9uOiBEaXJlY3Rpb247XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU29ydFN0YXRlIHtcbiAgc3RhdGU6IFNvcnQ7XG4gIGlzU29ydGluZzogYm9vbGVhbjtcbn1cbiJdfQ==
|
package/esm2015/public_api.js
CHANGED
|
@@ -20,4 +20,4 @@ export * from './lib/models';
|
|
|
20
20
|
export * from './lib/document.service';
|
|
21
21
|
export * from './lib/document.module';
|
|
22
22
|
export * from './lib/document-search-request';
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtYmE4MDUzOTIvd29ya3NwYWNlL3JvbnRlbmRfbGlicmFyaWVzXy1fcmVsZWFzZV9tYWluL3Byb2plY3RzL3ZhbHRpbW8vZG9jdW1lbnQvc3JjLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVIOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjL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nNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZG9jdW1lbnQubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2RvY3VtZW50LXNlYXJjaC1yZXF1ZXN0JztcbiJdfQ==
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public_api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1kb2N1bWVudC5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtYmE4MDUzOTIvd29ya3NwYWNlL3JvbnRlbmRfbGlicmFyaWVzXy1fcmVsZWFzZV9tYWluL3Byb2plY3RzL3ZhbHRpbW8vZG9jdW1lbnQvc3JjLyIsInNvdXJjZXMiOlsidmFsdGltby1kb2N1bWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuXG5leHBvcnQge1NvcnRTdGF0ZSBhcyDJtWF9IGZyb20gJy4vbGliL21vZGVscyc7Il19
|
|
@@ -121,6 +121,12 @@ class DocumentService {
|
|
|
121
121
|
getDocuments(documentSearchRequest) {
|
|
122
122
|
return this.http.post(`${this.valtimoEndpointUri}document-search`, documentSearchRequest.asHttpBody(), { params: documentSearchRequest.asHttpParams() });
|
|
123
123
|
}
|
|
124
|
+
getDocumentRoles(documentDefinitionName) {
|
|
125
|
+
return this.http.get(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`);
|
|
126
|
+
}
|
|
127
|
+
modifyDocumentRoles(documentDefinitionName, roles) {
|
|
128
|
+
return this.http.put(`${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`, roles);
|
|
129
|
+
}
|
|
124
130
|
getDocument(documentId) {
|
|
125
131
|
return this.http.get(`${this.valtimoEndpointUri}document/${documentId}`);
|
|
126
132
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-document.js","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/audit.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface AuditEvent {\n className: string;\n id: string;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface MetaData {\n id: any;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface AuditRecord {\n metaData: MetaData;\n createdOn: Date;\n auditEvent: AuditEvent;\n}\n","/*\n *\n * * Copyright 2015-2020 Ritense BV, the Netherlands.\n * *\n * * Licensed under EUPL, Version 1.2 (the \"License\");\n * * you may not use this file except in compliance with the License.\n * * You may obtain a copy of the License at\n * *\n * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n * *\n * * Unless required by applicable law or agreed to in writing, software\n * * distributed under the License is distributed on an \"AS IS\" basis,\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * * See the License for the specific language governing permissions and\n * * limitations under the License.\n *\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n DocumentDefinitionCreateRequest,\n UndeployDocumentDefinitionResult,\n DocumentSendMessageRequest,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params: 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 getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {SortState as ɵa} from './lib/models';"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;MAwJa,yBAAyB;IAKpC,YAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB;QACrE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;CACF;MASY,wCAAwC;IAMnD,YAAY,MAAc,EAAE,OAAkC;QAC5D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KACxB;CACF;MAOY,sBAAsB;IA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file":"valtimo-document.js","sources":["../../../../projects/valtimo/document/src/lib/models/document.model.ts","../../../../projects/valtimo/document/src/lib/models/audit.model.ts","../../../../projects/valtimo/document/src/lib/models/index.ts","../../../../projects/valtimo/document/src/lib/document.service.ts","../../../../projects/valtimo/document/src/lib/document.module.ts","../../../../projects/valtimo/document/src/lib/document-search-request.ts","../../../../projects/valtimo/document/src/public_api.ts","../../../../projects/valtimo/document/src/valtimo-document.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface SortResult {\n sorted: boolean;\n unsorted: boolean;\n}\n\nexport interface Pageable {\n sort: SortResult;\n pageSize: number;\n pageNumber: number;\n offset: number;\n unpaged: boolean;\n paged: boolean;\n}\n\nexport interface Page<T> {\n content: Array<T>;\n pageable: Pageable;\n last: boolean;\n totalPages: number;\n totalElements: number;\n first: boolean;\n sort: SortResult;\n numberOfElements: number;\n size: number;\n number: number;\n}\n\nexport interface DocumentDefinitions {\n content: DocumentDefinition[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface DocumentDefinition {\n id: DefinitionId;\n schema: any;\n createdOn: string;\n readOnly: boolean;\n}\n\nexport interface DefinitionId {\n name: string;\n version: number;\n}\n\nexport interface Documents {\n content: Document[];\n empty: boolean;\n first: boolean;\n last: boolean;\n number: number;\n numberOfElements: number;\n size: number;\n sort: any;\n totalElements: number;\n totalPages: number;\n}\n\nexport interface RelatedFile {\n fileId: string;\n fileName: string;\n sizeInBytes: number;\n createdOn: Date;\n createdBy: string;\n}\n\nexport interface Document {\n id: string;\n content: object;\n version: string;\n createdOn: Date;\n modifiedOn: Date;\n createdBy: string;\n sequence: number;\n definitionName: string;\n relations: string[];\n relatedFiles: RelatedFile[];\n}\n\nexport interface ProcessDocumentDefinitionId {\n processDefinitionKey: string;\n documentDefinitionId: DefinitionId;\n}\n\nexport interface ProcessDocumentDefinition {\n id: ProcessDocumentDefinitionId;\n processName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport interface ProcessDocumentInstanceId {\n processInstanceId: string;\n documentId: string;\n}\n\nexport interface ProcessDocumentInstance {\n id: ProcessDocumentInstanceId;\n processName: string;\n}\n\nexport interface NewDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndCompleteTaskResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentAndStartProcessResult {\n document: Document;\n processInstanceId: string;\n errors: string[];\n}\n\nexport interface DocumentResult {\n document: Document;\n errors: string[];\n}\n\nexport interface ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n}\n\nexport class ModifyDocumentRequestImpl implements ModifyDocumentRequest {\n documentId: string;\n content: object;\n versionBasedOn: string;\n\n constructor(documentId: string, content: object, versionBasedOn: string) {\n this.documentId = documentId;\n this.content = content;\n this.versionBasedOn = versionBasedOn;\n }\n}\n\nexport interface ModifyDocumentAndCompleteTaskRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n taskId: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndCompleteTaskRequestImpl\n implements ModifyDocumentAndCompleteTaskRequest<ModifyDocumentRequestImpl>\n{\n taskId: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(taskId: string, request: ModifyDocumentRequestImpl) {\n this.taskId = taskId;\n this.request = request;\n }\n}\n\nexport interface NewDocumentRequest {\n definition: string;\n content: object;\n}\n\nexport class NewDocumentRequestImpl implements NewDocumentRequest {\n definition: string;\n content: object;\n\n constructor(definition: string, content: object) {\n this.definition = definition;\n this.content = content;\n }\n}\n\nexport interface NewDocumentAndStartProcessRequest<\n T_NEW_DOCUMENT_REQUEST extends NewDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_NEW_DOCUMENT_REQUEST;\n}\n\nexport class NewDocumentAndStartProcessRequestImpl\n implements NewDocumentAndStartProcessRequest<NewDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: NewDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: NewDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ModifyDocumentAndStartProcessRequest<\n T_MODIFY_DOCUMENT_REQUEST extends ModifyDocumentRequest\n> {\n processDefinitionKey: string;\n request: T_MODIFY_DOCUMENT_REQUEST;\n}\n\nexport class ModifyDocumentAndStartProcessRequestImpl\n implements ModifyDocumentAndStartProcessRequest<ModifyDocumentRequestImpl>\n{\n processDefinitionKey: string;\n request: ModifyDocumentRequestImpl;\n\n constructor(processDefinitionKey: string, request: ModifyDocumentRequestImpl) {\n this.processDefinitionKey = processDefinitionKey;\n this.request = request;\n }\n}\n\nexport interface ProcessDocumentDefinitionRequest {\n processDefinitionKey: string;\n documentDefinitionName: string;\n canInitializeDocument: boolean;\n startableByUser: boolean;\n}\n\nexport class DocumentDefinitionCreateRequest {\n definition: string;\n\n constructor(definition: string) {\n this.definition = definition;\n }\n}\n\nexport interface UndeployDocumentDefinitionResult {\n documentDefinitionName: string;\n errors: string[];\n}\n\nexport interface DocumentSendMessageRequest {\n subject: string;\n bodyText: string;\n}\n\nexport interface DocumentRoles {\n content: DocumentRole[];\n}\n\nexport interface DocumentRole {\n name: string;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface AuditEvent {\n className: string;\n id: string;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface MetaData {\n id: any;\n origin: string;\n occurredOn: Date;\n user: string;\n}\n\nexport interface AuditRecord {\n metaData: MetaData;\n createdOn: Date;\n auditEvent: AuditEvent;\n}\n","/*\n *\n * * Copyright 2015-2020 Ritense BV, the Netherlands.\n * *\n * * Licensed under EUPL, Version 1.2 (the \"License\");\n * * you may not use this file except in compliance with the License.\n * * You may obtain a copy of the License at\n * *\n * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n * *\n * * Unless required by applicable law or agreed to in writing, software\n * * distributed under the License is distributed on an \"AS IS\" basis,\n * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * * See the License for the specific language governing permissions and\n * * limitations under the License.\n *\n */\n\nexport * from './document.model';\nexport * from './list-sorting.model';\nexport * from './audit.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {\n AuditRecord,\n Document,\n DocumentDefinition,\n DocumentDefinitionCreateRequest,\n DocumentDefinitions,\n DocumentResult,\n Documents,\n DocumentSendMessageRequest,\n ModifyDocumentAndCompleteTaskRequestImpl,\n ModifyDocumentAndCompleteTaskResult,\n ModifyDocumentAndStartProcessRequestImpl,\n ModifyDocumentAndStartProcessResult,\n NewDocumentAndStartProcessRequestImpl,\n NewDocumentAndStartProcessResult,\n Page,\n ProcessDocumentDefinition,\n ProcessDocumentDefinitionRequest,\n ProcessDocumentInstance,\n UndeployDocumentDefinitionResult,\n} from './models';\nimport {DocumentSearchRequest} from './document-search-request';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DocumentService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n // Document-calls\n public getAllDefinitions(): Observable<DocumentDefinitions> {\n return this.http.get<DocumentDefinitions>(`${this.valtimoEndpointUri}document-definition`);\n }\n\n queryDefinitions(params?: any): Observable<Page<DocumentDefinition>> {\n return this.http.get<Page<DocumentDefinition>>(\n `${this.valtimoEndpointUri}document-definition`,\n {params: params}\n );\n }\n\n getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition> {\n return this.http.get<DocumentDefinition>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}`\n );\n }\n\n getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents> {\n return this.http.post<Documents>(\n `${this.valtimoEndpointUri}document-search`,\n documentSearchRequest.asHttpBody(),\n {params: documentSearchRequest.asHttpParams()}\n );\n }\n\n public getDocumentRoles(documentDefinitionName: string): Observable<Array<String>> {\n return this.http.get<Array<String>>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`\n );\n }\n\n public modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void> {\n return this.http.put<void>(\n `${this.valtimoEndpointUri}document-definition/${documentDefinitionName}/roles`,\n roles\n );\n }\n\n getDocument(documentId: string): Observable<Document> {\n return this.http.get<Document>(`${this.valtimoEndpointUri}document/${documentId}`);\n }\n\n modifyDocument(document: any): Observable<DocumentResult> {\n return this.http.put<DocumentResult>(`${this.valtimoEndpointUri}document`, document);\n }\n\n // ProcessDocument-calls\n getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition> {\n return this.http.get<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`\n );\n }\n\n findProcessDocumentDefinitions(\n documentDefinitionName: string\n ): Observable<ProcessDocumentDefinition[]> {\n return this.http.get<ProcessDocumentDefinition[]>(\n `${this.valtimoEndpointUri}process-document/definition/document/${documentDefinitionName}`\n );\n }\n\n findProcessDocumentInstances(documentId: string): Observable<ProcessDocumentInstance[]> {\n return this.http.get<ProcessDocumentInstance[]>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}`\n );\n }\n\n newDocumentAndStartProcess(\n request: NewDocumentAndStartProcessRequestImpl\n ): Observable<NewDocumentAndStartProcessResult> {\n return this.http.post<NewDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/new-document-and-start-process`,\n request\n );\n }\n\n modifyDocumentAndCompleteTask(\n request: ModifyDocumentAndCompleteTaskRequestImpl\n ): Observable<ModifyDocumentAndCompleteTaskResult> {\n return this.http.post<ModifyDocumentAndCompleteTaskResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-complete-task`,\n request\n );\n }\n\n modifyDocumentAndStartProcess(\n request: ModifyDocumentAndStartProcessRequestImpl\n ): Observable<ModifyDocumentAndStartProcessResult> {\n return this.http.post<ModifyDocumentAndStartProcessResult>(\n `${this.valtimoEndpointUri}process-document/operation/modify-document-and-start-process`,\n request\n );\n }\n\n createProcessDocumentDefinition(\n request: ProcessDocumentDefinitionRequest\n ): Observable<ProcessDocumentDefinition> {\n return this.http.post<ProcessDocumentDefinition>(\n `${this.valtimoEndpointUri}process-document/definition`,\n request\n );\n }\n\n createDocumentDefinition(\n documentDefinitionCreateRequest: DocumentDefinitionCreateRequest\n ): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document-definition`,\n documentDefinitionCreateRequest,\n options\n );\n }\n\n deleteProcessDocumentDefinition(request: ProcessDocumentDefinitionRequest): Observable<any> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n body: request,\n };\n return this.http.delete(`${this.valtimoEndpointUri}process-document/definition`, options);\n }\n\n getAuditLog(documentId: string, page: number = 0): Observable<Page<AuditRecord>> {\n let params = new HttpParams();\n params = params.set('page', page.toString());\n return this.http.get<Page<AuditRecord>>(\n `${this.valtimoEndpointUri}process-document/instance/document/${documentId}/audit`,\n {params}\n );\n }\n\n assignResource(documentId: string, resourceId: string): Observable<void> {\n return this.http.post<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n {}\n );\n }\n\n removeResource(documentId: string, resourceId: string): Observable<void> {\n const options = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n }),\n };\n return this.http.delete<void>(\n `${this.valtimoEndpointUri}document/${documentId}/resource/${resourceId}`,\n options\n );\n }\n\n removeDocumentDefinition(name: string): Observable<UndeployDocumentDefinitionResult> {\n return this.http.delete<UndeployDocumentDefinitionResult>(\n `${this.valtimoEndpointUri}document-definition/${name}`\n );\n }\n\n sendMessage(documentId: string, request: DocumentSendMessageRequest): Observable<any> {\n return this.http.post(`${this.valtimoEndpointUri}document/${documentId}/message`, request);\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\n\n@NgModule()\nexport class DocumentModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {HttpParams} from '@angular/common/http';\nimport {SortState} from './models';\n\nexport interface DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n searchCriteria?: Array<{path: string; value: string}>;\n\n asHttpBody(): DocumentSearchRequestHttpBody;\n asHttpParams(): HttpParams;\n setPage(page: number): void;\n getSortString(sort: SortState): string;\n}\n\nexport class DocumentSearchRequestHttpBody {\n documentDefinitionName?: string;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n otherFilters?: Array<{path: string; value: string}>;\n}\n\nexport class DocumentSearchRequestImpl implements DocumentSearchRequest {\n definitionName: string;\n page: number;\n size: number;\n sequence?: number;\n createdBy?: string;\n globalSearchFilter?: string;\n sort?: SortState;\n otherFilters?: Array<{path: string; value: string}>;\n\n constructor(\n definitionName: string,\n page: number,\n size: number,\n sequence?: number,\n createdBy?: string,\n globalSearchFilter?: string,\n sort?: SortState,\n otherFilters?: Array<{path: string; value: string}>\n ) {\n this.definitionName = definitionName;\n this.page = page;\n this.size = size;\n this.sequence = sequence;\n this.createdBy = createdBy;\n this.globalSearchFilter = globalSearchFilter;\n this.sort = sort;\n this.otherFilters = otherFilters;\n }\n\n asHttpBody(): DocumentSearchRequestHttpBody {\n const httpBody = new DocumentSearchRequestHttpBody();\n\n httpBody.documentDefinitionName = this.definitionName;\n\n if (this.sequence) {\n httpBody.sequence = this.sequence;\n }\n if (this.createdBy) {\n httpBody.createdBy = this.createdBy;\n }\n if (this.globalSearchFilter) {\n httpBody.globalSearchFilter = this.globalSearchFilter;\n }\n if (this.otherFilters) {\n httpBody.otherFilters = this.otherFilters;\n }\n\n return httpBody;\n }\n\n asHttpParams(): HttpParams {\n let params = new HttpParams()\n .set('definitionName', this.definitionName)\n .set('page', this.page.toString())\n .set('size', this.size.toString());\n if (this.sort) {\n params = params.set('sort', this.getSortString(this.sort));\n }\n return params;\n }\n\n setPage(page: number): void {\n this.page = page;\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of document\n */\n\nexport * from './lib/models';\nexport * from './lib/document.service';\nexport * from './lib/document.module';\nexport * from './lib/document-search-request';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {SortState as ɵa} from './lib/models';"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;MAwJa,yBAAyB;IAKpC,YAAY,UAAkB,EAAE,OAAe,EAAE,cAAsB;QACrE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;KACtC;CACF;MASY,wCAAwC;IAMnD,YAAY,MAAc,EAAE,OAAkC;QAC5D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,C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,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SAC5D;QACD,OAAO,MAAM,CAAC;KACf;IAED,OAAO,CAAC,IAAY;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KAClB;IAED,aAAa,CAAC,IAAe;QAC3B,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;KACrD;;;AC/GH;;;;;;;;;;;;;;;;ACAA;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { AuditRecord, Document, DocumentDefinition, DocumentDefinitions, DocumentResult, Documents, ModifyDocumentAndCompleteTaskRequestImpl, ModifyDocumentAndCompleteTaskResult, ModifyDocumentAndStartProcessRequestImpl, ModifyDocumentAndStartProcessResult, NewDocumentAndStartProcessRequestImpl, NewDocumentAndStartProcessResult, Page, ProcessDocumentDefinition, ProcessDocumentDefinitionRequest, ProcessDocumentInstance,
|
|
3
|
+
import { AuditRecord, Document, DocumentDefinition, DocumentDefinitionCreateRequest, DocumentDefinitions, DocumentResult, Documents, DocumentSendMessageRequest, ModifyDocumentAndCompleteTaskRequestImpl, ModifyDocumentAndCompleteTaskResult, ModifyDocumentAndStartProcessRequestImpl, ModifyDocumentAndStartProcessResult, NewDocumentAndStartProcessRequestImpl, NewDocumentAndStartProcessResult, Page, ProcessDocumentDefinition, ProcessDocumentDefinitionRequest, ProcessDocumentInstance, UndeployDocumentDefinitionResult } from './models';
|
|
4
4
|
import { DocumentSearchRequest } from './document-search-request';
|
|
5
5
|
import { ConfigService } from '@valtimo/config';
|
|
6
6
|
export declare class DocumentService {
|
|
@@ -11,6 +11,8 @@ export declare class DocumentService {
|
|
|
11
11
|
queryDefinitions(params?: any): Observable<Page<DocumentDefinition>>;
|
|
12
12
|
getDocumentDefinition(documentDefinitionName: string): Observable<DocumentDefinition>;
|
|
13
13
|
getDocuments(documentSearchRequest: DocumentSearchRequest): Observable<Documents>;
|
|
14
|
+
getDocumentRoles(documentDefinitionName: string): Observable<Array<String>>;
|
|
15
|
+
modifyDocumentRoles(documentDefinitionName: string, roles: any): Observable<void>;
|
|
14
16
|
getDocument(documentId: string): Observable<Document>;
|
|
15
17
|
modifyDocument(document: any): Observable<DocumentResult>;
|
|
16
18
|
getProcessDocumentDefinitions(): Observable<ProcessDocumentDefinition>;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"exports":[{"from":"./lib/document.model"},{"from":"./lib/list-sorting.model"},{"from":"./lib/audit.model"}],"metadata":{"DocumentService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":43,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":49,"character":28},{"__symbolic":"reference","module":"@valtimo/config","name":"ConfigService","line":49,"character":55}]}],"getAllDefinitions":[{"__symbolic":"method"}],"queryDefinitions":[{"__symbolic":"method"}],"getDocumentDefinition":[{"__symbolic":"method"}],"getDocuments":[{"__symbolic":"method"}],"getDocument":[{"__symbolic":"method"}],"modifyDocument":[{"__symbolic":"method"}],"getProcessDocumentDefinitions":[{"__symbolic":"method"}],"findProcessDocumentDefinitions":[{"__symbolic":"method"}],"findProcessDocumentInstances":[{"__symbolic":"method"}],"newDocumentAndStartProcess":[{"__symbolic":"method"}],"modifyDocumentAndCompleteTask":[{"__symbolic":"method"}],"modifyDocumentAndStartProcess":[{"__symbolic":"method"}],"createProcessDocumentDefinition":[{"__symbolic":"method"}],"createDocumentDefinition":[{"__symbolic":"method"}],"deleteProcessDocumentDefinition":[{"__symbolic":"method"}],"getAuditLog":[{"__symbolic":"method"}],"assignResource":[{"__symbolic":"method"}],"removeResource":[{"__symbolic":"method"}],"removeDocumentDefinition":[{"__symbolic":"method"}],"sendMessage":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"DocumentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":18,"character":1}}],"members":{}},"DocumentSearchRequest":{"__symbolic":"interface"},"DocumentSearchRequestHttpBody":{"__symbolic":"class","members":{}},"DocumentSearchRequestImpl":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25,"module":"./lib/document-search-request"}]}]}],"asHttpBody":[{"__symbolic":"method"}],"asHttpParams":[{"__symbolic":"method"}],"setPage":[{"__symbolic":"method"}],"getSortString":[{"__symbolic":"method"}]}}},"origins":{"DocumentService":"./lib/document.service","DocumentModule":"./lib/document.module","DocumentSearchRequest":"./lib/document-search-request","DocumentSearchRequestHttpBody":"./lib/document-search-request","DocumentSearchRequestImpl":"./lib/document-search-request","ɵa":"./lib/models"},"importAs":"@valtimo/document"}
|
|
1
|
+
{"__symbolic":"module","version":4,"exports":[{"from":"./lib/document.model"},{"from":"./lib/list-sorting.model"},{"from":"./lib/audit.model"}],"metadata":{"DocumentService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":43,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":49,"character":28},{"__symbolic":"reference","module":"@valtimo/config","name":"ConfigService","line":49,"character":55}]}],"getAllDefinitions":[{"__symbolic":"method"}],"queryDefinitions":[{"__symbolic":"method"}],"getDocumentDefinition":[{"__symbolic":"method"}],"getDocuments":[{"__symbolic":"method"}],"getDocumentRoles":[{"__symbolic":"method"}],"modifyDocumentRoles":[{"__symbolic":"method"}],"getDocument":[{"__symbolic":"method"}],"modifyDocument":[{"__symbolic":"method"}],"getProcessDocumentDefinitions":[{"__symbolic":"method"}],"findProcessDocumentDefinitions":[{"__symbolic":"method"}],"findProcessDocumentInstances":[{"__symbolic":"method"}],"newDocumentAndStartProcess":[{"__symbolic":"method"}],"modifyDocumentAndCompleteTask":[{"__symbolic":"method"}],"modifyDocumentAndStartProcess":[{"__symbolic":"method"}],"createProcessDocumentDefinition":[{"__symbolic":"method"}],"createDocumentDefinition":[{"__symbolic":"method"}],"deleteProcessDocumentDefinition":[{"__symbolic":"method"}],"getAuditLog":[{"__symbolic":"method"}],"assignResource":[{"__symbolic":"method"}],"removeResource":[{"__symbolic":"method"}],"removeDocumentDefinition":[{"__symbolic":"method"}],"sendMessage":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"DocumentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":18,"character":1}}],"members":{}},"DocumentSearchRequest":{"__symbolic":"interface"},"DocumentSearchRequestHttpBody":{"__symbolic":"class","members":{}},"DocumentSearchRequestImpl":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":61,"character":25,"module":"./lib/document-search-request"}]}]}],"asHttpBody":[{"__symbolic":"method"}],"asHttpParams":[{"__symbolic":"method"}],"setPage":[{"__symbolic":"method"}],"getSortString":[{"__symbolic":"method"}]}}},"origins":{"DocumentService":"./lib/document.service","DocumentModule":"./lib/document.module","DocumentSearchRequest":"./lib/document-search-request","DocumentSearchRequestHttpBody":"./lib/document-search-request","DocumentSearchRequestImpl":"./lib/document-search-request","ɵa":"./lib/models"},"importAs":"@valtimo/document"}
|