@icure/api 8.0.50 → 8.0.51
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/model/ExternalFilterKey.d.ts +10 -0
- package/icc-api/model/ExternalFilterKey.js +3 -0
- package/icc-api/model/ExternalFilterKey.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterCode.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterCode.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterCode.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterContact.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterContact.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterContact.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterDevice.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterDevice.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterDevice.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterHealthElement.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterHealthElement.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterHealthElement.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterHealthcareParty.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterHealthcareParty.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterHealthcareParty.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterInvoice.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterInvoice.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterInvoice.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterMaintenanceTask.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterMaintenanceTask.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterMaintenanceTask.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterMessage.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterMessage.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterMessage.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterPatient.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterPatient.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterPatient.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterService.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterService.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterService.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterTopic.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterTopic.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterTopic.js.map +1 -0
- package/icc-x-api/filters/ExternalViewFilterUser.d.ts +12 -0
- package/icc-x-api/filters/ExternalViewFilterUser.js +14 -0
- package/icc-x-api/filters/ExternalViewFilterUser.js.map +1 -0
- package/package.json +1 -1
- package/test/icc-x-api/help-meddi.d.ts +0 -1
- package/test/icc-x-api/help-meddi.js +0 -53
- package/test/icc-x-api/help-meddi.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalFilterKey.js","sourceRoot":"","sources":["../../../icc-api/model/ExternalFilterKey.ts"],"names":[],"mappings":"","sourcesContent":["export type ExternalFilterKey = { type: 'string'; key: string } | { type: 'long'; key: number } | { type: 'complexKey'; key: (string | number)[] }\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractFilterCode } from '../../icc-api/model/AbstractFilterCode';
|
|
2
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
3
|
+
export declare class ExternalViewFilterCode extends AbstractFilterCode {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterCode = void 0;
|
|
4
|
+
const AbstractFilterCode_1 = require("../../icc-api/model/AbstractFilterCode");
|
|
5
|
+
class ExternalViewFilterCode extends AbstractFilterCode_1.AbstractFilterCode {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.base.Code';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterCode = ExternalViewFilterCode;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterCode.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterCode.ts"],"names":[],"mappings":";;;AAAA,+EAA2E;AAG3E,MAAa,sBAAuB,SAAQ,uCAAkB;IAG5D,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,qCAAqC,CAAA;QAIjE,MAAM,CAAC,MAAM,CAAC,IAA8B,EAAE,IAAI,CAAC,CAAA;IACrD,CAAC;CAOF;AAdD,wDAcC","sourcesContent":["import { AbstractFilterCode } from '../../icc-api/model/AbstractFilterCode'\nimport { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\n\nexport class ExternalViewFilterCode extends AbstractFilterCode {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.base.Code'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterCode, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
2
|
+
import { AbstractFilterContact } from '../../icc-api/model/AbstractFilterContact';
|
|
3
|
+
export declare class ExternalViewFilterContact extends AbstractFilterContact {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterContact = void 0;
|
|
4
|
+
const AbstractFilterContact_1 = require("../../icc-api/model/AbstractFilterContact");
|
|
5
|
+
class ExternalViewFilterContact extends AbstractFilterContact_1.AbstractFilterContact {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.Contact';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterContact = ExternalViewFilterContact;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterContact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterContact.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterContact.ts"],"names":[],"mappings":";;;AACA,qFAAiF;AAEjF,MAAa,yBAA0B,SAAQ,6CAAqB;IAGlE,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,mCAAmC,CAAA;QAI/D,MAAM,CAAC,MAAM,CAAC,IAAiC,EAAE,IAAI,CAAC,CAAA;IACxD,CAAC;CAOF;AAdD,8DAcC","sourcesContent":["import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\nimport { AbstractFilterContact } from '../../icc-api/model/AbstractFilterContact'\n\nexport class ExternalViewFilterContact extends AbstractFilterContact {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.Contact'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterContact, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
2
|
+
import { AbstractFilterDevice } from '../../icc-api/model/AbstractFilterDevice';
|
|
3
|
+
export declare class ExternalViewFilterDevice extends AbstractFilterDevice {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterDevice = void 0;
|
|
4
|
+
const AbstractFilterDevice_1 = require("../../icc-api/model/AbstractFilterDevice");
|
|
5
|
+
class ExternalViewFilterDevice extends AbstractFilterDevice_1.AbstractFilterDevice {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.Device';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterDevice = ExternalViewFilterDevice;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterDevice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterDevice.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterDevice.ts"],"names":[],"mappings":";;;AACA,mFAA+E;AAE/E,MAAa,wBAAyB,SAAQ,2CAAoB;IAGhE,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,kCAAkC,CAAA;QAI9D,MAAM,CAAC,MAAM,CAAC,IAAgC,EAAE,IAAI,CAAC,CAAA;IACvD,CAAC;CAOF;AAdD,4DAcC","sourcesContent":["import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\nimport { AbstractFilterDevice } from '../../icc-api/model/AbstractFilterDevice'\n\nexport class ExternalViewFilterDevice extends AbstractFilterDevice {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.Device'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterDevice, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
2
|
+
import { AbstractFilterHealthElement } from '../../icc-api/model/AbstractFilterHealthElement';
|
|
3
|
+
export declare class ExternalViewFilterHealthElement extends AbstractFilterHealthElement {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterHealthElement = void 0;
|
|
4
|
+
const AbstractFilterHealthElement_1 = require("../../icc-api/model/AbstractFilterHealthElement");
|
|
5
|
+
class ExternalViewFilterHealthElement extends AbstractFilterHealthElement_1.AbstractFilterHealthElement {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.HealthElement';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterHealthElement = ExternalViewFilterHealthElement;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterHealthElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterHealthElement.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterHealthElement.ts"],"names":[],"mappings":";;;AACA,iGAA6F;AAE7F,MAAa,+BAAgC,SAAQ,yDAA2B;IAG9E,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,yCAAyC,CAAA;QAIrE,MAAM,CAAC,MAAM,CAAC,IAAuC,EAAE,IAAI,CAAC,CAAA;IAC9D,CAAC;CAOF;AAdD,0EAcC","sourcesContent":["import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\nimport { AbstractFilterHealthElement } from '../../icc-api/model/AbstractFilterHealthElement'\n\nexport class ExternalViewFilterHealthElement extends AbstractFilterHealthElement {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.HealthElement'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterHealthElement, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
2
|
+
import { AbstractFilterHealthcareParty } from '../../icc-api/model/AbstractFilterHealthcareParty';
|
|
3
|
+
export declare class ExternalViewFilterHealthcareParty extends AbstractFilterHealthcareParty {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterHealthcareParty = void 0;
|
|
4
|
+
const AbstractFilterHealthcareParty_1 = require("../../icc-api/model/AbstractFilterHealthcareParty");
|
|
5
|
+
class ExternalViewFilterHealthcareParty extends AbstractFilterHealthcareParty_1.AbstractFilterHealthcareParty {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.HealthcareParty';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterHealthcareParty = ExternalViewFilterHealthcareParty;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterHealthcareParty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterHealthcareParty.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterHealthcareParty.ts"],"names":[],"mappings":";;;AACA,qGAAiG;AAEjG,MAAa,iCAAkC,SAAQ,6DAA6B;IAGlF,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,2CAA2C,CAAA;QAIvE,MAAM,CAAC,MAAM,CAAC,IAAyC,EAAE,IAAI,CAAC,CAAA;IAChE,CAAC;CAOF;AAdD,8EAcC","sourcesContent":["import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\nimport { AbstractFilterHealthcareParty } from '../../icc-api/model/AbstractFilterHealthcareParty'\n\nexport class ExternalViewFilterHealthcareParty extends AbstractFilterHealthcareParty {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.HealthcareParty'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterHealthcareParty, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
2
|
+
import { AbstractFilterInvoice } from '../../icc-api/model/AbstractFilterInvoice';
|
|
3
|
+
export declare class ExternalViewFilterInvoice extends AbstractFilterInvoice {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterInvoice = void 0;
|
|
4
|
+
const AbstractFilterInvoice_1 = require("../../icc-api/model/AbstractFilterInvoice");
|
|
5
|
+
class ExternalViewFilterInvoice extends AbstractFilterInvoice_1.AbstractFilterInvoice {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.Invoice';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterInvoice = ExternalViewFilterInvoice;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterInvoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterInvoice.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterInvoice.ts"],"names":[],"mappings":";;;AACA,qFAAiF;AAEjF,MAAa,yBAA0B,SAAQ,6CAAqB;IAGlE,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,mCAAmC,CAAA;QAI/D,MAAM,CAAC,MAAM,CAAC,IAAiC,EAAE,IAAI,CAAC,CAAA;IACxD,CAAC;CAOF;AAdD,8DAcC","sourcesContent":["import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\nimport { AbstractFilterInvoice } from '../../icc-api/model/AbstractFilterInvoice'\n\nexport class ExternalViewFilterInvoice extends AbstractFilterInvoice {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.Invoice'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterInvoice, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractFilterMaintenanceTask } from '../../icc-api/model/AbstractFilterMaintenanceTask';
|
|
2
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
3
|
+
export declare class ExternalViewFilterMaintenanceTask extends AbstractFilterMaintenanceTask {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterMaintenanceTask = void 0;
|
|
4
|
+
const AbstractFilterMaintenanceTask_1 = require("../../icc-api/model/AbstractFilterMaintenanceTask");
|
|
5
|
+
class ExternalViewFilterMaintenanceTask extends AbstractFilterMaintenanceTask_1.AbstractFilterMaintenanceTask {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.MaintenanceTask';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterMaintenanceTask = ExternalViewFilterMaintenanceTask;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterMaintenanceTask.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterMaintenanceTask.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterMaintenanceTask.ts"],"names":[],"mappings":";;;AAAA,qGAAiG;AAGjG,MAAa,iCAAkC,SAAQ,6DAA6B;IAGlF,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,2CAA2C,CAAA;QAIvE,MAAM,CAAC,MAAM,CAAC,IAAyC,EAAE,IAAI,CAAC,CAAA;IAChE,CAAC;CAOF;AAdD,8EAcC","sourcesContent":["import { AbstractFilterMaintenanceTask } from '../../icc-api/model/AbstractFilterMaintenanceTask'\nimport { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\n\nexport class ExternalViewFilterMaintenanceTask extends AbstractFilterMaintenanceTask {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.MaintenanceTask'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterMaintenanceTask, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractFilterMessage } from '../../icc-api/model/AbstractFilterMessage';
|
|
2
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
3
|
+
export declare class ExternalViewFilterMessage extends AbstractFilterMessage {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterMessage = void 0;
|
|
4
|
+
const AbstractFilterMessage_1 = require("../../icc-api/model/AbstractFilterMessage");
|
|
5
|
+
class ExternalViewFilterMessage extends AbstractFilterMessage_1.AbstractFilterMessage {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.Message';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterMessage = ExternalViewFilterMessage;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterMessage.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterMessage.ts"],"names":[],"mappings":";;;AAAA,qFAAiF;AAGjF,MAAa,yBAA0B,SAAQ,6CAAqB;IAGlE,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,mCAAmC,CAAA;QAI/D,MAAM,CAAC,MAAM,CAAC,IAAiC,EAAE,IAAI,CAAC,CAAA;IACxD,CAAC;CAOF;AAdD,8DAcC","sourcesContent":["import { AbstractFilterMessage } from '../../icc-api/model/AbstractFilterMessage'\nimport { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\n\nexport class ExternalViewFilterMessage extends AbstractFilterMessage {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.Message'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterMessage, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractFilterPatient } from '../../icc-api/model/AbstractFilterPatient';
|
|
2
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
3
|
+
export declare class ExternalViewFilterPatient extends AbstractFilterPatient {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterPatient = void 0;
|
|
4
|
+
const AbstractFilterPatient_1 = require("../../icc-api/model/AbstractFilterPatient");
|
|
5
|
+
class ExternalViewFilterPatient extends AbstractFilterPatient_1.AbstractFilterPatient {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.Patient';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterPatient = ExternalViewFilterPatient;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterPatient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterPatient.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterPatient.ts"],"names":[],"mappings":";;;AAAA,qFAAiF;AAGjF,MAAa,yBAA0B,SAAQ,6CAAqB;IAGlE,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,mCAAmC,CAAA;QAI/D,MAAM,CAAC,MAAM,CAAC,IAAiC,EAAE,IAAI,CAAC,CAAA;IACxD,CAAC;CAOF;AAdD,8DAcC","sourcesContent":["import { AbstractFilterPatient } from '../../icc-api/model/AbstractFilterPatient'\nimport { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\n\nexport class ExternalViewFilterPatient extends AbstractFilterPatient {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.Patient'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterPatient, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractFilterService } from '../../icc-api/model/AbstractFilterService';
|
|
2
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
3
|
+
export declare class ExternalViewFilterService extends AbstractFilterService {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterService = void 0;
|
|
4
|
+
const AbstractFilterService_1 = require("../../icc-api/model/AbstractFilterService");
|
|
5
|
+
class ExternalViewFilterService extends AbstractFilterService_1.AbstractFilterService {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.embed.Service';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterService = ExternalViewFilterService;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterService.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterService.ts"],"names":[],"mappings":";;;AAAA,qFAAiF;AAGjF,MAAa,yBAA0B,SAAQ,6CAAqB;IAGlE,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,yCAAyC,CAAA;QAIrE,MAAM,CAAC,MAAM,CAAC,IAAiC,EAAE,IAAI,CAAC,CAAA;IACxD,CAAC;CAOF;AAdD,8DAcC","sourcesContent":["import { AbstractFilterService } from '../../icc-api/model/AbstractFilterService'\nimport { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\n\nexport class ExternalViewFilterService extends AbstractFilterService {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.embed.Service'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterService, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractFilterTopic } from '../../icc-api/model/AbstractFilterTopic';
|
|
2
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
3
|
+
export declare class ExternalViewFilterTopic extends AbstractFilterTopic {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterTopic = void 0;
|
|
4
|
+
const AbstractFilterTopic_1 = require("../../icc-api/model/AbstractFilterTopic");
|
|
5
|
+
class ExternalViewFilterTopic extends AbstractFilterTopic_1.AbstractFilterTopic {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.Topic';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterTopic = ExternalViewFilterTopic;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterTopic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterTopic.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterTopic.ts"],"names":[],"mappings":";;;AAAA,iFAA6E;AAG7E,MAAa,uBAAwB,SAAQ,yCAAmB;IAG9D,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,iCAAiC,CAAA;QAI7D,MAAM,CAAC,MAAM,CAAC,IAA+B,EAAE,IAAI,CAAC,CAAA;IACtD,CAAC;CAOF;AAdD,0DAcC","sourcesContent":["import { AbstractFilterTopic } from '../../icc-api/model/AbstractFilterTopic'\nimport { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\n\nexport class ExternalViewFilterTopic extends AbstractFilterTopic {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.Topic'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterTopic, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractFilterUser } from '../../icc-api/model/AbstractFilterUser';
|
|
2
|
+
import { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey';
|
|
3
|
+
export declare class ExternalViewFilterUser extends AbstractFilterUser {
|
|
4
|
+
$type: string;
|
|
5
|
+
entityQualifiedName: string;
|
|
6
|
+
constructor(json: JSON | any);
|
|
7
|
+
view?: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
startKey?: ExternalFilterKey;
|
|
10
|
+
endKey?: ExternalFilterKey;
|
|
11
|
+
desc?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalViewFilterUser = void 0;
|
|
4
|
+
const AbstractFilterUser_1 = require("../../icc-api/model/AbstractFilterUser");
|
|
5
|
+
class ExternalViewFilterUser extends AbstractFilterUser_1.AbstractFilterUser {
|
|
6
|
+
constructor(json) {
|
|
7
|
+
super(json);
|
|
8
|
+
this.$type = 'ExternalViewFilter';
|
|
9
|
+
this.entityQualifiedName = 'org.taktik.icure.entities.User';
|
|
10
|
+
Object.assign(this, json);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ExternalViewFilterUser = ExternalViewFilterUser;
|
|
14
|
+
//# sourceMappingURL=ExternalViewFilterUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalViewFilterUser.js","sourceRoot":"","sources":["../../../icc-x-api/filters/ExternalViewFilterUser.ts"],"names":[],"mappings":";;;AAAA,+EAA2E;AAG3E,MAAa,sBAAuB,SAAQ,uCAAkB;IAG5D,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAHb,UAAK,GAAW,oBAAoB,CAAA;QACpC,wBAAmB,GAAW,gCAAgC,CAAA;QAI5D,MAAM,CAAC,MAAM,CAAC,IAA8B,EAAE,IAAI,CAAC,CAAA;IACrD,CAAC;CAOF;AAdD,wDAcC","sourcesContent":["import { AbstractFilterUser } from '../../icc-api/model/AbstractFilterUser'\nimport { ExternalFilterKey } from '../../icc-api/model/ExternalFilterKey'\n\nexport class ExternalViewFilterUser extends AbstractFilterUser {\n $type: string = 'ExternalViewFilter'\n entityQualifiedName: string = 'org.taktik.icure.entities.User'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as ExternalViewFilterUser, json)\n }\n\n view?: string\n partition?: string\n startKey?: ExternalFilterKey\n endKey?: ExternalFilterKey\n desc?: string\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'isomorphic-fetch';
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
require("isomorphic-fetch");
|
|
13
|
-
const icc_x_api_1 = require("../../icc-x-api");
|
|
14
|
-
const TestStorage_1 = require("../utils/TestStorage");
|
|
15
|
-
const DataOwnerTypeEnum_1 = require("../../icc-api/model/DataOwnerTypeEnum");
|
|
16
|
-
const crypto_1 = require("crypto");
|
|
17
|
-
const FilterChainContact_1 = require("../../icc-api/model/FilterChainContact");
|
|
18
|
-
const ContactByHcPartyFilter_1 = require("../../icc-x-api/filters/ContactByHcPartyFilter");
|
|
19
|
-
class MyStrats {
|
|
20
|
-
dataOwnerRequiresAnonymousDelegation(dataOwner) {
|
|
21
|
-
return dataOwner.type == DataOwnerTypeEnum_1.DataOwnerTypeEnum.Patient;
|
|
22
|
-
}
|
|
23
|
-
generateNewKeyForDataOwner(self, cryptoPrimitives) {
|
|
24
|
-
return Promise.resolve(false);
|
|
25
|
-
}
|
|
26
|
-
recoverAndVerifySelfHierarchyKeys(keysData, cryptoPrimitives, keyPairRecoverer) {
|
|
27
|
-
throw new Error("This should not happen for this test");
|
|
28
|
-
}
|
|
29
|
-
verifyDelegatePublicKeys(delegate, publicKeys, cryptoPrimitives) {
|
|
30
|
-
return Promise.resolve(publicKeys);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function issue() {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
const storage = new TestStorage_1.TestStorage();
|
|
36
|
-
yield storage.setItem("org.taktik.icure.rsa.0f540fbf-43dc-4a6c-88dc-31f5ab5e515c.verification.self", JSON.stringify({ "239e8767affc1c555cbe8f0203010001": true }));
|
|
37
|
-
const privateKey = "308204bc020100300d06092a864886f70d0101010500048204a6308204a20201000282010100c71e5ff9ef91047235adb102f8dc03a793d5f6b13019427c62a8c84aa5ae06fda631ae11a07c7f4b069e06275b2f030f9f0972a10f6f7be6d3a2f4c6faef8486a2361452ee9ab31bcd4bf6792a7eec121266bfc1f70c853e265f3596ab6da9faedda64d51ced0ad78a044bba53d9a2df959d25951b278cb4de3a3f08457f9d4ed4641c46b6c4a423d205d1c6a60394d17f73a9e09b8bdf4ac7df81d22eaf3a1ebe0cbfd2bf41da18596d4bce3ce7884b8321f98c23d71c435e3015b74862501cf355aa710c91aa95506d078f3d3bff3723b86bf4fc7ded4402c7f81d1a7e3a786479b44d960a86acf07c83034db971a1fdfa59441b239e8767affc1c555cbe8f0203010001028201005dbe7cb418683f5e1fcc7eee65c87b85fd517a3bb067ec07d09122ff15e2895308d811da25a3077104940854a616cb8ba2b5d97c5f5e7ec84d3246a899828373b951d99eb3cc2c6ff5e7020ac88989cdf650de8dcca85de0c54304e1432335a8382c1e55c1310e6e2c81da3f4673cbbd14dcafd173bfda7c5ab5b47049fc0b4c391c56f12add5a8982599cd8239c4dd937ca0f4482f5601a21a4303415804a2b3dd0fc7d5ad0e2daebf434fb0ec5cdd41b8486e6f273404a824cf858d1d177d2efc15df3ee6401bf2ae0ac3c88b6adf395b25013cbf881a4c1c6a3bd900ff53c60cd8dca5395e5d9bd5d9bec6989761380c50198a1b55f5630e42f5dfd9daee502818100f1631d82d37e32da38dd4f1de975c5bdc7c81d10d372903535e5d81266fb5c2b201a6ff3f76867c0665e51d95a136f3dd81e21ed940b78f071b807d2cb0d922e3043089b0bc11b105d977ba7d98778b61b13e7173c4a9b3eeb3b00b86a160849b0114cf064ebbcd9a150a73797bd4ac0d192f3ac92124c402ebe2226202b995302818100d32c349ef9dc0483ce8e886d779d553b2c38532bf7c1ffbf8b79dd962a2d3ae4fa1ec80a8fb9f8753d4d9e8ce7e62d1ba546c98e612e652f7b76c23acf6d71f0f076938129d6fa2ae88e35381b794bbd00d82515ac1604c077d699189d8f68cb7172889c730473374a618cddbb78682b456a46eab08c8705920b0d2a4f191255028180501ff059cece231f20a505700e609384cd5df597f23822fa26abe6af2513e6a24203c4899ce4411c325eb8988737d0431d0bd383431313cfec4f83f94a8174b6743aac0e9b363c3f90718a104b3a96ad0c0bed375f41fc8a4416cfc467226d19d8a1c5823e5da9d02ba5d3fbb6189549afc731af64c5421e43e5c4fc16cda215028180329d39cf90dba749604cd16e4b692e708c5cc3b29a23a984e38d460b23f8cb50ee924a281de2d9266097261567cfc7a804a93ece1d84dd43d037dabdf5d1a9a9b238f989cfd97304add0c7f8b6bd0fe631399d49e081368a5b2ed86b09f8c189619bae1ab186b386e111188e5cccb34b0bcc394b2f1dbf8f1a3e03ddcc2f9a310281801e7440d3349a9492a72732f304102cb206e83e746cb1940a594cf114e698d4edac67991c3b7e073eed9d6dae52abf044f0bede3d52c02723013ec32e46a11c0e9723c0139a913a9827f7d1331c510f7b19e4ea27eb6f7c2816a0f7f89b143ade1bcc4fa3fef1fcf2617f40b9e7d3983ec5d0174c371b8d0fc2f20876b0d37bcf";
|
|
38
|
-
yield storage.setItem("org.taktik.icure.rsa.device.0f540fbf-43dc-4a6c-88dc-31f5ab5e515c.239e8767affc1c555cbe8f0203010001", JSON.stringify({
|
|
39
|
-
"publicKey": (0, icc_x_api_1.spkiToJwk)((0, icc_x_api_1.hex2ua)((0, icc_x_api_1.jwk2spki)((0, icc_x_api_1.pkcs8ToJwk)((0, icc_x_api_1.hex2ua)(privateKey)))), icc_x_api_1.ShaVersion.Sha256),
|
|
40
|
-
"privateKey": (0, icc_x_api_1.pkcs8ToJwk)((0, icc_x_api_1.hex2ua)(privateKey))
|
|
41
|
-
}));
|
|
42
|
-
const sdk = yield icc_x_api_1.IcureApi.initialise("https://api.icure.cloud", { username: "jerome.cordiez+ad2@gmail.com", password: "tiredaile" }, new MyStrats(), crypto_1.webcrypto, fetch, { storage: storage, headers: { "X-Bypass-Session": "true" } });
|
|
43
|
-
console.log(yield sdk.contactApi.filterByWithUser(yield sdk.userApi.getCurrentUser(), undefined, 1000, new FilterChainContact_1.FilterChainContact({ filter: new ContactByHcPartyFilter_1.ContactByHcPartyFilter({ hcpId: "0f540fbf-43dc-4a6c-88dc-31f5ab5e515c" }) })));
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
describe('Recovery api use scenarios', () => {
|
|
47
|
-
it('Aaaaaaaaaaaaaaaaaaaa', function () {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
yield issue();
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=help-meddi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"help-meddi.js","sourceRoot":"","sources":["../../../test/icc-x-api/help-meddi.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,4BAAyB;AACzB,+CAUwB;AACxB,sDAAgD;AAGhD,6EAAwE;AAExE,mCAAiC;AACjC,+EAA0E;AAC1E,2FAAsF;AAEtF,MAAM,QAAQ;IACZ,oCAAoC,CAAC,SAAkC;QACrE,OAAO,SAAS,CAAC,IAAI,IAAI,qCAAiB,CAAC,OAAO,CAAC;IACrD,CAAC;IAED,0BAA0B,CAAC,IAAuB,EAAE,gBAAkC;QACpF,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,iCAAiC,CAAC,QAI/B,EAAE,gBAAkC,EAAE,gBAAkC;QAGzE,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAA;IACzD,CAAC;IAED,wBAAwB,CAAC,QAAiC,EAAE,UAAoB,EAAE,gBAAkC;QAClH,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;CACF;AAED,SAAe,KAAK;;QAClB,MAAM,OAAO,GAAG,IAAI,yBAAW,EAAE,CAAA;QACjC,MAAM,OAAO,CAAC,OAAO,CAAC,6EAA6E,EAAE,IAAI,CAAC,SAAS,CAAC,EAAC,kCAAkC,EAAC,IAAI,EAAC,CAAC,CAAC,CAAA;QAC/J,MAAM,UAAU,GAAG,k4EAAk4E,CAAA;QACr5E,MAAM,OAAO,CAAC,OAAO,CACnB,mGAAmG,EACnG,IAAI,CAAC,SAAS,CAAC;YACb,WAAW,EAAE,IAAA,qBAAS,EAAC,IAAA,kBAAM,EAAC,IAAA,oBAAQ,EAAC,IAAA,sBAAU,EAAC,IAAA,kBAAM,EAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,sBAAU,CAAC,MAAM,CAAC;YAC3F,YAAY,EAAE,IAAA,sBAAU,EAAC,IAAA,kBAAM,EAAC,UAAU,CAAC,CAAC;SAC7C,CAAC,CACH,CAAA;QACD,MAAM,GAAG,GAAG,MAAM,oBAAQ,CAAC,UAAU,CACnC,yBAAyB,EACzB,EAAE,QAAQ,EAAE,8BAA8B,EAAE,QAAQ,EAAE,WAAW,EAAE,EACnE,IAAI,QAAQ,EAAE,EACd,kBAAgB,EAChB,KAAK,EACL,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,kBAAkB,EAAE,MAAM,EAAE,EAAE,CAC9D,CAAA;QACD,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,UAAU,CAAC,gBAAgB,CAC/C,MAAM,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,EAClC,SAAS,EACT,IAAI,EACJ,IAAI,uCAAkB,CAAC,EAAE,MAAM,EAAE,IAAI,+CAAsB,CAAC,EAAE,KAAK,EAAE,sCAAsC,EAAE,CAAC,EAAE,CAAC,CAClH,CAAC,CAAA;IACJ,CAAC;CAAA;AAED,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,sBAAsB,EAAE;;YACzB,MAAM,KAAK,EAAE,CAAA;QACf,CAAC;KAAA,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA","sourcesContent":["import 'isomorphic-fetch'\nimport {\n CryptoPrimitives,\n CryptoStrategies,\n hex2ua,\n IcureApi,\n jwk2spki,\n KeyPair,\n pkcs8ToJwk,\n ShaVersion,\n spkiToJwk\n} from '../../icc-x-api'\nimport {TestStorage} from '../utils/TestStorage'\nimport {KeyPairRecoverer} from \"../../icc-x-api/crypto/KeyPairRecoverer\";\nimport {CryptoActorStubWithType} from \"../../icc-api/model/CryptoActorStub\";\nimport {DataOwnerTypeEnum} from \"../../icc-api/model/DataOwnerTypeEnum\";\nimport {DataOwnerWithType} from \"../../icc-api/model/DataOwnerWithType\";\nimport {webcrypto} from \"crypto\";\nimport {FilterChainContact} from \"../../icc-api/model/FilterChainContact\";\nimport {ContactByHcPartyFilter} from \"../../icc-x-api/filters/ContactByHcPartyFilter\";\n\nclass MyStrats implements CryptoStrategies {\n dataOwnerRequiresAnonymousDelegation(dataOwner: CryptoActorStubWithType): boolean {\n return dataOwner.type == DataOwnerTypeEnum.Patient;\n }\n\n generateNewKeyForDataOwner(self: DataOwnerWithType, cryptoPrimitives: CryptoPrimitives): Promise<KeyPair<CryptoKey> | boolean> {\n return Promise.resolve(false);\n }\n\n recoverAndVerifySelfHierarchyKeys(keysData: {\n dataOwner: DataOwnerWithType;\n unknownKeys: string[];\n unavailableKeys: string[]\n }[], cryptoPrimitives: CryptoPrimitives, keyPairRecoverer: KeyPairRecoverer): Promise<{\n [p: string]: { recoveredKeys: { [p: string]: KeyPair<CryptoKey> }; keyAuthenticity: { [p: string]: boolean } }\n }> {\n throw new Error(\"This should not happen for this test\")\n }\n\n verifyDelegatePublicKeys(delegate: CryptoActorStubWithType, publicKeys: string[], cryptoPrimitives: CryptoPrimitives): Promise<string[]> {\n return Promise.resolve(publicKeys);\n }\n}\n\nasync function issue() {\n const storage = new TestStorage()\n await storage.setItem(\"org.taktik.icure.rsa.0f540fbf-43dc-4a6c-88dc-31f5ab5e515c.verification.self\", JSON.stringify({\"239e8767affc1c555cbe8f0203010001\":true}))\n const privateKey = \"308204bc020100300d06092a864886f70d0101010500048204a6308204a20201000282010100c71e5ff9ef91047235adb102f8dc03a793d5f6b13019427c62a8c84aa5ae06fda631ae11a07c7f4b069e06275b2f030f9f0972a10f6f7be6d3a2f4c6faef8486a2361452ee9ab31bcd4bf6792a7eec121266bfc1f70c853e265f3596ab6da9faedda64d51ced0ad78a044bba53d9a2df959d25951b278cb4de3a3f08457f9d4ed4641c46b6c4a423d205d1c6a60394d17f73a9e09b8bdf4ac7df81d22eaf3a1ebe0cbfd2bf41da18596d4bce3ce7884b8321f98c23d71c435e3015b74862501cf355aa710c91aa95506d078f3d3bff3723b86bf4fc7ded4402c7f81d1a7e3a786479b44d960a86acf07c83034db971a1fdfa59441b239e8767affc1c555cbe8f0203010001028201005dbe7cb418683f5e1fcc7eee65c87b85fd517a3bb067ec07d09122ff15e2895308d811da25a3077104940854a616cb8ba2b5d97c5f5e7ec84d3246a899828373b951d99eb3cc2c6ff5e7020ac88989cdf650de8dcca85de0c54304e1432335a8382c1e55c1310e6e2c81da3f4673cbbd14dcafd173bfda7c5ab5b47049fc0b4c391c56f12add5a8982599cd8239c4dd937ca0f4482f5601a21a4303415804a2b3dd0fc7d5ad0e2daebf434fb0ec5cdd41b8486e6f273404a824cf858d1d177d2efc15df3ee6401bf2ae0ac3c88b6adf395b25013cbf881a4c1c6a3bd900ff53c60cd8dca5395e5d9bd5d9bec6989761380c50198a1b55f5630e42f5dfd9daee502818100f1631d82d37e32da38dd4f1de975c5bdc7c81d10d372903535e5d81266fb5c2b201a6ff3f76867c0665e51d95a136f3dd81e21ed940b78f071b807d2cb0d922e3043089b0bc11b105d977ba7d98778b61b13e7173c4a9b3eeb3b00b86a160849b0114cf064ebbcd9a150a73797bd4ac0d192f3ac92124c402ebe2226202b995302818100d32c349ef9dc0483ce8e886d779d553b2c38532bf7c1ffbf8b79dd962a2d3ae4fa1ec80a8fb9f8753d4d9e8ce7e62d1ba546c98e612e652f7b76c23acf6d71f0f076938129d6fa2ae88e35381b794bbd00d82515ac1604c077d699189d8f68cb7172889c730473374a618cddbb78682b456a46eab08c8705920b0d2a4f191255028180501ff059cece231f20a505700e609384cd5df597f23822fa26abe6af2513e6a24203c4899ce4411c325eb8988737d0431d0bd383431313cfec4f83f94a8174b6743aac0e9b363c3f90718a104b3a96ad0c0bed375f41fc8a4416cfc467226d19d8a1c5823e5da9d02ba5d3fbb6189549afc731af64c5421e43e5c4fc16cda215028180329d39cf90dba749604cd16e4b692e708c5cc3b29a23a984e38d460b23f8cb50ee924a281de2d9266097261567cfc7a804a93ece1d84dd43d037dabdf5d1a9a9b238f989cfd97304add0c7f8b6bd0fe631399d49e081368a5b2ed86b09f8c189619bae1ab186b386e111188e5cccb34b0bcc394b2f1dbf8f1a3e03ddcc2f9a310281801e7440d3349a9492a72732f304102cb206e83e746cb1940a594cf114e698d4edac67991c3b7e073eed9d6dae52abf044f0bede3d52c02723013ec32e46a11c0e9723c0139a913a9827f7d1331c510f7b19e4ea27eb6f7c2816a0f7f89b143ade1bcc4fa3fef1fcf2617f40b9e7d3983ec5d0174c371b8d0fc2f20876b0d37bcf\"\n await storage.setItem(\n \"org.taktik.icure.rsa.device.0f540fbf-43dc-4a6c-88dc-31f5ab5e515c.239e8767affc1c555cbe8f0203010001\",\n JSON.stringify({\n \"publicKey\": spkiToJwk(hex2ua(jwk2spki(pkcs8ToJwk(hex2ua(privateKey)))), ShaVersion.Sha256),\n \"privateKey\": pkcs8ToJwk(hex2ua(privateKey))\n })\n )\n const sdk = await IcureApi.initialise(\n \"https://api.icure.cloud\",\n { username: \"jerome.cordiez+ad2@gmail.com\", password: \"tiredaile\" },\n new MyStrats(),\n webcrypto as any,\n fetch,\n { storage: storage, headers: { \"X-Bypass-Session\": \"true\" } }\n )\n console.log(await sdk.contactApi.filterByWithUser(\n await sdk.userApi.getCurrentUser(),\n undefined,\n 1000,\n new FilterChainContact({ filter: new ContactByHcPartyFilter({ hcpId: \"0f540fbf-43dc-4a6c-88dc-31f5ab5e515c\" }) })\n ))\n}\n\ndescribe('Recovery api use scenarios', () => {\n it('Aaaaaaaaaaaaaaaaaaaa', async function () {\n await issue()\n })\n})\n"]}
|