@icure/api 4.2.32 → 4.2.33

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 (91) hide show
  1. package/icc-api/api/IccCodeApi.d.ts +14 -1
  2. package/icc-api/api/IccCodeApi.js +33 -1
  3. package/icc-api/api/IccCodeApi.js.map +1 -1
  4. package/icc-api/api/XHR.js +1 -1
  5. package/icc-api/api/XHR.js.map +1 -1
  6. package/icc-api/iccApi.js +1 -5
  7. package/icc-api/iccApi.js.map +1 -1
  8. package/icc-api/index.js +1 -5
  9. package/icc-api/index.js.map +1 -1
  10. package/icc-api/model/Body.js +1 -1
  11. package/icc-api/model/Body.js.map +1 -1
  12. package/icc-api/model/Body1.js +1 -1
  13. package/icc-api/model/Body1.js.map +1 -1
  14. package/icc-api/model/Body2.js +1 -1
  15. package/icc-api/model/Body2.js.map +1 -1
  16. package/icc-api/model/Body3.js +1 -1
  17. package/icc-api/model/Body3.js.map +1 -1
  18. package/icc-api/model/ByteArray.js +1 -1
  19. package/icc-api/model/ByteArray.js.map +1 -1
  20. package/icc-api/model/Content.js +1 -1
  21. package/icc-api/model/Content.js.map +1 -1
  22. package/icc-api/model/Device.js +1 -1
  23. package/icc-api/model/Device.js.map +1 -1
  24. package/icc-api/model/Document.js +1 -1
  25. package/icc-api/model/Document.js.map +1 -1
  26. package/icc-api/model/DocumentTemplate.js +1 -1
  27. package/icc-api/model/DocumentTemplate.js.map +1 -1
  28. package/icc-api/model/HealthcareParty.js +1 -1
  29. package/icc-api/model/HealthcareParty.js.map +1 -1
  30. package/icc-api/model/MimeAttachment.js +1 -1
  31. package/icc-api/model/MimeAttachment.js.map +1 -1
  32. package/icc-api/model/Patient.js +1 -1
  33. package/icc-api/model/Patient.js.map +1 -1
  34. package/icc-api/model/UserGroup.d.ts +3 -0
  35. package/icc-api/model/UserGroup.js.map +1 -1
  36. package/icc-api/model/models.js +1 -5
  37. package/icc-api/model/models.js.map +1 -1
  38. package/icc-x-api/crypto/AES.js +1 -1
  39. package/icc-x-api/crypto/AES.js.map +1 -1
  40. package/icc-x-api/crypto/shamir.js +1 -1
  41. package/icc-x-api/crypto/shamir.js.map +1 -1
  42. package/icc-x-api/crypto/utils.js +36 -36
  43. package/icc-x-api/crypto/utils.js.map +1 -1
  44. package/icc-x-api/filters/CodeIdsByTypeCodeVersionIntervalFilter.d.ts +23 -0
  45. package/icc-x-api/filters/CodeIdsByTypeCodeVersionIntervalFilter.js +24 -0
  46. package/icc-x-api/filters/CodeIdsByTypeCodeVersionIntervalFilter.js.map +1 -0
  47. package/icc-x-api/filters/PatientByHcPartyGenderEducationProfession.js +0 -1
  48. package/icc-x-api/filters/PatientByHcPartyGenderEducationProfession.js.map +1 -1
  49. package/icc-x-api/filters/UsersByPatientIdFilter.d.ts +18 -0
  50. package/icc-x-api/filters/UsersByPatientIdFilter.js +24 -0
  51. package/icc-x-api/filters/UsersByPatientIdFilter.js.map +1 -0
  52. package/icc-x-api/filters/filters.js +3 -7
  53. package/icc-x-api/filters/filters.js.map +1 -1
  54. package/icc-x-api/icc-accesslog-x-api.js +4 -4
  55. package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
  56. package/icc-x-api/icc-bekmehr-x-api.js +2 -2
  57. package/icc-x-api/icc-bekmehr-x-api.js.map +1 -1
  58. package/icc-x-api/icc-calendar-item-x-api.js +4 -4
  59. package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
  60. package/icc-x-api/icc-contact-x-api.js +11 -11
  61. package/icc-x-api/icc-contact-x-api.js.map +1 -1
  62. package/icc-x-api/icc-crypto-x-api.d.ts +1 -2
  63. package/icc-x-api/icc-crypto-x-api.js +48 -48
  64. package/icc-x-api/icc-crypto-x-api.js.map +1 -1
  65. package/icc-x-api/icc-doctemplate-x-api.js +2 -2
  66. package/icc-x-api/icc-doctemplate-x-api.js.map +1 -1
  67. package/icc-x-api/icc-document-x-api.js +3 -3
  68. package/icc-x-api/icc-document-x-api.js.map +1 -1
  69. package/icc-x-api/icc-form-x-api.js +3 -3
  70. package/icc-x-api/icc-form-x-api.js.map +1 -1
  71. package/icc-x-api/icc-hcparty-x-api.js +4 -4
  72. package/icc-x-api/icc-hcparty-x-api.js.map +1 -1
  73. package/icc-x-api/icc-helement-x-api.js +5 -5
  74. package/icc-x-api/icc-helement-x-api.js.map +1 -1
  75. package/icc-x-api/icc-maintenance-task-x-api.d.ts +2 -2
  76. package/icc-x-api/icc-maintenance-task-x-api.js +9 -9
  77. package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
  78. package/icc-x-api/icc-patient-x-api.js +36 -36
  79. package/icc-x-api/icc-patient-x-api.js.map +1 -1
  80. package/icc-x-api/index.d.ts +1 -1
  81. package/icc-x-api/index.js +2 -6
  82. package/icc-x-api/index.js.map +1 -1
  83. package/icc-x-api/utils/binary-utils.js +5 -5
  84. package/icc-x-api/utils/binary-utils.js.map +1 -1
  85. package/icc-x-api/utils/formatting-util.js +3 -3
  86. package/icc-x-api/utils/formatting-util.js.map +1 -1
  87. package/icc-x-api/utils/index.js +1 -5
  88. package/icc-x-api/utils/index.js.map +1 -1
  89. package/index.js +1 -5
  90. package/index.js.map +1 -1
  91. package/package.json +1 -1
