@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 CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.12.12 --save
39
+ npm install @cirrobio/api-client@0.12.14 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -59,11 +59,18 @@ export interface UpdateUserRequest {
59
59
  */
60
60
  settings?: UserSettings | null;
61
61
  /**
62
- * Groups the user belongs to, only editable by administrators
62
+ * Global roles the user belongs to, only editable by administrators
63
63
  * @type {Array<string>}
64
64
  * @memberof UpdateUserRequest
65
65
  */
66
- groups?: Array<string>;
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
  }
@@ -45,6 +45,12 @@ export interface User {
45
45
  * @memberof User
46
46
  */
47
47
  jobTitle: string;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof User
52
+ */
53
+ globalRoles: Array<string>;
48
54
  }
49
55
  /**
50
56
  * Check if a given object implements the User interface.
@@ -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
- groups: Array<string>;
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 && "groups" in value;
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
- 'groups': json['groups'],
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
- * Groups the user belongs to, only editable by administrators
62
+ * Global roles the user belongs to, only editable by administrators
63
63
  * @type {Array<string>}
64
64
  * @memberof UpdateUserRequest
65
65
  */
66
- groups?: Array<string>;
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
  }
@@ -45,6 +45,12 @@ export interface User {
45
45
  * @memberof User
46
46
  */
47
47
  jobTitle: string;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof User
52
+ */
53
+ globalRoles: Array<string>;
48
54
  }
49
55
  /**
50
56
  * Check if a given object implements the User interface.
@@ -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
- groups: Array<string>;
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 && "groups" in value;
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
- 'groups': json['groups'],
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.12.13",
3
+ "version": "0.12.14",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {