@cirrobio/api-client 0.2.19 → 0.2.20
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/.openapi-generator/FILES +1 -0
- package/README.md +1 -1
- package/dist/models/UpdateUserRequest.d.ts +10 -5
- package/dist/models/UpdateUserRequest.js +5 -2
- package/dist/models/UserDetail.d.ts +13 -0
- package/dist/models/UserDetail.js +7 -0
- package/dist/models/UserSettings.d.ts +32 -0
- package/dist/models/UserSettings.js +57 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/UpdateUserRequest.ts +20 -5
- package/src/models/UserDetail.ts +24 -0
- package/src/models/UserSettings.ts +69 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UserSettings } from './UserSettings';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -39,6 +40,12 @@ export interface UpdateUserRequest {
|
|
|
39
40
|
* @memberof UpdateUserRequest
|
|
40
41
|
*/
|
|
41
42
|
department?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Job title or role of the user
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UpdateUserRequest
|
|
47
|
+
*/
|
|
48
|
+
jobTitle?: string;
|
|
42
49
|
/**
|
|
43
50
|
* The organization the user belongs to, only editable by administrators
|
|
44
51
|
* @type {string}
|
|
@@ -46,13 +53,11 @@ export interface UpdateUserRequest {
|
|
|
46
53
|
*/
|
|
47
54
|
organization?: string;
|
|
48
55
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {
|
|
56
|
+
*
|
|
57
|
+
* @type {UserSettings}
|
|
51
58
|
* @memberof UpdateUserRequest
|
|
52
59
|
*/
|
|
53
|
-
settings?:
|
|
54
|
-
[key: string]: any;
|
|
55
|
-
};
|
|
60
|
+
settings?: UserSettings | null;
|
|
56
61
|
/**
|
|
57
62
|
* Groups the user belongs to, only editable by administrators
|
|
58
63
|
* @type {Array<string>}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UpdateUserRequestToJSON = exports.UpdateUserRequestFromJSONTyped = exports.UpdateUserRequestFromJSON = exports.instanceOfUpdateUserRequest = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
|
+
var UserSettings_1 = require("./UserSettings");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
20
21
|
*/
|
|
@@ -38,8 +39,9 @@ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
'email': json['email'],
|
|
39
40
|
'phone': !(0, runtime_1.exists)(json, 'phone') ? undefined : json['phone'],
|
|
40
41
|
'department': !(0, runtime_1.exists)(json, 'department') ? undefined : json['department'],
|
|
42
|
+
'jobTitle': !(0, runtime_1.exists)(json, 'jobTitle') ? undefined : json['jobTitle'],
|
|
41
43
|
'organization': !(0, runtime_1.exists)(json, 'organization') ? undefined : json['organization'],
|
|
42
|
-
'settings': !(0, runtime_1.exists)(json, 'settings') ? undefined : json['settings'],
|
|
44
|
+
'settings': !(0, runtime_1.exists)(json, 'settings') ? undefined : (0, UserSettings_1.UserSettingsFromJSON)(json['settings']),
|
|
43
45
|
'groups': !(0, runtime_1.exists)(json, 'groups') ? undefined : json['groups'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
@@ -56,8 +58,9 @@ function UpdateUserRequestToJSON(value) {
|
|
|
56
58
|
'email': value.email,
|
|
57
59
|
'phone': value.phone,
|
|
58
60
|
'department': value.department,
|
|
61
|
+
'jobTitle': value.jobTitle,
|
|
59
62
|
'organization': value.organization,
|
|
60
|
-
'settings': value.settings,
|
|
63
|
+
'settings': (0, UserSettings_1.UserSettingsToJSON)(value.settings),
|
|
61
64
|
'groups': value.groups,
|
|
62
65
|
};
|
|
63
66
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { UserProjectAssignment } from './UserProjectAssignment';
|
|
13
|
+
import type { UserSettings } from './UserSettings';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -46,6 +47,12 @@ export interface UserDetail {
|
|
|
46
47
|
* @memberof UserDetail
|
|
47
48
|
*/
|
|
48
49
|
organization: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof UserDetail
|
|
54
|
+
*/
|
|
55
|
+
jobTitle: string;
|
|
49
56
|
/**
|
|
50
57
|
*
|
|
51
58
|
* @type {string}
|
|
@@ -76,6 +83,12 @@ export interface UserDetail {
|
|
|
76
83
|
* @memberof UserDetail
|
|
77
84
|
*/
|
|
78
85
|
groups: Array<string>;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {UserSettings}
|
|
89
|
+
* @memberof UserDetail
|
|
90
|
+
*/
|
|
91
|
+
settings: UserSettings;
|
|
79
92
|
}
|
|
80
93
|
/**
|
|
81
94
|
* Check if a given object implements the UserDetail interface.
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.UserDetailToJSON = exports.UserDetailFromJSONTyped = exports.UserDetailFromJSON = exports.instanceOfUserDetail = void 0;
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var UserProjectAssignment_1 = require("./UserProjectAssignment");
|
|
19
|
+
var UserSettings_1 = require("./UserSettings");
|
|
19
20
|
/**
|
|
20
21
|
* Check if a given object implements the UserDetail interface.
|
|
21
22
|
*/
|
|
@@ -26,10 +27,12 @@ function instanceOfUserDetail(value) {
|
|
|
26
27
|
isInstance = isInstance && "phone" in value;
|
|
27
28
|
isInstance = isInstance && "email" in value;
|
|
28
29
|
isInstance = isInstance && "organization" in value;
|
|
30
|
+
isInstance = isInstance && "jobTitle" in value;
|
|
29
31
|
isInstance = isInstance && "department" in value;
|
|
30
32
|
isInstance = isInstance && "invitedBy" in value;
|
|
31
33
|
isInstance = isInstance && "projectAssignments" in value;
|
|
32
34
|
isInstance = isInstance && "groups" in value;
|
|
35
|
+
isInstance = isInstance && "settings" in value;
|
|
33
36
|
return isInstance;
|
|
34
37
|
}
|
|
35
38
|
exports.instanceOfUserDetail = instanceOfUserDetail;
|
|
@@ -47,11 +50,13 @@ function UserDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
50
|
'phone': json['phone'],
|
|
48
51
|
'email': json['email'],
|
|
49
52
|
'organization': json['organization'],
|
|
53
|
+
'jobTitle': json['jobTitle'],
|
|
50
54
|
'department': json['department'],
|
|
51
55
|
'invitedBy': json['invitedBy'],
|
|
52
56
|
'signUpTime': !(0, runtime_1.exists)(json, 'signUpTime') ? undefined : (json['signUpTime'] === null ? null : new Date(json['signUpTime'])),
|
|
53
57
|
'projectAssignments': (json['projectAssignments'].map(UserProjectAssignment_1.UserProjectAssignmentFromJSON)),
|
|
54
58
|
'groups': json['groups'],
|
|
59
|
+
'settings': (0, UserSettings_1.UserSettingsFromJSON)(json['settings']),
|
|
55
60
|
};
|
|
56
61
|
}
|
|
57
62
|
exports.UserDetailFromJSONTyped = UserDetailFromJSONTyped;
|
|
@@ -68,11 +73,13 @@ function UserDetailToJSON(value) {
|
|
|
68
73
|
'phone': value.phone,
|
|
69
74
|
'email': value.email,
|
|
70
75
|
'organization': value.organization,
|
|
76
|
+
'jobTitle': value.jobTitle,
|
|
71
77
|
'department': value.department,
|
|
72
78
|
'invitedBy': value.invitedBy,
|
|
73
79
|
'signUpTime': value.signUpTime === undefined ? undefined : (value.signUpTime === null ? null : value.signUpTime.toISOString()),
|
|
74
80
|
'projectAssignments': (value.projectAssignments.map(UserProjectAssignment_1.UserProjectAssignmentToJSON)),
|
|
75
81
|
'groups': value.groups,
|
|
82
|
+
'settings': (0, UserSettings_1.UserSettingsToJSON)(value.settings),
|
|
76
83
|
};
|
|
77
84
|
}
|
|
78
85
|
exports.UserDetailToJSON = UserDetailToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cirro Data
|
|
3
|
+
* Cirro Data Platform service API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
* Contact: support@cirro.bio
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Additional settings for the user
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface UserSettings {
|
|
18
|
+
[key: string]: any | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof UserSettings
|
|
23
|
+
*/
|
|
24
|
+
analysisUpdateNotificationsEnabled: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UserSettings interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUserSettings(value: object): boolean;
|
|
30
|
+
export declare function UserSettingsFromJSON(json: any): UserSettings;
|
|
31
|
+
export declare function UserSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSettings;
|
|
32
|
+
export declare function UserSettingsToJSON(value?: UserSettings | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cirro Data
|
|
6
|
+
* Cirro Data Platform service API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: latest
|
|
9
|
+
* Contact: support@cirro.bio
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.UserSettingsToJSON = exports.UserSettingsFromJSONTyped = exports.UserSettingsFromJSON = exports.instanceOfUserSettings = void 0;
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the UserSettings interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfUserSettings(value) {
|
|
32
|
+
var isInstance = true;
|
|
33
|
+
isInstance = isInstance && "analysisUpdateNotificationsEnabled" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfUserSettings = instanceOfUserSettings;
|
|
37
|
+
function UserSettingsFromJSON(json) {
|
|
38
|
+
return UserSettingsFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.UserSettingsFromJSON = UserSettingsFromJSON;
|
|
41
|
+
function UserSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return __assign(__assign({}, json), { 'analysisUpdateNotificationsEnabled': json['analysisUpdateNotificationsEnabled'] });
|
|
46
|
+
}
|
|
47
|
+
exports.UserSettingsFromJSONTyped = UserSettingsFromJSONTyped;
|
|
48
|
+
function UserSettingsToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return __assign(__assign({}, value), { 'analysisUpdateNotificationsEnabled': value.analysisUpdateNotificationsEnabled });
|
|
56
|
+
}
|
|
57
|
+
exports.UserSettingsToJSON = UserSettingsToJSON;
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -143,4 +143,5 @@ __exportStar(require("./UploadDatasetRequest"), exports);
|
|
|
143
143
|
__exportStar(require("./User"), exports);
|
|
144
144
|
__exportStar(require("./UserDetail"), exports);
|
|
145
145
|
__exportStar(require("./UserProjectAssignment"), exports);
|
|
146
|
+
__exportStar(require("./UserSettings"), exports);
|
|
146
147
|
__exportStar(require("./ValidateFileRequirementsRequest"), exports);
|
package/package.json
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { UserSettings } from './UserSettings';
|
|
17
|
+
import {
|
|
18
|
+
UserSettingsFromJSON,
|
|
19
|
+
UserSettingsFromJSONTyped,
|
|
20
|
+
UserSettingsToJSON,
|
|
21
|
+
} from './UserSettings';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -43,6 +50,12 @@ export interface UpdateUserRequest {
|
|
|
43
50
|
* @memberof UpdateUserRequest
|
|
44
51
|
*/
|
|
45
52
|
department?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Job title or role of the user
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof UpdateUserRequest
|
|
57
|
+
*/
|
|
58
|
+
jobTitle?: string;
|
|
46
59
|
/**
|
|
47
60
|
* The organization the user belongs to, only editable by administrators
|
|
48
61
|
* @type {string}
|
|
@@ -50,11 +63,11 @@ export interface UpdateUserRequest {
|
|
|
50
63
|
*/
|
|
51
64
|
organization?: string;
|
|
52
65
|
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {
|
|
66
|
+
*
|
|
67
|
+
* @type {UserSettings}
|
|
55
68
|
* @memberof UpdateUserRequest
|
|
56
69
|
*/
|
|
57
|
-
settings?:
|
|
70
|
+
settings?: UserSettings | null;
|
|
58
71
|
/**
|
|
59
72
|
* Groups the user belongs to, only editable by administrators
|
|
60
73
|
* @type {Array<string>}
|
|
@@ -88,8 +101,9 @@ export function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
88
101
|
'email': json['email'],
|
|
89
102
|
'phone': !exists(json, 'phone') ? undefined : json['phone'],
|
|
90
103
|
'department': !exists(json, 'department') ? undefined : json['department'],
|
|
104
|
+
'jobTitle': !exists(json, 'jobTitle') ? undefined : json['jobTitle'],
|
|
91
105
|
'organization': !exists(json, 'organization') ? undefined : json['organization'],
|
|
92
|
-
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
106
|
+
'settings': !exists(json, 'settings') ? undefined : UserSettingsFromJSON(json['settings']),
|
|
93
107
|
'groups': !exists(json, 'groups') ? undefined : json['groups'],
|
|
94
108
|
};
|
|
95
109
|
}
|
|
@@ -107,8 +121,9 @@ export function UpdateUserRequestToJSON(value?: UpdateUserRequest | null): any {
|
|
|
107
121
|
'email': value.email,
|
|
108
122
|
'phone': value.phone,
|
|
109
123
|
'department': value.department,
|
|
124
|
+
'jobTitle': value.jobTitle,
|
|
110
125
|
'organization': value.organization,
|
|
111
|
-
'settings': value.settings,
|
|
126
|
+
'settings': UserSettingsToJSON(value.settings),
|
|
112
127
|
'groups': value.groups,
|
|
113
128
|
};
|
|
114
129
|
}
|
package/src/models/UserDetail.ts
CHANGED
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
UserProjectAssignmentFromJSONTyped,
|
|
20
20
|
UserProjectAssignmentToJSON,
|
|
21
21
|
} from './UserProjectAssignment';
|
|
22
|
+
import type { UserSettings } from './UserSettings';
|
|
23
|
+
import {
|
|
24
|
+
UserSettingsFromJSON,
|
|
25
|
+
UserSettingsFromJSONTyped,
|
|
26
|
+
UserSettingsToJSON,
|
|
27
|
+
} from './UserSettings';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
*
|
|
@@ -56,6 +62,12 @@ export interface UserDetail {
|
|
|
56
62
|
* @memberof UserDetail
|
|
57
63
|
*/
|
|
58
64
|
organization: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof UserDetail
|
|
69
|
+
*/
|
|
70
|
+
jobTitle: string;
|
|
59
71
|
/**
|
|
60
72
|
*
|
|
61
73
|
* @type {string}
|
|
@@ -86,6 +98,12 @@ export interface UserDetail {
|
|
|
86
98
|
* @memberof UserDetail
|
|
87
99
|
*/
|
|
88
100
|
groups: Array<string>;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {UserSettings}
|
|
104
|
+
* @memberof UserDetail
|
|
105
|
+
*/
|
|
106
|
+
settings: UserSettings;
|
|
89
107
|
}
|
|
90
108
|
|
|
91
109
|
/**
|
|
@@ -98,10 +116,12 @@ export function instanceOfUserDetail(value: object): boolean {
|
|
|
98
116
|
isInstance = isInstance && "phone" in value;
|
|
99
117
|
isInstance = isInstance && "email" in value;
|
|
100
118
|
isInstance = isInstance && "organization" in value;
|
|
119
|
+
isInstance = isInstance && "jobTitle" in value;
|
|
101
120
|
isInstance = isInstance && "department" in value;
|
|
102
121
|
isInstance = isInstance && "invitedBy" in value;
|
|
103
122
|
isInstance = isInstance && "projectAssignments" in value;
|
|
104
123
|
isInstance = isInstance && "groups" in value;
|
|
124
|
+
isInstance = isInstance && "settings" in value;
|
|
105
125
|
|
|
106
126
|
return isInstance;
|
|
107
127
|
}
|
|
@@ -121,11 +141,13 @@ export function UserDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
121
141
|
'phone': json['phone'],
|
|
122
142
|
'email': json['email'],
|
|
123
143
|
'organization': json['organization'],
|
|
144
|
+
'jobTitle': json['jobTitle'],
|
|
124
145
|
'department': json['department'],
|
|
125
146
|
'invitedBy': json['invitedBy'],
|
|
126
147
|
'signUpTime': !exists(json, 'signUpTime') ? undefined : (json['signUpTime'] === null ? null : new Date(json['signUpTime'])),
|
|
127
148
|
'projectAssignments': ((json['projectAssignments'] as Array<any>).map(UserProjectAssignmentFromJSON)),
|
|
128
149
|
'groups': json['groups'],
|
|
150
|
+
'settings': UserSettingsFromJSON(json['settings']),
|
|
129
151
|
};
|
|
130
152
|
}
|
|
131
153
|
|
|
@@ -143,11 +165,13 @@ export function UserDetailToJSON(value?: UserDetail | null): any {
|
|
|
143
165
|
'phone': value.phone,
|
|
144
166
|
'email': value.email,
|
|
145
167
|
'organization': value.organization,
|
|
168
|
+
'jobTitle': value.jobTitle,
|
|
146
169
|
'department': value.department,
|
|
147
170
|
'invitedBy': value.invitedBy,
|
|
148
171
|
'signUpTime': value.signUpTime === undefined ? undefined : (value.signUpTime === null ? null : value.signUpTime.toISOString()),
|
|
149
172
|
'projectAssignments': ((value.projectAssignments as Array<any>).map(UserProjectAssignmentToJSON)),
|
|
150
173
|
'groups': value.groups,
|
|
174
|
+
'settings': UserSettingsToJSON(value.settings),
|
|
151
175
|
};
|
|
152
176
|
}
|
|
153
177
|
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cirro Data
|
|
5
|
+
* Cirro Data Platform service API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
* Contact: support@cirro.bio
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Additional settings for the user
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserSettings
|
|
20
|
+
*/
|
|
21
|
+
export interface UserSettings {
|
|
22
|
+
[key: string]: any | any;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof UserSettings
|
|
27
|
+
*/
|
|
28
|
+
analysisUpdateNotificationsEnabled: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UserSettings interface.
|
|
33
|
+
*/
|
|
34
|
+
export function instanceOfUserSettings(value: object): boolean {
|
|
35
|
+
let isInstance = true;
|
|
36
|
+
isInstance = isInstance && "analysisUpdateNotificationsEnabled" in value;
|
|
37
|
+
|
|
38
|
+
return isInstance;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function UserSettingsFromJSON(json: any): UserSettings {
|
|
42
|
+
return UserSettingsFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function UserSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSettings {
|
|
46
|
+
if ((json === undefined) || (json === null)) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
|
|
51
|
+
...json,
|
|
52
|
+
'analysisUpdateNotificationsEnabled': json['analysisUpdateNotificationsEnabled'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UserSettingsToJSON(value?: UserSettings | null): any {
|
|
57
|
+
if (value === undefined) {
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
60
|
+
if (value === null) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
...value,
|
|
66
|
+
'analysisUpdateNotificationsEnabled': value.analysisUpdateNotificationsEnabled,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
package/src/models/index.ts
CHANGED