@icure/api 8.8.6 → 8.9.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/icc-api/api/IccAccesslogApi.d.ts +20 -0
- package/icc-api/api/IccAccesslogApi.js +41 -0
- package/icc-api/api/IccAccesslogApi.js.map +1 -1
- package/icc-api/api/IccAgendaApi.d.ts +20 -0
- package/icc-api/api/IccAgendaApi.js +41 -0
- package/icc-api/api/IccAgendaApi.js.map +1 -1
- package/icc-api/api/IccCalendarItemApi.d.ts +20 -0
- package/icc-api/api/IccCalendarItemApi.js +41 -0
- package/icc-api/api/IccCalendarItemApi.js.map +1 -1
- package/icc-api/api/IccCalendarItemTypeApi.d.ts +20 -0
- package/icc-api/api/IccCalendarItemTypeApi.js +41 -0
- package/icc-api/api/IccCalendarItemTypeApi.js.map +1 -1
- package/icc-api/api/IccCodeApi.d.ts +20 -0
- package/icc-api/api/IccCodeApi.js +41 -0
- package/icc-api/api/IccCodeApi.js.map +1 -1
- package/icc-api/api/IccContactApi.d.ts +20 -0
- package/icc-api/api/IccContactApi.js +41 -0
- package/icc-api/api/IccContactApi.js.map +1 -1
- package/icc-api/api/IccDeviceApi.d.ts +20 -0
- package/icc-api/api/IccDeviceApi.js +41 -0
- package/icc-api/api/IccDeviceApi.js.map +1 -1
- package/icc-api/api/IccDocumentApi.d.ts +20 -0
- package/icc-api/api/IccDocumentApi.js +41 -0
- package/icc-api/api/IccDocumentApi.js.map +1 -1
- package/icc-api/api/IccFormApi.d.ts +20 -0
- package/icc-api/api/IccFormApi.js +41 -0
- package/icc-api/api/IccFormApi.js.map +1 -1
- package/icc-api/api/IccHcpartyApi.d.ts +20 -0
- package/icc-api/api/IccHcpartyApi.js +41 -0
- package/icc-api/api/IccHcpartyApi.js.map +1 -1
- package/icc-api/api/IccHelementApi.d.ts +20 -0
- package/icc-api/api/IccHelementApi.js +41 -0
- package/icc-api/api/IccHelementApi.js.map +1 -1
- package/icc-api/api/IccInsuranceApi.d.ts +20 -0
- package/icc-api/api/IccInsuranceApi.js +41 -0
- package/icc-api/api/IccInsuranceApi.js.map +1 -1
- package/icc-api/api/IccInvoiceApi.d.ts +20 -0
- package/icc-api/api/IccInvoiceApi.js +41 -0
- package/icc-api/api/IccInvoiceApi.js.map +1 -1
- package/icc-api/api/IccMessageApi.d.ts +20 -0
- package/icc-api/api/IccMessageApi.js +41 -0
- package/icc-api/api/IccMessageApi.js.map +1 -1
- package/icc-api/api/IccPatientApi.d.ts +20 -0
- package/icc-api/api/IccPatientApi.js +41 -0
- package/icc-api/api/IccPatientApi.js.map +1 -1
- package/icc-api/api/IccPlaceApi.d.ts +20 -0
- package/icc-api/api/IccPlaceApi.js +41 -0
- package/icc-api/api/IccPlaceApi.js.map +1 -1
- package/icc-api/api/IccReceiptApi.d.ts +20 -0
- package/icc-api/api/IccReceiptApi.js +41 -0
- package/icc-api/api/IccReceiptApi.js.map +1 -1
- package/icc-api/api/IccTopicApi.d.ts +20 -0
- package/icc-api/api/IccTopicApi.js +41 -0
- package/icc-api/api/IccTopicApi.js.map +1 -1
- package/icc-api/api/IccUserApi.d.ts +20 -0
- package/icc-api/api/IccUserApi.js +41 -0
- package/icc-api/api/IccUserApi.js.map +1 -1
- package/icc-api/model/ConflictResolutionStrategy.d.ts +17 -0
- package/icc-api/model/ConflictResolutionStrategy.js +22 -0
- package/icc-api/model/ConflictResolutionStrategy.js.map +1 -0
- package/icc-api/model/MergeResult.d.ts +33 -0
- package/icc-api/model/MergeResult.js +27 -0
- package/icc-api/model/MergeResult.js.map +1 -0
- package/icc-api/model/models.d.ts +2 -0
- package/icc-api/model/models.js +2 -0
- package/icc-api/model/models.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IccMessageApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccMessageApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAE3B,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,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,iBAAO,CAAC,CAAC,CAAC,CAAC,CAAC;iBACrF,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AAlpBD,sCAkpBC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { XHR } from './XHR'\nimport { Delegation } from '../model/Delegation'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { IcureStub } from '../model/IcureStub'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { Message } from '../model/Message'\nimport { MessagesReadStatusUpdate } from '../model/MessagesReadStatusUpdate'\nimport { PaginatedListMessage } from '../model/PaginatedListMessage'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { EntityShareOrMetadataUpdateRequest } from '../model/requests/EntityShareOrMetadataUpdateRequest'\nimport { EntityBulkShareResult } from '../model/requests/EntityBulkShareResult'\nimport { FilterChainMessage } from '../model/FilterChainMessage'\nimport { AbstractFilterMessage } from '../model/AbstractFilterMessage'\nimport { BulkShareOrUpdateMetadataParams } from '../model/requests/BulkShareOrUpdateMetadataParams'\nimport { AccessLog } from '../model/AccessLog'\nimport { TimingInfo } from '../model/TimingInfo'\nimport { ConflictResolutionRequest } from '../model/ConflictResolutionRequest'\nimport { ConflictResolutionResult } from '../model/ConflictResolutionResult'\n\nexport class IccMessageApi {\n host: string\n _headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n get headers(): Promise<Array<XHR.Header>> {\n return Promise.resolve(this._headers)\n }\n\n constructor(\n host: string,\n headers: any,\n authenticationProvider?: AuthenticationProvider,\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n ) {\n this.host = iccRestApiPath(host)\n this._headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new NoAuthenticationProvider()\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this._headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n * @summary Creates a message\n * @param body\n */\n async createMessage(body?: Message): Promise<Message> {\n const _url = this.host + `/message` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Message(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a batch of messages.\n *\n * @param messageIds a ListOfIds containing the ids of the messages to delete.\n * @return a Promise that will resolve in an array of DocIdentifiers of the messages successfully deleted\n */\n async deleteMessages(messageIds: ListOfIds): Promise<Array<DocIdentifier>> {\n const headers = (await this.headers).filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n this.host + `/message/delete/batch` + '?ts=' + new Date().getTime(),\n headers,\n messageIds,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => (doc.body as Array<JSON>).map((it) => new DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a single message by id.\n *\n * @param messageId the id of the message to delete.\n * @return a Promise that will resolve in the DocIdentifier of the deleted message.\n */\n async deleteMessage(messageId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/message/${encodeURIComponent(messageId)}` + '?ts=' + new Date().getTime(),\n await this.headers,\n null,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => new DocIdentifier(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages (paginated) for current HC Party\n * @param startKey\n * @param startDocumentId\n * @param limit\n */\n async findMessages(startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListMessage> {\n let _body = null\n\n const _url =\n this.host +\n `/message` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListMessage(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages (paginated) for current HC Party and provided from address\n * @param fromAddress\n * @param startKey\n * @param startDocumentId\n * @param limit\n * @param hcpId\n */\n async findMessagesByFromAddress(\n fromAddress?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n hcpId?: string\n ): Promise<PaginatedListMessage> {\n let _body = null\n\n const _url =\n this.host +\n `/message/byFromAddress` +\n '?ts=' +\n new Date().getTime() +\n (fromAddress ? '&fromAddress=' + encodeURIComponent(String(fromAddress)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListMessage(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @deprecated use {@link listMessageIdsByDataOwnerPatientSentDate} instead.\n * @summary List messages found By Healthcare Party and secret foreign keys.\n * @param body\n */\n async findMessagesByHCPartyPatientForeignKeysUsingPost(body?: Array<string>): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message/byHcPartySecretForeignKeys` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys must be delimited by commas.\n * @deprecated use {@link listMessageIdsByDataOwnerPatientSentDate} instead.\n * @summary List messages found By Healthcare Party and secret foreign keys.\n * @param secretFKeys\n */\n async findMessagesByHCPartyPatientForeignKeys(secretFKeys: string): Promise<Array<Message>> {\n let _body = null\n\n const _url =\n this.host +\n `/message/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary List Message ids by data owner and a set of secret foreign key. The ids will be sorted by Message sent, in ascending or descending\n * order according to the specified parameter value.\n *\n * @param dataOwnerId the data owner id.\n * @param secretFKeys an array of secret foreign keys.\n * @param startDate a timestamp in epoch milliseconds. If undefined, all the message ids since the beginning of time will be returned.\n * @param endDate a timestamp in epoch milliseconds. If undefined, all the message ids until the end of time will be returned.\n * @param descending whether to return the ids ordered in ascending or descending order by Message sent.\n * @return a promise that will resolve in an Array of Message ids.\n */\n async listMessageIdsByDataOwnerPatientSentDate(\n dataOwnerId: string,\n secretFKeys: string[],\n startDate?: number,\n endDate?: number,\n descending?: boolean\n ): Promise<string[]> {\n const _url =\n this.host +\n `/message/byDataOwnerPatientSentDate?ts=${new Date().getTime()}` +\n '&dataOwnerId=' +\n encodeURIComponent(dataOwnerId) +\n (!!startDate ? `&startDate=${encodeURIComponent(startDate)}` : '') +\n (!!endDate ? `&endDate=${encodeURIComponent(endDate)}` : '') +\n (!!descending ? `&descending=${descending}` : '')\n const headers = (await this.headers).filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n const body = new ListOfIds({ ids: secretFKeys })\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => JSON.parse(JSON.stringify(it))))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages (paginated) for current HC Party and provided to address\n * @param toAddress\n * @param startKey\n * @param startDocumentId\n * @param limit\n * @param reverse\n * @param hcpId\n */\n async findMessagesByToAddress(\n toAddress?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n reverse?: boolean,\n hcpId?: string\n ): Promise<PaginatedListMessage> {\n let _body = null\n\n const _url =\n this.host +\n `/message/byToAddress` +\n '?ts=' +\n new Date().getTime() +\n (toAddress ? '&toAddress=' + encodeURIComponent(String(toAddress)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (reverse ? '&reverse=' + encodeURIComponent(String(reverse)) : '') +\n (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListMessage(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages (paginated) for current HC Party and provided transportGuid\n * @param transportGuid\n * @param received\n * @param startKey\n * @param startDocumentId\n * @param limit\n * @param hcpId\n */\n async findMessagesByTransportGuid(\n transportGuid?: string,\n received?: boolean,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n hcpId?: string\n ): Promise<PaginatedListMessage> {\n let _body = null\n\n const _url =\n this.host +\n `/message/byTransportGuid` +\n '?ts=' +\n new Date().getTime() +\n (transportGuid ? '&transportGuid=' + encodeURIComponent(String(transportGuid)) : '') +\n (received ? '&received=' + encodeURIComponent(String(received)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListMessage(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages starting by a prefix between two date\n * @param transportGuid\n * @param from\n * @param to\n * @param startKey\n * @param startDocumentId\n * @param limit\n * @param hcpId\n */\n async findMessagesByTransportGuidSentDate(\n transportGuid?: string,\n from?: number,\n to?: number,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n hcpId?: string\n ): Promise<PaginatedListMessage> {\n let _body = null\n\n const _url =\n this.host +\n `/message/byTransportGuidSentDate` +\n '?ts=' +\n new Date().getTime() +\n (transportGuid ? '&transportGuid=' + encodeURIComponent(String(transportGuid)) : '') +\n (from ? '&from=' + encodeURIComponent(String(from)) : '') +\n (to ? '&to=' + encodeURIComponent(String(to)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListMessage(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get children messages of provided message\n * @param messageId\n */\n async getChildrenMessages(messageId: string): Promise<Array<Message>> {\n let _body = null\n\n const _url = this.host + `/message/${encodeURIComponent(String(messageId))}/children` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get children messages of provided message\n * @param body\n */\n async getChildrenMessagesOfList(body?: ListOfIds): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message/children/batch` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Gets a message\n * @param messageId\n */\n async getMessage(messageId: string): Promise<Message> {\n let _body = null\n\n const _url = this.host + `/message/${encodeURIComponent(String(messageId))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Message(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Gets batch of messages by their ids.\n * @param messageIds the ids of the messages\n */\n async getMessages(messageIds: ListOfIds): Promise<Message[]> {\n const _url = this.host + `/message/byIds` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, messageIds, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get children messages of provided message\n * @param body\n */\n async listMessagesByInvoiceIds(body?: ListOfIds): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message/byInvoice` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages for current HC Party and provided transportGuids\n * @param body\n * @param hcpId\n */\n async listMessagesByTransportGuids(hcpId: string, body?: ListOfIds): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url =\n this.host + `/message/byTransportGuid/list` + '?ts=' + new Date().getTime() + (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '')\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Updates a message\n * @param body\n */\n async modifyMessage(body?: Message): Promise<Message> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Message(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Set read status for given list of messages\n * @param body\n */\n async setMessagesReadStatus(body?: MessagesReadStatusUpdate): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message/readstatus` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Set status bits for given list of messages\n * @param body\n * @param status\n */\n async setMessagesStatusBits(status: number, body?: ListOfIds): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message/status/${encodeURIComponent(String(status))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @internal this method is for internal use only and may be changed without notice\n */\n async bulkShareMessages(request: BulkShareOrUpdateMetadataParams): Promise<EntityBulkShareResult<Message>[]> {\n const _url = this.host + '/message/bulkSharedMetadataUpdate' + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, request, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((x) => new EntityBulkShareResult<Message>(x, Message)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of messages along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.\n * @summary List messages for the current user (HcParty) or the given hcparty in the filter\n * @param body\n * @param startDocumentId A Message document ID\n * @param limit Number of rows\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n filterMessagesBy(body: FilterChainMessage, startDocumentId?: string, limit?: number, collectTiming?: false): Promise<PaginatedListMessage>\n filterMessagesBy(\n body: FilterChainMessage,\n startDocumentId?: string,\n limit?: number,\n collectTiming?: true\n ): Promise<PaginatedListMessage & TimingInfo>\n async filterMessagesBy(\n body: FilterChainMessage,\n startDocumentId?: string,\n limit?: number,\n collectTiming: boolean = false\n ): Promise<PaginatedListMessage> {\n const _url =\n this.host +\n `/message/filter` +\n '?ts=' +\n new Date().getTime() +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n _url,\n headers,\n body,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService(),\n undefined,\n false,\n collectTiming ? ['x-filter-timing-*'] : []\n )\n .then((doc) => Object.assign(new PaginatedListMessage(doc.body as JSON), collectTiming ? { responseHeaders: doc.responseHeaders } : {}))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of messages matching the provided filter for the current user (HcParty)\n * @param body\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n matchMessagesBy(body: AbstractFilterMessage, collectTiming?: false): Promise<Array<string>>\n matchMessagesBy(body: AbstractFilterMessage, collectTiming?: true): Promise<Array<string> & TimingInfo>\n async matchMessagesBy(body: AbstractFilterMessage, collectTiming: boolean = false): Promise<Array<string>> {\n const _url = this.host + `/message/match` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n _url,\n headers,\n body,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService(),\n undefined,\n false,\n collectTiming ? ['x-filter-timing-*'] : []\n )\n .then((doc) =>\n Object.assign(\n (doc.body as Array<JSON>).map((it) => JSON.parse(JSON.stringify(it))),\n collectTiming ? { responseHeaders: doc.responseHeaders } : {}\n )\n )\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves the ids of all the messages that currently have conflicting revisions and therefore need to\n * be resolved.\n * @summary List the ids of the messages that have conflicts.\n * @return the ids of the messages with unresolved conflicts.\n */\n async getConflictingEntitiesIds(): Promise<Array<string>> {\n const _url = this.host + `/message/conflicts` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => doc.body as Array<string>)\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves all the conflicting revisions of the message with the given id (the current revision is not\n * included). The returned entities are still encrypted.\n * @summary Get the conflicting revisions of a message.\n * @param entityId the id of the message to retrieve the conflicts for.\n * @return the conflicting revisions of the message.\n */\n async getConflictsForEntity(entityId: string): Promise<Array<Message>> {\n const _url = this.host + `/message/conflicts/of?entityId=${encodeURIComponent(String(entityId))}` + '&ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Resolves a conflict by declaring which revision of the message should be kept as winner and which\n * conflicting revisions should be purged. The provided document must already be encrypted.\n * @summary Declare the winning revision of a conflicting message.\n * @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.\n * @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.\n */\n async declareConflictWinner(body: ConflictResolutionRequest<Message>): Promise<ConflictResolutionResult<Message>> {\n const _url = this.host + `/message/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new ConflictResolutionResult<Message>(doc.body, (x) => new Message(x)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Like {@link getConflictingEntitiesIds} but targets the entities of the group with the given id.\n * @summary List the ids of the messages that have conflicts, in the given group.\n * @param groupId the id of the group to look into.\n * @return the ids of the messages with unresolved conflicts in the group.\n */\n async getConflictingEntitiesIdsInGroup(groupId: string): Promise<Array<string>> {\n const _url = this.host + `/message/inGroup/${encodeURIComponent(String(groupId))}/conflicts` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => doc.body as Array<string>)\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Like {@link getConflictsForEntity} but targets the entity of the group with the given id.\n * @summary Get the conflicting revisions of a message, in the given group.\n * @param groupId the id of the group the message belongs to.\n * @param entityId the id of the message to retrieve the conflicts for.\n * @return the conflicting revisions of the message.\n */\n async getConflictsForEntityInGroup(groupId: string, entityId: string): Promise<Array<Message>> {\n const _url =\n this.host +\n `/message/inGroup/${encodeURIComponent(String(groupId))}/conflicts/of?entityId=${encodeURIComponent(String(entityId))}` +\n '&ts=' +\n new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Like {@link declareConflictWinner} but targets the entity of the group with the given id.\n * @summary Declare the winning revision of a conflicting message, in the given group.\n * @param groupId the id of the group the message belongs to.\n * @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.\n * @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.\n */\n async declareConflictWinnerInGroup(groupId: string, body: ConflictResolutionRequest<Message>): Promise<ConflictResolutionResult<Message>> {\n const _url = this.host + `/message/inGroup/${encodeURIComponent(String(groupId))}/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new ConflictResolutionResult<Message>(doc.body, (x) => new Message(x)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IccMessageApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccMessageApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAE3B,0DAAsD;AAEtD,kDAA8C;AAC9C,8CAA0C;AAE1C,wEAAoE;AACpE,wFAA8G;AAC9G,qDAAiD;AAEjD,mFAA+E;AAO/E,gFAA4E;AAC5E,oFAAgF;AAChF,sDAAkD;AAElD,MAAa,aAAa;IAMxB,IAAI,OAAO;QACT,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACvC,CAAC;IAED,YACE,IAAY,EACZ,OAAY,EACZ,sBAA+C,EAC/C,SAAyE;QAEzE,IAAI,CAAC,IAAI,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAA;QAChC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,SAAG,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC9E,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,IAAI,iDAAwB,EAAE,CAAA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CAAE,GAAG,CAAC,IAAoB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,yBAAW,CAAC,EAAE,CAAC,CAAC,CAAC;iBACzE,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AA/rBD,sCA+rBC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\nimport { XHR } from './XHR'\nimport { Delegation } from '../model/Delegation'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { IcureStub } from '../model/IcureStub'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { Message } from '../model/Message'\nimport { MessagesReadStatusUpdate } from '../model/MessagesReadStatusUpdate'\nimport { PaginatedListMessage } from '../model/PaginatedListMessage'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { EntityShareOrMetadataUpdateRequest } from '../model/requests/EntityShareOrMetadataUpdateRequest'\nimport { EntityBulkShareResult } from '../model/requests/EntityBulkShareResult'\nimport { FilterChainMessage } from '../model/FilterChainMessage'\nimport { AbstractFilterMessage } from '../model/AbstractFilterMessage'\nimport { BulkShareOrUpdateMetadataParams } from '../model/requests/BulkShareOrUpdateMetadataParams'\nimport { AccessLog } from '../model/AccessLog'\nimport { TimingInfo } from '../model/TimingInfo'\nimport { ConflictResolutionRequest } from '../model/ConflictResolutionRequest'\nimport { ConflictResolutionResult } from '../model/ConflictResolutionResult'\nimport { ConflictResolutionStrategy } from '../model/ConflictResolutionStrategy'\nimport { MergeResult } from '../model/MergeResult'\n\nexport class IccMessageApi {\n host: string\n _headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n get headers(): Promise<Array<XHR.Header>> {\n return Promise.resolve(this._headers)\n }\n\n constructor(\n host: string,\n headers: any,\n authenticationProvider?: AuthenticationProvider,\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n ) {\n this.host = iccRestApiPath(host)\n this._headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new NoAuthenticationProvider()\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this._headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n * @summary Creates a message\n * @param body\n */\n async createMessage(body?: Message): Promise<Message> {\n const _url = this.host + `/message` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Message(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a batch of messages.\n *\n * @param messageIds a ListOfIds containing the ids of the messages to delete.\n * @return a Promise that will resolve in an array of DocIdentifiers of the messages successfully deleted\n */\n async deleteMessages(messageIds: ListOfIds): Promise<Array<DocIdentifier>> {\n const headers = (await this.headers).filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n this.host + `/message/delete/batch` + '?ts=' + new Date().getTime(),\n headers,\n messageIds,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => (doc.body as Array<JSON>).map((it) => new DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a single message by id.\n *\n * @param messageId the id of the message to delete.\n * @return a Promise that will resolve in the DocIdentifier of the deleted message.\n */\n async deleteMessage(messageId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/message/${encodeURIComponent(messageId)}` + '?ts=' + new Date().getTime(),\n await this.headers,\n null,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => new DocIdentifier(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages (paginated) for current HC Party\n * @param startKey\n * @param startDocumentId\n * @param limit\n */\n async findMessages(startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListMessage> {\n let _body = null\n\n const _url =\n this.host +\n `/message` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListMessage(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages (paginated) for current HC Party and provided from address\n * @param fromAddress\n * @param startKey\n * @param startDocumentId\n * @param limit\n * @param hcpId\n */\n async findMessagesByFromAddress(\n fromAddress?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n hcpId?: string\n ): Promise<PaginatedListMessage> {\n let _body = null\n\n const _url =\n this.host +\n `/message/byFromAddress` +\n '?ts=' +\n new Date().getTime() +\n (fromAddress ? '&fromAddress=' + encodeURIComponent(String(fromAddress)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListMessage(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @deprecated use {@link listMessageIdsByDataOwnerPatientSentDate} instead.\n * @summary List messages found By Healthcare Party and secret foreign keys.\n * @param body\n */\n async findMessagesByHCPartyPatientForeignKeysUsingPost(body?: Array<string>): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message/byHcPartySecretForeignKeys` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys must be delimited by commas.\n * @deprecated use {@link listMessageIdsByDataOwnerPatientSentDate} instead.\n * @summary List messages found By Healthcare Party and secret foreign keys.\n * @param secretFKeys\n */\n async findMessagesByHCPartyPatientForeignKeys(secretFKeys: string): Promise<Array<Message>> {\n let _body = null\n\n const _url =\n this.host +\n `/message/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary List Message ids by data owner and a set of secret foreign key. The ids will be sorted by Message sent, in ascending or descending\n * order according to the specified parameter value.\n *\n * @param dataOwnerId the data owner id.\n * @param secretFKeys an array of secret foreign keys.\n * @param startDate a timestamp in epoch milliseconds. If undefined, all the message ids since the beginning of time will be returned.\n * @param endDate a timestamp in epoch milliseconds. If undefined, all the message ids until the end of time will be returned.\n * @param descending whether to return the ids ordered in ascending or descending order by Message sent.\n * @return a promise that will resolve in an Array of Message ids.\n */\n async listMessageIdsByDataOwnerPatientSentDate(\n dataOwnerId: string,\n secretFKeys: string[],\n startDate?: number,\n endDate?: number,\n descending?: boolean\n ): Promise<string[]> {\n const _url =\n this.host +\n `/message/byDataOwnerPatientSentDate?ts=${new Date().getTime()}` +\n '&dataOwnerId=' +\n encodeURIComponent(dataOwnerId) +\n (!!startDate ? `&startDate=${encodeURIComponent(startDate)}` : '') +\n (!!endDate ? `&endDate=${encodeURIComponent(endDate)}` : '') +\n (!!descending ? `&descending=${descending}` : '')\n const headers = (await this.headers).filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n const body = new ListOfIds({ ids: secretFKeys })\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => JSON.parse(JSON.stringify(it))))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages (paginated) for current HC Party and provided to address\n * @param toAddress\n * @param startKey\n * @param startDocumentId\n * @param limit\n * @param reverse\n * @param hcpId\n */\n async findMessagesByToAddress(\n toAddress?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n reverse?: boolean,\n hcpId?: string\n ): Promise<PaginatedListMessage> {\n let _body = null\n\n const _url =\n this.host +\n `/message/byToAddress` +\n '?ts=' +\n new Date().getTime() +\n (toAddress ? '&toAddress=' + encodeURIComponent(String(toAddress)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (reverse ? '&reverse=' + encodeURIComponent(String(reverse)) : '') +\n (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListMessage(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages (paginated) for current HC Party and provided transportGuid\n * @param transportGuid\n * @param received\n * @param startKey\n * @param startDocumentId\n * @param limit\n * @param hcpId\n */\n async findMessagesByTransportGuid(\n transportGuid?: string,\n received?: boolean,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n hcpId?: string\n ): Promise<PaginatedListMessage> {\n let _body = null\n\n const _url =\n this.host +\n `/message/byTransportGuid` +\n '?ts=' +\n new Date().getTime() +\n (transportGuid ? '&transportGuid=' + encodeURIComponent(String(transportGuid)) : '') +\n (received ? '&received=' + encodeURIComponent(String(received)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListMessage(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages starting by a prefix between two date\n * @param transportGuid\n * @param from\n * @param to\n * @param startKey\n * @param startDocumentId\n * @param limit\n * @param hcpId\n */\n async findMessagesByTransportGuidSentDate(\n transportGuid?: string,\n from?: number,\n to?: number,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n hcpId?: string\n ): Promise<PaginatedListMessage> {\n let _body = null\n\n const _url =\n this.host +\n `/message/byTransportGuidSentDate` +\n '?ts=' +\n new Date().getTime() +\n (transportGuid ? '&transportGuid=' + encodeURIComponent(String(transportGuid)) : '') +\n (from ? '&from=' + encodeURIComponent(String(from)) : '') +\n (to ? '&to=' + encodeURIComponent(String(to)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListMessage(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get children messages of provided message\n * @param messageId\n */\n async getChildrenMessages(messageId: string): Promise<Array<Message>> {\n let _body = null\n\n const _url = this.host + `/message/${encodeURIComponent(String(messageId))}/children` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get children messages of provided message\n * @param body\n */\n async getChildrenMessagesOfList(body?: ListOfIds): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message/children/batch` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Gets a message\n * @param messageId\n */\n async getMessage(messageId: string): Promise<Message> {\n let _body = null\n\n const _url = this.host + `/message/${encodeURIComponent(String(messageId))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Message(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Gets batch of messages by their ids.\n * @param messageIds the ids of the messages\n */\n async getMessages(messageIds: ListOfIds): Promise<Message[]> {\n const _url = this.host + `/message/byIds` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, messageIds, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get children messages of provided message\n * @param body\n */\n async listMessagesByInvoiceIds(body?: ListOfIds): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message/byInvoice` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get all messages for current HC Party and provided transportGuids\n * @param body\n * @param hcpId\n */\n async listMessagesByTransportGuids(hcpId: string, body?: ListOfIds): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url =\n this.host + `/message/byTransportGuid/list` + '?ts=' + new Date().getTime() + (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '')\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Updates a message\n * @param body\n */\n async modifyMessage(body?: Message): Promise<Message> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Message(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Set read status for given list of messages\n * @param body\n */\n async setMessagesReadStatus(body?: MessagesReadStatusUpdate): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message/readstatus` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Set status bits for given list of messages\n * @param body\n * @param status\n */\n async setMessagesStatusBits(status: number, body?: ListOfIds): Promise<Array<Message>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/message/status/${encodeURIComponent(String(status))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @internal this method is for internal use only and may be changed without notice\n */\n async bulkShareMessages(request: BulkShareOrUpdateMetadataParams): Promise<EntityBulkShareResult<Message>[]> {\n const _url = this.host + '/message/bulkSharedMetadataUpdate' + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, request, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((x) => new EntityBulkShareResult<Message>(x, Message)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of messages along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.\n * @summary List messages for the current user (HcParty) or the given hcparty in the filter\n * @param body\n * @param startDocumentId A Message document ID\n * @param limit Number of rows\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n filterMessagesBy(body: FilterChainMessage, startDocumentId?: string, limit?: number, collectTiming?: false): Promise<PaginatedListMessage>\n filterMessagesBy(\n body: FilterChainMessage,\n startDocumentId?: string,\n limit?: number,\n collectTiming?: true\n ): Promise<PaginatedListMessage & TimingInfo>\n async filterMessagesBy(\n body: FilterChainMessage,\n startDocumentId?: string,\n limit?: number,\n collectTiming: boolean = false\n ): Promise<PaginatedListMessage> {\n const _url =\n this.host +\n `/message/filter` +\n '?ts=' +\n new Date().getTime() +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n _url,\n headers,\n body,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService(),\n undefined,\n false,\n collectTiming ? ['x-filter-timing-*'] : []\n )\n .then((doc) => Object.assign(new PaginatedListMessage(doc.body as JSON), collectTiming ? { responseHeaders: doc.responseHeaders } : {}))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of messages matching the provided filter for the current user (HcParty)\n * @param body\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n matchMessagesBy(body: AbstractFilterMessage, collectTiming?: false): Promise<Array<string>>\n matchMessagesBy(body: AbstractFilterMessage, collectTiming?: true): Promise<Array<string> & TimingInfo>\n async matchMessagesBy(body: AbstractFilterMessage, collectTiming: boolean = false): Promise<Array<string>> {\n const _url = this.host + `/message/match` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n _url,\n headers,\n body,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService(),\n undefined,\n false,\n collectTiming ? ['x-filter-timing-*'] : []\n )\n .then((doc) =>\n Object.assign(\n (doc.body as Array<JSON>).map((it) => JSON.parse(JSON.stringify(it))),\n collectTiming ? { responseHeaders: doc.responseHeaders } : {}\n )\n )\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves the ids of all the messages that currently have conflicting revisions and therefore need to\n * be resolved.\n * @summary List the ids of the messages that have conflicts.\n * @return the ids of the messages with unresolved conflicts.\n */\n async getConflictingEntitiesIds(): Promise<Array<string>> {\n const _url = this.host + `/message/conflicts` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => doc.body as Array<string>)\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves all the conflicting revisions of the message with the given id (the current revision is not\n * included). The returned entities are still encrypted.\n * @summary Get the conflicting revisions of a message.\n * @param entityId the id of the message to retrieve the conflicts for.\n * @return the conflicting revisions of the message.\n */\n async getConflictsForEntity(entityId: string): Promise<Array<Message>> {\n const _url = this.host + `/message/conflicts/of?entityId=${encodeURIComponent(String(entityId))}` + '&ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Resolves a conflict by declaring which revision of the message should be kept as winner and which\n * conflicting revisions should be purged. The provided document must already be encrypted.\n * @summary Declare the winning revision of a conflicting message.\n * @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.\n * @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.\n */\n async declareConflictWinner(body: ConflictResolutionRequest<Message>): Promise<ConflictResolutionResult<Message>> {\n const _url = this.host + `/message/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new ConflictResolutionResult<Message>(doc.body, (x) => new Message(x)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Like {@link getConflictingEntitiesIds} but targets the entities of the group with the given id.\n * @summary List the ids of the messages that have conflicts, in the given group.\n * @param groupId the id of the group to look into.\n * @return the ids of the messages with unresolved conflicts in the group.\n */\n async getConflictingEntitiesIdsInGroup(groupId: string): Promise<Array<string>> {\n const _url = this.host + `/message/inGroup/${encodeURIComponent(String(groupId))}/conflicts` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => doc.body as Array<string>)\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Like {@link getConflictsForEntity} but targets the entity of the group with the given id.\n * @summary Get the conflicting revisions of a message, in the given group.\n * @param groupId the id of the group the message belongs to.\n * @param entityId the id of the message to retrieve the conflicts for.\n * @return the conflicting revisions of the message.\n */\n async getConflictsForEntityInGroup(groupId: string, entityId: string): Promise<Array<Message>> {\n const _url =\n this.host +\n `/message/inGroup/${encodeURIComponent(String(groupId))}/conflicts/of?entityId=${encodeURIComponent(String(entityId))}` +\n '&ts=' +\n new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Message(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Like {@link declareConflictWinner} but targets the entity of the group with the given id.\n * @summary Declare the winning revision of a conflicting message, in the given group.\n * @param groupId the id of the group the message belongs to.\n * @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.\n * @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.\n */\n async declareConflictWinnerInGroup(groupId: string, body: ConflictResolutionRequest<Message>): Promise<ConflictResolutionResult<Message>> {\n const _url = this.host + `/message/inGroup/${encodeURIComponent(String(groupId))}/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new ConflictResolutionResult<Message>(doc.body, (x) => new Message(x)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Automatically resolves the conflicting revisions of the messages with the given ids, according to the provided\n * {@link ConflictResolutionStrategy}.\n * @summary Automatically solve the conflicts of the messages with the given ids.\n * @param entityIds the ids of the messages to solve the conflicts for.\n * @param strategy the {@link ConflictResolutionStrategy} to use to resolve the conflicts. Defaults to `FullMergeability`.\n * @return the {@link MergeResult} of the conflict resolution for each requested entity.\n */\n async autoSolveConflicts(\n entityIds: Array<string>,\n strategy: ConflictResolutionStrategy = ConflictResolutionStrategy.FullMergeability\n ): Promise<Array<MergeResult>> {\n const _url = this.host + `/message/conflicts/solve?strategy=${encodeURIComponent(String(strategy))}` + '&ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, entityIds, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new MergeResult(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Like {@link autoSolveConflicts} but targets the entities of the group with the given id.\n * @summary Automatically solve the conflicts of the messages with the given ids, in the given group.\n * @param groupId the id of the group to look into.\n * @param entityIds the ids of the messages to solve the conflicts for.\n * @param strategy the {@link ConflictResolutionStrategy} to use to resolve the conflicts. Defaults to `FullMergeability`.\n * @return the {@link MergeResult} of the conflict resolution for each requested entity.\n */\n async autoSolveConflictsInGroup(\n groupId: string,\n entityIds: Array<string>,\n strategy: ConflictResolutionStrategy = ConflictResolutionStrategy.FullMergeability\n ): Promise<Array<MergeResult>> {\n const _url =\n this.host +\n `/message/inGroup/${encodeURIComponent(String(groupId))}/conflicts/solve?strategy=${encodeURIComponent(String(strategy))}` +\n '&ts=' +\n new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, entityIds, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new MergeResult(it)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
|
|
@@ -26,6 +26,8 @@ import { BulkShareOrUpdateMetadataParams } from '../model/requests/BulkShareOrUp
|
|
|
26
26
|
import { TimingInfo } from '../model/TimingInfo';
|
|
27
27
|
import { ConflictResolutionRequest } from '../model/ConflictResolutionRequest';
|
|
28
28
|
import { ConflictResolutionResult } from '../model/ConflictResolutionResult';
|
|
29
|
+
import { ConflictResolutionStrategy } from '../model/ConflictResolutionStrategy';
|
|
30
|
+
import { MergeResult } from '../model/MergeResult';
|
|
29
31
|
export declare class IccPatientApi {
|
|
30
32
|
host: string;
|
|
31
33
|
_headers: Array<XHR.Header>;
|
|
@@ -366,4 +368,22 @@ export declare class IccPatientApi {
|
|
|
366
368
|
* @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.
|
|
367
369
|
*/
|
|
368
370
|
declareConflictWinnerInGroup(groupId: string, body: ConflictResolutionRequest<Patient>): Promise<ConflictResolutionResult<Patient>>;
|
|
371
|
+
/**
|
|
372
|
+
* Automatically resolves the conflicting revisions of the patients with the given ids, according to the provided
|
|
373
|
+
* {@link ConflictResolutionStrategy}.
|
|
374
|
+
* @summary Automatically solve the conflicts of the patients with the given ids.
|
|
375
|
+
* @param entityIds the ids of the patients to solve the conflicts for.
|
|
376
|
+
* @param strategy the {@link ConflictResolutionStrategy} to use to resolve the conflicts. Defaults to `FullMergeability`.
|
|
377
|
+
* @return the {@link MergeResult} of the conflict resolution for each requested entity.
|
|
378
|
+
*/
|
|
379
|
+
autoSolveConflicts(entityIds: Array<string>, strategy?: ConflictResolutionStrategy): Promise<Array<MergeResult>>;
|
|
380
|
+
/**
|
|
381
|
+
* Like {@link autoSolveConflicts} but targets the entities of the group with the given id.
|
|
382
|
+
* @summary Automatically solve the conflicts of the patients with the given ids, in the given group.
|
|
383
|
+
* @param groupId the id of the group to look into.
|
|
384
|
+
* @param entityIds the ids of the patients to solve the conflicts for.
|
|
385
|
+
* @param strategy the {@link ConflictResolutionStrategy} to use to resolve the conflicts. Defaults to `FullMergeability`.
|
|
386
|
+
* @return the {@link MergeResult} of the conflict resolution for each requested entity.
|
|
387
|
+
*/
|
|
388
|
+
autoSolveConflictsInGroup(groupId: string, entityIds: Array<string>, strategy?: ConflictResolutionStrategy): Promise<Array<MergeResult>>;
|
|
369
389
|
}
|
|
@@ -33,6 +33,8 @@ const AuthenticationProvider_1 = require("../../icc-x-api/auth/AuthenticationPro
|
|
|
33
33
|
const IccRestApiPath_1 = require("./IccRestApiPath");
|
|
34
34
|
const EntityBulkShareResult_1 = require("../model/requests/EntityBulkShareResult");
|
|
35
35
|
const ConflictResolutionResult_1 = require("../model/ConflictResolutionResult");
|
|
36
|
+
const ConflictResolutionStrategy_1 = require("../model/ConflictResolutionStrategy");
|
|
37
|
+
const MergeResult_1 = require("../model/MergeResult");
|
|
36
38
|
class IccPatientApi {
|
|
37
39
|
get headers() {
|
|
38
40
|
return Promise.resolve(this._headers);
|
|
@@ -849,6 +851,45 @@ class IccPatientApi {
|
|
|
849
851
|
.catch((err) => this.handleError(err));
|
|
850
852
|
});
|
|
851
853
|
}
|
|
854
|
+
/**
|
|
855
|
+
* Automatically resolves the conflicting revisions of the patients with the given ids, according to the provided
|
|
856
|
+
* {@link ConflictResolutionStrategy}.
|
|
857
|
+
* @summary Automatically solve the conflicts of the patients with the given ids.
|
|
858
|
+
* @param entityIds the ids of the patients to solve the conflicts for.
|
|
859
|
+
* @param strategy the {@link ConflictResolutionStrategy} to use to resolve the conflicts. Defaults to `FullMergeability`.
|
|
860
|
+
* @return the {@link MergeResult} of the conflict resolution for each requested entity.
|
|
861
|
+
*/
|
|
862
|
+
autoSolveConflicts(entityIds_1) {
|
|
863
|
+
return __awaiter(this, arguments, void 0, function* (entityIds, strategy = ConflictResolutionStrategy_1.ConflictResolutionStrategy.FullMergeability) {
|
|
864
|
+
const _url = this.host + `/patient/conflicts/solve?strategy=${encodeURIComponent(String(strategy))}` + '&ts=' + new Date().getTime();
|
|
865
|
+
let headers = yield this.headers;
|
|
866
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
867
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, entityIds, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
868
|
+
.then((doc) => doc.body.map((it) => new MergeResult_1.MergeResult(it)))
|
|
869
|
+
.catch((err) => this.handleError(err));
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Like {@link autoSolveConflicts} but targets the entities of the group with the given id.
|
|
874
|
+
* @summary Automatically solve the conflicts of the patients with the given ids, in the given group.
|
|
875
|
+
* @param groupId the id of the group to look into.
|
|
876
|
+
* @param entityIds the ids of the patients to solve the conflicts for.
|
|
877
|
+
* @param strategy the {@link ConflictResolutionStrategy} to use to resolve the conflicts. Defaults to `FullMergeability`.
|
|
878
|
+
* @return the {@link MergeResult} of the conflict resolution for each requested entity.
|
|
879
|
+
*/
|
|
880
|
+
autoSolveConflictsInGroup(groupId_1, entityIds_1) {
|
|
881
|
+
return __awaiter(this, arguments, void 0, function* (groupId, entityIds, strategy = ConflictResolutionStrategy_1.ConflictResolutionStrategy.FullMergeability) {
|
|
882
|
+
const _url = this.host +
|
|
883
|
+
`/patient/inGroup/${encodeURIComponent(String(groupId))}/conflicts/solve?strategy=${encodeURIComponent(String(strategy))}` +
|
|
884
|
+
'&ts=' +
|
|
885
|
+
new Date().getTime();
|
|
886
|
+
let headers = yield this.headers;
|
|
887
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
888
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, entityIds, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
889
|
+
.then((doc) => doc.body.map((it) => new MergeResult_1.MergeResult(it)))
|
|
890
|
+
.catch((err) => this.handleError(err));
|
|
891
|
+
});
|
|
892
|
+
}
|
|
852
893
|
}
|
|
853
894
|
exports.IccPatientApi = IccPatientApi;
|
|
854
895
|
//# sourceMappingURL=IccPatientApi.js.map
|