@ignos/api-client 20240703.0.9731 → 20240705.0.9760
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 +7 -5
- package/lib/ignosportal-api.js +10 -4
- package/package.json +1 -1
- package/src/ignosportal-api.ts +17 -9
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -639,7 +639,7 @@ export declare class MeasuringToolsClient extends AuthorizedApiBase implements I
|
|
|
639
639
|
protected processGetMeasuringToolSettings(response: Response): Promise<MeasuringToolSettingsDto>;
|
|
640
640
|
}
|
|
641
641
|
export interface IMachinesClient {
|
|
642
|
-
listMachines(): Promise<MachineDto[]>;
|
|
642
|
+
listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]>;
|
|
643
643
|
listMachineGroups(): Promise<MachineGroupDto[]>;
|
|
644
644
|
createMachineGroup(request: CreateMachineGroup): Promise<CreateMachineGroupResponse>;
|
|
645
645
|
updateMachineGroup(id: string, request: UpdateMachineGroup): Promise<void>;
|
|
@@ -662,7 +662,7 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
|
|
|
662
662
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
663
663
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
664
664
|
});
|
|
665
|
-
listMachines(): Promise<MachineDto[]>;
|
|
665
|
+
listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]>;
|
|
666
666
|
protected processListMachines(response: Response): Promise<MachineDto[]>;
|
|
667
667
|
listMachineGroups(): Promise<MachineGroupDto[]>;
|
|
668
668
|
protected processListMachineGroups(response: Response): Promise<MachineGroupDto[]>;
|
|
@@ -8705,6 +8705,7 @@ export declare class BookingItemDto implements IBookingItemDto {
|
|
|
8705
8705
|
workOrderId: string;
|
|
8706
8706
|
material?: string | null;
|
|
8707
8707
|
comment?: string | null;
|
|
8708
|
+
covered: MaterialCoveredDto;
|
|
8708
8709
|
toLocationOverride?: LocationDto | null;
|
|
8709
8710
|
constructor(data?: IBookingItemDto);
|
|
8710
8711
|
init(_data?: any): void;
|
|
@@ -8716,8 +8717,10 @@ export interface IBookingItemDto {
|
|
|
8716
8717
|
workOrderId: string;
|
|
8717
8718
|
material?: string | null;
|
|
8718
8719
|
comment?: string | null;
|
|
8720
|
+
covered: MaterialCoveredDto;
|
|
8719
8721
|
toLocationOverride?: LocationDto | null;
|
|
8720
8722
|
}
|
|
8723
|
+
export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
|
|
8721
8724
|
export declare class LocationDto implements ILocationDto {
|
|
8722
8725
|
locationId: string;
|
|
8723
8726
|
locationName: string;
|
|
@@ -8819,7 +8822,6 @@ export declare class BookingGeneralRequestDto implements IBookingGeneralRequestD
|
|
|
8819
8822
|
transportKind: TransportKindDto;
|
|
8820
8823
|
fromLocationId: string;
|
|
8821
8824
|
toLocationId: string;
|
|
8822
|
-
material?: string | null;
|
|
8823
8825
|
comment?: string | null;
|
|
8824
8826
|
itemCount: number;
|
|
8825
8827
|
constructor(data?: IBookingGeneralRequestDto);
|
|
@@ -8832,7 +8834,6 @@ export interface IBookingGeneralRequestDto {
|
|
|
8832
8834
|
transportKind: TransportKindDto;
|
|
8833
8835
|
fromLocationId: string;
|
|
8834
8836
|
toLocationId: string;
|
|
8835
|
-
material?: string | null;
|
|
8836
8837
|
comment?: string | null;
|
|
8837
8838
|
itemCount: number;
|
|
8838
8839
|
}
|
|
@@ -8908,7 +8909,6 @@ export interface IMaterialDesciptionDto {
|
|
|
8908
8909
|
materialName: string;
|
|
8909
8910
|
covered: MaterialCoveredDto;
|
|
8910
8911
|
}
|
|
8911
|
-
export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
|
|
8912
8912
|
export declare class MaterialUpdateDto implements IMaterialUpdateDto {
|
|
8913
8913
|
materialName: string;
|
|
8914
8914
|
covered: MaterialCoveredDto;
|
|
@@ -8996,6 +8996,7 @@ export declare class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
|
|
|
8996
8996
|
workOrderId: string;
|
|
8997
8997
|
part?: PartDto | null;
|
|
8998
8998
|
trackingHistory: TrackingHistoryDto[];
|
|
8999
|
+
covered: MaterialCoveredDto;
|
|
8999
9000
|
constructor(data?: ITrackingWorkOrderDto);
|
|
9000
9001
|
init(_data?: any): void;
|
|
9001
9002
|
static fromJS(data: any): TrackingWorkOrderDto;
|
|
@@ -9005,6 +9006,7 @@ export interface ITrackingWorkOrderDto {
|
|
|
9005
9006
|
workOrderId: string;
|
|
9006
9007
|
part?: PartDto | null;
|
|
9007
9008
|
trackingHistory: TrackingHistoryDto[];
|
|
9009
|
+
covered: MaterialCoveredDto;
|
|
9008
9010
|
}
|
|
9009
9011
|
export declare class TrackingUpdateDto implements ITrackingUpdateDto {
|
|
9010
9012
|
trackingId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -4838,8 +4838,12 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
4838
4838
|
this.http = http ? http : window;
|
|
4839
4839
|
this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
|
|
4840
4840
|
}
|
|
4841
|
-
listMachines() {
|
|
4842
|
-
let url_ = this.baseUrl + "/machines";
|
|
4841
|
+
listMachines(onlyConnectedMachines) {
|
|
4842
|
+
let url_ = this.baseUrl + "/machines?";
|
|
4843
|
+
if (onlyConnectedMachines === null)
|
|
4844
|
+
throw new Error("The parameter 'onlyConnectedMachines' cannot be null.");
|
|
4845
|
+
else if (onlyConnectedMachines !== undefined)
|
|
4846
|
+
url_ += "onlyConnectedMachines=" + encodeURIComponent("" + onlyConnectedMachines) + "&";
|
|
4843
4847
|
url_ = url_.replace(/[?&]$/, "");
|
|
4844
4848
|
let options_ = {
|
|
4845
4849
|
method: "GET",
|
|
@@ -31652,6 +31656,7 @@ export class BookingItemDto {
|
|
|
31652
31656
|
this.workOrderId = _data["workOrderId"];
|
|
31653
31657
|
this.material = _data["material"];
|
|
31654
31658
|
this.comment = _data["comment"];
|
|
31659
|
+
this.covered = _data["covered"];
|
|
31655
31660
|
this.toLocationOverride = _data["toLocationOverride"] ? LocationDto.fromJS(_data["toLocationOverride"]) : undefined;
|
|
31656
31661
|
}
|
|
31657
31662
|
}
|
|
@@ -31667,6 +31672,7 @@ export class BookingItemDto {
|
|
|
31667
31672
|
data["workOrderId"] = this.workOrderId;
|
|
31668
31673
|
data["material"] = this.material;
|
|
31669
31674
|
data["comment"] = this.comment;
|
|
31675
|
+
data["covered"] = this.covered;
|
|
31670
31676
|
data["toLocationOverride"] = this.toLocationOverride ? this.toLocationOverride.toJSON() : undefined;
|
|
31671
31677
|
return data;
|
|
31672
31678
|
}
|
|
@@ -31927,7 +31933,6 @@ export class BookingGeneralRequestDto {
|
|
|
31927
31933
|
this.transportKind = _data["transportKind"];
|
|
31928
31934
|
this.fromLocationId = _data["fromLocationId"];
|
|
31929
31935
|
this.toLocationId = _data["toLocationId"];
|
|
31930
|
-
this.material = _data["material"];
|
|
31931
31936
|
this.comment = _data["comment"];
|
|
31932
31937
|
this.itemCount = _data["itemCount"];
|
|
31933
31938
|
}
|
|
@@ -31944,7 +31949,6 @@ export class BookingGeneralRequestDto {
|
|
|
31944
31949
|
data["transportKind"] = this.transportKind;
|
|
31945
31950
|
data["fromLocationId"] = this.fromLocationId;
|
|
31946
31951
|
data["toLocationId"] = this.toLocationId;
|
|
31947
|
-
data["material"] = this.material;
|
|
31948
31952
|
data["comment"] = this.comment;
|
|
31949
31953
|
data["itemCount"] = this.itemCount;
|
|
31950
31954
|
return data;
|
|
@@ -32374,6 +32378,7 @@ export class TrackingWorkOrderDto {
|
|
|
32374
32378
|
for (let item of _data["trackingHistory"])
|
|
32375
32379
|
this.trackingHistory.push(TrackingHistoryDto.fromJS(item));
|
|
32376
32380
|
}
|
|
32381
|
+
this.covered = _data["covered"];
|
|
32377
32382
|
}
|
|
32378
32383
|
}
|
|
32379
32384
|
static fromJS(data) {
|
|
@@ -32391,6 +32396,7 @@ export class TrackingWorkOrderDto {
|
|
|
32391
32396
|
for (let item of this.trackingHistory)
|
|
32392
32397
|
data["trackingHistory"].push(item.toJSON());
|
|
32393
32398
|
}
|
|
32399
|
+
data["covered"] = this.covered;
|
|
32394
32400
|
return data;
|
|
32395
32401
|
}
|
|
32396
32402
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -5183,7 +5183,7 @@ export class MeasuringToolsClient extends AuthorizedApiBase implements IMeasurin
|
|
|
5183
5183
|
|
|
5184
5184
|
export interface IMachinesClient {
|
|
5185
5185
|
|
|
5186
|
-
listMachines(): Promise<MachineDto[]>;
|
|
5186
|
+
listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]>;
|
|
5187
5187
|
|
|
5188
5188
|
listMachineGroups(): Promise<MachineGroupDto[]>;
|
|
5189
5189
|
|
|
@@ -5225,8 +5225,12 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
5225
5225
|
this.baseUrl = baseUrl ?? "";
|
|
5226
5226
|
}
|
|
5227
5227
|
|
|
5228
|
-
listMachines(): Promise<MachineDto[]> {
|
|
5229
|
-
let url_ = this.baseUrl + "/machines";
|
|
5228
|
+
listMachines(onlyConnectedMachines: boolean | undefined): Promise<MachineDto[]> {
|
|
5229
|
+
let url_ = this.baseUrl + "/machines?";
|
|
5230
|
+
if (onlyConnectedMachines === null)
|
|
5231
|
+
throw new Error("The parameter 'onlyConnectedMachines' cannot be null.");
|
|
5232
|
+
else if (onlyConnectedMachines !== undefined)
|
|
5233
|
+
url_ += "onlyConnectedMachines=" + encodeURIComponent("" + onlyConnectedMachines) + "&";
|
|
5230
5234
|
url_ = url_.replace(/[?&]$/, "");
|
|
5231
5235
|
|
|
5232
5236
|
let options_: RequestInit = {
|
|
@@ -39385,6 +39389,7 @@ export class BookingItemDto implements IBookingItemDto {
|
|
|
39385
39389
|
workOrderId!: string;
|
|
39386
39390
|
material?: string | null;
|
|
39387
39391
|
comment?: string | null;
|
|
39392
|
+
covered!: MaterialCoveredDto;
|
|
39388
39393
|
toLocationOverride?: LocationDto | null;
|
|
39389
39394
|
|
|
39390
39395
|
constructor(data?: IBookingItemDto) {
|
|
@@ -39402,6 +39407,7 @@ export class BookingItemDto implements IBookingItemDto {
|
|
|
39402
39407
|
this.workOrderId = _data["workOrderId"];
|
|
39403
39408
|
this.material = _data["material"];
|
|
39404
39409
|
this.comment = _data["comment"];
|
|
39410
|
+
this.covered = _data["covered"];
|
|
39405
39411
|
this.toLocationOverride = _data["toLocationOverride"] ? LocationDto.fromJS(_data["toLocationOverride"]) : <any>undefined;
|
|
39406
39412
|
}
|
|
39407
39413
|
}
|
|
@@ -39419,6 +39425,7 @@ export class BookingItemDto implements IBookingItemDto {
|
|
|
39419
39425
|
data["workOrderId"] = this.workOrderId;
|
|
39420
39426
|
data["material"] = this.material;
|
|
39421
39427
|
data["comment"] = this.comment;
|
|
39428
|
+
data["covered"] = this.covered;
|
|
39422
39429
|
data["toLocationOverride"] = this.toLocationOverride ? this.toLocationOverride.toJSON() : <any>undefined;
|
|
39423
39430
|
return data;
|
|
39424
39431
|
}
|
|
@@ -39429,9 +39436,12 @@ export interface IBookingItemDto {
|
|
|
39429
39436
|
workOrderId: string;
|
|
39430
39437
|
material?: string | null;
|
|
39431
39438
|
comment?: string | null;
|
|
39439
|
+
covered: MaterialCoveredDto;
|
|
39432
39440
|
toLocationOverride?: LocationDto | null;
|
|
39433
39441
|
}
|
|
39434
39442
|
|
|
39443
|
+
export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
|
|
39444
|
+
|
|
39435
39445
|
export class LocationDto implements ILocationDto {
|
|
39436
39446
|
locationId!: string;
|
|
39437
39447
|
locationName!: string;
|
|
@@ -39776,7 +39786,6 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
|
39776
39786
|
transportKind!: TransportKindDto;
|
|
39777
39787
|
fromLocationId!: string;
|
|
39778
39788
|
toLocationId!: string;
|
|
39779
|
-
material?: string | null;
|
|
39780
39789
|
comment?: string | null;
|
|
39781
39790
|
itemCount!: number;
|
|
39782
39791
|
|
|
@@ -39795,7 +39804,6 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
|
39795
39804
|
this.transportKind = _data["transportKind"];
|
|
39796
39805
|
this.fromLocationId = _data["fromLocationId"];
|
|
39797
39806
|
this.toLocationId = _data["toLocationId"];
|
|
39798
|
-
this.material = _data["material"];
|
|
39799
39807
|
this.comment = _data["comment"];
|
|
39800
39808
|
this.itemCount = _data["itemCount"];
|
|
39801
39809
|
}
|
|
@@ -39814,7 +39822,6 @@ export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
|
39814
39822
|
data["transportKind"] = this.transportKind;
|
|
39815
39823
|
data["fromLocationId"] = this.fromLocationId;
|
|
39816
39824
|
data["toLocationId"] = this.toLocationId;
|
|
39817
|
-
data["material"] = this.material;
|
|
39818
39825
|
data["comment"] = this.comment;
|
|
39819
39826
|
data["itemCount"] = this.itemCount;
|
|
39820
39827
|
return data;
|
|
@@ -39826,7 +39833,6 @@ export interface IBookingGeneralRequestDto {
|
|
|
39826
39833
|
transportKind: TransportKindDto;
|
|
39827
39834
|
fromLocationId: string;
|
|
39828
39835
|
toLocationId: string;
|
|
39829
|
-
material?: string | null;
|
|
39830
39836
|
comment?: string | null;
|
|
39831
39837
|
itemCount: number;
|
|
39832
39838
|
}
|
|
@@ -40098,8 +40104,6 @@ export interface IMaterialDesciptionDto {
|
|
|
40098
40104
|
covered: MaterialCoveredDto;
|
|
40099
40105
|
}
|
|
40100
40106
|
|
|
40101
|
-
export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
|
|
40102
|
-
|
|
40103
40107
|
export class MaterialUpdateDto implements IMaterialUpdateDto {
|
|
40104
40108
|
materialName!: string;
|
|
40105
40109
|
covered!: MaterialCoveredDto;
|
|
@@ -40396,6 +40400,7 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
|
|
|
40396
40400
|
workOrderId!: string;
|
|
40397
40401
|
part?: PartDto | null;
|
|
40398
40402
|
trackingHistory!: TrackingHistoryDto[];
|
|
40403
|
+
covered!: MaterialCoveredDto;
|
|
40399
40404
|
|
|
40400
40405
|
constructor(data?: ITrackingWorkOrderDto) {
|
|
40401
40406
|
if (data) {
|
|
@@ -40418,6 +40423,7 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
|
|
|
40418
40423
|
for (let item of _data["trackingHistory"])
|
|
40419
40424
|
this.trackingHistory!.push(TrackingHistoryDto.fromJS(item));
|
|
40420
40425
|
}
|
|
40426
|
+
this.covered = _data["covered"];
|
|
40421
40427
|
}
|
|
40422
40428
|
}
|
|
40423
40429
|
|
|
@@ -40437,6 +40443,7 @@ export class TrackingWorkOrderDto implements ITrackingWorkOrderDto {
|
|
|
40437
40443
|
for (let item of this.trackingHistory)
|
|
40438
40444
|
data["trackingHistory"].push(item.toJSON());
|
|
40439
40445
|
}
|
|
40446
|
+
data["covered"] = this.covered;
|
|
40440
40447
|
return data;
|
|
40441
40448
|
}
|
|
40442
40449
|
}
|
|
@@ -40445,6 +40452,7 @@ export interface ITrackingWorkOrderDto {
|
|
|
40445
40452
|
workOrderId: string;
|
|
40446
40453
|
part?: PartDto | null;
|
|
40447
40454
|
trackingHistory: TrackingHistoryDto[];
|
|
40455
|
+
covered: MaterialCoveredDto;
|
|
40448
40456
|
}
|
|
40449
40457
|
|
|
40450
40458
|
export class TrackingUpdateDto implements ITrackingUpdateDto {
|