@ignos/api-client 20241211.0.10819 → 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 +12 -12
- package/lib/ignosportal-api.js +11 -11
- package/package.json +1 -1
- package/src/ignosportal-api.ts +19 -19
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -257,8 +257,8 @@ export declare class UsersClient extends AuthorizedApiBase implements IUsersClie
|
|
|
257
257
|
protected processPostListUsers(response: Response): Promise<PagedResultOfUserDto>;
|
|
258
258
|
}
|
|
259
259
|
export interface IUserAppSettingsClient {
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
|
|
261
|
+
setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
|
262
262
|
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
263
263
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
264
264
|
}
|
|
@@ -269,10 +269,10 @@ export declare class UserAppSettingsClient extends AuthorizedApiBase implements
|
|
|
269
269
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
270
270
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
271
271
|
});
|
|
272
|
-
|
|
273
|
-
protected
|
|
274
|
-
|
|
275
|
-
protected
|
|
272
|
+
getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
|
|
273
|
+
protected processGetRouteCardUserSettings(response: Response): Promise<RouteCardAppSettings>;
|
|
274
|
+
setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
|
275
|
+
protected processSetRouteCardUserSettings(response: Response): Promise<void>;
|
|
276
276
|
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
277
277
|
protected processGetMoveUserSettings(response: Response): Promise<MoveAppSettings>;
|
|
278
278
|
setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
|
|
@@ -2776,7 +2776,7 @@ export declare class Machine implements IMachine {
|
|
|
2776
2776
|
externalId?: string;
|
|
2777
2777
|
id?: number;
|
|
2778
2778
|
name?: string;
|
|
2779
|
-
description?: string;
|
|
2779
|
+
description?: string | null;
|
|
2780
2780
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
2781
2781
|
constructor(data?: IMachine);
|
|
2782
2782
|
init(_data?: any): void;
|
|
@@ -2787,7 +2787,7 @@ export interface IMachine {
|
|
|
2787
2787
|
externalId?: string;
|
|
2788
2788
|
id?: number;
|
|
2789
2789
|
name?: string;
|
|
2790
|
-
description?: string;
|
|
2790
|
+
description?: string | null;
|
|
2791
2791
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
2792
2792
|
}
|
|
2793
2793
|
export declare class NumericNullableValueWithTimestamp implements INumericNullableValueWithTimestamp {
|
|
@@ -2902,15 +2902,15 @@ export interface IListUsersRequest {
|
|
|
2902
2902
|
filter?: string | null;
|
|
2903
2903
|
continuationToken?: string | null;
|
|
2904
2904
|
}
|
|
2905
|
-
export declare class
|
|
2905
|
+
export declare class RouteCardAppSettings implements IRouteCardAppSettings {
|
|
2906
2906
|
includeDrawingInRouteCardPrint?: boolean;
|
|
2907
2907
|
routeCardPrintInLandscapeOrientation?: boolean;
|
|
2908
|
-
constructor(data?:
|
|
2908
|
+
constructor(data?: IRouteCardAppSettings);
|
|
2909
2909
|
init(_data?: any): void;
|
|
2910
|
-
static fromJS(data: any):
|
|
2910
|
+
static fromJS(data: any): RouteCardAppSettings;
|
|
2911
2911
|
toJSON(data?: any): any;
|
|
2912
2912
|
}
|
|
2913
|
-
export interface
|
|
2913
|
+
export interface IRouteCardAppSettings {
|
|
2914
2914
|
includeDrawingInRouteCardPrint?: boolean;
|
|
2915
2915
|
routeCardPrintInLandscapeOrientation?: boolean;
|
|
2916
2916
|
}
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1229,8 +1229,8 @@ 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
|
-
|
|
1233
|
-
let url_ = this.baseUrl + "/userappsettings/
|
|
1232
|
+
getRouteCardUserSettings() {
|
|
1233
|
+
let url_ = this.baseUrl + "/userappsettings/route-card";
|
|
1234
1234
|
url_ = url_.replace(/[?&]$/, "");
|
|
1235
1235
|
let options_ = {
|
|
1236
1236
|
method: "GET",
|
|
@@ -1241,10 +1241,10 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
|
1241
1241
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1242
1242
|
return this.http.fetch(url_, transformedOptions_);
|
|
1243
1243
|
}).then((_response) => {
|
|
1244
|
-
return this.
|
|
1244
|
+
return this.processGetRouteCardUserSettings(_response);
|
|
1245
1245
|
});
|
|
1246
1246
|
}
|
|
1247
|
-
|
|
1247
|
+
processGetRouteCardUserSettings(response) {
|
|
1248
1248
|
const status = response.status;
|
|
1249
1249
|
let _headers = {};
|
|
1250
1250
|
if (response.headers && response.headers.forEach) {
|
|
@@ -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 =
|
|
1258
|
+
result200 = RouteCardAppSettings.fromJS(resultData200);
|
|
1259
1259
|
return result200;
|
|
1260
1260
|
});
|
|
1261
1261
|
}
|
|
@@ -1266,8 +1266,8 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
return Promise.resolve(null);
|
|
1268
1268
|
}
|
|
1269
|
-
|
|
1270
|
-
let url_ = this.baseUrl + "/userappsettings/
|
|
1269
|
+
setRouteCardUserSettings(settings) {
|
|
1270
|
+
let url_ = this.baseUrl + "/userappsettings/route-card";
|
|
1271
1271
|
url_ = url_.replace(/[?&]$/, "");
|
|
1272
1272
|
const content_ = JSON.stringify(settings);
|
|
1273
1273
|
let options_ = {
|
|
@@ -1280,10 +1280,10 @@ export class UserAppSettingsClient extends AuthorizedApiBase {
|
|
|
1280
1280
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1281
1281
|
return this.http.fetch(url_, transformedOptions_);
|
|
1282
1282
|
}).then((_response) => {
|
|
1283
|
-
return this.
|
|
1283
|
+
return this.processSetRouteCardUserSettings(_response);
|
|
1284
1284
|
});
|
|
1285
1285
|
}
|
|
1286
|
-
|
|
1286
|
+
processSetRouteCardUserSettings(response) {
|
|
1287
1287
|
const status = response.status;
|
|
1288
1288
|
let _headers = {};
|
|
1289
1289
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20890,7 +20890,7 @@ export class ListUsersRequest {
|
|
|
20890
20890
|
return data;
|
|
20891
20891
|
}
|
|
20892
20892
|
}
|
|
20893
|
-
export class
|
|
20893
|
+
export class RouteCardAppSettings {
|
|
20894
20894
|
constructor(data) {
|
|
20895
20895
|
if (data) {
|
|
20896
20896
|
for (var property in data) {
|
|
@@ -20907,7 +20907,7 @@ export class EngageAppSettings {
|
|
|
20907
20907
|
}
|
|
20908
20908
|
static fromJS(data) {
|
|
20909
20909
|
data = typeof data === 'object' ? data : {};
|
|
20910
|
-
let result = new
|
|
20910
|
+
let result = new RouteCardAppSettings();
|
|
20911
20911
|
result.init(data);
|
|
20912
20912
|
return result;
|
|
20913
20913
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1369,9 +1369,9 @@ export class UsersClient extends AuthorizedApiBase implements IUsersClient {
|
|
|
1369
1369
|
|
|
1370
1370
|
export interface IUserAppSettingsClient {
|
|
1371
1371
|
|
|
1372
|
-
|
|
1372
|
+
getRouteCardUserSettings(): Promise<RouteCardAppSettings>;
|
|
1373
1373
|
|
|
1374
|
-
|
|
1374
|
+
setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void>;
|
|
1375
1375
|
|
|
1376
1376
|
getMoveUserSettings(): Promise<MoveAppSettings>;
|
|
1377
1377
|
|
|
@@ -1389,8 +1389,8 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
1389
1389
|
this.baseUrl = baseUrl ?? "";
|
|
1390
1390
|
}
|
|
1391
1391
|
|
|
1392
|
-
|
|
1393
|
-
let url_ = this.baseUrl + "/userappsettings/
|
|
1392
|
+
getRouteCardUserSettings(): Promise<RouteCardAppSettings> {
|
|
1393
|
+
let url_ = this.baseUrl + "/userappsettings/route-card";
|
|
1394
1394
|
url_ = url_.replace(/[?&]$/, "");
|
|
1395
1395
|
|
|
1396
1396
|
let options_: RequestInit = {
|
|
@@ -1403,18 +1403,18 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
1403
1403
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1404
1404
|
return this.http.fetch(url_, transformedOptions_);
|
|
1405
1405
|
}).then((_response: Response) => {
|
|
1406
|
-
return this.
|
|
1406
|
+
return this.processGetRouteCardUserSettings(_response);
|
|
1407
1407
|
});
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
|
-
protected
|
|
1410
|
+
protected processGetRouteCardUserSettings(response: Response): Promise<RouteCardAppSettings> {
|
|
1411
1411
|
const status = response.status;
|
|
1412
1412
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1413
1413
|
if (status === 200) {
|
|
1414
1414
|
return response.text().then((_responseText) => {
|
|
1415
1415
|
let result200: any = null;
|
|
1416
1416
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1417
|
-
result200 =
|
|
1417
|
+
result200 = RouteCardAppSettings.fromJS(resultData200);
|
|
1418
1418
|
return result200;
|
|
1419
1419
|
});
|
|
1420
1420
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -1422,11 +1422,11 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
1422
1422
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
|
-
return Promise.resolve<
|
|
1425
|
+
return Promise.resolve<RouteCardAppSettings>(null as any);
|
|
1426
1426
|
}
|
|
1427
1427
|
|
|
1428
|
-
|
|
1429
|
-
let url_ = this.baseUrl + "/userappsettings/
|
|
1428
|
+
setRouteCardUserSettings(settings: RouteCardAppSettings): Promise<void> {
|
|
1429
|
+
let url_ = this.baseUrl + "/userappsettings/route-card";
|
|
1430
1430
|
url_ = url_.replace(/[?&]$/, "");
|
|
1431
1431
|
|
|
1432
1432
|
const content_ = JSON.stringify(settings);
|
|
@@ -1442,11 +1442,11 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
|
|
|
1442
1442
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1443
1443
|
return this.http.fetch(url_, transformedOptions_);
|
|
1444
1444
|
}).then((_response: Response) => {
|
|
1445
|
-
return this.
|
|
1445
|
+
return this.processSetRouteCardUserSettings(_response);
|
|
1446
1446
|
});
|
|
1447
1447
|
}
|
|
1448
1448
|
|
|
1449
|
-
protected
|
|
1449
|
+
protected processSetRouteCardUserSettings(response: Response): Promise<void> {
|
|
1450
1450
|
const status = response.status;
|
|
1451
1451
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1452
1452
|
if (status === 204) {
|
|
@@ -22308,7 +22308,7 @@ export class Machine implements IMachine {
|
|
|
22308
22308
|
externalId?: string;
|
|
22309
22309
|
id?: number;
|
|
22310
22310
|
name?: string;
|
|
22311
|
-
description?: string;
|
|
22311
|
+
description?: string | null;
|
|
22312
22312
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
22313
22313
|
|
|
22314
22314
|
constructor(data?: IMachine) {
|
|
@@ -22360,7 +22360,7 @@ export interface IMachine {
|
|
|
22360
22360
|
externalId?: string;
|
|
22361
22361
|
id?: number;
|
|
22362
22362
|
name?: string;
|
|
22363
|
-
description?: string;
|
|
22363
|
+
description?: string | null;
|
|
22364
22364
|
datapoints?: NumericNullableValueWithTimestamp[];
|
|
22365
22365
|
}
|
|
22366
22366
|
|
|
@@ -22719,11 +22719,11 @@ export interface IListUsersRequest {
|
|
|
22719
22719
|
continuationToken?: string | null;
|
|
22720
22720
|
}
|
|
22721
22721
|
|
|
22722
|
-
export class
|
|
22722
|
+
export class RouteCardAppSettings implements IRouteCardAppSettings {
|
|
22723
22723
|
includeDrawingInRouteCardPrint?: boolean;
|
|
22724
22724
|
routeCardPrintInLandscapeOrientation?: boolean;
|
|
22725
22725
|
|
|
22726
|
-
constructor(data?:
|
|
22726
|
+
constructor(data?: IRouteCardAppSettings) {
|
|
22727
22727
|
if (data) {
|
|
22728
22728
|
for (var property in data) {
|
|
22729
22729
|
if (data.hasOwnProperty(property))
|
|
@@ -22739,9 +22739,9 @@ export class EngageAppSettings implements IEngageAppSettings {
|
|
|
22739
22739
|
}
|
|
22740
22740
|
}
|
|
22741
22741
|
|
|
22742
|
-
static fromJS(data: any):
|
|
22742
|
+
static fromJS(data: any): RouteCardAppSettings {
|
|
22743
22743
|
data = typeof data === 'object' ? data : {};
|
|
22744
|
-
let result = new
|
|
22744
|
+
let result = new RouteCardAppSettings();
|
|
22745
22745
|
result.init(data);
|
|
22746
22746
|
return result;
|
|
22747
22747
|
}
|
|
@@ -22754,7 +22754,7 @@ export class EngageAppSettings implements IEngageAppSettings {
|
|
|
22754
22754
|
}
|
|
22755
22755
|
}
|
|
22756
22756
|
|
|
22757
|
-
export interface
|
|
22757
|
+
export interface IRouteCardAppSettings {
|
|
22758
22758
|
includeDrawingInRouteCardPrint?: boolean;
|
|
22759
22759
|
routeCardPrintInLandscapeOrientation?: boolean;
|
|
22760
22760
|
}
|