@icure/api 4.0.96 → 4.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/icc-api/api/IccAnonymousAccessApi.d.ts +2 -2
- package/icc-api/api/IccAnonymousAccessApi.js +4 -4
- package/icc-api/api/IccAnonymousAccessApi.js.map +1 -1
- package/icc-api/model/AppointmentTypeAndPlace.d.ts +1 -0
- package/icc-api/model/AppointmentTypeAndPlace.js.map +1 -1
- package/icc-api/model/Remote.d.ts +2 -2
- package/icc-api/model/Remote.js.map +1 -1
- package/package.json +1 -1
|
@@ -25,14 +25,14 @@ export declare class IccAnonymousAccessApi {
|
|
|
25
25
|
* @param groupId
|
|
26
26
|
* @param userId
|
|
27
27
|
* @param calendarItemTypeId
|
|
28
|
-
* @param placeId
|
|
29
28
|
* @param isNewPatient
|
|
30
29
|
* @param startDate
|
|
31
30
|
* @param endDate
|
|
32
31
|
* @param hcpId
|
|
32
|
+
* @param placeId
|
|
33
33
|
* @param limit
|
|
34
34
|
*/
|
|
35
|
-
getAvailabilitiesByPeriodAndCalendarItemTypeId(groupId: string, userId: string, calendarItemTypeId: string,
|
|
35
|
+
getAvailabilitiesByPeriodAndCalendarItemTypeId(groupId: string, userId: string, calendarItemTypeId: string, isNewPatient: boolean, startDate: number, endDate: number, hcpId: string, placeId?: string, limit?: number): Promise<Array<number>>;
|
|
36
36
|
/**
|
|
37
37
|
* Returns a list of Calendar Item types. In order to be returned, the Calendar Item Type must be linked to a time table enclosed in an Agenda for which an anonymous right has been set (a Right with read permission and null user)
|
|
38
38
|
* @summary List Calendar Item types for a provided group id and user id
|
|
@@ -33,24 +33,24 @@ class IccAnonymousAccessApi {
|
|
|
33
33
|
* @param groupId
|
|
34
34
|
* @param userId
|
|
35
35
|
* @param calendarItemTypeId
|
|
36
|
-
* @param placeId
|
|
37
36
|
* @param isNewPatient
|
|
38
37
|
* @param startDate
|
|
39
38
|
* @param endDate
|
|
40
39
|
* @param hcpId
|
|
40
|
+
* @param placeId
|
|
41
41
|
* @param limit
|
|
42
42
|
*/
|
|
43
|
-
getAvailabilitiesByPeriodAndCalendarItemTypeId(groupId, userId, calendarItemTypeId,
|
|
43
|
+
getAvailabilitiesByPeriodAndCalendarItemTypeId(groupId, userId, calendarItemTypeId, isNewPatient, startDate, endDate, hcpId, placeId, limit) {
|
|
44
44
|
let _body = null;
|
|
45
45
|
const _url = this.host +
|
|
46
46
|
`/aa/available/inGroup/${encodeURIComponent(String(groupId))}/forUser/${encodeURIComponent(String(userId))}/type/${encodeURIComponent(String(calendarItemTypeId))}` +
|
|
47
47
|
'?ts=' +
|
|
48
48
|
new Date().getTime() +
|
|
49
|
-
(
|
|
50
|
-
(isNewPatient ? '&isNewPatient=' + encodeURIComponent(String(isNewPatient)) : '') +
|
|
49
|
+
(isNewPatient !== null && isNewPatient !== undefined ? '&isNewPatient=' + encodeURIComponent(String(isNewPatient)) : '') +
|
|
51
50
|
(startDate ? '&startDate=' + encodeURIComponent(String(startDate)) : '') +
|
|
52
51
|
(endDate ? '&endDate=' + encodeURIComponent(String(endDate)) : '') +
|
|
53
52
|
(hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '') +
|
|
53
|
+
(placeId ? '&placeId=' + encodeURIComponent(String(placeId)) : '') +
|
|
54
54
|
(limit ? '&limit=' + encodeURIComponent(String(limit)) : '');
|
|
55
55
|
let headers = this.headers;
|
|
56
56
|
return XHR_1.XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IccAnonymousAccessApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccAnonymousAccessApi.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,8EAA0E;AAC1E,4EAAwE;AAExE,MAAa,qBAAqB;IAKhC,YAAY,IAAY,EAAE,OAAY,EAAE,SAAyE;QAC/G,IAAI,CAAC,IAAI,GAAG,IAAI,C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,IAAI,iDAAuB,CAAC,EAAE,CAAC,CAAC,CAAC;aACrF,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,CAAC;IAED;;;;OAIG;IACH,4BAA4B,CAAC,OAAe;QAC1C,IAAI,KAAK,GAAG,IAAI,CAAA;QAEhB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,uBAAuB,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;QACrH,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAC1B,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,+CAAsB,CAAC,EAAE,CAAC,CAAC,CAAC;aACpF,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,CAAC;CACF;AAtGD,sDAsGC","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 { AppointmentTypeAndPlace } from '../model/AppointmentTypeAndPlace'\nimport { UserAndHealthcareParty } from '../model/UserAndHealthcareParty'\n\nexport class IccAnonymousAccessApi {\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 * The start of the slot is returned in YYYYDDMMHHmmss format and only slots belonging to public time tables are returned.\n * @summary Get Availabilities for HCP and appointmentType\n * @param groupId\n * @param userId\n * @param calendarItemTypeId\n * @param isNewPatient\n * @param startDate\n * @param endDate\n * @param hcpId\n * @param placeId\n * @param limit\n */\n getAvailabilitiesByPeriodAndCalendarItemTypeId(\n groupId: string,\n userId: string,\n calendarItemTypeId: string,\n isNewPatient: boolean,\n startDate: number,\n endDate: number,\n hcpId: string,\n placeId?: string,\n limit?: number\n ): Promise<Array<number>> {\n let _body = null\n\n const _url =\n this.host +\n `/aa/available/inGroup/${encodeURIComponent(String(groupId))}/forUser/${encodeURIComponent(String(userId))}/type/${encodeURIComponent(\n String(calendarItemTypeId)\n )}` +\n '?ts=' +\n new Date().getTime() +\n (isNewPatient !== null && isNewPatient !== undefined ? '&isNewPatient=' + encodeURIComponent(String(isNewPatient)) : '') +\n (startDate ? '&startDate=' + encodeURIComponent(String(startDate)) : '') +\n (endDate ? '&endDate=' + encodeURIComponent(String(endDate)) : '') +\n (hcpId ? '&hcpId=' + encodeURIComponent(String(hcpId)) : '') +\n (placeId ? '&placeId=' + encodeURIComponent(String(placeId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\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 Calendar Item types. In order to be returned, the Calendar Item Type must be linked to a time table enclosed in an Agenda for which an anonymous right has been set (a Right with read permission and null user)\n * @summary List Calendar Item types for a provided group id and user id\n * @param groupId Healthcare parties group id\n * @param userId Healthcare party user id\n * @param startDate\n * @param endDate\n */\n listAppointmentTypesForUser(groupId: string, userId: string, startDate: number, endDate: number): Promise<Array<AppointmentTypeAndPlace>> {\n let _body = null\n\n const _url =\n this.host +\n `/aa/appointmentType/inGroup/${encodeURIComponent(String(groupId))}/forUser/${encodeURIComponent(String(userId))}` +\n '?ts=' +\n new Date().getTime() +\n (startDate ? '&startDate=' + encodeURIComponent(String(startDate)) : '') +\n (endDate ? '&endDate=' + encodeURIComponent(String(endDate)) : '')\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 AppointmentTypeAndPlace(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Returns a list of Users/healthcare parties contained in the group owning the providing id. In order to be returned, a healthcare party needs to be linked to a user an this user must have a property 'org.taktik.icure.public' set to a boolean true.\n * @summary List healthcare parties for a provided group id\n * @param groupId Healthcare parties group id\n */\n listHealthcarePartiesInGroup(groupId: string): Promise<Array<UserAndHealthcareParty>> {\n let _body = null\n\n const _url = this.host + `/aa/hcparty/inGroup/${encodeURIComponent(String(groupId))}` + '?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 UserAndHealthcareParty(it)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppointmentTypeAndPlace.js","sourceRoot":"","sources":["../../../icc-api/model/AppointmentTypeAndPlace.ts"],"names":[],"mappings":";;;AAaA,MAAa,uBAAuB;IAClC,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAA+B,EAAE,IAAI,CAAC,CAAA;IACtD,CAAC;
|
|
1
|
+
{"version":3,"file":"AppointmentTypeAndPlace.js","sourceRoot":"","sources":["../../../icc-api/model/AppointmentTypeAndPlace.ts"],"names":[],"mappings":";;;AAaA,MAAa,uBAAuB;IAClC,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAA+B,EAAE,IAAI,CAAC,CAAA;IACtD,CAAC;CAUF;AAbD,0DAaC","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 { Address } from './Address'\n\nexport class AppointmentTypeAndPlace {\n constructor(json: JSON | any) {\n Object.assign(this as AppointmentTypeAndPlace, json)\n }\n\n calendarItemTypeId?: string\n name?: string\n color?: string\n duration?: number\n subjectByLanguage?: { [key: string]: string }\n placeId?: string\n address?: Address\n acceptsNewPatients?: boolean\n}\n"]}
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { RemoteAuthentication } from './RemoteAuthentication';
|
|
13
13
|
export declare class Remote {
|
|
14
14
|
constructor(json: JSON | any);
|
|
15
15
|
url?: string;
|
|
16
|
-
auth?:
|
|
16
|
+
auth?: RemoteAuthentication;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Remote.js","sourceRoot":"","sources":["../../../icc-api/model/Remote.ts"],"names":[],"mappings":";;;AAaA,MAAa,MAAM;IACjB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAc,EAAE,IAAI,CAAC,CAAA;IACrC,CAAC;CAIF;AAPD,wBAOC","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 {
|
|
1
|
+
{"version":3,"file":"Remote.js","sourceRoot":"","sources":["../../../icc-api/model/Remote.ts"],"names":[],"mappings":";;;AAaA,MAAa,MAAM;IACjB,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAc,EAAE,IAAI,CAAC,CAAA;IACrC,CAAC;CAIF;AAPD,wBAOC","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 { RemoteAuthentication } from './RemoteAuthentication'\n\nexport class Remote {\n constructor(json: JSON | any) {\n Object.assign(this as Remote, json)\n }\n\n url?: string\n auth?: RemoteAuthentication\n}\n"]}
|