@equisoft/equisoft-connect-sdk-typescript 13.52.1-snapshot.20260608125346 → 13.53.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.
- package/README.md +0 -1
- package/dist/apis/LegacyProvisioningApi.d.ts +0 -16
- package/dist/apis/LegacyProvisioningApi.js +0 -54
- package/dist/esm/apis/LegacyProvisioningApi.d.ts +0 -16
- package/dist/esm/apis/LegacyProvisioningApi.js +0 -54
- package/dist/esm/models/LegacyProvisioningUserPayload.d.ts +0 -98
- package/dist/esm/models/LegacyProvisioningUserPayload.js +0 -44
- package/dist/models/LegacyProvisioningUserPayload.d.ts +0 -98
- package/dist/models/LegacyProvisioningUserPayload.js +1 -45
- package/docs/LegacyProvisioningApi.md +0 -77
- package/docs/LegacyProvisioningUserPayload.md +0 -24
- package/package.json +1 -1
- package/src/apis/LegacyProvisioningApi.ts +0 -72
- package/src/models/LegacyProvisioningUserPayload.ts +0 -131
package/README.md
CHANGED
|
@@ -167,7 +167,6 @@ All URIs are relative to *http://localhost*
|
|
|
167
167
|
*LegacyProvisioningApi* | [**legacyProvisioningMonitorDatagateways**](docs/LegacyProvisioningApi.md#legacyprovisioningmonitordatagateways) | **GET** /apps/provisioning/kronos.provisioning.monitorDatagateways | Monitor stats of the datagateways for a given environment.
|
|
168
168
|
*LegacyProvisioningApi* | [**legacyProvisioningSyncControlData**](docs/LegacyProvisioningApi.md#legacyprovisioningsynccontroldata) | **POST** /apps/provisioning/kronos.provisioning.syncControlData | Sync one database pilotage.
|
|
169
169
|
*LegacyProvisioningApi* | [**legacyProvisioningSyncControlDataForAllDatabase**](docs/LegacyProvisioningApi.md#legacyprovisioningsynccontroldataforalldatabase) | **POST** /apps/provisioning/kronos.provisioning.syncControlDataForAllDatabase | Use gearman to sync all database for a given profile.
|
|
170
|
-
*LegacyProvisioningApi* | [**legacyProvisioningUpdateUser**](docs/LegacyProvisioningApi.md#legacyprovisioningupdateuser) | **POST** /apps/provisioning/kronos.provisioning.updateUser | Update a user.
|
|
171
170
|
*MovementApi* | [**addMovement**](docs/MovementApi.md#addmovement) | **POST** /crm/api/v1/movements | Add a movement
|
|
172
171
|
*MovementApi* | [**cancelMovement**](docs/MovementApi.md#cancelmovement) | **POST** /crm/api/v1/movements/{movementId}/cancel | Cancel a movement.
|
|
173
172
|
*MovementApi* | [**deleteMovement**](docs/MovementApi.md#deletemovement) | **DELETE** /crm/api/v1/movements/{movementId} | Delete a movement.
|
|
@@ -58,10 +58,6 @@ export interface LegacyProvisioningSyncControlDataRequest {
|
|
|
58
58
|
export interface LegacyProvisioningSyncControlDataForAllDatabaseRequest {
|
|
59
59
|
profile: string;
|
|
60
60
|
}
|
|
61
|
-
export interface LegacyProvisioningUpdateUserRequest {
|
|
62
|
-
userId: string;
|
|
63
|
-
legacyProvisioningUserPayloadRequest: LegacyProvisioningUserPayloadRequest;
|
|
64
|
-
}
|
|
65
61
|
/**
|
|
66
62
|
*
|
|
67
63
|
*/
|
|
@@ -262,16 +258,4 @@ export declare class LegacyProvisioningApi extends runtime.BaseAPI {
|
|
|
262
258
|
* Use gearman to sync all database for a given profile.
|
|
263
259
|
*/
|
|
264
260
|
legacyProvisioningSyncControlDataForAllDatabase(requestParameters: LegacyProvisioningSyncControlDataForAllDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LegacyProvisioningSyncControlDataForAllDatabaseResponse>;
|
|
265
|
-
/**
|
|
266
|
-
* Creates request options for legacyProvisioningUpdateUser without sending the request
|
|
267
|
-
*/
|
|
268
|
-
legacyProvisioningUpdateUserRequestOpts(requestParameters: LegacyProvisioningUpdateUserRequest): Promise<runtime.RequestOpts>;
|
|
269
|
-
/**
|
|
270
|
-
* Update a user.
|
|
271
|
-
*/
|
|
272
|
-
legacyProvisioningUpdateUserRaw(requestParameters: LegacyProvisioningUpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LegacyProvisioningAddUpdateUserResponse>>;
|
|
273
|
-
/**
|
|
274
|
-
* Update a user.
|
|
275
|
-
*/
|
|
276
|
-
legacyProvisioningUpdateUser(requestParameters: LegacyProvisioningUpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LegacyProvisioningAddUpdateUserResponse>;
|
|
277
261
|
}
|
|
@@ -826,59 +826,5 @@ class LegacyProvisioningApi extends runtime.BaseAPI {
|
|
|
826
826
|
return yield response.value();
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
-
/**
|
|
830
|
-
* Creates request options for legacyProvisioningUpdateUser without sending the request
|
|
831
|
-
*/
|
|
832
|
-
legacyProvisioningUpdateUserRequestOpts(requestParameters) {
|
|
833
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
834
|
-
if (requestParameters['userId'] == null) {
|
|
835
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling legacyProvisioningUpdateUser().');
|
|
836
|
-
}
|
|
837
|
-
if (requestParameters['legacyProvisioningUserPayloadRequest'] == null) {
|
|
838
|
-
throw new runtime.RequiredError('legacyProvisioningUserPayloadRequest', 'Required parameter "legacyProvisioningUserPayloadRequest" was null or undefined when calling legacyProvisioningUpdateUser().');
|
|
839
|
-
}
|
|
840
|
-
const queryParameters = {};
|
|
841
|
-
if (requestParameters['userId'] != null) {
|
|
842
|
-
queryParameters['userId'] = requestParameters['userId'];
|
|
843
|
-
}
|
|
844
|
-
const headerParameters = {};
|
|
845
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
846
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
847
|
-
// oauth required
|
|
848
|
-
const token = this.configuration.accessToken;
|
|
849
|
-
const tokenString = yield token("OAuth2", ["crm:database", "crm:user"]);
|
|
850
|
-
if (tokenString) {
|
|
851
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
let urlPath = `/apps/provisioning/kronos.provisioning.updateUser`;
|
|
855
|
-
return {
|
|
856
|
-
path: urlPath,
|
|
857
|
-
method: 'POST',
|
|
858
|
-
headers: headerParameters,
|
|
859
|
-
query: queryParameters,
|
|
860
|
-
body: (0, index_1.LegacyProvisioningUserPayloadRequestToJSON)(requestParameters['legacyProvisioningUserPayloadRequest']),
|
|
861
|
-
};
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
/**
|
|
865
|
-
* Update a user.
|
|
866
|
-
*/
|
|
867
|
-
legacyProvisioningUpdateUserRaw(requestParameters, initOverrides) {
|
|
868
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
869
|
-
const requestOptions = yield this.legacyProvisioningUpdateUserRequestOpts(requestParameters);
|
|
870
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
871
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LegacyProvisioningAddUpdateUserResponseFromJSON)(jsonValue));
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
/**
|
|
875
|
-
* Update a user.
|
|
876
|
-
*/
|
|
877
|
-
legacyProvisioningUpdateUser(requestParameters, initOverrides) {
|
|
878
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
879
|
-
const response = yield this.legacyProvisioningUpdateUserRaw(requestParameters, initOverrides);
|
|
880
|
-
return yield response.value();
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
829
|
}
|
|
884
830
|
exports.LegacyProvisioningApi = LegacyProvisioningApi;
|
|
@@ -58,10 +58,6 @@ export interface LegacyProvisioningSyncControlDataRequest {
|
|
|
58
58
|
export interface LegacyProvisioningSyncControlDataForAllDatabaseRequest {
|
|
59
59
|
profile: string;
|
|
60
60
|
}
|
|
61
|
-
export interface LegacyProvisioningUpdateUserRequest {
|
|
62
|
-
userId: string;
|
|
63
|
-
legacyProvisioningUserPayloadRequest: LegacyProvisioningUserPayloadRequest;
|
|
64
|
-
}
|
|
65
61
|
/**
|
|
66
62
|
*
|
|
67
63
|
*/
|
|
@@ -262,16 +258,4 @@ export declare class LegacyProvisioningApi extends runtime.BaseAPI {
|
|
|
262
258
|
* Use gearman to sync all database for a given profile.
|
|
263
259
|
*/
|
|
264
260
|
legacyProvisioningSyncControlDataForAllDatabase(requestParameters: LegacyProvisioningSyncControlDataForAllDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LegacyProvisioningSyncControlDataForAllDatabaseResponse>;
|
|
265
|
-
/**
|
|
266
|
-
* Creates request options for legacyProvisioningUpdateUser without sending the request
|
|
267
|
-
*/
|
|
268
|
-
legacyProvisioningUpdateUserRequestOpts(requestParameters: LegacyProvisioningUpdateUserRequest): Promise<runtime.RequestOpts>;
|
|
269
|
-
/**
|
|
270
|
-
* Update a user.
|
|
271
|
-
*/
|
|
272
|
-
legacyProvisioningUpdateUserRaw(requestParameters: LegacyProvisioningUpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LegacyProvisioningAddUpdateUserResponse>>;
|
|
273
|
-
/**
|
|
274
|
-
* Update a user.
|
|
275
|
-
*/
|
|
276
|
-
legacyProvisioningUpdateUser(requestParameters: LegacyProvisioningUpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LegacyProvisioningAddUpdateUserResponse>;
|
|
277
261
|
}
|
|
@@ -823,58 +823,4 @@ export class LegacyProvisioningApi extends runtime.BaseAPI {
|
|
|
823
823
|
return yield response.value();
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
|
-
/**
|
|
827
|
-
* Creates request options for legacyProvisioningUpdateUser without sending the request
|
|
828
|
-
*/
|
|
829
|
-
legacyProvisioningUpdateUserRequestOpts(requestParameters) {
|
|
830
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
831
|
-
if (requestParameters['userId'] == null) {
|
|
832
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling legacyProvisioningUpdateUser().');
|
|
833
|
-
}
|
|
834
|
-
if (requestParameters['legacyProvisioningUserPayloadRequest'] == null) {
|
|
835
|
-
throw new runtime.RequiredError('legacyProvisioningUserPayloadRequest', 'Required parameter "legacyProvisioningUserPayloadRequest" was null or undefined when calling legacyProvisioningUpdateUser().');
|
|
836
|
-
}
|
|
837
|
-
const queryParameters = {};
|
|
838
|
-
if (requestParameters['userId'] != null) {
|
|
839
|
-
queryParameters['userId'] = requestParameters['userId'];
|
|
840
|
-
}
|
|
841
|
-
const headerParameters = {};
|
|
842
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
843
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
844
|
-
// oauth required
|
|
845
|
-
const token = this.configuration.accessToken;
|
|
846
|
-
const tokenString = yield token("OAuth2", ["crm:database", "crm:user"]);
|
|
847
|
-
if (tokenString) {
|
|
848
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
let urlPath = `/apps/provisioning/kronos.provisioning.updateUser`;
|
|
852
|
-
return {
|
|
853
|
-
path: urlPath,
|
|
854
|
-
method: 'POST',
|
|
855
|
-
headers: headerParameters,
|
|
856
|
-
query: queryParameters,
|
|
857
|
-
body: LegacyProvisioningUserPayloadRequestToJSON(requestParameters['legacyProvisioningUserPayloadRequest']),
|
|
858
|
-
};
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
/**
|
|
862
|
-
* Update a user.
|
|
863
|
-
*/
|
|
864
|
-
legacyProvisioningUpdateUserRaw(requestParameters, initOverrides) {
|
|
865
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
866
|
-
const requestOptions = yield this.legacyProvisioningUpdateUserRequestOpts(requestParameters);
|
|
867
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
868
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => LegacyProvisioningAddUpdateUserResponseFromJSON(jsonValue));
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
/**
|
|
872
|
-
* Update a user.
|
|
873
|
-
*/
|
|
874
|
-
legacyProvisioningUpdateUser(requestParameters, initOverrides) {
|
|
875
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
876
|
-
const response = yield this.legacyProvisioningUpdateUserRaw(requestParameters, initOverrides);
|
|
877
|
-
return yield response.value();
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
826
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { LegacyContactAddress } from './LegacyContactAddress';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -52,94 +51,18 @@ export interface LegacyProvisioningUserPayload {
|
|
|
52
51
|
* @memberof LegacyProvisioningUserPayload
|
|
53
52
|
*/
|
|
54
53
|
concurrentAccess?: number;
|
|
55
|
-
/**
|
|
56
|
-
* This option does nothing.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof LegacyProvisioningUserPayload
|
|
59
|
-
* @deprecated
|
|
60
|
-
*/
|
|
61
|
-
password?: string;
|
|
62
|
-
/**
|
|
63
|
-
* This option does nothing.
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof LegacyProvisioningUserPayload
|
|
66
|
-
* @deprecated
|
|
67
|
-
*/
|
|
68
|
-
noPassword?: string;
|
|
69
|
-
/**
|
|
70
|
-
* This option does nothing.
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof LegacyProvisioningUserPayload
|
|
73
|
-
* @deprecated
|
|
74
|
-
*/
|
|
75
|
-
requirePasswordChange?: string;
|
|
76
|
-
/**
|
|
77
|
-
* This option does nothing.
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof LegacyProvisioningUserPayload
|
|
80
|
-
* @deprecated
|
|
81
|
-
*/
|
|
82
|
-
enableMobile?: string;
|
|
83
54
|
/**
|
|
84
55
|
* Allow the user to delegate access to his data (false, true. Default: false).
|
|
85
56
|
* @type {string}
|
|
86
57
|
* @memberof LegacyProvisioningUserPayload
|
|
87
58
|
*/
|
|
88
59
|
allowDelegation?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Gender of this user.
|
|
91
|
-
* @type {LegacyProvisioningUserPayloadGenderEnum}
|
|
92
|
-
* @memberof LegacyProvisioningUserPayload
|
|
93
|
-
*/
|
|
94
|
-
gender?: LegacyProvisioningUserPayloadGenderEnum;
|
|
95
|
-
/**
|
|
96
|
-
* Work phone number of this user.
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof LegacyProvisioningUserPayload
|
|
99
|
-
*/
|
|
100
|
-
phoneWork?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Extension of work phone number of this user.
|
|
103
|
-
* @type {string}
|
|
104
|
-
* @memberof LegacyProvisioningUserPayload
|
|
105
|
-
*/
|
|
106
|
-
phoneWorkExtension?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Home phone number of this user.
|
|
109
|
-
* @type {string}
|
|
110
|
-
* @memberof LegacyProvisioningUserPayload
|
|
111
|
-
*/
|
|
112
|
-
phoneHome?: string;
|
|
113
60
|
/**
|
|
114
61
|
* Cellphone number of this user.
|
|
115
62
|
* @type {string}
|
|
116
63
|
* @memberof LegacyProvisioningUserPayload
|
|
117
64
|
*/
|
|
118
65
|
phoneCell?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Fax phone number of this user.
|
|
121
|
-
* @type {string}
|
|
122
|
-
* @memberof LegacyProvisioningUserPayload
|
|
123
|
-
*/
|
|
124
|
-
phoneFax?: string;
|
|
125
|
-
/**
|
|
126
|
-
* The phone type to be the main phone number. Default: work.
|
|
127
|
-
* @type {LegacyProvisioningUserPayloadPhoneMainEnum}
|
|
128
|
-
* @memberof LegacyProvisioningUserPayload
|
|
129
|
-
*/
|
|
130
|
-
phoneMain?: LegacyProvisioningUserPayloadPhoneMainEnum;
|
|
131
|
-
/**
|
|
132
|
-
* Address of this user.
|
|
133
|
-
* @type {Array<LegacyContactAddress>}
|
|
134
|
-
* @memberof LegacyProvisioningUserPayload
|
|
135
|
-
*/
|
|
136
|
-
address?: Array<LegacyContactAddress>;
|
|
137
|
-
/**
|
|
138
|
-
* Skip Equisoft Plan (false, true. Default: false).
|
|
139
|
-
* @type {string}
|
|
140
|
-
* @memberof LegacyProvisioningUserPayload
|
|
141
|
-
*/
|
|
142
|
-
noFNA?: string;
|
|
143
66
|
}
|
|
144
67
|
/**
|
|
145
68
|
* @export
|
|
@@ -160,27 +83,6 @@ export declare const LegacyProvisioningUserPayloadRoleEnum: {
|
|
|
160
83
|
readonly unknown_default_open_api: "11184809";
|
|
161
84
|
};
|
|
162
85
|
export type LegacyProvisioningUserPayloadRoleEnum = typeof LegacyProvisioningUserPayloadRoleEnum[keyof typeof LegacyProvisioningUserPayloadRoleEnum];
|
|
163
|
-
/**
|
|
164
|
-
* @export
|
|
165
|
-
*/
|
|
166
|
-
export declare const LegacyProvisioningUserPayloadGenderEnum: {
|
|
167
|
-
readonly F: "F";
|
|
168
|
-
readonly M: "M";
|
|
169
|
-
readonly UNKNOWN: "UNKNOWN";
|
|
170
|
-
readonly unknown_default_open_api: "11184809";
|
|
171
|
-
};
|
|
172
|
-
export type LegacyProvisioningUserPayloadGenderEnum = typeof LegacyProvisioningUserPayloadGenderEnum[keyof typeof LegacyProvisioningUserPayloadGenderEnum];
|
|
173
|
-
/**
|
|
174
|
-
* @export
|
|
175
|
-
*/
|
|
176
|
-
export declare const LegacyProvisioningUserPayloadPhoneMainEnum: {
|
|
177
|
-
readonly cell: "cell";
|
|
178
|
-
readonly fax: "fax";
|
|
179
|
-
readonly home: "home";
|
|
180
|
-
readonly work: "work";
|
|
181
|
-
readonly unknown_default_open_api: "11184809";
|
|
182
|
-
};
|
|
183
|
-
export type LegacyProvisioningUserPayloadPhoneMainEnum = typeof LegacyProvisioningUserPayloadPhoneMainEnum[keyof typeof LegacyProvisioningUserPayloadPhoneMainEnum];
|
|
184
86
|
/**
|
|
185
87
|
* Check if a given object implements the LegacyProvisioningUserPayload interface.
|
|
186
88
|
*/
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { LegacyContactAddressFromJSON, LegacyContactAddressToJSON, } from './LegacyContactAddress';
|
|
15
14
|
/**
|
|
16
15
|
* @export
|
|
17
16
|
*/
|
|
@@ -29,25 +28,6 @@ export const LegacyProvisioningUserPayloadRoleEnum = {
|
|
|
29
28
|
KRONOS: 'KRONOS',
|
|
30
29
|
unknown_default_open_api: '11184809'
|
|
31
30
|
};
|
|
32
|
-
/**
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
|
-
export const LegacyProvisioningUserPayloadGenderEnum = {
|
|
36
|
-
F: 'F',
|
|
37
|
-
M: 'M',
|
|
38
|
-
UNKNOWN: 'UNKNOWN',
|
|
39
|
-
unknown_default_open_api: '11184809'
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* @export
|
|
43
|
-
*/
|
|
44
|
-
export const LegacyProvisioningUserPayloadPhoneMainEnum = {
|
|
45
|
-
cell: 'cell',
|
|
46
|
-
fax: 'fax',
|
|
47
|
-
home: 'home',
|
|
48
|
-
work: 'work',
|
|
49
|
-
unknown_default_open_api: '11184809'
|
|
50
|
-
};
|
|
51
31
|
/**
|
|
52
32
|
* Check if a given object implements the LegacyProvisioningUserPayload interface.
|
|
53
33
|
*/
|
|
@@ -68,20 +48,8 @@ export function LegacyProvisioningUserPayloadFromJSONTyped(json, ignoreDiscrimin
|
|
|
68
48
|
'lang': json['lang'] == null ? undefined : json['lang'],
|
|
69
49
|
'role': json['role'] == null ? undefined : json['role'],
|
|
70
50
|
'concurrentAccess': json['concurrentAccess'] == null ? undefined : json['concurrentAccess'],
|
|
71
|
-
'password': json['password'] == null ? undefined : json['password'],
|
|
72
|
-
'noPassword': json['noPassword'] == null ? undefined : json['noPassword'],
|
|
73
|
-
'requirePasswordChange': json['requirePasswordChange'] == null ? undefined : json['requirePasswordChange'],
|
|
74
|
-
'enableMobile': json['enableMobile'] == null ? undefined : json['enableMobile'],
|
|
75
51
|
'allowDelegation': json['allowDelegation'] == null ? undefined : json['allowDelegation'],
|
|
76
|
-
'gender': json['gender'] == null ? undefined : json['gender'],
|
|
77
|
-
'phoneWork': json['phoneWork'] == null ? undefined : json['phoneWork'],
|
|
78
|
-
'phoneWorkExtension': json['phoneWorkExtension'] == null ? undefined : json['phoneWorkExtension'],
|
|
79
|
-
'phoneHome': json['phoneHome'] == null ? undefined : json['phoneHome'],
|
|
80
52
|
'phoneCell': json['phoneCell'] == null ? undefined : json['phoneCell'],
|
|
81
|
-
'phoneFax': json['phoneFax'] == null ? undefined : json['phoneFax'],
|
|
82
|
-
'phoneMain': json['phoneMain'] == null ? undefined : json['phoneMain'],
|
|
83
|
-
'address': json['address'] == null ? undefined : (json['address'].map(LegacyContactAddressFromJSON)),
|
|
84
|
-
'noFNA': json['noFNA'] == null ? undefined : json['noFNA'],
|
|
85
53
|
};
|
|
86
54
|
}
|
|
87
55
|
export function LegacyProvisioningUserPayloadToJSON(json) {
|
|
@@ -98,19 +66,7 @@ export function LegacyProvisioningUserPayloadToJSONTyped(value, ignoreDiscrimina
|
|
|
98
66
|
'lang': value['lang'],
|
|
99
67
|
'role': value['role'],
|
|
100
68
|
'concurrentAccess': value['concurrentAccess'],
|
|
101
|
-
'password': value['password'],
|
|
102
|
-
'noPassword': value['noPassword'],
|
|
103
|
-
'requirePasswordChange': value['requirePasswordChange'],
|
|
104
|
-
'enableMobile': value['enableMobile'],
|
|
105
69
|
'allowDelegation': value['allowDelegation'],
|
|
106
|
-
'gender': value['gender'],
|
|
107
|
-
'phoneWork': value['phoneWork'],
|
|
108
|
-
'phoneWorkExtension': value['phoneWorkExtension'],
|
|
109
|
-
'phoneHome': value['phoneHome'],
|
|
110
70
|
'phoneCell': value['phoneCell'],
|
|
111
|
-
'phoneFax': value['phoneFax'],
|
|
112
|
-
'phoneMain': value['phoneMain'],
|
|
113
|
-
'address': value['address'] == null ? undefined : (value['address'].map(LegacyContactAddressToJSON)),
|
|
114
|
-
'noFNA': value['noFNA'],
|
|
115
71
|
};
|
|
116
72
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { LegacyContactAddress } from './LegacyContactAddress';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -52,94 +51,18 @@ export interface LegacyProvisioningUserPayload {
|
|
|
52
51
|
* @memberof LegacyProvisioningUserPayload
|
|
53
52
|
*/
|
|
54
53
|
concurrentAccess?: number;
|
|
55
|
-
/**
|
|
56
|
-
* This option does nothing.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof LegacyProvisioningUserPayload
|
|
59
|
-
* @deprecated
|
|
60
|
-
*/
|
|
61
|
-
password?: string;
|
|
62
|
-
/**
|
|
63
|
-
* This option does nothing.
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof LegacyProvisioningUserPayload
|
|
66
|
-
* @deprecated
|
|
67
|
-
*/
|
|
68
|
-
noPassword?: string;
|
|
69
|
-
/**
|
|
70
|
-
* This option does nothing.
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof LegacyProvisioningUserPayload
|
|
73
|
-
* @deprecated
|
|
74
|
-
*/
|
|
75
|
-
requirePasswordChange?: string;
|
|
76
|
-
/**
|
|
77
|
-
* This option does nothing.
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof LegacyProvisioningUserPayload
|
|
80
|
-
* @deprecated
|
|
81
|
-
*/
|
|
82
|
-
enableMobile?: string;
|
|
83
54
|
/**
|
|
84
55
|
* Allow the user to delegate access to his data (false, true. Default: false).
|
|
85
56
|
* @type {string}
|
|
86
57
|
* @memberof LegacyProvisioningUserPayload
|
|
87
58
|
*/
|
|
88
59
|
allowDelegation?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Gender of this user.
|
|
91
|
-
* @type {LegacyProvisioningUserPayloadGenderEnum}
|
|
92
|
-
* @memberof LegacyProvisioningUserPayload
|
|
93
|
-
*/
|
|
94
|
-
gender?: LegacyProvisioningUserPayloadGenderEnum;
|
|
95
|
-
/**
|
|
96
|
-
* Work phone number of this user.
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof LegacyProvisioningUserPayload
|
|
99
|
-
*/
|
|
100
|
-
phoneWork?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Extension of work phone number of this user.
|
|
103
|
-
* @type {string}
|
|
104
|
-
* @memberof LegacyProvisioningUserPayload
|
|
105
|
-
*/
|
|
106
|
-
phoneWorkExtension?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Home phone number of this user.
|
|
109
|
-
* @type {string}
|
|
110
|
-
* @memberof LegacyProvisioningUserPayload
|
|
111
|
-
*/
|
|
112
|
-
phoneHome?: string;
|
|
113
60
|
/**
|
|
114
61
|
* Cellphone number of this user.
|
|
115
62
|
* @type {string}
|
|
116
63
|
* @memberof LegacyProvisioningUserPayload
|
|
117
64
|
*/
|
|
118
65
|
phoneCell?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Fax phone number of this user.
|
|
121
|
-
* @type {string}
|
|
122
|
-
* @memberof LegacyProvisioningUserPayload
|
|
123
|
-
*/
|
|
124
|
-
phoneFax?: string;
|
|
125
|
-
/**
|
|
126
|
-
* The phone type to be the main phone number. Default: work.
|
|
127
|
-
* @type {LegacyProvisioningUserPayloadPhoneMainEnum}
|
|
128
|
-
* @memberof LegacyProvisioningUserPayload
|
|
129
|
-
*/
|
|
130
|
-
phoneMain?: LegacyProvisioningUserPayloadPhoneMainEnum;
|
|
131
|
-
/**
|
|
132
|
-
* Address of this user.
|
|
133
|
-
* @type {Array<LegacyContactAddress>}
|
|
134
|
-
* @memberof LegacyProvisioningUserPayload
|
|
135
|
-
*/
|
|
136
|
-
address?: Array<LegacyContactAddress>;
|
|
137
|
-
/**
|
|
138
|
-
* Skip Equisoft Plan (false, true. Default: false).
|
|
139
|
-
* @type {string}
|
|
140
|
-
* @memberof LegacyProvisioningUserPayload
|
|
141
|
-
*/
|
|
142
|
-
noFNA?: string;
|
|
143
66
|
}
|
|
144
67
|
/**
|
|
145
68
|
* @export
|
|
@@ -160,27 +83,6 @@ export declare const LegacyProvisioningUserPayloadRoleEnum: {
|
|
|
160
83
|
readonly unknown_default_open_api: "11184809";
|
|
161
84
|
};
|
|
162
85
|
export type LegacyProvisioningUserPayloadRoleEnum = typeof LegacyProvisioningUserPayloadRoleEnum[keyof typeof LegacyProvisioningUserPayloadRoleEnum];
|
|
163
|
-
/**
|
|
164
|
-
* @export
|
|
165
|
-
*/
|
|
166
|
-
export declare const LegacyProvisioningUserPayloadGenderEnum: {
|
|
167
|
-
readonly F: "F";
|
|
168
|
-
readonly M: "M";
|
|
169
|
-
readonly UNKNOWN: "UNKNOWN";
|
|
170
|
-
readonly unknown_default_open_api: "11184809";
|
|
171
|
-
};
|
|
172
|
-
export type LegacyProvisioningUserPayloadGenderEnum = typeof LegacyProvisioningUserPayloadGenderEnum[keyof typeof LegacyProvisioningUserPayloadGenderEnum];
|
|
173
|
-
/**
|
|
174
|
-
* @export
|
|
175
|
-
*/
|
|
176
|
-
export declare const LegacyProvisioningUserPayloadPhoneMainEnum: {
|
|
177
|
-
readonly cell: "cell";
|
|
178
|
-
readonly fax: "fax";
|
|
179
|
-
readonly home: "home";
|
|
180
|
-
readonly work: "work";
|
|
181
|
-
readonly unknown_default_open_api: "11184809";
|
|
182
|
-
};
|
|
183
|
-
export type LegacyProvisioningUserPayloadPhoneMainEnum = typeof LegacyProvisioningUserPayloadPhoneMainEnum[keyof typeof LegacyProvisioningUserPayloadPhoneMainEnum];
|
|
184
86
|
/**
|
|
185
87
|
* Check if a given object implements the LegacyProvisioningUserPayload interface.
|
|
186
88
|
*/
|
|
@@ -13,13 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.LegacyProvisioningUserPayloadRoleEnum = exports.LegacyProvisioningUserPayloadLangEnum = void 0;
|
|
17
17
|
exports.instanceOfLegacyProvisioningUserPayload = instanceOfLegacyProvisioningUserPayload;
|
|
18
18
|
exports.LegacyProvisioningUserPayloadFromJSON = LegacyProvisioningUserPayloadFromJSON;
|
|
19
19
|
exports.LegacyProvisioningUserPayloadFromJSONTyped = LegacyProvisioningUserPayloadFromJSONTyped;
|
|
20
20
|
exports.LegacyProvisioningUserPayloadToJSON = LegacyProvisioningUserPayloadToJSON;
|
|
21
21
|
exports.LegacyProvisioningUserPayloadToJSONTyped = LegacyProvisioningUserPayloadToJSONTyped;
|
|
22
|
-
const LegacyContactAddress_1 = require("./LegacyContactAddress");
|
|
23
22
|
/**
|
|
24
23
|
* @export
|
|
25
24
|
*/
|
|
@@ -37,25 +36,6 @@ exports.LegacyProvisioningUserPayloadRoleEnum = {
|
|
|
37
36
|
KRONOS: 'KRONOS',
|
|
38
37
|
unknown_default_open_api: '11184809'
|
|
39
38
|
};
|
|
40
|
-
/**
|
|
41
|
-
* @export
|
|
42
|
-
*/
|
|
43
|
-
exports.LegacyProvisioningUserPayloadGenderEnum = {
|
|
44
|
-
F: 'F',
|
|
45
|
-
M: 'M',
|
|
46
|
-
UNKNOWN: 'UNKNOWN',
|
|
47
|
-
unknown_default_open_api: '11184809'
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* @export
|
|
51
|
-
*/
|
|
52
|
-
exports.LegacyProvisioningUserPayloadPhoneMainEnum = {
|
|
53
|
-
cell: 'cell',
|
|
54
|
-
fax: 'fax',
|
|
55
|
-
home: 'home',
|
|
56
|
-
work: 'work',
|
|
57
|
-
unknown_default_open_api: '11184809'
|
|
58
|
-
};
|
|
59
39
|
/**
|
|
60
40
|
* Check if a given object implements the LegacyProvisioningUserPayload interface.
|
|
61
41
|
*/
|
|
@@ -76,20 +56,8 @@ function LegacyProvisioningUserPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
56
|
'lang': json['lang'] == null ? undefined : json['lang'],
|
|
77
57
|
'role': json['role'] == null ? undefined : json['role'],
|
|
78
58
|
'concurrentAccess': json['concurrentAccess'] == null ? undefined : json['concurrentAccess'],
|
|
79
|
-
'password': json['password'] == null ? undefined : json['password'],
|
|
80
|
-
'noPassword': json['noPassword'] == null ? undefined : json['noPassword'],
|
|
81
|
-
'requirePasswordChange': json['requirePasswordChange'] == null ? undefined : json['requirePasswordChange'],
|
|
82
|
-
'enableMobile': json['enableMobile'] == null ? undefined : json['enableMobile'],
|
|
83
59
|
'allowDelegation': json['allowDelegation'] == null ? undefined : json['allowDelegation'],
|
|
84
|
-
'gender': json['gender'] == null ? undefined : json['gender'],
|
|
85
|
-
'phoneWork': json['phoneWork'] == null ? undefined : json['phoneWork'],
|
|
86
|
-
'phoneWorkExtension': json['phoneWorkExtension'] == null ? undefined : json['phoneWorkExtension'],
|
|
87
|
-
'phoneHome': json['phoneHome'] == null ? undefined : json['phoneHome'],
|
|
88
60
|
'phoneCell': json['phoneCell'] == null ? undefined : json['phoneCell'],
|
|
89
|
-
'phoneFax': json['phoneFax'] == null ? undefined : json['phoneFax'],
|
|
90
|
-
'phoneMain': json['phoneMain'] == null ? undefined : json['phoneMain'],
|
|
91
|
-
'address': json['address'] == null ? undefined : (json['address'].map(LegacyContactAddress_1.LegacyContactAddressFromJSON)),
|
|
92
|
-
'noFNA': json['noFNA'] == null ? undefined : json['noFNA'],
|
|
93
61
|
};
|
|
94
62
|
}
|
|
95
63
|
function LegacyProvisioningUserPayloadToJSON(json) {
|
|
@@ -106,19 +74,7 @@ function LegacyProvisioningUserPayloadToJSONTyped(value, ignoreDiscriminator = f
|
|
|
106
74
|
'lang': value['lang'],
|
|
107
75
|
'role': value['role'],
|
|
108
76
|
'concurrentAccess': value['concurrentAccess'],
|
|
109
|
-
'password': value['password'],
|
|
110
|
-
'noPassword': value['noPassword'],
|
|
111
|
-
'requirePasswordChange': value['requirePasswordChange'],
|
|
112
|
-
'enableMobile': value['enableMobile'],
|
|
113
77
|
'allowDelegation': value['allowDelegation'],
|
|
114
|
-
'gender': value['gender'],
|
|
115
|
-
'phoneWork': value['phoneWork'],
|
|
116
|
-
'phoneWorkExtension': value['phoneWorkExtension'],
|
|
117
|
-
'phoneHome': value['phoneHome'],
|
|
118
78
|
'phoneCell': value['phoneCell'],
|
|
119
|
-
'phoneFax': value['phoneFax'],
|
|
120
|
-
'phoneMain': value['phoneMain'],
|
|
121
|
-
'address': value['address'] == null ? undefined : (value['address'].map(LegacyContactAddress_1.LegacyContactAddressToJSON)),
|
|
122
|
-
'noFNA': value['noFNA'],
|
|
123
79
|
};
|
|
124
80
|
}
|
|
@@ -20,7 +20,6 @@ All URIs are relative to *http://localhost*
|
|
|
20
20
|
| [**legacyProvisioningMonitorDatagateways**](LegacyProvisioningApi.md#legacyprovisioningmonitordatagateways) | **GET** /apps/provisioning/kronos.provisioning.monitorDatagateways | Monitor stats of the datagateways for a given environment. |
|
|
21
21
|
| [**legacyProvisioningSyncControlData**](LegacyProvisioningApi.md#legacyprovisioningsynccontroldata) | **POST** /apps/provisioning/kronos.provisioning.syncControlData | Sync one database pilotage. |
|
|
22
22
|
| [**legacyProvisioningSyncControlDataForAllDatabase**](LegacyProvisioningApi.md#legacyprovisioningsynccontroldataforalldatabase) | **POST** /apps/provisioning/kronos.provisioning.syncControlDataForAllDatabase | Use gearman to sync all database for a given profile. |
|
|
23
|
-
| [**legacyProvisioningUpdateUser**](LegacyProvisioningApi.md#legacyprovisioningupdateuser) | **POST** /apps/provisioning/kronos.provisioning.updateUser | Update a user. |
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
|
|
@@ -1185,79 +1184,3 @@ example().catch(console.error);
|
|
|
1185
1184
|
|
|
1186
1185
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1187
1186
|
|
|
1188
|
-
|
|
1189
|
-
## legacyProvisioningUpdateUser
|
|
1190
|
-
|
|
1191
|
-
> LegacyProvisioningAddUpdateUserResponse legacyProvisioningUpdateUser(userId, legacyProvisioningUserPayloadRequest)
|
|
1192
|
-
|
|
1193
|
-
Update a user.
|
|
1194
|
-
|
|
1195
|
-
### Example
|
|
1196
|
-
|
|
1197
|
-
```ts
|
|
1198
|
-
import {
|
|
1199
|
-
Configuration,
|
|
1200
|
-
LegacyProvisioningApi,
|
|
1201
|
-
} from '@equisoft/equisoft-connect-sdk-typescript';
|
|
1202
|
-
import type { LegacyProvisioningUpdateUserRequest } from '@equisoft/equisoft-connect-sdk-typescript';
|
|
1203
|
-
|
|
1204
|
-
async function example() {
|
|
1205
|
-
console.log("🚀 Testing @equisoft/equisoft-connect-sdk-typescript SDK...");
|
|
1206
|
-
const config = new Configuration({
|
|
1207
|
-
// To configure OAuth2 access token for authorization: OAuth2 accessCode
|
|
1208
|
-
accessToken: "YOUR ACCESS TOKEN",
|
|
1209
|
-
});
|
|
1210
|
-
const api = new LegacyProvisioningApi(config);
|
|
1211
|
-
|
|
1212
|
-
const body = {
|
|
1213
|
-
// string | User identifier.
|
|
1214
|
-
userId: userId_example,
|
|
1215
|
-
// LegacyProvisioningUserPayloadRequest
|
|
1216
|
-
legacyProvisioningUserPayloadRequest: ...,
|
|
1217
|
-
} satisfies LegacyProvisioningUpdateUserRequest;
|
|
1218
|
-
|
|
1219
|
-
try {
|
|
1220
|
-
const data = await api.legacyProvisioningUpdateUser(body);
|
|
1221
|
-
console.log(data);
|
|
1222
|
-
} catch (error) {
|
|
1223
|
-
console.error(error);
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
// Run the test
|
|
1228
|
-
example().catch(console.error);
|
|
1229
|
-
```
|
|
1230
|
-
|
|
1231
|
-
### Parameters
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
| Name | Type | Description | Notes |
|
|
1235
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1236
|
-
| **userId** | `string` | User identifier. | [Defaults to `undefined`] |
|
|
1237
|
-
| **legacyProvisioningUserPayloadRequest** | [LegacyProvisioningUserPayloadRequest](LegacyProvisioningUserPayloadRequest.md) | | |
|
|
1238
|
-
|
|
1239
|
-
### Return type
|
|
1240
|
-
|
|
1241
|
-
[**LegacyProvisioningAddUpdateUserResponse**](LegacyProvisioningAddUpdateUserResponse.md)
|
|
1242
|
-
|
|
1243
|
-
### Authorization
|
|
1244
|
-
|
|
1245
|
-
[OAuth2 accessCode](../README.md#OAuth2-accessCode)
|
|
1246
|
-
|
|
1247
|
-
### HTTP request headers
|
|
1248
|
-
|
|
1249
|
-
- **Content-Type**: `application/json`
|
|
1250
|
-
- **Accept**: `application/json`
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
### HTTP response details
|
|
1254
|
-
| Status code | Description | Response headers |
|
|
1255
|
-
|-------------|-------------|------------------|
|
|
1256
|
-
| **200** | Ok | - |
|
|
1257
|
-
| **400** | Bad Request | - |
|
|
1258
|
-
| **401** | Unauthorized | - |
|
|
1259
|
-
| **404** | Not Found | - |
|
|
1260
|
-
| **500** | Internal Server Error | - |
|
|
1261
|
-
|
|
1262
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1263
|
-
|
|
@@ -12,20 +12,8 @@ Name | Type
|
|
|
12
12
|
`lang` | string
|
|
13
13
|
`role` | string
|
|
14
14
|
`concurrentAccess` | number
|
|
15
|
-
`password` | string
|
|
16
|
-
`noPassword` | string
|
|
17
|
-
`requirePasswordChange` | string
|
|
18
|
-
`enableMobile` | string
|
|
19
15
|
`allowDelegation` | string
|
|
20
|
-
`gender` | string
|
|
21
|
-
`phoneWork` | string
|
|
22
|
-
`phoneWorkExtension` | string
|
|
23
|
-
`phoneHome` | string
|
|
24
16
|
`phoneCell` | string
|
|
25
|
-
`phoneFax` | string
|
|
26
|
-
`phoneMain` | string
|
|
27
|
-
`address` | [Array<LegacyContactAddress>](LegacyContactAddress.md)
|
|
28
|
-
`noFNA` | string
|
|
29
17
|
|
|
30
18
|
## Example
|
|
31
19
|
|
|
@@ -40,20 +28,8 @@ const example = {
|
|
|
40
28
|
"lang": null,
|
|
41
29
|
"role": null,
|
|
42
30
|
"concurrentAccess": null,
|
|
43
|
-
"password": null,
|
|
44
|
-
"noPassword": null,
|
|
45
|
-
"requirePasswordChange": null,
|
|
46
|
-
"enableMobile": null,
|
|
47
31
|
"allowDelegation": null,
|
|
48
|
-
"gender": null,
|
|
49
|
-
"phoneWork": null,
|
|
50
|
-
"phoneWorkExtension": null,
|
|
51
|
-
"phoneHome": null,
|
|
52
32
|
"phoneCell": null,
|
|
53
|
-
"phoneFax": null,
|
|
54
|
-
"phoneMain": null,
|
|
55
|
-
"address": null,
|
|
56
|
-
"noFNA": null,
|
|
57
33
|
} satisfies LegacyProvisioningUserPayload
|
|
58
34
|
|
|
59
35
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -140,11 +140,6 @@ export interface LegacyProvisioningSyncControlDataForAllDatabaseRequest {
|
|
|
140
140
|
profile: string;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
export interface LegacyProvisioningUpdateUserRequest {
|
|
144
|
-
userId: string;
|
|
145
|
-
legacyProvisioningUserPayloadRequest: LegacyProvisioningUserPayloadRequest;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
143
|
/**
|
|
149
144
|
*
|
|
150
145
|
*/
|
|
@@ -1086,71 +1081,4 @@ export class LegacyProvisioningApi extends runtime.BaseAPI {
|
|
|
1086
1081
|
return await response.value();
|
|
1087
1082
|
}
|
|
1088
1083
|
|
|
1089
|
-
/**
|
|
1090
|
-
* Creates request options for legacyProvisioningUpdateUser without sending the request
|
|
1091
|
-
*/
|
|
1092
|
-
async legacyProvisioningUpdateUserRequestOpts(requestParameters: LegacyProvisioningUpdateUserRequest): Promise<runtime.RequestOpts> {
|
|
1093
|
-
if (requestParameters['userId'] == null) {
|
|
1094
|
-
throw new runtime.RequiredError(
|
|
1095
|
-
'userId',
|
|
1096
|
-
'Required parameter "userId" was null or undefined when calling legacyProvisioningUpdateUser().'
|
|
1097
|
-
);
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
if (requestParameters['legacyProvisioningUserPayloadRequest'] == null) {
|
|
1101
|
-
throw new runtime.RequiredError(
|
|
1102
|
-
'legacyProvisioningUserPayloadRequest',
|
|
1103
|
-
'Required parameter "legacyProvisioningUserPayloadRequest" was null or undefined when calling legacyProvisioningUpdateUser().'
|
|
1104
|
-
);
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
const queryParameters: any = {};
|
|
1108
|
-
|
|
1109
|
-
if (requestParameters['userId'] != null) {
|
|
1110
|
-
queryParameters['userId'] = requestParameters['userId'];
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1114
|
-
|
|
1115
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1116
|
-
|
|
1117
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1118
|
-
// oauth required
|
|
1119
|
-
const token = this.configuration.accessToken;
|
|
1120
|
-
const tokenString = await token("OAuth2", ["crm:database", "crm:user"]);
|
|
1121
|
-
if (tokenString) {
|
|
1122
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
let urlPath = `/apps/provisioning/kronos.provisioning.updateUser`;
|
|
1128
|
-
|
|
1129
|
-
return {
|
|
1130
|
-
path: urlPath,
|
|
1131
|
-
method: 'POST',
|
|
1132
|
-
headers: headerParameters,
|
|
1133
|
-
query: queryParameters,
|
|
1134
|
-
body: LegacyProvisioningUserPayloadRequestToJSON(requestParameters['legacyProvisioningUserPayloadRequest']),
|
|
1135
|
-
};
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
/**
|
|
1139
|
-
* Update a user.
|
|
1140
|
-
*/
|
|
1141
|
-
async legacyProvisioningUpdateUserRaw(requestParameters: LegacyProvisioningUpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LegacyProvisioningAddUpdateUserResponse>> {
|
|
1142
|
-
const requestOptions = await this.legacyProvisioningUpdateUserRequestOpts(requestParameters);
|
|
1143
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
1144
|
-
|
|
1145
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => LegacyProvisioningAddUpdateUserResponseFromJSON(jsonValue));
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* Update a user.
|
|
1150
|
-
*/
|
|
1151
|
-
async legacyProvisioningUpdateUser(requestParameters: LegacyProvisioningUpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LegacyProvisioningAddUpdateUserResponse> {
|
|
1152
|
-
const response = await this.legacyProvisioningUpdateUserRaw(requestParameters, initOverrides);
|
|
1153
|
-
return await response.value();
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
1084
|
}
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { LegacyContactAddress } from './LegacyContactAddress';
|
|
17
|
-
import {
|
|
18
|
-
LegacyContactAddressFromJSON,
|
|
19
|
-
LegacyContactAddressFromJSONTyped,
|
|
20
|
-
LegacyContactAddressToJSON,
|
|
21
|
-
LegacyContactAddressToJSONTyped,
|
|
22
|
-
} from './LegacyContactAddress';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -63,94 +55,18 @@ export interface LegacyProvisioningUserPayload {
|
|
|
63
55
|
* @memberof LegacyProvisioningUserPayload
|
|
64
56
|
*/
|
|
65
57
|
concurrentAccess?: number;
|
|
66
|
-
/**
|
|
67
|
-
* This option does nothing.
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof LegacyProvisioningUserPayload
|
|
70
|
-
* @deprecated
|
|
71
|
-
*/
|
|
72
|
-
password?: string;
|
|
73
|
-
/**
|
|
74
|
-
* This option does nothing.
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof LegacyProvisioningUserPayload
|
|
77
|
-
* @deprecated
|
|
78
|
-
*/
|
|
79
|
-
noPassword?: string;
|
|
80
|
-
/**
|
|
81
|
-
* This option does nothing.
|
|
82
|
-
* @type {string}
|
|
83
|
-
* @memberof LegacyProvisioningUserPayload
|
|
84
|
-
* @deprecated
|
|
85
|
-
*/
|
|
86
|
-
requirePasswordChange?: string;
|
|
87
|
-
/**
|
|
88
|
-
* This option does nothing.
|
|
89
|
-
* @type {string}
|
|
90
|
-
* @memberof LegacyProvisioningUserPayload
|
|
91
|
-
* @deprecated
|
|
92
|
-
*/
|
|
93
|
-
enableMobile?: string;
|
|
94
58
|
/**
|
|
95
59
|
* Allow the user to delegate access to his data (false, true. Default: false).
|
|
96
60
|
* @type {string}
|
|
97
61
|
* @memberof LegacyProvisioningUserPayload
|
|
98
62
|
*/
|
|
99
63
|
allowDelegation?: string;
|
|
100
|
-
/**
|
|
101
|
-
* Gender of this user.
|
|
102
|
-
* @type {LegacyProvisioningUserPayloadGenderEnum}
|
|
103
|
-
* @memberof LegacyProvisioningUserPayload
|
|
104
|
-
*/
|
|
105
|
-
gender?: LegacyProvisioningUserPayloadGenderEnum;
|
|
106
|
-
/**
|
|
107
|
-
* Work phone number of this user.
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof LegacyProvisioningUserPayload
|
|
110
|
-
*/
|
|
111
|
-
phoneWork?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Extension of work phone number of this user.
|
|
114
|
-
* @type {string}
|
|
115
|
-
* @memberof LegacyProvisioningUserPayload
|
|
116
|
-
*/
|
|
117
|
-
phoneWorkExtension?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Home phone number of this user.
|
|
120
|
-
* @type {string}
|
|
121
|
-
* @memberof LegacyProvisioningUserPayload
|
|
122
|
-
*/
|
|
123
|
-
phoneHome?: string;
|
|
124
64
|
/**
|
|
125
65
|
* Cellphone number of this user.
|
|
126
66
|
* @type {string}
|
|
127
67
|
* @memberof LegacyProvisioningUserPayload
|
|
128
68
|
*/
|
|
129
69
|
phoneCell?: string;
|
|
130
|
-
/**
|
|
131
|
-
* Fax phone number of this user.
|
|
132
|
-
* @type {string}
|
|
133
|
-
* @memberof LegacyProvisioningUserPayload
|
|
134
|
-
*/
|
|
135
|
-
phoneFax?: string;
|
|
136
|
-
/**
|
|
137
|
-
* The phone type to be the main phone number. Default: work.
|
|
138
|
-
* @type {LegacyProvisioningUserPayloadPhoneMainEnum}
|
|
139
|
-
* @memberof LegacyProvisioningUserPayload
|
|
140
|
-
*/
|
|
141
|
-
phoneMain?: LegacyProvisioningUserPayloadPhoneMainEnum;
|
|
142
|
-
/**
|
|
143
|
-
* Address of this user.
|
|
144
|
-
* @type {Array<LegacyContactAddress>}
|
|
145
|
-
* @memberof LegacyProvisioningUserPayload
|
|
146
|
-
*/
|
|
147
|
-
address?: Array<LegacyContactAddress>;
|
|
148
|
-
/**
|
|
149
|
-
* Skip Equisoft Plan (false, true. Default: false).
|
|
150
|
-
* @type {string}
|
|
151
|
-
* @memberof LegacyProvisioningUserPayload
|
|
152
|
-
*/
|
|
153
|
-
noFNA?: string;
|
|
154
70
|
}
|
|
155
71
|
|
|
156
72
|
|
|
@@ -175,29 +91,6 @@ export const LegacyProvisioningUserPayloadRoleEnum = {
|
|
|
175
91
|
} as const;
|
|
176
92
|
export type LegacyProvisioningUserPayloadRoleEnum = typeof LegacyProvisioningUserPayloadRoleEnum[keyof typeof LegacyProvisioningUserPayloadRoleEnum];
|
|
177
93
|
|
|
178
|
-
/**
|
|
179
|
-
* @export
|
|
180
|
-
*/
|
|
181
|
-
export const LegacyProvisioningUserPayloadGenderEnum = {
|
|
182
|
-
F: 'F',
|
|
183
|
-
M: 'M',
|
|
184
|
-
UNKNOWN: 'UNKNOWN',
|
|
185
|
-
unknown_default_open_api: '11184809'
|
|
186
|
-
} as const;
|
|
187
|
-
export type LegacyProvisioningUserPayloadGenderEnum = typeof LegacyProvisioningUserPayloadGenderEnum[keyof typeof LegacyProvisioningUserPayloadGenderEnum];
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @export
|
|
191
|
-
*/
|
|
192
|
-
export const LegacyProvisioningUserPayloadPhoneMainEnum = {
|
|
193
|
-
cell: 'cell',
|
|
194
|
-
fax: 'fax',
|
|
195
|
-
home: 'home',
|
|
196
|
-
work: 'work',
|
|
197
|
-
unknown_default_open_api: '11184809'
|
|
198
|
-
} as const;
|
|
199
|
-
export type LegacyProvisioningUserPayloadPhoneMainEnum = typeof LegacyProvisioningUserPayloadPhoneMainEnum[keyof typeof LegacyProvisioningUserPayloadPhoneMainEnum];
|
|
200
|
-
|
|
201
94
|
|
|
202
95
|
/**
|
|
203
96
|
* Check if a given object implements the LegacyProvisioningUserPayload interface.
|
|
@@ -222,20 +115,8 @@ export function LegacyProvisioningUserPayloadFromJSONTyped(json: any, ignoreDisc
|
|
|
222
115
|
'lang': json['lang'] == null ? undefined : json['lang'],
|
|
223
116
|
'role': json['role'] == null ? undefined : json['role'],
|
|
224
117
|
'concurrentAccess': json['concurrentAccess'] == null ? undefined : json['concurrentAccess'],
|
|
225
|
-
'password': json['password'] == null ? undefined : json['password'],
|
|
226
|
-
'noPassword': json['noPassword'] == null ? undefined : json['noPassword'],
|
|
227
|
-
'requirePasswordChange': json['requirePasswordChange'] == null ? undefined : json['requirePasswordChange'],
|
|
228
|
-
'enableMobile': json['enableMobile'] == null ? undefined : json['enableMobile'],
|
|
229
118
|
'allowDelegation': json['allowDelegation'] == null ? undefined : json['allowDelegation'],
|
|
230
|
-
'gender': json['gender'] == null ? undefined : json['gender'],
|
|
231
|
-
'phoneWork': json['phoneWork'] == null ? undefined : json['phoneWork'],
|
|
232
|
-
'phoneWorkExtension': json['phoneWorkExtension'] == null ? undefined : json['phoneWorkExtension'],
|
|
233
|
-
'phoneHome': json['phoneHome'] == null ? undefined : json['phoneHome'],
|
|
234
119
|
'phoneCell': json['phoneCell'] == null ? undefined : json['phoneCell'],
|
|
235
|
-
'phoneFax': json['phoneFax'] == null ? undefined : json['phoneFax'],
|
|
236
|
-
'phoneMain': json['phoneMain'] == null ? undefined : json['phoneMain'],
|
|
237
|
-
'address': json['address'] == null ? undefined : ((json['address'] as Array<any>).map(LegacyContactAddressFromJSON)),
|
|
238
|
-
'noFNA': json['noFNA'] == null ? undefined : json['noFNA'],
|
|
239
120
|
};
|
|
240
121
|
}
|
|
241
122
|
|
|
@@ -256,20 +137,8 @@ export function LegacyProvisioningUserPayloadToJSONTyped(value?: LegacyProvision
|
|
|
256
137
|
'lang': value['lang'],
|
|
257
138
|
'role': value['role'],
|
|
258
139
|
'concurrentAccess': value['concurrentAccess'],
|
|
259
|
-
'password': value['password'],
|
|
260
|
-
'noPassword': value['noPassword'],
|
|
261
|
-
'requirePasswordChange': value['requirePasswordChange'],
|
|
262
|
-
'enableMobile': value['enableMobile'],
|
|
263
140
|
'allowDelegation': value['allowDelegation'],
|
|
264
|
-
'gender': value['gender'],
|
|
265
|
-
'phoneWork': value['phoneWork'],
|
|
266
|
-
'phoneWorkExtension': value['phoneWorkExtension'],
|
|
267
|
-
'phoneHome': value['phoneHome'],
|
|
268
141
|
'phoneCell': value['phoneCell'],
|
|
269
|
-
'phoneFax': value['phoneFax'],
|
|
270
|
-
'phoneMain': value['phoneMain'],
|
|
271
|
-
'address': value['address'] == null ? undefined : ((value['address'] as Array<any>).map(LegacyContactAddressToJSON)),
|
|
272
|
-
'noFNA': value['noFNA'],
|
|
273
142
|
};
|
|
274
143
|
}
|
|
275
144
|
|