@equisoft/equisoft-connect-sdk-typescript 11.0.1 → 11.0.2-snapshot.20221130202319

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.
@@ -203,6 +203,7 @@ src/models/UsersListUsersResponse.ts
203
203
  src/models/UsersRole.ts
204
204
  src/models/UsersUpdateUserPayload.ts
205
205
  src/models/UsersUser.ts
206
+ src/models/UsersUserGroup.ts
206
207
  src/models/index.ts
207
208
  src/runtime.ts
208
209
  tsconfig.esm.json
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { UsersUserGroup } from './UsersUserGroup';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -27,12 +28,6 @@ export interface UsersUser {
27
28
  * @memberof UsersUser
28
29
  */
29
30
  displayName: string;
30
- /**
31
- * The user's eMail address.
32
- * @type {string}
33
- * @memberof UsersUser
34
- */
35
- email: string;
36
31
  /**
37
32
  * The user's first name.
38
33
  * @type {string}
@@ -45,18 +40,42 @@ export interface UsersUser {
45
40
  * @memberof UsersUser
46
41
  */
47
42
  lastName: string;
43
+ /**
44
+ * The user's initials.
45
+ * @type {string}
46
+ * @memberof UsersUser
47
+ */
48
+ initials?: string;
48
49
  /**
49
50
  * The user's preferred locale.
50
51
  * @type {string}
51
52
  * @memberof UsersUser
52
53
  */
53
54
  locale: string;
55
+ /**
56
+ * The user's eMail address.
57
+ * @type {string}
58
+ * @memberof UsersUser
59
+ */
60
+ email: string;
54
61
  /**
55
62
  * The user's role.
56
63
  * @type {string}
57
64
  * @memberof UsersUser
58
65
  */
59
66
  role: string;
67
+ /**
68
+ * Whether the user can delegate ACL to other users
69
+ * @type {boolean}
70
+ * @memberof UsersUser
71
+ */
72
+ aclDelegationAllowed?: boolean;
73
+ /**
74
+ * User groups
75
+ * @type {Array<UsersUserGroup>}
76
+ * @memberof UsersUser
77
+ */
78
+ groups?: Array<UsersUserGroup>;
60
79
  }
61
80
  /**
62
81
  * Check if a given object implements the UsersUser interface.
@@ -14,6 +14,8 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UsersUserToJSON = exports.UsersUserFromJSONTyped = exports.UsersUserFromJSON = exports.instanceOfUsersUser = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const UsersUserGroup_1 = require("./UsersUserGroup");
17
19
  /**
18
20
  * Check if a given object implements the UsersUser interface.
19
21
  */
@@ -21,10 +23,10 @@ function instanceOfUsersUser(value) {
21
23
  let isInstance = true;
22
24
  isInstance = isInstance && "id" in value;
23
25
  isInstance = isInstance && "displayName" in value;
24
- isInstance = isInstance && "email" in value;
25
26
  isInstance = isInstance && "firstName" in value;
26
27
  isInstance = isInstance && "lastName" in value;
27
28
  isInstance = isInstance && "locale" in value;
29
+ isInstance = isInstance && "email" in value;
28
30
  isInstance = isInstance && "role" in value;
29
31
  return isInstance;
30
32
  }
@@ -40,11 +42,14 @@ function UsersUserFromJSONTyped(json, ignoreDiscriminator) {
40
42
  return {
41
43
  'id': json['id'],
42
44
  'displayName': json['displayName'],
43
- 'email': json['email'],
44
45
  'firstName': json['firstName'],
45
46
  'lastName': json['lastName'],
47
+ 'initials': !runtime_1.exists(json, 'initials') ? undefined : json['initials'],
46
48
  'locale': json['locale'],
49
+ 'email': json['email'],
47
50
  'role': json['role'],
51
+ 'aclDelegationAllowed': !runtime_1.exists(json, 'aclDelegationAllowed') ? undefined : json['aclDelegationAllowed'],
52
+ 'groups': !runtime_1.exists(json, 'groups') ? undefined : (json['groups'].map(UsersUserGroup_1.UsersUserGroupFromJSON)),
48
53
  };
49
54
  }
50
55
  exports.UsersUserFromJSONTyped = UsersUserFromJSONTyped;
