@cirrobio/api-client 0.1.5 → 0.1.6
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/models/UpdateUserRequest.d.ts +20 -8
- package/dist/models/UpdateUserRequest.js +8 -6
- package/dist/models/UserDetail.d.ts +6 -0
- package/dist/models/UserDetail.js +3 -0
- package/package.json +1 -1
- package/src/models/UpdateUserRequest.ts +27 -14
- package/src/models/UserDetail.ts +9 -0
package/README.md
CHANGED
|
@@ -16,37 +16,49 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UpdateUserRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Display name of the user
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateUserRequest
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Email address of the user
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateUserRequest
|
|
28
28
|
*/
|
|
29
29
|
email: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Phone number of the user
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateUserRequest
|
|
34
34
|
*/
|
|
35
|
-
phone
|
|
35
|
+
phone?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Department or lab the user belongs to
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof UpdateUserRequest
|
|
40
40
|
*/
|
|
41
|
-
department
|
|
41
|
+
department?: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* The organization the user belongs to, only editable by administrators
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateUserRequest
|
|
46
|
+
*/
|
|
47
|
+
organization?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Additional settings for the user
|
|
44
50
|
* @type {{ [key: string]: any; }}
|
|
45
51
|
* @memberof UpdateUserRequest
|
|
46
52
|
*/
|
|
47
|
-
settings
|
|
53
|
+
settings?: {
|
|
48
54
|
[key: string]: any;
|
|
49
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* Groups the user belongs to, only editable by administrators
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof UpdateUserRequest
|
|
60
|
+
*/
|
|
61
|
+
groups?: Array<string>;
|
|
50
62
|
}
|
|
51
63
|
/**
|
|
52
64
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UpdateUserRequestToJSON = exports.UpdateUserRequestFromJSONTyped = exports.UpdateUserRequestFromJSON = exports.instanceOfUpdateUserRequest = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
19
20
|
*/
|
|
@@ -21,9 +22,6 @@ function instanceOfUpdateUserRequest(value) {
|
|
|
21
22
|
var isInstance = true;
|
|
22
23
|
isInstance = isInstance && "name" in value;
|
|
23
24
|
isInstance = isInstance && "email" in value;
|
|
24
|
-
isInstance = isInstance && "phone" in value;
|
|
25
|
-
isInstance = isInstance && "department" in value;
|
|
26
|
-
isInstance = isInstance && "settings" in value;
|
|
27
25
|
return isInstance;
|
|
28
26
|
}
|
|
29
27
|
exports.instanceOfUpdateUserRequest = instanceOfUpdateUserRequest;
|
|
@@ -38,9 +36,11 @@ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return {
|
|
39
37
|
'name': json['name'],
|
|
40
38
|
'email': json['email'],
|
|
41
|
-
'phone': json['phone'],
|
|
42
|
-
'department': json['department'],
|
|
43
|
-
'
|
|
39
|
+
'phone': !(0, runtime_1.exists)(json, 'phone') ? undefined : json['phone'],
|
|
40
|
+
'department': !(0, runtime_1.exists)(json, 'department') ? undefined : json['department'],
|
|
41
|
+
'organization': !(0, runtime_1.exists)(json, 'organization') ? undefined : json['organization'],
|
|
42
|
+
'settings': !(0, runtime_1.exists)(json, 'settings') ? undefined : json['settings'],
|
|
43
|
+
'groups': !(0, runtime_1.exists)(json, 'groups') ? undefined : json['groups'],
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
exports.UpdateUserRequestFromJSONTyped = UpdateUserRequestFromJSONTyped;
|
|
@@ -56,7 +56,9 @@ function UpdateUserRequestToJSON(value) {
|
|
|
56
56
|
'email': value.email,
|
|
57
57
|
'phone': value.phone,
|
|
58
58
|
'department': value.department,
|
|
59
|
+
'organization': value.organization,
|
|
59
60
|
'settings': value.settings,
|
|
61
|
+
'groups': value.groups,
|
|
60
62
|
};
|
|
61
63
|
}
|
|
62
64
|
exports.UpdateUserRequestToJSON = UpdateUserRequestToJSON;
|
|
@@ -70,6 +70,12 @@ export interface UserDetail {
|
|
|
70
70
|
* @memberof UserDetail
|
|
71
71
|
*/
|
|
72
72
|
projectAssignments: Array<UserProjectAssignment>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof UserDetail
|
|
77
|
+
*/
|
|
78
|
+
groups: Array<string>;
|
|
73
79
|
}
|
|
74
80
|
/**
|
|
75
81
|
* Check if a given object implements the UserDetail interface.
|
|
@@ -29,6 +29,7 @@ function instanceOfUserDetail(value) {
|
|
|
29
29
|
isInstance = isInstance && "department" in value;
|
|
30
30
|
isInstance = isInstance && "invitedBy" in value;
|
|
31
31
|
isInstance = isInstance && "projectAssignments" in value;
|
|
32
|
+
isInstance = isInstance && "groups" in value;
|
|
32
33
|
return isInstance;
|
|
33
34
|
}
|
|
34
35
|
exports.instanceOfUserDetail = instanceOfUserDetail;
|
|
@@ -50,6 +51,7 @@ function UserDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
'invitedBy': json['invitedBy'],
|
|
51
52
|
'signUpTime': !(0, runtime_1.exists)(json, 'signUpTime') ? undefined : (json['signUpTime'] === null ? null : new Date(json['signUpTime'])),
|
|
52
53
|
'projectAssignments': (json['projectAssignments'].map(UserProjectAssignment_1.UserProjectAssignmentFromJSON)),
|
|
54
|
+
'groups': json['groups'],
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
exports.UserDetailFromJSONTyped = UserDetailFromJSONTyped;
|
|
@@ -70,6 +72,7 @@ function UserDetailToJSON(value) {
|
|
|
70
72
|
'invitedBy': value.invitedBy,
|
|
71
73
|
'signUpTime': value.signUpTime === undefined ? undefined : (value.signUpTime === null ? null : value.signUpTime.toISOString()),
|
|
72
74
|
'projectAssignments': (value.projectAssignments.map(UserProjectAssignment_1.UserProjectAssignmentToJSON)),
|
|
75
|
+
'groups': value.groups,
|
|
73
76
|
};
|
|
74
77
|
}
|
|
75
78
|
exports.UserDetailToJSON = UserDetailToJSON;
|
package/package.json
CHANGED
|
@@ -20,35 +20,47 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface UpdateUserRequest {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Display name of the user
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateUserRequest
|
|
26
26
|
*/
|
|
27
27
|
name: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Email address of the user
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateUserRequest
|
|
32
32
|
*/
|
|
33
33
|
email: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Phone number of the user
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof UpdateUserRequest
|
|
38
38
|
*/
|
|
39
|
-
phone
|
|
39
|
+
phone?: string;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Department or lab the user belongs to
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof UpdateUserRequest
|
|
44
44
|
*/
|
|
45
|
-
department
|
|
45
|
+
department?: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* The organization the user belongs to, only editable by administrators
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UpdateUserRequest
|
|
50
|
+
*/
|
|
51
|
+
organization?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Additional settings for the user
|
|
48
54
|
* @type {{ [key: string]: any; }}
|
|
49
55
|
* @memberof UpdateUserRequest
|
|
50
56
|
*/
|
|
51
|
-
settings
|
|
57
|
+
settings?: { [key: string]: any; };
|
|
58
|
+
/**
|
|
59
|
+
* Groups the user belongs to, only editable by administrators
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof UpdateUserRequest
|
|
62
|
+
*/
|
|
63
|
+
groups?: Array<string>;
|
|
52
64
|
}
|
|
53
65
|
|
|
54
66
|
/**
|
|
@@ -58,9 +70,6 @@ export function instanceOfUpdateUserRequest(value: object): boolean {
|
|
|
58
70
|
let isInstance = true;
|
|
59
71
|
isInstance = isInstance && "name" in value;
|
|
60
72
|
isInstance = isInstance && "email" in value;
|
|
61
|
-
isInstance = isInstance && "phone" in value;
|
|
62
|
-
isInstance = isInstance && "department" in value;
|
|
63
|
-
isInstance = isInstance && "settings" in value;
|
|
64
73
|
|
|
65
74
|
return isInstance;
|
|
66
75
|
}
|
|
@@ -77,9 +86,11 @@ export function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
77
86
|
|
|
78
87
|
'name': json['name'],
|
|
79
88
|
'email': json['email'],
|
|
80
|
-
'phone': json['phone'],
|
|
81
|
-
'department': json['department'],
|
|
82
|
-
'
|
|
89
|
+
'phone': !exists(json, 'phone') ? undefined : json['phone'],
|
|
90
|
+
'department': !exists(json, 'department') ? undefined : json['department'],
|
|
91
|
+
'organization': !exists(json, 'organization') ? undefined : json['organization'],
|
|
92
|
+
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
93
|
+
'groups': !exists(json, 'groups') ? undefined : json['groups'],
|
|
83
94
|
};
|
|
84
95
|
}
|
|
85
96
|
|
|
@@ -96,7 +107,9 @@ export function UpdateUserRequestToJSON(value?: UpdateUserRequest | null): any {
|
|
|
96
107
|
'email': value.email,
|
|
97
108
|
'phone': value.phone,
|
|
98
109
|
'department': value.department,
|
|
110
|
+
'organization': value.organization,
|
|
99
111
|
'settings': value.settings,
|
|
112
|
+
'groups': value.groups,
|
|
100
113
|
};
|
|
101
114
|
}
|
|
102
115
|
|
package/src/models/UserDetail.ts
CHANGED
|
@@ -80,6 +80,12 @@ export interface UserDetail {
|
|
|
80
80
|
* @memberof UserDetail
|
|
81
81
|
*/
|
|
82
82
|
projectAssignments: Array<UserProjectAssignment>;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Array<string>}
|
|
86
|
+
* @memberof UserDetail
|
|
87
|
+
*/
|
|
88
|
+
groups: Array<string>;
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
/**
|
|
@@ -95,6 +101,7 @@ export function instanceOfUserDetail(value: object): boolean {
|
|
|
95
101
|
isInstance = isInstance && "department" in value;
|
|
96
102
|
isInstance = isInstance && "invitedBy" in value;
|
|
97
103
|
isInstance = isInstance && "projectAssignments" in value;
|
|
104
|
+
isInstance = isInstance && "groups" in value;
|
|
98
105
|
|
|
99
106
|
return isInstance;
|
|
100
107
|
}
|
|
@@ -118,6 +125,7 @@ export function UserDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
118
125
|
'invitedBy': json['invitedBy'],
|
|
119
126
|
'signUpTime': !exists(json, 'signUpTime') ? undefined : (json['signUpTime'] === null ? null : new Date(json['signUpTime'])),
|
|
120
127
|
'projectAssignments': ((json['projectAssignments'] as Array<any>).map(UserProjectAssignmentFromJSON)),
|
|
128
|
+
'groups': json['groups'],
|
|
121
129
|
};
|
|
122
130
|
}
|
|
123
131
|
|
|
@@ -139,6 +147,7 @@ export function UserDetailToJSON(value?: UserDetail | null): any {
|
|
|
139
147
|
'invitedBy': value.invitedBy,
|
|
140
148
|
'signUpTime': value.signUpTime === undefined ? undefined : (value.signUpTime === null ? null : value.signUpTime.toISOString()),
|
|
141
149
|
'projectAssignments': ((value.projectAssignments as Array<any>).map(UserProjectAssignmentToJSON)),
|
|
150
|
+
'groups': value.groups,
|
|
142
151
|
};
|
|
143
152
|
}
|
|
144
153
|
|