@icure/api 8.6.6 → 8.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/icc-api/api/IccAccesslogApi.d.ts +14 -0
  2. package/icc-api/api/IccAccesslogApi.js +31 -0
  3. package/icc-api/api/IccAccesslogApi.js.map +1 -1
  4. package/icc-api/api/IccFormApi.d.ts +8 -0
  5. package/icc-api/api/IccFormApi.js +21 -0
  6. package/icc-api/api/IccFormApi.js.map +1 -1
  7. package/icc-api/model/AbstractFilterAccessLog.d.ts +15 -0
  8. package/icc-api/model/AbstractFilterAccessLog.js +21 -0
  9. package/icc-api/model/AbstractFilterAccessLog.js.map +1 -0
  10. package/icc-api/model/ChapterParagraph.d.ts +16 -0
  11. package/icc-api/model/ChapterParagraph.js +21 -0
  12. package/icc-api/model/ChapterParagraph.js.map +1 -0
  13. package/icc-api/model/CryptoActorStub.d.ts +2 -0
  14. package/icc-api/model/CryptoActorStub.js.map +1 -1
  15. package/icc-api/model/Device.d.ts +1 -0
  16. package/icc-api/model/Device.js.map +1 -1
  17. package/icc-api/model/HealthcareParty.d.ts +1 -0
  18. package/icc-api/model/HealthcareParty.js.map +1 -1
  19. package/icc-api/model/Patient.d.ts +1 -0
  20. package/icc-api/model/Patient.js.map +1 -1
  21. package/icc-api/model/Reimbursement.d.ts +2 -0
  22. package/icc-api/model/Reimbursement.js.map +1 -1
  23. package/icc-x-api/crypto/CryptoStrategies.d.ts +2 -1
  24. package/icc-x-api/crypto/CryptoStrategies.js.map +1 -1
  25. package/icc-x-api/crypto/ExtendedApisUtilsImpl.js +2 -2
  26. package/icc-x-api/crypto/ExtendedApisUtilsImpl.js.map +1 -1
  27. package/icc-x-api/crypto/UserEncryptionKeysManager.js +2 -2
  28. package/icc-x-api/crypto/UserEncryptionKeysManager.js.map +1 -1
  29. package/icc-x-api/filters/AccessLogByDataOwnerPatientDateFilter.d.ts +22 -0
  30. package/icc-x-api/filters/AccessLogByDataOwnerPatientDateFilter.js +24 -0
  31. package/icc-x-api/filters/AccessLogByDataOwnerPatientDateFilter.js.map +1 -0
  32. package/icc-x-api/filters/AccessLogByDateFilter.d.ts +20 -0
  33. package/icc-x-api/filters/AccessLogByDateFilter.js +24 -0
  34. package/icc-x-api/filters/AccessLogByDateFilter.js.map +1 -0
  35. package/icc-x-api/filters/AccessLogByUserIdUserTypeDateFilter.d.ts +21 -0
  36. package/icc-x-api/filters/AccessLogByUserIdUserTypeDateFilter.js +24 -0
  37. package/icc-x-api/filters/AccessLogByUserIdUserTypeDateFilter.js.map +1 -0
  38. package/icc-x-api/icc-contact-x-api.js +3 -3
  39. package/icc-x-api/icc-contact-x-api.js.map +1 -1
  40. package/icc-x-api/utils/crypto-utils.d.ts +2 -1
  41. package/icc-x-api/utils/crypto-utils.js +57 -6
  42. package/icc-x-api/utils/crypto-utils.js.map +1 -1
  43. package/package.json +1 -1
  44. package/test/icc-x-api/crypto/anonymous-delegations-test.js +1 -1
  45. package/test/icc-x-api/crypto/anonymous-delegations-test.js.map +1 -1
  46. package/test/icc-x-api/crypto/cryptoTest.js +99 -1
  47. package/test/icc-x-api/crypto/cryptoTest.js.map +1 -1
  48. package/test/icc-x-api/crypto/legacy-metadata-migration-test.js +3 -3
  49. package/test/icc-x-api/crypto/legacy-metadata-migration-test.js.map +1 -1
  50. package/test/icc-x-api/entity-with-attachments-api-test.js +2 -2
  51. package/test/icc-x-api/entity-with-attachments-api-test.js.map +1 -1
  52. package/test/icc-x-api/icc-form-x-api.js +51 -0
  53. package/test/icc-x-api/icc-form-x-api.js.map +1 -1
  54. package/test/icc-x-api/icc-user-x-api-test.js +1 -1
  55. package/test/icc-x-api/icc-user-x-api-test.js.map +1 -1
  56. package/test/support/CSM-243.js +5 -5
  57. package/test/support/CSM-243.js.map +1 -1
  58. package/test/support/CSM-729.d.ts +1 -0
  59. package/test/support/CSM-729.js +225 -0
  60. package/test/support/CSM-729.js.map +1 -0
