@equisoft/account-service-sdk-typescript 4.2.1-snapshot.20221207193620 → 4.2.1-snapshot.20221219200246
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/dist/apis/SessionApi.js +10 -10
- package/dist/apis/UserApi.d.ts +2 -2
- package/dist/apis/UserApi.js +4 -4
- package/dist/models/UpdateUserAccountSsoPayload.d.ts +2 -2
- package/dist/models/UpdateUserAccountSsoPayload.js +5 -4
- package/package.json +1 -1
- package/src/apis/SessionApi.ts +10 -10
- package/src/apis/UserApi.ts +4 -4
- package/src/models/UpdateUserAccountSsoPayload.ts +6 -6
package/dist/apis/SessionApi.js
CHANGED
|
@@ -77,7 +77,7 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
77
77
|
if (this.configuration && this.configuration.accessToken) {
|
|
78
78
|
// oauth required
|
|
79
79
|
const token = this.configuration.accessToken;
|
|
80
|
-
const tokenString = yield token("OAuth2", [
|
|
80
|
+
const tokenString = yield token("OAuth2", []);
|
|
81
81
|
if (tokenString) {
|
|
82
82
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
83
83
|
}
|
|
@@ -109,7 +109,7 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
109
109
|
if (this.configuration && this.configuration.accessToken) {
|
|
110
110
|
// oauth required
|
|
111
111
|
const token = this.configuration.accessToken;
|
|
112
|
-
const tokenString = yield token("OAuth2", [
|
|
112
|
+
const tokenString = yield token("OAuth2", []);
|
|
113
113
|
if (tokenString) {
|
|
114
114
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
115
115
|
}
|
|
@@ -144,7 +144,7 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
144
144
|
if (this.configuration && this.configuration.accessToken) {
|
|
145
145
|
// oauth required
|
|
146
146
|
const token = this.configuration.accessToken;
|
|
147
|
-
const tokenString = yield token("OAuth2", [
|
|
147
|
+
const tokenString = yield token("OAuth2", []);
|
|
148
148
|
if (tokenString) {
|
|
149
149
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
150
150
|
}
|
|
@@ -182,7 +182,7 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
182
182
|
if (this.configuration && this.configuration.accessToken) {
|
|
183
183
|
// oauth required
|
|
184
184
|
const token = this.configuration.accessToken;
|
|
185
|
-
const tokenString = yield token("OAuth2", [
|
|
185
|
+
const tokenString = yield token("OAuth2", []);
|
|
186
186
|
if (tokenString) {
|
|
187
187
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
188
188
|
}
|
|
@@ -218,7 +218,7 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
218
218
|
if (this.configuration && this.configuration.accessToken) {
|
|
219
219
|
// oauth required
|
|
220
220
|
const token = this.configuration.accessToken;
|
|
221
|
-
const tokenString = yield token("OAuth2", [
|
|
221
|
+
const tokenString = yield token("OAuth2", []);
|
|
222
222
|
if (tokenString) {
|
|
223
223
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
224
224
|
}
|
|
@@ -255,7 +255,7 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
255
255
|
if (this.configuration && this.configuration.accessToken) {
|
|
256
256
|
// oauth required
|
|
257
257
|
const token = this.configuration.accessToken;
|
|
258
|
-
const tokenString = yield token("OAuth2", [
|
|
258
|
+
const tokenString = yield token("OAuth2", []);
|
|
259
259
|
if (tokenString) {
|
|
260
260
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
261
261
|
}
|
|
@@ -294,7 +294,7 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
294
294
|
if (this.configuration && this.configuration.accessToken) {
|
|
295
295
|
// oauth required
|
|
296
296
|
const token = this.configuration.accessToken;
|
|
297
|
-
const tokenString = yield token("OAuth2", [
|
|
297
|
+
const tokenString = yield token("OAuth2", []);
|
|
298
298
|
if (tokenString) {
|
|
299
299
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
300
300
|
}
|
|
@@ -333,7 +333,7 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
333
333
|
if (this.configuration && this.configuration.accessToken) {
|
|
334
334
|
// oauth required
|
|
335
335
|
const token = this.configuration.accessToken;
|
|
336
|
-
const tokenString = yield token("OAuth2", [
|
|
336
|
+
const tokenString = yield token("OAuth2", []);
|
|
337
337
|
if (tokenString) {
|
|
338
338
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
339
339
|
}
|
|
@@ -374,7 +374,7 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
374
374
|
if (this.configuration && this.configuration.accessToken) {
|
|
375
375
|
// oauth required
|
|
376
376
|
const token = this.configuration.accessToken;
|
|
377
|
-
const tokenString = yield token("OAuth2", [
|
|
377
|
+
const tokenString = yield token("OAuth2", []);
|
|
378
378
|
if (tokenString) {
|
|
379
379
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
380
380
|
}
|
|
@@ -412,7 +412,7 @@ class SessionApi extends runtime.BaseAPI {
|
|
|
412
412
|
if (this.configuration && this.configuration.accessToken) {
|
|
413
413
|
// oauth required
|
|
414
414
|
const token = this.configuration.accessToken;
|
|
415
|
-
const tokenString = yield token("OAuth2", [
|
|
415
|
+
const tokenString = yield token("OAuth2", []);
|
|
416
416
|
if (tokenString) {
|
|
417
417
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
418
418
|
}
|
package/dist/apis/UserApi.d.ts
CHANGED
|
@@ -94,11 +94,11 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
94
94
|
*/
|
|
95
95
|
activate(requestParameters: ActivateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Update user account sso.
|
|
98
98
|
*/
|
|
99
99
|
addUpdateSsoRaw(requestParameters: AddUpdateSsoRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Update user account sso.
|
|
102
102
|
*/
|
|
103
103
|
addUpdateSso(requestParameters: AddUpdateSsoRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
104
104
|
/**
|
package/dist/apis/UserApi.js
CHANGED
|
@@ -65,7 +65,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Update user account sso.
|
|
69
69
|
*/
|
|
70
70
|
addUpdateSsoRaw(requestParameters, initOverrides) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -88,7 +88,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
88
88
|
}
|
|
89
89
|
const response = yield this.request({
|
|
90
90
|
path: `/users/{uuid}/sso`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
91
|
-
method: '
|
|
91
|
+
method: 'PUT',
|
|
92
92
|
headers: headerParameters,
|
|
93
93
|
query: queryParameters,
|
|
94
94
|
body: models_1.UpdateUserAccountSsoPayloadToJSON(requestParameters.updateUserAccountSsoPayload),
|
|
@@ -97,7 +97,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* Update user account sso.
|
|
101
101
|
*/
|
|
102
102
|
addUpdateSso(requestParameters, initOverrides) {
|
|
103
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -310,7 +310,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
310
310
|
if (this.configuration && this.configuration.accessToken) {
|
|
311
311
|
// oauth required
|
|
312
312
|
const token = this.configuration.accessToken;
|
|
313
|
-
const tokenString = yield token("OAuth2", ["account:user"
|
|
313
|
+
const tokenString = yield token("OAuth2", ["account:user"]);
|
|
314
314
|
if (tokenString) {
|
|
315
315
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
316
316
|
}
|
|
@@ -20,13 +20,13 @@ export interface UpdateUserAccountSsoPayload {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateUserAccountSsoPayload
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
providerCode: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateUserAccountSsoPayload
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
identifier?: string | null;
|
|
30
30
|
}
|
|
31
31
|
export declare function UpdateUserAccountSsoPayloadFromJSON(json: any): UpdateUserAccountSsoPayload;
|
|
32
32
|
export declare function UpdateUserAccountSsoPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserAccountSsoPayload;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UpdateUserAccountSsoPayloadToJSON = exports.UpdateUserAccountSsoPayloadFromJSONTyped = exports.UpdateUserAccountSsoPayloadFromJSON = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
function UpdateUserAccountSsoPayloadFromJSON(json) {
|
|
18
19
|
return UpdateUserAccountSsoPayloadFromJSONTyped(json, false);
|
|
19
20
|
}
|
|
@@ -23,8 +24,8 @@ function UpdateUserAccountSsoPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
24
|
return json;
|
|
24
25
|
}
|
|
25
26
|
return {
|
|
26
|
-
'
|
|
27
|
-
'
|
|
27
|
+
'providerCode': json['providerCode'],
|
|
28
|
+
'identifier': !runtime_1.exists(json, 'identifier') ? undefined : json['identifier'],
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
exports.UpdateUserAccountSsoPayloadFromJSONTyped = UpdateUserAccountSsoPayloadFromJSONTyped;
|
|
@@ -36,8 +37,8 @@ function UpdateUserAccountSsoPayloadToJSON(value) {
|
|
|
36
37
|
return null;
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
39
|
-
'
|
|
40
|
-
'
|
|
40
|
+
'providerCode': value.providerCode,
|
|
41
|
+
'identifier': value.identifier,
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
exports.UpdateUserAccountSsoPayloadToJSON = UpdateUserAccountSsoPayloadToJSON;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/account-service-sdk-typescript",
|
|
3
|
-
"version": "4.2.1-snapshot.
|
|
3
|
+
"version": "4.2.1-snapshot.20221219200246",
|
|
4
4
|
"description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
|
|
5
5
|
"author": "Equisoft Inc.",
|
|
6
6
|
"main": "./dist/index.js",
|
package/src/apis/SessionApi.ts
CHANGED
|
@@ -142,7 +142,7 @@ export class SessionApi extends runtime.BaseAPI {
|
|
|
142
142
|
if (this.configuration && this.configuration.accessToken) {
|
|
143
143
|
// oauth required
|
|
144
144
|
const token = this.configuration.accessToken;
|
|
145
|
-
const tokenString = await token("OAuth2", [
|
|
145
|
+
const tokenString = await token("OAuth2", []);
|
|
146
146
|
|
|
147
147
|
if (tokenString) {
|
|
148
148
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
@@ -177,7 +177,7 @@ export class SessionApi extends runtime.BaseAPI {
|
|
|
177
177
|
if (this.configuration && this.configuration.accessToken) {
|
|
178
178
|
// oauth required
|
|
179
179
|
const token = this.configuration.accessToken;
|
|
180
|
-
const tokenString = await token("OAuth2", [
|
|
180
|
+
const tokenString = await token("OAuth2", []);
|
|
181
181
|
|
|
182
182
|
if (tokenString) {
|
|
183
183
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
@@ -216,7 +216,7 @@ export class SessionApi extends runtime.BaseAPI {
|
|
|
216
216
|
if (this.configuration && this.configuration.accessToken) {
|
|
217
217
|
// oauth required
|
|
218
218
|
const token = this.configuration.accessToken;
|
|
219
|
-
const tokenString = await token("OAuth2", [
|
|
219
|
+
const tokenString = await token("OAuth2", []);
|
|
220
220
|
|
|
221
221
|
if (tokenString) {
|
|
222
222
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
@@ -259,7 +259,7 @@ export class SessionApi extends runtime.BaseAPI {
|
|
|
259
259
|
if (this.configuration && this.configuration.accessToken) {
|
|
260
260
|
// oauth required
|
|
261
261
|
const token = this.configuration.accessToken;
|
|
262
|
-
const tokenString = await token("OAuth2", [
|
|
262
|
+
const tokenString = await token("OAuth2", []);
|
|
263
263
|
|
|
264
264
|
if (tokenString) {
|
|
265
265
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
@@ -300,7 +300,7 @@ export class SessionApi extends runtime.BaseAPI {
|
|
|
300
300
|
if (this.configuration && this.configuration.accessToken) {
|
|
301
301
|
// oauth required
|
|
302
302
|
const token = this.configuration.accessToken;
|
|
303
|
-
const tokenString = await token("OAuth2", [
|
|
303
|
+
const tokenString = await token("OAuth2", []);
|
|
304
304
|
|
|
305
305
|
if (tokenString) {
|
|
306
306
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
@@ -342,7 +342,7 @@ export class SessionApi extends runtime.BaseAPI {
|
|
|
342
342
|
if (this.configuration && this.configuration.accessToken) {
|
|
343
343
|
// oauth required
|
|
344
344
|
const token = this.configuration.accessToken;
|
|
345
|
-
const tokenString = await token("OAuth2", [
|
|
345
|
+
const tokenString = await token("OAuth2", []);
|
|
346
346
|
|
|
347
347
|
if (tokenString) {
|
|
348
348
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
@@ -386,7 +386,7 @@ export class SessionApi extends runtime.BaseAPI {
|
|
|
386
386
|
if (this.configuration && this.configuration.accessToken) {
|
|
387
387
|
// oauth required
|
|
388
388
|
const token = this.configuration.accessToken;
|
|
389
|
-
const tokenString = await token("OAuth2", [
|
|
389
|
+
const tokenString = await token("OAuth2", []);
|
|
390
390
|
|
|
391
391
|
if (tokenString) {
|
|
392
392
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
@@ -430,7 +430,7 @@ export class SessionApi extends runtime.BaseAPI {
|
|
|
430
430
|
if (this.configuration && this.configuration.accessToken) {
|
|
431
431
|
// oauth required
|
|
432
432
|
const token = this.configuration.accessToken;
|
|
433
|
-
const tokenString = await token("OAuth2", [
|
|
433
|
+
const tokenString = await token("OAuth2", []);
|
|
434
434
|
|
|
435
435
|
if (tokenString) {
|
|
436
436
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
@@ -477,7 +477,7 @@ export class SessionApi extends runtime.BaseAPI {
|
|
|
477
477
|
if (this.configuration && this.configuration.accessToken) {
|
|
478
478
|
// oauth required
|
|
479
479
|
const token = this.configuration.accessToken;
|
|
480
|
-
const tokenString = await token("OAuth2", [
|
|
480
|
+
const tokenString = await token("OAuth2", []);
|
|
481
481
|
|
|
482
482
|
if (tokenString) {
|
|
483
483
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
@@ -519,7 +519,7 @@ export class SessionApi extends runtime.BaseAPI {
|
|
|
519
519
|
if (this.configuration && this.configuration.accessToken) {
|
|
520
520
|
// oauth required
|
|
521
521
|
const token = this.configuration.accessToken;
|
|
522
|
-
const tokenString = await token("OAuth2", [
|
|
522
|
+
const tokenString = await token("OAuth2", []);
|
|
523
523
|
|
|
524
524
|
if (tokenString) {
|
|
525
525
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
package/src/apis/UserApi.ts
CHANGED
|
@@ -193,7 +193,7 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
*
|
|
196
|
+
* Update user account sso.
|
|
197
197
|
*/
|
|
198
198
|
async addUpdateSsoRaw(requestParameters: AddUpdateSsoRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>> {
|
|
199
199
|
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
|
|
@@ -222,7 +222,7 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
222
222
|
|
|
223
223
|
const response = await this.request({
|
|
224
224
|
path: `/users/{uuid}/sso`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
225
|
-
method: '
|
|
225
|
+
method: 'PUT',
|
|
226
226
|
headers: headerParameters,
|
|
227
227
|
query: queryParameters,
|
|
228
228
|
body: UpdateUserAccountSsoPayloadToJSON(requestParameters.updateUserAccountSsoPayload),
|
|
@@ -232,7 +232,7 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
|
-
*
|
|
235
|
+
* Update user account sso.
|
|
236
236
|
*/
|
|
237
237
|
async addUpdateSso(requestParameters: AddUpdateSsoRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void> {
|
|
238
238
|
await this.addUpdateSsoRaw(requestParameters, initOverrides);
|
|
@@ -472,7 +472,7 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
472
472
|
if (this.configuration && this.configuration.accessToken) {
|
|
473
473
|
// oauth required
|
|
474
474
|
const token = this.configuration.accessToken;
|
|
475
|
-
const tokenString = await token("OAuth2", ["account:user"
|
|
475
|
+
const tokenString = await token("OAuth2", ["account:user"]);
|
|
476
476
|
|
|
477
477
|
if (tokenString) {
|
|
478
478
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
@@ -24,13 +24,13 @@ export interface UpdateUserAccountSsoPayload {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpdateUserAccountSsoPayload
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
providerCode: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateUserAccountSsoPayload
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
identifier?: string | null;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function UpdateUserAccountSsoPayloadFromJSON(json: any): UpdateUserAccountSsoPayload {
|
|
@@ -43,8 +43,8 @@ export function UpdateUserAccountSsoPayloadFromJSONTyped(json: any, ignoreDiscri
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
|
|
46
|
-
'
|
|
47
|
-
'
|
|
46
|
+
'providerCode': json['providerCode'],
|
|
47
|
+
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -57,8 +57,8 @@ export function UpdateUserAccountSsoPayloadToJSON(value?: UpdateUserAccountSsoPa
|
|
|
57
57
|
}
|
|
58
58
|
return {
|
|
59
59
|
|
|
60
|
-
'
|
|
61
|
-
'
|
|
60
|
+
'providerCode': value.providerCode,
|
|
61
|
+
'identifier': value.identifier,
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
|