@equisoft/equisoft-connect-sdk-typescript 11.1.6-snapshot.20230118194207 → 11.2.0

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
@@ -27,6 +27,18 @@ export interface GatewaysCredentials {
27
27
  * @memberof GatewaysCredentials
28
28
  */
29
29
  password: string | null;
30
+ /**
31
+ * FirstName
32
+ * @type {string}
33
+ * @memberof GatewaysCredentials
34
+ */
35
+ firstName?: string | null;
36
+ /**
37
+ * LastName
38
+ * @type {string}
39
+ * @memberof GatewaysCredentials
40
+ */
41
+ lastName?: string | null;
30
42
  /**
31
43
  * Rep code
32
44
  * @type {string}
@@ -36,6 +36,8 @@ function GatewaysCredentialsFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return {
37
37
  'username': json['username'],
38
38
  'password': json['password'],
39
+ 'firstName': !runtime_1.exists(json, 'firstName') ? undefined : json['firstName'],
40
+ 'lastName': !runtime_1.exists(json, 'lastName') ? undefined : json['lastName'],
39
41
  'repcode': !runtime_1.exists(json, 'repcode') ? undefined : json['repcode'],
40
42
  'isADealerCode': !runtime_1.exists(json, 'isADealerCode') ? undefined : json['isADealerCode'],
41
43
  'dealerSystemName': !runtime_1.exists(json, 'dealerSystemName') ? undefined : json['dealerSystemName'],
@@ -52,6 +54,8 @@ function GatewaysCredentialsToJSON(value) {
52
54
  return {
53
55
  'username': value.username,
54
56
  'password': value.password,
57
+ 'firstName': value.firstName,
58
+ 'lastName': value.lastName,
55
59
  'repcode': value.repcode,
56
60
  'isADealerCode': value.isADealerCode,
57
61
  'dealerSystemName': value.dealerSystemName,
@@ -27,6 +27,18 @@ export interface GatewaysCredentialsWithSsn {
27
27
  * @memberof GatewaysCredentialsWithSsn
28
28
  */
29
29
  password: string | null;
30
+ /**
31
+ * FirstName
32
+ * @type {string}
33
+ * @memberof GatewaysCredentialsWithSsn
34
+ */
35
+ firstName?: string | null;
36
+ /**
37
+ * LastName
38
+ * @type {string}
39
+ * @memberof GatewaysCredentialsWithSsn
40
+ */
41
+ lastName?: string | null;
30
42
  /**
31
43
  * Rep code
32
44
  * @type {string}
@@ -36,6 +36,8 @@ function GatewaysCredentialsWithSsnFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return {
37
37
  'username': json['username'],
38
38
  'password': json['password'],
39
+ 'firstName': !runtime_1.exists(json, 'firstName') ? undefined : json['firstName'],
40
+ 'lastName': !runtime_1.exists(json, 'lastName') ? undefined : json['lastName'],
39
41
  'repcode': !runtime_1.exists(json, 'repcode') ? undefined : json['repcode'],
40
42
  'isADealerCode': !runtime_1.exists(json, 'isADealerCode') ? undefined : json['isADealerCode'],
41
43
  'dealerSystemName': !runtime_1.exists(json, 'dealerSystemName') ? undefined : json['dealerSystemName'],
@@ -53,6 +55,8 @@ function GatewaysCredentialsWithSsnToJSON(value) {
53
55
  return {
54
56
  'username': value.username,
55
57
  'password': value.password,
58
+ 'firstName': value.firstName,
59
+ 'lastName': value.lastName,
56
60
  'repcode': value.repcode,
57
61
  'isADealerCode': value.isADealerCode,
58
62
  'dealerSystemName': value.dealerSystemName,
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { LegacyContactAddress } from './LegacyContactAddress';
13
- import type { LegacyProvisioningUserIdentifier } from './LegacyProvisioningUserIdentifier';
14
13
  /**
15
14
  *
16
15
  * @export
@@ -58,43 +57,29 @@ export interface LegacyProvisioningUserPayload {
58
57
  */
59
58
  concurrentAccess?: number;
60
59
  /**
61
- * User initial password.
62
- * A random password will be set if none is specified and noPassword option is not used.
60
+ * DEPRECATED this option does nothing
63
61
  * @type {string}
64
62
  * @memberof LegacyProvisioningUserPayload
65
63
  */
66
64
  password?: string;
67
65
  /**
68
- * Disable password authentication.
69
- * Accepts true or false.
70
- * Default false
66
+ * DEPRECATED this option does nothing
71
67
  * @type {string}
72
68
  * @memberof LegacyProvisioningUserPayload
73
69
  */
74
70
  noPassword?: string;
75
71
  /**
76
- * The user will be ask to define a new password on the first login
77
- * Accepts true or false.
78
- * Default true
72
+ * DEPRECATED this option does nothing
79
73
  * @type {string}
80
74
  * @memberof LegacyProvisioningUserPayload
81
75
  */
82
76
  requirePasswordChange?: string;
83
77
  /**
84
- * Enable Mobile version.
85
- * Deprecated: the mobile is not enabled per user anymore.
86
- * Accepts true or false.
87
- * Default false
78
+ * DEPRECATED this option does nothing
88
79
  * @type {string}
89
80
  * @memberof LegacyProvisioningUserPayload
90
81
  */
91
82
  enableMobile?: string;
92
- /**
93
- * List of identifier to uniquely identify the user.
94
- * @type {Array<LegacyProvisioningUserIdentifier>}
95
- * @memberof LegacyProvisioningUserPayload
96
- */
97
- externalIdentifiers?: Array<LegacyProvisioningUserIdentifier>;
98
83
  /**
99
84
  * Allow the user to delegate access to his data
100
85
  * Accepts true or false.
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.LegacyProvisioningUserPayloadToJSON = exports.LegacyProvisioningUserPayloadFromJSONTyped = exports.LegacyProvisioningUserPayloadFromJSON = exports.instanceOfLegacyProvisioningUserPayload = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const LegacyContactAddress_1 = require("./LegacyContactAddress");
19
- const LegacyProvisioningUserIdentifier_1 = require("./LegacyProvisioningUserIdentifier");
20
19
  /**
21
20
  * Check if a given object implements the LegacyProvisioningUserPayload interface.
22
21
  */
@@ -44,7 +43,6 @@ function LegacyProvisioningUserPayloadFromJSONTyped(json, ignoreDiscriminator) {
44
43
  'noPassword': !runtime_1.exists(json, 'noPassword') ? undefined : json['noPassword'],
45
44
  'requirePasswordChange': !runtime_1.exists(json, 'requirePasswordChange') ? undefined : json['requirePasswordChange'],
46
45
  'enableMobile': !runtime_1.exists(json, 'enableMobile') ? undefined : json['enableMobile'],
47
- 'externalIdentifiers': !runtime_1.exists(json, 'externalIdentifiers') ? undefined : (json['externalIdentifiers'].map(LegacyProvisioningUserIdentifier_1.LegacyProvisioningUserIdentifierFromJSON)),
48
46
  'allowDelegation': !runtime_1.exists(json, 'allowDelegation') ? undefined : json['allowDelegation'],
49
47
  'gender': !runtime_1.exists(json, 'gender') ? undefined : json['gender'],
50
48
  'phoneWork': !runtime_1.exists(json, 'phoneWork') ? undefined : json['phoneWork'],
@@ -76,7 +74,6 @@ function LegacyProvisioningUserPayloadToJSON(value) {
76
74
  'noPassword': value.noPassword,
77
75
  'requirePasswordChange': value.requirePasswordChange,
78
76
  'enableMobile': value.enableMobile,
79
- 'externalIdentifiers': value.externalIdentifiers === undefined ? undefined : (value.externalIdentifiers.map(LegacyProvisioningUserIdentifier_1.LegacyProvisioningUserIdentifierToJSON)),
80
77
  'allowDelegation': value.allowDelegation,
81
78
  'gender': value.gender,
82
79
  'phoneWork': value.phoneWork,
@@ -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.1.6-snapshot.20230118194207",
3
+ "version": "11.2.0",
4
4
  "description": "OpenAPI client for @equisoft/equisoft-connect-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -31,6 +31,18 @@ export interface GatewaysCredentials {
31
31
  * @memberof GatewaysCredentials
32
32
  */
33
33
  password: string | null;
34
+ /**
35
+ * FirstName
36
+ * @type {string}
37
+ * @memberof GatewaysCredentials
38
+ */
39
+ firstName?: string | null;
40
+ /**
41
+ * LastName
42
+ * @type {string}
43
+ * @memberof GatewaysCredentials
44
+ */
45
+ lastName?: string | null;
34
46
  /**
35
47
  * Rep code
36
48
  * @type {string}
@@ -74,6 +86,8 @@ export function GatewaysCredentialsFromJSONTyped(json: any, ignoreDiscriminator:
74
86
 
75
87
  'username': json['username'],
76
88
  'password': json['password'],
89
+ 'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
90
+ 'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
77
91
  'repcode': !exists(json, 'repcode') ? undefined : json['repcode'],
78
92
  'isADealerCode': !exists(json, 'isADealerCode') ? undefined : json['isADealerCode'],
79
93
  'dealerSystemName': !exists(json, 'dealerSystemName') ? undefined : json['dealerSystemName'],
@@ -91,6 +105,8 @@ export function GatewaysCredentialsToJSON(value?: GatewaysCredentials | null): a
91
105
 
92
106
  'username': value.username,
93
107
  'password': value.password,
108
+ 'firstName': value.firstName,
109
+ 'lastName': value.lastName,
94
110
  'repcode': value.repcode,
95
111
  'isADealerCode': value.isADealerCode,
96
112
  'dealerSystemName': value.dealerSystemName,
@@ -44,6 +44,18 @@ export interface GatewaysCredentialsWithSsn {
44
44
  * @memberof GatewaysCredentialsWithSsn
45
45
  */
46
46
  password: string | null;
47
+ /**
48
+ * FirstName
49
+ * @type {string}
50
+ * @memberof GatewaysCredentialsWithSsn
51
+ */
52
+ firstName?: string | null;
53
+ /**
54
+ * LastName
55
+ * @type {string}
56
+ * @memberof GatewaysCredentialsWithSsn
57
+ */
58
+ lastName?: string | null;
47
59
  /**
48
60
  * Rep code
49
61
  * @type {string}
@@ -93,6 +105,8 @@ export function GatewaysCredentialsWithSsnFromJSONTyped(json: any, ignoreDiscrim
93
105
 
94
106
  'username': json['username'],
95
107
  'password': json['password'],
108
+ 'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
109
+ 'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
96
110
  'repcode': !exists(json, 'repcode') ? undefined : json['repcode'],
97
111
  'isADealerCode': !exists(json, 'isADealerCode') ? undefined : json['isADealerCode'],
98
112
  'dealerSystemName': !exists(json, 'dealerSystemName') ? undefined : json['dealerSystemName'],
@@ -111,6 +125,8 @@ export function GatewaysCredentialsWithSsnToJSON(value?: GatewaysCredentialsWith
111
125
 
112
126
  'username': value.username,
113
127
  'password': value.password,
128
+ 'firstName': value.firstName,
129
+ 'lastName': value.lastName,
114
130
  'repcode': value.repcode,
115
131
  'isADealerCode': value.isADealerCode,
116
132
  'dealerSystemName': value.dealerSystemName,
@@ -19,12 +19,6 @@ import {
19
19
  LegacyContactAddressFromJSONTyped,
20
20
  LegacyContactAddressToJSON,
21
21
  } from './LegacyContactAddress';
22
- import type { LegacyProvisioningUserIdentifier } from './LegacyProvisioningUserIdentifier';
23
- import {
24
- LegacyProvisioningUserIdentifierFromJSON,
25
- LegacyProvisioningUserIdentifierFromJSONTyped,
26
- LegacyProvisioningUserIdentifierToJSON,
27
- } from './LegacyProvisioningUserIdentifier';
28
22
 
29
23
  /**
30
24
  *
@@ -73,43 +67,29 @@ export interface LegacyProvisioningUserPayload {
73
67
  */
74
68
  concurrentAccess?: number;
75
69
  /**
76
- * User initial password.
77
- * A random password will be set if none is specified and noPassword option is not used.
70
+ * DEPRECATED this option does nothing
78
71
  * @type {string}
79
72
  * @memberof LegacyProvisioningUserPayload
80
73
  */
81
74
  password?: string;
82
75
  /**
83
- * Disable password authentication.
84
- * Accepts true or false.
85
- * Default false
76
+ * DEPRECATED this option does nothing
86
77
  * @type {string}
87
78
  * @memberof LegacyProvisioningUserPayload
88
79
  */
89
80
  noPassword?: string;
90
81
  /**
91
- * The user will be ask to define a new password on the first login
92
- * Accepts true or false.
93
- * Default true
82
+ * DEPRECATED this option does nothing
94
83
  * @type {string}
95
84
  * @memberof LegacyProvisioningUserPayload
96
85
  */
97
86
  requirePasswordChange?: string;
98
87
  /**
99
- * Enable Mobile version.
100
- * Deprecated: the mobile is not enabled per user anymore.
101
- * Accepts true or false.
102
- * Default false
88
+ * DEPRECATED this option does nothing
103
89
  * @type {string}
104
90
  * @memberof LegacyProvisioningUserPayload
105
91
  */
106
92
  enableMobile?: string;
107
- /**
108
- * List of identifier to uniquely identify the user.
109
- * @type {Array<LegacyProvisioningUserIdentifier>}
110
- * @memberof LegacyProvisioningUserPayload
111
- */
112
- externalIdentifiers?: Array<LegacyProvisioningUserIdentifier>;
113
93
  /**
114
94
  * Allow the user to delegate access to his data
115
95
  * Accepts true or false.
@@ -207,7 +187,6 @@ export function LegacyProvisioningUserPayloadFromJSONTyped(json: any, ignoreDisc
207
187
  'noPassword': !exists(json, 'noPassword') ? undefined : json['noPassword'],
208
188
  'requirePasswordChange': !exists(json, 'requirePasswordChange') ? undefined : json['requirePasswordChange'],
209
189
  'enableMobile': !exists(json, 'enableMobile') ? undefined : json['enableMobile'],
210
- 'externalIdentifiers': !exists(json, 'externalIdentifiers') ? undefined : ((json['externalIdentifiers'] as Array<any>).map(LegacyProvisioningUserIdentifierFromJSON)),
211
190
  'allowDelegation': !exists(json, 'allowDelegation') ? undefined : json['allowDelegation'],
212
191
  'gender': !exists(json, 'gender') ? undefined : json['gender'],
213
192
  'phoneWork': !exists(json, 'phoneWork') ? undefined : json['phoneWork'],
@@ -240,7 +219,6 @@ export function LegacyProvisioningUserPayloadToJSON(value?: LegacyProvisioningUs
240
219
  'noPassword': value.noPassword,
241
220
  'requirePasswordChange': value.requirePasswordChange,
242
221
  'enableMobile': value.enableMobile,
243
- 'externalIdentifiers': value.externalIdentifiers === undefined ? undefined : ((value.externalIdentifiers as Array<any>).map(LegacyProvisioningUserIdentifierToJSON)),
244
222
  'allowDelegation': value.allowDelegation,
245
223
  'gender': value.gender,
246
224
  'phoneWork': value.phoneWork,
@@ -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';