@icure/api 8.2.1 → 8.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"IccBesamv2Api.js","sourceRoot":"","sources":["../../../icc-api/api/IccBesamv2Api.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,sCAAkC;AAElC,sCAAkC;AAClC,gEAA4D;AAC5D,gEAA4D;AAC5D,gEAA4D;AAC5D,0EAAsE;AACtE,kDAA8C;AAC9C,oEAAgE;AAChE,oDAAgD;AAChD,kDAA8C;AAC9C,0CAAsC;AACtC,sCAAkC;AAClC,gDAA4C;AAC5C,wFAA8G;AAC9G,qDAAiD;AACjD,4EAAwE;AACxE,sDAAkD;AAElD,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;;;;;;;;;OASG;IACH,oBAAoB,CAAC,QAAgB;QACnC,MAAM,IAAI,GAA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WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,CAAC;CACF;AApzBD,sCAozBC","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 { Amp } from '../model/Amp'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { Nmp } from '../model/Nmp'\nimport { PaginatedListAmp } from '../model/PaginatedListAmp'\nimport { PaginatedListNmp } from '../model/PaginatedListNmp'\nimport { PaginatedListVmp } from '../model/PaginatedListVmp'\nimport { PaginatedListVmpGroup } from '../model/PaginatedListVmpGroup'\nimport { Paragraph } from '../model/Paragraph'\nimport { PharmaceuticalForm } from '../model/PharmaceuticalForm'\nimport { SamVersion } from '../model/SamVersion'\nimport { Substance } from '../model/Substance'\nimport { Verse } from '../model/Verse'\nimport { Vmp } from '../model/Vmp'\nimport { VmpGroup } from '../model/VmpGroup'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { SamV2UpdateTaskLogItem } from '../model/SamV2UpdateTaskLogItem'\nimport { SamV2Update } from '../model/SamV2Update'\n\nexport class IccBesamv2Api {\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 * Warning: this function will work only with a single node installation of CouchDB\n *\n * Starts a new task on the backend that will retrieve all the missing updates on the drugs and ChapIV databases, and\n * it will apply them.\n * This method will fail if an update task is currently running or if the backend was not configured to run the update task.\n * As the operation may last several minutes, this process will not return the task status.\n * Instead, it is possible to check the status of the task using the {@link getSamUpdateTaskStatus} method.\n * @param apiToken a token from a cloud installation of the kraken.\n */\n triggerSamUpdateTask(apiToken: string): Promise<string> {\n const _url = this.host + `/be_samv2/patch?apiToken=${encodeURIComponent(apiToken)}`\n let headers = this.headers\n return XHR.sendCommand('POST', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => JSON.stringify(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Warning: this function will work only with a single node installation of CouchDB\n * Returns the log of a SAM update operation that is running on the backend or the last the completed.\n * Starting a new task will erase the log of the previous task.\n * The item in the array are sorted from most recent to last recent.\n * This method will fail if the backend was not configured to run the update task.\n */\n getSamUpdateTaskStatus(): Promise<SamV2UpdateTaskLogItem[]> {\n const _url = this.host + `/be_samv2/patch`\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 SamV2UpdateTaskLogItem(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Warning: this function will work only with a single node installation of CouchDB\n * Returns all the SamV2 updates successfully applied to the drugs and ChapIV databases.\n * This method will fail if the backend was not configured to run the update task.\n */\n getSamUpdateTaskHistory(): Promise<SamV2Update[]> {\n const _url = this.host + `/be_samv2/patch/history`\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 SamV2Update(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Warning: this function will work only with a single node installation of CouchDB\n * Stops the current sam update task on the backend.\n * This method will fail if there is no method currently running on the backend or if the backend was not configured to run the update task.\n */\n stopCurrentSamUpdateTask(): Promise<string> {\n const _url = this.host + `/be_samv2/patch`\n let headers = this.headers\n return XHR.sendCommand('DELETE', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => JSON.stringify(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of amps matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by dmpp code\n * @param dmppCode dmppCode\n */\n findAmpsByDmppCode(dmppCode: string): Promise<Array<Amp>> {\n let _body = null\n\n const _url = this.host + `/be_samv2/amp/byDmppCode/${encodeURIComponent(String(dmppCode))}` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of amps matched with given input. If several types are provided, pagination is not supported\n * @summary Finding AMPs by amp code\n * @param ampCode ampCode\n */\n findAmpsByAmpCode(ampCode: string): Promise<Array<Amp>> {\n let _body = null\n\n const _url = this.host + `/be_samv2/amp/byAmpCode/${encodeURIComponent(String(ampCode))}` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by atc code with pagination.\n * @param atcCode atcCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A amp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByAtc(atcCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp/byAtc/${encodeURIComponent(String(atcCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by atc code with pagination.\n * @param atcCode atcCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A amp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByAtc1(atcCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmp/byAtc/${encodeURIComponent(String(atcCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by group with pagination.\n * @param vmpgCode vmpgCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByGroupCode(vmpgCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp/byGroupCode/${encodeURIComponent(String(vmpgCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by group with pagination.\n * @param vmpgId vmpgCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByGroupId(vmpgId: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp/byGroupId/${encodeURIComponent(String(vmpgId))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by label with pagination.\n * @param language language\n * @param label label\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId An amp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByLabel(\n language?: string,\n label?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp` +\n '?ts=' +\n new Date().getTime() +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (label ? '&label=' + encodeURIComponent(String(label)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by vmp code with pagination.\n * @param vmpCode vmpCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A amp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByVmpCode(vmpCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp/byVmpCode/${encodeURIComponent(String(vmpCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by vmp id with pagination.\n * @param vmpId vmpgCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A amp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByVmpId(vmpId: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp/byVmpId/${encodeURIComponent(String(vmpId))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a paginated list of NMPs by matching label. Matches occur per word\n * @summary Finding NMPs by label with pagination.\n * @param language language\n * @param label label\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedNmpsByLabel(\n language?: string,\n label?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListNmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/nmp` +\n '?ts=' +\n new Date().getTime() +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (label ? '&label=' + encodeURIComponent(String(label)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListNmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMP groups by language label with pagination.\n * @param language language\n * @param label label\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmpgroup document ID\n * @param limit Number of rows\n */\n findPaginatedVmpGroupsByLabel(\n language?: string,\n label?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListVmpGroup> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmpgroup` +\n '?ts=' +\n new Date().getTime() +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (label ? '&label=' + encodeURIComponent(String(label)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmpGroup(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMP groups by cmpgCode with pagination.\n * @param vmpgCode vmpgCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmpgroup document ID\n * @param limit Number of rows\n */\n findPaginatedVmpGroupsByVmpGroupCode(\n vmpgCode: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListVmpGroup> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmpgroup/byGroupCode/${encodeURIComponent(String(vmpgCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmpGroup(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMPs by group with pagination.\n * @param vmpgCode vmpgCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedVmpsByGroupCode(vmpgCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListVmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmp/byGroupCode/${encodeURIComponent(String(vmpgCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMPs by group with pagination.\n * @param vmpgId vmpgId\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedVmpsByGroupId(vmpgId: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListVmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmp/byGroupId/${encodeURIComponent(String(vmpgId))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a paginated list of VMPs by matching label. Matches occur per word\n * @summary Finding VMPs by label with pagination.\n * @param language language\n * @param label label\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedVmpsByLabel(\n language?: string,\n label?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListVmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmp` +\n '?ts=' +\n new Date().getTime() +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (label ? '&label=' + encodeURIComponent(String(label)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMPs by group with pagination.\n * @param vmpCode vmpCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedVmpsByVmpCode(vmpCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListVmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmp/byVmpCode/${encodeURIComponent(String(vmpCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param searchString\n * @param language\n */\n findParagraphs(searchString: string, language: string): Promise<Array<Paragraph>> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/chap/search/${encodeURIComponent(String(searchString))}/${encodeURIComponent(String(language))}` +\n '?ts=' +\n 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 Paragraph(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param cnk\n * @param language\n */\n findParagraphsWithCnk(cnk: number, language: string): Promise<Array<Paragraph>> {\n let _body = null\n\n const _url =\n this.host + `/be_samv2/chap/bycnk/${encodeURIComponent(String(cnk))}/${encodeURIComponent(String(language))}` + '?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 Paragraph(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param chapterName\n * @param paragraphName\n * @param verseSeq\n * @param docSeq\n * @param language\n * @param response\n */\n getAddedDocument(chapterName: string, paragraphName: string, verseSeq: number, docSeq: number, language: string): Promise<ArrayBuffer> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/chap/${encodeURIComponent(String(chapterName))}/${encodeURIComponent(String(paragraphName))}/${encodeURIComponent(\n String(verseSeq)\n )}/addeddoc/${encodeURIComponent(String(docSeq))}/${encodeURIComponent(String(language))}` +\n '?ts=' +\n 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)\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param chapterName\n * @param paragraphName\n */\n getAmpsForParagraph(chapterName: string, paragraphName: string): Promise<Array<Amp>> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/chap/amps/${encodeURIComponent(String(chapterName))}/${encodeURIComponent(String(paragraphName))}` +\n '?ts=' +\n 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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Get Samv2 version.\n */\n getSamVersion(): Promise<SamVersion> {\n let _body = null\n\n const _url = this.host + `/be_samv2/v` + '?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 SamVersion(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param chapterName\n * @param paragraphName\n */\n getVersesHierarchy(chapterName: string, paragraphName: string): Promise<Verse> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/chap/verse/${encodeURIComponent(String(chapterName))}/${encodeURIComponent(String(paragraphName))}` +\n '?ts=' +\n 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 Verse(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param chapterName\n * @param paragraphName\n * @param language\n */\n getVtmNamesForParagraph(chapterName: string, paragraphName: string, language: string): Promise<Array<string>> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/chap/vtms/${encodeURIComponent(String(chapterName))}/${encodeURIComponent(String(paragraphName))}/${encodeURIComponent(\n String(language)\n )}` +\n '?ts=' +\n 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) => JSON.parse(JSON.stringify(it))))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of amps matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by dmpp code\n * @param body\n */\n listAmpsByDmppCodes(body?: ListOfIds): Promise<Array<Amp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/amp/byDmppCodes` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by group.\n * @param body\n */\n listAmpsByGroupCodes(body?: ListOfIds): Promise<Array<Amp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/amp/byGroupCodes` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by group.\n * @param body\n */\n listAmpsByGroupIds(body?: ListOfIds): Promise<Array<Amp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/amp/byGroupIds` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by vmp code.\n * @param body\n */\n listAmpsByVmpCodes(body?: ListOfIds): Promise<Array<Amp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/amp/byVmpCodes` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by vmp id.\n * @param body\n */\n listAmpsByVmpIds(body?: ListOfIds): Promise<Array<Amp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/amp/byVmpIds` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding NMPs by cnk id.\n * @param body\n */\n listNmpsByCnks(body?: ListOfIds): Promise<Array<Nmp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/nmp/byCnks` + '?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 Nmp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary List all pharmaceutical forms.\n */\n listPharmaceuticalForms(): Promise<Array<PharmaceuticalForm>> {\n let _body = null\n\n const _url = this.host + `/be_samv2/pharmaform` + '?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 PharmaceuticalForm(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary List all substances.\n */\n listSubstances(): Promise<Array<Substance>> {\n let _body = null\n\n const _url = this.host + `/be_samv2/substance` + '?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 Substance(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of group codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by group.\n * @param body\n */\n listVmpGroupsByVmpGroupCodes(body?: ListOfIds): Promise<Array<VmpGroup>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/vmpgroup/byGroupCodes` + '?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 VmpGroup(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMPs by group.\n * @param body\n */\n listVmpsByGroupIds(body?: ListOfIds): Promise<Array<Vmp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/vmp/byGroupIds` + '?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 Vmp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMPs by group.\n * @param body\n */\n listVmpsByVmpCodes(body?: ListOfIds): Promise<Array<Vmp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/vmp/byVmpCodes` + '?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 Vmp(it)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
1
+ {"version":3,"file":"IccBesamv2Api.js","sourceRoot":"","sources":["../../../icc-api/api/IccBesamv2Api.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,sCAAkC;AAElC,sCAAkC;AAClC,gEAA4D;AAC5D,gEAA4D;AAC5D,gEAA4D;AAC5D,0EAAsE;AACtE,kDAA8C;AAC9C,oEAAgE;AAChE,oDAAgD;AAChD,kDAA8C;AAC9C,0CAAsC;AACtC,sCAAkC;AAClC,gDAA4C;AAC5C,wFAA8G;AAC9G,qDAAiD;AACjD,4EAAwE;AACxE,sDAAkD;AAClD,mEAA8D;AAE9D,MAAa,aAAa;IAMxB,YACE,IAAY,EACZ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CAAC,IAAI,GAAG,0BAA0B,GAAG,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;QACnF,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC1B,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;QACvH,OAAO,SAAG,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC;aAC1H,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAE,GAAG,CAAC,IAAoB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,SAAG,CAAC,EAAE,CAAC,CAAC,CAAC;aACjE,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,CAAC;CACF;AApzBD,sCAozBC","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 { Amp } from '../model/Amp'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { Nmp } from '../model/Nmp'\nimport { PaginatedListAmp } from '../model/PaginatedListAmp'\nimport { PaginatedListNmp } from '../model/PaginatedListNmp'\nimport { PaginatedListVmp } from '../model/PaginatedListVmp'\nimport { PaginatedListVmpGroup } from '../model/PaginatedListVmpGroup'\nimport { Paragraph } from '../model/Paragraph'\nimport { PharmaceuticalForm } from '../model/PharmaceuticalForm'\nimport { SamVersion } from '../model/SamVersion'\nimport { Substance } from '../model/Substance'\nimport { Verse } from '../model/Verse'\nimport { Vmp } from '../model/Vmp'\nimport { VmpGroup } from '../model/VmpGroup'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { SamV2UpdateTaskLogItem } from '../model/SamV2UpdateTaskLogItem'\nimport { SamV2Update } from '../model/SamV2Update'\nimport { mapSamHost } from '../../icc-x-api/utils/proxy-utils'\n\nexport class IccBesamv2Api {\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 = mapSamHost(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 * Warning: this function will work only with a single node installation of CouchDB\n *\n * Starts a new task on the backend that will retrieve all the missing updates on the drugs and ChapIV databases, and\n * it will apply them.\n * This method will fail if an update task is currently running or if the backend was not configured to run the update task.\n * As the operation may last several minutes, this process will not return the task status.\n * Instead, it is possible to check the status of the task using the {@link getSamUpdateTaskStatus} method.\n * @param apiToken a token from a cloud installation of the kraken.\n */\n triggerSamUpdateTask(apiToken: string): Promise<string> {\n const _url = this.host + `/be_samv2/patch?apiToken=${encodeURIComponent(apiToken)}`\n let headers = this.headers\n return XHR.sendCommand('POST', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => JSON.stringify(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Warning: this function will work only with a single node installation of CouchDB\n * Returns the log of a SAM update operation that is running on the backend or the last the completed.\n * Starting a new task will erase the log of the previous task.\n * The item in the array are sorted from most recent to last recent.\n * This method will fail if the backend was not configured to run the update task.\n */\n getSamUpdateTaskStatus(): Promise<SamV2UpdateTaskLogItem[]> {\n const _url = this.host + `/be_samv2/patch`\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 SamV2UpdateTaskLogItem(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Warning: this function will work only with a single node installation of CouchDB\n * Returns all the SamV2 updates successfully applied to the drugs and ChapIV databases.\n * This method will fail if the backend was not configured to run the update task.\n */\n getSamUpdateTaskHistory(): Promise<SamV2Update[]> {\n const _url = this.host + `/be_samv2/patch/history`\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 SamV2Update(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Warning: this function will work only with a single node installation of CouchDB\n * Stops the current sam update task on the backend.\n * This method will fail if there is no method currently running on the backend or if the backend was not configured to run the update task.\n */\n stopCurrentSamUpdateTask(): Promise<string> {\n const _url = this.host + `/be_samv2/patch`\n let headers = this.headers\n return XHR.sendCommand('DELETE', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => JSON.stringify(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of amps matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by dmpp code\n * @param dmppCode dmppCode\n */\n findAmpsByDmppCode(dmppCode: string): Promise<Array<Amp>> {\n let _body = null\n\n const _url = this.host + `/be_samv2/amp/byDmppCode/${encodeURIComponent(String(dmppCode))}` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of amps matched with given input. If several types are provided, pagination is not supported\n * @summary Finding AMPs by amp code\n * @param ampCode ampCode\n */\n findAmpsByAmpCode(ampCode: string): Promise<Array<Amp>> {\n let _body = null\n\n const _url = this.host + `/be_samv2/amp/byAmpCode/${encodeURIComponent(String(ampCode))}` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by atc code with pagination.\n * @param atcCode atcCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A amp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByAtc(atcCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp/byAtc/${encodeURIComponent(String(atcCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by atc code with pagination.\n * @param atcCode atcCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A amp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByAtc1(atcCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmp/byAtc/${encodeURIComponent(String(atcCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by group with pagination.\n * @param vmpgCode vmpgCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByGroupCode(vmpgCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp/byGroupCode/${encodeURIComponent(String(vmpgCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by group with pagination.\n * @param vmpgId vmpgCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByGroupId(vmpgId: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp/byGroupId/${encodeURIComponent(String(vmpgId))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by label with pagination.\n * @param language language\n * @param label label\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId An amp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByLabel(\n language?: string,\n label?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp` +\n '?ts=' +\n new Date().getTime() +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (label ? '&label=' + encodeURIComponent(String(label)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by vmp code with pagination.\n * @param vmpCode vmpCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A amp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByVmpCode(vmpCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp/byVmpCode/${encodeURIComponent(String(vmpCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by vmp id with pagination.\n * @param vmpId vmpgCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A amp document ID\n * @param limit Number of rows\n */\n findPaginatedAmpsByVmpId(vmpId: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListAmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/amp/byVmpId/${encodeURIComponent(String(vmpId))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a paginated list of NMPs by matching label. Matches occur per word\n * @summary Finding NMPs by label with pagination.\n * @param language language\n * @param label label\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedNmpsByLabel(\n language?: string,\n label?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListNmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/nmp` +\n '?ts=' +\n new Date().getTime() +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (label ? '&label=' + encodeURIComponent(String(label)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListNmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMP groups by language label with pagination.\n * @param language language\n * @param label label\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmpgroup document ID\n * @param limit Number of rows\n */\n findPaginatedVmpGroupsByLabel(\n language?: string,\n label?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListVmpGroup> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmpgroup` +\n '?ts=' +\n new Date().getTime() +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (label ? '&label=' + encodeURIComponent(String(label)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmpGroup(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMP groups by cmpgCode with pagination.\n * @param vmpgCode vmpgCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmpgroup document ID\n * @param limit Number of rows\n */\n findPaginatedVmpGroupsByVmpGroupCode(\n vmpgCode: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListVmpGroup> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmpgroup/byGroupCode/${encodeURIComponent(String(vmpgCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmpGroup(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMPs by group with pagination.\n * @param vmpgCode vmpgCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedVmpsByGroupCode(vmpgCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListVmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmp/byGroupCode/${encodeURIComponent(String(vmpgCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMPs by group with pagination.\n * @param vmpgId vmpgId\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedVmpsByGroupId(vmpgId: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListVmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmp/byGroupId/${encodeURIComponent(String(vmpgId))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a paginated list of VMPs by matching label. Matches occur per word\n * @summary Finding VMPs by label with pagination.\n * @param language language\n * @param label label\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedVmpsByLabel(\n language?: string,\n label?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListVmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmp` +\n '?ts=' +\n new Date().getTime() +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (label ? '&label=' + encodeURIComponent(String(label)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMPs by group with pagination.\n * @param vmpCode vmpCode\n * @param startKey The start key for pagination: a JSON representation of an array containing all the necessary components to form the Complex Key&#x27;s startKey\n * @param startDocumentId A vmp document ID\n * @param limit Number of rows\n */\n findPaginatedVmpsByVmpCode(vmpCode: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListVmp> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/vmp/byVmpCode/${encodeURIComponent(String(vmpCode))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListVmp(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param searchString\n * @param language\n */\n findParagraphs(searchString: string, language: string): Promise<Array<Paragraph>> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/chap/search/${encodeURIComponent(String(searchString))}/${encodeURIComponent(String(language))}` +\n '?ts=' +\n 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 Paragraph(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param cnk\n * @param language\n */\n findParagraphsWithCnk(cnk: number, language: string): Promise<Array<Paragraph>> {\n let _body = null\n\n const _url =\n this.host + `/be_samv2/chap/bycnk/${encodeURIComponent(String(cnk))}/${encodeURIComponent(String(language))}` + '?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 Paragraph(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param chapterName\n * @param paragraphName\n * @param verseSeq\n * @param docSeq\n * @param language\n * @param response\n */\n getAddedDocument(chapterName: string, paragraphName: string, verseSeq: number, docSeq: number, language: string): Promise<ArrayBuffer> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/chap/${encodeURIComponent(String(chapterName))}/${encodeURIComponent(String(paragraphName))}/${encodeURIComponent(\n String(verseSeq)\n )}/addeddoc/${encodeURIComponent(String(docSeq))}/${encodeURIComponent(String(language))}` +\n '?ts=' +\n 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)\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param chapterName\n * @param paragraphName\n */\n getAmpsForParagraph(chapterName: string, paragraphName: string): Promise<Array<Amp>> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/chap/amps/${encodeURIComponent(String(chapterName))}/${encodeURIComponent(String(paragraphName))}` +\n '?ts=' +\n 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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Get Samv2 version.\n */\n getSamVersion(): Promise<SamVersion> {\n let _body = null\n\n const _url = this.host + `/be_samv2/v` + '?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 SamVersion(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param chapterName\n * @param paragraphName\n */\n getVersesHierarchy(chapterName: string, paragraphName: string): Promise<Verse> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/chap/verse/${encodeURIComponent(String(chapterName))}/${encodeURIComponent(String(paragraphName))}` +\n '?ts=' +\n 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 Verse(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @param chapterName\n * @param paragraphName\n * @param language\n */\n getVtmNamesForParagraph(chapterName: string, paragraphName: string, language: string): Promise<Array<string>> {\n let _body = null\n\n const _url =\n this.host +\n `/be_samv2/chap/vtms/${encodeURIComponent(String(chapterName))}/${encodeURIComponent(String(paragraphName))}/${encodeURIComponent(\n String(language)\n )}` +\n '?ts=' +\n 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) => JSON.parse(JSON.stringify(it))))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of amps matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by dmpp code\n * @param body\n */\n listAmpsByDmppCodes(body?: ListOfIds): Promise<Array<Amp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/amp/byDmppCodes` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by group.\n * @param body\n */\n listAmpsByGroupCodes(body?: ListOfIds): Promise<Array<Amp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/amp/byGroupCodes` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by group.\n * @param body\n */\n listAmpsByGroupIds(body?: ListOfIds): Promise<Array<Amp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/amp/byGroupIds` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by vmp code.\n * @param body\n */\n listAmpsByVmpCodes(body?: ListOfIds): Promise<Array<Amp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/amp/byVmpCodes` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by vmp id.\n * @param body\n */\n listAmpsByVmpIds(body?: ListOfIds): Promise<Array<Amp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/amp/byVmpIds` + '?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 Amp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding NMPs by cnk id.\n * @param body\n */\n listNmpsByCnks(body?: ListOfIds): Promise<Array<Nmp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/nmp/byCnks` + '?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 Nmp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary List all pharmaceutical forms.\n */\n listPharmaceuticalForms(): Promise<Array<PharmaceuticalForm>> {\n let _body = null\n\n const _url = this.host + `/be_samv2/pharmaform` + '?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 PharmaceuticalForm(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary List all substances.\n */\n listSubstances(): Promise<Array<Substance>> {\n let _body = null\n\n const _url = this.host + `/be_samv2/substance` + '?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 Substance(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of group codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding AMPs by group.\n * @param body\n */\n listVmpGroupsByVmpGroupCodes(body?: ListOfIds): Promise<Array<VmpGroup>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/vmpgroup/byGroupCodes` + '?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 VmpGroup(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMPs by group.\n * @param body\n */\n listVmpsByGroupIds(body?: ListOfIds): Promise<Array<Vmp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/vmp/byGroupIds` + '?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 Vmp(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input. If several types are provided, paginantion is not supported\n * @summary Finding VMPs by group.\n * @param body\n */\n listVmpsByVmpCodes(body?: ListOfIds): Promise<Array<Vmp>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/be_samv2/vmp/byVmpCodes` + '?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 Vmp(it)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
@@ -29,6 +29,6 @@ export declare class ExchangeKeysManager {
29
29
  /**
30
30
  * Reloads all exchange keys for the cache.
31
31
  */
32
- reloadCache(): Promise<void>;
32
+ reloadCache(): void;
33
33
  private doGetCache;
34
34
  }
@@ -66,9 +66,7 @@ class ExchangeKeysManager {
66
66
  * Reloads all exchange keys for the cache.
67
67
  */
68
68
  reloadCache() {
69
- return __awaiter(this, void 0, void 0, function* () {
70
- this.cache = this.doGetCache();
71
- });
69
+ this.cache = this.doGetCache(); // Intentionally not awaited to make login feel faster
72
70
  }
73
71
  doGetCache() {
74
72
  return __awaiter(this, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"ExchangeKeysManager.js","sourceRoot":"","sources":["../../../icc-x-api/crypto/ExchangeKeysManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA;;;;;;;GAOG;AACH,MAAa,mBAAmB;IAG9B,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,uBAAuB,CAAA;IACrC,CAAC;IAED,YACmB,UAAqC,EACrC,uBAAgD,EAChD,YAA8B;QAF9B,eAAU,GAAV,UAAU,CAA2B;QACrC,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,iBAAY,GAAZ,YAAY,CAAkB;QATzC,UAAK,GAAyE,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAA;IAUrI,CAAC;IAEJ;;;;;;;OAOG;IACG,4BAA4B,CAAC,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AAE,EAAE,EAAE,CAAA;yBACvD;wBACD,aAAa,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;qBACpE;iBACF;aACF;YACD,OAAO,aAAa,CAAA;QACtB,CAAC;KAAA;CACF;AAhGD,kDAgGC","sourcesContent":["import { UserEncryptionKeysManager } from './UserEncryptionKeysManager'\nimport { BaseExchangeKeysManager } from './BaseExchangeKeysManager'\nimport { IccDataOwnerXApi } from '../icc-data-owner-x-api'\nimport { CryptoPrimitives } from './CryptoPrimitives'\nimport { CryptoStrategies } from './CryptoStrategies'\nimport { IcureStorageFacade } from '../storage/IcureStorageFacade'\nimport { DataOwnerTypeEnum } from '../../icc-api/model/DataOwnerTypeEnum'\n\ntype CacheValue =\n | {\n encrypted: { [fp: string]: string }[]\n }\n | {\n decrypted: Promise<CryptoKey[]>\n }\n\n/**\n * @internal This class is meant only for internal use and may be changed without notice.\n * More powerful version of {@link BaseExchangeKeysManager} with a simplified interface. Has the following functionalities:\n * - Caches results\n * - Automatically creates new exchange keys if none is available\n * - Automatically choose the public keys to use during the creation of new exchange keys\n * - Automatically retrieves the private keys to use during decryption.\n */\nexport class ExchangeKeysManager {\n private cache: Promise<{ [delegator: string]: { [delegate: string]: CacheValue } }> = Promise.reject(new Error('Cache not initialized'))\n\n get base(): BaseExchangeKeysManager {\n return this.baseExchangeKeysManager\n }\n\n constructor(\n private readonly keyManager: UserEncryptionKeysManager,\n private readonly baseExchangeKeysManager: BaseExchangeKeysManager,\n private readonly dataOwnerApi: IccDataOwnerXApi\n ) {}\n\n /**\n * Get all keys currently available for a delegator-delegate pair. At least one of the two data owners must be part of the hierarchy for the current\n * data owner.\n * @param delegatorId id of a delegator\n * @param delegateId id of a delegate\n * @throws if neither the delegator nor the delegate is part of the hierarchy of the current data owner.\n * @return all available exchange keys from the delegator-delegate pair.\n */\n async getDecryptionExchangeKeysFor(delegatorId: string, delegateId: string): Promise<CryptoKey[]> {\n const cache = await this.cache\n const entry = cache[delegatorId]?.[delegateId]\n if (entry != undefined) {\n if ('decrypted' in entry) {\n return await entry.decrypted\n } else {\n const decryptedPromise = this.decryptChunk(entry.encrypted)\n cache[delegatorId][delegateId] = { decrypted: decryptedPromise }\n return await decryptedPromise\n }\n } else {\n return []\n }\n }\n\n private async decryptChunk(encryptedKeys: { [fp: string]: string }[]): Promise<CryptoKey[]> {\n const decryptionKeys = this.keyManager.getDecryptionKeys()\n return (await this.base.tryDecryptExchangeKeys(encryptedKeys, decryptionKeys)).successfulDecryptions\n }\n\n /**\n * Reloads all exchange keys for the cache.\n */\n async reloadCache(): Promise<void> {\n this.cache = this.doGetCache()\n }\n\n private async doGetCache() {\n const hierarchy = await this.dataOwnerApi.getCurrentDataOwnerHierarchyIds()\n const encryptedKeysDataByHierarchyMember = Object.fromEntries(\n await Promise.all(\n hierarchy.map((doId) =>\n this.base.getAllExchangeKeysWith(doId, null).then(\n (\n res\n ): [\n string,\n {\n keysToOwner: { [p: string]: { [p: string]: { [p: string]: string } } }\n keysFromOwner: { [p: string]: { [p: string]: { [p: string]: string } } }\n }\n ] => [doId, res]\n )\n )\n )\n )\n const encryptedKeys: { [delegator: string]: { [delegate: string]: { encrypted: { [pubFp: string]: string }[] } } } = {}\n for (const [dataOwner, info] of Object.entries(encryptedKeysDataByHierarchyMember)) {\n for (const [delegator, encryptedByDelegatorFp] of Object.entries(info.keysToOwner)) {\n if (!encryptedKeys[delegator]) {\n encryptedKeys[delegator] = {}\n }\n if (!encryptedKeys[delegator][dataOwner]) {\n encryptedKeys[delegator][dataOwner] = { encrypted: [] }\n }\n const keysForDelegatorDelegate = encryptedKeys[delegator][dataOwner]\n for (const encryptedEntries of Object.values(encryptedByDelegatorFp)) {\n keysForDelegatorDelegate.encrypted.push(encryptedEntries)\n }\n }\n for (const encryptedByDelegateId of Object.values(info.keysFromOwner)) {\n for (const [delegate, encryptedEntries] of Object.entries(encryptedByDelegateId)) {\n if (!encryptedKeys[dataOwner]) {\n encryptedKeys[dataOwner] = {}\n }\n if (!encryptedKeys[dataOwner][delegate]) {\n encryptedKeys[dataOwner][delegate] = { encrypted: [] }\n }\n encryptedKeys[dataOwner][delegate].encrypted.push(encryptedEntries)\n }\n }\n }\n return encryptedKeys\n }\n}\n"]}
1
+ {"version":3,"file":"ExchangeKeysManager.js","sourceRoot":"","sources":["../../../icc-x-api/crypto/ExchangeKeysManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA;;;;;;;GAOG;AACH,MAAa,mBAAmB;IAG9B,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,uBAAuB,CAAA;IACrC,CAAC;IAED,YACmB,UAAqC,EACrC,uBAAgD,EAChD,YAA8B;QAF9B,eAAU,GAAV,UAAU,CAA2B;QACrC,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,iBAAY,GAAZ,YAAY,CAAkB;QATzC,UAAK,GAAyE,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAA;IAUrI,CAAC;IAEJ;;;;;;;OAOG;IACG,4BAA4B,CAAC,WAAmB,EAAE,UAAkB;;;YACxE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,KAAK,CAAA;YAC9B,MAAM,KAAK,GAAG,MAAA,KAAK,CAAC,WAAW,CAAC,0CAAG,UAAU,CAAC,CAAA;YAC9C,IAAI,KAAK,IAAI,SAAS,EAAE;gBACtB,IAAI,WAAW,IAAI,KAAK,EAAE;oBACxB,OAAO,MAAM,KAAK,CAAC,SAAS,CAAA;iBAC7B;qBAAM;oBACL,MAAM,gBAAgB,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;oBAC3D,KAAK,CAAC,WAAW,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAA;oBAChE,OAAO,MAAM,gBAAgB,CAAA;iBAC9B;aACF;iBAAM;gBACL,OAAO,EAA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S,EAAE,EAAE,EAAE,CAAA;qBACxD;oBACD,MAAM,wBAAwB,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAA;oBACpE,KAAK,MAAM,gBAAgB,IAAI,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE;wBACpE,wBAAwB,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;qBAC1D;iBACF;gBACD,KAAK,MAAM,qBAAqB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;oBACrE,KAAK,MAAM,CAAC,QAAQ,EAAE,gBAAgB,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE;wBAChF,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE;4BAC7B,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,CAAA;yBAC9B;wBACD,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EAAE;4BACvC,aAAa,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,CAAA;yBACvD;wBACD,aAAa,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;qBACpE;iBACF;aACF;YACD,OAAO,aAAa,CAAA;QACtB,CAAC;KAAA;CACF;AAhGD,kDAgGC","sourcesContent":["import { UserEncryptionKeysManager } from './UserEncryptionKeysManager'\nimport { BaseExchangeKeysManager } from './BaseExchangeKeysManager'\nimport { IccDataOwnerXApi } from '../icc-data-owner-x-api'\nimport { CryptoPrimitives } from './CryptoPrimitives'\nimport { CryptoStrategies } from './CryptoStrategies'\nimport { IcureStorageFacade } from '../storage/IcureStorageFacade'\nimport { DataOwnerTypeEnum } from '../../icc-api/model/DataOwnerTypeEnum'\n\ntype CacheValue =\n | {\n encrypted: { [fp: string]: string }[]\n }\n | {\n decrypted: Promise<CryptoKey[]>\n }\n\n/**\n * @internal This class is meant only for internal use and may be changed without notice.\n * More powerful version of {@link BaseExchangeKeysManager} with a simplified interface. Has the following functionalities:\n * - Caches results\n * - Automatically creates new exchange keys if none is available\n * - Automatically choose the public keys to use during the creation of new exchange keys\n * - Automatically retrieves the private keys to use during decryption.\n */\nexport class ExchangeKeysManager {\n private cache: Promise<{ [delegator: string]: { [delegate: string]: CacheValue } }> = Promise.reject(new Error('Cache not initialized'))\n\n get base(): BaseExchangeKeysManager {\n return this.baseExchangeKeysManager\n }\n\n constructor(\n private readonly keyManager: UserEncryptionKeysManager,\n private readonly baseExchangeKeysManager: BaseExchangeKeysManager,\n private readonly dataOwnerApi: IccDataOwnerXApi\n ) {}\n\n /**\n * Get all keys currently available for a delegator-delegate pair. At least one of the two data owners must be part of the hierarchy for the current\n * data owner.\n * @param delegatorId id of a delegator\n * @param delegateId id of a delegate\n * @throws if neither the delegator nor the delegate is part of the hierarchy of the current data owner.\n * @return all available exchange keys from the delegator-delegate pair.\n */\n async getDecryptionExchangeKeysFor(delegatorId: string, delegateId: string): Promise<CryptoKey[]> {\n const cache = await this.cache\n const entry = cache[delegatorId]?.[delegateId]\n if (entry != undefined) {\n if ('decrypted' in entry) {\n return await entry.decrypted\n } else {\n const decryptedPromise = this.decryptChunk(entry.encrypted)\n cache[delegatorId][delegateId] = { decrypted: decryptedPromise }\n return await decryptedPromise\n }\n } else {\n return []\n }\n }\n\n private async decryptChunk(encryptedKeys: { [fp: string]: string }[]): Promise<CryptoKey[]> {\n const decryptionKeys = this.keyManager.getDecryptionKeys()\n return (await this.base.tryDecryptExchangeKeys(encryptedKeys, decryptionKeys)).successfulDecryptions\n }\n\n /**\n * Reloads all exchange keys for the cache.\n */\n reloadCache(): void {\n this.cache = this.doGetCache() // Intentionally not awaited to make login feel faster\n }\n\n private async doGetCache() {\n const hierarchy = await this.dataOwnerApi.getCurrentDataOwnerHierarchyIds()\n const encryptedKeysDataByHierarchyMember = Object.fromEntries(\n await Promise.all(\n hierarchy.map((doId) =>\n this.base.getAllExchangeKeysWith(doId, null).then(\n (\n res\n ): [\n string,\n {\n keysToOwner: { [p: string]: { [p: string]: { [p: string]: string } } }\n keysFromOwner: { [p: string]: { [p: string]: { [p: string]: string } } }\n }\n ] => [doId, res]\n )\n )\n )\n )\n const encryptedKeys: { [delegator: string]: { [delegate: string]: { encrypted: { [pubFp: string]: string }[] } } } = {}\n for (const [dataOwner, info] of Object.entries(encryptedKeysDataByHierarchyMember)) {\n for (const [delegator, encryptedByDelegatorFp] of Object.entries(info.keysToOwner)) {\n if (!encryptedKeys[delegator]) {\n encryptedKeys[delegator] = {}\n }\n if (!encryptedKeys[delegator][dataOwner]) {\n encryptedKeys[delegator][dataOwner] = { encrypted: [] }\n }\n const keysForDelegatorDelegate = encryptedKeys[delegator][dataOwner]\n for (const encryptedEntries of Object.values(encryptedByDelegatorFp)) {\n keysForDelegatorDelegate.encrypted.push(encryptedEntries)\n }\n }\n for (const encryptedByDelegateId of Object.values(info.keysFromOwner)) {\n for (const [delegate, encryptedEntries] of Object.entries(encryptedByDelegateId)) {\n if (!encryptedKeys[dataOwner]) {\n encryptedKeys[dataOwner] = {}\n }\n if (!encryptedKeys[dataOwner][delegate]) {\n encryptedKeys[dataOwner][delegate] = { encrypted: [] }\n }\n encryptedKeys[dataOwner][delegate].encrypted.push(encryptedEntries)\n }\n }\n }\n return encryptedKeys\n }\n}\n"]}
@@ -286,8 +286,7 @@ function initialiseCryptoWithProvider(host, fetchImpl, groupSpecificAuthenticati
286
286
  yield new TransferKeysManager_1.TransferKeysManager(cryptoPrimitives, baseExchangeDataManager, dataOwnerApi, userEncryptionKeysManager, icureStorage).updateTransferKeys(yield dataOwnerApi.getCurrentDataOwnerStub());
287
287
  // TODO customise cache size?
288
288
  const exchangeKeysManager = new ExchangeKeysManager_1.ExchangeKeysManager(userEncryptionKeysManager, baseExchangeKeysManager, dataOwnerApi);
289
- // noinspection ES6MissingAwait
290
- exchangeKeysManager.reloadCache(); // Intentionally not awaited to make login feel faster
289
+ exchangeKeysManager.reloadCache();
291
290
  const accessControlSecretUtils = new AccessControlSecretUtils_1.AccessControlSecretUtils(cryptoPrimitives);
292
291
  const exchangeDataManager = yield (0, ExchangeDataManager_1.initialiseExchangeDataManagerForCurrentDataOwner)(baseExchangeDataManager, userEncryptionKeysManager, accessControlSecretUtils, cryptoStrategies, dataOwnerApi, cryptoPrimitives, !params.disableParentKeysInitialisation);
293
292
  if (params.injectExchangeData != null && params.injectExchangeData.details.length > 0) {