@icure/api 8.8.0 → 8.8.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.
- package/icc-api/api/IccAccesslogApi.d.ts +48 -0
- package/icc-api/api/IccAccesslogApi.js +100 -0
- package/icc-api/api/IccAccesslogApi.js.map +1 -1
- package/icc-api/api/IccAgendaApi.d.ts +25 -0
- package/icc-api/api/IccAgendaApi.js +49 -0
- package/icc-api/api/IccAgendaApi.js.map +1 -1
- package/icc-api/api/IccCalendarItemApi.d.ts +25 -0
- package/icc-api/api/IccCalendarItemApi.js +49 -0
- package/icc-api/api/IccCalendarItemApi.js.map +1 -1
- package/icc-api/api/IccCalendarItemTypeApi.d.ts +25 -0
- package/icc-api/api/IccCalendarItemTypeApi.js +49 -0
- package/icc-api/api/IccCalendarItemTypeApi.js.map +1 -1
- package/icc-api/api/IccCodeApi.d.ts +25 -0
- package/icc-api/api/IccCodeApi.js +49 -0
- package/icc-api/api/IccCodeApi.js.map +1 -1
- package/icc-api/api/IccContactApi.d.ts +48 -0
- package/icc-api/api/IccContactApi.js +100 -0
- package/icc-api/api/IccContactApi.js.map +1 -1
- package/icc-api/api/IccDeviceApi.d.ts +48 -0
- package/icc-api/api/IccDeviceApi.js +100 -0
- package/icc-api/api/IccDeviceApi.js.map +1 -1
- package/icc-api/api/IccDocumentApi.d.ts +48 -0
- package/icc-api/api/IccDocumentApi.js +100 -0
- package/icc-api/api/IccDocumentApi.js.map +1 -1
- package/icc-api/api/IccFormApi.d.ts +48 -0
- package/icc-api/api/IccFormApi.js +101 -4
- package/icc-api/api/IccFormApi.js.map +1 -1
- package/icc-api/api/IccHcpartyApi.d.ts +48 -0
- package/icc-api/api/IccHcpartyApi.js +100 -0
- package/icc-api/api/IccHcpartyApi.js.map +1 -1
- package/icc-api/api/IccHelementApi.d.ts +48 -0
- package/icc-api/api/IccHelementApi.js +100 -0
- package/icc-api/api/IccHelementApi.js.map +1 -1
- package/icc-api/api/IccInsuranceApi.d.ts +50 -2
- package/icc-api/api/IccInsuranceApi.js +100 -0
- package/icc-api/api/IccInsuranceApi.js.map +1 -1
- package/icc-api/api/IccInvoiceApi.d.ts +48 -0
- package/icc-api/api/IccInvoiceApi.js +100 -0
- package/icc-api/api/IccInvoiceApi.js.map +1 -1
- package/icc-api/api/IccMessageApi.d.ts +48 -0
- package/icc-api/api/IccMessageApi.js +100 -0
- package/icc-api/api/IccMessageApi.js.map +1 -1
- package/icc-api/api/IccPatientApi.d.ts +48 -0
- package/icc-api/api/IccPatientApi.js +100 -0
- package/icc-api/api/IccPatientApi.js.map +1 -1
- package/icc-api/api/IccPlaceApi.d.ts +25 -0
- package/icc-api/api/IccPlaceApi.js +49 -0
- package/icc-api/api/IccPlaceApi.js.map +1 -1
- package/icc-api/api/IccReceiptApi.d.ts +25 -0
- package/icc-api/api/IccReceiptApi.js +49 -0
- package/icc-api/api/IccReceiptApi.js.map +1 -1
- package/icc-api/api/IccTopicApi.d.ts +48 -0
- package/icc-api/api/IccTopicApi.js +100 -0
- package/icc-api/api/IccTopicApi.js.map +1 -1
- package/icc-api/api/IccUserApi.d.ts +25 -0
- package/icc-api/api/IccUserApi.js +49 -0
- package/icc-api/api/IccUserApi.js.map +1 -1
- package/icc-api/model/ConflictResolutionRequest.d.ts +18 -0
- package/icc-api/model/ConflictResolutionRequest.js +17 -0
- package/icc-api/model/ConflictResolutionRequest.js.map +1 -0
- package/icc-api/model/ConflictResolutionResult.d.ts +22 -0
- package/icc-api/model/ConflictResolutionResult.js +24 -0
- package/icc-api/model/ConflictResolutionResult.js.map +1 -0
- package/icc-api/model/models.d.ts +2 -0
- package/icc-api/model/models.js +2 -0
- package/icc-api/model/models.js.map +1 -1
- package/icc-x-api/icc-accesslog-x-api.d.ts +31 -0
- package/icc-x-api/icc-accesslog-x-api.js +57 -0
- package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
- package/icc-x-api/icc-calendar-item-x-api.d.ts +15 -0
- package/icc-x-api/icc-calendar-item-x-api.js +28 -0
- package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
- package/icc-x-api/icc-contact-x-api.d.ts +31 -0
- package/icc-x-api/icc-contact-x-api.js +60 -1
- package/icc-x-api/icc-contact-x-api.js.map +1 -1
- package/icc-x-api/icc-document-x-api.d.ts +31 -0
- package/icc-x-api/icc-document-x-api.js +64 -0
- package/icc-x-api/icc-document-x-api.js.map +1 -1
- package/icc-x-api/icc-form-x-api.d.ts +31 -0
- package/icc-x-api/icc-form-x-api.js +58 -0
- package/icc-x-api/icc-form-x-api.js.map +1 -1
- package/icc-x-api/icc-helement-x-api.d.ts +31 -0
- package/icc-x-api/icc-helement-x-api.js +57 -0
- package/icc-x-api/icc-helement-x-api.js.map +1 -1
- package/icc-x-api/icc-invoice-x-api.d.ts +31 -0
- package/icc-x-api/icc-invoice-x-api.js +58 -0
- package/icc-x-api/icc-invoice-x-api.js.map +1 -1
- package/icc-x-api/icc-message-x-api.d.ts +31 -0
- package/icc-x-api/icc-message-x-api.js +64 -0
- package/icc-x-api/icc-message-x-api.js.map +1 -1
- package/icc-x-api/icc-patient-x-api.d.ts +31 -0
- package/icc-x-api/icc-patient-x-api.js +57 -0
- package/icc-x-api/icc-patient-x-api.js.map +1 -1
- package/icc-x-api/icc-topic-x-api.d.ts +31 -0
- package/icc-x-api/icc-topic-x-api.js +58 -0
- package/icc-x-api/icc-topic-x-api.js.map +1 -1
- package/icc-x-api/utils/formatting-util.d.ts +10 -4
- package/icc-x-api/utils/formatting-util.js +47 -6
- package/icc-x-api/utils/formatting-util.js.map +1 -1
- package/package.json +1 -1
|
@@ -19,6 +19,8 @@ import { ListOfIds } from '../model/ListOfIds';
|
|
|
19
19
|
import { BulkShareOrUpdateMetadataParams } from '../model/requests/BulkShareOrUpdateMetadataParams';
|
|
20
20
|
import { AbstractFilterAccessLog } from '../model/AbstractFilterAccessLog';
|
|
21
21
|
import { TimingInfo } from '../model/TimingInfo';
|
|
22
|
+
import { ConflictResolutionRequest } from '../model/ConflictResolutionRequest';
|
|
23
|
+
import { ConflictResolutionResult } from '../model/ConflictResolutionResult';
|
|
22
24
|
export declare class IccAccesslogApi {
|
|
23
25
|
host: string;
|
|
24
26
|
_headers: Array<XHR.Header>;
|
|
@@ -144,4 +146,50 @@ export declare class IccAccesslogApi {
|
|
|
144
146
|
*/
|
|
145
147
|
matchAccessLogsInGroupBy(groupId: string, body: AbstractFilterAccessLog, collectTiming?: false): Promise<Array<string>>;
|
|
146
148
|
matchAccessLogsInGroupBy(groupId: string, body: AbstractFilterAccessLog, collectTiming?: true): Promise<Array<string> & TimingInfo>;
|
|
149
|
+
/**
|
|
150
|
+
* Retrieves the ids of all the access logs that currently have conflicting revisions and therefore need to
|
|
151
|
+
* be resolved.
|
|
152
|
+
* @summary List the ids of the access logs that have conflicts.
|
|
153
|
+
* @return the ids of the access logs with unresolved conflicts.
|
|
154
|
+
*/
|
|
155
|
+
getConflictingEntitiesIds(): Promise<Array<string>>;
|
|
156
|
+
/**
|
|
157
|
+
* Retrieves all the conflicting revisions of the access log with the given id (the current revision is not
|
|
158
|
+
* included). The returned entities are still encrypted.
|
|
159
|
+
* @summary Get the conflicting revisions of an access log.
|
|
160
|
+
* @param entityId the id of the access log to retrieve the conflicts for.
|
|
161
|
+
* @return the conflicting revisions of the access log.
|
|
162
|
+
*/
|
|
163
|
+
getConflictsForEntity(entityId: string): Promise<Array<AccessLog>>;
|
|
164
|
+
/**
|
|
165
|
+
* Resolves a conflict by declaring which revision of the access log should be kept as winner and which
|
|
166
|
+
* conflicting revisions should be purged. The provided document must already be encrypted.
|
|
167
|
+
* @summary Declare the winning revision of a conflicting access log.
|
|
168
|
+
* @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.
|
|
169
|
+
* @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.
|
|
170
|
+
*/
|
|
171
|
+
declareConflictWinner(body: ConflictResolutionRequest<AccessLog>): Promise<ConflictResolutionResult<AccessLog>>;
|
|
172
|
+
/**
|
|
173
|
+
* Like {@link getConflictingEntitiesIds} but targets the entities of the group with the given id.
|
|
174
|
+
* @summary List the ids of the access logs that have conflicts, in the given group.
|
|
175
|
+
* @param groupId the id of the group to look into.
|
|
176
|
+
* @return the ids of the access logs with unresolved conflicts in the group.
|
|
177
|
+
*/
|
|
178
|
+
getConflictingEntitiesIdsInGroup(groupId: string): Promise<Array<string>>;
|
|
179
|
+
/**
|
|
180
|
+
* Like {@link getConflictsForEntity} but targets the entity of the group with the given id.
|
|
181
|
+
* @summary Get the conflicting revisions of an access log, in the given group.
|
|
182
|
+
* @param groupId the id of the group the access log belongs to.
|
|
183
|
+
* @param entityId the id of the access log to retrieve the conflicts for.
|
|
184
|
+
* @return the conflicting revisions of the access log.
|
|
185
|
+
*/
|
|
186
|
+
getConflictsForEntityInGroup(groupId: string, entityId: string): Promise<Array<AccessLog>>;
|
|
187
|
+
/**
|
|
188
|
+
* Like {@link declareConflictWinner} but targets the entity of the group with the given id.
|
|
189
|
+
* @summary Declare the winning revision of a conflicting access log, in the given group.
|
|
190
|
+
* @param groupId the id of the group the access log belongs to.
|
|
191
|
+
* @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.
|
|
192
|
+
* @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.
|
|
193
|
+
*/
|
|
194
|
+
declareConflictWinnerInGroup(groupId: string, body: ConflictResolutionRequest<AccessLog>): Promise<ConflictResolutionResult<AccessLog>>;
|
|
147
195
|
}
|
|
@@ -29,6 +29,7 @@ const AuthenticationProvider_1 = require("../../icc-x-api/auth/AuthenticationPro
|
|
|
29
29
|
const IccRestApiPath_1 = require("./IccRestApiPath");
|
|
30
30
|
const EntityBulkShareResult_1 = require("../model/requests/EntityBulkShareResult");
|
|
31
31
|
const ListOfIds_1 = require("../model/ListOfIds");
|
|
32
|
+
const ConflictResolutionResult_1 = require("../model/ConflictResolutionResult");
|
|
32
33
|
class IccAccesslogApi {
|
|
33
34
|
get headers() {
|
|
34
35
|
return Promise.resolve(this._headers);
|
|
@@ -317,6 +318,105 @@ class IccAccesslogApi {
|
|
|
317
318
|
.catch((err) => this.handleError(err));
|
|
318
319
|
});
|
|
319
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* Retrieves the ids of all the access logs that currently have conflicting revisions and therefore need to
|
|
323
|
+
* be resolved.
|
|
324
|
+
* @summary List the ids of the access logs that have conflicts.
|
|
325
|
+
* @return the ids of the access logs with unresolved conflicts.
|
|
326
|
+
*/
|
|
327
|
+
getConflictingEntitiesIds() {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
const _url = this.host + `/accesslog/conflicts` + '?ts=' + new Date().getTime();
|
|
330
|
+
let headers = yield this.headers;
|
|
331
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
332
|
+
.then((doc) => doc.body)
|
|
333
|
+
.catch((err) => this.handleError(err));
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Retrieves all the conflicting revisions of the access log with the given id (the current revision is not
|
|
338
|
+
* included). The returned entities are still encrypted.
|
|
339
|
+
* @summary Get the conflicting revisions of an access log.
|
|
340
|
+
* @param entityId the id of the access log to retrieve the conflicts for.
|
|
341
|
+
* @return the conflicting revisions of the access log.
|
|
342
|
+
*/
|
|
343
|
+
getConflictsForEntity(entityId) {
|
|
344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
345
|
+
const _url = this.host + `/accesslog/conflicts/${encodeURIComponent(String(entityId))}` + '?ts=' + new Date().getTime();
|
|
346
|
+
let headers = yield this.headers;
|
|
347
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
348
|
+
.then((doc) => doc.body.map((it) => new AccessLog_1.AccessLog(it)))
|
|
349
|
+
.catch((err) => this.handleError(err));
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Resolves a conflict by declaring which revision of the access log should be kept as winner and which
|
|
354
|
+
* conflicting revisions should be purged. The provided document must already be encrypted.
|
|
355
|
+
* @summary Declare the winning revision of a conflicting access log.
|
|
356
|
+
* @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.
|
|
357
|
+
* @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.
|
|
358
|
+
*/
|
|
359
|
+
declareConflictWinner(body) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
const _url = this.host + `/accesslog/conflicts/winner` + '?ts=' + new Date().getTime();
|
|
362
|
+
let headers = yield this.headers;
|
|
363
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
364
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
365
|
+
.then((doc) => new ConflictResolutionResult_1.ConflictResolutionResult(doc.body, (x) => new AccessLog_1.AccessLog(x)))
|
|
366
|
+
.catch((err) => this.handleError(err));
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Like {@link getConflictingEntitiesIds} but targets the entities of the group with the given id.
|
|
371
|
+
* @summary List the ids of the access logs that have conflicts, in the given group.
|
|
372
|
+
* @param groupId the id of the group to look into.
|
|
373
|
+
* @return the ids of the access logs with unresolved conflicts in the group.
|
|
374
|
+
*/
|
|
375
|
+
getConflictingEntitiesIdsInGroup(groupId) {
|
|
376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
377
|
+
const _url = this.host + `/accesslog/inGroup/${encodeURIComponent(String(groupId))}/conflicts` + '?ts=' + new Date().getTime();
|
|
378
|
+
let headers = yield this.headers;
|
|
379
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
380
|
+
.then((doc) => doc.body)
|
|
381
|
+
.catch((err) => this.handleError(err));
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Like {@link getConflictsForEntity} but targets the entity of the group with the given id.
|
|
386
|
+
* @summary Get the conflicting revisions of an access log, in the given group.
|
|
387
|
+
* @param groupId the id of the group the access log belongs to.
|
|
388
|
+
* @param entityId the id of the access log to retrieve the conflicts for.
|
|
389
|
+
* @return the conflicting revisions of the access log.
|
|
390
|
+
*/
|
|
391
|
+
getConflictsForEntityInGroup(groupId, entityId) {
|
|
392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
393
|
+
const _url = this.host +
|
|
394
|
+
`/accesslog/inGroup/${encodeURIComponent(String(groupId))}/conflicts/${encodeURIComponent(String(entityId))}` +
|
|
395
|
+
'?ts=' +
|
|
396
|
+
new Date().getTime();
|
|
397
|
+
let headers = yield this.headers;
|
|
398
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
399
|
+
.then((doc) => doc.body.map((it) => new AccessLog_1.AccessLog(it)))
|
|
400
|
+
.catch((err) => this.handleError(err));
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Like {@link declareConflictWinner} but targets the entity of the group with the given id.
|
|
405
|
+
* @summary Declare the winning revision of a conflicting access log, in the given group.
|
|
406
|
+
* @param groupId the id of the group the access log belongs to.
|
|
407
|
+
* @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.
|
|
408
|
+
* @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.
|
|
409
|
+
*/
|
|
410
|
+
declareConflictWinnerInGroup(groupId, body) {
|
|
411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
412
|
+
const _url = this.host + `/accesslog/inGroup/${encodeURIComponent(String(groupId))}/conflicts/winner` + '?ts=' + new Date().getTime();
|
|
413
|
+
let headers = yield this.headers;
|
|
414
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
415
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
416
|
+
.then((doc) => new ConflictResolutionResult_1.ConflictResolutionResult(doc.body, (x) => new AccessLog_1.AccessLog(x)))
|
|
417
|
+
.catch((err) => this.handleError(err));
|
|
418
|
+
});
|
|
419
|
+
}
|
|
320
420
|
}
|
|
321
421
|
exports.IccAccesslogApi = IccAccesslogApi;
|
|
322
422
|
//# sourceMappingURL=IccAccesslogApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IccAccesslogApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccAccesslogApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,kDAA8C;AAC9C,0DAAsD;AACtD,4EAAwE;AACxE,wFAA8G;AAC9G,qDAAiD;AACjD,mFAA+E;AAC/E,kDAA8C;AAK9C,MAAa,eAAe;IAM1B,IAAI,OAAO;QACT,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACvC,CAAC;IAED,YACE,IAAY,EACZ,OAAY,EACZ,sBAA+C,EAC/C,SAAyE;QAEzE,IAAI,CAAC,IAAI,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAA;QAChC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,SAAG,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC9E,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,IAAI,iDAAwB,EAAE,CAAA;QA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,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;iBACvL,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAE,GAAG,CAAC,IAAoB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;iBAClK,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AAvWD,0CAuWC","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 { AccessLog } from '../model/AccessLog'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { PaginatedListAccessLog } from '../model/PaginatedListAccessLog'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { EntityBulkShareResult } from '../model/requests/EntityBulkShareResult'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { BulkShareOrUpdateMetadataParams } from '../model/requests/BulkShareOrUpdateMetadataParams'\nimport { AbstractFilterAccessLog } from '../model/AbstractFilterAccessLog'\nimport { TimingInfo } from '../model/TimingInfo'\n\nexport class IccAccesslogApi {\n host: string\n _headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n get headers(): Promise<Array<XHR.Header>> {\n return Promise.resolve(this._headers)\n }\n\n constructor(\n host: string,\n headers: any,\n authenticationProvider?: AuthenticationProvider,\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n ) {\n this.host = iccRestApiPath(host)\n this._headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new NoAuthenticationProvider()\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this._headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n *\n * @summary Create an access log\n * @param body\n */\n async createAccessLog(body?: AccessLog): Promise<AccessLog> {\n const _url = this.host + `/accesslog` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new AccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a batch of access logs.\n *\n * @param accessLogIds a ListOfIds containing the ids of the access logs to delete.\n * @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted access logs.\n */\n async deleteAccessLogs(accessLogIds: ListOfIds): Promise<Array<DocIdentifier>> {\n const headers = await this.headers\n return XHR.sendCommand(\n 'POST',\n this.host + `/accesslog/delete/batch` + '?ts=' + new Date().getTime(),\n headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json')),\n accessLogIds,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => (doc.body as Array<JSON>).map((it) => new DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a single access log by id.\n *\n * @param accessLogId the id of the access log.\n */\n async deleteAccessLog(accessLogId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/accesslog/${encodeURIComponent(accessLogId)}` + '?ts=' + new Date().getTime(),\n await this.headers,\n null,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => new DocIdentifier(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @deprecated use {@link findAccessLogIdsByDataOwnerPatientDate} instead.\n * @summary List access logs found by Healthcare Party and secret foreign keyelementIds.\n * @param body\n * @param hcPartyId\n */\n async findAccessLogsByHCPartyPatientForeignKeysUsingPost(hcPartyId: string, body?: Array<string>): Promise<Array<AccessLog>> {\n const _url =\n this.host +\n `/accesslog/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '')\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new AccessLog(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary List AccessLog ids by data owner and a set of secret foreign key. The ids will be sorted by AccessLog date, in ascending or descending\n * order according to the specified parameter value.\n *\n * @param dataOwnerId the data owner id.\n * @param secretFKeys an array of secret foreign keys.\n * @param startDate a timestamp in epoch milliseconds. If undefined, all the access log ids since the beginning of time will be returned.\n * @param endDate a timestamp in epoch milliseconds. If undefined, all the access log ids until the end of time will be returned.\n * @param descending whether to return the ids ordered in ascending or descending order by AccessLog date\n * @return a promise that will resolve in an Array of AccessLog ids.\n */\n async findAccessLogIdsByDataOwnerPatientDate(\n dataOwnerId: string,\n secretFKeys: string[],\n startDate?: number,\n endDate?: number,\n descending?: boolean\n ): Promise<string[]> {\n const _url =\n this.host +\n `/accesslog/byDataOwnerPatientDate?ts=${new Date().getTime()}` +\n '&dataOwnerId=' +\n encodeURIComponent(dataOwnerId) +\n (!!startDate ? `&startDate=${encodeURIComponent(startDate)}` : '') +\n (!!endDate ? `&endDate=${encodeURIComponent(endDate)}` : '') +\n (!!descending ? `&descending=${descending}` : '')\n const headers = (await this.headers).filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n const body = new ListOfIds({ ids: secretFKeys })\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => JSON.parse(JSON.stringify(it))))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @deprecated use {@link findAccessLogIdsByDataOwnerPatientDate} instead\n * @summary List access logs found by Healthcare Party and secret foreign keyelementIds.\n * @param hcPartyId\n * @param secretFKeys\n */\n async findAccessLogsByHCPartyPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<AccessLog>> {\n let _body = null\n\n const _url =\n this.host +\n `/accesslog/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +\n (secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new AccessLog(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get paginated list of Access Logs\n * @param userId A User ID\n * @param accessType The type of access (COMPUTER or USER)\n * @param startDate The start search epoch\n * @param startKey The start key for pagination\n * @param startDocumentId A patient document ID\n * @param limit Number of rows\n * @param descending Descending order\n */\n async findByUserAfterDate(\n userId: string,\n accessType?: string,\n startDate?: number,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n descending?: boolean\n ): Promise<PaginatedListAccessLog> {\n let _body = null\n\n const _url =\n this.host +\n `/accesslog/byUser` +\n '?ts=' +\n new Date().getTime() +\n (userId ? '&userId=' + encodeURIComponent(String(userId)) : '') +\n (accessType ? '&accessType=' + encodeURIComponent(String(accessType)) : '') +\n (startDate ? '&startDate=' + encodeURIComponent(String(startDate)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (descending ? '&descending=' + encodeURIComponent(String(descending)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Get an access log\n * @param accessLogId\n */\n async getAccessLog(accessLogId: string): Promise<AccessLog> {\n let _body = null\n\n const _url = this.host + `/accesslog/${encodeURIComponent(String(accessLogId))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new AccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Get a batch of Access Logs by their ids.\n * @param ids an array of ids.\n */\n async getAccessLogs(ids: ListOfIds): Promise<AccessLog[]> {\n const _url = this.host + `/accesslog/byIds` + '?ts=' + new Date().getTime()\n const headers = (await this.headers).filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n\n return XHR.sendCommand('POST', _url, headers, ids, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new AccessLog(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get paginated list of Access Logs\n * @param fromEpoch\n * @param toEpoch\n * @param startKey\n * @param startDocumentId\n * @param limit\n * @param descending\n */\n async listAccessLogs(\n fromEpoch?: number,\n toEpoch?: number,\n startKey?: number,\n startDocumentId?: string,\n limit?: number,\n descending?: boolean\n ): Promise<PaginatedListAccessLog> {\n let _body = null\n\n const _url =\n this.host +\n `/accesslog` +\n '?ts=' +\n new Date().getTime() +\n (fromEpoch ? '&fromEpoch=' + encodeURIComponent(String(fromEpoch)) : '') +\n (toEpoch ? '&toEpoch=' + encodeURIComponent(String(toEpoch)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (descending ? '&descending=' + encodeURIComponent(String(descending)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, await headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get paginated list of Access Logs for a group\n * @param groupId\n * @param fromEpoch\n * @param toEpoch\n * @param startKey\n * @param startDocumentId\n * @param limit\n */\n async listAccessLogsInGroup(\n groupId: string,\n fromEpoch?: number,\n toEpoch?: number,\n startKey?: number,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListAccessLog> {\n let _body = null\n\n const _url =\n this.host +\n `/accesslog/inGroup/${encodeURIComponent(String(groupId))}` +\n '?ts=' +\n new Date().getTime() +\n (fromEpoch ? '&fromEpoch=' + encodeURIComponent(String(fromEpoch)) : '') +\n (toEpoch ? '&toEpoch=' + encodeURIComponent(String(toEpoch)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Modifies an access log\n * @param body\n */\n async modifyAccessLog(body?: AccessLog): Promise<AccessLog> {\n const _url = this.host + `/accesslog` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new AccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @internal this method is for internal use only and may be changed without notice\n */\n async bulkShareAccessLogs(request: BulkShareOrUpdateMetadataParams): Promise<EntityBulkShareResult<AccessLog>[]> {\n const _url = this.host + '/accesslog/bulkSharedMetadataUpdate' + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, request, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((x) => new EntityBulkShareResult<AccessLog>(x, AccessLog)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of access logs matching the provided filter.\n * @param body an AbstractFilterAccessLog.\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n matchAccessLogsBy(body: AbstractFilterAccessLog, collectTiming?: false): Promise<Array<string>>\n matchAccessLogsBy(body: AbstractFilterAccessLog, collectTiming?: true): Promise<Array<string> & TimingInfo>\n async matchAccessLogsBy(body: AbstractFilterAccessLog, collectTiming: boolean = false): Promise<Array<string>> {\n const _url = this.host + `/accessLog/match`\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService(), undefined, false, collectTiming ? ['x-filter-timing-*'] : [])\n .then((doc) => Object.assign((doc.body as Array<JSON>).map((it) => JSON.parse(JSON.stringify(it))), collectTiming ? { responseHeaders: doc.responseHeaders } : {}))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of access logs matching the provided filter in a specific group.\n * @param groupId the id of the group where to perform the search.\n * @param body an AbstractFilterAccessLog.\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n matchAccessLogsInGroupBy(groupId: string, body: AbstractFilterAccessLog, collectTiming?: false): Promise<Array<string>>\n matchAccessLogsInGroupBy(groupId: string, body: AbstractFilterAccessLog, collectTiming?: true): Promise<Array<string> & TimingInfo>\n async matchAccessLogsInGroupBy(groupId: string, body: AbstractFilterAccessLog, collectTiming: boolean = false): Promise<Array<string>> {\n const _url = this.host + `/inGroup/${groupId}/match`\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService(), undefined, false, collectTiming ? ['x-filter-timing-*'] : [])\n .then((doc) => Object.assign((doc.body as Array<JSON>).map((it) => JSON.parse(JSON.stringify(it))), collectTiming ? { responseHeaders: doc.responseHeaders } : {}))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IccAccesslogApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccAccesslogApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,kDAA8C;AAC9C,0DAAsD;AACtD,4EAAwE;AACxE,wFAA8G;AAC9G,qDAAiD;AACjD,mFAA+E;AAC/E,kDAA8C;AAK9C,gFAA4E;AAE5E,MAAa,eAAe;IAM1B,IAAI,OAAO;QACT,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACvC,CAAC;IAED,YACE,IAAY,EACZ,OAAY,EACZ,sBAA+C,EAC/C,SAAyE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EAAE,kBAAkB,CAAC,CAAC,CAAA;YACvH,OAAO,SAAG,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,CAAC;iBACzH,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,mDAAwB,CAAY,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,qBAAS,CAAC,CAAC,CAAC,CAAC,CAAC;iBACzF,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;KAAA;CACF;AAreD,0CAqeC","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 { AccessLog } from '../model/AccessLog'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { PaginatedListAccessLog } from '../model/PaginatedListAccessLog'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { EntityBulkShareResult } from '../model/requests/EntityBulkShareResult'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { BulkShareOrUpdateMetadataParams } from '../model/requests/BulkShareOrUpdateMetadataParams'\nimport { AbstractFilterAccessLog } from '../model/AbstractFilterAccessLog'\nimport { TimingInfo } from '../model/TimingInfo'\nimport { ConflictResolutionRequest } from '../model/ConflictResolutionRequest'\nimport { ConflictResolutionResult } from '../model/ConflictResolutionResult'\n\nexport class IccAccesslogApi {\n host: string\n _headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n get headers(): Promise<Array<XHR.Header>> {\n return Promise.resolve(this._headers)\n }\n\n constructor(\n host: string,\n headers: any,\n authenticationProvider?: AuthenticationProvider,\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n ) {\n this.host = iccRestApiPath(host)\n this._headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new NoAuthenticationProvider()\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this._headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n *\n * @summary Create an access log\n * @param body\n */\n async createAccessLog(body?: AccessLog): Promise<AccessLog> {\n const _url = this.host + `/accesslog` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new AccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a batch of access logs.\n *\n * @param accessLogIds a ListOfIds containing the ids of the access logs to delete.\n * @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted access logs.\n */\n async deleteAccessLogs(accessLogIds: ListOfIds): Promise<Array<DocIdentifier>> {\n const headers = await this.headers\n return XHR.sendCommand(\n 'POST',\n this.host + `/accesslog/delete/batch` + '?ts=' + new Date().getTime(),\n headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json')),\n accessLogIds,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => (doc.body as Array<JSON>).map((it) => new DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a single access log by id.\n *\n * @param accessLogId the id of the access log.\n */\n async deleteAccessLog(accessLogId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/accesslog/${encodeURIComponent(accessLogId)}` + '?ts=' + new Date().getTime(),\n await this.headers,\n null,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => new DocIdentifier(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @deprecated use {@link findAccessLogIdsByDataOwnerPatientDate} instead.\n * @summary List access logs found by Healthcare Party and secret foreign keyelementIds.\n * @param body\n * @param hcPartyId\n */\n async findAccessLogsByHCPartyPatientForeignKeysUsingPost(hcPartyId: string, body?: Array<string>): Promise<Array<AccessLog>> {\n const _url =\n this.host +\n `/accesslog/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '')\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new AccessLog(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary List AccessLog ids by data owner and a set of secret foreign key. The ids will be sorted by AccessLog date, in ascending or descending\n * order according to the specified parameter value.\n *\n * @param dataOwnerId the data owner id.\n * @param secretFKeys an array of secret foreign keys.\n * @param startDate a timestamp in epoch milliseconds. If undefined, all the access log ids since the beginning of time will be returned.\n * @param endDate a timestamp in epoch milliseconds. If undefined, all the access log ids until the end of time will be returned.\n * @param descending whether to return the ids ordered in ascending or descending order by AccessLog date\n * @return a promise that will resolve in an Array of AccessLog ids.\n */\n async findAccessLogIdsByDataOwnerPatientDate(\n dataOwnerId: string,\n secretFKeys: string[],\n startDate?: number,\n endDate?: number,\n descending?: boolean\n ): Promise<string[]> {\n const _url =\n this.host +\n `/accesslog/byDataOwnerPatientDate?ts=${new Date().getTime()}` +\n '&dataOwnerId=' +\n encodeURIComponent(dataOwnerId) +\n (!!startDate ? `&startDate=${encodeURIComponent(startDate)}` : '') +\n (!!endDate ? `&endDate=${encodeURIComponent(endDate)}` : '') +\n (!!descending ? `&descending=${descending}` : '')\n const headers = (await this.headers).filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n const body = new ListOfIds({ ids: secretFKeys })\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => JSON.parse(JSON.stringify(it))))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @deprecated use {@link findAccessLogIdsByDataOwnerPatientDate} instead\n * @summary List access logs found by Healthcare Party and secret foreign keyelementIds.\n * @param hcPartyId\n * @param secretFKeys\n */\n async findAccessLogsByHCPartyPatientForeignKeys(hcPartyId: string, secretFKeys: string): Promise<Array<AccessLog>> {\n let _body = null\n\n const _url =\n this.host +\n `/accesslog/byHcPartySecretForeignKeys` +\n '?ts=' +\n new Date().getTime() +\n (hcPartyId ? '&hcPartyId=' + encodeURIComponent(String(hcPartyId)) : '') +\n (secretFKeys ? '&secretFKeys=' + encodeURIComponent(String(secretFKeys)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new AccessLog(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get paginated list of Access Logs\n * @param userId A User ID\n * @param accessType The type of access (COMPUTER or USER)\n * @param startDate The start search epoch\n * @param startKey The start key for pagination\n * @param startDocumentId A patient document ID\n * @param limit Number of rows\n * @param descending Descending order\n */\n async findByUserAfterDate(\n userId: string,\n accessType?: string,\n startDate?: number,\n startKey?: string,\n startDocumentId?: string,\n limit?: number,\n descending?: boolean\n ): Promise<PaginatedListAccessLog> {\n let _body = null\n\n const _url =\n this.host +\n `/accesslog/byUser` +\n '?ts=' +\n new Date().getTime() +\n (userId ? '&userId=' + encodeURIComponent(String(userId)) : '') +\n (accessType ? '&accessType=' + encodeURIComponent(String(accessType)) : '') +\n (startDate ? '&startDate=' + encodeURIComponent(String(startDate)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (descending ? '&descending=' + encodeURIComponent(String(descending)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Get an access log\n * @param accessLogId\n */\n async getAccessLog(accessLogId: string): Promise<AccessLog> {\n let _body = null\n\n const _url = this.host + `/accesslog/${encodeURIComponent(String(accessLogId))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new AccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Get a batch of Access Logs by their ids.\n * @param ids an array of ids.\n */\n async getAccessLogs(ids: ListOfIds): Promise<AccessLog[]> {\n const _url = this.host + `/accesslog/byIds` + '?ts=' + new Date().getTime()\n const headers = (await this.headers).filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n\n return XHR.sendCommand('POST', _url, headers, ids, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new AccessLog(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get paginated list of Access Logs\n * @param fromEpoch\n * @param toEpoch\n * @param startKey\n * @param startDocumentId\n * @param limit\n * @param descending\n */\n async listAccessLogs(\n fromEpoch?: number,\n toEpoch?: number,\n startKey?: number,\n startDocumentId?: string,\n limit?: number,\n descending?: boolean\n ): Promise<PaginatedListAccessLog> {\n let _body = null\n\n const _url =\n this.host +\n `/accesslog` +\n '?ts=' +\n new Date().getTime() +\n (fromEpoch ? '&fromEpoch=' + encodeURIComponent(String(fromEpoch)) : '') +\n (toEpoch ? '&toEpoch=' + encodeURIComponent(String(toEpoch)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '') +\n (descending ? '&descending=' + encodeURIComponent(String(descending)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, await headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get paginated list of Access Logs for a group\n * @param groupId\n * @param fromEpoch\n * @param toEpoch\n * @param startKey\n * @param startDocumentId\n * @param limit\n */\n async listAccessLogsInGroup(\n groupId: string,\n fromEpoch?: number,\n toEpoch?: number,\n startKey?: number,\n startDocumentId?: string,\n limit?: number\n ): Promise<PaginatedListAccessLog> {\n let _body = null\n\n const _url =\n this.host +\n `/accesslog/inGroup/${encodeURIComponent(String(groupId))}` +\n '?ts=' +\n new Date().getTime() +\n (fromEpoch ? '&fromEpoch=' + encodeURIComponent(String(fromEpoch)) : '') +\n (toEpoch ? '&toEpoch=' + encodeURIComponent(String(toEpoch)) : '') +\n (startKey ? '&startKey=' + encodeURIComponent(String(startKey)) : '') +\n (startDocumentId ? '&startDocumentId=' + encodeURIComponent(String(startDocumentId)) : '') +\n (limit ? '&limit=' + encodeURIComponent(String(limit)) : '')\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Modifies an access log\n * @param body\n */\n async modifyAccessLog(body?: AccessLog): Promise<AccessLog> {\n const _url = this.host + `/accesslog` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new AccessLog(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @internal this method is for internal use only and may be changed without notice\n */\n async bulkShareAccessLogs(request: BulkShareOrUpdateMetadataParams): Promise<EntityBulkShareResult<AccessLog>[]> {\n const _url = this.host + '/accesslog/bulkSharedMetadataUpdate' + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, request, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((x) => new EntityBulkShareResult<AccessLog>(x, AccessLog)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of access logs matching the provided filter.\n * @param body an AbstractFilterAccessLog.\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n matchAccessLogsBy(body: AbstractFilterAccessLog, collectTiming?: false): Promise<Array<string>>\n matchAccessLogsBy(body: AbstractFilterAccessLog, collectTiming?: true): Promise<Array<string> & TimingInfo>\n async matchAccessLogsBy(body: AbstractFilterAccessLog, collectTiming: boolean = false): Promise<Array<string>> {\n const _url = this.host + `/accessLog/match`\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n _url,\n headers,\n body,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService(),\n undefined,\n false,\n collectTiming ? ['x-filter-timing-*'] : []\n )\n .then((doc) =>\n Object.assign(\n (doc.body as Array<JSON>).map((it) => JSON.parse(JSON.stringify(it))),\n collectTiming ? { responseHeaders: doc.responseHeaders } : {}\n )\n )\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Get ids of access logs matching the provided filter in a specific group.\n * @param groupId the id of the group where to perform the search.\n * @param body an AbstractFilterAccessLog.\n * @param collectTiming if true, include server-side filter timing information in the response\n */\n matchAccessLogsInGroupBy(groupId: string, body: AbstractFilterAccessLog, collectTiming?: false): Promise<Array<string>>\n matchAccessLogsInGroupBy(groupId: string, body: AbstractFilterAccessLog, collectTiming?: true): Promise<Array<string> & TimingInfo>\n async matchAccessLogsInGroupBy(groupId: string, body: AbstractFilterAccessLog, collectTiming: boolean = false): Promise<Array<string>> {\n const _url = this.host + `/inGroup/${groupId}/match`\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n _url,\n headers,\n body,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService(),\n undefined,\n false,\n collectTiming ? ['x-filter-timing-*'] : []\n )\n .then((doc) =>\n Object.assign(\n (doc.body as Array<JSON>).map((it) => JSON.parse(JSON.stringify(it))),\n collectTiming ? { responseHeaders: doc.responseHeaders } : {}\n )\n )\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves the ids of all the access logs that currently have conflicting revisions and therefore need to\n * be resolved.\n * @summary List the ids of the access logs that have conflicts.\n * @return the ids of the access logs with unresolved conflicts.\n */\n async getConflictingEntitiesIds(): Promise<Array<string>> {\n const _url = this.host + `/accesslog/conflicts` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => doc.body as Array<string>)\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves all the conflicting revisions of the access log with the given id (the current revision is not\n * included). The returned entities are still encrypted.\n * @summary Get the conflicting revisions of an access log.\n * @param entityId the id of the access log to retrieve the conflicts for.\n * @return the conflicting revisions of the access log.\n */\n async getConflictsForEntity(entityId: string): Promise<Array<AccessLog>> {\n const _url = this.host + `/accesslog/conflicts/${encodeURIComponent(String(entityId))}` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new AccessLog(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Resolves a conflict by declaring which revision of the access log should be kept as winner and which\n * conflicting revisions should be purged. The provided document must already be encrypted.\n * @summary Declare the winning revision of a conflicting access log.\n * @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.\n * @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.\n */\n async declareConflictWinner(body: ConflictResolutionRequest<AccessLog>): Promise<ConflictResolutionResult<AccessLog>> {\n const _url = this.host + `/accesslog/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new ConflictResolutionResult<AccessLog>(doc.body, (x) => new AccessLog(x)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Like {@link getConflictingEntitiesIds} but targets the entities of the group with the given id.\n * @summary List the ids of the access logs that have conflicts, in the given group.\n * @param groupId the id of the group to look into.\n * @return the ids of the access logs with unresolved conflicts in the group.\n */\n async getConflictingEntitiesIdsInGroup(groupId: string): Promise<Array<string>> {\n const _url = this.host + `/accesslog/inGroup/${encodeURIComponent(String(groupId))}/conflicts` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => doc.body as Array<string>)\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Like {@link getConflictsForEntity} but targets the entity of the group with the given id.\n * @summary Get the conflicting revisions of an access log, in the given group.\n * @param groupId the id of the group the access log belongs to.\n * @param entityId the id of the access log to retrieve the conflicts for.\n * @return the conflicting revisions of the access log.\n */\n async getConflictsForEntityInGroup(groupId: string, entityId: string): Promise<Array<AccessLog>> {\n const _url =\n this.host +\n `/accesslog/inGroup/${encodeURIComponent(String(groupId))}/conflicts/${encodeURIComponent(String(entityId))}` +\n '?ts=' +\n new Date().getTime()\n let headers = await this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new AccessLog(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Like {@link declareConflictWinner} but targets the entity of the group with the given id.\n * @summary Declare the winning revision of a conflicting access log, in the given group.\n * @param groupId the id of the group the access log belongs to.\n * @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.\n * @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.\n */\n async declareConflictWinnerInGroup(groupId: string, body: ConflictResolutionRequest<AccessLog>): Promise<ConflictResolutionResult<AccessLog>> {\n const _url = this.host + `/accesslog/inGroup/${encodeURIComponent(String(groupId))}/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = await this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new ConflictResolutionResult<AccessLog>(doc.body, (x) => new AccessLog(x)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
|
|
@@ -15,6 +15,8 @@ import { DocIdentifier } from '../model/DocIdentifier';
|
|
|
15
15
|
import { AuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider';
|
|
16
16
|
import { ListOfIds } from '../model/ListOfIds';
|
|
17
17
|
import { PaginatedListAgenda } from '../model/PaginatedListAgenda';
|
|
18
|
+
import { ConflictResolutionRequest } from '../model/ConflictResolutionRequest';
|
|
19
|
+
import { ConflictResolutionResult } from '../model/ConflictResolutionResult';
|
|
18
20
|
export declare class IccAgendaApi {
|
|
19
21
|
host: string;
|
|
20
22
|
headers: Array<XHR.Header>;
|
|
@@ -81,4 +83,27 @@ export declare class IccAgendaApi {
|
|
|
81
83
|
* @param body
|
|
82
84
|
*/
|
|
83
85
|
modifyAgenda(body?: Agenda): Promise<Agenda>;
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves the ids of all the agendas that currently have conflicting revisions and therefore need to
|
|
88
|
+
* be resolved.
|
|
89
|
+
* @summary List the ids of the agendas that have conflicts.
|
|
90
|
+
* @return the ids of the agendas with unresolved conflicts.
|
|
91
|
+
*/
|
|
92
|
+
getConflictingEntitiesIds(): Promise<Array<string>>;
|
|
93
|
+
/**
|
|
94
|
+
* Retrieves all the conflicting revisions of the agenda with the given id (the current revision is not
|
|
95
|
+
* included). The returned entities are still encrypted.
|
|
96
|
+
* @summary Get the conflicting revisions of an agenda.
|
|
97
|
+
* @param entityId the id of the agenda to retrieve the conflicts for.
|
|
98
|
+
* @return the conflicting revisions of the agenda.
|
|
99
|
+
*/
|
|
100
|
+
getConflictsForEntity(entityId: string): Promise<Array<Agenda>>;
|
|
101
|
+
/**
|
|
102
|
+
* Resolves a conflict by declaring which revision of the agenda should be kept as winner and which
|
|
103
|
+
* conflicting revisions should be purged. The provided document must already be encrypted.
|
|
104
|
+
* @summary Declare the winning revision of a conflicting agenda.
|
|
105
|
+
* @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.
|
|
106
|
+
* @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.
|
|
107
|
+
*/
|
|
108
|
+
declareConflictWinner(body: ConflictResolutionRequest<Agenda>): Promise<ConflictResolutionResult<Agenda>>;
|
|
84
109
|
}
|
|
@@ -27,6 +27,7 @@ const DocIdentifier_1 = require("../model/DocIdentifier");
|
|
|
27
27
|
const AuthenticationProvider_1 = require("../../icc-x-api/auth/AuthenticationProvider");
|
|
28
28
|
const IccRestApiPath_1 = require("./IccRestApiPath");
|
|
29
29
|
const PaginatedListAgenda_1 = require("../model/PaginatedListAgenda");
|
|
30
|
+
const ConflictResolutionResult_1 = require("../model/ConflictResolutionResult");
|
|
30
31
|
class IccAgendaApi {
|
|
31
32
|
constructor(host, headers, authenticationProvider, fetchImpl) {
|
|
32
33
|
this.host = (0, IccRestApiPath_1.iccRestApiPath)(host);
|
|
@@ -171,6 +172,54 @@ class IccAgendaApi {
|
|
|
171
172
|
.then((doc) => new Agenda_1.Agenda(doc.body))
|
|
172
173
|
.catch((err) => this.handleError(err));
|
|
173
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* Retrieves the ids of all the agendas that currently have conflicting revisions and therefore need to
|
|
177
|
+
* be resolved.
|
|
178
|
+
* @summary List the ids of the agendas that have conflicts.
|
|
179
|
+
* @return the ids of the agendas with unresolved conflicts.
|
|
180
|
+
*/
|
|
181
|
+
getConflictingEntitiesIds() {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const _url = this.host + `/agenda/conflicts` + '?ts=' + new Date().getTime();
|
|
184
|
+
let headers = this.headers;
|
|
185
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
186
|
+
.then((doc) => doc.body)
|
|
187
|
+
.catch((err) => this.handleError(err));
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Retrieves all the conflicting revisions of the agenda with the given id (the current revision is not
|
|
192
|
+
* included). The returned entities are still encrypted.
|
|
193
|
+
* @summary Get the conflicting revisions of an agenda.
|
|
194
|
+
* @param entityId the id of the agenda to retrieve the conflicts for.
|
|
195
|
+
* @return the conflicting revisions of the agenda.
|
|
196
|
+
*/
|
|
197
|
+
getConflictsForEntity(entityId) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
const _url = this.host + `/agenda/conflicts/${encodeURIComponent(String(entityId))}` + '?ts=' + new Date().getTime();
|
|
200
|
+
let headers = this.headers;
|
|
201
|
+
return XHR_1.XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
202
|
+
.then((doc) => doc.body.map((it) => new Agenda_1.Agenda(it)))
|
|
203
|
+
.catch((err) => this.handleError(err));
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Resolves a conflict by declaring which revision of the agenda should be kept as winner and which
|
|
208
|
+
* conflicting revisions should be purged. The provided document must already be encrypted.
|
|
209
|
+
* @summary Declare the winning revision of a conflicting agenda.
|
|
210
|
+
* @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.
|
|
211
|
+
* @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.
|
|
212
|
+
*/
|
|
213
|
+
declareConflictWinner(body) {
|
|
214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
215
|
+
const _url = this.host + `/agenda/conflicts/winner` + '?ts=' + new Date().getTime();
|
|
216
|
+
let headers = this.headers;
|
|
217
|
+
headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR_1.XHR.Header('Content-Type', 'application/json'));
|
|
218
|
+
return XHR_1.XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())
|
|
219
|
+
.then((doc) => new ConflictResolutionResult_1.ConflictResolutionResult(doc.body, (x) => new Agenda_1.Agenda(x)))
|
|
220
|
+
.catch((err) => this.handleError(err));
|
|
221
|
+
});
|
|
222
|
+
}
|
|
174
223
|
}
|
|
175
224
|
exports.IccAgendaApi = IccAgendaApi;
|
|
176
225
|
//# sourceMappingURL=IccAgendaApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IccAgendaAp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GAAG,CAAC,CAAC,CAAA;IAC1C,CAAC;CACF;AAjLD,oCAiLC","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 { Agenda } from '../model/Agenda'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { PaginatedListAgenda } from '../model/PaginatedListAgenda'\n\nexport class IccAgendaApi {\n host: string\n headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n constructor(\n host: string,\n headers: any,\n authenticationProvider?: AuthenticationProvider,\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n ) {\n this.host = iccRestApiPath(host)\n this.headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new NoAuthenticationProvider()\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this.headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n *\n * @summary Creates a agenda\n * @param body\n */\n async createAgenda(body?: Agenda): Promise<Agenda> {\n const _url = this.host + `/agenda` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Agenda(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Delete a batch of agendas by id.\n *\n * @param agendaIds a ListOfIds containing the ids of the agendas to delete.\n * @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted agendas.\n */\n async deleteAgendas(agendaIds: ListOfIds): Promise<Array<DocIdentifier>> {\n const headers = this.headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n this.host + `/agenda/delete/batch` + '?ts=' + new Date().getTime(),\n headers,\n agendaIds,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => (doc.body as Array<JSON>).map((it) => new DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a single agenda by id.\n *\n * @param agendaId the id of the agenda to delete.\n * @return a Promise that will resolve in the DocIdentifier of the deleted agenda.\n */\n async deleteAgenda(agendaId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/agenda/${encodeURIComponent(agendaId)}` + '?ts=' + new Date().getTime(),\n this.headers,\n null,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => new DocIdentifier(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Gets an agenda\n * @param agendaId\n */\n getAgenda(agendaId: string): Promise<Agenda> {\n let _body = null\n\n const _url = this.host + `/agenda/${encodeURIComponent(String(agendaId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Agenda(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @deprecated use {@link getAgendasWithPagination} instead.\n *\n * @summary Gets all agendas\n */\n async getAgendas(): Promise<Array<Agenda>> {\n const _url = this.host + `/agenda` + '?ts=' + new Date().getTime() + '&limit=1000000'\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAgenda(doc.body as JSON).rows ?? [])\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary gets all agendas with pagination.\n *\n * @param startDocumentId the startDocumentId provided by the previous page or null if it's the first page.\n * @param limit the size of the page\n * @return a promise that will resolve in a PaginatedListAgenda.\n */\n async getAgendasWithPagination(startDocumentId?: string, limit?: number): Promise<PaginatedListAgenda> {\n const _url =\n this.host +\n `/agenda` +\n '?ts=' +\n new Date().getTime() +\n (!!startDocumentId ? `&startDocumentId=${encodeURIComponent(startDocumentId)}` : '') +\n (!!limit ? `&limit=${limit}` : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAgenda(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Gets all agendas for user\n * @param userId\n */\n getAgendasForUser(userId: string): Promise<Agenda> {\n let _body = null\n\n const _url = this.host + `/agenda/byUser` + '?ts=' + new Date().getTime() + (userId ? '&userId=' + encodeURIComponent(String(userId)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Agenda(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Gets readable agendas for user\n * @param userId\n */\n getReadableAgendasForUser(userId: string): Promise<Array<Agenda>> {\n let _body = null\n\n const _url =\n this.host + `/agenda/readableForUser` + '?ts=' + new Date().getTime() + (userId ? '&userId=' + encodeURIComponent(String(userId)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Agenda(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Modifies an agenda\n * @param body\n */\n modifyAgenda(body?: Agenda): Promise<Agenda> {\n let _body = null\n _body = body\n\n const _url = this.host + `/agenda` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Agenda(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IccAgendaApi.js","sourceRoot":"","sources":["../../../icc-api/api/IccAgendaApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;GAUG;AACH,+BAA2B;AAC3B,4CAAwC;AACxC,0DAAsD;AACtD,wFAA8G;AAC9G,qDAAiD;AAEjD,sEAAkE;AAElE,gFAA4E;AAE5E,MAAa,YAAY;IAMvB,YACE,IAAY,EACZ,OAAY,EACZ,sBAA+C,EAC/C,SAAyE;QAEzE,IAAI,CAAC,IAAI,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAA;QAChC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,SAAG,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC7E,IAAI,CAAC,sBAAsB,GAAG,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,IAAI,iDAAwB,EAAE,CAAA;QAChH,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;IAED,UAAU,CAAC,CAAoB;QAC7B,IAAI,CAAC,OAAO,GAAG,CAAC,CAAA;IAClB,CAAC;IAED,WAAW,CAAC,CAAe;QACzB,MAAM,CAAC,CAAA;IACT,CAAC;IAED;;;;OAIG;IACG,YAAY,CAAC,IAAa;;YAC9B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAA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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 { Agenda } from '../model/Agenda'\nimport { DocIdentifier } from '../model/DocIdentifier'\nimport { AuthenticationProvider, NoAuthenticationProvider } from '../../icc-x-api/auth/AuthenticationProvider'\nimport { iccRestApiPath } from './IccRestApiPath'\nimport { ListOfIds } from '../model/ListOfIds'\nimport { PaginatedListAgenda } from '../model/PaginatedListAgenda'\nimport { ConflictResolutionRequest } from '../model/ConflictResolutionRequest'\nimport { ConflictResolutionResult } from '../model/ConflictResolutionResult'\n\nexport class IccAgendaApi {\n host: string\n headers: Array<XHR.Header>\n authenticationProvider: AuthenticationProvider\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n\n constructor(\n host: string,\n headers: any,\n authenticationProvider?: AuthenticationProvider,\n fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>\n ) {\n this.host = iccRestApiPath(host)\n this.headers = Object.keys(headers).map((k) => new XHR.Header(k, headers[k]))\n this.authenticationProvider = !!authenticationProvider ? authenticationProvider : new NoAuthenticationProvider()\n this.fetchImpl = fetchImpl\n }\n\n setHeaders(h: Array<XHR.Header>) {\n this.headers = h\n }\n\n handleError(e: XHR.XHRError): never {\n throw e\n }\n\n /**\n *\n * @summary Creates a agenda\n * @param body\n */\n async createAgenda(body?: Agenda): Promise<Agenda> {\n const _url = this.host + `/agenda` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Agenda(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Delete a batch of agendas by id.\n *\n * @param agendaIds a ListOfIds containing the ids of the agendas to delete.\n * @return a Promise that will resolve in an array of DocIdentifiers of the successfully deleted agendas.\n */\n async deleteAgendas(agendaIds: ListOfIds): Promise<Array<DocIdentifier>> {\n const headers = this.headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand(\n 'POST',\n this.host + `/agenda/delete/batch` + '?ts=' + new Date().getTime(),\n headers,\n agendaIds,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => (doc.body as Array<JSON>).map((it) => new DocIdentifier(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary Deletes a single agenda by id.\n *\n * @param agendaId the id of the agenda to delete.\n * @return a Promise that will resolve in the DocIdentifier of the deleted agenda.\n */\n async deleteAgenda(agendaId: string): Promise<DocIdentifier> {\n return XHR.sendCommand(\n 'DELETE',\n this.host + `/agenda/${encodeURIComponent(agendaId)}` + '?ts=' + new Date().getTime(),\n this.headers,\n null,\n this.fetchImpl,\n undefined,\n this.authenticationProvider.getAuthService()\n )\n .then((doc) => new DocIdentifier(doc.body))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Gets an agenda\n * @param agendaId\n */\n getAgenda(agendaId: string): Promise<Agenda> {\n let _body = null\n\n const _url = this.host + `/agenda/${encodeURIComponent(String(agendaId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Agenda(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @deprecated use {@link getAgendasWithPagination} instead.\n *\n * @summary Gets all agendas\n */\n async getAgendas(): Promise<Array<Agenda>> {\n const _url = this.host + `/agenda` + '?ts=' + new Date().getTime() + '&limit=1000000'\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAgenda(doc.body as JSON).rows ?? [])\n .catch((err) => this.handleError(err))\n }\n\n /**\n * @summary gets all agendas with pagination.\n *\n * @param startDocumentId the startDocumentId provided by the previous page or null if it's the first page.\n * @param limit the size of the page\n * @return a promise that will resolve in a PaginatedListAgenda.\n */\n async getAgendasWithPagination(startDocumentId?: string, limit?: number): Promise<PaginatedListAgenda> {\n const _url =\n this.host +\n `/agenda` +\n '?ts=' +\n new Date().getTime() +\n (!!startDocumentId ? `&startDocumentId=${encodeURIComponent(startDocumentId)}` : '') +\n (!!limit ? `&limit=${limit}` : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new PaginatedListAgenda(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Gets all agendas for user\n * @param userId\n */\n getAgendasForUser(userId: string): Promise<Agenda> {\n let _body = null\n\n const _url = this.host + `/agenda/byUser` + '?ts=' + new Date().getTime() + (userId ? '&userId=' + encodeURIComponent(String(userId)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Agenda(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Gets readable agendas for user\n * @param userId\n */\n getReadableAgendasForUser(userId: string): Promise<Array<Agenda>> {\n let _body = null\n\n const _url =\n this.host + `/agenda/readableForUser` + '?ts=' + new Date().getTime() + (userId ? '&userId=' + encodeURIComponent(String(userId)) : '')\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Agenda(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n *\n * @summary Modifies an agenda\n * @param body\n */\n modifyAgenda(body?: Agenda): Promise<Agenda> {\n let _body = null\n _body = body\n\n const _url = this.host + `/agenda` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('PUT', _url, headers, _body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new Agenda(doc.body as JSON))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves the ids of all the agendas that currently have conflicting revisions and therefore need to\n * be resolved.\n * @summary List the ids of the agendas that have conflicts.\n * @return the ids of the agendas with unresolved conflicts.\n */\n async getConflictingEntitiesIds(): Promise<Array<string>> {\n const _url = this.host + `/agenda/conflicts` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => doc.body as Array<string>)\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Retrieves all the conflicting revisions of the agenda with the given id (the current revision is not\n * included). The returned entities are still encrypted.\n * @summary Get the conflicting revisions of an agenda.\n * @param entityId the id of the agenda to retrieve the conflicts for.\n * @return the conflicting revisions of the agenda.\n */\n async getConflictsForEntity(entityId: string): Promise<Array<Agenda>> {\n const _url = this.host + `/agenda/conflicts/${encodeURIComponent(String(entityId))}` + '?ts=' + new Date().getTime()\n let headers = this.headers\n return XHR.sendCommand('GET', _url, headers, null, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => (doc.body as Array<JSON>).map((it) => new Agenda(it)))\n .catch((err) => this.handleError(err))\n }\n\n /**\n * Resolves a conflict by declaring which revision of the agenda should be kept as winner and which\n * conflicting revisions should be purged. The provided document must already be encrypted.\n * @summary Declare the winning revision of a conflicting agenda.\n * @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.\n * @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.\n */\n async declareConflictWinner(body: ConflictResolutionRequest<Agenda>): Promise<ConflictResolutionResult<Agenda>> {\n const _url = this.host + `/agenda/conflicts/winner` + '?ts=' + new Date().getTime()\n let headers = this.headers\n headers = headers.filter((h) => h.header !== 'Content-Type').concat(new XHR.Header('Content-Type', 'application/json'))\n return XHR.sendCommand('POST', _url, headers, body, this.fetchImpl, undefined, this.authenticationProvider.getAuthService())\n .then((doc) => new ConflictResolutionResult<Agenda>(doc.body, (x) => new Agenda(x)))\n .catch((err) => this.handleError(err))\n }\n}\n"]}
|
|
@@ -18,6 +18,8 @@ import { EntityBulkShareResult } from '../model/requests/EntityBulkShareResult';
|
|
|
18
18
|
import { MinimalEntityBulkShareResult } from '../model/requests/MinimalEntityBulkShareResult';
|
|
19
19
|
import { BulkShareOrUpdateMetadataParams } from '../model/requests/BulkShareOrUpdateMetadataParams';
|
|
20
20
|
import { PaginatedListCalendarItem } from '../model/PaginatedListCalendarItem';
|
|
21
|
+
import { ConflictResolutionRequest } from '../model/ConflictResolutionRequest';
|
|
22
|
+
import { ConflictResolutionResult } from '../model/ConflictResolutionResult';
|
|
21
23
|
export declare class IccCalendarItemApi {
|
|
22
24
|
host: string;
|
|
23
25
|
_headers: Array<XHR.Header>;
|
|
@@ -148,4 +150,27 @@ export declare class IccCalendarItemApi {
|
|
|
148
150
|
* @return a promise that will resolve in an Array of CalendarItem ids.
|
|
149
151
|
*/
|
|
150
152
|
findCalendarItemIdsByDataOwnerPatientStartTime(dataOwnerId: string, secretFKeys: string[], startDate?: number, endDate?: number, descending?: boolean): Promise<string[]>;
|
|
153
|
+
/**
|
|
154
|
+
* Retrieves the ids of all the calendar items that currently have conflicting revisions and therefore need to
|
|
155
|
+
* be resolved.
|
|
156
|
+
* @summary List the ids of the calendar items that have conflicts.
|
|
157
|
+
* @return the ids of the calendar items with unresolved conflicts.
|
|
158
|
+
*/
|
|
159
|
+
getConflictingEntitiesIds(): Promise<Array<string>>;
|
|
160
|
+
/**
|
|
161
|
+
* Retrieves all the conflicting revisions of the calendar item with the given id (the current revision is not
|
|
162
|
+
* included). The returned entities are still encrypted.
|
|
163
|
+
* @summary Get the conflicting revisions of a calendar item.
|
|
164
|
+
* @param entityId the id of the calendar item to retrieve the conflicts for.
|
|
165
|
+
* @return the conflicting revisions of the calendar item.
|
|
166
|
+
*/
|
|
167
|
+
getConflictsForEntity(entityId: string): Promise<Array<CalendarItem>>;
|
|
168
|
+
/**
|
|
169
|
+
* Resolves a conflict by declaring which revision of the calendar item should be kept as winner and which
|
|
170
|
+
* conflicting revisions should be purged. The provided document must already be encrypted.
|
|
171
|
+
* @summary Declare the winning revision of a conflicting calendar item.
|
|
172
|
+
* @param body the {@link ConflictResolutionRequest} carrying the winning revision and the conflicts to purge.
|
|
173
|
+
* @return the {@link ConflictResolutionResult} with the saved winner and the conflicts that are still unresolved.
|
|
174
|
+
*/
|
|
175
|
+
declareConflictWinner(body: ConflictResolutionRequest<CalendarItem>): Promise<ConflictResolutionResult<CalendarItem>>;
|
|
151
176
|
}
|