@@ -58,11 +63,14 @@ function UsersUserToJSON(value) {
58
63
  return {
59
64
  'id': value.id,
60
65
  'displayName': value.displayName,
61
- 'email': value.email,
62
66
  'firstName': value.firstName,
63
67
  'lastName': value.lastName,
68
+ 'initials': value.initials,
64
69
  'locale': value.locale,
70
+ 'email': value.email,
65
71
  'role': value.role,
72
+ 'aclDelegationAllowed': value.aclDelegationAllowed,
73
+ 'groups': value.groups === undefined ? undefined : (value.groups.map(UsersUserGroup_1.UsersUserGroupToJSON)),
66
74
  };
67
75
  }
68
76
  exports.UsersUserToJSON = UsersUserToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Equisoft /connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
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
+ *
14
+ * @export
15
+ * @interface UsersUserGroup
16
+ */
17
+ export interface UsersUserGroup {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof UsersUserGroup
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UsersUserGroup
28
+ */
29
+ displayName: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UsersUserGroup interface.
33
+ */
34
+ export declare function instanceOfUsersUserGroup(value: object): boolean;
35
+ export declare function UsersUserGroupFromJSON(json: any): UsersUserGroup;
36
+ export declare function UsersUserGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersUserGroup;
37
+ export declare function UsersUserGroupToJSON(value?: UsersUserGroup | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Equisoft /connect API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UsersUserGroupToJSON = exports.UsersUserGroupFromJSONTyped = exports.UsersUserGroupFromJSON = exports.instanceOfUsersUserGroup = void 0;
17
+ /**
18
+ * Check if a given object implements the UsersUserGroup interface.
19
+ */
20
+ function instanceOfUsersUserGroup(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "id" in value;
23
+ isInstance = isInstance && "displayName" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfUsersUserGroup = instanceOfUsersUserGroup;
27
+ function UsersUserGroupFromJSON(json) {
28
+ return UsersUserGroupFromJSONTyped(json, false);
29
+ }
30
+ exports.UsersUserGroupFromJSON = UsersUserGroupFromJSON;
31
+ function UsersUserGroupFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'],
37
+ 'displayName': json['displayName'],
38
+ };
39
+ }
40
+ exports.UsersUserGroupFromJSONTyped = UsersUserGroupFromJSONTyped;
41
+ function UsersUserGroupToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'id': value.id,
50
+ 'displayName': value.displayName,
51
+ };
52
+ }
53
+ exports.UsersUserGroupToJSON = UsersUserGroupToJSON;
@@ -185,3 +185,4 @@ export * from './UsersListUsersResponse';
185
185
  export * from './UsersRole';
186
186
  export * from './UsersUpdateUserPayload';
187
187
  export * from './UsersUser';
188
+ export * from './UsersUserGroup';
@@ -199,3 +199,4 @@ __exportStar(require("./UsersListUsersResponse"), exports);
199
199
  __exportStar(require("./UsersRole"), exports);
200
200
  __exportStar(require("./UsersUpdateUserPayload"), exports);
201
201
  __exportStar(require("./UsersUser"), exports);
