@cirrobio/api-client 0.12.13 → 0.12.14
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/README.md +1 -1
- package/dist/esm/models/UpdateUserRequest.d.ts +9 -2
- package/dist/esm/models/UpdateUserRequest.js +2 -0
- package/dist/esm/models/User.d.ts +6 -0
- package/dist/esm/models/User.js +3 -0
- package/dist/esm/models/UserDetail.d.ts +8 -1
- package/dist/esm/models/UserDetail.js +4 -2
- package/dist/models/UpdateUserRequest.d.ts +9 -2
- package/dist/models/UpdateUserRequest.js +2 -0
- package/dist/models/User.d.ts +6 -0
- package/dist/models/User.js +3 -0
- package/dist/models/UserDetail.d.ts +8 -1
- package/dist/models/UserDetail.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,11 +59,18 @@ export interface UpdateUserRequest {
|
|
|
59
59
|
*/
|
|
60
60
|
settings?: UserSettings | null;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Global roles the user belongs to, only editable by administrators
|
|
63
63
|
* @type {Array<string>}
|
|
64
64
|
* @memberof UpdateUserRequest
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
globalRoles?: Array<string> | null;
|
|
67
|
+
/**
|
|
68
|
+
* Groups the user belongs to, only editable by administrators. Replaced by global roles
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof UpdateUserRequest
|
|
71
|
+
* @deprecated
|
|
72
|
+
*/
|
|
73
|
+
groups?: Array<string> | null;
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
69
76
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
@@ -37,6 +37,7 @@ export function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'jobTitle': !exists(json, 'jobTitle') ? undefined : json['jobTitle'],
|
|
38
38
|
'organization': !exists(json, 'organization') ? undefined : json['organization'],
|
|
39
39
|
'settings': !exists(json, 'settings') ? undefined : UserSettingsFromJSON(json['settings']),
|
|
40
|
+
'globalRoles': !exists(json, 'globalRoles') ? undefined : json['globalRoles'],
|
|
40
41
|
'groups': !exists(json, 'groups') ? undefined : json['groups'],
|
|
41
42
|
};
|
|
42
43
|
}
|
|
@@ -55,6 +56,7 @@ export function UpdateUserRequestToJSON(value) {
|
|
|
55
56
|
'jobTitle': value.jobTitle,
|
|
56
57
|
'organization': value.organization,
|
|
57
58
|
'settings': UserSettingsToJSON(value.settings),
|
|
59
|
+
'globalRoles': value.globalRoles,
|
|
58
60
|
'groups': value.groups,
|
|
59
61
|
};
|
|
60
62
|
}
|
package/dist/esm/models/User.js
CHANGED
|
@@ -21,6 +21,7 @@ export function instanceOfUser(value) {
|
|
|
21
21
|
isInstance = isInstance && "organization" in value;
|
|
22
22
|
isInstance = isInstance && "department" in value;
|
|
23
23
|
isInstance = isInstance && "jobTitle" in value;
|
|
24
|
+
isInstance = isInstance && "globalRoles" in value;
|
|
24
25
|
return isInstance;
|
|
25
26
|
}
|
|
26
27
|
export function UserFromJSON(json) {
|
|
@@ -36,6 +37,7 @@ export function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'organization': json['organization'],
|
|
37
38
|
'department': json['department'],
|
|
38
39
|
'jobTitle': json['jobTitle'],
|
|
40
|
+
'globalRoles': json['globalRoles'],
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
export function UserToJSON(value) {
|
|
@@ -51,5 +53,6 @@ export function UserToJSON(value) {
|
|
|
51
53
|
'organization': value.organization,
|
|
52
54
|
'department': value.department,
|
|
53
55
|
'jobTitle': value.jobTitle,
|
|
56
|
+
'globalRoles': value.globalRoles,
|
|
54
57
|
};
|
|
55
58
|
}
|
|
@@ -88,7 +88,14 @@ export interface UserDetail {
|
|
|
88
88
|
* @type {Array<string>}
|
|
89
89
|
* @memberof UserDetail
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
globalRoles: Array<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Replaced by globalRoles.
|
|
94
|
+
* @type {Array<string>}
|
|
95
|
+
* @memberof UserDetail
|
|
96
|
+
* @deprecated
|
|
97
|
+
*/
|
|
98
|
+
groups?: Array<string>;
|
|
92
99
|
/**
|
|
93
100
|
*
|
|
94
101
|
* @type {UserSettings}
|
|
@@ -28,7 +28,7 @@ export function instanceOfUserDetail(value) {
|
|
|
28
28
|
isInstance = isInstance && "department" in value;
|
|
29
29
|
isInstance = isInstance && "invitedBy" in value;
|
|
30
30
|
isInstance = isInstance && "projectAssignments" in value;
|
|
31
|
-
isInstance = isInstance && "
|
|
31
|
+
isInstance = isInstance && "globalRoles" in value;
|
|
32
32
|
isInstance = isInstance && "settings" in value;
|
|
33
33
|
return isInstance;
|
|
34
34
|
}
|
|
@@ -51,7 +51,8 @@ export function UserDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'signUpTime': !exists(json, 'signUpTime') ? undefined : (json['signUpTime'] === null ? null : new Date(json['signUpTime'])),
|
|
52
52
|
'lastSignedIn': !exists(json, 'lastSignedIn') ? undefined : (json['lastSignedIn'] === null ? null : new Date(json['lastSignedIn'])),
|
|
53
53
|
'projectAssignments': (json['projectAssignments'].map(UserProjectAssignmentFromJSON)),
|
|
54
|
-
'
|
|
54
|
+
'globalRoles': json['globalRoles'],
|
|
55
|
+
'groups': !exists(json, 'groups') ? undefined : json['groups'],
|
|
55
56
|
'settings': UserSettingsFromJSON(json['settings']),
|
|
56
57
|
};
|
|
57
58
|
}
|
|
@@ -74,6 +75,7 @@ export function UserDetailToJSON(value) {
|
|
|
74
75
|
'signUpTime': value.signUpTime === undefined ? undefined : (value.signUpTime === null ? null : value.signUpTime.toISOString()),
|
|
75
76
|
'lastSignedIn': value.lastSignedIn === undefined ? undefined : (value.lastSignedIn === null ? null : value.lastSignedIn.toISOString()),
|
|
76
77
|
'projectAssignments': (value.projectAssignments.map(UserProjectAssignmentToJSON)),
|
|
78
|
+
'globalRoles': value.globalRoles,
|
|
77
79
|
'groups': value.groups,
|
|
78
80
|
'settings': UserSettingsToJSON(value.settings),
|
|
79
81
|
};
|
|
@@ -59,11 +59,18 @@ export interface UpdateUserRequest {
|
|
|
59
59
|
*/
|
|
60
60
|
settings?: UserSettings | null;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Global roles the user belongs to, only editable by administrators
|
|
63
63
|
* @type {Array<string>}
|
|
64
64
|
* @memberof UpdateUserRequest
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
globalRoles?: Array<string> | null;
|
|
67
|
+
/**
|
|
68
|
+
* Groups the user belongs to, only editable by administrators. Replaced by global roles
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof UpdateUserRequest
|
|
71
|
+
* @deprecated
|
|
72
|
+
*/
|
|
73
|
+
groups?: Array<string> | null;
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
69
76
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
@@ -42,6 +42,7 @@ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'jobTitle': !(0, runtime_1.exists)(json, 'jobTitle') ? undefined : json['jobTitle'],
|
|
43
43
|
'organization': !(0, runtime_1.exists)(json, 'organization') ? undefined : json['organization'],
|
|
44
44
|
'settings': !(0, runtime_1.exists)(json, 'settings') ? undefined : (0, UserSettings_1.UserSettingsFromJSON)(json['settings']),
|
|
45
|
+
'globalRoles': !(0, runtime_1.exists)(json, 'globalRoles') ? undefined : json['globalRoles'],
|
|
45
46
|
'groups': !(0, runtime_1.exists)(json, 'groups') ? undefined : json['groups'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
@@ -61,6 +62,7 @@ function UpdateUserRequestToJSON(value) {
|
|
|
61
62
|
'jobTitle': value.jobTitle,
|
|
62
63
|
'organization': value.organization,
|
|
63
64
|
'settings': (0, UserSettings_1.UserSettingsToJSON)(value.settings),
|
|
65
|
+
'globalRoles': value.globalRoles,
|
|
64
66
|
'groups': value.groups,
|
|
65
67
|
};
|
|
66
68
|
}
|
package/dist/models/User.d.ts
CHANGED
package/dist/models/User.js
CHANGED
|
@@ -24,6 +24,7 @@ function instanceOfUser(value) {
|
|
|
24
24
|
isInstance = isInstance && "organization" in value;
|
|
25
25
|
isInstance = isInstance && "department" in value;
|
|
26
26
|
isInstance = isInstance && "jobTitle" in value;
|
|
27
|
+
isInstance = isInstance && "globalRoles" in value;
|
|
27
28
|
return isInstance;
|
|
28
29
|
}
|
|
29
30
|
exports.instanceOfUser = instanceOfUser;
|
|
@@ -41,6 +42,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
'organization': json['organization'],
|
|
42
43
|
'department': json['department'],
|
|
43
44
|
'jobTitle': json['jobTitle'],
|
|
45
|
+
'globalRoles': json['globalRoles'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.UserFromJSONTyped = UserFromJSONTyped;
|
|
@@ -57,6 +59,7 @@ function UserToJSON(value) {
|
|
|
57
59
|
'organization': value.organization,
|
|
58
60
|
'department': value.department,
|
|
59
61
|
'jobTitle': value.jobTitle,
|
|
62
|
+
'globalRoles': value.globalRoles,
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
exports.UserToJSON = UserToJSON;
|
|
@@ -88,7 +88,14 @@ export interface UserDetail {
|
|
|
88
88
|
* @type {Array<string>}
|
|
89
89
|
* @memberof UserDetail
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
globalRoles: Array<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Replaced by globalRoles.
|
|
94
|
+
* @type {Array<string>}
|
|
95
|
+
* @memberof UserDetail
|
|
96
|
+
* @deprecated
|
|
97
|
+
*/
|
|
98
|
+
groups?: Array<string>;
|
|
92
99
|
/**
|
|
93
100
|
*
|
|
94
101
|
* @type {UserSettings}
|
|
@@ -31,7 +31,7 @@ function instanceOfUserDetail(value) {
|
|
|
31
31
|
isInstance = isInstance && "department" in value;
|
|
32
32
|
isInstance = isInstance && "invitedBy" in value;
|
|
33
33
|
isInstance = isInstance && "projectAssignments" in value;
|
|
34
|
-
isInstance = isInstance && "
|
|
34
|
+
isInstance = isInstance && "globalRoles" in value;
|
|
35
35
|
isInstance = isInstance && "settings" in value;
|
|
36
36
|
return isInstance;
|
|
37
37
|
}
|
|
@@ -56,7 +56,8 @@ function UserDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'signUpTime': !(0, runtime_1.exists)(json, 'signUpTime') ? undefined : (json['signUpTime'] === null ? null : new Date(json['signUpTime'])),
|
|
57
57
|
'lastSignedIn': !(0, runtime_1.exists)(json, 'lastSignedIn') ? undefined : (json['lastSignedIn'] === null ? null : new Date(json['lastSignedIn'])),
|
|
58
58
|
'projectAssignments': (json['projectAssignments'].map(UserProjectAssignment_1.UserProjectAssignmentFromJSON)),
|
|
59
|
-
'
|
|
59
|
+
'globalRoles': json['globalRoles'],
|
|
60
|
+
'groups': !(0, runtime_1.exists)(json, 'groups') ? undefined : json['groups'],
|
|
60
61
|
'settings': (0, UserSettings_1.UserSettingsFromJSON)(json['settings']),
|
|
61
62
|
};
|
|
62
63
|
}
|
|
@@ -80,6 +81,7 @@ function UserDetailToJSON(value) {
|
|
|
80
81
|
'signUpTime': value.signUpTime === undefined ? undefined : (value.signUpTime === null ? null : value.signUpTime.toISOString()),
|
|
81
82
|
'lastSignedIn': value.lastSignedIn === undefined ? undefined : (value.lastSignedIn === null ? null : value.lastSignedIn.toISOString()),
|
|
82
83
|
'projectAssignments': (value.projectAssignments.map(UserProjectAssignment_1.UserProjectAssignmentToJSON)),
|
|
84
|
+
'globalRoles': value.globalRoles,
|
|
83
85
|
'groups': value.groups,
|
|
84
86
|
'settings': (0, UserSettings_1.UserSettingsToJSON)(value.settings),
|
|
85
87
|
};
|