@ignos/api-client 20251013.0.12851-alpha → 20251021.0.12930
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 -6
- package/lib/ignosportal-api.js +90 -6
- package/package.json +1 -1
- package/src/ignosportal-api.ts +104 -12
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1692,6 +1692,7 @@ 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>;
|
|
1695
1696
|
}
|
|
1696
1697
|
export declare class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
|
|
1697
1698
|
private http;
|
|
@@ -1718,6 +1719,8 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1718
1719
|
protected processPreBookGeneral(response: Response): Promise<PreBookingResultItemDto[]>;
|
|
1719
1720
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
1720
1721
|
protected processUpdateBookingStatus(response: Response): Promise<BookingDto>;
|
|
1722
|
+
exportBookings(includeTracking: boolean | undefined): Promise<DownloadDto>;
|
|
1723
|
+
protected processExportBookings(response: Response): Promise<DownloadDto>;
|
|
1721
1724
|
}
|
|
1722
1725
|
export interface IMoveLocationsClient {
|
|
1723
1726
|
listLocations(): Promise<LocationZoneGroupDto[]>;
|
|
@@ -1810,6 +1813,7 @@ export interface IMoveTrackingClient {
|
|
|
1810
1813
|
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1811
1814
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1812
1815
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1816
|
+
exportParcels(): Promise<DownloadDto>;
|
|
1813
1817
|
}
|
|
1814
1818
|
export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
1815
1819
|
private http;
|
|
@@ -1834,6 +1838,8 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
1834
1838
|
protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]>;
|
|
1835
1839
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1836
1840
|
protected processDeleteTrackingHistory(response: Response): Promise<void>;
|
|
1841
|
+
exportParcels(): Promise<DownloadDto>;
|
|
1842
|
+
protected processExportParcels(response: Response): Promise<DownloadDto>;
|
|
1837
1843
|
}
|
|
1838
1844
|
export interface IParcelCategoryClient {
|
|
1839
1845
|
getSettings(): Promise<ParcelCategorySettingsDto>;
|
|
@@ -9692,6 +9698,8 @@ export declare class BookingParcelDto implements IBookingParcelDto {
|
|
|
9692
9698
|
parcelKind: ParcelKindDto;
|
|
9693
9699
|
partName?: string | null;
|
|
9694
9700
|
partNumber?: string | null;
|
|
9701
|
+
projectId?: string | null;
|
|
9702
|
+
projectName?: string | null;
|
|
9695
9703
|
quantity?: number | null;
|
|
9696
9704
|
material?: string | null;
|
|
9697
9705
|
materialOperation?: number | null;
|
|
@@ -9712,6 +9720,8 @@ export interface IBookingParcelDto {
|
|
|
9712
9720
|
parcelKind: ParcelKindDto;
|
|
9713
9721
|
partName?: string | null;
|
|
9714
9722
|
partNumber?: string | null;
|
|
9723
|
+
projectId?: string | null;
|
|
9724
|
+
projectName?: string | null;
|
|
9715
9725
|
quantity?: number | null;
|
|
9716
9726
|
material?: string | null;
|
|
9717
9727
|
materialOperation?: number | null;
|
|
@@ -10286,6 +10296,8 @@ export declare class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
10286
10296
|
parcelKind: ParcelKindDto;
|
|
10287
10297
|
partName?: string | null;
|
|
10288
10298
|
partNumber?: string | null;
|
|
10299
|
+
projectId?: string | null;
|
|
10300
|
+
projectName?: string | null;
|
|
10289
10301
|
quantity?: number | null;
|
|
10290
10302
|
material?: string | null;
|
|
10291
10303
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10301,6 +10313,8 @@ export interface ITrackingParcelDto {
|
|
|
10301
10313
|
parcelKind: ParcelKindDto;
|
|
10302
10314
|
partName?: string | null;
|
|
10303
10315
|
partNumber?: string | null;
|
|
10316
|
+
projectId?: string | null;
|
|
10317
|
+
projectName?: string | null;
|
|
10304
10318
|
quantity?: number | null;
|
|
10305
10319
|
material?: string | null;
|
|
10306
10320
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10403,6 +10417,8 @@ export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlat
|
|
|
10403
10417
|
parcelKind: ParcelKindDto;
|
|
10404
10418
|
partName?: string | null;
|
|
10405
10419
|
partNumber?: string | null;
|
|
10420
|
+
projectId?: string | null;
|
|
10421
|
+
projectName?: string | null;
|
|
10406
10422
|
quantity?: number | null;
|
|
10407
10423
|
material?: string | null;
|
|
10408
10424
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10426,6 +10442,8 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
10426
10442
|
parcelKind: ParcelKindDto;
|
|
10427
10443
|
partName?: string | null;
|
|
10428
10444
|
partNumber?: string | null;
|
|
10445
|
+
projectId?: string | null;
|
|
10446
|
+
projectName?: string | null;
|
|
10429
10447
|
quantity?: number | null;
|
|
10430
10448
|
material?: string | null;
|
|
10431
10449
|
covered?: MaterialCoveredDto | null;
|
|
@@ -10741,7 +10759,6 @@ export declare class ProductionOrderOperationDto implements IProductionOrderOper
|
|
|
10741
10759
|
quantity: number;
|
|
10742
10760
|
startedQuantity?: number | null;
|
|
10743
10761
|
ongoingQuantity?: number | null;
|
|
10744
|
-
earlierOperationsScrappedQuantity: number;
|
|
10745
10762
|
availableToStartQuantity: number;
|
|
10746
10763
|
workInstructions?: string | null;
|
|
10747
10764
|
note?: string | null;
|
|
@@ -10779,7 +10796,6 @@ export interface IProductionOrderOperationDto {
|
|
|
10779
10796
|
quantity: number;
|
|
10780
10797
|
startedQuantity?: number | null;
|
|
10781
10798
|
ongoingQuantity?: number | null;
|
|
10782
|
-
earlierOperationsScrappedQuantity: number;
|
|
10783
10799
|
availableToStartQuantity: number;
|
|
10784
10800
|
workInstructions?: string | null;
|
|
10785
10801
|
note?: string | null;
|
|
@@ -11203,7 +11219,6 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
|
|
|
11203
11219
|
producedQuantity: number;
|
|
11204
11220
|
scrappedQuantity: number;
|
|
11205
11221
|
availableToStartQuantity: number;
|
|
11206
|
-
earlierOperationsScrappedQuantity: number;
|
|
11207
11222
|
startedQuantity?: number | null;
|
|
11208
11223
|
ongoingQuantity?: number | null;
|
|
11209
11224
|
project?: WorkOrderProjectDto | null;
|
|
@@ -11258,7 +11273,6 @@ export interface IProductionScheduleOperationDto {
|
|
|
11258
11273
|
producedQuantity: number;
|
|
11259
11274
|
scrappedQuantity: number;
|
|
11260
11275
|
availableToStartQuantity: number;
|
|
11261
|
-
earlierOperationsScrappedQuantity: number;
|
|
11262
11276
|
startedQuantity?: number | null;
|
|
11263
11277
|
ongoingQuantity?: number | null;
|
|
11264
11278
|
project?: WorkOrderProjectDto | null;
|
|
@@ -11305,7 +11319,6 @@ export declare class SurroundingOperationDto implements ISurroundingOperationDto
|
|
|
11305
11319
|
resourceDepartmentName?: string | null;
|
|
11306
11320
|
producedQuantity: number;
|
|
11307
11321
|
scrappedQuantity: number;
|
|
11308
|
-
earlierOperationsScrappedQuantity: number;
|
|
11309
11322
|
startedQuantity?: number | null;
|
|
11310
11323
|
constructor(data?: ISurroundingOperationDto);
|
|
11311
11324
|
init(_data?: any): void;
|
|
@@ -11328,7 +11341,6 @@ export interface ISurroundingOperationDto {
|
|
|
11328
11341
|
resourceDepartmentName?: string | null;
|
|
11329
11342
|
producedQuantity: number;
|
|
11330
11343
|
scrappedQuantity: number;
|
|
11331
|
-
earlierOperationsScrappedQuantity: number;
|
|
11332
11344
|
startedQuantity?: number | null;
|
|
11333
11345
|
}
|
|
11334
11346
|
export declare class OperationPrerequisitesDto implements IOperationPrerequisitesDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -14603,6 +14603,47 @@ 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
|
+
}
|
|
14606
14647
|
}
|
|
14607
14648
|
export class MoveLocationsClient extends AuthorizedApiBase {
|
|
14608
14649
|
constructor(configuration, baseUrl, http) {
|
|
@@ -15559,6 +15600,43 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
15559
15600
|
}
|
|
15560
15601
|
return Promise.resolve(null);
|
|
15561
15602
|
}
|
|
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
|
+
}
|
|
15562
15640
|
}
|
|
15563
15641
|
export class ParcelCategoryClient extends AuthorizedApiBase {
|
|
15564
15642
|
constructor(configuration, baseUrl, http) {
|
|
@@ -37522,6 +37600,8 @@ export class BookingParcelDto {
|
|
|
37522
37600
|
this.parcelKind = _data["parcelKind"];
|
|
37523
37601
|
this.partName = _data["partName"];
|
|
37524
37602
|
this.partNumber = _data["partNumber"];
|
|
37603
|
+
this.projectId = _data["projectId"];
|
|
37604
|
+
this.projectName = _data["projectName"];
|
|
37525
37605
|
this.quantity = _data["quantity"];
|
|
37526
37606
|
this.material = _data["material"];
|
|
37527
37607
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -37546,6 +37626,8 @@ export class BookingParcelDto {
|
|
|
37546
37626
|
data["parcelKind"] = this.parcelKind;
|
|
37547
37627
|
data["partName"] = this.partName;
|
|
37548
37628
|
data["partNumber"] = this.partNumber;
|
|
37629
|
+
data["projectId"] = this.projectId;
|
|
37630
|
+
data["projectName"] = this.projectName;
|
|
37549
37631
|
data["quantity"] = this.quantity;
|
|
37550
37632
|
data["material"] = this.material;
|
|
37551
37633
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -38975,6 +39057,8 @@ export class TrackingParcelDto {
|
|
|
38975
39057
|
this.parcelKind = _data["parcelKind"];
|
|
38976
39058
|
this.partName = _data["partName"];
|
|
38977
39059
|
this.partNumber = _data["partNumber"];
|
|
39060
|
+
this.projectId = _data["projectId"];
|
|
39061
|
+
this.projectName = _data["projectName"];
|
|
38978
39062
|
this.quantity = _data["quantity"];
|
|
38979
39063
|
this.material = _data["material"];
|
|
38980
39064
|
this.covered = _data["covered"];
|
|
@@ -39002,6 +39086,8 @@ export class TrackingParcelDto {
|
|
|
39002
39086
|
data["parcelKind"] = this.parcelKind;
|
|
39003
39087
|
data["partName"] = this.partName;
|
|
39004
39088
|
data["partNumber"] = this.partNumber;
|
|
39089
|
+
data["projectId"] = this.projectId;
|
|
39090
|
+
data["projectName"] = this.projectName;
|
|
39005
39091
|
data["quantity"] = this.quantity;
|
|
39006
39092
|
data["material"] = this.material;
|
|
39007
39093
|
data["covered"] = this.covered;
|
|
@@ -39252,6 +39338,8 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39252
39338
|
this.parcelKind = _data["parcelKind"];
|
|
39253
39339
|
this.partName = _data["partName"];
|
|
39254
39340
|
this.partNumber = _data["partNumber"];
|
|
39341
|
+
this.projectId = _data["projectId"];
|
|
39342
|
+
this.projectName = _data["projectName"];
|
|
39255
39343
|
this.quantity = _data["quantity"];
|
|
39256
39344
|
this.material = _data["material"];
|
|
39257
39345
|
this.covered = _data["covered"];
|
|
@@ -39283,6 +39371,8 @@ export class TrackingHistoryFlattenedDto {
|
|
|
39283
39371
|
data["parcelKind"] = this.parcelKind;
|
|
39284
39372
|
data["partName"] = this.partName;
|
|
39285
39373
|
data["partNumber"] = this.partNumber;
|
|
39374
|
+
data["projectId"] = this.projectId;
|
|
39375
|
+
data["projectName"] = this.projectName;
|
|
39286
39376
|
data["quantity"] = this.quantity;
|
|
39287
39377
|
data["material"] = this.material;
|
|
39288
39378
|
data["covered"] = this.covered;
|
|
@@ -39961,7 +40051,6 @@ export class ProductionOrderOperationDto {
|
|
|
39961
40051
|
this.quantity = _data["quantity"];
|
|
39962
40052
|
this.startedQuantity = _data["startedQuantity"];
|
|
39963
40053
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
39964
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
39965
40054
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
39966
40055
|
this.workInstructions = _data["workInstructions"];
|
|
39967
40056
|
this.note = _data["note"];
|
|
@@ -40003,7 +40092,6 @@ export class ProductionOrderOperationDto {
|
|
|
40003
40092
|
data["quantity"] = this.quantity;
|
|
40004
40093
|
data["startedQuantity"] = this.startedQuantity;
|
|
40005
40094
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
40006
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
40007
40095
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
40008
40096
|
data["workInstructions"] = this.workInstructions;
|
|
40009
40097
|
data["note"] = this.note;
|
|
@@ -40807,7 +40895,6 @@ export class ProductionScheduleOperationDto {
|
|
|
40807
40895
|
this.producedQuantity = _data["producedQuantity"];
|
|
40808
40896
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
40809
40897
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
40810
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
40811
40898
|
this.startedQuantity = _data["startedQuantity"];
|
|
40812
40899
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
40813
40900
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
|
|
@@ -40866,7 +40953,6 @@ export class ProductionScheduleOperationDto {
|
|
|
40866
40953
|
data["producedQuantity"] = this.producedQuantity;
|
|
40867
40954
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
40868
40955
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
40869
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
40870
40956
|
data["startedQuantity"] = this.startedQuantity;
|
|
40871
40957
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
40872
40958
|
data["project"] = this.project ? this.project.toJSON() : undefined;
|
|
@@ -40925,7 +41011,6 @@ export class SurroundingOperationDto {
|
|
|
40925
41011
|
this.resourceDepartmentName = _data["resourceDepartmentName"];
|
|
40926
41012
|
this.producedQuantity = _data["producedQuantity"];
|
|
40927
41013
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
40928
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
40929
41014
|
this.startedQuantity = _data["startedQuantity"];
|
|
40930
41015
|
}
|
|
40931
41016
|
}
|
|
@@ -40952,7 +41037,6 @@ export class SurroundingOperationDto {
|
|
|
40952
41037
|
data["resourceDepartmentName"] = this.resourceDepartmentName;
|
|
40953
41038
|
data["producedQuantity"] = this.producedQuantity;
|
|
40954
41039
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
40955
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
40956
41040
|
data["startedQuantity"] = this.startedQuantity;
|
|
40957
41041
|
return data;
|
|
40958
41042
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -15179,6 +15179,8 @@ 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>;
|
|
15182
15184
|
}
|
|
15183
15185
|
|
|
15184
15186
|
export class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
|
|
@@ -15565,6 +15567,46 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
15565
15567
|
}
|
|
15566
15568
|
return Promise.resolve<BookingDto>(null as any);
|
|
15567
15569
|
}
|
|
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
|
+
}
|
|
15568
15610
|
}
|
|
15569
15611
|
|
|
15570
15612
|
export interface IMoveLocationsClient {
|
|
@@ -16245,6 +16287,8 @@ export interface IMoveTrackingClient {
|
|
|
16245
16287
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
16246
16288
|
|
|
16247
16289
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
16290
|
+
|
|
16291
|
+
exportParcels(): Promise<DownloadDto>;
|
|
16248
16292
|
}
|
|
16249
16293
|
|
|
16250
16294
|
export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
@@ -16590,6 +16634,42 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
16590
16634
|
}
|
|
16591
16635
|
return Promise.resolve<void>(null as any);
|
|
16592
16636
|
}
|
|
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
|
+
}
|
|
16593
16673
|
}
|
|
16594
16674
|
|
|
16595
16675
|
export interface IParcelCategoryClient {
|
|
@@ -45975,6 +46055,8 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
45975
46055
|
parcelKind!: ParcelKindDto;
|
|
45976
46056
|
partName?: string | null;
|
|
45977
46057
|
partNumber?: string | null;
|
|
46058
|
+
projectId?: string | null;
|
|
46059
|
+
projectName?: string | null;
|
|
45978
46060
|
quantity?: number | null;
|
|
45979
46061
|
material?: string | null;
|
|
45980
46062
|
materialOperation?: number | null;
|
|
@@ -46001,6 +46083,8 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46001
46083
|
this.parcelKind = _data["parcelKind"];
|
|
46002
46084
|
this.partName = _data["partName"];
|
|
46003
46085
|
this.partNumber = _data["partNumber"];
|
|
46086
|
+
this.projectId = _data["projectId"];
|
|
46087
|
+
this.projectName = _data["projectName"];
|
|
46004
46088
|
this.quantity = _data["quantity"];
|
|
46005
46089
|
this.material = _data["material"];
|
|
46006
46090
|
this.materialOperation = _data["materialOperation"];
|
|
@@ -46027,6 +46111,8 @@ export class BookingParcelDto implements IBookingParcelDto {
|
|
|
46027
46111
|
data["parcelKind"] = this.parcelKind;
|
|
46028
46112
|
data["partName"] = this.partName;
|
|
46029
46113
|
data["partNumber"] = this.partNumber;
|
|
46114
|
+
data["projectId"] = this.projectId;
|
|
46115
|
+
data["projectName"] = this.projectName;
|
|
46030
46116
|
data["quantity"] = this.quantity;
|
|
46031
46117
|
data["material"] = this.material;
|
|
46032
46118
|
data["materialOperation"] = this.materialOperation;
|
|
@@ -46046,6 +46132,8 @@ export interface IBookingParcelDto {
|
|
|
46046
46132
|
parcelKind: ParcelKindDto;
|
|
46047
46133
|
partName?: string | null;
|
|
46048
46134
|
partNumber?: string | null;
|
|
46135
|
+
projectId?: string | null;
|
|
46136
|
+
projectName?: string | null;
|
|
46049
46137
|
quantity?: number | null;
|
|
46050
46138
|
material?: string | null;
|
|
46051
46139
|
materialOperation?: number | null;
|
|
@@ -48022,6 +48110,8 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48022
48110
|
parcelKind!: ParcelKindDto;
|
|
48023
48111
|
partName?: string | null;
|
|
48024
48112
|
partNumber?: string | null;
|
|
48113
|
+
projectId?: string | null;
|
|
48114
|
+
projectName?: string | null;
|
|
48025
48115
|
quantity?: number | null;
|
|
48026
48116
|
material?: string | null;
|
|
48027
48117
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48047,6 +48137,8 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48047
48137
|
this.parcelKind = _data["parcelKind"];
|
|
48048
48138
|
this.partName = _data["partName"];
|
|
48049
48139
|
this.partNumber = _data["partNumber"];
|
|
48140
|
+
this.projectId = _data["projectId"];
|
|
48141
|
+
this.projectName = _data["projectName"];
|
|
48050
48142
|
this.quantity = _data["quantity"];
|
|
48051
48143
|
this.material = _data["material"];
|
|
48052
48144
|
this.covered = _data["covered"];
|
|
@@ -48076,6 +48168,8 @@ export class TrackingParcelDto implements ITrackingParcelDto {
|
|
|
48076
48168
|
data["parcelKind"] = this.parcelKind;
|
|
48077
48169
|
data["partName"] = this.partName;
|
|
48078
48170
|
data["partNumber"] = this.partNumber;
|
|
48171
|
+
data["projectId"] = this.projectId;
|
|
48172
|
+
data["projectName"] = this.projectName;
|
|
48079
48173
|
data["quantity"] = this.quantity;
|
|
48080
48174
|
data["material"] = this.material;
|
|
48081
48175
|
data["covered"] = this.covered;
|
|
@@ -48098,6 +48192,8 @@ export interface ITrackingParcelDto {
|
|
|
48098
48192
|
parcelKind: ParcelKindDto;
|
|
48099
48193
|
partName?: string | null;
|
|
48100
48194
|
partNumber?: string | null;
|
|
48195
|
+
projectId?: string | null;
|
|
48196
|
+
projectName?: string | null;
|
|
48101
48197
|
quantity?: number | null;
|
|
48102
48198
|
material?: string | null;
|
|
48103
48199
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48418,6 +48514,8 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48418
48514
|
parcelKind!: ParcelKindDto;
|
|
48419
48515
|
partName?: string | null;
|
|
48420
48516
|
partNumber?: string | null;
|
|
48517
|
+
projectId?: string | null;
|
|
48518
|
+
projectName?: string | null;
|
|
48421
48519
|
quantity?: number | null;
|
|
48422
48520
|
material?: string | null;
|
|
48423
48521
|
covered?: MaterialCoveredDto | null;
|
|
@@ -48450,6 +48548,8 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48450
48548
|
this.parcelKind = _data["parcelKind"];
|
|
48451
48549
|
this.partName = _data["partName"];
|
|
48452
48550
|
this.partNumber = _data["partNumber"];
|
|
48551
|
+
this.projectId = _data["projectId"];
|
|
48552
|
+
this.projectName = _data["projectName"];
|
|
48453
48553
|
this.quantity = _data["quantity"];
|
|
48454
48554
|
this.material = _data["material"];
|
|
48455
48555
|
this.covered = _data["covered"];
|
|
@@ -48483,6 +48583,8 @@ export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto
|
|
|
48483
48583
|
data["parcelKind"] = this.parcelKind;
|
|
48484
48584
|
data["partName"] = this.partName;
|
|
48485
48585
|
data["partNumber"] = this.partNumber;
|
|
48586
|
+
data["projectId"] = this.projectId;
|
|
48587
|
+
data["projectName"] = this.projectName;
|
|
48486
48588
|
data["quantity"] = this.quantity;
|
|
48487
48589
|
data["material"] = this.material;
|
|
48488
48590
|
data["covered"] = this.covered;
|
|
@@ -48509,6 +48611,8 @@ export interface ITrackingHistoryFlattenedDto {
|
|
|
48509
48611
|
parcelKind: ParcelKindDto;
|
|
48510
48612
|
partName?: string | null;
|
|
48511
48613
|
partNumber?: string | null;
|
|
48614
|
+
projectId?: string | null;
|
|
48615
|
+
projectName?: string | null;
|
|
48512
48616
|
quantity?: number | null;
|
|
48513
48617
|
material?: string | null;
|
|
48514
48618
|
covered?: MaterialCoveredDto | null;
|
|
@@ -49448,7 +49552,6 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49448
49552
|
quantity!: number;
|
|
49449
49553
|
startedQuantity?: number | null;
|
|
49450
49554
|
ongoingQuantity?: number | null;
|
|
49451
|
-
earlierOperationsScrappedQuantity!: number;
|
|
49452
49555
|
availableToStartQuantity!: number;
|
|
49453
49556
|
workInstructions?: string | null;
|
|
49454
49557
|
note?: string | null;
|
|
@@ -49492,7 +49595,6 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49492
49595
|
this.quantity = _data["quantity"];
|
|
49493
49596
|
this.startedQuantity = _data["startedQuantity"];
|
|
49494
49597
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
49495
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
49496
49598
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
49497
49599
|
this.workInstructions = _data["workInstructions"];
|
|
49498
49600
|
this.note = _data["note"];
|
|
@@ -49536,7 +49638,6 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49536
49638
|
data["quantity"] = this.quantity;
|
|
49537
49639
|
data["startedQuantity"] = this.startedQuantity;
|
|
49538
49640
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
49539
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
49540
49641
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
49541
49642
|
data["workInstructions"] = this.workInstructions;
|
|
49542
49643
|
data["note"] = this.note;
|
|
@@ -49573,7 +49674,6 @@ export interface IProductionOrderOperationDto {
|
|
|
49573
49674
|
quantity: number;
|
|
49574
49675
|
startedQuantity?: number | null;
|
|
49575
49676
|
ongoingQuantity?: number | null;
|
|
49576
|
-
earlierOperationsScrappedQuantity: number;
|
|
49577
49677
|
availableToStartQuantity: number;
|
|
49578
49678
|
workInstructions?: string | null;
|
|
49579
49679
|
note?: string | null;
|
|
@@ -50759,7 +50859,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50759
50859
|
producedQuantity!: number;
|
|
50760
50860
|
scrappedQuantity!: number;
|
|
50761
50861
|
availableToStartQuantity!: number;
|
|
50762
|
-
earlierOperationsScrappedQuantity!: number;
|
|
50763
50862
|
startedQuantity?: number | null;
|
|
50764
50863
|
ongoingQuantity?: number | null;
|
|
50765
50864
|
project?: WorkOrderProjectDto | null;
|
|
@@ -50823,7 +50922,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50823
50922
|
this.producedQuantity = _data["producedQuantity"];
|
|
50824
50923
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
50825
50924
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
50826
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
50827
50925
|
this.startedQuantity = _data["startedQuantity"];
|
|
50828
50926
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
50829
50927
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined as any;
|
|
@@ -50884,7 +50982,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50884
50982
|
data["producedQuantity"] = this.producedQuantity;
|
|
50885
50983
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
50886
50984
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
50887
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
50888
50985
|
data["startedQuantity"] = this.startedQuantity;
|
|
50889
50986
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
50890
50987
|
data["project"] = this.project ? this.project.toJSON() : undefined as any;
|
|
@@ -50938,7 +51035,6 @@ export interface IProductionScheduleOperationDto {
|
|
|
50938
51035
|
producedQuantity: number;
|
|
50939
51036
|
scrappedQuantity: number;
|
|
50940
51037
|
availableToStartQuantity: number;
|
|
50941
|
-
earlierOperationsScrappedQuantity: number;
|
|
50942
51038
|
startedQuantity?: number | null;
|
|
50943
51039
|
ongoingQuantity?: number | null;
|
|
50944
51040
|
project?: WorkOrderProjectDto | null;
|
|
@@ -50986,7 +51082,6 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
50986
51082
|
resourceDepartmentName?: string | null;
|
|
50987
51083
|
producedQuantity!: number;
|
|
50988
51084
|
scrappedQuantity!: number;
|
|
50989
|
-
earlierOperationsScrappedQuantity!: number;
|
|
50990
51085
|
startedQuantity?: number | null;
|
|
50991
51086
|
|
|
50992
51087
|
constructor(data?: ISurroundingOperationDto) {
|
|
@@ -51015,7 +51110,6 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
51015
51110
|
this.resourceDepartmentName = _data["resourceDepartmentName"];
|
|
51016
51111
|
this.producedQuantity = _data["producedQuantity"];
|
|
51017
51112
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
51018
|
-
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
51019
51113
|
this.startedQuantity = _data["startedQuantity"];
|
|
51020
51114
|
}
|
|
51021
51115
|
}
|
|
@@ -51044,7 +51138,6 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
|
|
|
51044
51138
|
data["resourceDepartmentName"] = this.resourceDepartmentName;
|
|
51045
51139
|
data["producedQuantity"] = this.producedQuantity;
|
|
51046
51140
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
51047
|
-
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
51048
51141
|
data["startedQuantity"] = this.startedQuantity;
|
|
51049
51142
|
return data;
|
|
51050
51143
|
}
|
|
@@ -51066,7 +51159,6 @@ export interface ISurroundingOperationDto {
|
|
|
51066
51159
|
resourceDepartmentName?: string | null;
|
|
51067
51160
|
producedQuantity: number;
|
|
51068
51161
|
scrappedQuantity: number;
|
|
51069
|
-
earlierOperationsScrappedQuantity: number;
|
|
51070
51162
|
startedQuantity?: number | null;
|
|
51071
51163
|
}
|
|
51072
51164
|
|