@icure/api 8.8.3 → 8.8.5

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.
Files changed (40) hide show
  1. package/icc-api/api/IccAccesslogApi.js +3 -3
  2. package/icc-api/api/IccAccesslogApi.js.map +1 -1
  3. package/icc-api/api/IccAgendaApi.js +1 -1
  4. package/icc-api/api/IccAgendaApi.js.map +1 -1
  5. package/icc-api/api/IccCalendarItemApi.js +1 -1
  6. package/icc-api/api/IccCalendarItemApi.js.map +1 -1
  7. package/icc-api/api/IccCalendarItemTypeApi.js +1 -1
  8. package/icc-api/api/IccCalendarItemTypeApi.js.map +1 -1
  9. package/icc-api/api/IccCodeApi.js +1 -1
  10. package/icc-api/api/IccCodeApi.js.map +1 -1
  11. package/icc-api/api/IccContactApi.js +3 -3
  12. package/icc-api/api/IccContactApi.js.map +1 -1
  13. package/icc-api/api/IccDeviceApi.js +3 -3
  14. package/icc-api/api/IccDeviceApi.js.map +1 -1
  15. package/icc-api/api/IccDocumentApi.js +3 -3
  16. package/icc-api/api/IccDocumentApi.js.map +1 -1
  17. package/icc-api/api/IccFormApi.js +3 -3
  18. package/icc-api/api/IccFormApi.js.map +1 -1
  19. package/icc-api/api/IccHcpartyApi.js +3 -3
  20. package/icc-api/api/IccHcpartyApi.js.map +1 -1
  21. package/icc-api/api/IccHelementApi.js +3 -3
  22. package/icc-api/api/IccHelementApi.js.map +1 -1
  23. package/icc-api/api/IccInsuranceApi.js +3 -3
  24. package/icc-api/api/IccInsuranceApi.js.map +1 -1
  25. package/icc-api/api/IccInvoiceApi.js +3 -3
  26. package/icc-api/api/IccInvoiceApi.js.map +1 -1
  27. package/icc-api/api/IccMessageApi.js +3 -3
  28. package/icc-api/api/IccMessageApi.js.map +1 -1
  29. package/icc-api/api/IccPatientApi.js +3 -3
  30. package/icc-api/api/IccPatientApi.js.map +1 -1
  31. package/icc-api/api/IccPlaceApi.js +1 -1
  32. package/icc-api/api/IccPlaceApi.js.map +1 -1
  33. package/icc-api/api/IccReceiptApi.js +1 -1
  34. package/icc-api/api/IccReceiptApi.js.map +1 -1
  35. package/icc-api/api/IccTopicApi.js +3 -3
  36. package/icc-api/api/IccTopicApi.js.map +1 -1
  37. package/icc-api/api/IccUserApi.js +1 -1
  38. package/icc-api/api/IccUserApi.js.map +1 -1
  39. package/icc-x-api/wasm/lzma/lzma.js +507 -2
  40. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"IccHcpartyApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccHcpartyApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAE3B,wFAAoF;AACpF,0DAAsD;AAEtD,8DAA0D;AAE1D,wFAAoF;AACpF,kDAA8C;AAC9C,wFAA8G;AAC9G,qDAAiD;AAGjD,gFAA4E;AAE5E,MAAa,aAAa;IAMxB,YACE,IAAY,EACZ,OAAY,EACZ,sBAA+C,EAC/C,SAAyE;QAEzE,IAAI,CAAC,IAAI,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAA;QAChC,IAAI,CAAC,OAAO,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;QAC7E,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,IAAI,iDAAwB,EAAE,CAAA;QAChH,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IAED,UAAU,CAAC,CAAoB;QAC7B,IAAI,CAAC,OAAO,GAAG,CAAC,CAAA;IAClB,CAAC;IAED,WAAW,CAAC,CAAe;QACzB,MAAM,CAAC,CAAA;IACT,CAAC;IAED;;;;OAIG;IACG,qBAAqB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AS,EAAE,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC;iBACzH,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,mDAAwB,CAAkB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,iCAAe,CAAC,CAAC,CAAC,CAAC,CAAC;iBACrG,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AA1nBD,sCA0nBC","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 { AbstractFilterHealthcareParty } from '../model/AbstractFilterHealthcareParty'\nimport { DataOwnerRegistrationSuccess } from '../model/DataOwnerRegistrationSuccess'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { FilterChainHealthcareParty } from '../model/FilterChainHealthcareParty'\nimport { HealthcareParty } from '../model/HealthcareParty'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { PaginatedListHealthcareParty } from '../model/PaginatedListHealthcareParty'\nimport { PublicKey } from '../model/PublicKey'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { TimingInfo } from '../model/TimingInfo'\nimport { ConflictResolutionRequest } from '../model/ConflictResolutionRequest'\nimport { ConflictResolutionResult } from '../model/ConflictResolutionResult'\n\nexport class IccHcpartyApi {\n host: string\n headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\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 * One of Name or Last name+First name, Nihii, and Public key are required.\n * @summary Create a healthcare party\n * @param body\n */\n async createHealthcareParty(body?: HealthcareParty): Promise<HealthcareParty> {\n const _url = this.host + `/hcparty` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * One of Name or Last name+First name, Nihii, and Public key are required.\n * @summary Create a healthcare party\n * @param body\n * @param groupId\n */\n async createHealthcarePartyInGroup(groupId: string, body?: HealthcareParty): Promise<HealthcareParty> {\n const _url = this.host + `/hcparty/inGroup/${encodeURIComponent(String(groupId))}` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a healthcare parties in batch.\n * @param healthcarePartyIds a ListOfIds containing the ids of the healthcare parties to delete.\n * @return a Promise that will resolve in an Array of DocIdentifiers of the successfully deleted healthcare parties.\n */\n async deleteHealthcareParties(healthcarePartyIds: ListOfIds): Promise<Array<DocIdentifier>> {\n return XHR.sendCommand(\n 'POST',\n this.host + `/hcparty/delete/batch` + '?ts=' + new Date().getTime(),\n this.headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json')),\n healthcarePartyIds,\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 healthcare party by id.\n *\n * @param healthcarePartyId the id of the healthcare party to delete.\n * @return a Promise that will resolve in the DocIdentifier of the healthcare party.\n */\n async deleteHealthcareParty(healthcarePartyId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/hcparty/${encodeURIComponent(healthcarePartyId)}` + '?ts=' + new Date().getTime(),\n 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 * @summary Deletes a healthcare parties in batch in a specific group\n * @param groupId the id of the group where to delete the healthcare parties.\n * @param healthcarePartyIds a ListOfIds containing the ids of the healthcare parties to delete.\n * @return a Promise that will resolve in an Array of DocIdentifiers of the successfully deleted healthcare parties.\n */\n async deleteHealthcarePartiesInGroup(groupId: string, healthcarePartyIds: ListOfIds): Promise<Array<DocIdentifier>> {\n return XHR.sendCommand(\n 'POST',\n this.host + `/hcparty/delete/batch/inGroup/${encodeURIComponent(groupId)}` + '?ts=' + new Date().getTime(),\n this.headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json')),\n healthcarePartyIds,\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 healthcare party by id in a specific group.\n *\n * @param groupId the id of the group where to delete the healthcare party.\n * @param healthcarePartyId the id of the healthcare party to delete.\n * @return a Promise that will resolve in the DocIdentifier of the healthcare party.\n */\n async deleteHealthcarePartyInGroup(groupId: string, healthcarePartyId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/hcparty/${encodeURIComponent(healthcarePartyId)}/inGroup/${encodeURIComponent(groupId)}` + '?ts=' + new Date().getTime(),\n 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 * Returns a list of healthcare party along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.\n * @summary Filter healthcare parties for the current user (HcParty)\n * @param body\n * @param startDocumentId A HealthcareParty document ID\n * @param limit Number of rows\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n filterHealthPartiesBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthcareParty,\n collectTiming?: false\n ): Promise<PaginatedListHealthcareParty>\n filterHealthPartiesBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthcareParty,\n collectTiming?: true\n ): Promise<PaginatedListHealthcareParty & TimingInfo>\n async filterHealthPartiesBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthcareParty,\n collectTiming: boolean = false\n ): Promise<PaginatedListHealthcareParty> {\n const _url =\n this.host +\n `/hcparty/filter` +\n '?ts=' +\n new Date().getTime() +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = 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 PaginatedListHealthcareParty(doc.body as JSON), collectTiming ? { responseHeaders: doc.responseHeaders } : {}))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by name with(out) pagination\n * @param name The Last name search value\n * @param startKey A healthcare party Last name\n * @param startDocumentId A healthcare party document ID\n * @param limit Number of rows\n * @param desc Descending\n */\n findByName(name?: string, startKey?: string, startDocumentId?: string, limit?: number, desc?: boolean): Promise<PaginatedListHealthcareParty> {\n let _body = null\n\n const _url =\n this.host +\n `/hcparty/byName` +\n '?ts=' +\n new Date().getTime() +\n (name ? '&name=' + encodeURIComponent(String(name)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by name with(out) pagination\n * @param type The type of the HCP (persphysician)\n * @param spec The speciality of the HCP\n * @param firstCode The first postCode for the HCP\n * @param lastCode The last postCode for the HCP\n * @param startKey the startKey provided by the previous page or undefined for the first page.\n * @param startDocumentId the startDocumentId provided by the previous page or undefined for the first page.\n * @param limit Number of rows\n */\n async findBySpecialityAndPostCode(\n type: string,\n spec: string,\n firstCode: string,\n lastCode: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListHealthcareParty> {\n const _url =\n this.host +\n `/hcparty/bySpecialityAndPostCode/${encodeURIComponent(type)}/${encodeURIComponent(spec)}/${encodeURIComponent(\n firstCode\n )}/to/${encodeURIComponent(lastCode)}` +\n '?ts=' +\n new Date().getTime() +\n +(!!startKey ? `&startKey=${encodeURIComponent(startKey)}` : '') +\n (!!startDocumentId ? `&startDocumentId=${encodeURIComponent(startDocumentId)}` : '') +\n (!!limit ? `&limit=${limit}` : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by nihii or ssin with(out) pagination\n * @param searchValue\n * @param startKey A healthcare party Last name\n * @param startDocumentId A healthcare party document ID\n * @param limit Number of rows\n * @param desc Descending\n */\n async findBySsinOrNihii(\n searchValue: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n desc?: boolean\n ): Promise<PaginatedListHealthcareParty> {\n let _body = null\n\n const _url =\n this.host +\n `/hcparty/byNihiiOrSsin/${encodeURIComponent(String(searchValue))}` +\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 (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * (key, value) of the map is as follows: (ID of the owner of the encrypted AES key, encrypted AES keys)\n * @summary Get the HcParty encrypted AES keys indexed by owner.\n * @param healthcarePartyId\n */\n getAesExchangeKeysForDelegate(\n healthcarePartyId: string\n ): Promise<{ [delegatorId: string]: { [delegatorPubKeyFingerprint: string]: { [delegatePubKeyFingerprint: string]: string } } }> {\n let _body = null\n\n const _url = this.host + `/hcparty/${encodeURIComponent(String(healthcarePartyId))}/aesExchangeKeys` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => JSON.parse(JSON.stringify(doc.body)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the current healthcare Party\n * @summary Get the current healthcare party if logged in.\n */\n getCurrentHealthcareParty(): Promise<HealthcareParty> {\n let _body = null\n\n const _url = this.host + `/hcparty/current` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the healthcare Party\n * @summary Get healthcareParties by their IDs\n */\n getHealthcareParties(body?: ListOfIds): Promise<Array<HealthcareParty>> {\n let _body = body\n\n const _url = this.host + '/hcparty/byIds?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Return a list of children hcp.\n * @summary Find children of an healthcare parties\n * @param parentId\n */\n getHealthcarePartiesByParentId(parentId: string): Promise<Array<HealthcareParty>> {\n let _body = null\n\n const _url = this.host + `/hcparty/${encodeURIComponent(String(parentId))}/children` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the healthcare Party\n * @summary Get healthcareParties by their IDs\n * @param body\n * @param groupId\n */\n getHealthcarePartiesInGroup(groupId: string, body?: ListOfIds): Promise<Array<HealthcareParty>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/hcparty/inGroup/${encodeURIComponent(String(groupId))}/byIds` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the healthcare Party\n * @summary Get a healthcareParty by his ID\n * @param healthcarePartyId\n */\n getHealthcareParty(healthcarePartyId: string): Promise<HealthcareParty> {\n let _body = null\n\n const _url = this.host + `/hcparty/${encodeURIComponent(String(healthcarePartyId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the public key of a healthcare party in Hex\n * @summary Get public key of a healthcare party\n * @param healthcarePartyId\n */\n getPublicKey(healthcarePartyId: string): Promise<PublicKey> {\n let _body = null\n\n const _url = this.host + `/hcparty/${encodeURIComponent(String(healthcarePartyId))}/publicKey` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PublicKey(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by name with(out) pagination\n * @param name The Last name search value\n */\n listByName(name: string): Promise<Array<HealthcareParty>> {\n let _body = null\n\n const _url = this.host + `/hcparty/byNameStrict/${encodeURIComponent(String(name))}` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary List healthcare parties with(out) pagination\n * @param startKey A healthcare party Last name\n * @param startDocumentId A healthcare party document ID\n * @param limit Number of rows\n * @param desc Descending\n */\n listHealthcareParties(startKey?: string, startDocumentId?: string, limit?: number, desc?: boolean): Promise<PaginatedListHealthcareParty> {\n let _body = null\n\n const _url =\n this.host +\n `/hcparty` +\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 (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of healthcare party 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 matchHealthcarePartiesBy(body?: AbstractFilterHealthcareParty, collectTiming?: false): Promise<Array<string>>\n matchHealthcarePartiesBy(body?: AbstractFilterHealthcareParty, collectTiming?: true): Promise<Array<string> & TimingInfo>\n matchHealthcarePartiesBy(body?: AbstractFilterHealthcareParty, collectTiming: boolean = false): Promise<Array<string>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/hcparty/match` + '?ts=' + new Date().getTime()\n let headers = 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 * No particular return value. It's just a message.\n * @summary Modify a Healthcare Party.\n * @param body\n */\n modifyHealthcareParty(body?: HealthcareParty): Promise<HealthcareParty> {\n let _body = null\n _body = body\n\n const _url = this.host + `/hcparty` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * No particular return value. It's just a message.\n * @summary Modify a Healthcare Party.\n * @param body\n * @param groupId\n */\n modifyHealthcarePartyInGroup(groupId: string, body?: HealthcareParty): Promise<HealthcareParty> {\n let _body = null\n _body = body\n\n const _url = this.host + `/hcparty/inGroup/${encodeURIComponent(String(groupId))}` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Register a new hcp into the system\n * @summary Register a hcp\n * @param body\n * @param groupId\n * @param parentHcPartyId\n * @param token\n * @param useShortToken\n */\n registerHealthcareParty(\n groupId: string,\n parentHcPartyId?: string,\n token?: string,\n useShortToken?: boolean,\n body?: HealthcareParty\n ): Promise<DataOwnerRegistrationSuccess> {\n let _body = null\n _body = body\n\n const _url =\n this.host +\n `/hcparty/register/inGroup/${encodeURIComponent(String(groupId))}` +\n '?ts=' +\n new Date().getTime() +\n (parentHcPartyId ? '&parentHcPartyId=' + encodeURIComponent(String(parentHcPartyId)) : '') +\n (token ? '&token=' + encodeURIComponent(String(token)) : '') +\n (useShortToken ? '&useShortToken=' + encodeURIComponent(String(useShortToken)) : '')\n let headers = 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 DataOwnerRegistrationSuccess(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves the ids of all the healthcare parties that currently have conflicting revisions and therefore need to\n * be resolved.\n * @summary List the ids of the healthcare parties that have conflicts.\n * @return the ids of the healthcare parties with unresolved conflicts.\n */\n async getConflictingEntitiesIds(): Promise<Array<string>> {\n const _url = this.host + `/hcparty/conflicts` + '?ts=' + new Date().getTime()\n let headers = 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 healthcare party 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 healthcare party.\n * @param entityId the id of the healthcare party to retrieve the conflicts for.\n * @return the conflicting revisions of the healthcare party.\n */\n async getConflictsForEntity(entityId: string): Promise<Array<HealthcareParty>> {\n const _url = this.host + `/hcparty/conflicts/${encodeURIComponent(String(entityId))}` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Resolves a conflict by declaring which revision of the healthcare party 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 healthcare party.\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<HealthcareParty>): Promise<ConflictResolutionResult<HealthcareParty>> {\n const _url = this.host + `/hcparty/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = 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<HealthcareParty>(doc.body, (x) => new HealthcareParty(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 healthcare parties that have conflicts, in the given group.\n * @param groupId the id of the group to look into.\n * @return the ids of the healthcare parties with unresolved conflicts in the group.\n */\n async getConflictingEntitiesIdsInGroup(groupId: string): Promise<Array<string>> {\n const _url = this.host + `/hcparty/inGroup/${encodeURIComponent(String(groupId))}/conflicts` + '?ts=' + new Date().getTime()\n let headers = 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 healthcare party, in the given group.\n * @param groupId the id of the group the healthcare party belongs to.\n * @param entityId the id of the healthcare party to retrieve the conflicts for.\n * @return the conflicting revisions of the healthcare party.\n */\n async getConflictsForEntityInGroup(groupId: string, entityId: string): Promise<Array<HealthcareParty>> {\n const _url =\n this.host +\n `/hcparty/inGroup/${encodeURIComponent(String(groupId))}/conflicts/${encodeURIComponent(String(entityId))}` +\n '?ts=' +\n new Date().getTime()\n let headers = 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 HealthcareParty(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 healthcare party, in the given group.\n * @param groupId the id of the group the healthcare party 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(\n groupId: string,\n body: ConflictResolutionRequest<HealthcareParty>\n ): Promise<ConflictResolutionResult<HealthcareParty>> {\n const _url = this.host + `/hcparty/inGroup/${encodeURIComponent(String(groupId))}/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = 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<HealthcareParty>(doc.body, (x) => new HealthcareParty(x)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
