@ignos/api-client 20241211.0.10819 → 20241213.0.10843

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.
@@ -257,8 +257,10 @@ 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<EngageAppSettings>;
261
- setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
260
+ getEngageUserSettings(): Promise<RouteCardAppSettings>;
261
+ setEngageUserSettings(settings: RouteCardAppSettings): Promise<void>;
262
+ getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
263
+ setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
262
264
  getMoveUserSettings(): Promise<MoveAppSettings>;
263
265
  setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
264
266
  }
@@ -269,10 +271,14 @@ export declare class UserAppSettingsClient extends AuthorizedApiBase implements
269
271
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
270
272
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
271
273
  });
272
- getEngageUserSettings(): Promise<EngageAppSettings>;
273
- protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings>;
274
- setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
274
+ getEngageUserSettings(): Promise<RouteCardAppSettings>;
275
+ protected processGetEngageUserSettings(response: Response): Promise<RouteCardAppSettings>;
276
+ setEngageUserSettings(settings: RouteCardAppSettings): Promise<void>;
275
277
  protected processSetEngageUserSettings(response: Response): Promise<void>;
278
+ getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
279
+ protected processGetRouteCardUserSettings(response: Response): Promise<RouteCardAppSettings>;
280
+ setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
281
+ protected processSetRouteCardUserSettings(response: Response): Promise<void>;
276
282
  getMoveUserSettings(): Promise<MoveAppSettings>;
277
283
  protected processGetMoveUserSettings(response: Response): Promise<MoveAppSettings>;
278
284
  setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