202
+ __exportStar(require("./UsersUserGroup"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/equisoft-connect-sdk-typescript",
3
- "version": "11.0.1",
3
+ "version": "11.0.2-snapshot.20221130202319",
4
4
  "description": "OpenAPI client for @equisoft/equisoft-connect-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { UsersUserGroup } from './UsersUserGroup';
17
+ import {
18
+ UsersUserGroupFromJSON,
19
+ UsersUserGroupFromJSONTyped,
20
+ UsersUserGroupToJSON,
21
+ } from './UsersUserGroup';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -31,12 +38,6 @@ export interface UsersUser {
31
38
  * @memberof UsersUser
32
39
  */
33
40
  displayName: string;
34
- /**
35
- * The user's eMail address.
36
- * @type {string}
37
- * @memberof UsersUser
38
- */
39
- email: string;
40
41
  /**
41
42
  * The user's first name.
42
43
  * @type {string}
@@ -49,18 +50,42 @@ export interface UsersUser {
49
50
  * @memberof UsersUser
50
51
  */
51
52
  lastName: string;
53
+ /**
54
+ * The user's initials.
55
+ * @type {string}
56
+ * @memberof UsersUser
57
+ */
58
+ initials?: string;
52
59
  /**
53
60
  * The user's preferred locale.
54
61
  * @type {string}
55
62
  * @memberof UsersUser
56
63
  */
57
64
  locale: string;
65
+ /**
66
+ * The user's eMail address.
67
+ * @type {string}
68
+ * @memberof UsersUser
69
+ */
70
+ email: string;
58
71
  /**
59
72
  * The user's role.
60
73
  * @type {string}
61
74
  * @memberof UsersUser
62
75
  */
63
76
  role: string;
77
+ /**
78
+ * Whether the user can delegate ACL to other users
79
+ * @type {boolean}
80
+ * @memberof UsersUser
81
+ */
82
+ aclDelegationAllowed?: boolean;
83
+ /**
84
+ * User groups
85
+ * @type {Array<UsersUserGroup>}
86
+ * @memberof UsersUser
87
+ */
88
+ groups?: Array<UsersUserGroup>;
64
89
  }
65
90
 
66
91
  /**
@@ -70,10 +95,10 @@ export function instanceOfUsersUser(value: object): boolean {
70
95
  let isInstance = true;
71
96
  isInstance = isInstance && "id" in value;
72
97
  isInstance = isInstance && "displayName" in value;
73
- isInstance = isInstance && "email" in value;
74
98
  isInstance = isInstance && "firstName" in value;
75
99
  isInstance = isInstance && "lastName" in value;
76
100
  isInstance = isInstance && "locale" in value;
101
+ isInstance = isInstance && "email" in value;
77
102
  isInstance = isInstance && "role" in value;
78
103
 
79
104
  return isInstance;
@@ -91,11 +116,14 @@ export function UsersUserFromJSONTyped(json: any, ignoreDiscriminator: boolean):
91
116
 
92
117
  'id': json['id'],
93
118
  'displayName': json['displayName'],
94
- 'email': json['email'],
95
119
  'firstName': json['firstName'],
96
120
  'lastName': json['lastName'],
121
+ 'initials': !exists(json, 'initials') ? undefined : json['initials'],
97
122
  'locale': json['locale'],
123
+ 'email': json['email'],
98
124
  'role': json['role'],
125
+ 'aclDelegationAllowed': !exists(json, 'aclDelegationAllowed') ? undefined : json['aclDelegationAllowed'],
126
+ 'groups': !exists(json, 'groups') ? undefined : ((json['groups'] as Array<any>).map(UsersUserGroupFromJSON)),
99
127
  };
100
128
  }
101
129
 
@@ -110,11 +138,14 @@ export function UsersUserToJSON(value?: UsersUser | null): any {
110
138
 
111
139
  'id': value.id,
112
140
  'displayName': value.displayName,
113
- 'email': value.email,
114
141
  'firstName': value.firstName,
115
142
  'lastName': value.lastName,
143
+ 'initials': value.initials,
116
144
  'locale': value.locale,
145
+ 'email': value.email,
117
146
  'role': value.role,
147
+ 'aclDelegationAllowed': value.aclDelegationAllowed,
148
+ 'groups': value.groups === undefined ? undefined : ((value.groups as Array<any>).map(UsersUserGroupToJSON)),
118
149
  };
119
150
  }
120
151
 
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Equisoft /connect API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
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
+ *
18
+ * @export
19
+ * @interface UsersUserGroup
20
+ */
21
+ export interface UsersUserGroup {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof UsersUserGroup
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UsersUserGroup
32
+ */
33
+ displayName: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the UsersUserGroup interface.
38
+ */
39
+ export function instanceOfUsersUserGroup(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "id" in value;
42
+ isInstance = isInstance && "displayName" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function UsersUserGroupFromJSON(json: any): UsersUserGroup {
48
+ return UsersUserGroupFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function UsersUserGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersUserGroup {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'id': json['id'],
58
+ 'displayName': json['displayName'],
59
+ };
60
+ }
61
+
62
+ export function UsersUserGroupToJSON(value?: UsersUserGroup | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'id': value.id,
72
+ 'displayName': value.displayName,
73
+ };
74
+ }
75
+
@@ -187,3 +187,4 @@ export * from './UsersListUsersResponse';
187
187
  export * from './UsersRole';
188
188
  export * from './UsersUpdateUserPayload';
189
189
  export * from './UsersUser';
190
+ export * from './UsersUserGroup';