@@ -0,0 +1,22 @@
1
+ /**
2
+ * iCure Data Stack API Documentation
3
+ * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
4
+ *
5
+ * OpenAPI spec version: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AbstractFilterAccessLog } from '../../icc-api/model/AbstractFilterAccessLog';
13
+ export declare class AccessLogByDataOwnerPatientDateFilter extends AbstractFilterAccessLog {
14
+ $type: string;
15
+ constructor(json: JSON | any);
16
+ dataOwnerId?: string;
17
+ startDate?: number;
18
+ endDate?: number;
19
+ secretPatientIds?: string[];
20
+ descending?: boolean;
21
+ desc?: string;
22
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * iCure Data Stack API Documentation
4
+ * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
5
+ *
6
+ * OpenAPI spec version: v1
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by the swagger code generator program.
10
+ * https://github.com/swagger-api/swagger-codegen.git
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.AccessLogByDataOwnerPatientDateFilter = void 0;
15
+ const AbstractFilterAccessLog_1 = require("../../icc-api/model/AbstractFilterAccessLog");
16
+ class AccessLogByDataOwnerPatientDateFilter extends AbstractFilterAccessLog_1.AbstractFilterAccessLog {
17
+ constructor(json) {
18
+ super(json);
19
+ this.$type = 'AccessLogByDataOwnerPatientDateFilter';
20
+ Object.assign(this, json);
21
+ }
22
+ }
23
+ exports.AccessLogByDataOwnerPatientDateFilter = AccessLogByDataOwnerPatientDateFilter;
24
+ //# sourceMappingURL=AccessLogByDataOwnerPatientDateFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccessLogByDataOwnerPatientDateFilter.js","sourceRoot":"","sources":["../../../icc-x-api/filters/AccessLogByDataOwnerPatientDateFilter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,yFAAqF;AAErF,MAAa,qCAAsC,SAAQ,iDAAuB;IAEhF,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAFb,UAAK,GAAW,uCAAuC,CAAA;QAIrD,MAAM,CAAC,MAAM,CAAC,IAA6C,EAAE,IAAI,CAAC,CAAA;IACpE,CAAC;CAQF;AAdD,sFAcC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nimport { AbstractFilterAccessLog } from '../../icc-api/model/AbstractFilterAccessLog'\n\nexport class AccessLogByDataOwnerPatientDateFilter extends AbstractFilterAccessLog {\n $type: string = 'AccessLogByDataOwnerPatientDateFilter'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as AccessLogByDataOwnerPatientDateFilter, json)\n }\n\n dataOwnerId?: string\n startDate?: number\n endDate?: number\n secretPatientIds?: string[]\n descending?: boolean\n desc?: string\n}\n"]}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * iCure Data Stack API Documentation
3
+ * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
4
+ *
5
+ * OpenAPI spec version: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AbstractFilterAccessLog } from '../../icc-api/model/AbstractFilterAccessLog';
13
+ export declare class AccessLogByDateFilter extends AbstractFilterAccessLog {
14
+ $type: string;
15
+ constructor(json: JSON | any);
16
+ startDate?: number;
17
+ endDate?: number;
18
+ descending?: boolean;
19
+ desc?: string;
20
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * iCure Data Stack API Documentation
4
+ * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
5
+ *
6
+ * OpenAPI spec version: v1
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by the swagger code generator program.
10
+ * https://github.com/swagger-api/swagger-codegen.git
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.AccessLogByDateFilter = void 0;
15
+ const AbstractFilterAccessLog_1 = require("../../icc-api/model/AbstractFilterAccessLog");
16
+ class AccessLogByDateFilter extends AbstractFilterAccessLog_1.AbstractFilterAccessLog {
17
+ constructor(json) {
18
+ super(json);
19
+ this.$type = 'AccessLogByDateFilter';
20
+ Object.assign(this, json);
21
+ }
22
+ }
23
+ exports.AccessLogByDateFilter = AccessLogByDateFilter;
24
+ //# sourceMappingURL=AccessLogByDateFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccessLogByDateFilter.js","sourceRoot":"","sources":["../../../icc-x-api/filters/AccessLogByDateFilter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,yFAAqF;AAErF,MAAa,qBAAsB,SAAQ,iDAAuB;IAEhE,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAFb,UAAK,GAAW,uBAAuB,CAAA;QAIrC,MAAM,CAAC,MAAM,CAAC,IAA6B,EAAE,IAAI,CAAC,CAAA;IACpD,CAAC;CAMF;AAZD,sDAYC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nimport { AbstractFilterAccessLog } from '../../icc-api/model/AbstractFilterAccessLog'\n\nexport class AccessLogByDateFilter extends AbstractFilterAccessLog {\n $type: string = 'AccessLogByDateFilter'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as AccessLogByDateFilter, json)\n }\n\n startDate?: number\n endDate?: number\n descending?: boolean\n desc?: string\n}\n"]}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * iCure Data Stack API Documentation
3
+ * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
4
+ *
5
+ * OpenAPI spec version: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AbstractFilterAccessLog } from '../../icc-api/model/AbstractFilterAccessLog';
13
+ export declare class AccessLogByUserIdUserTypeDateFilter extends AbstractFilterAccessLog {
14
+ $type: string;
15
+ constructor(json: JSON | any);
16
+ userId?: string;
17
+ accessType?: string;
18
+ startDate?: number;
19
+ descending?: boolean;
20
+ desc?: string;
21
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * iCure Data Stack API Documentation
4
+ * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
5
+ *
6
+ * OpenAPI spec version: v1
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by the swagger code generator program.
10
+ * https://github.com/swagger-api/swagger-codegen.git
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.AccessLogByUserIdUserTypeDateFilter = void 0;
15
+ const AbstractFilterAccessLog_1 = require("../../icc-api/model/AbstractFilterAccessLog");
16
+ class AccessLogByUserIdUserTypeDateFilter extends AbstractFilterAccessLog_1.AbstractFilterAccessLog {
17
+ constructor(json) {
18
+ super(json);
19
+ this.$type = 'AccessLogByUserIdUserTypeDateFilter';
20
+ Object.assign(this, json);
21
+ }
22
+ }
23
+ exports.AccessLogByUserIdUserTypeDateFilter = AccessLogByUserIdUserTypeDateFilter;
24
+ //# sourceMappingURL=AccessLogByUserIdUserTypeDateFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccessLogByUserIdUserTypeDateFilter.js","sourceRoot":"","sources":["../../../icc-x-api/filters/AccessLogByUserIdUserTypeDateFilter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,yFAAqF;AAErF,MAAa,mCAAoC,SAAQ,iDAAuB;IAE9E,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAFb,UAAK,GAAW,qCAAqC,CAAA;QAInD,MAAM,CAAC,MAAM,CAAC,IAA2C,EAAE,IAAI,CAAC,CAAA;IAClE,CAAC;CAOF;AAbD,kFAaC","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nimport { AbstractFilterAccessLog } from '../../icc-api/model/AbstractFilterAccessLog'\n\nexport class AccessLogByUserIdUserTypeDateFilter extends AbstractFilterAccessLog {\n $type: string = 'AccessLogByUserIdUserTypeDateFilter'\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as AccessLogByUserIdUserTypeDateFilter, json)\n }\n\n userId?: string\n accessType?: string\n startDate?: number\n descending?: boolean\n desc?: string\n}\n"]}
@@ -419,13 +419,13 @@ class IccContactXApi extends icc_api_1.IccContactApi {
419
419
  return this.serviceEncryptedFieldsNoContent
420
420
  ? (0, utils_1.encryptObject)(copyWithEncryptedContent, (obj) => {
421
421
  return this.crypto.primitives.AES.encrypt(key, (0, binary_utils_1.utf8_2ua)(JSON.stringify(obj)), rawKey);
422
- }, this.serviceEncryptedFieldsNoContent, 'service')
422
+ }, (encryptedSelf) => this.crypto.xapi.tryDecryptJson([{ key, raw: rawKey }], encryptedSelf, false), this.serviceEncryptedFieldsNoContent, 'service')
423
423
  : copyWithEncryptedContent;
424
424
  }
425
425
  else {
426
426
  return (0, utils_1.encryptObject)(svc, (obj) => {
427
427
  return this.crypto.primitives.AES.encrypt(key, (0, binary_utils_1.utf8_2ua)(JSON.stringify(obj)), rawKey);
428
- }, this.serviceEncryptedFieldsWithContent, 'service');
428
+ }, (encryptedSelf) => this.crypto.xapi.tryDecryptJson([{ key, raw: rawKey }], encryptedSelf, false), this.serviceEncryptedFieldsWithContent, 'service');
429
429
  }
430
430
  })));
431
431
  }
@@ -450,7 +450,7 @@ class IccContactXApi extends icc_api_1.IccContactApi {
450
450
  try {
451
451
  const encrypted = new models_1.Contact(yield (0, utils_1.encryptObject)(Object.assign(Object.assign({}, entity), { services: entity.services ? yield this.encryptServices(k.key, k.raw, entity.services) : [] }), (obj) => {
452
452
  return this.crypto.primitives.AES.encrypt(k.key, (0, binary_utils_1.utf8_2ua)(JSON.stringify(obj)), k.raw);
453
- }, this.contactEncryptedFields, utils_1.EntityWithDelegationTypeName.Contact));
453
+ }, (encryptedSelf) => this.crypto.xapi.tryDecryptJson(keys, encryptedSelf, false), this.contactEncryptedFields, utils_1.EntityWithDelegationTypeName.Contact));
454
454
  return { success: encrypted };
455
455
  }
456
456
  catch (e) {