@icure/api 4.2.1 → 4.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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { AbstractFilterUser } from '../../icc-api/model/AbstractFilterUser';
13
- export declare class UserByNameEmailPhoneilter extends AbstractFilterUser {
13
+ export declare class UserByNameEmailPhoneFilter extends AbstractFilterUser {
14
14
  $type: string;
15
15
  constructor(json: JSON | any);
16
16
  searchString: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserByNameEmailPhoneilter = void 0;
3
+ exports.UserByNameEmailPhoneFilter = void 0;
4
4
  /**
5
5
  * iCure Data Stack API Documentation
6
6
  * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
@@ -13,13 +13,13 @@ exports.UserByNameEmailPhoneilter = void 0;
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  const AbstractFilterUser_1 = require("../../icc-api/model/AbstractFilterUser");
16
- class UserByNameEmailPhoneilter extends AbstractFilterUser_1.AbstractFilterUser {
16
+ class UserByNameEmailPhoneFilter extends AbstractFilterUser_1.AbstractFilterUser {
17
17
  constructor(json) {
18
18
  super(json);
19
- this.$type = 'UserByNameEmailPhoneilter';
19
+ this.$type = 'UserByNameEmailPhoneFilter';
20
20
  this.searchString = '';
21
21
  Object.assign(this, json);
22
22
  }
23
23
  }
24
- exports.UserByNameEmailPhoneilter = UserByNameEmailPhoneilter;
24
+ exports.UserByNameEmailPhoneFilter = UserByNameEmailPhoneFilter;
25
25
  //# sourceMappingURL=UserByNameEmailPhoneFilter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserByNameEmailPhoneFilter.js","sourceRoot":"","sources":["../../../icc-x-api/filters/UserByNameEmailPhoneFilter.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+EAA2E;AAE3E,MAAa,yBAA0B,SAAQ,uCAAkB;IAE/D,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAFb,UAAK,GAAW,2BAA2B,CAAA;QAO3C,iBAAY,GAAW,EAAE,CAAA;QAHvB,MAAM,CAAC,MAAM,CAAC,IAAiC,EAAE,IAAI,CAAC,CAAA;IACxD,CAAC;CAIF;AAVD,8DAUC","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 { AbstractFilterUser } from '../../icc-api/model/AbstractFilterUser'\n\nexport class UserByNameEmailPhoneilter extends AbstractFilterUser {\n $type: string = 'UserByNameEmailPhoneilter'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as UserByNameEmailPhoneilter, json)\n }\n\n searchString: string = ''\n desc?: string\n}\n"]}
1
+ {"version":3,"file":"UserByNameEmailPhoneFilter.js","sourceRoot":"","sources":["../../../icc-x-api/filters/UserByNameEmailPhoneFilter.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+EAA2E;AAE3E,MAAa,0BAA2B,SAAQ,uCAAkB;IAEhE,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAFb,UAAK,GAAW,4BAA4B,CAAA;QAO5C,iBAAY,GAAW,EAAE,CAAA;QAHvB,MAAM,CAAC,MAAM,CAAC,IAAkC,EAAE,IAAI,CAAC,CAAA;IACzD,CAAC;CAIF;AAVD,gEAUC","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 { AbstractFilterUser } from '../../icc-api/model/AbstractFilterUser'\n\nexport class UserByNameEmailPhoneFilter extends AbstractFilterUser {\n $type: string = 'UserByNameEmailPhoneFilter'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as UserByNameEmailPhoneFilter, json)\n }\n\n searchString: string = ''\n desc?: string\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/api",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Typescript version of iCure standalone API client",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,95 +0,0 @@
1
- /**
2
- * iCure Data Stack API Documentation
3
- * The iCure Data Stack Application API is the native interface to iCure.
4
- *
5
- * OpenAPI spec version: v0
6
- *
7
- *
8
- * NOTE: This class is auto generated by the swagger code generator program.
9
- * https://github.com/swagger-api/swagger-codegen.git
10
- * Do not edit the class manually.
11
- */
12
- import { XHR } from './XHR';
13
- import { Delegation } from '../model/Delegation';
14
- import { DocIdentifier } from '../model/DocIdentifier';
15
- import { FilterChainHealthElement } from '../model/FilterChainHealthElement';
16
- import { HealthElement } from '../model/HealthElement';
17
- import { IcureStub } from '../model/IcureStub';
18
- import { ListOfIds } from '../model/ListOfIds';
19
- export declare class IccHealthElementApi {
20
- host: string;
21
- headers: Array<XHR.Header>;
22
- fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
23
- constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
24
- setHeaders(h: Array<XHR.Header>): void;
25
- handleError(e: XHR.XHRError): never;
26
- /**
27
- * Returns an instance of created health element.
28
- * @summary Create a health element with the current user
29
- * @param body
30
- */
31
- createHealthElement(body?: HealthElement): Promise<HealthElement>;
32
- /**
33
- * Returns the created healthcare elements.
34
- * @summary Create a batch of healthcare elements
35
- * @param body
36
- */
37
- createHealthElements(body?: Array<HealthElement>): Promise<Array<HealthElement>>;
38
- /**
39
- * Response is a set containing the ID's of deleted health elements.
40
- * @summary Delete health elements.
41
- * @param body
42
- */
43
- deleteHealthElements(body?: ListOfIds): Promise<Array<DocIdentifier>>;
44
- /**
45
- * Returns a list of health elements along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.
46
- * @summary Filter health elements for the current user (HcParty)
47
- * @param body
48
- */
49
- filterHealthElementsBy(body?: FilterChainHealthElement): Promise<Array<HealthElement>>;
50
- /**
51
- *
52
- * @summary Get a health element
53
- * @param healthElementId
54
- */
55
- getHealthElement(healthElementId: string): Promise<HealthElement>;
56
- /**
57
- * Keys hast to delimited by coma
58
- * @summary List health elements found By Healthcare Party and secret foreign keyelementIds.
59
- * @param hcPartyId
60
- * @param secretFKeys
61
- */
62
- listHealthElementsByHCPartyAndPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<HealthElement>>;
63
- /**
64
- * Keys must be delimited by coma
65
- * @summary List helement stubs found By Healthcare Party and secret foreign keys.
66
- * @param hcPartyId
67
- * @param secretFKeys
68
- */
69
- listHealthElementsDelegationsStubsByHCPartyAndPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<IcureStub>>;
70
- /**
71
- * Returns the modified health element.
72
- * @summary Modify a health element
73
- * @param body
74
- */
75
- modifyHealthElement(body?: HealthElement): Promise<HealthElement>;
76
- /**
77
- * Returns the modified health elements.
78
- * @summary Modify a batch of health elements
79
- * @param body
80
- */
81
- modifyHealthElements(body?: Array<HealthElement>): Promise<Array<HealthElement>>;
82
- /**
83
- * It delegates a health element to a healthcare party (By current healthcare party). Returns the element with new delegations.
84
- * @summary Delegates a health element to a healthcare party
85
- * @param body
86
- * @param healthElementId
87
- */
88
- newHealthElementDelegations(healthElementId: string, body?: Array<Delegation>): Promise<HealthElement>;
89
- /**
90
- * Keys must be delimited by coma
91
- * @summary Update delegations in healthElements.
92
- * @param body
93
- */
94
- setHealthElementsDelegations(body?: Array<IcureStub>): Promise<Array<HealthElement>>;
95
- }
@@ -1,205 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IccHealthElementApi = void 0;
4
- /**
5
- * iCure Data Stack API Documentation
6
- * The iCure Data Stack Application API is the native interface to iCure.
7
- *
8
- * OpenAPI spec version: v0
9
- *
10
- *
11
- * NOTE: This class is auto generated by the swagger code generator program.
12
- * https://github.com/swagger-api/swagger-codegen.git
13
- * Do not edit the class manually.
14
- */
15
- const XHR_1 = require("./XHR");
16
- const DocIdentifier_1 = require("../model/DocIdentifier");
17
- const HealthElement_1 = require("../model/HealthElement");
18
- const IcureStub_1 = require("../model/IcureStub");
19
- class IccHealthElementApi {
20
- constructor(host, headers, fetchImpl) {
21
- this.host = host;
22
- this.headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
23
- this.fetchImpl = fetchImpl;
24
- }
25
- setHeaders(h) {
26
- this.headers = h;
27
- }
28
- handleError(e) {
29
- throw e;
30
- }
31
- /**
32
- * Returns an instance of created health element.
33
- * @summary Create a health element with the current user
34
- * @param body
35
- */
36
- createHealthElement(body) {
37
- let _body = null;
38
- _body = body;
39
- const _url = this.host + `/rest/v2/helement` + '?ts=' + new Date().getTime();
40
- let headers = this.headers;
41
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
42
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
43
- .then((doc) => new HealthElement_1.HealthElement(doc.body))
44
- .catch((err) => this.handleError(err));
45
- }
46
- /**
47
- * Returns the created healthcare elements.
48
- * @summary Create a batch of healthcare elements
49
- * @param body
50
- */
51
- createHealthElements(body) {
52
- let _body = null;
53
- _body = body;
54
- const _url = this.host + `/rest/v2/helement/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 HealthElement_1.HealthElement(it)))
59
- .catch((err) => this.handleError(err));
60
- }
61
- /**
62
- * Response is a set containing the ID's of deleted health elements.
63
- * @summary Delete health elements.
64
- * @param body
65
- */
66
- deleteHealthElements(body) {
67
- let _body = null;
68
- _body = body;
69
- const _url = this.host + `/rest/v2/helement/delete/batch` + '?ts=' + new Date().getTime();
70
- let headers = this.headers;
71
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
72
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
73
- .then((doc) => doc.body.map((it) => new DocIdentifier_1.DocIdentifier(it)))
74
- .catch((err) => this.handleError(err));
75
- }
76
- /**
77
- * Returns a list of health elements along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.
78
- * @summary Filter health elements for the current user (HcParty)
79
- * @param body
80
- */
81
- filterHealthElementsBy(body) {
82
- let _body = null;
83
- _body = body;
84
- const _url = this.host + `/rest/v2/helement/filter` + '?ts=' + new Date().getTime();
85
- let headers = this.headers;
86
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
87
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
88
- .then((doc) => doc.body.map((it) => new HealthElement_1.HealthElement(it)))
89
- .catch((err) => this.handleError(err));
90
- }
91
- /**
92
- *
93
- * @summary Get a health element
94
- * @param healthElementId
95
- */
96
- getHealthElement(healthElementId) {
97
- const _body = null;
98
- const _url = this.host + `/rest/v2/helement/${encodeURIComponent(String(healthElementId))}` + '?ts=' + new Date().getTime();
99
- const headers = this.headers;
100
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
101
- .then((doc) => new HealthElement_1.HealthElement(doc.body))
102
- .catch((err) => this.handleError(err));
103
- }
104
- /**
105
- * Keys hast to delimited by coma
106
- * @summary List health elements found By Healthcare Party and secret foreign keyelementIds.
107
- * @param hcPartyId
108
- * @param secretFKeys
109
- */
110
- listHealthElementsByHCPartyAndPatientForeignKeys(hcPartyId, secretFKeys) {
111
- const _body = null;
112
- const _url = this.host +
113
- `/rest/v2/helement/byHcPartySecretForeignKeys` +
114
- '?ts=' +
115
- new Date().getTime() +
116
- (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +
117
- (secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '');
118
- const headers = this.headers;
119
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
120
- .then((doc) => doc.body.map((it) => new HealthElement_1.HealthElement(it)))
121
- .catch((err) => this.handleError(err));
122
- }
123
- /**
124
- * Keys must be delimited by coma
125
- * @summary List helement stubs found By Healthcare Party and secret foreign keys.
126
- * @param hcPartyId
127
- * @param secretFKeys
128
- */
129
- listHealthElementsDelegationsStubsByHCPartyAndPatientForeignKeys(hcPartyId, secretFKeys) {
130
- const _body = null;
131
- const _url = this.host +
132
- `/rest/v2/helement/byHcPartySecretForeignKeys/delegations` +
133
- '?ts=' +
134
- new Date().getTime() +
135
- (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +
136
- (secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '');
137
- const headers = this.headers;
138
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
139
- .then((doc) => doc.body.map((it) => new IcureStub_1.IcureStub(it)))
140
- .catch((err) => this.handleError(err));
141
- }
142
- /**
143
- * Returns the modified health element.
144
- * @summary Modify a health element
145
- * @param body
146
- */
147
- modifyHealthElement(body) {
148
- let _body = null;
149
- _body = body;
150
- const _url = this.host + `/rest/v2/helement` + '?ts=' + new Date().getTime();
151
- let headers = this.headers;
152
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
153
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
154
- .then((doc) => new HealthElement_1.HealthElement(doc.body))
155
- .catch((err) => this.handleError(err));
156
- }
157
- /**
158
- * Returns the modified health elements.
159
- * @summary Modify a batch of health elements
160
- * @param body
161
- */
162
- modifyHealthElements(body) {
163
- let _body = null;
164
- _body = body;
165
- const _url = this.host + `/rest/v2/helement/batch` + '?ts=' + new Date().getTime();
166
- let headers = this.headers;
167
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
168
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
169
- .then((doc) => doc.body.map((it) => new HealthElement_1.HealthElement(it)))
170
- .catch((err) => this.handleError(err));
171
- }
172
- /**
173
- * It delegates a health element to a healthcare party (By current healthcare party). Returns the element with new delegations.
174
- * @summary Delegates a health element to a healthcare party
175
- * @param body
176
- * @param healthElementId
177
- */
178
- newHealthElementDelegations(healthElementId, body) {
179
- let _body = null;
180
- _body = body;
181
- const _url = this.host + `/rest/v2/helement/${encodeURIComponent(String(healthElementId))}/delegate` + '?ts=' + new Date().getTime();
182
- let headers = this.headers;
183
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
184
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
185
- .then((doc) => new HealthElement_1.HealthElement(doc.body))
186
- .catch((err) => this.handleError(err));
187
- }
188
- /**
189
- * Keys must be delimited by coma
190
- * @summary Update delegations in healthElements.
191
- * @param body
192
- */
193
- setHealthElementsDelegations(body) {
194
- let _body = null;
195
- _body = body;
196
- const _url = this.host + `/rest/v2/helement/delegations` + '?ts=' + new Date().getTime();
197
- let headers = this.headers;
198
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
199
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
200
- .then((doc) => doc.body.map((it) => new HealthElement_1.HealthElement(it)))
201
- .catch((err) => this.handleError(err));
202
- }
203
- }
204
- exports.IccHealthElementApi = IccHealthElementApi;
205
- //# sourceMappingURL=IccHealthElementApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IccHealthElementApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccHealthElementApi.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAE3B,0DAAsD;AAEtD,0DAAsD;AACtD,kDAA8C;AAG9C,MAAa,mBAAmB;IAK9B,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,mBAAmB,CAAC,IAAoB;QACtC,IAAI,KAAK,GAAG,IAAI,CAAA;QAChB,KAAK,GAAG,IAAI,CAAA;QAEZ,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,mBAAmB,GAAG,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;QAC5E,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,CA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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 */\nimport { XHR } from './XHR'\nimport { Delegation } from '../model/Delegation'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { FilterChainHealthElement } from '../model/FilterChainHealthElement'\nimport { HealthElement } from '../model/HealthElement'\nimport { IcureStub } from '../model/IcureStub'\nimport { ListOfIds } from '../model/ListOfIds'\n\nexport class IccHealthElementApi {\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 * Returns an instance of created health element.\n * @summary Create a health element with the current user\n * @param body\n */\n createHealthElement(body?: HealthElement): Promise<HealthElement> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/helement` + '?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 HealthElement(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the created healthcare elements.\n * @summary Create a batch of healthcare elements\n * @param body\n */\n createHealthElements(body?: Array<HealthElement>): Promise<Array<HealthElement>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/helement/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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Response is a set containing the ID's of deleted health elements.\n * @summary Delete health elements.\n * @param body\n */\n deleteHealthElements(body?: ListOfIds): Promise<Array<DocIdentifier>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/helement/delete/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 DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of health elements along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.\n * @summary Filter health elements for the current user (HcParty)\n * @param body\n */\n filterHealthElementsBy(body?: FilterChainHealthElement): Promise<Array<HealthElement>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/helement/filter` + '?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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get a health element\n * @param healthElementId\n */\n getHealthElement(healthElementId: string): Promise<HealthElement> {\n const _body = null\n\n const _url = this.host + `/rest/v2/helement/${encodeURIComponent(String(healthElementId))}` + '?ts=' + new Date().getTime()\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new HealthElement(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys hast to delimited by coma\n * @summary List health elements found By Healthcare Party and secret foreign keyelementIds.\n * @param hcPartyId\n * @param secretFKeys\n */\n listHealthElementsByHCPartyAndPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<HealthElement>> {\n const _body = null\n\n const _url =\n this.host +\n `/rest/v2/helement/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +\n (secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '')\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys must be delimited by coma\n * @summary List helement stubs found By Healthcare Party and secret foreign keys.\n * @param hcPartyId\n * @param secretFKeys\n */\n listHealthElementsDelegationsStubsByHCPartyAndPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<IcureStub>> {\n const _body = null\n\n const _url =\n this.host +\n `/rest/v2/helement/byHcPartySecretForeignKeys/delegations` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +\n (secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '')\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new IcureStub(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the modified health element.\n * @summary Modify a health element\n * @param body\n */\n modifyHealthElement(body?: HealthElement): Promise<HealthElement> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/helement` + '?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 HealthElement(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the modified health elements.\n * @summary Modify a batch of health elements\n * @param body\n */\n modifyHealthElements(body?: Array<HealthElement>): Promise<Array<HealthElement>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/helement/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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * It delegates a health element to a healthcare party (By current healthcare party). Returns the element with new delegations.\n * @summary Delegates a health element to a healthcare party\n * @param body\n * @param healthElementId\n */\n newHealthElementDelegations(healthElementId: string, body?: Array<Delegation>): Promise<HealthElement> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/helement/${encodeURIComponent(String(healthElementId))}/delegate` + '?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 HealthElement(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Keys must be delimited by coma\n * @summary Update delegations in healthElements.\n * @param body\n */\n setHealthElementsDelegations(body?: Array<IcureStub>): Promise<Array<HealthElement>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/helement/delegations` + '?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 HealthElement(it)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
@@ -1,146 +0,0 @@
1
- /**
2
- * iCure Data Stack API Documentation
3
- * The iCure Data Stack Application API is the native interface to iCure.
4
- *
5
- * OpenAPI spec version: v0
6
- *
7
- *
8
- * NOTE: This class is auto generated by the swagger code generator program.
9
- * https://github.com/swagger-api/swagger-codegen.git
10
- * Do not edit the class manually.
11
- */
12
- import { XHR } from './XHR';
13
- import { DocIdentifier } from '../model/DocIdentifier';
14
- import { HealthcareParty } from '../model/HealthcareParty';
15
- import { ListOfIds } from '../model/ListOfIds';
16
- import { PaginatedListHealthcareParty } from '../model/PaginatedListHealthcareParty';
17
- import { PublicKey } from '../model/PublicKey';
18
- export declare class IccHealthcarePartyApi {
19
- host: string;
20
- headers: Array<XHR.Header>;
21
- fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
22
- constructor(host: string, headers: any, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
23
- setHeaders(h: Array<XHR.Header>): void;
24
- handleError(e: XHR.XHRError): never;
25
- /**
26
- * One of Name or Last name+First name, Nihii, and Public key are required.
27
- * @summary Create a healthcare party
28
- * @param body
29
- */
30
- createHealthcareParty(body?: HealthcareParty): Promise<HealthcareParty>;
31
- /**
32
- * One of Name or Last name+First name, Nihii, and Public key are required.
33
- * @summary Create a healthcare party
34
- * @param body
35
- * @param groupId
36
- */
37
- createHealthcarePartyInGroup(groupId: string, body?: HealthcareParty): Promise<HealthcareParty>;
38
- /**
39
- * Deleting healthcareParties. Response is an array containing the id of deleted healthcare parties.
40
- * @summary Delete healthcare parties
41
- * @param body
42
- */
43
- deleteHealthcareParties(body?: ListOfIds): Promise<Array<DocIdentifier>>;
44
- /**
45
- * Deleting a healthcareParty. Response is an array containing the id of deleted healthcare party.
46
- * @summary Delete a healthcare party
47
- * @param body
48
- * @param groupId
49
- */
50
- deleteHealthcarePartiesInGroup(groupId: string, body?: ListOfIds): Promise<Array<DocIdentifier>>;
51
- /**
52
- * Returns a list of healthcare parties.
53
- * @summary List healthcare parties with(out) pagination
54
- * @param startKey A healthcare party Last name
55
- * @param startDocumentId A healthcare party document ID
56
- * @param limit Number of rows
57
- * @param desc Descending
58
- */
59
- findHealthcarePartiesBy(startKey?: string, startDocumentId?: string, limit?: number, desc?: boolean): Promise<PaginatedListHealthcareParty>;
60
- /**
61
- * Returns a list of healthcare parties.
62
- * @summary Find healthcare parties by name with(out) pagination
63
- * @param name The Last name search value
64
- * @param startKey A healthcare party Last name
65
- * @param startDocumentId A healthcare party document ID
66
- * @param limit Number of rows
67
- * @param desc Descending
68
- */
69
- findHealthcarePartiesByName(name?: string, startKey?: string, startDocumentId?: string, limit?: number, desc?: boolean): Promise<PaginatedListHealthcareParty>;
70
- /**
71
- * Returns a list of healthcare parties.
72
- * @summary Find healthcare parties by name with(out) pagination
73
- * @param type The type of the HCP (persphysician)
74
- * @param spec The speciality of the HCP
75
- * @param firstCode The first postCode for the HCP
76
- * @param lastCode The last postCode for the HCP
77
- * @param limit Number of rows
78
- */
79
- findHealthcarePartiesBySpecialityAndPostCode(type: string, spec: string, firstCode: string, lastCode: string, limit?: number): Promise<PaginatedListHealthcareParty>;
80
- /**
81
- * Returns a list of healthcare parties.
82
- * @summary Find healthcare parties by nihii or ssin with(out) pagination
83
- * @param searchValue
84
- * @param startKey A healthcare party Last name
85
- * @param startDocumentId A healthcare party document ID
86
- * @param limit Number of rows
87
- * @param desc Descending
88
- */
89
- findHealthcarePartiesBySsinOrNihii(searchValue: string, startKey?: string, startDocumentId?: string, limit?: number, desc?: boolean): Promise<PaginatedListHealthcareParty>;
90
- /**
91
- * General information about the current healthcare Party
92
- * @summary Get the current healthcare party if logged in.
93
- */
94
- getCurrentHealthcareParty(): Promise<HealthcareParty>;
95
- /**
96
- * (key, value) of the map is as follows: (ID of the owner of the encrypted AES key, encrypted AES key)
97
- * @summary Get the HcParty encrypted AES keys indexed by owner
98
- * @param healthcarePartyId
99
- */
100
- getHcPartyKeysForDelegate(healthcarePartyId: string): Promise<{
101
- [key: string]: string;
102
- }>;
103
- /**
104
- * General information about the healthcare Party
105
- * @summary Get healthcareParties by their IDs
106
- * @param body
107
- */
108
- getHealthcareParties(body?: ListOfIds): Promise<Array<HealthcareParty>>;
109
- /**
110
- * General information about the healthcare Party
111
- * @summary Get a healthcareParty by his ID
112
- * @param healthcarePartyId
113
- */
114
- getHealthcareParty(healthcarePartyId: string): Promise<HealthcareParty>;
115
- /**
116
- * Returns the public key of a healthcare party in Hex
117
- * @summary Get public key of a healthcare party
118
- * @param healthcarePartyId
119
- */
120
- getPublicKey(healthcarePartyId: string): Promise<PublicKey>;
121
- /**
122
- * Returns a list of healthcare parties.
123
- * @summary Find healthcare parties by name with(out) pagination
124
- * @param name The Last name search value
125
- */
126
- listHealthcarePartiesByName(name: string): Promise<Array<HealthcareParty>>;
127
- /**
128
- * Return a list of children hcp.
129
- * @summary Find children of an healthcare parties
130
- * @param parentId
131
- */
132
- listHealthcarePartiesByParentId(parentId: string): Promise<Array<HealthcareParty>>;
133
- /**
134
- * No particular return value. It's just a message.
135
- * @summary Modify a Healthcare Party.
136
- * @param body
137
- */
138
- modifyHealthcareParty(body?: HealthcareParty): Promise<HealthcareParty>;
139
- /**
140
- * No particular return value. It's just a message.
141
- * @summary Modify a Healthcare Party.
142
- * @param body
143
- * @param groupId
144
- */
145
- modifyHealthcarePartyInGroup(groupId: string, body?: HealthcareParty): Promise<HealthcareParty>;
146
- }
@@ -1,312 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IccHealthcarePartyApi = void 0;
4
- /**
5
- * iCure Data Stack API Documentation
6
- * The iCure Data Stack Application API is the native interface to iCure.
7
- *
8
- * OpenAPI spec version: v0
9
- *
10
- *
11
- * NOTE: This class is auto generated by the swagger code generator program.
12
- * https://github.com/swagger-api/swagger-codegen.git
13
- * Do not edit the class manually.
14
- */
15
- const XHR_1 = require("./XHR");
16
- const DocIdentifier_1 = require("../model/DocIdentifier");
17
- const HealthcareParty_1 = require("../model/HealthcareParty");
18
- const PaginatedListHealthcareParty_1 = require("../model/PaginatedListHealthcareParty");
19
- const PublicKey_1 = require("../model/PublicKey");
20
- class IccHealthcarePartyApi {
21
- constructor(host, headers, fetchImpl) {
22
- this.host = host;
23
- this.headers = Object.keys(headers).map((k) => new XHR_1.XHR.Header(k, headers[k]));
24
- this.fetchImpl = fetchImpl;
25
- }
26
- setHeaders(h) {
27
- this.headers = h;
28
- }
29
- handleError(e) {
30
- throw e;
31
- }
32
- /**
33
- * One of Name or Last name+First name, Nihii, and Public key are required.
34
- * @summary Create a healthcare party
35
- * @param body
36
- */
37
- createHealthcareParty(body) {
38
- let _body = null;
39
- _body = body;
40
- const _url = this.host + `/rest/v2/hcparty` + '?ts=' + new Date().getTime();
41
- let headers = this.headers;
42
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
43
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
44
- .then((doc) => new HealthcareParty_1.HealthcareParty(doc.body))
45
- .catch((err) => this.handleError(err));
46
- }
47
- /**
48
- * One of Name or Last name+First name, Nihii, and Public key are required.
49
- * @summary Create a healthcare party
50
- * @param body
51
- * @param groupId
52
- */
53
- createHealthcarePartyInGroup(groupId, body) {
54
- let _body = null;
55
- _body = body;
56
- const _url = this.host + `/rest/v2/hcparty/inGroup/${encodeURIComponent(String(groupId))}` + '?ts=' + new Date().getTime();
57
- let headers = this.headers;
58
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
59
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
60
- .then((doc) => new HealthcareParty_1.HealthcareParty(doc.body))
61
- .catch((err) => this.handleError(err));
62
- }
63
- /**
64
- * Deleting healthcareParties. Response is an array containing the id of deleted healthcare parties.
65
- * @summary Delete healthcare parties
66
- * @param body
67
- */
68
- deleteHealthcareParties(body) {
69
- let _body = null;
70
- _body = body;
71
- const _url = this.host + `/rest/v2/hcparty/delete/batch` + '?ts=' + new Date().getTime();
72
- let headers = this.headers;
73
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
74
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
75
- .then((doc) => doc.body.map((it) => new DocIdentifier_1.DocIdentifier(it)))
76
- .catch((err) => this.handleError(err));
77
- }
78
- /**
79
- * Deleting a healthcareParty. Response is an array containing the id of deleted healthcare party.
80
- * @summary Delete a healthcare party
81
- * @param body
82
- * @param groupId
83
- */
84
- deleteHealthcarePartiesInGroup(groupId, body) {
85
- let _body = null;
86
- _body = body;
87
- const _url = this.host + `/rest/v2/hcparty/delete/batch/inGroup/${encodeURIComponent(String(groupId))}` + '?ts=' + new Date().getTime();
88
- let headers = this.headers;
89
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
90
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
91
- .then((doc) => doc.body.map((it) => new DocIdentifier_1.DocIdentifier(it)))
92
- .catch((err) => this.handleError(err));
93
- }
94
- /**
95
- * Returns a list of healthcare parties.
96
- * @summary List healthcare parties with(out) pagination
97
- * @param startKey A healthcare party Last name
98
- * @param startDocumentId A healthcare party document ID
99
- * @param limit Number of rows
100
- * @param desc Descending
101
- */
102
- findHealthcarePartiesBy(startKey, startDocumentId, limit, desc) {
103
- const _body = null;
104
- const _url = this.host +
105
- `/rest/v2/hcparty` +
106
- '?ts=' +
107
- new Date().getTime() +
108
- (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +
109
- (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
110
- (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +
111
- (desc ? '&desc=' + encodeURIComponent(String(desc)) : '');
112
- const headers = this.headers;
113
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
114
- .then((doc) => new PaginatedListHealthcareParty_1.PaginatedListHealthcareParty(doc.body))
115
- .catch((err) => this.handleError(err));
116
- }
117
- /**
118
- * Returns a list of healthcare parties.
119
- * @summary Find healthcare parties by name with(out) pagination
120
- * @param name The Last name search value
121
- * @param startKey A healthcare party Last name
122
- * @param startDocumentId A healthcare party document ID
123
- * @param limit Number of rows
124
- * @param desc Descending
125
- */
126
- findHealthcarePartiesByName(name, startKey, startDocumentId, limit, desc) {
127
- const _body = null;
128
- const _url = this.host +
129
- `/rest/v2/hcparty/byName` +
130
- '?ts=' +
131
- new Date().getTime() +
132
- (name ? '&name=' + encodeURIComponent(String(name)) : '') +
133
- (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +
134
- (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
135
- (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +
136
- (desc ? '&desc=' + encodeURIComponent(String(desc)) : '');
137
- const headers = this.headers;
138
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
139
- .then((doc) => new PaginatedListHealthcareParty_1.PaginatedListHealthcareParty(doc.body))
140
- .catch((err) => this.handleError(err));
141
- }
142
- /**
143
- * Returns a list of healthcare parties.
144
- * @summary Find healthcare parties by name with(out) pagination
145
- * @param type The type of the HCP (persphysician)
146
- * @param spec The speciality of the HCP
147
- * @param firstCode The first postCode for the HCP
148
- * @param lastCode The last postCode for the HCP
149
- * @param limit Number of rows
150
- */
151
- findHealthcarePartiesBySpecialityAndPostCode(type, spec, firstCode, lastCode, limit) {
152
- const _body = null;
153
- const _url = this.host +
154
- `/rest/v2/hcparty/bySpecialityAndPostCode/${encodeURIComponent(String(type))}/${encodeURIComponent(String(spec))}/${encodeURIComponent(String(firstCode))}/to/${encodeURIComponent(String(lastCode))}` +
155
- '?ts=' +
156
- new Date().getTime() +
157
- (limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
158
- const headers = this.headers;
159
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
160
- .then((doc) => new PaginatedListHealthcareParty_1.PaginatedListHealthcareParty(doc.body))
161
- .catch((err) => this.handleError(err));
162
- }
163
- /**
164
- * Returns a list of healthcare parties.
165
- * @summary Find healthcare parties by nihii or ssin with(out) pagination
166
- * @param searchValue
167
- * @param startKey A healthcare party Last name
168
- * @param startDocumentId A healthcare party document ID
169
- * @param limit Number of rows
170
- * @param desc Descending
171
- */
172
- findHealthcarePartiesBySsinOrNihii(searchValue, startKey, startDocumentId, limit, desc) {
173
- const _body = null;
174
- const _url = this.host +
175
- `/rest/v2/hcparty/byNihiiOrSsin/${encodeURIComponent(String(searchValue))}` +
176
- '?ts=' +
177
- new Date().getTime() +
178
- (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +
179
- (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +
180
- (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +
181
- (desc ? '&desc=' + encodeURIComponent(String(desc)) : '');
182
- const headers = this.headers;
183
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
184
- .then((doc) => new PaginatedListHealthcareParty_1.PaginatedListHealthcareParty(doc.body))
185
- .catch((err) => this.handleError(err));
186
- }
187
- /**
188
- * General information about the current healthcare Party
189
- * @summary Get the current healthcare party if logged in.
190
- */
191
- getCurrentHealthcareParty() {
192
- const _body = null;
193
- const _url = this.host + `/rest/v2/hcparty/current` + '?ts=' + new Date().getTime();
194
- const headers = this.headers;
195
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
196
- .then((doc) => new HealthcareParty_1.HealthcareParty(doc.body))
197
- .catch((err) => this.handleError(err));
198
- }
199
- /**
200
- * (key, value) of the map is as follows: (ID of the owner of the encrypted AES key, encrypted AES key)
201
- * @summary Get the HcParty encrypted AES keys indexed by owner
202
- * @param healthcarePartyId
203
- */
204
- getHcPartyKeysForDelegate(healthcarePartyId) {
205
- const _body = null;
206
- const _url = this.host + `/rest/v2/hcparty/byKeys/${encodeURIComponent(String(healthcarePartyId))}` + '?ts=' + new Date().getTime();
207
- const headers = this.headers;
208
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
209
- .then((doc) => JSON.parse(JSON.stringify(doc.body)))
210
- .catch((err) => this.handleError(err));
211
- }
212
- /**
213
- * General information about the healthcare Party
214
- * @summary Get healthcareParties by their IDs
215
- * @param body
216
- */
217
- getHealthcareParties(body) {
218
- let _body = null;
219
- _body = body;
220
- const _url = this.host + `/rest/v2/hcparty/byIds` + '?ts=' + new Date().getTime();
221
- let headers = this.headers;
222
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
223
- return XHR_1.XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)
224
- .then((doc) => doc.body.map((it) => new HealthcareParty_1.HealthcareParty(it)))
225
- .catch((err) => this.handleError(err));
226
- }
227
- /**
228
- * General information about the healthcare Party
229
- * @summary Get a healthcareParty by his ID
230
- * @param healthcarePartyId
231
- */
232
- getHealthcareParty(healthcarePartyId) {
233
- const _body = null;
234
- const _url = this.host + `/rest/v2/hcparty/${encodeURIComponent(String(healthcarePartyId))}` + '?ts=' + new Date().getTime();
235
- const headers = this.headers;
236
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
237
- .then((doc) => new HealthcareParty_1.HealthcareParty(doc.body))
238
- .catch((err) => this.handleError(err));
239
- }
240
- /**
241
- * Returns the public key of a healthcare party in Hex
242
- * @summary Get public key of a healthcare party
243
- * @param healthcarePartyId
244
- */
245
- getPublicKey(healthcarePartyId) {
246
- const _body = null;
247
- const _url = this.host + `/rest/v2/hcparty/${encodeURIComponent(String(healthcarePartyId))}/publicKey` + '?ts=' + new Date().getTime();
248
- const headers = this.headers;
249
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
250
- .then((doc) => new PublicKey_1.PublicKey(doc.body))
251
- .catch((err) => this.handleError(err));
252
- }
253
- /**
254
- * Returns a list of healthcare parties.
255
- * @summary Find healthcare parties by name with(out) pagination
256
- * @param name The Last name search value
257
- */
258
- listHealthcarePartiesByName(name) {
259
- const _body = null;
260
- const _url = this.host + `/rest/v2/hcparty/byNameStrict/${encodeURIComponent(String(name))}` + '?ts=' + new Date().getTime();
261
- const headers = this.headers;
262
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
263
- .then((doc) => doc.body.map((it) => new HealthcareParty_1.HealthcareParty(it)))
264
- .catch((err) => this.handleError(err));
265
- }
266
- /**
267
- * Return a list of children hcp.
268
- * @summary Find children of an healthcare parties
269
- * @param parentId
270
- */
271
- listHealthcarePartiesByParentId(parentId) {
272
- const _body = null;
273
- const _url = this.host + `/rest/v2/hcparty/${encodeURIComponent(String(parentId))}/children` + '?ts=' + new Date().getTime();
274
- const headers = this.headers;
275
- return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
276
- .then((doc) => doc.body.map((it) => new HealthcareParty_1.HealthcareParty(it)))
277
- .catch((err) => this.handleError(err));
278
- }
279
- /**
280
- * No particular return value. It's just a message.
281
- * @summary Modify a Healthcare Party.
282
- * @param body
283
- */
284
- modifyHealthcareParty(body) {
285
- let _body = null;
286
- _body = body;
287
- const _url = this.host + `/rest/v2/hcparty` + '?ts=' + new Date().getTime();
288
- let headers = this.headers;
289
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
290
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
291
- .then((doc) => new HealthcareParty_1.HealthcareParty(doc.body))
292
- .catch((err) => this.handleError(err));
293
- }
294
- /**
295
- * No particular return value. It's just a message.
296
- * @summary Modify a Healthcare Party.
297
- * @param body
298
- * @param groupId
299
- */
300
- modifyHealthcarePartyInGroup(groupId, body) {
301
- let _body = null;
302
- _body = body;
303
- const _url = this.host + `/rest/v2/hcparty/inGroup/${encodeURIComponent(String(groupId))}` + '?ts=' + new Date().getTime();
304
- let headers = this.headers;
305
- headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
306
- return XHR_1.XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)
307
- .then((doc) => new HealthcareParty_1.HealthcareParty(doc.body))
308
- .catch((err) => this.handleError(err));
309
- }
310
- }
311
- exports.IccHealthcarePartyApi = IccHealthcarePartyApi;
312
- //# sourceMappingURL=IccHealthcarePartyApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IccHealthcarePartyApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccHealthcarePartyApi.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,0DAAsD;AACtD,8DAA0D;AAE1D,wFAAoF;AACpF,kDAA8C;AAE9C,MAAa,qBAAqB;IAKhC,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,qBAAqB,CAAC,IAAsB;QAC1C,IAAI,KAAK,GAAG,IAAI,CAAA;QAChB,KAAK,GAAG,IAAI,CAAA;QAEZ,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,GAAG,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;QAC3E,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC1B,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAA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AE,CAAC,IAAI,iCAAe,CAAC,GAAG,CAAC,IAAY,CAAC,CAAC;aACpD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,CAAC;CACF;AAlWD,sDAkWC","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 */\nimport { XHR } from './XHR'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { HealthcareParty } from '../model/HealthcareParty'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { PaginatedListHealthcareParty } from '../model/PaginatedListHealthcareParty'\nimport { PublicKey } from '../model/PublicKey'\n\nexport class IccHealthcarePartyApi {\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 * One of Name or Last name+First name, Nihii, and Public key are required.\n * @summary Create a healthcare party\n * @param body\n */\n createHealthcareParty(body?: HealthcareParty): Promise<HealthcareParty> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/hcparty` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)\n .then((doc) => new HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * One of Name or Last name+First name, Nihii, and Public key are required.\n * @summary Create a healthcare party\n * @param body\n * @param groupId\n */\n createHealthcarePartyInGroup(groupId: string, body?: HealthcareParty): Promise<HealthcareParty> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/hcparty/inGroup/${encodeURIComponent(String(groupId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)\n .then((doc) => new HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Deleting healthcareParties. Response is an array containing the id of deleted healthcare parties.\n * @summary Delete healthcare parties\n * @param body\n */\n deleteHealthcareParties(body?: ListOfIds): Promise<Array<DocIdentifier>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/hcparty/delete/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 DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Deleting a healthcareParty. Response is an array containing the id of deleted healthcare party.\n * @summary Delete a healthcare party\n * @param body\n * @param groupId\n */\n deleteHealthcarePartiesInGroup(groupId: string, body?: ListOfIds): Promise<Array<DocIdentifier>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/hcparty/delete/batch/inGroup/${encodeURIComponent(String(groupId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary List healthcare parties with(out) pagination\n * @param startKey A healthcare party Last name\n * @param startDocumentId A healthcare party document ID\n * @param limit Number of rows\n * @param desc Descending\n */\n findHealthcarePartiesBy(startKey?: string, startDocumentId?: string, limit?: number, desc?: boolean): Promise<PaginatedListHealthcareParty> {\n const _body = null\n\n const _url =\n this.host +\n `/rest/v2/hcparty` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by name with(out) pagination\n * @param name The Last name search value\n * @param startKey A healthcare party Last name\n * @param startDocumentId A healthcare party document ID\n * @param limit Number of rows\n * @param desc Descending\n */\n findHealthcarePartiesByName(\n name?: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n desc?: boolean\n ): Promise<PaginatedListHealthcareParty> {\n const _body = null\n\n const _url =\n this.host +\n `/rest/v2/hcparty/byName` +\n '?ts=' +\n new Date().getTime() +\n (name ? '&name=' + encodeURIComponent(String(name)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by name with(out) pagination\n * @param type The type of the HCP (persphysician)\n * @param spec The speciality of the HCP\n * @param firstCode The first postCode for the HCP\n * @param lastCode The last postCode for the HCP\n * @param limit Number of rows\n */\n findHealthcarePartiesBySpecialityAndPostCode(\n type: string,\n spec: string,\n firstCode: string,\n lastCode: string,\n limit?: number\n ): Promise<PaginatedListHealthcareParty> {\n const _body = null\n\n const _url =\n this.host +\n `/rest/v2/hcparty/bySpecialityAndPostCode/${encodeURIComponent(String(type))}/${encodeURIComponent(String(spec))}/${encodeURIComponent(\n String(firstCode)\n )}/to/${encodeURIComponent(String(lastCode))}` +\n '?ts=' +\n new Date().getTime() +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by nihii or ssin with(out) pagination\n * @param searchValue\n * @param startKey A healthcare party Last name\n * @param startDocumentId A healthcare party document ID\n * @param limit Number of rows\n * @param desc Descending\n */\n findHealthcarePartiesBySsinOrNihii(\n searchValue: string,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n desc?: boolean\n ): Promise<PaginatedListHealthcareParty> {\n const _body = null\n\n const _url =\n this.host +\n `/rest/v2/hcparty/byNihiiOrSsin/${encodeURIComponent(String(searchValue))}` +\n '?ts=' +\n new Date().getTime() +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (desc ? '&desc=' + encodeURIComponent(String(desc)) : '')\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new PaginatedListHealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the current healthcare Party\n * @summary Get the current healthcare party if logged in.\n */\n getCurrentHealthcareParty(): Promise<HealthcareParty> {\n const _body = null\n\n const _url = this.host + `/rest/v2/hcparty/current` + '?ts=' + new Date().getTime()\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * (key, value) of the map is as follows: (ID of the owner of the encrypted AES key, encrypted AES key)\n * @summary Get the HcParty encrypted AES keys indexed by owner\n * @param healthcarePartyId\n */\n getHcPartyKeysForDelegate(healthcarePartyId: string): Promise<{ [key: string]: string }> {\n const _body = null\n\n const _url = this.host + `/rest/v2/hcparty/byKeys/${encodeURIComponent(String(healthcarePartyId))}` + '?ts=' + new Date().getTime()\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => JSON.parse(JSON.stringify(doc.body)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the healthcare Party\n * @summary Get healthcareParties by their IDs\n * @param body\n */\n getHealthcareParties(body?: ListOfIds): Promise<Array<HealthcareParty>> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/hcparty/byIds` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * General information about the healthcare Party\n * @summary Get a healthcareParty by his ID\n * @param healthcarePartyId\n */\n getHealthcareParty(healthcarePartyId: string): Promise<HealthcareParty> {\n const _body = null\n\n const _url = this.host + `/rest/v2/hcparty/${encodeURIComponent(String(healthcarePartyId))}` + '?ts=' + new Date().getTime()\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns the public key of a healthcare party in Hex\n * @summary Get public key of a healthcare party\n * @param healthcarePartyId\n */\n getPublicKey(healthcarePartyId: string): Promise<PublicKey> {\n const _body = null\n\n const _url = this.host + `/rest/v2/hcparty/${encodeURIComponent(String(healthcarePartyId))}/publicKey` + '?ts=' + new Date().getTime()\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => new PublicKey(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of healthcare parties.\n * @summary Find healthcare parties by name with(out) pagination\n * @param name The Last name search value\n */\n listHealthcarePartiesByName(name: string): Promise<Array<HealthcareParty>> {\n const _body = null\n\n const _url = this.host + `/rest/v2/hcparty/byNameStrict/${encodeURIComponent(String(name))}` + '?ts=' + new Date().getTime()\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Return a list of children hcp.\n * @summary Find children of an healthcare parties\n * @param parentId\n */\n listHealthcarePartiesByParentId(parentId: string): Promise<Array<HealthcareParty>> {\n const _body = null\n\n const _url = this.host + `/rest/v2/hcparty/${encodeURIComponent(String(parentId))}/children` + '?ts=' + new Date().getTime()\n const headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)\n .then((doc) => (doc.body as Array<JSON>).map((it) => new HealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * No particular return value. It's just a message.\n * @summary Modify a Healthcare Party.\n * @param body\n */\n modifyHealthcareParty(body?: HealthcareParty): Promise<HealthcareParty> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/hcparty` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)\n .then((doc) => new HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * No particular return value. It's just a message.\n * @summary Modify a Healthcare Party.\n * @param body\n * @param groupId\n */\n modifyHealthcarePartyInGroup(groupId: string, body?: HealthcareParty): Promise<HealthcareParty> {\n let _body = null\n _body = body\n\n const _url = this.host + `/rest/v2/hcparty/inGroup/${encodeURIComponent(String(groupId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl)\n .then((doc) => new HealthcareParty(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n}\n"]}