@icure/cardinal-sdk 3.0.0-PREVIEW.7 → 3.0.0-PREVIEW.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 (112) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
  2. package/api/AccessLogApi.d.mts +11 -0
  3. package/api/AccessLogBasicApi.d.mts +11 -0
  4. package/api/AccessLogBasicInGroupApi.d.mts +6 -0
  5. package/api/AccessLogInGroupApi.d.mts +33 -1
  6. package/api/ApplicationSettingsApi.d.mts +6 -0
  7. package/api/ApplicationSettingsApi.mjs +1 -0
  8. package/api/CalendarItemApi.d.mts +11 -0
  9. package/api/CalendarItemBasicApi.d.mts +11 -0
  10. package/api/CalendarItemBasicInGroupApi.d.mts +6 -0
  11. package/api/CalendarItemInGroupApi.d.mts +6 -0
  12. package/api/ContactApi.d.mts +22 -0
  13. package/api/ContactBasicApi.d.mts +22 -0
  14. package/api/ContactBasicInGroupApi.d.mts +11 -0
  15. package/api/ContactInGroupApi.d.mts +11 -0
  16. package/api/DocumentApi.d.mts +11 -0
  17. package/api/DocumentBasicApi.d.mts +11 -0
  18. package/api/DocumentBasicInGroupApi.d.mts +6 -0
  19. package/api/DocumentInGroupApi.d.mts +6 -0
  20. package/api/DocumentTemplateApi.d.mts +22 -0
  21. package/api/DocumentTemplateApi.mjs +1 -0
  22. package/api/EntityReferenceApi.d.mts +5 -0
  23. package/api/EntityReferenceApi.mjs +1 -0
  24. package/api/EntityTemplateApi.d.mts +24 -0
  25. package/api/EntityTemplateApi.mjs +1 -0
  26. package/api/FormApi.d.mts +11 -0
  27. package/api/FormBasicApi.d.mts +11 -0
  28. package/api/FormBasicInGroupApi.d.mts +6 -0
  29. package/api/FormInGroupApi.d.mts +6 -0
  30. package/api/HealthElementApi.d.mts +11 -0
  31. package/api/HealthElementBasicApi.d.mts +11 -0
  32. package/api/HealthElementBasicInGroupApi.d.mts +6 -0
  33. package/api/HealthElementInGroupApi.d.mts +6 -0
  34. package/api/InvoiceApi.d.mts +11 -0
  35. package/api/InvoiceBasicApi.d.mts +11 -0
  36. package/api/InvoiceBasicInGroupApi.d.mts +6 -0
  37. package/api/InvoiceInGroupApi.d.mts +6 -0
  38. package/api/KeywordApi.d.mts +14 -0
  39. package/api/KeywordApi.mjs +1 -0
  40. package/api/MedicalLocationApi.d.mts +17 -0
  41. package/api/MedicalLocationApi.mjs +1 -0
  42. package/api/MessageApi.d.mts +11 -0
  43. package/api/MessageBasicApi.d.mts +11 -0
  44. package/api/MessageBasicInGroupApi.d.mts +6 -0
  45. package/api/MessageInGroupApi.d.mts +6 -0
  46. package/api/ReceiptApi.d.mts +11 -0
  47. package/api/ReceiptBasicApi.d.mts +11 -0
  48. package/api/ReceiptBasicInGroupApi.d.mts +6 -0
  49. package/api/ReceiptInGroupApi.d.mts +6 -0
  50. package/api/RelatedPersonApi.d.mts +11 -0
  51. package/api/RelatedPersonBasicApi.d.mts +11 -0
  52. package/api/RelatedPersonBasicInGroupApi.d.mts +6 -0
  53. package/api/RelatedPersonInGroupApi.d.mts +6 -0
  54. package/api/TarificationApi.d.mts +27 -0
  55. package/api/TarificationApi.mjs +1 -0
  56. package/api/TimeTableApi.d.mts +26 -0
  57. package/api/TimeTableApi.mjs +1 -0
  58. package/api/TopicApi.d.mts +11 -0
  59. package/api/TopicBasicApi.d.mts +11 -0
  60. package/api/TopicBasicInGroupApi.d.mts +6 -0
  61. package/api/TopicInGroupApi.d.mts +6 -0
  62. package/cardinal-sdk-ts.mjs +47824 -44170
  63. package/cardinal-sdk.mjs +77922 -77616
  64. package/crypto/entities/DelegateShareOptions.d.mts +9 -0
  65. package/crypto/entities/DelegateShareOptions.mjs +8 -0
  66. package/crypto/entities/ShareAllPatientDataOptions.d.mts +49 -0
  67. package/crypto/entities/ShareAllPatientDataOptions.mjs +58 -0
  68. package/filters/ClassificationFilters.d.mts +114 -0
  69. package/filters/ClassificationFilters.mjs +8 -0
  70. package/filters/MedicalLocationFilters.d.mts +8 -0
  71. package/filters/MedicalLocationFilters.mjs +6 -0
  72. package/filters/TimeTableFilters.d.mts +12 -0
  73. package/filters/TimeTableFilters.mjs +6 -0
  74. package/kotlin-kotlin-stdlib.mjs +4 -4
  75. package/kotlinx-coroutines-core.mjs +1 -1
  76. package/model/ApplicationSettings.d.mts +87 -0
  77. package/model/ApplicationSettings.mjs +256 -0
  78. package/model/DocumentTemplate.d.mts +35 -0
  79. package/model/DocumentTemplate.mjs +162 -0
  80. package/model/EntityReference.d.mts +10 -0
  81. package/model/EntityReference.mjs +46 -0
  82. package/model/EntityTemplate.d.mts +16 -0
  83. package/model/EntityTemplate.mjs +81 -0
  84. package/model/Keyword.d.mts +23 -0
  85. package/model/Keyword.mjs +99 -0
  86. package/model/ListOfIds.d.mts +6 -0
  87. package/model/ListOfIds.mjs +28 -0
  88. package/model/MedicalLocation.d.mts +28 -0
  89. package/model/MedicalLocation.mjs +116 -0
  90. package/model/Tarification.d.mts +50 -0
  91. package/model/Tarification.mjs +178 -0
  92. package/model/TimeTable.d.mts +25 -0
  93. package/model/TimeTable.mjs +111 -0
  94. package/model/base/AppendixType.d.mts +5 -0
  95. package/model/base/AppendixType.mjs +7 -0
  96. package/model/base/CodeFlag.d.mts +80 -0
  97. package/model/base/CodeFlag.mjs +82 -0
  98. package/model/base/ReportVersion.d.mts +3 -0
  99. package/model/base/ReportVersion.mjs +5 -0
  100. package/model/embed/KeywordSubword.d.mts +8 -0
  101. package/model/embed/KeywordSubword.mjs +35 -0
  102. package/model/embed/LetterValue.d.mts +9 -0
  103. package/model/embed/LetterValue.mjs +47 -0
  104. package/model/embed/Periodicity.d.mts +8 -0
  105. package/model/embed/Periodicity.mjs +36 -0
  106. package/model/embed/TimeTableHour.d.mts +7 -0
  107. package/model/embed/TimeTableHour.mjs +35 -0
  108. package/model/embed/TimeTableItem.d.mts +19 -0
  109. package/model/embed/TimeTableItem.mjs +96 -0
  110. package/model/embed/Valorisation.d.mts +56 -0
  111. package/model/embed/Valorisation.mjs +188 -0
  112. package/package.json +1 -1
