@icure/cardinal-sdk 2.0.0-PREVIEW-13 → 2.0.0-PREVIEW-15

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.
@@ -1,3 +1,5 @@
1
+ // noinspection TypeScriptCheckImport
2
+ // @ts-ignore
1
3
  export var AesKeySize;
2
4
  (function (AesKeySize) {
3
5
  AesKeySize[AesKeySize["Aes128"] = 128] = "Aes128";
@@ -37,6 +37,11 @@ if (typeof Array.prototype.fill === 'undefined') {
37
37
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
38
38
  }
39
39
  });
40
+ if (typeof Math.log10 === 'undefined') {
41
+ Math.log10 = function (x) {
42
+ return Math.log(x) * Math.LOG10E;
43
+ };
44
+ }
40
45
  if (typeof Math.clz32 === 'undefined') {
41
46
  Math.clz32 = function (log, LN2) {
42
47
  return function (x) {
@@ -48,11 +53,6 @@ if (typeof Math.clz32 === 'undefined') {
48
53
  };
49
54
  }(Math.log, Math.LN2);
50
55
  }
51
- if (typeof Math.log10 === 'undefined') {
52
- Math.log10 = function (x) {
53
- return Math.log(x) * Math.LOG10E;
54
- };
55
- }
56
56
  if (typeof String.prototype.startsWith === 'undefined') {
57
57
  Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
58
58
  position = position || 0;
@@ -23,12 +23,12 @@ export declare class Agenda implements StoredDocument, ICureDocument<string> {
23
23
  name: string | undefined;
24
24
  userId: string | undefined;
25
25
  zoneId: string | undefined;
26
- lockCalendarItemsBeforeInMinutes: number | undefined;
27
26
  rights: Array<Right>;
28
27
  userRights: {
29
28
  [key: string]: UserAccessLevel;
30
29
  };
31
30
  slottingAlgorithm: AgendaSlottingAlgorithm | undefined;
31
+ publicBookingQuota: number | undefined;
32
32
  properties: Array<DecryptedPropertyStub>;
33
33
  schedules: Array<ResourceGroupAllocationSchedule>;
34
34
  constructor(partial: Partial<Agenda>);
package/model/Agenda.mjs CHANGED
@@ -18,10 +18,10 @@ export class Agenda {
18
18
  this.name = undefined;
19
19
  this.userId = undefined;
20
20
  this.zoneId = undefined;
21
- this.lockCalendarItemsBeforeInMinutes = undefined;
22
21
  this.rights = [];
23
22
  this.userRights = {};
24
23
  this.slottingAlgorithm = undefined;
24
+ this.publicBookingQuota = undefined;
25
25
  this.properties = [];
26
26
  this.schedules = [];
27
27
  this.id = (_a = partial.id) !== null && _a !== void 0 ? _a : randomUuid();
@@ -55,14 +55,14 @@ export class Agenda {
55
55
  this.userId = partial.userId;
56
56
  if ('zoneId' in partial)
57
57
  this.zoneId = partial.zoneId;
58
- if ('lockCalendarItemsBeforeInMinutes' in partial)
59
- this.lockCalendarItemsBeforeInMinutes = partial.lockCalendarItemsBeforeInMinutes;
60
58
  if ('rights' in partial && partial.rights !== undefined)
61
59
  this.rights = partial.rights;
62
60
  if ('userRights' in partial && partial.userRights !== undefined)
63
61
  this.userRights = partial.userRights;
64
62
  if ('slottingAlgorithm' in partial)
65
63
  this.slottingAlgorithm = partial.slottingAlgorithm;
64
+ if ('publicBookingQuota' in partial)
65
+ this.publicBookingQuota = partial.publicBookingQuota;
66
66
  if ('properties' in partial && partial.properties !== undefined)
67
67
  this.properties = partial.properties;
68
68
  if ('schedules' in partial && partial.schedules !== undefined)
@@ -14,7 +14,7 @@ export declare class DecryptedCalendarItemTag {
14
14
  userName: string | undefined;
15
15
  encryptedSelf: Base64String | undefined;
16
16
  readonly isEncrypted: false;
17
- constructor(partial: Partial<DecryptedCalendarItemTag> & Pick<DecryptedCalendarItemTag, "encryptedSelf">);
17
+ constructor(partial: Partial<DecryptedCalendarItemTag>);
18
18
  }
19
19
  export declare class EncryptedCalendarItemTag {
20
20
  code: string | undefined;
@@ -23,5 +23,5 @@ export declare class EncryptedCalendarItemTag {
23
23
  userName: string | undefined;
24
24
  encryptedSelf: Base64String | undefined;
25
25
  readonly isEncrypted: true;
26
- constructor(partial: Partial<EncryptedCalendarItemTag> & Pick<EncryptedCalendarItemTag, "encryptedSelf">);
26
+ constructor(partial: Partial<EncryptedCalendarItemTag>);
27
27
  }
@@ -4,6 +4,7 @@ export class DecryptedCalendarItemTag {
4
4
  this.date = undefined;
5
5
  this.userId = undefined;
6
6
  this.userName = undefined;
7
+ this.encryptedSelf = undefined;
7
8
  this.isEncrypted = false;
8
9
  if (partial.isEncrypted !== undefined && partial.isEncrypted !== false)
9
10
  throw new Error('partial.isEncrypted must be undefined or false');
@@ -15,7 +16,8 @@ export class DecryptedCalendarItemTag {
15
16
  this.userId = partial.userId;
16
17
  if ('userName' in partial)
17
18
  this.userName = partial.userName;
18
- this.encryptedSelf = partial.encryptedSelf;
19
+ if ('encryptedSelf' in partial)
20
+ this.encryptedSelf = partial.encryptedSelf;
19
21
  }
20
22
  }
21
23
  export class EncryptedCalendarItemTag {
@@ -24,6 +26,7 @@ export class EncryptedCalendarItemTag {
24
26
  this.date = undefined;
25
27
  this.userId = undefined;
26
28
  this.userName = undefined;
29
+ this.encryptedSelf = undefined;
27
30
  this.isEncrypted = true;
28
31
  if (partial.isEncrypted !== undefined && partial.isEncrypted !== true)
29
32
  throw new Error('partial.isEncrypted must be undefined or true');
@@ -35,6 +38,7 @@ export class EncryptedCalendarItemTag {
35
38
  this.userId = partial.userId;
36
39
  if ('userName' in partial)
37
40
  this.userName = partial.userName;
38
- this.encryptedSelf = partial.encryptedSelf;
41
+ if ('encryptedSelf' in partial)
42
+ this.encryptedSelf = partial.encryptedSelf;
39
43
  }
40
44
  }
@@ -16,7 +16,7 @@ export declare class DecryptedEmploymentInfo {
16
16
  employer: Employer | undefined;
17
17
  encryptedSelf: Base64String | undefined;
18
18
  readonly isEncrypted: false;
19
- constructor(partial: Partial<DecryptedEmploymentInfo> & Pick<DecryptedEmploymentInfo, "encryptedSelf">);
19
+ constructor(partial: Partial<DecryptedEmploymentInfo>);
20
20
  }
21
21
  export declare class EncryptedEmploymentInfo {
22
22
  startDate: number | undefined;
@@ -25,5 +25,5 @@ export declare class EncryptedEmploymentInfo {
25
25
  employer: Employer | undefined;
26
26
  encryptedSelf: Base64String | undefined;
27
27
  readonly isEncrypted: true;
28
- constructor(partial: Partial<EncryptedEmploymentInfo> & Pick<EncryptedEmploymentInfo, "encryptedSelf">);
28
+ constructor(partial: Partial<EncryptedEmploymentInfo>);
29
29
  }
@@ -4,6 +4,7 @@ export class DecryptedEmploymentInfo {
4
4
  this.endDate = undefined;
5
5
  this.professionType = undefined;
6
6
  this.employer = undefined;
7
+ this.encryptedSelf = undefined;
7
8
  this.isEncrypted = false;
8
9
  if (partial.isEncrypted !== undefined && partial.isEncrypted !== false)
9
10
  throw new Error('partial.isEncrypted must be undefined or false');
@@ -15,7 +16,8 @@ export class DecryptedEmploymentInfo {
15
16
  this.professionType = partial.professionType;
16
17
  if ('employer' in partial)
17
18
  this.employer = partial.employer;
18
- this.encryptedSelf = partial.encryptedSelf;
19
+ if ('encryptedSelf' in partial)
20
+ this.encryptedSelf = partial.encryptedSelf;
19
21
  }
20
22
  }
21
23
  export class EncryptedEmploymentInfo {
@@ -24,6 +26,7 @@ export class EncryptedEmploymentInfo {
24
26
  this.endDate = undefined;
25
27
  this.professionType = undefined;
26
28
  this.employer = undefined;
29
+ this.encryptedSelf = undefined;
27
30
  this.isEncrypted = true;
28
31
  if (partial.isEncrypted !== undefined && partial.isEncrypted !== true)
29
32
  throw new Error('partial.isEncrypted must be undefined or true');
@@ -35,6 +38,7 @@ export class EncryptedEmploymentInfo {
35
38
  this.professionType = partial.professionType;
36
39
  if ('employer' in partial)
37
40
  this.employer = partial.employer;
38
- this.encryptedSelf = partial.encryptedSelf;
41
+ if ('encryptedSelf' in partial)
42
+ this.encryptedSelf = partial.encryptedSelf;
39
43
  }
40
44
  }
@@ -56,6 +56,9 @@ export interface InvoicingCode extends Encryptable {
56
56
  cancelPatientInterventionReason: number | undefined;
57
57
  status: number | undefined;
58
58
  codeLabel: string | undefined;
59
+ options: {
60
+ [key: string]: string;
61
+ };
59
62
  readonly isEncrypted: boolean;
60
63
  }
61
64
  export declare class DecryptedInvoicingCode {
@@ -113,6 +116,9 @@ export declare class DecryptedInvoicingCode {
113
116
  cancelPatientInterventionReason: number | undefined;
114
117
  status: number | undefined;
115
118
  codeLabel: string | undefined;
119
+ options: {
120
+ [key: string]: string;
121
+ };
116
122
  encryptedSelf: Base64String | undefined;
117
123
  readonly isEncrypted: false;
118
124
  constructor(partial: Partial<DecryptedInvoicingCode> & Pick<DecryptedInvoicingCode, "id">);
@@ -172,6 +178,9 @@ export declare class EncryptedInvoicingCode {
172
178
  cancelPatientInterventionReason: number | undefined;
173
179
  status: number | undefined;
174
180
  codeLabel: string | undefined;
181
+ options: {
182
+ [key: string]: string;
183
+ };
175
184
  encryptedSelf: Base64String | undefined;
176
185
  readonly isEncrypted: true;
177
186
  constructor(partial: Partial<EncryptedInvoicingCode> & Pick<EncryptedInvoicingCode, "id">);
@@ -53,6 +53,7 @@ export class DecryptedInvoicingCode {
53
53
  this.cancelPatientInterventionReason = undefined;
54
54
  this.status = undefined;
55
55
  this.codeLabel = undefined;
56
+ this.options = {};
56
57
  this.encryptedSelf = undefined;
57
58
  this.isEncrypted = false;
58
59
  if (partial.isEncrypted !== undefined && partial.isEncrypted !== false)
@@ -164,6 +165,8 @@ export class DecryptedInvoicingCode {
164
165
  this.status = partial.status;
165
166
  if ('codeLabel' in partial)
166
167
  this.codeLabel = partial.codeLabel;
168
+ if ('options' in partial && partial.options !== undefined)
169
+ this.options = partial.options;
167
170
  if ('encryptedSelf' in partial)
168
171
  this.encryptedSelf = partial.encryptedSelf;
169
172
  }
@@ -223,6 +226,7 @@ export class EncryptedInvoicingCode {
223
226
  this.cancelPatientInterventionReason = undefined;
224
227
  this.status = undefined;
225
228
  this.codeLabel = undefined;
229
+ this.options = {};
226
230
  this.encryptedSelf = undefined;
227
231
  this.isEncrypted = true;
228
232
  if (partial.isEncrypted !== undefined && partial.isEncrypted !== true)
@@ -334,6 +338,8 @@ export class EncryptedInvoicingCode {
334
338
  this.status = partial.status;
335
339
  if ('codeLabel' in partial)
336
340
  this.codeLabel = partial.codeLabel;
341
+ if ('options' in partial && partial.options !== undefined)
342
+ this.options = partial.options;
337
343
  if ('encryptedSelf' in partial)
338
344
  this.encryptedSelf = partial.encryptedSelf;
339
345
  }
@@ -15,7 +15,7 @@ export declare class DecryptedSchoolingInfo {
15
15
  typeOfEducation: CodeStub | undefined;
16
16
  encryptedSelf: Base64String | undefined;
17
17
  readonly isEncrypted: false;
18
- constructor(partial: Partial<DecryptedSchoolingInfo> & Pick<DecryptedSchoolingInfo, "encryptedSelf">);
18
+ constructor(partial: Partial<DecryptedSchoolingInfo>);
19
19
  }
20
20
  export declare class EncryptedSchoolingInfo {
21
21
  startDate: number | undefined;
@@ -24,5 +24,5 @@ export declare class EncryptedSchoolingInfo {
24
24
  typeOfEducation: CodeStub | undefined;
25
25
  encryptedSelf: Base64String | undefined;
26
26
  readonly isEncrypted: true;
27
- constructor(partial: Partial<EncryptedSchoolingInfo> & Pick<EncryptedSchoolingInfo, "encryptedSelf">);
27
+ constructor(partial: Partial<EncryptedSchoolingInfo>);
28
28
  }
@@ -4,6 +4,7 @@ export class DecryptedSchoolingInfo {
4
4
  this.endDate = undefined;
5
5
  this.school = undefined;
6
6
  this.typeOfEducation = undefined;
7
+ this.encryptedSelf = undefined;
7
8
  this.isEncrypted = false;
8
9
  if (partial.isEncrypted !== undefined && partial.isEncrypted !== false)
9
10
  throw new Error('partial.isEncrypted must be undefined or false');
@@ -15,7 +16,8 @@ export class DecryptedSchoolingInfo {
15
16
  this.school = partial.school;
16
17
  if ('typeOfEducation' in partial)
17
18
  this.typeOfEducation = partial.typeOfEducation;
18
- this.encryptedSelf = partial.encryptedSelf;
19
+ if ('encryptedSelf' in partial)
20
+ this.encryptedSelf = partial.encryptedSelf;
19
21
  }
20
22
  }
21
23
  export class EncryptedSchoolingInfo {
@@ -24,6 +26,7 @@ export class EncryptedSchoolingInfo {
24
26
  this.endDate = undefined;
25
27
  this.school = undefined;
26
28
  this.typeOfEducation = undefined;
29
+ this.encryptedSelf = undefined;
27
30
  this.isEncrypted = true;
28
31
  if (partial.isEncrypted !== undefined && partial.isEncrypted !== true)
29
32
  throw new Error('partial.isEncrypted must be undefined or true');
@@ -35,6 +38,7 @@ export class EncryptedSchoolingInfo {
35
38
  this.school = partial.school;
36
39
  if ('typeOfEducation' in partial)
37
40
  this.typeOfEducation = partial.typeOfEducation;
38
- this.encryptedSelf = partial.encryptedSelf;
41
+ if ('encryptedSelf' in partial)
42
+ this.encryptedSelf = partial.encryptedSelf;
39
43
  }
40
44
  }
@@ -8,4 +8,4 @@ import { NumberField } from './NumberField.mjs';
8
8
  import { RadioButton } from './RadioButton.mjs';
9
9
  import { TextField } from './TextField.mjs';
10
10
  import { TimePicker } from './TimePicker.mjs';
11
- export type Field = DropdownField | MultipleChoice | RadioButton | TimePicker | TextField | DatePicker | CheckBox | DateTimePicker | MeasureField | NumberField;
11
+ export type Field = DropdownField | RadioButton | DatePicker | TimePicker | DateTimePicker | NumberField | TextField | CheckBox | MultipleChoice | MeasureField;
@@ -3,4 +3,4 @@ import { AndPredicate } from './AndPredicate.mjs';
3
3
  import { KeyValuePredicate } from './KeyValuePredicate.mjs';
4
4
  import { NotPredicate } from './NotPredicate.mjs';
5
5
  import { OrPredicate } from './OrPredicate.mjs';
6
- export type Predicate = OrPredicate | NotPredicate | AlwaysPredicate | AndPredicate | KeyValuePredicate;
6
+ export type Predicate = NotPredicate | AndPredicate | AlwaysPredicate | OrPredicate | KeyValuePredicate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icure/cardinal-sdk",
3
- "version": "2.0.0-PREVIEW-13",
3
+ "version": "2.0.0-PREVIEW-15",
4
4
  "main": "cardinal-sdk-ts.mjs",
5
5
  "types": "cardinal-sdk-ts.d.mts",
6
6
  "devDependencies": {