@@ -28,6 +28,12 @@ export declare class IccCodeApi {
28
28
  * @param body
29
29
  */
30
30
  createCode(body?: Code): Promise<Code>;
31
+ /**
32
+ * Create a batch of code entities. Fields Type, Code and Version are required for each code.
33
+ * @summary Create a batch of codes
34
+ * @param body
35
+ */
36
+ createCodes(body?: Array<Code>): Promise<Array<Code>>;
31
37
  /**
32
38
  * Returns a list of codes along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.
33
39
  * @summary Filter codes
@@ -75,11 +81,12 @@ export declare class IccCodeApi {
75
81
  * @param types
76
82
  * @param language
77
83
  * @param label
84
+ * @param version
78
85
  * @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
79
86
  * @param startDocumentId A code document ID
80
87
  * @param limit Number of rows
81
88
  */
82
- findPaginatedCodesByLabel(region?: string, types?: string, language?: string, label?: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListCode>;
89
+ findPaginatedCodesByLabel(region?: string, types?: string, language?: string, label?: string, version?: string, startKey?: string, startDocumentId?: string, limit?: number): Promise<PaginatedListCode>;
83
90
  /**
84
91
  * Returns a list of codes matched with given input.
85
92
  * @summary Gets paginated list of codes by link and link type.
@@ -135,4 +142,10 @@ export declare class IccCodeApi {
135
142
  * @param body
136
143
  */
137
144
  modifyCode(body?: Code): Promise<Code>;
145
+ /**
146
+ * Modification of (type, code, version) is not allowed.
147
+ * @summary Modify a batch of codes
148
+ * @param body
149
+ */
150
+ modifyCodes(body?: Array<Code>): Promise<Array<Code>>;
138
151
  }
@@ -43,6 +43,21 @@ class IccCodeApi {
43
43
  .then((doc) => new Code_1.Code(doc.body))
44
44
  .catch((err) => this.handleError(err));
45
45
  }
46
+ /**
47
+ * Create a batch of code entities. Fields Type, Code and Version are required for each code.
48
+ * @summary Create a batch of codes
49
+ * @param body
50
+ */
51
+ createCodes(body) {
52
+ let _body = null;
53
+ _body = body;
54
+ const _url = this.host + `/code/batch` + '?ts=' + new Date().getTime();
55
+ let headers = this.headers;
56
+ headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
57
+ return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
58
+ .then((doc) => doc.body.map((it) => new Code_1.Code(it)))
59
+ .catch((err) => this.handleError(err));
60
+ }
46
61
  /**
47
62
  * Returns a list of codes along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.
48
63
  * @summary Filter codes
@@ -151,11 +166,12 @@ class IccCodeApi {
151
166
  * @param types
152
167
  * @param language
153
168
  * @param label
169
+ * @param version
154
170
  * @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
155
171
  * @param startDocumentId A code document ID
156
172
  * @param limit Number of rows
157
173
  */
158
- findPaginatedCodesByLabel(region, types, language, label, startKey, startDocumentId, limit) {
174
+ findPaginatedCodesByLabel(region, types, language, label, version, startKey, startDocumentId, limit) {
159
175
  let _body = null;
160
176
  const _url = this.host +
161
177
  `/code/byLabel` +
@@ -165,6 +181,7 @@ class IccCodeApi {
165
181
  (types ? '&types=' + encodeURIComponent(String(types)) : '') +
166
182
  (language ? '&language=' + encodeURIComponent(String(language)) : '') +
167
183
  (label ? '&label=' + encodeURIComponent(String(label)) : '') +
184
+ (version ? '&version=' + encodeURIComponent(String(version)) : '') +
168
185
  (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +
169
186
  (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
170
187
  (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
@@ -303,6 +320,21 @@ class IccCodeApi {
303
320
  .then((doc) => new Code_1.Code(doc.body))
304
321
  .catch((err) => this.handleError(err));
305
322
  }
323
+ /**
324
+ * Modification of (type, code, version) is not allowed.
325
+ * @summary Modify a batch of codes
326
+ * @param body
327
+ */
328
+ modifyCodes(body) {
329
+ let _body = null;
330
+ _body = body;
331
+ const _url = this.host + `/code/batch` + '?ts=' + new Date().getTime();
332
+ let headers = this.headers;
333
+ headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
334
+ return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
335
+ .then((doc) => doc.body.map((it) => new Code_1.Code(it)))
336
+ .catch((err) => this.handleError(err));
337
+ }
306
338
  }
307
339
  exports.IccCodeApi = IccCodeApi;
308
340
  //# sourceMappingURL=IccCodeApi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IccCodeApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccCodeApi.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAE3B,wCAAoC;AAEpC,kEAA8D;AAC9D,wCAAoC;AAEp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GAAG,IAAI,CAAA;QAChB,KAAK,GAAG,IAAI,CAAA;QAEZ,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;QAChE,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,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC;aAChE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,WAAI,CAAC,GAAG,CAAC,IAAY,CAAC,CAAC;aACzC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,CAAC;CACF;AAvWD,gCAuWC","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 { AbstractFilterCode } from '../model/AbstractFilterCode'\nimport { Code } from '../model/Code'\nimport { FilterChainCode } from '../model/FilterChainCode'\nimport { PaginatedListCode } from '../model/PaginatedListCode'\nimport { Unit } from '../model/Unit'\n\nexport class IccCodeApi {\n host: string\n headers: Array<XHR.Header>\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>) {\n this.host = host\n this.headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\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 * Create a code entity. Fields Type, Code and Version are required.\n * @summary Create a code\n * @param body\n */\n createCode(body?: Code): Promise<Code> {\n let _body = null\n _body = body\n\n const _url = this.host + `/code` + '?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)\n .then((doc) => new Code(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.\n * @summary Filter codes\n * @param body\n * @param startKey The start key for pagination, depends on the filters used\n * @param startDocumentId A patient document ID\n * @param limit Number of rows\n * @param skip Skip rows\n * @param sort Sort key\n * @param desc Descending\n */\n filterCodesBy(\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n skip?: number,\n sort?: string,\n desc?: boolean,\n body?: FilterChainCode\n ): Promise<PaginatedListCode> {\n let _body = null\n _body = body\n\n const _url =\n this.host +\n `/code/filter` +\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 (skip ? '&skip=' + encodeURIComponent(String(skip)) : '') +\n (sort ? '&sort=' + encodeURIComponent(String(sort)) : '') +\n (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\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)\n .then((doc) => new PaginatedListCode(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of code types matched with given input.\n * @summary Get list of code types by region and type.\n * @param region Code region\n * @param type Code type\n */\n findCodeTypes(region?: string, type?: string): Promise<Array<string>> {\n let _body = null\n\n const _url =\n this.host +\n `/code/codetype/byRegionType` +\n '?ts=' +\n new Date().getTime() +\n (region ? '&region=' + encodeURIComponent(String(region)) : '') +\n (type ? '&type=' + encodeURIComponent(String(type)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\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 codes matched with given input.\n * @summary Gets list of codes by code, type and version\n * @param region Code region\n * @param type Code type\n * @param code Code code\n * @param version Code version\n */\n findCodes(region?: string, type?: string, code?: string, version?: string): Promise<Array<Code>> {\n let _body = null\n\n const _url =\n this.host +\n `/code/byRegionTypeCode` +\n '?ts=' +\n new Date().getTime() +\n (region ? '&region=' + encodeURIComponent(String(region)) : '') +\n (type ? '&type=' + encodeURIComponent(String(type)) : '') +\n (code ? '&code=' + encodeURIComponent(String(code)) : '') +\n (version ? '&version=' + encodeURIComponent(String(version)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Code(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input.\n * @summary Gets paginated list of codes by code, type and version.\n * @param region\n * @param type\n * @param code\n * @param version\n * @param startKey The start key for pagination\n * @param startDocumentId A code document ID\n * @param limit Number of rows\n */\n findPaginatedCodes(\n region?: string,\n type?: string,\n code?: string,\n version?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListCode> {\n let _body = null\n\n const _url =\n this.host +\n `/code` +\n '?ts=' +\n new Date().getTime() +\n (region ? '&region=' + encodeURIComponent(String(region)) : '') +\n (type ? '&type=' + encodeURIComponent(String(type)) : '') +\n (code ? '&code=' + encodeURIComponent(String(code)) : '') +\n (version ? '&version=' + encodeURIComponent(String(version)) : '') +\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)\n .then((doc) => new PaginatedListCode(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, pagination is not supported\n * @summary Get paginated list of codes by code, type and version.\n * @param region\n * @param types\n * @param language\n * @param 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 code document ID\n * @param limit Number of rows\n */\n findPaginatedCodesByLabel(\n region?: string,\n types?: string,\n language?: string,\n label?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListCode> {\n let _body = null\n\n const _url =\n this.host +\n `/code/byLabel` +\n '?ts=' +\n new Date().getTime() +\n (region ? '&region=' + encodeURIComponent(String(region)) : '') +\n (types ? '&types=' + encodeURIComponent(String(types)) : '') +\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)\n .then((doc) => new PaginatedListCode(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input.\n * @summary Gets paginated list of codes by link and link type.\n * @param linkType\n * @param linkedId\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 code document ID\n * @param limit Number of rows\n */\n findPaginatedCodesWithLink(\n linkType: string,\n linkedId?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListCode> {\n let _body = null\n\n const _url =\n this.host +\n `/code/link/${encodeURIComponent(String(linkType))}` +\n '?ts=' +\n new Date().getTime() +\n (linkedId ? '&linkedId=' + encodeURIComponent(String(linkedId)) : '') +\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)\n .then((doc) => new PaginatedListCode(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of tag types matched with given input.\n * @summary Gets list of tag types by region and type.\n * @param region Code region\n * @param type Code type\n */\n findTagTypes(region?: string, type?: string): Promise<Array<string>> {\n let _body = null\n\n const _url =\n this.host +\n `/code/tagtype/byRegionType` +\n '?ts=' +\n new Date().getTime() +\n (region ? '&region=' + encodeURIComponent(String(region)) : '') +\n (type ? '&type=' + encodeURIComponent(String(type)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\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 * Get a code based on its id\n * @summary Get a code by id\n * @param codeId Code id\n */\n getCode(codeId: string): Promise<Code> {\n let _body = null\n\n const _url = this.host + `/code/${encodeURIComponent(String(codeId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new Code(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Get a code based on (type, code, version) as query strings. (type, code, version) is unique.\n * @summary Get a code\n * @param type Code type\n * @param code Code code\n * @param version Code version\n */\n getCodeWithParts(type: string, code: string, version: string): Promise<Code> {\n let _body = null\n\n const _url =\n this.host +\n `/code/${encodeURIComponent(String(type))}/${encodeURIComponent(String(code))}/${encodeURIComponent(String(version))}` +\n '?ts=' +\n new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new Code(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Get a list of codes by ids/keys. Keys must be delimited by coma\n * @summary Gets a list of codes by ids\n * @param codeIds\n */\n getCodes(codeIds: string): Promise<Array<Code>> {\n let _body = null\n\n const _url = this.host + `/code/byIds/${encodeURIComponent(String(codeIds))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Code(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Import codes from the resources XML file depending on the passed pathVariable\n * @summary Import codes\n * @param codeType\n */\n importCodes(codeType: string): Promise<Unit> {\n let _body = null\n\n const _url = this.host + `/code/${encodeURIComponent(String(codeType))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)\n .then((doc) => new Unit(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of code matching the provided filter for the current user (HcParty)\n * @param body\n */\n matchCodesBy(body?: AbstractFilterCode): Promise<Array<string>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/code/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('POST', _url, headers, _body, this.fetchImpl)\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 * Modification of (type, code, version) is not allowed.\n * @summary Modify a code\n * @param body\n */\n modifyCode(body?: Code): Promise<Code> {\n let _body = null\n _body = body\n\n const _url = this.host + `/code` + '?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)\n .then((doc) => new Code(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
1
+ {"version":3,"file":"IccCodeApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccCodeApi.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAE3B,wCAAoC;AAEpC,kEAA8D;AAC9D,wCAAoC;AAEpC,MAAa,UAAU;IAKrB,YAAY,IAAY,EAAE,OAAY,EAAE,SAAyE;QAC/G,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,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,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;IACH,UAAU,CAAC,IAAW;QACpB,IAAI,KAAK,GAAG,IAAI,CAAA;QAChB,KAAK,GAAG,IAAI,CAAA;QAEZ,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;QAChE,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC1B,OAAO,GAAG,OAAO,CAAC,MAA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E,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,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC;aAChE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAE,GAAG,CAAC,IAAoB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,WAAI,CAAC,EAAE,CAAC,CAAC,CAAC;aAClE,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,CAAC;CACF;AA5YD,gCA4YC","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 { AbstractFilterCode } from '../model/AbstractFilterCode'\nimport { Code } from '../model/Code'\nimport { FilterChainCode } from '../model/FilterChainCode'\nimport { PaginatedListCode } from '../model/PaginatedListCode'\nimport { Unit } from '../model/Unit'\n\nexport class IccCodeApi {\n host: string\n headers: Array<XHR.Header>\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>) {\n this.host = host\n this.headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\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 * Create a code entity. Fields Type, Code and Version are required.\n * @summary Create a code\n * @param body\n */\n createCode(body?: Code): Promise<Code> {\n let _body = null\n _body = body\n\n const _url = this.host + `/code` + '?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)\n .then((doc) => new Code(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Create a batch of code entities. Fields Type, Code and Version are required for each code.\n * @summary Create a batch of codes\n * @param body\n */\n createCodes(body?: Array<Code>): Promise<Array<Code>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/code/batch` + '?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)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Code(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.\n * @summary Filter codes\n * @param body\n * @param startKey The start key for pagination, depends on the filters used\n * @param startDocumentId A patient document ID\n * @param limit Number of rows\n * @param skip Skip rows\n * @param sort Sort key\n * @param desc Descending\n */\n filterCodesBy(\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n skip?: number,\n sort?: string,\n desc?: boolean,\n body?: FilterChainCode\n ): Promise<PaginatedListCode> {\n let _body = null\n _body = body\n\n const _url =\n this.host +\n `/code/filter` +\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 (skip ? '&skip=' + encodeURIComponent(String(skip)) : '') +\n (sort ? '&sort=' + encodeURIComponent(String(sort)) : '') +\n (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\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)\n .then((doc) => new PaginatedListCode(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of code types matched with given input.\n * @summary Get list of code types by region and type.\n * @param region Code region\n * @param type Code type\n */\n findCodeTypes(region?: string, type?: string): Promise<Array<string>> {\n let _body = null\n\n const _url =\n this.host +\n `/code/codetype/byRegionType` +\n '?ts=' +\n new Date().getTime() +\n (region ? '&region=' + encodeURIComponent(String(region)) : '') +\n (type ? '&type=' + encodeURIComponent(String(type)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\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 codes matched with given input.\n * @summary Gets list of codes by code, type and version\n * @param region Code region\n * @param type Code type\n * @param code Code code\n * @param version Code version\n */\n findCodes(region?: string, type?: string, code?: string, version?: string): Promise<Array<Code>> {\n let _body = null\n\n const _url =\n this.host +\n `/code/byRegionTypeCode` +\n '?ts=' +\n new Date().getTime() +\n (region ? '&region=' + encodeURIComponent(String(region)) : '') +\n (type ? '&type=' + encodeURIComponent(String(type)) : '') +\n (code ? '&code=' + encodeURIComponent(String(code)) : '') +\n (version ? '&version=' + encodeURIComponent(String(version)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Code(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input.\n * @summary Gets paginated list of codes by code, type and version.\n * @param region\n * @param type\n * @param code\n * @param version\n * @param startKey The start key for pagination\n * @param startDocumentId A code document ID\n * @param limit Number of rows\n */\n findPaginatedCodes(\n region?: string,\n type?: string,\n code?: string,\n version?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListCode> {\n let _body = null\n\n const _url =\n this.host +\n `/code` +\n '?ts=' +\n new Date().getTime() +\n (region ? '&region=' + encodeURIComponent(String(region)) : '') +\n (type ? '&type=' + encodeURIComponent(String(type)) : '') +\n (code ? '&code=' + encodeURIComponent(String(code)) : '') +\n (version ? '&version=' + encodeURIComponent(String(version)) : '') +\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)\n .then((doc) => new PaginatedListCode(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, pagination is not supported\n * @summary Get paginated list of codes by code, type and version.\n * @param region\n * @param types\n * @param language\n * @param label\n * @param version\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 code document ID\n * @param limit Number of rows\n */\n findPaginatedCodesByLabel(\n region?: string,\n types?: string,\n language?: string,\n label?: string,\n version?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListCode> {\n let _body = null\n\n const _url =\n this.host +\n `/code/byLabel` +\n '?ts=' +\n new Date().getTime() +\n (region ? '&region=' + encodeURIComponent(String(region)) : '') +\n (types ? '&types=' + encodeURIComponent(String(types)) : '') +\n (language ? '&language=' + encodeURIComponent(String(language)) : '') +\n (label ? '&label=' + encodeURIComponent(String(label)) : '') +\n (version ? '&version=' + encodeURIComponent(String(version)) : '') +\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)\n .then((doc) => new PaginatedListCode(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of codes matched with given input.\n * @summary Gets paginated list of codes by link and link type.\n * @param linkType\n * @param linkedId\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 code document ID\n * @param limit Number of rows\n */\n findPaginatedCodesWithLink(\n linkType: string,\n linkedId?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListCode> {\n let _body = null\n\n const _url =\n this.host +\n `/code/link/${encodeURIComponent(String(linkType))}` +\n '?ts=' +\n new Date().getTime() +\n (linkedId ? '&linkedId=' + encodeURIComponent(String(linkedId)) : '') +\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)\n .then((doc) => new PaginatedListCode(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of tag types matched with given input.\n * @summary Gets list of tag types by region and type.\n * @param region Code region\n * @param type Code type\n */\n findTagTypes(region?: string, type?: string): Promise<Array<string>> {\n let _body = null\n\n const _url =\n this.host +\n `/code/tagtype/byRegionType` +\n '?ts=' +\n new Date().getTime() +\n (region ? '&region=' + encodeURIComponent(String(region)) : '') +\n (type ? '&type=' + encodeURIComponent(String(type)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\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 * Get a code based on its id\n * @summary Get a code by id\n * @param codeId Code id\n */\n getCode(codeId: string): Promise<Code> {\n let _body = null\n\n const _url = this.host + `/code/${encodeURIComponent(String(codeId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new Code(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Get a code based on (type, code, version) as query strings. (type, code, version) is unique.\n * @summary Get a code\n * @param type Code type\n * @param code Code code\n * @param version Code version\n */\n getCodeWithParts(type: string, code: string, version: string): Promise<Code> {\n let _body = null\n\n const _url =\n this.host +\n `/code/${encodeURIComponent(String(type))}/${encodeURIComponent(String(code))}/${encodeURIComponent(String(version))}` +\n '?ts=' +\n new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new Code(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Get a list of codes by ids/keys. Keys must be delimited by coma\n * @summary Gets a list of codes by ids\n * @param codeIds\n */\n getCodes(codeIds: string): Promise<Array<Code>> {\n let _body = null\n\n const _url = this.host + `/code/byIds/${encodeURIComponent(String(codeIds))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Code(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Import codes from the resources XML file depending on the passed pathVariable\n * @summary Import codes\n * @param codeType\n */\n importCodes(codeType: string): Promise<Unit> {\n let _body = null\n\n const _url = this.host + `/code/${encodeURIComponent(String(codeType))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)\n .then((doc) => new Unit(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of code matching the provided filter for the current user (HcParty)\n * @param body\n */\n matchCodesBy(body?: AbstractFilterCode): Promise<Array<string>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/code/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('POST', _url, headers, _body, this.fetchImpl)\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 * Modification of (type, code, version) is not allowed.\n * @summary Modify a code\n * @param body\n */\n modifyCode(body?: Code): Promise<Code> {\n let _body = null\n _body = body\n\n const _url = this.host + `/code` + '?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)\n .then((doc) => new Code(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Modification of (type, code, version) is not allowed.\n * @summary Modify a batch of codes\n * @param body\n */\n modifyCodes(body?: Array<Code>): Promise<Array<Code>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/code/batch` + '?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)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Code(it)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
@@ -87,7 +87,7 @@ var XHR;
87
87
  ? {
88
88
  body: !contentType || contentType.data === 'application/json'
89
89
  ? JSON.stringify(data, (k, v) => {
90
- return v instanceof ArrayBuffer || v instanceof Uint8Array ? (0, ModelHelper_1.ua2b64)(v) : v;
90
+ return v instanceof ArrayBuffer || v instanceof Uint8Array ? ModelHelper_1.ua2b64(v) : v;
91
91
  })
92
92
  : data,
93
93
  }
@@ -1 +1 @@
1
- {"version":3,"file":"XHR.js","sourceRoot":"","sources":["../../../icc-api/api/XHR.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAA6C;AAE7C,IAAiB,GAAG,CA4JnB;AA5JD,WAAiB,GAAG;IAClB,MAAa,MAAM;QAIjB,Y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AAC,MAAM,EAAE,CAAA;wBAC3F,MAAM,IAAI,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;qBACpF;oBACD,MAAM,EAAE,GAAG,mBAAmB,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,YAAY,CAAA;oBACtF,OAAO,CACL,EAAE,CAAC,UAAU,CAAC,kBAAkB,CAAC;wBAC/B,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE;wBACjB,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC5D,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE;4BACjB,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,CAC3B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;iBAChD;YACH,CAAC;SAAA,CAAC,CAAA;IACN,CAAC;IA1Fe,eAAW,cA0F1B,CAAA;AACH,CAAC,EA5JgB,GAAG,GAAH,WAAG,KAAH,WAAG,QA4JnB","sourcesContent":["import { ua2b64 } from '../model/ModelHelper'\n\nexport namespace XHR {\n export class Header {\n header: string\n data: string\n\n constructor(header: string, data: string) {\n this.header = header\n this.data = data\n }\n }\n\n export class Data {\n statusCode: number\n contentType: string\n body: JSON | Array<JSON> | any //stream bytes|json|array<json>\n\n constructor(status: number, contentType: string, body: JSON | Array<JSON> | any) {\n this.statusCode = status\n this.contentType = contentType\n this.body = body\n }\n }\n\n export class XHRError extends Error {\n statusCode: number\n errorCode: string\n headers: Headers\n message: string\n url: string\n\n constructor(url: string, message: string, status: number, errorCode: string, headers: Headers) {\n super(message)\n this.url = url\n this.statusCode = status\n this.message = message\n this.errorCode = errorCode\n this.headers = headers\n }\n }\n\n function fetchWithTimeout(\n url: string,\n init: RequestInit,\n timeout = 10000,\n fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response> = typeof window !== 'undefined'\n ? window.fetch\n : typeof self !== 'undefined'\n ? self.fetch\n : fetch\n ): Promise<Response> {\n return new Promise((resolve, reject) => {\n // Set timeout timer\n let timer = setTimeout(() => reject({ message: 'Request timed out', status: 'Request timed out' }), timeout)\n fetchImpl(url, init)\n .then((response) => {\n clearTimeout(timer)\n resolve(response)\n })\n .catch((err) => {\n clearTimeout(timer)\n reject(err)\n })\n })\n }\n\n export function sendCommand(\n method: string,\n url: string,\n headers: Array<Header> | null,\n data: string | any = '',\n fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response> = typeof window !== 'undefined'\n ? window.fetch\n : typeof self !== 'undefined'\n ? self.fetch\n : fetch,\n contentTypeOverride?: 'application/json' | 'text/plain' | 'application/octet-stream',\n forceAuthentication = false\n ): Promise<Data> {\n const forceSendAuthorization = forceAuthentication || headers?.find((it) => it.header?.toLowerCase() === 'force-authentication')?.data === 'true'\n const contentType = headers && headers.find((it) => (it.header ? it.header.toLowerCase() === 'content-type' : false))\n const clientTimeout = headers && headers.find((it) => (it.header ? it.header.toUpperCase() === 'X-CLIENT-SIDE-TIMEOUT' : false))\n const timeout = clientTimeout ? Number(clientTimeout.data) : 600000\n return fetchWithTimeout(\n url,\n Object.assign(\n {\n method: method,\n credentials: 'include' as RequestCredentials,\n headers: (headers ?? [])\n .filter(\n (h) =>\n (forceSendAuthorization || h.header.toLowerCase() !== 'authorization') &&\n (h.header?.toLowerCase() !== 'content-type' || h.data !== 'multipart/form-data') &&\n h.header?.toUpperCase() !== 'X-CLIENT-SIDE-TIMEOUT' &&\n h.header?.toLowerCase() !== 'force-authentication'\n )\n .reduce(\n (acc: { [key: string]: string }, h) => {\n acc[h.header] = h.data\n return acc\n },\n { 'X-Requested-With': 'XMLHttpRequest' }\n ),\n },\n method === 'POST' || method === 'PUT'\n ? {\n body:\n !contentType || contentType.data === 'application/json'\n ? JSON.stringify(data, (k, v) => {\n return v instanceof ArrayBuffer || v instanceof Uint8Array ? ua2b64(v) : v\n })\n : data,\n }\n : {}\n ),\n timeout,\n fetchImpl\n )\n .catch(async (e) => {\n if (!forceSendAuthorization) {\n //Might be due to a 401\n return {\n status: 401,\n statusText: e.message,\n arrayBuffer: () => Promise.resolve(new ArrayBuffer(0)),\n json: () => Promise.resolve({}),\n text: () => Promise.resolve(''),\n headers: new Headers(),\n }\n } else {\n throw e\n }\n })\n .then(async function (response) {\n if (response.status === 401 && !forceSendAuthorization) {\n return sendCommand(method, url, headers, data, fetchImpl, contentTypeOverride, true)\n } else {\n if (response.status >= 400) {\n const error: {\n error: string\n message: string\n status: number\n } = { error: response.statusText, message: await response.text(), status: response.status }\n throw new XHRError(url, error.message, error.status, error.error, response.headers)\n }\n const ct = contentTypeOverride || response.headers.get('content-type') || 'text/plain'\n return (\n ct.startsWith('application/json')\n ? response.json()\n : ct.startsWith('application/xml') || ct.startsWith('text/')\n ? response.text()\n : response.arrayBuffer()\n ).then((d) => new Data(response.status, ct, d))\n }\n })\n }\n}\n"]}
1
+ {"version":3,"file":"XHR.js","sourceRoot":"","sources":["../../../icc-api/api/XHR.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAA6C;AAE7C,IAAiB,GAAG,CA4JnB;AA5JD,WAAiB,GAAG;IAClB,MAAa,MAAM;QAIjB,YAAY,MAAc,EAAE,IAAY;YACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;YACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAClB,CAAC;KACF;IARY,UAAM,SAQlB,CAAA;IAED,MAAa,IAAI;QAKf,YAAY,MAAc,EAAE,WAAmB,EAAE,IAA8B;YAC7E,IAAI,CAAC,UAAU,GAAG,MAAM,CAAA;YACxB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;YAC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AAE,CAAC,UAAU,CAAC,kBAAkB,CAAC;wBAC/B,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE;wBACjB,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC5D,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE;4BACjB,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,CAC3B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;iBAChD;YACH,CAAC;SAAA,CAAC,CAAA;IACN,CAAC;IA1Fe,eAAW,cA0F1B,CAAA;AACH,CAAC,EA5JgB,GAAG,GAAH,WAAG,KAAH,WAAG,QA4JnB","sourcesContent":["import { ua2b64 } from '../model/ModelHelper'\n\nexport namespace XHR {\n export class Header {\n header: string\n data: string\n\n constructor(header: string, data: string) {\n this.header = header\n this.data = data\n }\n }\n\n export class Data {\n statusCode: number\n contentType: string\n body: JSON | Array<JSON> | any //stream bytes|json|array<json>\n\n constructor(status: number, contentType: string, body: JSON | Array<JSON> | any) {\n this.statusCode = status\n this.contentType = contentType\n this.body = body\n }\n }\n\n export class XHRError extends Error {\n statusCode: number\n errorCode: string\n headers: Headers\n message: string\n url: string\n\n constructor(url: string, message: string, status: number, errorCode: string, headers: Headers) {\n super(message)\n this.url = url\n this.statusCode = status\n this.message = message\n this.errorCode = errorCode\n this.headers = headers\n }\n }\n\n function fetchWithTimeout(\n url: string,\n init: RequestInit,\n timeout = 10000,\n fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response> = typeof window !== 'undefined'\n ? window.fetch\n : typeof self !== 'undefined'\n ? self.fetch\n : fetch\n ): Promise<Response> {\n return new Promise((resolve, reject) => {\n // Set timeout timer\n let timer = setTimeout(() => reject({ message: 'Request timed out', status: 'Request timed out' }), timeout)\n fetchImpl(url, init)\n .then((response) => {\n clearTimeout(timer)\n resolve(response)\n })\n .catch((err) => {\n clearTimeout(timer)\n reject(err)\n })\n })\n }\n\n export function sendCommand(\n method: string,\n url: string,\n headers: Array<Header> | null,\n data: string | any = '',\n fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response> = typeof window !== 'undefined'\n ? window.fetch\n : typeof self !== 'undefined'\n ? self.fetch\n : fetch,\n contentTypeOverride?: 'application/json' | 'text/plain' | 'application/octet-stream',\n forceAuthentication = false\n ): Promise<Data> {\n const forceSendAuthorization = forceAuthentication || headers?.find((it) => it.header?.toLowerCase() === 'force-authentication')?.data === 'true'\n const contentType = headers && headers.find((it) => (it.header ? it.header.toLowerCase() === 'content-type' : false))\n const clientTimeout = headers && headers.find((it) => (it.header ? it.header.toUpperCase() === 'X-CLIENT-SIDE-TIMEOUT' : false))\n const timeout = clientTimeout ? Number(clientTimeout.data) : 600000\n return fetchWithTimeout(\n url,\n Object.assign(\n {\n method: method,\n credentials: 'include' as RequestCredentials,\n headers: (headers ?? [])\n .filter(\n (h) =>\n (forceSendAuthorization || h.header.toLowerCase() !== 'authorization') &&\n (h.header?.toLowerCase() !== 'content-type' || h.data !== 'multipart/form-data') &&\n h.header?.toUpperCase() !== 'X-CLIENT-SIDE-TIMEOUT' &&\n h.header?.toLowerCase() !== 'force-authentication'\n )\n .reduce(\n (acc: { [key: string]: string }, h) => {\n acc[h.header] = h.data\n return acc\n },\n { 'X-Requested-With': 'XMLHttpRequest' }\n ),\n },\n method === 'POST' || method === 'PUT'\n ? {\n body:\n !contentType || contentType.data === 'application/json'\n ? JSON.stringify(data, (k, v) => {\n return v instanceof ArrayBuffer || v instanceof Uint8Array ? ua2b64(v) : v\n })\n : data,\n }\n : {}\n ),\n timeout,\n fetchImpl\n )\n .catch(async (e) => {\n if (!forceSendAuthorization) {\n //Might be due to a 401\n return {\n status: 401,\n statusText: e.message,\n arrayBuffer: () => Promise.resolve(new ArrayBuffer(0)),\n json: () => Promise.resolve({}),\n text: () => Promise.resolve(''),\n headers: new Headers(),\n }\n } else {\n throw e\n }\n })\n .then(async function (response) {\n if (response.status === 401 && !forceSendAuthorization) {\n return sendCommand(method, url, headers, data, fetchImpl, contentTypeOverride, true)\n } else {\n if (response.status >= 400) {\n const error: {\n error: string\n message: string\n status: number\n } = { error: response.statusText, message: await response.text(), status: response.status }\n throw new XHRError(url, error.message, error.status, error.error, response.headers)\n }\n const ct = contentTypeOverride || response.headers.get('content-type') || 'text/plain'\n return (\n ct.startsWith('application/json')\n ? response.json()\n : ct.startsWith('application/xml') || ct.startsWith('text/')\n ? response.text()\n : response.arrayBuffer()\n ).then((d) => new Data(response.status, ct, d))\n }\n })\n }\n}\n"]}
package/icc-api/iccApi.js CHANGED
@@ -1,11 +1,7 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
5
  }) : (function(o, m, k, k2) {
10
6
  if (k2 === undefined) k2 = k;
11
7
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"iccApi.js","sourceRoot":"","sources":["../../icc-api/iccApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAqC;AACrC,qDAAkC;AAClC,8DAA2C;AAC3C,kEAA+C;AAC/C,sDAAmC;AACnC,mDAAgC;AAChC,sDAAmC;AACnC,sDAAmC;AACnC,6DAA0C;AAC1C,6DAA0C;AAC1C,sDAAmC;AACnC,2DAAwC;AACxC,+DAA4C;AAC5C,6DAA0C;AAC1C,qEAAkD;AAClD,mDAAgC;AAChC,sDAAmC;AACnC,qDAAkC;AAClC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,6DAA0C;AAC1C,mDAAgC;AAChC,gEAA6C;AAC7C,oDAAiC;AACjC,sDAAmC;AACnC,uDAAoC;AACpC,oDAAiC;AACjC,wDAAqC;AACrC,sDAAmC;AACnC,sDAAmC;AACnC,8DAA2C;AAC3C,oDAAiC;AACjC,8DAA2C;AAC3C,sDAAmC;AACnC,sDAAmC;AACnC,yDAAsC;AACtC,oDAAiC;AACjC,qDAAkC;AAClC,sDAAmC;AACnC,0DAAuC;AACvC,2DAAwC;AACxC,wDAAqC;AACrC,kDAA+B;AAC/B,mDAAgC","sourcesContent":["export * from './api/IccAccesslogApi'\nexport * from './api/IccAgendaApi'\nexport * from './api/IccAnonymousAccessApi'\nexport * from './api/IccApplicationsettingsApi'\nexport * from './api/IccArticleApi'\nexport * from './api/IccAuthApi'\nexport * from './api/IccBeefactApi'\nexport * from './api/IccBekmehrApi'\nexport * from './api/IccBeresultexportApi'\nexport * from './api/IccBeresultimportApi'\nexport * from './api/IccBesamv2Api'\nexport * from './api/IccCalendarItemApi'\nexport * from './api/IccCalendarItemTypeApi'\nexport * from './api/IccClassificationApi'\nexport * from './api/IccClassificationTemplateApi'\nexport * from './api/IccCodeApi'\nexport * from './api/IccContactApi'\nexport * from './api/IccDeviceApi'\nexport * from './api/IccDoctemplateApi'\nexport * from './api/IccDocumentApi'\nexport * from './api/IccEntityrefApi'\nexport * from './api/IccEntitytemplateApi'\nexport * from './api/IccFormApi'\nexport * from './api/IccFrontendmigrationApi'\nexport * from './api/IccGroupApi'\nexport * from './api/IccHcpartyApi'\nexport * from './api/IccHelementApi'\nexport * from './api/IccIcureApi'\nexport * from './api/IccInsuranceApi'\nexport * from './api/IccInvoiceApi'\nexport * from './api/IccKeywordApi'\nexport * from './api/IccMaintenanceTaskApi'\nexport * from './api/IccMedexApi'\nexport * from './api/IccMedicallocationApi'\nexport * from './api/IccMessageApi'\nexport * from './api/IccPatientApi'\nexport * from './api/IccPermissionApi'\nexport * from './api/IccPlaceApi'\nexport * from './api/IccPubsubApi'\nexport * from './api/IccReceiptApi'\nexport * from './api/IccReplicationApi'\nexport * from './api/IccTarificationApi'\nexport * from './api/IccTimeTableApi'\nexport * from './api/IccTmpApi'\nexport * from './api/IccUserApi'\n"]}
1
+ {"version":3,"file":"iccApi.js","sourceRoot":"","sources":["../../icc-api/iccApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAqC;AACrC,qDAAkC;AAClC,8DAA2C;AAC3C,kEAA+C;AAC/C,sDAAmC;AACnC,mDAAgC;AAChC,sDAAmC;AACnC,sDAAmC;AACnC,6DAA0C;AAC1C,6DAA0C;AAC1C,sDAAmC;AACnC,2DAAwC;AACxC,+DAA4C;AAC5C,6DAA0C;AAC1C,qEAAkD;AAClD,mDAAgC;AAChC,sDAAmC;AACnC,qDAAkC;AAClC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,6DAA0C;AAC1C,mDAAgC;AAChC,gEAA6C;AAC7C,oDAAiC;AACjC,sDAAmC;AACnC,uDAAoC;AACpC,oDAAiC;AACjC,wDAAqC;AACrC,sDAAmC;AACnC,sDAAmC;AACnC,8DAA2C;AAC3C,oDAAiC;AACjC,8DAA2C;AAC3C,sDAAmC;AACnC,sDAAmC;AACnC,yDAAsC;AACtC,oDAAiC;AACjC,qDAAkC;AAClC,sDAAmC;AACnC,0DAAuC;AACvC,2DAAwC;AACxC,wDAAqC;AACrC,kDAA+B;AAC/B,mDAAgC","sourcesContent":["export * from './api/IccAccesslogApi'\nexport * from './api/IccAgendaApi'\nexport * from './api/IccAnonymousAccessApi'\nexport * from './api/IccApplicationsettingsApi'\nexport * from './api/IccArticleApi'\nexport * from './api/IccAuthApi'\nexport * from './api/IccBeefactApi'\nexport * from './api/IccBekmehrApi'\nexport * from './api/IccBeresultexportApi'\nexport * from './api/IccBeresultimportApi'\nexport * from './api/IccBesamv2Api'\nexport * from './api/IccCalendarItemApi'\nexport * from './api/IccCalendarItemTypeApi'\nexport * from './api/IccClassificationApi'\nexport * from './api/IccClassificationTemplateApi'\nexport * from './api/IccCodeApi'\nexport * from './api/IccContactApi'\nexport * from './api/IccDeviceApi'\nexport * from './api/IccDoctemplateApi'\nexport * from './api/IccDocumentApi'\nexport * from './api/IccEntityrefApi'\nexport * from './api/IccEntitytemplateApi'\nexport * from './api/IccFormApi'\nexport * from './api/IccFrontendmigrationApi'\nexport * from './api/IccGroupApi'\nexport * from './api/IccHcpartyApi'\nexport * from './api/IccHelementApi'\nexport * from './api/IccIcureApi'\nexport * from './api/IccInsuranceApi'\nexport * from './api/IccInvoiceApi'\nexport * from './api/IccKeywordApi'\nexport * from './api/IccMaintenanceTaskApi'\nexport * from './api/IccMedexApi'\nexport * from './api/IccMedicallocationApi'\nexport * from './api/IccMessageApi'\nexport * from './api/IccPatientApi'\nexport * from './api/IccPermissionApi'\nexport * from './api/IccPlaceApi'\nexport * from './api/IccPubsubApi'\nexport * from './api/IccReceiptApi'\nexport * from './api/IccReplicationApi'\nexport * from './api/IccTarificationApi'\nexport * from './api/IccTimeTableApi'\nexport * from './api/IccTmpApi'\nexport * from './api/IccUserApi'\n"]}
package/icc-api/index.js CHANGED
@@ -1,11 +1,7 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
5
  }) : (function(o, m, k, k2) {
10
6
  if (k2 === undefined) k2 = k;
11
7
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../icc-api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAqC;AACrC,qDAAkC;AAClC,8DAA2C;AAC3C,kEAA+C;AAC/C,sDAAmC;AACnC,mDAAgC;AAChC,sDAAmC;AACnC,sDAAmC;AACnC,wDAAqC;AACrC,6DAA0C;AAC1C,6DAA0C;AAC1C,sDAAmC;AACnC,2DAAwC;AACxC,+DAA4C;AAC5C,6DAA0C;AAC1C,qEAAkD;AAClD,mDAAgC;AAChC,sDAAmC;AACnC,qDAAkC;AAClC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,6DAA0C;AAC1C,mDAAgC;AAChC,gEAA6C;AAC7C,oDAAiC;AACjC,sDAAmC;AACnC,uDAAoC;AACpC,oDAAiC;AACjC,wDAAqC;AACrC,sDAAmC;AACnC,sDAAmC;AACnC,oDAAiC;AACjC,8DAA2C;AAC3C,sDAAmC;AACnC,sDAAmC;AACnC,yDAAsC;AACtC,oDAAiC;AACjC,qDAAkC;AAClC,sDAAmC;AACnC,0DAAuC;AACvC,2DAAwC;AACxC,wDAAqC;AACrC,kDAA+B;AAC/B,mDAAgC","sourcesContent":["export * from './api/IccAccesslogApi'\nexport * from './api/IccAgendaApi'\nexport * from './api/IccAnonymousAccessApi'\nexport * from './api/IccApplicationsettingsApi'\nexport * from './api/IccArticleApi'\nexport * from './api/IccAuthApi'\nexport * from './api/IccBeefactApi'\nexport * from './api/IccBekmehrApi'\nexport * from './api/IccBemikronoApi'\nexport * from './api/IccBeresultexportApi'\nexport * from './api/IccBeresultimportApi'\nexport * from './api/IccBesamv2Api'\nexport * from './api/IccCalendarItemApi'\nexport * from './api/IccCalendarItemTypeApi'\nexport * from './api/IccClassificationApi'\nexport * from './api/IccClassificationTemplateApi'\nexport * from './api/IccCodeApi'\nexport * from './api/IccContactApi'\nexport * from './api/IccDeviceApi'\nexport * from './api/IccDoctemplateApi'\nexport * from './api/IccDocumentApi'\nexport * from './api/IccEntityrefApi'\nexport * from './api/IccEntitytemplateApi'\nexport * from './api/IccFormApi'\nexport * from './api/IccFrontendmigrationApi'\nexport * from './api/IccGroupApi'\nexport * from './api/IccHcpartyApi'\nexport * from './api/IccHelementApi'\nexport * from './api/IccIcureApi'\nexport * from './api/IccInsuranceApi'\nexport * from './api/IccInvoiceApi'\nexport * from './api/IccKeywordApi'\nexport * from './api/IccMedexApi'\nexport * from './api/IccMedicallocationApi'\nexport * from './api/IccMessageApi'\nexport * from './api/IccPatientApi'\nexport * from './api/IccPermissionApi'\nexport * from './api/IccPlaceApi'\nexport * from './api/IccPubsubApi'\nexport * from './api/IccReceiptApi'\nexport * from './api/IccReplicationApi'\nexport * from './api/IccTarificationApi'\nexport * from './api/IccTimeTableApi'\nexport * from './api/IccTmpApi'\nexport * from './api/IccUserApi'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../icc-api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAqC;AACrC,qDAAkC;AAClC,8DAA2C;AAC3C,kEAA+C;AAC/C,sDAAmC;AACnC,mDAAgC;AAChC,sDAAmC;AACnC,sDAAmC;AACnC,wDAAqC;AACrC,6DAA0C;AAC1C,6DAA0C;AAC1C,sDAAmC;AACnC,2DAAwC;AACxC,+DAA4C;AAC5C,6DAA0C;AAC1C,qEAAkD;AAClD,mDAAgC;AAChC,sDAAmC;AACnC,qDAAkC;AAClC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,6DAA0C;AAC1C,mDAAgC;AAChC,gEAA6C;AAC7C,oDAAiC;AACjC,sDAAmC;AACnC,uDAAoC;AACpC,oDAAiC;AACjC,wDAAqC;AACrC,sDAAmC;AACnC,sDAAmC;AACnC,oDAAiC;AACjC,8DAA2C;AAC3C,sDAAmC;AACnC,sDAAmC;AACnC,yDAAsC;AACtC,oDAAiC;AACjC,qDAAkC;AAClC,sDAAmC;AACnC,0DAAuC;AACvC,2DAAwC;AACxC,wDAAqC;AACrC,kDAA+B;AAC/B,mDAAgC","sourcesContent":["export * from './api/IccAccesslogApi'\nexport * from './api/IccAgendaApi'\nexport * from './api/IccAnonymousAccessApi'\nexport * from './api/IccApplicationsettingsApi'\nexport * from './api/IccArticleApi'\nexport * from './api/IccAuthApi'\nexport * from './api/IccBeefactApi'\nexport * from './api/IccBekmehrApi'\nexport * from './api/IccBemikronoApi'\nexport * from './api/IccBeresultexportApi'\nexport * from './api/IccBeresultimportApi'\nexport * from './api/IccBesamv2Api'\nexport * from './api/IccCalendarItemApi'\nexport * from './api/IccCalendarItemTypeApi'\nexport * from './api/IccClassificationApi'\nexport * from './api/IccClassificationTemplateApi'\nexport * from './api/IccCodeApi'\nexport * from './api/IccContactApi'\nexport * from './api/IccDeviceApi'\nexport * from './api/IccDoctemplateApi'\nexport * from './api/IccDocumentApi'\nexport * from './api/IccEntityrefApi'\nexport * from './api/IccEntitytemplateApi'\nexport * from './api/IccFormApi'\nexport * from './api/IccFrontendmigrationApi'\nexport * from './api/IccGroupApi'\nexport * from './api/IccHcpartyApi'\nexport * from './api/IccHelementApi'\nexport * from './api/IccIcureApi'\nexport * from './api/IccInsuranceApi'\nexport * from './api/IccInvoiceApi'\nexport * from './api/IccKeywordApi'\nexport * from './api/IccMedexApi'\nexport * from './api/IccMedicallocationApi'\nexport * from './api/IccMessageApi'\nexport * from './api/IccPatientApi'\nexport * from './api/IccPermissionApi'\nexport * from './api/IccPlaceApi'\nexport * from './api/IccPubsubApi'\nexport * from './api/IccReceiptApi'\nexport * from './api/IccReplicationApi'\nexport * from './api/IccTarificationApi'\nexport * from './api/IccTimeTableApi'\nexport * from './api/IccTmpApi'\nexport * from './api/IccUserApi'\n"]}
@@ -15,7 +15,7 @@ exports.Body = void 0;
15
15
  const ModelHelper_1 = require("./ModelHelper");
16
16
  class Body {
17
17
  constructor(json) {
18
- Object.assign(this, json, json.attachment ? { attachment: (0, ModelHelper_1.b64_2ab)(json.attachment) } : {});
18
+ Object.assign(this, json, json.attachment ? { attachment: ModelHelper_1.b64_2ab(json.attachment) } : {});
19
19
  }
20
20
  }
21
21
  exports.Body = Body;
@@ -1 +1 @@
1
- {"version":3,"file":"Body.js","sourceRoot":"","sources":["../../../icc-api/model/Body.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,+CAAuC;AACvC,MAAa,IAAI;IACf,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAY,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAA,qBAAO,EAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACpG,CAAC;CAGF;AAND,oBAMC","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 */\n\nimport { b64_2ab } from './ModelHelper'\nexport class Body {\n constructor(json: JSON | any) {\n Object.assign(this as Body, json, json.attachment ? { attachment: b64_2ab(json.attachment) } : {})\n }\n\n attachment?: ArrayBuffer\n}\n"]}
1
+ {"version":3,"file":"Body.js","sourceRoot":"","sources":["../../../icc-api/model/Body.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,+CAAuC;AACvC,MAAa,IAAI;IACf,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAY,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,qBAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACpG,CAAC;CAGF;AAND,oBAMC","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 */\n\nimport { b64_2ab } from './ModelHelper'\nexport class Body {\n constructor(json: JSON | any) {\n Object.assign(this as Body, json, json.attachment ? { attachment: b64_2ab(json.attachment) } : {})\n }\n\n attachment?: ArrayBuffer\n}\n"]}
@@ -15,7 +15,7 @@ exports.Body1 = void 0;
15
15
  const ModelHelper_1 = require("./ModelHelper");
16
16
  class Body1 {
17
17
  constructor(json) {
18
- Object.assign(this, json, json.attachment ? { attachment: (0, ModelHelper_1.b64_2ab)(json.attachment) } : {});
18
+ Object.assign(this, json, json.attachment ? { attachment: ModelHelper_1.b64_2ab(json.attachment) } : {});
19
19
  }
20
20
  }
21
21
  exports.Body1 = Body1;
@@ -1 +1 @@
1
- {"version":3,"file":"Body1.js","sourceRoot":"","sources":["../../../icc-api/model/Body1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,+CAAuC;AACvC,MAAa,KAAK;IAChB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAa,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAA,qBAAO,EAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACrG,CAAC;CAGF;AAND,sBAMC","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 */\n\nimport { b64_2ab } from './ModelHelper'\nexport class Body1 {\n constructor(json: JSON | any) {\n Object.assign(this as Body1, json, json.attachment ? { attachment: b64_2ab(json.attachment) } : {})\n }\n\n attachment?: ArrayBuffer\n}\n"]}
1
+ {"version":3,"file":"Body1.js","sourceRoot":"","sources":["../../../icc-api/model/Body1.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,+CAAuC;AACvC,MAAa,KAAK;IAChB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAa,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,qBAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACrG,CAAC;CAGF;AAND,sBAMC","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 */\n\nimport { b64_2ab } from './ModelHelper'\nexport class Body1 {\n constructor(json: JSON | any) {\n Object.assign(this as Body1, json, json.attachment ? { attachment: b64_2ab(json.attachment) } : {})\n }\n\n attachment?: ArrayBuffer\n}\n"]}
@@ -15,7 +15,7 @@ exports.Body2 = void 0;
15
15
  const ModelHelper_1 = require("./ModelHelper");
16
16
  class Body2 {
17
17
  constructor(json) {
18
- Object.assign(this, json, json.attachment ? { attachment: (0, ModelHelper_1.b64_2ab)(json.attachment) } : {});
18
+ Object.assign(this, json, json.attachment ? { attachment: ModelHelper_1.b64_2ab(json.attachment) } : {});
19
19
  }
20
20
  }
21
21
  exports.Body2 = Body2;
@@ -1 +1 @@
1
- {"version":3,"file":"Body2.js","sourceRoot":"","sources":["../../../icc-api/model/Body2.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,+CAAuC;AACvC,MAAa,KAAK;IAChB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAa,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAA,qBAAO,EAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACrG,CAAC;CAGF;AAND,sBAMC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure.\n *\n * OpenAPI spec version: v0\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 */\n\nimport { b64_2ab } from './ModelHelper'\nexport class Body2 {\n constructor(json: JSON | any) {\n Object.assign(this as Body2, json, json.attachment ? { attachment: b64_2ab(json.attachment) } : {})\n }\n\n attachment?: ArrayBuffer\n}\n"]}
1
+ {"version":3,"file":"Body2.js","sourceRoot":"","sources":["../../../icc-api/model/Body2.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,+CAAuC;AACvC,MAAa,KAAK;IAChB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAa,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,qBAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACrG,CAAC;CAGF;AAND,sBAMC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure.\n *\n * OpenAPI spec version: v0\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 */\n\nimport { b64_2ab } from './ModelHelper'\nexport class Body2 {\n constructor(json: JSON | any) {\n Object.assign(this as Body2, json, json.attachment ? { attachment: b64_2ab(json.attachment) } : {})\n }\n\n attachment?: ArrayBuffer\n}\n"]}
@@ -15,7 +15,7 @@ exports.Body3 = void 0;
15
15
  const ModelHelper_1 = require("./ModelHelper");
16
16
  class Body3 {
17
17
  constructor(json) {
18
- Object.assign(this, json, json.attachment ? { attachment: (0, ModelHelper_1.b64_2ab)(json.attachment) } : {});
18
+ Object.assign(this, json, json.attachment ? { attachment: ModelHelper_1.b64_2ab(json.attachment) } : {});
19
19
  }
20
20
  }
21
21
  exports.Body3 = Body3;
@@ -1 +1 @@
1
- {"version":3,"file":"Body3.js","sourceRoot":"","sources":["../../../icc-api/model/Body3.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,+CAAuC;AACvC,MAAa,KAAK;IAChB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAa,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAA,qBAAO,EAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACrG,CAAC;CAGF;AAND,sBAMC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure.\n *\n * OpenAPI spec version: v0\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 */\n\nimport { b64_2ab } from './ModelHelper'\nexport class Body3 {\n constructor(json: JSON | any) {\n Object.assign(this as Body3, json, json.attachment ? { attachment: b64_2ab(json.attachment) } : {})\n }\n\n attachment?: ArrayBuffer\n}\n"]}
1
+ {"version":3,"file":"Body3.js","sourceRoot":"","sources":["../../../icc-api/model/Body3.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,+CAAuC;AACvC,MAAa,KAAK;IAChB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAa,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,qBAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACrG,CAAC;CAGF;AAND,sBAMC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure.\n *\n * OpenAPI spec version: v0\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 */\n\nimport { b64_2ab } from './ModelHelper'\nexport class Body3 {\n constructor(json: JSON | any) {\n Object.assign(this as Body3, json, json.attachment ? { attachment: b64_2ab(json.attachment) } : {})\n }\n\n attachment?: ArrayBuffer\n}\n"]}
@@ -15,7 +15,7 @@ exports.ByteArray = void 0;
15
15
  const ModelHelper_1 = require("./ModelHelper");
16
16
  class ByteArray {
17
17
  constructor(json) {
18
- Object.assign(this, json, json.data ? { data: (0, ModelHelper_1.b64_2ab)(json.data) } : {});
18
+ Object.assign(this, json, json.data ? { data: ModelHelper_1.b64_2ab(json.data) } : {});
19
19
  }
20
20
  }
21
21
  exports.ByteArray = ByteArray;
@@ -1 +1 @@
1
- {"version":3,"file":"ByteArray.js","sourceRoot":"","sources":["../../../icc-api/model/ByteArray.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,+CAAuC;AACvC,MAAa,SAAS;IACpB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAiB,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAA,qBAAO,EAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACvF,CAAC;CAGF;AAND,8BAMC","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 */\n\nimport { b64_2ab } from './ModelHelper'\nexport class ByteArray {\n constructor(json: JSON | any) {\n Object.assign(this as ByteArray, json, json.data ? { data: b64_2ab(json.data) } : {})\n }\n\n data?: ArrayBuffer\n}\n"]}
1
+ {"version":3,"file":"ByteArray.js","sourceRoot":"","sources":["../../../icc-api/model/ByteArray.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,+CAAuC;AACvC,MAAa,SAAS;IACpB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAiB,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,qBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IACvF,CAAC;CAGF;AAND,8BAMC","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 */\n\nimport { b64_2ab } from './ModelHelper'\nexport class ByteArray {\n constructor(json: JSON | any) {\n Object.assign(this as ByteArray, json, json.data ? { data: b64_2ab(json.data) } : {})\n }\n\n data?: ArrayBuffer\n}\n"]}
@@ -7,7 +7,7 @@ exports.Content = void 0;
7
7
  const ModelHelper_1 = require("./ModelHelper");
8
8
  class Content {
9
9
  constructor(json) {
10
- Object.assign(this, json, json.binaryValue ? { binaryValue: (0, ModelHelper_1.b64_2ab)(json.binaryValue) } : {});
10
+ Object.assign(this, json, json.binaryValue ? { binaryValue: ModelHelper_1.b64_2ab(json.binaryValue) } : {});
11
11
  }
12
12
  }
13
13
  exports.Content = Content;
@@ -1 +1 @@
1
- {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../icc-api/model/Content.ts"],"names":[],"mappings":";;;AAgBA;;GAEG;AACH,+CAAuC;AACvC,MAAa,OAAO;IAClB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAA,qBAAO,EAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC1G,CAAC;CAqBF;AAxBD,0BAwBC","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 { Measure } from './Measure'\nimport { Medication } from './Medication'\nimport { Service } from './Service'\nimport { TimeSeries } from './TimeSeries'\n\n/**\n * Information contained in the service. Content is localized, using ISO language code as key\n */\nimport { b64_2ab } from './ModelHelper'\nexport class Content {\n constructor(json: JSON | any) {\n Object.assign(this as Content, json, json.binaryValue ? { binaryValue: b64_2ab(json.binaryValue) } : {})\n }\n\n stringValue?: string\n numberValue?: number\n booleanValue?: boolean\n instantValue?: number\n /**\n * Value as date. The format could have a all three (day, month and year) or values on any of these three, whatever is known.\n */\n fuzzyDateValue?: number\n binaryValue?: ArrayBuffer\n /**\n * Linked document.\n */\n documentId?: string\n measureValue?: Measure\n medicationValue?: Medication\n timeSeries?: TimeSeries\n compoundValue?: Array<Service>\n ratio?: Array<Measure>\n range?: Array<Measure>\n}\n"]}
1
+ {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../icc-api/model/Content.ts"],"names":[],"mappings":";;;AAgBA;;GAEG;AACH,+CAAuC;AACvC,MAAa,OAAO;IAClB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAe,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,qBAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC1G,CAAC;CAqBF;AAxBD,0BAwBC","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 { Measure } from './Measure'\nimport { Medication } from './Medication'\nimport { Service } from './Service'\nimport { TimeSeries } from './TimeSeries'\n\n/**\n * Information contained in the service. Content is localized, using ISO language code as key\n */\nimport { b64_2ab } from './ModelHelper'\nexport class Content {\n constructor(json: JSON | any) {\n Object.assign(this as Content, json, json.binaryValue ? { binaryValue: b64_2ab(json.binaryValue) } : {})\n }\n\n stringValue?: string\n numberValue?: number\n booleanValue?: boolean\n instantValue?: number\n /**\n * Value as date. The format could have a all three (day, month and year) or values on any of these three, whatever is known.\n */\n fuzzyDateValue?: number\n binaryValue?: ArrayBuffer\n /**\n * Linked document.\n */\n documentId?: string\n measureValue?: Measure\n medicationValue?: Medication\n timeSeries?: TimeSeries\n compoundValue?: Array<Service>\n ratio?: Array<Measure>\n range?: Array<Measure>\n}\n"]}
@@ -7,7 +7,7 @@ exports.Device = void 0;
7
7
  const ModelHelper_1 = require("./ModelHelper");
8
8
  class Device {
9
9
  constructor(json) {
10
- Object.assign(this, json, json.picture ? { picture: (0, ModelHelper_1.b64_2ab)(json.picture) } : {});
10
+ Object.assign(this, json, json.picture ? { picture: ModelHelper_1.b64_2ab(json.picture) } : {});
11
11
  }
12
12
  }
13
13
  exports.Device = Device;
@@ -1 +1 @@
1
- {"version":3,"file":"Device.js","sourceRoot":"","sources":["../../../icc-api/model/Device.ts"],"names":[],"mappings":";;;AAeA;;GAEG;AACH,+CAAuC;AACvC,MAAa,MAAM;IACjB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAc,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAA,qBAAO,EAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC7F,CAAC;CAsEF;AAzED,wBAyEC","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 { CodeStub } from './CodeStub'\nimport { Identifier } from './Identifier'\nimport { PropertyStub } from './PropertyStub'\n\n/**\n * This entity is a root level object. It represents a device. It is serialized in JSON and saved in the underlying icure-base CouchDB database.\n */\nimport { b64_2ab } from './ModelHelper'\nexport class Device {\n constructor(json: JSON | any) {\n Object.assign(this as Device, json, json.picture ? { picture: b64_2ab(json.picture) } : {})\n }\n\n id?: string\n rev?: string\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n identifiers?: Array<Identifier>\n /**\n * The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n created?: number\n /**\n * The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n modified?: number\n /**\n * The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n author?: string\n /**\n * The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n responsible?: string\n /**\n * A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags.\n */\n tags?: Array<CodeStub>\n /**\n * A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes\n */\n codes?: Array<CodeStub>\n /**\n * Soft delete (unix epoch in ms) timestamp of the object.\n */\n endOfLife?: number\n /**\n * The id of the medical location where this entity was created.\n */\n medicalLocationId?: string\n externalId?: string\n name?: string\n type?: string\n brand?: string\n model?: string\n serialNumber?: string\n parentId?: string\n picture?: ArrayBuffer\n properties?: Array<PropertyStub>\n /**\n * For each couple of HcParties (delegator and delegate), this map contains the exchange AES key. The delegator is always this hcp, the key of the map is the id of the delegate.The AES exchange key is encrypted using RSA twice : once using this hcp public key (index 0 in the Array) and once using the other hcp public key (index 1 in the Array). For a pair of HcParties. Each HcParty always has one AES exchange key for himself.\n */\n hcPartyKeys?: { [key: string]: Array<string> }\n /**\n * Extra AES exchange keys, usually the ones we lost access to at some point. The structure is { publicKey: { delegateId: { myPubKey1: aesExKey_for_this, delegatePubKey1: aesExKey_for_delegate } } }\n */\n aesExchangeKeys?: { [key: string]: { [key: string]: { [key: string]: string } } }\n /**\n * Our private keys encrypted with our public keys. The structure is { publicKey1: { publicKey2: privateKey2_encrypted_with_publicKey1, publicKey3: privateKey3_encrypted_with_publicKey1 } }\n */\n transferKeys?: { [key: string]: { [key: string]: string } }\n /**\n * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \\\"threshold⎮partition in hex\\\" encrypted using the the partition's holder's public RSA key\n */\n privateKeyShamirPartitions?: { [key: string]: string }\n /**\n * The public key of this hcp\n */\n publicKey?: string\n}\n"]}
1
+ {"version":3,"file":"Device.js","sourceRoot":"","sources":["../../../icc-api/model/Device.ts"],"names":[],"mappings":";;;AAeA;;GAEG;AACH,+CAAuC;AACvC,MAAa,MAAM;IACjB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAc,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,qBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC7F,CAAC;CAsEF;AAzED,wBAyEC","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 { CodeStub } from './CodeStub'\nimport { Identifier } from './Identifier'\nimport { PropertyStub } from './PropertyStub'\n\n/**\n * This entity is a root level object. It represents a device. It is serialized in JSON and saved in the underlying icure-base CouchDB database.\n */\nimport { b64_2ab } from './ModelHelper'\nexport class Device {\n constructor(json: JSON | any) {\n Object.assign(this as Device, json, json.picture ? { picture: b64_2ab(json.picture) } : {})\n }\n\n id?: string\n rev?: string\n /**\n * hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.\n */\n deletionDate?: number\n identifiers?: Array<Identifier>\n /**\n * The timestamp (unix epoch in ms) of creation of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n created?: number\n /**\n * The date (unix epoch in ms) of the latest modification of this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n modified?: number\n /**\n * The id of the User that has created this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n author?: string\n /**\n * The id of the HealthcareParty that is responsible for this entity, will be filled automatically if missing. Not enforced by the application server.\n */\n responsible?: string\n /**\n * A tag is an item from a codification system that qualifies an entity as being member of a certain class, whatever the value it might have taken. If the tag qualifies the content of a field, it means that whatever the content of the field, the tag will always apply. For example, the label of a field is qualified using a tag. LOINC is a codification system typically used for tags.\n */\n tags?: Array<CodeStub>\n /**\n * A code is an item from a codification system that qualifies the content of this entity. SNOMED-CT, ICPC-2 or ICD-10 codifications systems can be used for codes\n */\n codes?: Array<CodeStub>\n /**\n * Soft delete (unix epoch in ms) timestamp of the object.\n */\n endOfLife?: number\n /**\n * The id of the medical location where this entity was created.\n */\n medicalLocationId?: string\n externalId?: string\n name?: string\n type?: string\n brand?: string\n model?: string\n serialNumber?: string\n parentId?: string\n picture?: ArrayBuffer\n properties?: Array<PropertyStub>\n /**\n * For each couple of HcParties (delegator and delegate), this map contains the exchange AES key. The delegator is always this hcp, the key of the map is the id of the delegate.The AES exchange key is encrypted using RSA twice : once using this hcp public key (index 0 in the Array) and once using the other hcp public key (index 1 in the Array). For a pair of HcParties. Each HcParty always has one AES exchange key for himself.\n */\n hcPartyKeys?: { [key: string]: Array<string> }\n /**\n * Extra AES exchange keys, usually the ones we lost access to at some point. The structure is { publicKey: { delegateId: { myPubKey1: aesExKey_for_this, delegatePubKey1: aesExKey_for_delegate } } }\n */\n aesExchangeKeys?: { [key: string]: { [key: string]: { [key: string]: string } } }\n /**\n * Our private keys encrypted with our public keys. The structure is { publicKey1: { publicKey2: privateKey2_encrypted_with_publicKey1, publicKey3: privateKey3_encrypted_with_publicKey1 } }\n */\n transferKeys?: { [key: string]: { [key: string]: string } }\n /**\n * The privateKeyShamirPartitions are used to share this hcp's private RSA key with a series of other hcParties using Shamir's algorithm. The key of the map is the hcp Id with whom this partition has been shared. The value is \\\"threshold⎮partition in hex\\\" encrypted using the the partition's holder's public RSA key\n */\n privateKeyShamirPartitions?: { [key: string]: string }\n /**\n * The public key of this hcp\n */\n publicKey?: string\n}\n"]}
@@ -7,7 +7,7 @@ exports.Document = void 0;
7
7
  const ModelHelper_1 = require("./ModelHelper");
8
8
  class Document {
9
9
  constructor(json) {
10
- Object.assign(this, json, json.encryptedAttachment ? { encryptedAttachment: (0, ModelHelper_1.b64_2ab)(json.encryptedAttachment) } : {}, json.decryptedAttachment ? { decryptedAttachment: (0, ModelHelper_1.b64_2ab)(json.decryptedAttachment) } : {});
10
+ Object.assign(this, json, json.encryptedAttachment ? { encryptedAttachment: ModelHelper_1.b64_2ab(json.encryptedAttachment) } : {}, json.decryptedAttachment ? { decryptedAttachment: ModelHelper_1.b64_2ab(json.decryptedAttachment) } : {});
11
11
  }
12
12
  }
13
13
  exports.Document = Document;