@ignos/api-client 20241213.0.10843 → 20241213.0.10853
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/lib/ignosportal-api.d.ts +0 -6
- package/lib/ignosportal-api.js +0 -73
- package/package.json +1 -1
- package/src/ignosportal-api.ts +0 -76
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -257,8 +257,6 @@ export declare class UsersClient extends AuthorizedApiBase implements IUsersClie
|
|
|
257
257
|
protected processPostListUsers(response: Response): Promise<PagedResultOfUserDto>;
|
|
258
258
|
}
|
|
259
259
|
export interface IUserAppSettingsClient {
|
|
260
|
-
getEngageUserSettings(): Promise<RouteCardAppSettings>;
|
|
261
|
-
setEngageUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
|
262
260
|
getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
|
|
263
261
|
setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
|
264
262
|
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
@@ -271,10 +269,6 @@ export declare class UserAppSettingsClient extends AuthorizedApiBase implements
|
|
|
271
269
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
272
270
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
273
271
|
});
|
|
274
|
-
getEngageUserSettings(): Promise<RouteCardAppSettings>;
|
|
275
|
-
protected processGetEngageUserSettings(response: Response): Promise<RouteCardAppSettings>;
|
|
276
|
-
setEngageUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
|
277
|
-
protected processSetEngageUserSettings(response: Response): Promise<void>;
|
|
278
272
|
getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
|
|
279
273
|
protected processGetRouteCardUserSettings(response: Response): Promise<RouteCardAppSettings>;
|
|
280
274
|
setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1229,79 +1229,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
|
1229
1229
|
this.http = http ? http : window;
|
|
1230
1230
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
1231
1231
|
}
|
|
1232
|
-
getEngageUserSettings() {
|
|
1233
|
-
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1234
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1235
|
-
let options_ = {
|
|
1236
|
-
method: "GET",
|
|
1237
|
-
headers: {
|
|
1238
|
-
"Accept": "application/json"
|
|
1239
|
-
}
|
|
1240
|
-
};
|
|
1241
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1242
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1243
|
-
}).then((_response) => {
|
|
1244
|
-
return this.processGetEngageUserSettings(_response);
|
|
1245
|
-
});
|
|
1246
|
-
}
|
|
1247
|
-
processGetEngageUserSettings(response) {
|
|
1248
|
-
const status = response.status;
|
|
1249
|
-
let _headers = {};
|
|
1250
|
-
if (response.headers && response.headers.forEach) {
|
|
1251
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1252
|
-
}
|
|
1253
|
-
;
|
|
1254
|
-
if (status === 200) {
|
|
1255
|
-
return response.text().then((_responseText) => {
|
|
1256
|
-
let result200 = null;
|
|
1257
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1258
|
-
result200 = RouteCardAppSettings.fromJS(resultData200);
|
|
1259
|
-
return result200;
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
else if (status !== 200 && status !== 204) {
|
|
1263
|
-
return response.text().then((_responseText) => {
|
|
1264
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
return Promise.resolve(null);
|
|
1268
|
-
}
|
|
1269
|
-
setEngageUserSettings(settings) {
|
|
1270
|
-
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1271
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1272
|
-
const content_ = JSON.stringify(settings);
|
|
1273
|
-
let options_ = {
|
|
1274
|
-
body: content_,
|
|
1275
|
-
method: "PUT",
|
|
1276
|
-
headers: {
|
|
1277
|
-
"Content-Type": "application/json",
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1281
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1282
|
-
}).then((_response) => {
|
|
1283
|
-
return this.processSetEngageUserSettings(_response);
|
|
1284
|
-
});
|
|
1285
|
-
}
|
|
1286
|
-
processSetEngageUserSettings(response) {
|
|
1287
|
-
const status = response.status;
|
|
1288
|
-
let _headers = {};
|
|
1289
|
-
if (response.headers && response.headers.forEach) {
|
|
1290
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1291
|
-
}
|
|
1292
|
-
;
|
|
1293
|
-
if (status === 204) {
|
|
1294
|
-
return response.text().then((_responseText) => {
|
|
1295
|
-
return;
|
|
1296
|
-
});
|
|
1297
|
-
}
|
|
1298
|
-
else if (status !== 200 && status !== 204) {
|
|
1299
|
-
return response.text().then((_responseText) => {
|
|
1300
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
return Promise.resolve(null);
|
|
1304
|
-
}
|
|
1305
1232
|
getRouteCardUserSettings() {
|
|
1306
1233
|
let url_ = this.baseUrl + "/userappsettings/route-card";
|
|
1307
1234
|
url_ = url_.replace(/[?&]$/, "");
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1369,10 +1369,6 @@ export class UsersClient extends AuthorizedApiBase implements IUsersClient {
|
|
|
1369
1369
|
|
|
1370
1370
|
export interface IUserAppSettingsClient {
|
|
1371
1371
|
|
|
1372
|
-
getEngageUserSettings(): Promise<RouteCardAppSettings>;
|
|
1373
|
-
|
|
1374
|
-
setEngageUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
|
1375
|
-
|
|
1376
1372
|
getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
|
|
1377
1373
|
|
|
1378
1374
|
setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
|
@@ -1393,78 +1389,6 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
1393
1389
|
this.baseUrl = baseUrl ?? "";
|
|
1394
1390
|
}
|
|
1395
1391
|
|
|
1396
|
-
getEngageUserSettings(): Promise<RouteCardAppSettings> {
|
|
1397
|
-
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1398
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1399
|
-
|
|
1400
|
-
let options_: RequestInit = {
|
|
1401
|
-
method: "GET",
|
|
1402
|
-
headers: {
|
|
1403
|
-
"Accept": "application/json"
|
|
1404
|
-
}
|
|
1405
|
-
};
|
|
1406
|
-
|
|
1407
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1408
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1409
|
-
}).then((_response: Response) => {
|
|
1410
|
-
return this.processGetEngageUserSettings(_response);
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
protected processGetEngageUserSettings(response: Response): Promise<RouteCardAppSettings> {
|
|
1415
|
-
const status = response.status;
|
|
1416
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1417
|
-
if (status === 200) {
|
|
1418
|
-
return response.text().then((_responseText) => {
|
|
1419
|
-
let result200: any = null;
|
|
1420
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1421
|
-
result200 = RouteCardAppSettings.fromJS(resultData200);
|
|
1422
|
-
return result200;
|
|
1423
|
-
});
|
|
1424
|
-
} else if (status !== 200 && status !== 204) {
|
|
1425
|
-
return response.text().then((_responseText) => {
|
|
1426
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1427
|
-
});
|
|
1428
|
-
}
|
|
1429
|
-
return Promise.resolve<RouteCardAppSettings>(null as any);
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
setEngageUserSettings(settings: RouteCardAppSettings): Promise<void> {
|
|
1433
|
-
let url_ = this.baseUrl + "/userappsettings/engage";
|
|
1434
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
1435
|
-
|
|
1436
|
-
const content_ = JSON.stringify(settings);
|
|
1437
|
-
|
|
1438
|
-
let options_: RequestInit = {
|
|
1439
|
-
body: content_,
|
|
1440
|
-
method: "PUT",
|
|
1441
|
-
headers: {
|
|
1442
|
-
"Content-Type": "application/json",
|
|
1443
|
-
}
|
|
1444
|
-
};
|
|
1445
|
-
|
|
1446
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1447
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
1448
|
-
}).then((_response: Response) => {
|
|
1449
|
-
return this.processSetEngageUserSettings(_response);
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
protected processSetEngageUserSettings(response: Response): Promise<void> {
|
|
1454
|
-
const status = response.status;
|
|
1455
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1456
|
-
if (status === 204) {
|
|
1457
|
-
return response.text().then((_responseText) => {
|
|
1458
|
-
return;
|
|
1459
|
-
});
|
|
1460
|
-
} else if (status !== 200 && status !== 204) {
|
|
1461
|
-
return response.text().then((_responseText) => {
|
|
1462
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1463
|
-
});
|
|
1464
|
-
}
|
|
1465
|
-
return Promise.resolve<void>(null as any);
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
1392
|
getRouteCardUserSettings(): Promise<RouteCardAppSettings> {
|
|
1469
1393
|
let url_ = this.baseUrl + "/userappsettings/route-card";
|
|
1470
1394
|
url_ = url_.replace(/[?&]$/, "");
|