@ignos/api-client 20251021.0.12930 → 20251022.0.12942-alpha
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 +18 -18
- package/lib/ignosportal-api.js +34 -90
- package/package.json +1 -1
- package/src/ignosportal-api.ts +52 -104
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1692,7 +1692,6 @@ export interface IMoveBookingClient {
|
|
|
1692
1692
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
1693
1693
|
preBookGeneral(req: PreBookingGeneralRequestDto): Promise<PreBookingResultItemDto[]>;
|
|
1694
1694
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
1695
|
-
exportBookings(includeTracking: boolean | undefined): Promise<DownloadDto>;
|
|
1696
1695
|
}
|
|
1697
1696
|
export declare class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
|
|
1698
1697
|
private http;
|
|
@@ -1719,8 +1718,6 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1719
1718
|
protected processPreBookGeneral(response: Response): Promise<PreBookingResultItemDto[]>;
|
|
1720
1719
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
1721
1720
|
protected processUpdateBookingStatus(response: Response): Promise<BookingDto>;
|
|
1722
|
-
exportBookings(includeTracking: boolean | undefined): Promise<DownloadDto>;
|
|
1723
|
-
protected processExportBookings(response: Response): Promise<DownloadDto>;
|
|
1724
1721
|
}
|
|
1725
1722
|
export interface IMoveLocationsClient {
|
|
1726
1723
|
listLocations(): Promise<LocationZoneGroupDto[]>;
|
|
@@ -1813,7 +1810,6 @@ export interface IMoveTrackingClient {
|
|
|
1813
1810
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1814
1811
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1815
1812
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1816
|
-
exportParcels(): Promise<DownloadDto>;
|
|
1817
1813
|
}
|
|
1818
1814
|
export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
1819
1815
|
private http;
|
|
@@ -1838,8 +1834,6 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
1838
1834
|
protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]>;
|
|
1839
1835
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1840
1836
|
protected processDeleteTrackingHistory(response: Response): Promise<void>;
|
|
1841
|
-
exportParcels(): Promise<DownloadDto>;
|
|
1842
|
-
protected processExportParcels(response: Response): Promise<DownloadDto>;
|
|
1843
1837
|
}
|
|
1844
1838
|
export interface IParcelCategoryClient {
|
|
1845
1839
|
getSettings(): Promise<ParcelCategorySettingsDto>;
|
|
@@ -5221,6 +5215,7 @@ export declare class MeasuringToolDto implements IMeasuringToolDto {
|
|
|
5221
5215
|
unit?: string | null;
|
|
5222
5216
|
min?: number | null;
|
|
5223
5217
|
max?: number | null;
|
|
5218
|
+
lastUsedBy?: MeasuringToolLastUsedByDto | null;
|
|
5224
5219
|
lastCalibrationDate?: Date | null;
|
|
5225
5220
|
nextCalibrationDate?: Date | null;
|
|
5226
5221
|
calibrationInterval?: number | null;
|
|
@@ -5248,6 +5243,7 @@ export interface IMeasuringToolDto {
|
|
|
5248
5243
|
unit?: string | null;
|
|
5249
5244
|
min?: number | null;
|
|
5250
5245
|
max?: number | null;
|
|
5246
|
+
lastUsedBy?: MeasuringToolLastUsedByDto | null;
|
|
5251
5247
|
lastCalibrationDate?: Date | null;
|
|
5252
5248
|
nextCalibrationDate?: Date | null;
|
|
5253
5249
|
calibrationInterval?: number | null;
|
|
@@ -5259,6 +5255,20 @@ export interface IMeasuringToolDto {
|
|
|
5259
5255
|
usageSinceLastCalibration?: number | null;
|
|
5260
5256
|
calibrationStatus: CalibrationStatusDto;
|
|
5261
5257
|
}
|
|
5258
|
+
export declare class MeasuringToolLastUsedByDto implements IMeasuringToolLastUsedByDto {
|
|
5259
|
+
objectId?: string;
|
|
5260
|
+
userId?: string;
|
|
5261
|
+
displayName?: string | null;
|
|
5262
|
+
constructor(data?: IMeasuringToolLastUsedByDto);
|
|
5263
|
+
init(_data?: any): void;
|
|
5264
|
+
static fromJS(data: any): MeasuringToolLastUsedByDto;
|
|
5265
|
+
toJSON(data?: any): any;
|
|
5266
|
+
}
|
|
5267
|
+
export interface IMeasuringToolLastUsedByDto {
|
|
5268
|
+
objectId?: string;
|
|
5269
|
+
userId?: string;
|
|
5270
|
+
displayName?: string | null;
|
|
5271
|
+
}
|
|
5262
5272
|
export type CalibrationStatusDto = "Uncalibrated" | "Deprecated" | "Expired" | "SoonDue" | "Valid";
|
|
5263
5273
|
export declare class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
|
|
5264
5274
|
id: string;
|
|
@@ -5271,6 +5281,7 @@ export declare class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
|
|
|
5271
5281
|
defaultLocation?: string | null;
|
|
5272
5282
|
min?: number | null;
|
|
5273
5283
|
max?: number | null;
|
|
5284
|
+
lastUsedBy?: MeasuringToolLastUsedByDto | null;
|
|
5274
5285
|
calibrationInterval?: number | null;
|
|
5275
5286
|
serialNumber?: string | null;
|
|
5276
5287
|
precision?: string | null;
|
|
@@ -5297,6 +5308,7 @@ export interface IMeasuringToolDetailDto {
|
|
|
5297
5308
|
defaultLocation?: string | null;
|
|
5298
5309
|
min?: number | null;
|
|
5299
5310
|
max?: number | null;
|
|
5311
|
+
lastUsedBy?: MeasuringToolLastUsedByDto | null;
|
|
5300
5312
|
calibrationInterval?: number | null;
|
|
5301
5313
|
serialNumber?: string | null;
|
|
5302
5314
|
precision?: string | null;
|
|
@@ -9698,8 +9710,6 @@ export declare class BookingParcelDto implements IBookingParcelDto {
|
|
|
9698
9710
|
parcelKind: ParcelKindDto;
|
|
9699
9711
|
partName?: string | null;
|
|
9700
9712
|
partNumber?: string | null;
|
|
9701
|
-
projectId?: string | null;
|
|
9702
|
-
projectName?: string | null;
|
|
9703
9713
|
quantity?: number | null;
|
|
9704
9714
|
material?: string | null;
|
|
9705
9715
|
materialOperation?: number | null;
|
|
@@ -9720,8 +9730,6 @@ export interface IBookingParcelDto {
|
|
|
9720
9730
|
parcelKind: ParcelKindDto;
|
|
9721
9731
|
partName?: string | null;
|
|
9722
9732
|
partNumber?: string | null;
|
|
9723
|
-
projectId?: string | null;
|
|
9724
|
-
projectName?: string | null;
|
|
9725
9733
|
quantity?: number | null;
|
|
9726
9734
|
material?: string | null;
|
|
9727
9735
|
materialOperation?: number | null;
|
|
@@ -10296,8 +10304,6 @@ export declare class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
10296
10304
|
parcelKind: ParcelKindDto;
|
|
10297
10305
|
partName?: string | null;
|
|
10298
10306
|
partNumber?: string | null;
|
|
10299
|
-
projectId?: string | null;
|
|
10300
|
-
projectName?: string | null;
|
|
10301
10307
|
quantity?: number | null;
|
|
10302
10308
|
material?: string | null;
|
|
10303
10309
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10313,8 +10319,6 @@ export interface ITrackingParcelDto {
|
|
|
10313
10319
|
parcelKind: ParcelKindDto;
|
|
10314
10320
|
partName?: string | null;
|
|
10315
10321
|
partNumber?: string | null;
|
|
10316
|
-
projectId?: string | null;
|
|
10317
|
-
projectName?: string | null;
|
|
10318
10322
|
quantity?: number | null;
|
|
10319
10323
|
material?: string | null;
|
|
10320
10324
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10417,8 +10421,6 @@ export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlat
|
|
|
10417
10421
|
parcelKind: ParcelKindDto;
|
|
10418
10422
|
partName?: string | null;
|
|
10419
10423
|
partNumber?: string | null;
|
|
10420
|
-
projectId?: string | null;
|
|
10421
|
-
projectName?: string | null;
|
|
10422
10424
|
quantity?: number | null;
|
|
10423
10425
|
material?: string | null;
|
|
10424
10426
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10442,8 +10444,6 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
10442
10444
|
parcelKind: ParcelKindDto;
|
|
10443
10445
|
partName?: string | null;
|
|
10444
10446
|
partNumber?: string | null;
|
|
10445
|
-
projectId?: string | null;
|
|
10446
|
-
projectName?: string | null;
|
|
10447
10447
|
quantity?: number | null;
|
|
10448
10448
|
material?: string | null;
|
|
10449
10449
|
covered?: MaterialCoveredDto | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -14603,47 +14603,6 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
14603
14603
|
}
|
|
14604
14604
|
return Promise.resolve(null);
|
|
14605
14605
|
}
|
|
14606
|
-
exportBookings(includeTracking) {
|
|
14607
|
-
let url_ = this.baseUrl + "/move/booking/export?";
|
|
14608
|
-
if (includeTracking === null)
|
|
14609
|
-
throw new globalThis.Error("The parameter 'includeTracking' cannot be null.");
|
|
14610
|
-
else if (includeTracking !== undefined)
|
|
14611
|
-
url_ += "includeTracking=" + encodeURIComponent("" + includeTracking) + "&";
|
|
14612
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
14613
|
-
let options_ = {
|
|
14614
|
-
method: "POST",
|
|
14615
|
-
headers: {
|
|
14616
|
-
"Accept": "application/json"
|
|
14617
|
-
}
|
|
14618
|
-
};
|
|
14619
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
14620
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
14621
|
-
}).then((_response) => {
|
|
14622
|
-
return this.processExportBookings(_response);
|
|
14623
|
-
});
|
|
14624
|
-
}
|
|
14625
|
-
processExportBookings(response) {
|
|
14626
|
-
const status = response.status;
|
|
14627
|
-
let _headers = {};
|
|
14628
|
-
if (response.headers && response.headers.forEach) {
|
|
14629
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
14630
|
-
}
|
|
14631
|
-
;
|
|
14632
|
-
if (status === 200) {
|
|
14633
|
-
return response.text().then((_responseText) => {
|
|
14634
|
-
let result200 = null;
|
|
14635
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
14636
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
14637
|
-
return result200;
|
|
14638
|
-
});
|
|
14639
|
-
}
|
|
14640
|
-
else if (status !== 200 && status !== 204) {
|
|
14641
|
-
return response.text().then((_responseText) => {
|
|
14642
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
14643
|
-
});
|
|
14644
|
-
}
|
|
14645
|
-
return Promise.resolve(null);
|
|
14646
|
-
}
|
|
14647
14606
|
}
|
|
14648
14607
|
export class MoveLocationsClient extends AuthorizedApiBase {
|
|
14649
14608
|
constructor(configuration, baseUrl, http) {
|
|
@@ -15600,43 +15559,6 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
15600
15559
|
}
|
|
15601
15560
|
return Promise.resolve(null);
|
|
15602
15561
|
}
|
|
15603
|
-
exportParcels() {
|
|
15604
|
-
let url_ = this.baseUrl + "/move/tracking/export";
|
|
15605
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
15606
|
-
let options_ = {
|
|
15607
|
-
method: "POST",
|
|
15608
|
-
headers: {
|
|
15609
|
-
"Accept": "application/json"
|
|
15610
|
-
}
|
|
15611
|
-
};
|
|
15612
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
15613
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
15614
|
-
}).then((_response) => {
|
|
15615
|
-
return this.processExportParcels(_response);
|
|
15616
|
-
});
|
|
15617
|
-
}
|
|
15618
|
-
processExportParcels(response) {
|
|
15619
|
-
const status = response.status;
|
|
15620
|
-
let _headers = {};
|
|
15621
|
-
if (response.headers && response.headers.forEach) {
|
|
15622
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
15623
|
-
}
|
|
15624
|
-
;
|
|
15625
|
-
if (status === 200) {
|
|
15626
|
-
return response.text().then((_responseText) => {
|
|
15627
|
-
let result200 = null;
|
|
15628
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15629
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
15630
|
-
return result200;
|
|
15631
|
-
});
|
|
15632
|
-
}
|
|
15633
|
-
else if (status !== 200 && status !== 204) {
|
|
15634
|
-
return response.text().then((_responseText) => {
|
|
15635
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15636
|
-
});
|
|
15637
|
-
}
|
|
15638
|
-
return Promise.resolve(null);
|
|
15639
|
-
}
|
|
15640
15562
|
}
|
|
15641
15563
|
export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
15642
15564
|
constructor(configuration, baseUrl, http) {
|
|
@@ -28740,6 +28662,7 @@ export class MeasuringToolDto {
|
|
|
28740
28662
|
this.unit = _data["unit"];
|
|
28741
28663
|
this.min = _data["min"];
|
|
28742
28664
|
this.max = _data["max"];
|
|
28665
|
+
this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined;
|
|
28743
28666
|
this.lastCalibrationDate = _data["lastCalibrationDate"] ? new Date(_data["lastCalibrationDate"].toString()) : undefined;
|
|
28744
28667
|
this.nextCalibrationDate = _data["nextCalibrationDate"] ? new Date(_data["nextCalibrationDate"].toString()) : undefined;
|
|
28745
28668
|
this.calibrationInterval = _data["calibrationInterval"];
|
|
@@ -28771,6 +28694,7 @@ export class MeasuringToolDto {
|
|
|
28771
28694
|
data["unit"] = this.unit;
|
|
28772
28695
|
data["min"] = this.min;
|
|
28773
28696
|
data["max"] = this.max;
|
|
28697
|
+
data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined;
|
|
28774
28698
|
data["lastCalibrationDate"] = this.lastCalibrationDate ? this.lastCalibrationDate.toISOString() : undefined;
|
|
28775
28699
|
data["nextCalibrationDate"] = this.nextCalibrationDate ? this.nextCalibrationDate.toISOString() : undefined;
|
|
28776
28700
|
data["calibrationInterval"] = this.calibrationInterval;
|
|
@@ -28784,6 +28708,36 @@ export class MeasuringToolDto {
|
|
|
28784
28708
|
return data;
|
|
28785
28709
|
}
|
|
28786
28710
|
}
|
|
28711
|
+
export class MeasuringToolLastUsedByDto {
|
|
28712
|
+
constructor(data) {
|
|
28713
|
+
if (data) {
|
|
28714
|
+
for (var property in data) {
|
|
28715
|
+
if (data.hasOwnProperty(property))
|
|
28716
|
+
this[property] = data[property];
|
|
28717
|
+
}
|
|
28718
|
+
}
|
|
28719
|
+
}
|
|
28720
|
+
init(_data) {
|
|
28721
|
+
if (_data) {
|
|
28722
|
+
this.objectId = _data["objectId"];
|
|
28723
|
+
this.userId = _data["userId"];
|
|
28724
|
+
this.displayName = _data["displayName"];
|
|
28725
|
+
}
|
|
28726
|
+
}
|
|
28727
|
+
static fromJS(data) {
|
|
28728
|
+
data = typeof data === 'object' ? data : {};
|
|
28729
|
+
let result = new MeasuringToolLastUsedByDto();
|
|
28730
|
+
result.init(data);
|
|
28731
|
+
return result;
|
|
28732
|
+
}
|
|
28733
|
+
toJSON(data) {
|
|
28734
|
+
data = typeof data === 'object' ? data : {};
|
|
28735
|
+
data["objectId"] = this.objectId;
|
|
28736
|
+
data["userId"] = this.userId;
|
|
28737
|
+
data["displayName"] = this.displayName;
|
|
28738
|
+
return data;
|
|
28739
|
+
}
|
|
28740
|
+
}
|
|
28787
28741
|
export class MeasuringToolDetailDto {
|
|
28788
28742
|
constructor(data) {
|
|
28789
28743
|
if (data) {
|
|
@@ -28809,6 +28763,7 @@ export class MeasuringToolDetailDto {
|
|
|
28809
28763
|
this.defaultLocation = _data["defaultLocation"];
|
|
28810
28764
|
this.min = _data["min"];
|
|
28811
28765
|
this.max = _data["max"];
|
|
28766
|
+
this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined;
|
|
28812
28767
|
this.calibrationInterval = _data["calibrationInterval"];
|
|
28813
28768
|
this.serialNumber = _data["serialNumber"];
|
|
28814
28769
|
this.precision = _data["precision"];
|
|
@@ -28839,6 +28794,7 @@ export class MeasuringToolDetailDto {
|
|
|
28839
28794
|
data["defaultLocation"] = this.defaultLocation;
|
|
28840
28795
|
data["min"] = this.min;
|
|
28841
28796
|
data["max"] = this.max;
|
|
28797
|
+
data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined;
|
|
28842
28798
|
data["calibrationInterval"] = this.calibrationInterval;
|
|
28843
28799
|
data["serialNumber"] = this.serialNumber;
|
|
28844
28800
|
data["precision"] = this.precision;
|
|
@@ -37600,8 +37556,6 @@ export class BookingParcelDto {
|
|
|
37600
37556
|
this.parcelKind = _data["parcelKind"];
|
|
37601
37557
|
this.partName = _data["partName"];
|
|
37602
37558
|
this.partNumber = _data["partNumber"];
|
|
37603
|
-
this.projectId = _data["projectId"];
|
|
37604
|
-
this.projectName = _data["projectName"];
|
|
37605
37559
|
this.quantity = _data["quantity"];
|
|
37606
37560
|
this.material = _data["material"];
|
|
37607
37561
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -37626,8 +37580,6 @@ export class BookingParcelDto {
|
|
|
37626
37580
|
data["parcelKind"] = this.parcelKind;
|
|
37627
37581
|
data["partName"] = this.partName;
|
|
37628
37582
|
data["partNumber"] = this.partNumber;
|
|
37629
|
-
data["projectId"] = this.projectId;
|
|
37630
|
-
data["projectName"] = this.projectName;
|
|
37631
37583
|
data["quantity"] = this.quantity;
|
|
37632
37584
|
data["material"] = this.material;
|
|
37633
37585
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -39057,8 +39009,6 @@ export class TrackingParcelDto {
|
|
|
39057
39009
|
this.parcelKind = _data["parcelKind"];
|
|
39058
39010
|
this.partName = _data["partName"];
|
|
39059
39011
|
this.partNumber = _data["partNumber"];
|
|
39060
|
-
this.projectId = _data["projectId"];
|
|
39061
|
-
this.projectName = _data["projectName"];
|
|
39062
39012
|
this.quantity = _data["quantity"];
|
|
39063
39013
|
this.material = _data["material"];
|
|
39064
39014
|
this.covered = _data["covered"];
|
|
@@ -39086,8 +39036,6 @@ export class TrackingParcelDto {
|
|
|
39086
39036
|
data["parcelKind"] = this.parcelKind;
|
|
39087
39037
|
data["partName"] = this.partName;
|
|
39088
39038
|
data["partNumber"] = this.partNumber;
|
|
39089
|
-
data["projectId"] = this.projectId;
|
|
39090
|
-
data["projectName"] = this.projectName;
|
|
39091
39039
|
data["quantity"] = this.quantity;
|
|
39092
39040
|
data["material"] = this.material;
|
|
39093
39041
|
data["covered"] = this.covered;
|
|
@@ -39338,8 +39286,6 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39338
39286
|
this.parcelKind = _data["parcelKind"];
|
|
39339
39287
|
this.partName = _data["partName"];
|
|
39340
39288
|
this.partNumber = _data["partNumber"];
|
|
39341
|
-
this.projectId = _data["projectId"];
|
|
39342
|
-
this.projectName = _data["projectName"];
|
|
39343
39289
|
this.quantity = _data["quantity"];
|
|
39344
39290
|
this.material = _data["material"];
|
|
39345
39291
|
this.covered = _data["covered"];
|
|
@@ -39371,8 +39317,6 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39371
39317
|
data["parcelKind"] = this.parcelKind;
|
|
39372
39318
|
data["partName"] = this.partName;
|
|
39373
39319
|
data["partNumber"] = this.partNumber;
|
|
39374
|
-
data["projectId"] = this.projectId;
|
|
39375
|
-
data["projectName"] = this.projectName;
|
|
39376
39320
|
data["quantity"] = this.quantity;
|
|
39377
39321
|
data["material"] = this.material;
|
|
39378
39322
|
data["covered"] = this.covered;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -15179,8 +15179,6 @@ export interface IMoveBookingClient {
|
|
|
15179
15179
|
preBookGeneral(req: PreBookingGeneralRequestDto): Promise<PreBookingResultItemDto[]>;
|
|
15180
15180
|
|
|
15181
15181
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
15182
|
-
|
|
15183
|
-
exportBookings(includeTracking: boolean | undefined): Promise<DownloadDto>;
|
|
15184
15182
|
}
|
|
15185
15183
|
|
|
15186
15184
|
export class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
|
|
@@ -15567,46 +15565,6 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
15567
15565
|
}
|
|
15568
15566
|
return Promise.resolve<BookingDto>(null as any);
|
|
15569
15567
|
}
|
|
15570
|
-
|
|
15571
|
-
exportBookings(includeTracking: boolean | undefined): Promise<DownloadDto> {
|
|
15572
|
-
let url_ = this.baseUrl + "/move/booking/export?";
|
|
15573
|
-
if (includeTracking === null)
|
|
15574
|
-
throw new globalThis.Error("The parameter 'includeTracking' cannot be null.");
|
|
15575
|
-
else if (includeTracking !== undefined)
|
|
15576
|
-
url_ += "includeTracking=" + encodeURIComponent("" + includeTracking) + "&";
|
|
15577
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
15578
|
-
|
|
15579
|
-
let options_: RequestInit = {
|
|
15580
|
-
method: "POST",
|
|
15581
|
-
headers: {
|
|
15582
|
-
"Accept": "application/json"
|
|
15583
|
-
}
|
|
15584
|
-
};
|
|
15585
|
-
|
|
15586
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
15587
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
15588
|
-
}).then((_response: Response) => {
|
|
15589
|
-
return this.processExportBookings(_response);
|
|
15590
|
-
});
|
|
15591
|
-
}
|
|
15592
|
-
|
|
15593
|
-
protected processExportBookings(response: Response): Promise<DownloadDto> {
|
|
15594
|
-
const status = response.status;
|
|
15595
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
15596
|
-
if (status === 200) {
|
|
15597
|
-
return response.text().then((_responseText) => {
|
|
15598
|
-
let result200: any = null;
|
|
15599
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
15600
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
15601
|
-
return result200;
|
|
15602
|
-
});
|
|
15603
|
-
} else if (status !== 200 && status !== 204) {
|
|
15604
|
-
return response.text().then((_responseText) => {
|
|
15605
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
15606
|
-
});
|
|
15607
|
-
}
|
|
15608
|
-
return Promise.resolve<DownloadDto>(null as any);
|
|
15609
|
-
}
|
|
15610
15568
|
}
|
|
15611
15569
|
|
|
15612
15570
|
export interface IMoveLocationsClient {
|
|
@@ -16287,8 +16245,6 @@ export interface IMoveTrackingClient {
|
|
|
16287
16245
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
16288
16246
|
|
|
16289
16247
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
16290
|
-
|
|
16291
|
-
exportParcels(): Promise<DownloadDto>;
|
|
16292
16248
|
}
|
|
16293
16249
|
|
|
16294
16250
|
export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
@@ -16634,42 +16590,6 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
16634
16590
|
}
|
|
16635
16591
|
return Promise.resolve<void>(null as any);
|
|
16636
16592
|
}
|
|
16637
|
-
|
|
16638
|
-
exportParcels(): Promise<DownloadDto> {
|
|
16639
|
-
let url_ = this.baseUrl + "/move/tracking/export";
|
|
16640
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
16641
|
-
|
|
16642
|
-
let options_: RequestInit = {
|
|
16643
|
-
method: "POST",
|
|
16644
|
-
headers: {
|
|
16645
|
-
"Accept": "application/json"
|
|
16646
|
-
}
|
|
16647
|
-
};
|
|
16648
|
-
|
|
16649
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
16650
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
16651
|
-
}).then((_response: Response) => {
|
|
16652
|
-
return this.processExportParcels(_response);
|
|
16653
|
-
});
|
|
16654
|
-
}
|
|
16655
|
-
|
|
16656
|
-
protected processExportParcels(response: Response): Promise<DownloadDto> {
|
|
16657
|
-
const status = response.status;
|
|
16658
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
16659
|
-
if (status === 200) {
|
|
16660
|
-
return response.text().then((_responseText) => {
|
|
16661
|
-
let result200: any = null;
|
|
16662
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16663
|
-
result200 = DownloadDto.fromJS(resultData200);
|
|
16664
|
-
return result200;
|
|
16665
|
-
});
|
|
16666
|
-
} else if (status !== 200 && status !== 204) {
|
|
16667
|
-
return response.text().then((_responseText) => {
|
|
16668
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16669
|
-
});
|
|
16670
|
-
}
|
|
16671
|
-
return Promise.resolve<DownloadDto>(null as any);
|
|
16672
|
-
}
|
|
16673
16593
|
}
|
|
16674
16594
|
|
|
16675
16595
|
export interface IParcelCategoryClient {
|
|
@@ -32701,6 +32621,7 @@ export class MeasuringToolDto implements IMeasuringToolDto {
|
|
|
32701
32621
|
unit?: string | null;
|
|
32702
32622
|
min?: number | null;
|
|
32703
32623
|
max?: number | null;
|
|
32624
|
+
lastUsedBy?: MeasuringToolLastUsedByDto | null;
|
|
32704
32625
|
lastCalibrationDate?: Date | null;
|
|
32705
32626
|
nextCalibrationDate?: Date | null;
|
|
32706
32627
|
calibrationInterval?: number | null;
|
|
@@ -32734,6 +32655,7 @@ export class MeasuringToolDto implements IMeasuringToolDto {
|
|
|
32734
32655
|
this.unit = _data["unit"];
|
|
32735
32656
|
this.min = _data["min"];
|
|
32736
32657
|
this.max = _data["max"];
|
|
32658
|
+
this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined as any;
|
|
32737
32659
|
this.lastCalibrationDate = _data["lastCalibrationDate"] ? new Date(_data["lastCalibrationDate"].toString()) : undefined as any;
|
|
32738
32660
|
this.nextCalibrationDate = _data["nextCalibrationDate"] ? new Date(_data["nextCalibrationDate"].toString()) : undefined as any;
|
|
32739
32661
|
this.calibrationInterval = _data["calibrationInterval"];
|
|
@@ -32767,6 +32689,7 @@ export class MeasuringToolDto implements IMeasuringToolDto {
|
|
|
32767
32689
|
data["unit"] = this.unit;
|
|
32768
32690
|
data["min"] = this.min;
|
|
32769
32691
|
data["max"] = this.max;
|
|
32692
|
+
data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined as any;
|
|
32770
32693
|
data["lastCalibrationDate"] = this.lastCalibrationDate ? this.lastCalibrationDate.toISOString() : undefined as any;
|
|
32771
32694
|
data["nextCalibrationDate"] = this.nextCalibrationDate ? this.nextCalibrationDate.toISOString() : undefined as any;
|
|
32772
32695
|
data["calibrationInterval"] = this.calibrationInterval;
|
|
@@ -32793,6 +32716,7 @@ export interface IMeasuringToolDto {
|
|
|
32793
32716
|
unit?: string | null;
|
|
32794
32717
|
min?: number | null;
|
|
32795
32718
|
max?: number | null;
|
|
32719
|
+
lastUsedBy?: MeasuringToolLastUsedByDto | null;
|
|
32796
32720
|
lastCalibrationDate?: Date | null;
|
|
32797
32721
|
nextCalibrationDate?: Date | null;
|
|
32798
32722
|
calibrationInterval?: number | null;
|
|
@@ -32805,6 +32729,50 @@ export interface IMeasuringToolDto {
|
|
|
32805
32729
|
calibrationStatus: CalibrationStatusDto;
|
|
32806
32730
|
}
|
|
32807
32731
|
|
|
32732
|
+
export class MeasuringToolLastUsedByDto implements IMeasuringToolLastUsedByDto {
|
|
32733
|
+
objectId?: string;
|
|
32734
|
+
userId?: string;
|
|
32735
|
+
displayName?: string | null;
|
|
32736
|
+
|
|
32737
|
+
constructor(data?: IMeasuringToolLastUsedByDto) {
|
|
32738
|
+
if (data) {
|
|
32739
|
+
for (var property in data) {
|
|
32740
|
+
if (data.hasOwnProperty(property))
|
|
32741
|
+
(this as any)[property] = (data as any)[property];
|
|
32742
|
+
}
|
|
32743
|
+
}
|
|
32744
|
+
}
|
|
32745
|
+
|
|
32746
|
+
init(_data?: any) {
|
|
32747
|
+
if (_data) {
|
|
32748
|
+
this.objectId = _data["objectId"];
|
|
32749
|
+
this.userId = _data["userId"];
|
|
32750
|
+
this.displayName = _data["displayName"];
|
|
32751
|
+
}
|
|
32752
|
+
}
|
|
32753
|
+
|
|
32754
|
+
static fromJS(data: any): MeasuringToolLastUsedByDto {
|
|
32755
|
+
data = typeof data === 'object' ? data : {};
|
|
32756
|
+
let result = new MeasuringToolLastUsedByDto();
|
|
32757
|
+
result.init(data);
|
|
32758
|
+
return result;
|
|
32759
|
+
}
|
|
32760
|
+
|
|
32761
|
+
toJSON(data?: any) {
|
|
32762
|
+
data = typeof data === 'object' ? data : {};
|
|
32763
|
+
data["objectId"] = this.objectId;
|
|
32764
|
+
data["userId"] = this.userId;
|
|
32765
|
+
data["displayName"] = this.displayName;
|
|
32766
|
+
return data;
|
|
32767
|
+
}
|
|
32768
|
+
}
|
|
32769
|
+
|
|
32770
|
+
export interface IMeasuringToolLastUsedByDto {
|
|
32771
|
+
objectId?: string;
|
|
32772
|
+
userId?: string;
|
|
32773
|
+
displayName?: string | null;
|
|
32774
|
+
}
|
|
32775
|
+
|
|
32808
32776
|
export type CalibrationStatusDto = "Uncalibrated" | "Deprecated" | "Expired" | "SoonDue" | "Valid";
|
|
32809
32777
|
|
|
32810
32778
|
export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
|
|
@@ -32818,6 +32786,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
|
|
|
32818
32786
|
defaultLocation?: string | null;
|
|
32819
32787
|
min?: number | null;
|
|
32820
32788
|
max?: number | null;
|
|
32789
|
+
lastUsedBy?: MeasuringToolLastUsedByDto | null;
|
|
32821
32790
|
calibrationInterval?: number | null;
|
|
32822
32791
|
serialNumber?: string | null;
|
|
32823
32792
|
precision?: string | null;
|
|
@@ -32854,6 +32823,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
|
|
|
32854
32823
|
this.defaultLocation = _data["defaultLocation"];
|
|
32855
32824
|
this.min = _data["min"];
|
|
32856
32825
|
this.max = _data["max"];
|
|
32826
|
+
this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined as any;
|
|
32857
32827
|
this.calibrationInterval = _data["calibrationInterval"];
|
|
32858
32828
|
this.serialNumber = _data["serialNumber"];
|
|
32859
32829
|
this.precision = _data["precision"];
|
|
@@ -32886,6 +32856,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
|
|
|
32886
32856
|
data["defaultLocation"] = this.defaultLocation;
|
|
32887
32857
|
data["min"] = this.min;
|
|
32888
32858
|
data["max"] = this.max;
|
|
32859
|
+
data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined as any;
|
|
32889
32860
|
data["calibrationInterval"] = this.calibrationInterval;
|
|
32890
32861
|
data["serialNumber"] = this.serialNumber;
|
|
32891
32862
|
data["precision"] = this.precision;
|
|
@@ -32911,6 +32882,7 @@ export interface IMeasuringToolDetailDto {
|
|
|
32911
32882
|
defaultLocation?: string | null;
|
|
32912
32883
|
min?: number | null;
|
|
32913
32884
|
max?: number | null;
|
|
32885
|
+
lastUsedBy?: MeasuringToolLastUsedByDto | null;
|
|
32914
32886
|
calibrationInterval?: number | null;
|
|
32915
32887
|
serialNumber?: string | null;
|
|
32916
32888
|
precision?: string | null;
|
|
@@ -46055,8 +46027,6 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46055
46027
|
parcelKind!: ParcelKindDto;
|
|
46056
46028
|
partName?: string | null;
|
|
46057
46029
|
partNumber?: string | null;
|
|
46058
|
-
projectId?: string | null;
|
|
46059
|
-
projectName?: string | null;
|
|
46060
46030
|
quantity?: number | null;
|
|
46061
46031
|
material?: string | null;
|
|
46062
46032
|
materialOperation?: number | null;
|
|
@@ -46083,8 +46053,6 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46083
46053
|
this.parcelKind = _data["parcelKind"];
|
|
46084
46054
|
this.partName = _data["partName"];
|
|
46085
46055
|
this.partNumber = _data["partNumber"];
|
|
46086
|
-
this.projectId = _data["projectId"];
|
|
46087
|
-
this.projectName = _data["projectName"];
|
|
46088
46056
|
this.quantity = _data["quantity"];
|
|
46089
46057
|
this.material = _data["material"];
|
|
46090
46058
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -46111,8 +46079,6 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46111
46079
|
data["parcelKind"] = this.parcelKind;
|
|
46112
46080
|
data["partName"] = this.partName;
|
|
46113
46081
|
data["partNumber"] = this.partNumber;
|
|
46114
|
-
data["projectId"] = this.projectId;
|
|
46115
|
-
data["projectName"] = this.projectName;
|
|
46116
46082
|
data["quantity"] = this.quantity;
|
|
46117
46083
|
data["material"] = this.material;
|
|
46118
46084
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -46132,8 +46098,6 @@ export interface IBookingParcelDto {
|
|
|
46132
46098
|
parcelKind: ParcelKindDto;
|
|
46133
46099
|
partName?: string | null;
|
|
46134
46100
|
partNumber?: string | null;
|
|
46135
|
-
projectId?: string | null;
|
|
46136
|
-
projectName?: string | null;
|
|
46137
46101
|
quantity?: number | null;
|
|
46138
46102
|
material?: string | null;
|
|
46139
46103
|
materialOperation?: number | null;
|
|
@@ -48110,8 +48074,6 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48110
48074
|
parcelKind!: ParcelKindDto;
|
|
48111
48075
|
partName?: string | null;
|
|
48112
48076
|
partNumber?: string | null;
|
|
48113
|
-
projectId?: string | null;
|
|
48114
|
-
projectName?: string | null;
|
|
48115
48077
|
quantity?: number | null;
|
|
48116
48078
|
material?: string | null;
|
|
48117
48079
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48137,8 +48099,6 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48137
48099
|
this.parcelKind = _data["parcelKind"];
|
|
48138
48100
|
this.partName = _data["partName"];
|
|
48139
48101
|
this.partNumber = _data["partNumber"];
|
|
48140
|
-
this.projectId = _data["projectId"];
|
|
48141
|
-
this.projectName = _data["projectName"];
|
|
48142
48102
|
this.quantity = _data["quantity"];
|
|
48143
48103
|
this.material = _data["material"];
|
|
48144
48104
|
this.covered = _data["covered"];
|
|
@@ -48168,8 +48128,6 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48168
48128
|
data["parcelKind"] = this.parcelKind;
|
|
48169
48129
|
data["partName"] = this.partName;
|
|
48170
48130
|
data["partNumber"] = this.partNumber;
|
|
48171
|
-
data["projectId"] = this.projectId;
|
|
48172
|
-
data["projectName"] = this.projectName;
|
|
48173
48131
|
data["quantity"] = this.quantity;
|
|
48174
48132
|
data["material"] = this.material;
|
|
48175
48133
|
data["covered"] = this.covered;
|
|
@@ -48192,8 +48150,6 @@ export interface ITrackingParcelDto {
|
|
|
48192
48150
|
parcelKind: ParcelKindDto;
|
|
48193
48151
|
partName?: string | null;
|
|
48194
48152
|
partNumber?: string | null;
|
|
48195
|
-
projectId?: string | null;
|
|
48196
|
-
projectName?: string | null;
|
|
48197
48153
|
quantity?: number | null;
|
|
48198
48154
|
material?: string | null;
|
|
48199
48155
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48514,8 +48470,6 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48514
48470
|
parcelKind!: ParcelKindDto;
|
|
48515
48471
|
partName?: string | null;
|
|
48516
48472
|
partNumber?: string | null;
|
|
48517
|
-
projectId?: string | null;
|
|
48518
|
-
projectName?: string | null;
|
|
48519
48473
|
quantity?: number | null;
|
|
48520
48474
|
material?: string | null;
|
|
48521
48475
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48548,8 +48502,6 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48548
48502
|
this.parcelKind = _data["parcelKind"];
|
|
48549
48503
|
this.partName = _data["partName"];
|
|
48550
48504
|
this.partNumber = _data["partNumber"];
|
|
48551
|
-
this.projectId = _data["projectId"];
|
|
48552
|
-
this.projectName = _data["projectName"];
|
|
48553
48505
|
this.quantity = _data["quantity"];
|
|
48554
48506
|
this.material = _data["material"];
|
|
48555
48507
|
this.covered = _data["covered"];
|
|
@@ -48583,8 +48535,6 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48583
48535
|
data["parcelKind"] = this.parcelKind;
|
|
48584
48536
|
data["partName"] = this.partName;
|
|
48585
48537
|
data["partNumber"] = this.partNumber;
|
|
48586
|
-
data["projectId"] = this.projectId;
|
|
48587
|
-
data["projectName"] = this.projectName;
|
|
48588
48538
|
data["quantity"] = this.quantity;
|
|
48589
48539
|
data["material"] = this.material;
|
|
48590
48540
|
data["covered"] = this.covered;
|
|
@@ -48611,8 +48561,6 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
48611
48561
|
parcelKind: ParcelKindDto;
|
|
48612
48562
|
partName?: string | null;
|
|
48613
48563
|
partNumber?: string | null;
|
|
48614
|
-
projectId?: string | null;
|
|
48615
|
-
projectName?: string | null;
|
|
48616
48564
|
quantity?: number | null;
|
|
48617
48565
|
material?: string | null;
|
|
48618
48566
|
covered?: MaterialCoveredDto | null;
|