@@ -2776,7 +2782,7 @@ export declare class Machine implements IMachine {
2776
2782
  externalId?: string;
2777
2783
  id?: number;
2778
2784
  name?: string;
2779
- description?: string;
2785
+ description?: string | null;
2780
2786
  datapoints?: NumericNullableValueWithTimestamp[];
2781
2787
  constructor(data?: IMachine);
2782
2788
  init(_data?: any): void;
@@ -2787,7 +2793,7 @@ export interface IMachine {
2787
2793
  externalId?: string;
2788
2794
  id?: number;
2789
2795
  name?: string;
2790
- description?: string;
2796
+ description?: string | null;
2791
2797
  datapoints?: NumericNullableValueWithTimestamp[];
2792
2798
  }
2793
2799
  export declare class NumericNullableValueWithTimestamp implements INumericNullableValueWithTimestamp {
@@ -2902,15 +2908,15 @@ export interface IListUsersRequest {
2902
2908
  filter?: string | null;
2903
2909
  continuationToken?: string | null;
2904
2910
  }
2905
- export declare class EngageAppSettings implements IEngageAppSettings {
2911
+ export declare class RouteCardAppSettings implements IRouteCardAppSettings {
2906
2912
  includeDrawingInRouteCardPrint?: boolean;
2907
2913
  routeCardPrintInLandscapeOrientation?: boolean;
2908
- constructor(data?: IEngageAppSettings);
2914
+ constructor(data?: IRouteCardAppSettings);
2909
2915
  init(_data?: any): void;
2910
- static fromJS(data: any): EngageAppSettings;
2916
+ static fromJS(data: any): RouteCardAppSettings;
2911
2917
  toJSON(data?: any): any;
2912
2918
  }
2913
- export interface IEngageAppSettings {
2919
+ export interface IRouteCardAppSettings {
2914
2920
  includeDrawingInRouteCardPrint?: boolean;
2915
2921
  routeCardPrintInLandscapeOrientation?: boolean;
2916
2922
  }
@@ -1255,7 +1255,7 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
1255
1255
  return response.text().then((_responseText) => {
1256
1256
  let result200 = null;
1257
1257
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1258
- result200 = EngageAppSettings.fromJS(resultData200);
1258
+ result200 = RouteCardAppSettings.fromJS(resultData200);
1259
1259
  return result200;
1260
1260
  });
1261
1261
  }
@@ -1302,6 +1302,79 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
1302
1302
  }
1303
1303
  return Promise.resolve(null);
1304
1304
  }
1305
+ getRouteCardUserSettings() {
1306
+ let url_ = this.baseUrl + "/userappsettings/route-card";
1307
+ url_ = url_.replace(/[?&]$/, "");
1308
+ let options_ = {
1309
+ method: "GET",
1310
+ headers: {
1311
+ "Accept": "application/json"
1312
+ }
1313
+ };
1314
+ return this.transformOptions(options_).then(transformedOptions_ => {
1315
+ return this.http.fetch(url_, transformedOptions_);
1316
+ }).then((_response) => {
1317
+ return this.processGetRouteCardUserSettings(_response);
1318
+ });
1319
+ }
1320
+ processGetRouteCardUserSettings(response) {
1321
+ const status = response.status;
1322
+ let _headers = {};
1323
+ if (response.headers && response.headers.forEach) {
1324
+ response.headers.forEach((v, k) => _headers[k] = v);
1325
+ }
1326
+ ;
1327
+ if (status === 200) {
1328
+ return response.text().then((_responseText) => {
1329
+ let result200 = null;
1330
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1331
+ result200 = RouteCardAppSettings.fromJS(resultData200);
1332
+ return result200;
1333
+ });
1334
+ }
1335
+ else if (status !== 200 && status !== 204) {
1336
+ return response.text().then((_responseText) => {
1337
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1338
+ });
1339
+ }
1340
+ return Promise.resolve(null);
1341
+ }
1342
+ setRouteCardUserSettings(settings) {
1343
+ let url_ = this.baseUrl + "/userappsettings/route-card";
1344
+ url_ = url_.replace(/[?&]$/, "");
1345
+ const content_ = JSON.stringify(settings);
1346
+ let options_ = {
1347
+ body: content_,
1348
+ method: "PUT",
1349
+ headers: {
1350
+ "Content-Type": "application/json",
1351
+ }
1352
+ };
1353
+ return this.transformOptions(options_).then(transformedOptions_ => {
1354
+ return this.http.fetch(url_, transformedOptions_);
1355
+ }).then((_response) => {
1356
+ return this.processSetRouteCardUserSettings(_response);
1357
+ });
1358
+ }
1359
+ processSetRouteCardUserSettings(response) {
1360
+ const status = response.status;
1361
+ let _headers = {};
1362
+ if (response.headers && response.headers.forEach) {
1363
+ response.headers.forEach((v, k) => _headers[k] = v);
1364
+ }
1365
+ ;
1366
+ if (status === 204) {
1367
+ return response.text().then((_responseText) => {
1368
+ return;
1369
+ });
1370
+ }
1371
+ else if (status !== 200 && status !== 204) {
1372
+ return response.text().then((_responseText) => {
1373
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1374
+ });
1375
+ }
1376
+ return Promise.resolve(null);
1377
+ }
1305
1378
  getMoveUserSettings() {
1306
1379
  let url_ = this.baseUrl + "/userappsettings/move";
1307
1380
  url_ = url_.replace(/[?&]$/, "");
@@ -20890,7 +20963,7 @@ export class ListUsersRequest {
20890
20963
  return data;
20891
20964
  }
20892
20965
  }
20893
- export class EngageAppSettings {
20966
+ export class RouteCardAppSettings {
20894
20967
  constructor(data) {
20895
20968
  if (data) {
20896
20969
  for (var property in data) {
@@ -20907,7 +20980,7 @@ export class EngageAppSettings {
20907
20980
  }
20908
20981
  static fromJS(data) {
20909
20982
  data = typeof data === 'object' ? data : {};
20910
- let result = new EngageAppSettings();
20983
+ let result = new RouteCardAppSettings();
20911
20984
  result.init(data);
20912
20985
  return result;
20913
20986
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20241211.0.10819",
3
+ "version": "20241213.0.10843",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -1369,9 +1369,13 @@ export class UsersClient extends AuthorizedApiBase implements IUsersClient {
1369
1369
 
1370
1370
  export interface IUserAppSettingsClient {
1371
1371
 
1372
- getEngageUserSettings(): Promise<EngageAppSettings>;
1372
+ getEngageUserSettings(): Promise<RouteCardAppSettings>;
1373
1373
 
1374
- setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
1374
+ setEngageUserSettings(settings: RouteCardAppSettings): Promise<void>;
1375
+
1376
+ getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
1377
+
1378
+ setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
1375
1379
 
1376
1380
  getMoveUserSettings(): Promise<MoveAppSettings>;
1377
1381
 
@@ -1389,7 +1393,7 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1389
1393
  this.baseUrl = baseUrl ?? "";
1390
1394
  }
1391
1395
 
1392
- getEngageUserSettings(): Promise<EngageAppSettings> {
1396
+ getEngageUserSettings(): Promise<RouteCardAppSettings> {
1393
1397
  let url_ = this.baseUrl + "/userappsettings/engage";
1394
1398
  url_ = url_.replace(/[?&]$/, "");
1395
1399
 
@@ -1407,14 +1411,14 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1407
1411
  });
1408
1412
  }
1409
1413
 
1410
- protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings> {
1414
+ protected processGetEngageUserSettings(response: Response): Promise<RouteCardAppSettings> {
1411
1415
  const status = response.status;
1412
1416
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1413
1417
  if (status === 200) {
1414
1418
  return response.text().then((_responseText) => {
1415
1419
  let result200: any = null;
1416
1420
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1417
- result200 = EngageAppSettings.fromJS(resultData200);
1421
+ result200 = RouteCardAppSettings.fromJS(resultData200);
1418
1422
  return result200;
1419
1423
  });
1420
1424
  } else if (status !== 200 && status !== 204) {
@@ -1422,10 +1426,10 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1422
1426
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1423
1427
  });
1424
1428
  }
1425
- return Promise.resolve<EngageAppSettings>(null as any);
1429
+ return Promise.resolve<RouteCardAppSettings>(null as any);
1426
1430
  }
1427
1431
 
1428
- setEngageUserSettings(settings: EngageAppSettings): Promise<void> {
1432
+ setEngageUserSettings(settings: RouteCardAppSettings): Promise<void> {
1429
1433
  let url_ = this.baseUrl + "/userappsettings/engage";
1430
1434
  url_ = url_.replace(/[?&]$/, "");
1431
1435
 
@@ -1461,6 +1465,78 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1461
1465
  return Promise.resolve<void>(null as any);
1462
1466
  }
1463
1467
 
1468
+ getRouteCardUserSettings(): Promise<RouteCardAppSettings> {
1469
+ let url_ = this.baseUrl + "/userappsettings/route-card";
1470
+ url_ = url_.replace(/[?&]$/, "");
1471
+
1472
+ let options_: RequestInit = {
1473
+ method: "GET",
1474
+ headers: {
1475
+ "Accept": "application/json"
1476
+ }
1477
+ };
1478
+
1479
+ return this.transformOptions(options_).then(transformedOptions_ => {
1480
+ return this.http.fetch(url_, transformedOptions_);
1481
+ }).then((_response: Response) => {
1482
+ return this.processGetRouteCardUserSettings(_response);
1483
+ });
1484
+ }
1485
+
1486
+ protected processGetRouteCardUserSettings(response: Response): Promise<RouteCardAppSettings> {
1487
+ const status = response.status;
1488
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1489
+ if (status === 200) {
1490
+ return response.text().then((_responseText) => {
1491
+ let result200: any = null;
1492
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1493
+ result200 = RouteCardAppSettings.fromJS(resultData200);
1494
+ return result200;
1495
+ });
1496
+ } else if (status !== 200 && status !== 204) {
1497
+ return response.text().then((_responseText) => {
1498
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1499
+ });
1500
+ }
1501
+ return Promise.resolve<RouteCardAppSettings>(null as any);
1502
+ }
1503
+
1504
+ setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void> {
1505
+ let url_ = this.baseUrl + "/userappsettings/route-card";
1506
+ url_ = url_.replace(/[?&]$/, "");
1507
+
1508
+ const content_ = JSON.stringify(settings);
1509
+
1510
+ let options_: RequestInit = {
1511
+ body: content_,
1512
+ method: "PUT",
1513
+ headers: {
1514
+ "Content-Type": "application/json",
1515
+ }
1516
+ };
1517
+
1518
+ return this.transformOptions(options_).then(transformedOptions_ => {
1519
+ return this.http.fetch(url_, transformedOptions_);
1520
+ }).then((_response: Response) => {
1521
+ return this.processSetRouteCardUserSettings(_response);
1522
+ });
1523
+ }
1524
+
1525
+ protected processSetRouteCardUserSettings(response: Response): Promise<void> {
1526
+ const status = response.status;
1527
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1528
+ if (status === 204) {
1529
+ return response.text().then((_responseText) => {
1530
+ return;
1531
+ });
1532
+ } else if (status !== 200 && status !== 204) {
1533
+ return response.text().then((_responseText) => {
1534
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1535
+ });
1536
+ }
1537
+ return Promise.resolve<void>(null as any);
1538
+ }
1539
+
1464
1540
  getMoveUserSettings(): Promise<MoveAppSettings> {
1465
1541
  let url_ = this.baseUrl + "/userappsettings/move";
1466
1542
  url_ = url_.replace(/[?&]$/, "");
@@ -22308,7 +22384,7 @@ export class Machine implements IMachine {
22308
22384
  externalId?: string;
22309
22385
  id?: number;
22310
22386
  name?: string;
22311
- description?: string;
22387
+ description?: string | null;
22312
22388
  datapoints?: NumericNullableValueWithTimestamp[];
22313
22389
 
22314
22390
  constructor(data?: IMachine) {
@@ -22360,7 +22436,7 @@ export interface IMachine {
22360
22436
  externalId?: string;
22361
22437
  id?: number;
22362
22438
  name?: string;
22363
- description?: string;
22439
+ description?: string | null;
22364
22440
  datapoints?: NumericNullableValueWithTimestamp[];
22365
22441
  }
22366
22442
 
@@ -22719,11 +22795,11 @@ export interface IListUsersRequest {
22719
22795
  continuationToken?: string | null;
22720
22796
  }
22721
22797
 
22722
- export class EngageAppSettings implements IEngageAppSettings {
22798
+ export class RouteCardAppSettings implements IRouteCardAppSettings {
22723
22799
  includeDrawingInRouteCardPrint?: boolean;
22724
22800
  routeCardPrintInLandscapeOrientation?: boolean;
22725
22801
 
22726
- constructor(data?: IEngageAppSettings) {
22802
+ constructor(data?: IRouteCardAppSettings) {
22727
22803
  if (data) {
22728
22804
  for (var property in data) {
22729
22805
  if (data.hasOwnProperty(property))
@@ -22739,9 +22815,9 @@ export class EngageAppSettings implements IEngageAppSettings {
22739
22815
  }
22740
22816
  }
22741
22817
 
22742
- static fromJS(data: any): EngageAppSettings {
22818
+ static fromJS(data: any): RouteCardAppSettings {
22743
22819
  data = typeof data === 'object' ? data : {};
22744
- let result = new EngageAppSettings();
22820
+ let result = new RouteCardAppSettings();
22745
22821
  result.init(data);
22746
22822
  return result;
22747
22823
  }
@@ -22754,7 +22830,7 @@ export class EngageAppSettings implements IEngageAppSettings {
22754
22830
  }
22755
22831
  }
22756
22832
 
22757
- export interface IEngageAppSettings {
22833
+ export interface IRouteCardAppSettings {
22758
22834
  includeDrawingInRouteCardPrint?: boolean;
22759
22835
  routeCardPrintInLandscapeOrientation?: boolean;
22760
22836
  }