1
+ {"version":3,"file":"IccHcpartyApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccHcpartyApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAE3B,wFAAoF;AACpF,0DAAsD;AAEtD,8DAA0D;AAE1D,wFAAoF;AACpF,kDAA8C;AAC9C,wFAA8G;AAC9G,qDAAiD;AAGjD,gFAA4E;AAE5E,MAAa,aAAa;IAMxB,YACE,IAAY,EACZ,OAAY,EACZ,sBAA+C,EAC/C,SAAyE;QAEzE,IAAI,CAAC,IAAI,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAA;QAChC,IAAI,CAAC,OAAO,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;QAC7E,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,IAAI,iDAAwB,EAAE,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AAC,MAAM,KAAK,cAAc,CAAC,CAAC,MAAM,CAAC,IAAI,SAAG,CAAC,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC,CAAA;YACvH,OAAO,SAAG,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC;iBACzH,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,mDAAwB,CAAkB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,iCAAe,CAAC,CAAC,CAAC,CAAC,CAAC;iBACrG,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AA1nBD,sCA0nBC","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 { AbstractFilterHealthcareParty } from '../model/AbstractFilterHealthcareParty'\nimport { DataOwnerRegistrationSuccess } from '../model/DataOwnerRegistrationSuccess'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { FilterChainHealthcareParty } from '../model/FilterChainHealthcareParty'\nimport { HealthcareParty } from '../model/HealthcareParty'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { PaginatedListHealthcareParty } from '../model/PaginatedListHealthcareParty'\nimport { PublicKey } from '../model/PublicKey'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { TimingInfo } from '../model/TimingInfo'\nimport { ConflictResolutionRequest } from '../model/ConflictResolutionRequest'\nimport { ConflictResolutionResult } from '../model/ConflictResolutionResult'\n\nexport class IccHcpartyApi {\n host: string\n headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\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 * One of Name or Last name+First name, Nihii, and Public key are required.\n * @summary Create a healthcare party\n * @param body\n */\n async createHealthcareParty(body?: HealthcareParty): Promise<HealthcareParty> {\n const _url = this.host + `/hcparty` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * One of Name or Last name+First name, Nihii, and Public key are required.\n * @summary Create a healthcare party\n * @param body\n * @param groupId\n */\n async createHealthcarePartyInGroup(groupId: string, body?: HealthcareParty): Promise<HealthcareParty> {\n const _url = this.host + `/hcparty/inGroup/${encodeURIComponent(String(groupId))}` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a healthcare parties in batch.\n * @param healthcarePartyIds a ListOfIds containing the ids of the healthcare parties to delete.\n * @return a Promise that will resolve in an Array of DocIdentifiers of the successfully deleted healthcare parties.\n */\n async deleteHealthcareParties(healthcarePartyIds: ListOfIds): Promise<Array<DocIdentifier>> {\n return XHR.sendCommand(\n 'POST',\n this.host + `/hcparty/delete/batch` + '?ts=' + new Date().getTime(),\n this.headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json')),\n healthcarePartyIds,\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 healthcare party by id.\n *\n * @param healthcarePartyId the id of the healthcare party to delete.\n * @return a Promise that will resolve in the DocIdentifier of the healthcare party.\n */\n async deleteHealthcareParty(healthcarePartyId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/hcparty/${encodeURIComponent(healthcarePartyId)}` + '?ts=' + new Date().getTime(),\n 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 * @summary Deletes a healthcare parties in batch in a specific group\n * @param groupId the id of the group where to delete the healthcare parties.\n * @param healthcarePartyIds a ListOfIds containing the ids of the healthcare parties to delete.\n * @return a Promise that will resolve in an Array of DocIdentifiers of the successfully deleted healthcare parties.\n */\n async deleteHealthcarePartiesInGroup(groupId: string, healthcarePartyIds: ListOfIds): Promise<Array<DocIdentifier>> {\n return XHR.sendCommand(\n 'POST',\n this.host + `/hcparty/delete/batch/inGroup/${encodeURIComponent(groupId)}` + '?ts=' + new Date().getTime(),\n this.headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json')),\n healthcarePartyIds,\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 healthcare party by id in a specific group.\n *\n * @param groupId the id of the group where to delete the healthcare party.\n * @param healthcarePartyId the id of the healthcare party to delete.\n * @return a Promise that will resolve in the DocIdentifier of the healthcare party.\n */\n async deleteHealthcarePartyInGroup(groupId: string, healthcarePartyId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/hcparty/${encodeURIComponent(healthcarePartyId)}/inGroup/${encodeURIComponent(groupId)}` + '?ts=' + new Date().getTime(),\n 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 * Returns a list of healthcare party along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.\n * @summary Filter healthcare parties for the current user (HcParty)\n * @param body\n * @param startDocumentId A HealthcareParty document ID\n * @param limit Number of rows\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n filterHealthPartiesBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthcareParty,\n collectTiming?: false\n ): Promise<PaginatedListHealthcareParty>\n filterHealthPartiesBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthcareParty,\n collectTiming?: true\n ): Promise<PaginatedListHealthcareParty & TimingInfo>\n async filterHealthPartiesBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthcareParty,\n collectTiming: boolean = false\n ): Promise<PaginatedListHealthcareParty> {\n const _url =\n this.host +\n `/hcparty/filter` +\n '?ts=' +\n new Date().getTime() +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = 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 PaginatedListHealthcareParty(doc.body as JSON), collectTiming ? { responseHeaders: doc.responseHeaders } : {}))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by name with(out) pagination\n * @param name The Last name search value\n * @param startKey A healthcare party Last name\n * @param startDocumentId A healthcare party document ID\n * @param limit Number of rows\n * @param desc Descending\n */\n findByName(name?: string, startKey?: string, startDocumentId?: string, limit?: number, desc?: boolean): Promise<PaginatedListHealthcareParty> {\n let _body = null\n\n const _url =\n this.host +\n `/hcparty/byName` +\n '?ts=' +\n new Date().getTime() +\n (name ? '&name=' + encodeURIComponent(String(name)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by name with(out) pagination\n * @param type The type of the HCP (persphysician)\n * @param spec The speciality of the HCP\n * @param firstCode The first postCode for the HCP\n * @param lastCode The last postCode for the HCP\n * @param startKey the startKey provided by the previous page or undefined for the first page.\n * @param startDocumentId the startDocumentId provided by the previous page or undefined for the first page.\n * @param limit Number of rows\n */\n async findBySpecialityAndPostCode(\n type: string,\n spec: string,\n firstCode: string,\n lastCode: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListHealthcareParty> {\n const _url =\n this.host +\n `/hcparty/bySpecialityAndPostCode/${encodeURIComponent(type)}/${encodeURIComponent(spec)}/${encodeURIComponent(\n firstCode\n )}/to/${encodeURIComponent(lastCode)}` +\n '?ts=' +\n new Date().getTime() +\n +(!!startKey ? `&startKey=${encodeURIComponent(startKey)}` : '') +\n (!!startDocumentId ? `&startDocumentId=${encodeURIComponent(startDocumentId)}` : '') +\n (!!limit ? `&limit=${limit}` : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by nihii or ssin with(out) pagination\n * @param searchValue\n * @param startKey A healthcare party Last name\n * @param startDocumentId A healthcare party document ID\n * @param limit Number of rows\n * @param desc Descending\n */\n async findBySsinOrNihii(\n searchValue: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n desc?: boolean\n ): Promise<PaginatedListHealthcareParty> {\n let _body = null\n\n const _url =\n this.host +\n `/hcparty/byNihiiOrSsin/${encodeURIComponent(String(searchValue))}` +\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 (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * (key, value) of the map is as follows: (ID of the owner of the encrypted AES key, encrypted AES keys)\n * @summary Get the HcParty encrypted AES keys indexed by owner.\n * @param healthcarePartyId\n */\n getAesExchangeKeysForDelegate(\n healthcarePartyId: string\n ): Promise<{ [delegatorId: string]: { [delegatorPubKeyFingerprint: string]: { [delegatePubKeyFingerprint: string]: string } } }> {\n let _body = null\n\n const _url = this.host + `/hcparty/${encodeURIComponent(String(healthcarePartyId))}/aesExchangeKeys` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => JSON.parse(JSON.stringify(doc.body)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the current healthcare Party\n * @summary Get the current healthcare party if logged in.\n */\n getCurrentHealthcareParty(): Promise<HealthcareParty> {\n let _body = null\n\n const _url = this.host + `/hcparty/current` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the healthcare Party\n * @summary Get healthcareParties by their IDs\n */\n getHealthcareParties(body?: ListOfIds): Promise<Array<HealthcareParty>> {\n let _body = body\n\n const _url = this.host + '/hcparty/byIds?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Return a list of children hcp.\n * @summary Find children of an healthcare parties\n * @param parentId\n */\n getHealthcarePartiesByParentId(parentId: string): Promise<Array<HealthcareParty>> {\n let _body = null\n\n const _url = this.host + `/hcparty/${encodeURIComponent(String(parentId))}/children` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the healthcare Party\n * @summary Get healthcareParties by their IDs\n * @param body\n * @param groupId\n */\n getHealthcarePartiesInGroup(groupId: string, body?: ListOfIds): Promise<Array<HealthcareParty>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/hcparty/inGroup/${encodeURIComponent(String(groupId))}/byIds` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the healthcare Party\n * @summary Get a healthcareParty by his ID\n * @param healthcarePartyId\n */\n getHealthcareParty(healthcarePartyId: string): Promise<HealthcareParty> {\n let _body = null\n\n const _url = this.host + `/hcparty/${encodeURIComponent(String(healthcarePartyId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the public key of a healthcare party in Hex\n * @summary Get public key of a healthcare party\n * @param healthcarePartyId\n */\n getPublicKey(healthcarePartyId: string): Promise<PublicKey> {\n let _body = null\n\n const _url = this.host + `/hcparty/${encodeURIComponent(String(healthcarePartyId))}/publicKey` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PublicKey(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by name with(out) pagination\n * @param name The Last name search value\n */\n listByName(name: string): Promise<Array<HealthcareParty>> {\n let _body = null\n\n const _url = this.host + `/hcparty/byNameStrict/${encodeURIComponent(String(name))}` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary List healthcare parties with(out) pagination\n * @param startKey A healthcare party Last name\n * @param startDocumentId A healthcare party document ID\n * @param limit Number of rows\n * @param desc Descending\n */\n listHealthcareParties(startKey?: string, startDocumentId?: string, limit?: number, desc?: boolean): Promise<PaginatedListHealthcareParty> {\n let _body = null\n\n const _url =\n this.host +\n `/hcparty` +\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 (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of healthcare party 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 matchHealthcarePartiesBy(body?: AbstractFilterHealthcareParty, collectTiming?: false): Promise<Array<string>>\n matchHealthcarePartiesBy(body?: AbstractFilterHealthcareParty, collectTiming?: true): Promise<Array<string> & TimingInfo>\n matchHealthcarePartiesBy(body?: AbstractFilterHealthcareParty, collectTiming: boolean = false): Promise<Array<string>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/hcparty/match` + '?ts=' + new Date().getTime()\n let headers = 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 * No particular return value. It's just a message.\n * @summary Modify a Healthcare Party.\n * @param body\n */\n modifyHealthcareParty(body?: HealthcareParty): Promise<HealthcareParty> {\n let _body = null\n _body = body\n\n const _url = this.host + `/hcparty` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * No particular return value. It's just a message.\n * @summary Modify a Healthcare Party.\n * @param body\n * @param groupId\n */\n modifyHealthcarePartyInGroup(groupId: string, body?: HealthcareParty): Promise<HealthcareParty> {\n let _body = null\n _body = body\n\n const _url = this.host + `/hcparty/inGroup/${encodeURIComponent(String(groupId))}` + '?ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Register a new hcp into the system\n * @summary Register a hcp\n * @param body\n * @param groupId\n * @param parentHcPartyId\n * @param token\n * @param useShortToken\n */\n registerHealthcareParty(\n groupId: string,\n parentHcPartyId?: string,\n token?: string,\n useShortToken?: boolean,\n body?: HealthcareParty\n ): Promise<DataOwnerRegistrationSuccess> {\n let _body = null\n _body = body\n\n const _url =\n this.host +\n `/hcparty/register/inGroup/${encodeURIComponent(String(groupId))}` +\n '?ts=' +\n new Date().getTime() +\n (parentHcPartyId ? '&parentHcPartyId=' + encodeURIComponent(String(parentHcPartyId)) : '') +\n (token ? '&token=' + encodeURIComponent(String(token)) : '') +\n (useShortToken ? '&useShortToken=' + encodeURIComponent(String(useShortToken)) : '')\n let headers = 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 DataOwnerRegistrationSuccess(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves the ids of all the healthcare parties that currently have conflicting revisions and therefore need to\n * be resolved.\n * @summary List the ids of the healthcare parties that have conflicts.\n * @return the ids of the healthcare parties with unresolved conflicts.\n */\n async getConflictingEntitiesIds(): Promise<Array<string>> {\n const _url = this.host + `/hcparty/conflicts` + '?ts=' + new Date().getTime()\n let headers = 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 healthcare party 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 healthcare party.\n * @param entityId the id of the healthcare party to retrieve the conflicts for.\n * @return the conflicting revisions of the healthcare party.\n */\n async getConflictsForEntity(entityId: string): Promise<Array<HealthcareParty>> {\n const _url = this.host + `/hcparty/conflicts/of?entityId=${encodeURIComponent(String(entityId))}` + '&ts=' + new Date().getTime()\n let headers = 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 HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Resolves a conflict by declaring which revision of the healthcare party 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 healthcare party.\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<HealthcareParty>): Promise<ConflictResolutionResult<HealthcareParty>> {\n const _url = this.host + `/hcparty/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = 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<HealthcareParty>(doc.body, (x) => new HealthcareParty(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 healthcare parties that have conflicts, in the given group.\n * @param groupId the id of the group to look into.\n * @return the ids of the healthcare parties with unresolved conflicts in the group.\n */\n async getConflictingEntitiesIdsInGroup(groupId: string): Promise<Array<string>> {\n const _url = this.host + `/hcparty/inGroup/${encodeURIComponent(String(groupId))}/conflicts` + '?ts=' + new Date().getTime()\n let headers = 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 healthcare party, in the given group.\n * @param groupId the id of the group the healthcare party belongs to.\n * @param entityId the id of the healthcare party to retrieve the conflicts for.\n * @return the conflicting revisions of the healthcare party.\n */\n async getConflictsForEntityInGroup(groupId: string, entityId: string): Promise<Array<HealthcareParty>> {\n const _url =\n this.host +\n `/hcparty/inGroup/${encodeURIComponent(String(groupId))}/conflicts/of?entityId=${encodeURIComponent(String(entityId))}` +\n '&ts=' +\n new Date().getTime()\n let headers = 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 HealthcareParty(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 healthcare party, in the given group.\n * @param groupId the id of the group the healthcare party 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(\n groupId: string,\n body: ConflictResolutionRequest<HealthcareParty>\n ): Promise<ConflictResolutionResult<HealthcareParty>> {\n const _url = this.host + `/hcparty/inGroup/${encodeURIComponent(String(groupId))}/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = 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<HealthcareParty>(doc.body, (x) => new HealthcareParty(x)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
@@ -371,7 +371,7 @@ class IccHelementApi {
371
371
  */
372
372
  getConflictsForEntity(entityId) {
373
373
  return __awaiter(this, void 0, void 0, function* () {
374
- const _url = this.host + `/helement/conflicts/${encodeURIComponent(String(entityId))}` + '?ts=' + new Date().getTime();
374
+ const _url = this.host + `/helement/conflicts/of?entityId=${encodeURIComponent(String(entityId))}` + '&ts=' + new Date().getTime();
375
375
  let headers = yield this.headers;
376
376
  return XHR_1.XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
377
377
  .then((doc) => doc.body.map((it) => new HealthElement_1.HealthElement(it)))
@@ -420,8 +420,8 @@ class IccHelementApi {
420
420
  getConflictsForEntityInGroup(groupId, entityId) {
421
421
  return __awaiter(this, void 0, void 0, function* () {
422
422
  const _url = this.host +
423
- `/helement/inGroup/${encodeURIComponent(String(groupId))}/conflicts/${encodeURIComponent(String(entityId))}` +
424
- '?ts=' +
423
+ `/helement/inGroup/${encodeURIComponent(String(groupId))}/conflicts/of?entityId=${encodeURIComponent(String(entityId))}` +
424
+ '&ts=' +
425
425
  new Date().getTime();
426
426
  let headers = yield this.headers;
427
427
  return XHR_1.XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
@@ -1 +1 @@
1
- {"version":3,"file":"IccHelementApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccHelementApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAG3B,0DAAsD;AAEtD,0DAAsD;AACtD,kDAA8C;AAC9C,kDAA8C;AAC9C,oFAAgF;AAChF,wFAA8G;AAC9G,qDAAiD;AAEjD,mFAA+E;AAC/E,iGAA6F;AAI7F,gFAA4E;AAE5E,MAAa,cAAc;IAMzB,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;QAChH,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IAED,UAA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AE,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC;iBACzH,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,mDAAwB,CAAgB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,6BAAa,CAAC,CAAC,CAAC,CAAC,CAAC;iBACjG,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AAvfD,wCAufC","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 { AbstractFilterHealthElement } from '../model/AbstractFilterHealthElement'\nimport { Delegation } from '../model/Delegation'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { FilterChainHealthElement } from '../model/FilterChainHealthElement'\nimport { HealthElement } from '../model/HealthElement'\nimport { IcureStub } from '../model/IcureStub'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { PaginatedListHealthElement } from '../model/PaginatedListHealthElement'\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 { MinimalEntityBulkShareResult } from '../model/requests/MinimalEntityBulkShareResult'\nimport { BulkShareOrUpdateMetadataParams } from '../model/requests/BulkShareOrUpdateMetadataParams'\nimport { TimingInfo } from '../model/TimingInfo'\nimport { ConflictResolutionRequest } from '../model/ConflictResolutionRequest'\nimport { ConflictResolutionResult } from '../model/ConflictResolutionResult'\n\nexport class IccHelementApi {\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 * Returns an instance of created healthcare element.\n * @summary Create a healthcare element with the current user\n * @param body\n */\n async createHealthElement(body?: HealthElement): Promise<HealthElement> {\n const _url = this.host + `/helement` + '?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 HealthElement(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the created healthcare elements.\n * @summary Create a batch of healthcare elements\n * @param body\n */\n async createHealthElements(body?: Array<HealthElement>): Promise<Array<HealthElement>> {\n const _url = this.host + `/helement/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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Delete healthcare elements by batch.\n *\n * @param healthElementIds a ListOfIds containing the ids of the health elements to delete.\n * @return a Promise that will resolve in an Array containing the DocIdentifiers of the successfully delete documents.\n */\n async deleteHealthElements(healthElementIds: 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 + `/helement/delete/batch` + '?ts=' + new Date().getTime(),\n headers,\n healthElementIds,\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 health element by id.\n *\n * @param healthElementId the id of the health element to delete.\n * @return a Promise that will resolve in the DocIdentifier of the deleted health element.\n */\n async deleteHealthElement(healthElementId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/helement/${encodeURIComponent(healthElementId)}` + '?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 * Returns a list of health elements along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.\n * @summary Filter health elements for the current user (HcParty)\n * @param body\n * @param startDocumentId A HealthElement document ID\n * @param limit Number of rows\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n filterHealthElementsBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthElement,\n collectTiming?: false\n ): Promise<PaginatedListHealthElement>\n filterHealthElementsBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthElement,\n collectTiming?: true\n ): Promise<PaginatedListHealthElement & TimingInfo>\n async filterHealthElementsBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthElement,\n collectTiming: boolean = false\n ): Promise<PaginatedListHealthElement> {\n let _body = null\n _body = body\n\n const _url =\n this.host +\n `/helement/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 PaginatedListHealthElement(doc.body as JSON), collectTiming ? { responseHeaders: doc.responseHeaders } : {}))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary List healthcare elements found By Healthcare Party and secret foreign keys.\n * @deprecated use {@link findHealthElementIdsByDataOwnerPatientOpeningDate} instead.\n * @param body\n * @param hcPartyId\n */\n async findHealthElementsByHCPartyPatientForeignKeysUsingPost(hcPartyId: string, body?: Array<string>): Promise<Array<HealthElement>> {\n const _url =\n this.host +\n `/helement/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '')\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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys must be delimited by commas.\n * @deprecated use {@link findHealthElementIdsByDataOwnerPatientOpeningDate} instead.\n * @summary List healthcare elements found By Healthcare Party and secret foreign keys.\n * @param hcPartyId\n * @param secretFKeys\n */\n async findHealthElementsByHCPartyPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<HealthElement>> {\n let _body = null\n\n const _url =\n this.host +\n `/helement/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +\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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary List HealthElement ids by data owner and a set of secret foreign key. The ids will be sorted by HealthElement openingDate, 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 health element ids since the beginning of time will be returned.\n * @param endDate a timestamp in epoch milliseconds. If undefined, all the health element ids until the end of time will be returned.\n * @param descending whether to return the ids ordered in ascending or descending order by HealthElement openingDate\n * @return a promise that will resolve in an Array of HealthElement ids.\n */\n async findHealthElementIdsByDataOwnerPatientOpeningDate(\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 `/helement/byDataOwnerPatientOpeningDate?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 * @deprecated use {@link findHealthElementsDelegationsStubsByIds} instead.\n * @summary List helement stubs found By Healthcare Party and secret foreign keys.\n * @param body\n * @param hcPartyId\n */\n async findHealthElementsDelegationsStubsByHCPartyPatientForeignKeysUsingPost(hcPartyId: string, body?: Array<string>): Promise<Array<IcureStub>> {\n let _body = null\n _body = body\n\n const _url =\n this.host +\n `/helement/byHcPartySecretForeignKeys/delegations` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '')\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 IcureStub(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys must be delimited by coma\n * @deprecated use {@link findHealthElementsDelegationsStubsByIds} instead.\n * @summary List helement stubs found By Healthcare Party and secret foreign keys.\n * @param hcPartyId\n * @param secretFKeys\n */\n async findHealthElementsDelegationsStubsByHCPartyPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<IcureStub>> {\n let _body = null\n\n const _url =\n this.host +\n `/helement/byHcPartySecretForeignKeys/delegations` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +\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 IcureStub(it)))\n .catch((err) => this.handleError(err))\n }\n\n async findHealthElementsDelegationsStubsByIds(healthElementIds: string[]): Promise<Array<IcureStub>> {\n const _url = this.host + `/helement/byHcPartySecretForeignKeys/delegations`\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, { ids: healthElementIds }, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new IcureStub(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get a healthcare element\n * @param healthElementId\n */\n async getHealthElement(healthElementId: string): Promise<HealthElement> {\n let _body = null\n\n const _url = this.host + `/helement/${encodeURIComponent(String(healthElementId))}` + '?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 HealthElement(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Get a list of healthElement by ids/keys.\n * @summary Get healthElements by batch\n * @param body\n */\n async getHealthElements(body?: ListOfIds): Promise<Array<HealthElement>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/helement/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, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of health element 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 matchHealthElementsBy(body?: AbstractFilterHealthElement, collectTiming?: false): Promise<Array<string>>\n matchHealthElementsBy(body?: AbstractFilterHealthElement, collectTiming?: true): Promise<Array<string> & TimingInfo>\n async matchHealthElementsBy(body?: AbstractFilterHealthElement, collectTiming: boolean = false): Promise<Array<string>> {\n const _url = this.host + `/helement/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 * Returns the modified healthcare element.\n * @summary Modify a healthcare element\n * @param body\n */\n async modifyHealthElement(body?: HealthElement): Promise<HealthElement> {\n let _body = null\n _body = body\n\n const _url = this.host + `/helement` + '?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 HealthElement(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the modified healthcare elements.\n * @summary Modify a batch of healthcare elements\n * @param body\n */\n async modifyHealthElements(body?: Array<HealthElement>): Promise<Array<HealthElement>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/helement/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('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new HealthElement(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 bulkShareHealthElements(request: BulkShareOrUpdateMetadataParams): Promise<EntityBulkShareResult<HealthElement>[]> {\n const _url = this.host + '/helement/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<HealthElement>(x, HealthElement)))\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 bulkShareHealthElementsMinimal(request: BulkShareOrUpdateMetadataParams): Promise<MinimalEntityBulkShareResult[]> {\n const _url = this.host + '/helement/bulkSharedMetadataUpdateMinimal' + '?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 MinimalEntityBulkShareResult(x)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves the ids of all the health elements that currently have conflicting revisions and therefore need to\n * be resolved.\n * @summary List the ids of the health elements that have conflicts.\n * @return the ids of the health elements with unresolved conflicts.\n */\n async getConflictingEntitiesIds(): Promise<Array<string>> {\n const _url = this.host + `/helement/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 health element 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 health element.\n * @param entityId the id of the health element to retrieve the conflicts for.\n * @return the conflicting revisions of the health element.\n */\n async getConflictsForEntity(entityId: string): Promise<Array<HealthElement>> {\n const _url = this.host + `/helement/conflicts/${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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Resolves a conflict by declaring which revision of the health element 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 health element.\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<HealthElement>): Promise<ConflictResolutionResult<HealthElement>> {\n const _url = this.host + `/helement/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<HealthElement>(doc.body, (x) => new HealthElement(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 health elements that have conflicts, in the given group.\n * @param groupId the id of the group to look into.\n * @return the ids of the health elements with unresolved conflicts in the group.\n */\n async getConflictingEntitiesIdsInGroup(groupId: string): Promise<Array<string>> {\n const _url = this.host + `/helement/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 health element, in the given group.\n * @param groupId the id of the group the health element belongs to.\n * @param entityId the id of the health element to retrieve the conflicts for.\n * @return the conflicting revisions of the health element.\n */\n async getConflictsForEntityInGroup(groupId: string, entityId: string): Promise<Array<HealthElement>> {\n const _url =\n this.host +\n `/helement/inGroup/${encodeURIComponent(String(groupId))}/conflicts/${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 HealthElement(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 health element, in the given group.\n * @param groupId the id of the group the health element 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(\n groupId: string,\n body: ConflictResolutionRequest<HealthElement>\n ): Promise<ConflictResolutionResult<HealthElement>> {\n const _url = this.host + `/helement/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<HealthElement>(doc.body, (x) => new HealthElement(x)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
1
+ {"version":3,"file":"IccHelementApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccHelementApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAG3B,0DAAsD;AAEtD,0DAAsD;AACtD,kDAA8C;AAC9C,kDAA8C;AAC9C,oFAAgF;AAChF,wFAA8G;AAC9G,qDAAiD;AAEjD,mFAA+E;AAC/E,iGAA6F;AAI7F,gFAA4E;AAE5E,MAAa,cAAc;IAMzB,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,GAA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,CAAA;YACpI,IAAI,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,CAAA;YAChC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,cAAc,CAAC,CAAC,MAAM,CAAC,IAAI,SAAG,CAAC,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC,CAAA;YACvH,OAAO,SAAG,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC;iBACzH,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,mDAAwB,CAAgB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,6BAAa,CAAC,CAAC,CAAC,CAAC,CAAC;iBACjG,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AAvfD,wCAufC","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 { AbstractFilterHealthElement } from '../model/AbstractFilterHealthElement'\nimport { Delegation } from '../model/Delegation'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { FilterChainHealthElement } from '../model/FilterChainHealthElement'\nimport { HealthElement } from '../model/HealthElement'\nimport { IcureStub } from '../model/IcureStub'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { PaginatedListHealthElement } from '../model/PaginatedListHealthElement'\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 { MinimalEntityBulkShareResult } from '../model/requests/MinimalEntityBulkShareResult'\nimport { BulkShareOrUpdateMetadataParams } from '../model/requests/BulkShareOrUpdateMetadataParams'\nimport { TimingInfo } from '../model/TimingInfo'\nimport { ConflictResolutionRequest } from '../model/ConflictResolutionRequest'\nimport { ConflictResolutionResult } from '../model/ConflictResolutionResult'\n\nexport class IccHelementApi {\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 * Returns an instance of created healthcare element.\n * @summary Create a healthcare element with the current user\n * @param body\n */\n async createHealthElement(body?: HealthElement): Promise<HealthElement> {\n const _url = this.host + `/helement` + '?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 HealthElement(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the created healthcare elements.\n * @summary Create a batch of healthcare elements\n * @param body\n */\n async createHealthElements(body?: Array<HealthElement>): Promise<Array<HealthElement>> {\n const _url = this.host + `/helement/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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Delete healthcare elements by batch.\n *\n * @param healthElementIds a ListOfIds containing the ids of the health elements to delete.\n * @return a Promise that will resolve in an Array containing the DocIdentifiers of the successfully delete documents.\n */\n async deleteHealthElements(healthElementIds: 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 + `/helement/delete/batch` + '?ts=' + new Date().getTime(),\n headers,\n healthElementIds,\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 health element by id.\n *\n * @param healthElementId the id of the health element to delete.\n * @return a Promise that will resolve in the DocIdentifier of the deleted health element.\n */\n async deleteHealthElement(healthElementId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/helement/${encodeURIComponent(healthElementId)}` + '?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 * Returns a list of health elements along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.\n * @summary Filter health elements for the current user (HcParty)\n * @param body\n * @param startDocumentId A HealthElement document ID\n * @param limit Number of rows\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n filterHealthElementsBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthElement,\n collectTiming?: false\n ): Promise<PaginatedListHealthElement>\n filterHealthElementsBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthElement,\n collectTiming?: true\n ): Promise<PaginatedListHealthElement & TimingInfo>\n async filterHealthElementsBy(\n startDocumentId?: string,\n limit?: number,\n body?: FilterChainHealthElement,\n collectTiming: boolean = false\n ): Promise<PaginatedListHealthElement> {\n let _body = null\n _body = body\n\n const _url =\n this.host +\n `/helement/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 PaginatedListHealthElement(doc.body as JSON), collectTiming ? { responseHeaders: doc.responseHeaders } : {}))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary List healthcare elements found By Healthcare Party and secret foreign keys.\n * @deprecated use {@link findHealthElementIdsByDataOwnerPatientOpeningDate} instead.\n * @param body\n * @param hcPartyId\n */\n async findHealthElementsByHCPartyPatientForeignKeysUsingPost(hcPartyId: string, body?: Array<string>): Promise<Array<HealthElement>> {\n const _url =\n this.host +\n `/helement/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '')\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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys must be delimited by commas.\n * @deprecated use {@link findHealthElementIdsByDataOwnerPatientOpeningDate} instead.\n * @summary List healthcare elements found By Healthcare Party and secret foreign keys.\n * @param hcPartyId\n * @param secretFKeys\n */\n async findHealthElementsByHCPartyPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<HealthElement>> {\n let _body = null\n\n const _url =\n this.host +\n `/helement/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +\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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary List HealthElement ids by data owner and a set of secret foreign key. The ids will be sorted by HealthElement openingDate, 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 health element ids since the beginning of time will be returned.\n * @param endDate a timestamp in epoch milliseconds. If undefined, all the health element ids until the end of time will be returned.\n * @param descending whether to return the ids ordered in ascending or descending order by HealthElement openingDate\n * @return a promise that will resolve in an Array of HealthElement ids.\n */\n async findHealthElementIdsByDataOwnerPatientOpeningDate(\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 `/helement/byDataOwnerPatientOpeningDate?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 * @deprecated use {@link findHealthElementsDelegationsStubsByIds} instead.\n * @summary List helement stubs found By Healthcare Party and secret foreign keys.\n * @param body\n * @param hcPartyId\n */\n async findHealthElementsDelegationsStubsByHCPartyPatientForeignKeysUsingPost(hcPartyId: string, body?: Array<string>): Promise<Array<IcureStub>> {\n let _body = null\n _body = body\n\n const _url =\n this.host +\n `/helement/byHcPartySecretForeignKeys/delegations` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '')\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 IcureStub(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys must be delimited by coma\n * @deprecated use {@link findHealthElementsDelegationsStubsByIds} instead.\n * @summary List helement stubs found By Healthcare Party and secret foreign keys.\n * @param hcPartyId\n * @param secretFKeys\n */\n async findHealthElementsDelegationsStubsByHCPartyPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<IcureStub>> {\n let _body = null\n\n const _url =\n this.host +\n `/helement/byHcPartySecretForeignKeys/delegations` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +\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 IcureStub(it)))\n .catch((err) => this.handleError(err))\n }\n\n async findHealthElementsDelegationsStubsByIds(healthElementIds: string[]): Promise<Array<IcureStub>> {\n const _url = this.host + `/helement/byHcPartySecretForeignKeys/delegations`\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, { ids: healthElementIds }, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new IcureStub(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get a healthcare element\n * @param healthElementId\n */\n async getHealthElement(healthElementId: string): Promise<HealthElement> {\n let _body = null\n\n const _url = this.host + `/helement/${encodeURIComponent(String(healthElementId))}` + '?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 HealthElement(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Get a list of healthElement by ids/keys.\n * @summary Get healthElements by batch\n * @param body\n */\n async getHealthElements(body?: ListOfIds): Promise<Array<HealthElement>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/helement/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, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of health element 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 matchHealthElementsBy(body?: AbstractFilterHealthElement, collectTiming?: false): Promise<Array<string>>\n matchHealthElementsBy(body?: AbstractFilterHealthElement, collectTiming?: true): Promise<Array<string> & TimingInfo>\n async matchHealthElementsBy(body?: AbstractFilterHealthElement, collectTiming: boolean = false): Promise<Array<string>> {\n const _url = this.host + `/helement/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 * Returns the modified healthcare element.\n * @summary Modify a healthcare element\n * @param body\n */\n async modifyHealthElement(body?: HealthElement): Promise<HealthElement> {\n let _body = null\n _body = body\n\n const _url = this.host + `/helement` + '?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 HealthElement(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the modified healthcare elements.\n * @summary Modify a batch of healthcare elements\n * @param body\n */\n async modifyHealthElements(body?: Array<HealthElement>): Promise<Array<HealthElement>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/helement/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('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new HealthElement(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 bulkShareHealthElements(request: BulkShareOrUpdateMetadataParams): Promise<EntityBulkShareResult<HealthElement>[]> {\n const _url = this.host + '/helement/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<HealthElement>(x, HealthElement)))\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 bulkShareHealthElementsMinimal(request: BulkShareOrUpdateMetadataParams): Promise<MinimalEntityBulkShareResult[]> {\n const _url = this.host + '/helement/bulkSharedMetadataUpdateMinimal' + '?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 MinimalEntityBulkShareResult(x)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves the ids of all the health elements that currently have conflicting revisions and therefore need to\n * be resolved.\n * @summary List the ids of the health elements that have conflicts.\n * @return the ids of the health elements with unresolved conflicts.\n */\n async getConflictingEntitiesIds(): Promise<Array<string>> {\n const _url = this.host + `/helement/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 health element 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 health element.\n * @param entityId the id of the health element to retrieve the conflicts for.\n * @return the conflicting revisions of the health element.\n */\n async getConflictsForEntity(entityId: string): Promise<Array<HealthElement>> {\n const _url = this.host + `/helement/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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Resolves a conflict by declaring which revision of the health element 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 health element.\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<HealthElement>): Promise<ConflictResolutionResult<HealthElement>> {\n const _url = this.host + `/helement/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<HealthElement>(doc.body, (x) => new HealthElement(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 health elements that have conflicts, in the given group.\n * @param groupId the id of the group to look into.\n * @return the ids of the health elements with unresolved conflicts in the group.\n */\n async getConflictingEntitiesIdsInGroup(groupId: string): Promise<Array<string>> {\n const _url = this.host + `/helement/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 health element, in the given group.\n * @param groupId the id of the group the health element belongs to.\n * @param entityId the id of the health element to retrieve the conflicts for.\n * @return the conflicting revisions of the health element.\n */\n async getConflictsForEntityInGroup(groupId: string, entityId: string): Promise<Array<HealthElement>> {\n const _url =\n this.host +\n `/helement/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 HealthElement(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 health element, in the given group.\n * @param groupId the id of the group the health element 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(\n groupId: string,\n body: ConflictResolutionRequest<HealthElement>\n ): Promise<ConflictResolutionResult<HealthElement>> {\n const _url = this.host + `/helement/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<HealthElement>(doc.body, (x) => new HealthElement(x)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
@@ -231,7 +231,7 @@ class IccInsuranceApi {
231
231
  */
232
232
  getConflictsForEntity(entityId) {
233
233
  return __awaiter(this, void 0, void 0, function* () {
234
- const _url = this.host + `/insurance/conflicts/${encodeURIComponent(String(entityId))}` + '?ts=' + new Date().getTime();
234
+ const _url = this.host + `/insurance/conflicts/of?entityId=${encodeURIComponent(String(entityId))}` + '&ts=' + new Date().getTime();
235
235
  let headers = this.headers;
236
236
  return XHR_1.XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
237
237
  .then((doc) => doc.body.map((it) => new Insurance_1.Insurance(it)))
@@ -280,8 +280,8 @@ class IccInsuranceApi {
280
280
  getConflictsForEntityInGroup(groupId, entityId) {
281
281
  return __awaiter(this, void 0, void 0, function* () {
282
282
  const _url = this.host +
283
- `/insurance/inGroup/${encodeURIComponent(String(groupId))}/conflicts/${encodeURIComponent(String(entityId))}` +
284
- '?ts=' +
283
+ `/insurance/inGroup/${encodeURIComponent(String(groupId))}/conflicts/of?entityId=${encodeURIComponent(String(entityId))}` +
284
+ '&ts=' +
285
285
  new Date().getTime();
286
286
  let headers = this.headers;
287
287
  return XHR_1.XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())