@icure/cardinal-sdk 2.4.4 → 2.5.0
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/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/api/RoleApi.d.mts +6 -4
- package/cardinal-sdk-ts.mjs +39245 -39148
- package/cardinal-sdk.mjs +50923 -50485
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-coroutines-core.mjs +7 -7
- package/model/Agenda.d.mts +4 -4
- package/model/Agenda.mjs +4 -4
- package/model/CalendarItem.d.mts +9 -9
- package/model/CalendarItem.mjs +6 -6
- package/model/Group.d.mts +1 -1
- package/model/Group.mjs +1 -1
- package/model/Patient.d.mts +3 -3
- package/model/Patient.mjs +3 -3
- package/model/Role.d.mts +16 -6
- package/model/Role.mjs +20 -5
- package/model/base/CryptoActor.mjs +2 -2
- package/model/embed/Partnership.d.mts +60 -3
- package/model/embed/Partnership.mjs +85 -4
- package/model/embed/Service.d.mts +306 -0
- package/model/embed/Service.mjs +214 -0
- package/model/embed/form/template/Field.d.mts +1 -1
- package/model/embed/form/template/StructureElement.d.mts +1 -1
- package/model/embed/form/template/StructureElement.mjs +7 -7
- package/model/filter/predicate/Predicate.d.mts +1 -1
- package/model/filter/predicate/Predicate.mjs +3 -3
- package/package.json +1 -1
|
@@ -367,7 +367,7 @@ function addFormatStructureForDate(structure) {
|
|
|
367
367
|
function addFormatStructureForTime(structure) {
|
|
368
368
|
this.u3z(structure);
|
|
369
369
|
}
|
|
370
|
-
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder,
|
|
370
|
+
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
|
|
371
371
|
initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder]);
|
|
372
372
|
initMetadataForClass(LocalDateTimeFormat, 'LocalDateTimeFormat', VOID, AbstractDateTimeFormat);
|
|
373
373
|
function set_fractionOfSecond(value) {
|
package/api/RoleApi.d.mts
CHANGED
|
@@ -36,26 +36,28 @@ export interface RoleApi {
|
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* Creates a new role.
|
|
39
|
-
* @param name the [Role.name].
|
|
39
|
+
* @param name the [Role.name]. It can only contain uppercase characters A->Z, underscores and cannot be longer than 40 characters.
|
|
40
40
|
* @param permissions the set of permissions that this role will grant.
|
|
41
|
+
* @param description a short description (max 300 characters) for the role.
|
|
41
42
|
* @param inheritsUpTo the maximum level in the downward group hierarchy where this role can be accessed (null = any child group at
|
|
42
43
|
* any level, 0 = only the current group can access this role, 1 = only this group and children groups can access this role, etc...)
|
|
43
44
|
* @return the created role.
|
|
44
45
|
*/
|
|
45
|
-
createRole(name: string, permissions: Array<string>, options?: {
|
|
46
|
+
createRole(name: string, permissions: Array<string>, description: string | undefined, options?: {
|
|
46
47
|
inheritsUpTo?: number | undefined;
|
|
47
48
|
}): Promise<Role>;
|
|
48
49
|
/**
|
|
49
50
|
*
|
|
50
51
|
* Creates a new role in a specific group.
|
|
51
52
|
* @param groupId the id of the group.
|
|
52
|
-
* @param name the [Role.name].
|
|
53
|
+
* @param name the [Role.name]. It can only contain uppercase characters A->Z, underscores and cannot be longer than 40 characters.
|
|
54
|
+
* @param description a short description (max 300 characters) for the role.
|
|
53
55
|
* @param permissions the set of permissions that this role will grant.
|
|
54
56
|
* @param inheritsUpTo the maximum level in the downward group hierarchy where this role can be accessed (null = any child group at
|
|
55
57
|
* any level, 0 = only the current group can access this role, 1 = only this group and children groups can access this role, etc...)
|
|
56
58
|
* @return the created role.
|
|
57
59
|
*/
|
|
58
|
-
createRoleInGroup(groupId: string, name: string, permissions: Array<string>, options?: {
|
|
60
|
+
createRoleInGroup(groupId: string, name: string, permissions: Array<string>, description: string | undefined, options?: {
|
|
59
61
|
inheritsUpTo?: number | undefined;
|
|
60
62
|
}): Promise<Role>;
|
|
61
63
|
/**
|