@@ -0,0 +1,188 @@
1
+ // auto-generated file
2
+ import { expectArray, expectMap, expectNumber, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
3
+ export class DecryptedValorisation {
4
+ constructor(partial) {
5
+ this.startOfValidity = undefined;
6
+ this.endOfValidity = undefined;
7
+ this.predicate = undefined;
8
+ this.reference = undefined;
9
+ this.totalAmount = undefined;
10
+ this.reimbursement = undefined;
11
+ this.patientIntervention = undefined;
12
+ this.doctorSupplement = undefined;
13
+ this.vat = undefined;
14
+ this.label = {};
15
+ this.encryptedSelf = undefined;
16
+ this.isEncrypted = false;
17
+ if (partial.isEncrypted !== undefined && partial.isEncrypted !== false)
18
+ throw new Error('partial.isEncrypted must be undefined or false');
19
+ if ('startOfValidity' in partial)
20
+ this.startOfValidity = partial.startOfValidity;
21
+ if ('endOfValidity' in partial)
22
+ this.endOfValidity = partial.endOfValidity;
23
+ if ('predicate' in partial)
24
+ this.predicate = partial.predicate;
25
+ if ('reference' in partial)
26
+ this.reference = partial.reference;
27
+ if ('totalAmount' in partial)
28
+ this.totalAmount = partial.totalAmount;
29
+ if ('reimbursement' in partial)
30
+ this.reimbursement = partial.reimbursement;
31
+ if ('patientIntervention' in partial)
32
+ this.patientIntervention = partial.patientIntervention;
33
+ if ('doctorSupplement' in partial)
34
+ this.doctorSupplement = partial.doctorSupplement;
35
+ if ('vat' in partial)
36
+ this.vat = partial.vat;
37
+ if ('label' in partial)
38
+ this.label = partial.label;
39
+ if ('encryptedSelf' in partial)
40
+ this.encryptedSelf = partial.encryptedSelf;
41
+ }
42
+ toJSON() {
43
+ const res = {};
44
+ if (this.startOfValidity != undefined)
45
+ res['startOfValidity'] = this.startOfValidity;
46
+ if (this.endOfValidity != undefined)
47
+ res['endOfValidity'] = this.endOfValidity;
48
+ if (this.predicate != undefined)
49
+ res['predicate'] = this.predicate;
50
+ if (this.reference != undefined)
51
+ res['reference'] = this.reference.map((x0) => x0);
52
+ if (this.totalAmount != undefined)
53
+ res['totalAmount'] = this.totalAmount;
54
+ if (this.reimbursement != undefined)
55
+ res['reimbursement'] = this.reimbursement;
56
+ if (this.patientIntervention != undefined)
57
+ res['patientIntervention'] = this.patientIntervention;
58
+ if (this.doctorSupplement != undefined)
59
+ res['doctorSupplement'] = this.doctorSupplement;
60
+ if (this.vat != undefined)
61
+ res['vat'] = this.vat;
62
+ if (this.label != undefined)
63
+ res['label'] = Object.fromEntries(Object.entries(this.label).map(([k0, v0]) => [k0, v0]));
64
+ if (this.encryptedSelf != undefined)
65
+ res['encryptedSelf'] = this.encryptedSelf;
66
+ res['isEncrypted'] = false;
67
+ return res;
68
+ }
69
+ static fromJSON(json, ignoreUnknownKeys = false, path = ['DecryptedValorisation']) {
70
+ if (typeof json != 'object')
71
+ throw new Error(`Expected json object at path ${path.join("")}`);
72
+ const jCpy = Object.assign({}, json);
73
+ if (extractEntry(jCpy, "isEncrypted", true, path) !== false)
74
+ throw new Error(`Unexpected value for ${path.join("")} isEncrypted marker, should be false. The provided json doesn't represent a DecryptedValorisation`);
75
+ const res = new DecryptedValorisation({
76
+ startOfValidity: expectNumber(extractEntry(jCpy, 'startOfValidity', false, path), true, true, [...path, ".startOfValidity"]),
77
+ endOfValidity: expectNumber(extractEntry(jCpy, 'endOfValidity', false, path), true, true, [...path, ".endOfValidity"]),
78
+ predicate: expectString(extractEntry(jCpy, 'predicate', false, path), true, [...path, ".predicate"]),
79
+ reference: expectArray(extractEntry(jCpy, 'reference', false, path), true, [...path, ".reference"], (x0, p0) => expectNumber(x0, false, true, p0)),
80
+ totalAmount: expectNumber(extractEntry(jCpy, 'totalAmount', false, path), true, false, [...path, ".totalAmount"]),
81
+ reimbursement: expectNumber(extractEntry(jCpy, 'reimbursement', false, path), true, false, [...path, ".reimbursement"]),
82
+ patientIntervention: expectNumber(extractEntry(jCpy, 'patientIntervention', false, path), true, false, [...path, ".patientIntervention"]),
83
+ doctorSupplement: expectNumber(extractEntry(jCpy, 'doctorSupplement', false, path), true, false, [...path, ".doctorSupplement"]),
84
+ vat: expectNumber(extractEntry(jCpy, 'vat', false, path), true, false, [...path, ".vat"]),
85
+ label: expectMap(extractEntry(jCpy, 'label', false, path), true, [...path, ".label"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
86
+ encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
87
+ });
88
+ if (!ignoreUnknownKeys) {
89
+ const unused = Object.keys(jCpy);
90
+ if (unused.length > 0)
91
+ throw new Error(`Unexpected key(s) for json object DecryptedValorisation at path ${path.join("")}: ${unused}`);
92
+ }
93
+ return res;
94
+ }
95
+ }
96
+ export class EncryptedValorisation {
97
+ constructor(partial) {
98
+ this.startOfValidity = undefined;
99
+ this.endOfValidity = undefined;
100
+ this.predicate = undefined;
101
+ this.reference = undefined;
102
+ this.totalAmount = undefined;
103
+ this.reimbursement = undefined;
104
+ this.patientIntervention = undefined;
105
+ this.doctorSupplement = undefined;
106
+ this.vat = undefined;
107
+ this.label = {};
108
+ this.encryptedSelf = undefined;
109
+ this.isEncrypted = true;
110
+ if (partial.isEncrypted !== undefined && partial.isEncrypted !== true)
111
+ throw new Error('partial.isEncrypted must be undefined or true');
112
+ if ('startOfValidity' in partial)
113
+ this.startOfValidity = partial.startOfValidity;
114
+ if ('endOfValidity' in partial)
115
+ this.endOfValidity = partial.endOfValidity;
116
+ if ('predicate' in partial)
117
+ this.predicate = partial.predicate;
118
+ if ('reference' in partial)
119
+ this.reference = partial.reference;
120
+ if ('totalAmount' in partial)
121
+ this.totalAmount = partial.totalAmount;
122
+ if ('reimbursement' in partial)
123
+ this.reimbursement = partial.reimbursement;
124
+ if ('patientIntervention' in partial)
125
+ this.patientIntervention = partial.patientIntervention;
126
+ if ('doctorSupplement' in partial)
127
+ this.doctorSupplement = partial.doctorSupplement;
128
+ if ('vat' in partial)
129
+ this.vat = partial.vat;
130
+ if ('label' in partial)
131
+ this.label = partial.label;
132
+ if ('encryptedSelf' in partial)
133
+ this.encryptedSelf = partial.encryptedSelf;
134
+ }
135
+ toJSON() {
136
+ const res = {};
137
+ if (this.startOfValidity != undefined)
138
+ res['startOfValidity'] = this.startOfValidity;
139
+ if (this.endOfValidity != undefined)
140
+ res['endOfValidity'] = this.endOfValidity;
141
+ if (this.predicate != undefined)
142
+ res['predicate'] = this.predicate;
143
+ if (this.reference != undefined)
144
+ res['reference'] = this.reference.map((x0) => x0);
145
+ if (this.totalAmount != undefined)
146
+ res['totalAmount'] = this.totalAmount;
147
+ if (this.reimbursement != undefined)
148
+ res['reimbursement'] = this.reimbursement;
149
+ if (this.patientIntervention != undefined)
150
+ res['patientIntervention'] = this.patientIntervention;
151
+ if (this.doctorSupplement != undefined)
152
+ res['doctorSupplement'] = this.doctorSupplement;
153
+ if (this.vat != undefined)
154
+ res['vat'] = this.vat;
155
+ if (this.label != undefined)
156
+ res['label'] = Object.fromEntries(Object.entries(this.label).map(([k0, v0]) => [k0, v0]));
157
+ if (this.encryptedSelf != undefined)
158
+ res['encryptedSelf'] = this.encryptedSelf;
159
+ res['isEncrypted'] = true;
160
+ return res;
161
+ }
162
+ static fromJSON(json, ignoreUnknownKeys = false, path = ['EncryptedValorisation']) {
163
+ if (typeof json != 'object')
164
+ throw new Error(`Expected json object at path ${path.join("")}`);
165
+ const jCpy = Object.assign({}, json);
166
+ if (extractEntry(jCpy, "isEncrypted", true, path) !== true)
167
+ throw new Error(`Unexpected value for ${path.join("")} isEncrypted marker, should be true. The provided json doesn't represent a EncryptedValorisation`);
168
+ const res = new EncryptedValorisation({
169
+ startOfValidity: expectNumber(extractEntry(jCpy, 'startOfValidity', false, path), true, true, [...path, ".startOfValidity"]),
170
+ endOfValidity: expectNumber(extractEntry(jCpy, 'endOfValidity', false, path), true, true, [...path, ".endOfValidity"]),
171
+ predicate: expectString(extractEntry(jCpy, 'predicate', false, path), true, [...path, ".predicate"]),
172
+ reference: expectArray(extractEntry(jCpy, 'reference', false, path), true, [...path, ".reference"], (x0, p0) => expectNumber(x0, false, true, p0)),
173
+ totalAmount: expectNumber(extractEntry(jCpy, 'totalAmount', false, path), true, false, [...path, ".totalAmount"]),
174
+ reimbursement: expectNumber(extractEntry(jCpy, 'reimbursement', false, path), true, false, [...path, ".reimbursement"]),
175
+ patientIntervention: expectNumber(extractEntry(jCpy, 'patientIntervention', false, path), true, false, [...path, ".patientIntervention"]),
176
+ doctorSupplement: expectNumber(extractEntry(jCpy, 'doctorSupplement', false, path), true, false, [...path, ".doctorSupplement"]),
177
+ vat: expectNumber(extractEntry(jCpy, 'vat', false, path), true, false, [...path, ".vat"]),
178
+ label: expectMap(extractEntry(jCpy, 'label', false, path), true, [...path, ".label"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
179
+ encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
180
+ });
181
+ if (!ignoreUnknownKeys) {
182
+ const unused = Object.keys(jCpy);
183
+ if (unused.length > 0)
184
+ throw new Error(`Unexpected key(s) for json object EncryptedValorisation at path ${path.join("")}: ${unused}`);
185
+ }
186
+ return res;
187
+ }
188
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/cardinal-sdk",
3
- "version": "3.0.0-PREVIEW.7",
3
+ "version": "3.0.0-PREVIEW.8",
4
4
  "main": "cardinal-sdk-ts.mjs",
5
5
  "types": "cardinal-sdk-ts.d.mts",
6
6
  "devDependencies": {