@ignos/api-client 20240528.0.9349 → 20240529.0.9369
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 +118 -66
- package/lib/ignosportal-api.js +201 -40
- package/package.json +1 -1
- package/src/ignosportal-api.ts +317 -104
package/src/ignosportal-api.ts
CHANGED
|
@@ -3745,24 +3745,24 @@ export class TraceClient extends AuthorizedApiBase implements ITraceClient {
|
|
|
3745
3745
|
}
|
|
3746
3746
|
}
|
|
3747
3747
|
|
|
3748
|
-
export interface
|
|
3748
|
+
export interface IMoveBookingClient {
|
|
3749
3749
|
|
|
3750
|
-
listBookings(request: BookingRequestListDto): Promise<
|
|
3750
|
+
listBookings(request: BookingRequestListDto): Promise<BookingListDto>;
|
|
3751
3751
|
|
|
3752
|
-
getBooking(bookingId: string): Promise<
|
|
3752
|
+
getBooking(bookingId: string): Promise<BookingDto>;
|
|
3753
3753
|
|
|
3754
|
-
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<
|
|
3754
|
+
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
3755
3755
|
|
|
3756
|
-
createBooking(bookingRequest: BookingRequestDto): Promise<
|
|
3756
|
+
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
3757
3757
|
|
|
3758
|
-
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<
|
|
3758
|
+
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
3759
3759
|
|
|
3760
|
-
startDelivery(bookingUpdate: BookingUpdateDto): Promise<
|
|
3760
|
+
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
3761
3761
|
|
|
3762
|
-
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<
|
|
3762
|
+
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
|
|
3763
3763
|
}
|
|
3764
3764
|
|
|
3765
|
-
export class
|
|
3765
|
+
export class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
|
|
3766
3766
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
3767
3767
|
private baseUrl: string;
|
|
3768
3768
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -3773,7 +3773,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3773
3773
|
this.baseUrl = baseUrl ?? "";
|
|
3774
3774
|
}
|
|
3775
3775
|
|
|
3776
|
-
listBookings(request: BookingRequestListDto): Promise<
|
|
3776
|
+
listBookings(request: BookingRequestListDto): Promise<BookingListDto> {
|
|
3777
3777
|
let url_ = this.baseUrl + "/move/booking/list";
|
|
3778
3778
|
url_ = url_.replace(/[?&]$/, "");
|
|
3779
3779
|
|
|
@@ -3795,14 +3795,14 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3795
3795
|
});
|
|
3796
3796
|
}
|
|
3797
3797
|
|
|
3798
|
-
protected processListBookings(response: Response): Promise<
|
|
3798
|
+
protected processListBookings(response: Response): Promise<BookingListDto> {
|
|
3799
3799
|
const status = response.status;
|
|
3800
3800
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3801
3801
|
if (status === 200) {
|
|
3802
3802
|
return response.text().then((_responseText) => {
|
|
3803
3803
|
let result200: any = null;
|
|
3804
3804
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3805
|
-
result200 =
|
|
3805
|
+
result200 = BookingListDto.fromJS(resultData200);
|
|
3806
3806
|
return result200;
|
|
3807
3807
|
});
|
|
3808
3808
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -3810,10 +3810,10 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3810
3810
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3811
3811
|
});
|
|
3812
3812
|
}
|
|
3813
|
-
return Promise.resolve<
|
|
3813
|
+
return Promise.resolve<BookingListDto>(null as any);
|
|
3814
3814
|
}
|
|
3815
3815
|
|
|
3816
|
-
getBooking(bookingId: string): Promise<
|
|
3816
|
+
getBooking(bookingId: string): Promise<BookingDto> {
|
|
3817
3817
|
let url_ = this.baseUrl + "/move/booking/{bookingId}";
|
|
3818
3818
|
if (bookingId === undefined || bookingId === null)
|
|
3819
3819
|
throw new Error("The parameter 'bookingId' must be defined.");
|
|
@@ -3834,14 +3834,14 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3834
3834
|
});
|
|
3835
3835
|
}
|
|
3836
3836
|
|
|
3837
|
-
protected processGetBooking(response: Response): Promise<
|
|
3837
|
+
protected processGetBooking(response: Response): Promise<BookingDto> {
|
|
3838
3838
|
const status = response.status;
|
|
3839
3839
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3840
3840
|
if (status === 200) {
|
|
3841
3841
|
return response.text().then((_responseText) => {
|
|
3842
3842
|
let result200: any = null;
|
|
3843
3843
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3844
|
-
result200 =
|
|
3844
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3845
3845
|
return result200;
|
|
3846
3846
|
});
|
|
3847
3847
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -3849,10 +3849,10 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3849
3849
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3850
3850
|
});
|
|
3851
3851
|
}
|
|
3852
|
-
return Promise.resolve<
|
|
3852
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
3853
3853
|
}
|
|
3854
3854
|
|
|
3855
|
-
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<
|
|
3855
|
+
updateBooking(bookingId: string, bookingRequest: BookingRequestDto): Promise<BookingDto> {
|
|
3856
3856
|
let url_ = this.baseUrl + "/move/booking/{bookingId}";
|
|
3857
3857
|
if (bookingId === undefined || bookingId === null)
|
|
3858
3858
|
throw new Error("The parameter 'bookingId' must be defined.");
|
|
@@ -3866,6 +3866,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3866
3866
|
method: "PUT",
|
|
3867
3867
|
headers: {
|
|
3868
3868
|
"Content-Type": "application/json",
|
|
3869
|
+
"Accept": "application/json"
|
|
3869
3870
|
}
|
|
3870
3871
|
};
|
|
3871
3872
|
|
|
@@ -3876,22 +3877,25 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3876
3877
|
});
|
|
3877
3878
|
}
|
|
3878
3879
|
|
|
3879
|
-
protected processUpdateBooking(response: Response): Promise<
|
|
3880
|
+
protected processUpdateBooking(response: Response): Promise<BookingDto> {
|
|
3880
3881
|
const status = response.status;
|
|
3881
3882
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3882
|
-
if (status ===
|
|
3883
|
+
if (status === 200) {
|
|
3883
3884
|
return response.text().then((_responseText) => {
|
|
3884
|
-
|
|
3885
|
+
let result200: any = null;
|
|
3886
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3887
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3888
|
+
return result200;
|
|
3885
3889
|
});
|
|
3886
3890
|
} else if (status !== 200 && status !== 204) {
|
|
3887
3891
|
return response.text().then((_responseText) => {
|
|
3888
3892
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3889
3893
|
});
|
|
3890
3894
|
}
|
|
3891
|
-
return Promise.resolve<
|
|
3895
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
3892
3896
|
}
|
|
3893
3897
|
|
|
3894
|
-
createBooking(bookingRequest: BookingRequestDto): Promise<
|
|
3898
|
+
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto> {
|
|
3895
3899
|
let url_ = this.baseUrl + "/move/booking/book";
|
|
3896
3900
|
url_ = url_.replace(/[?&]$/, "");
|
|
3897
3901
|
|
|
@@ -3902,6 +3906,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3902
3906
|
method: "POST",
|
|
3903
3907
|
headers: {
|
|
3904
3908
|
"Content-Type": "application/json",
|
|
3909
|
+
"Accept": "application/json"
|
|
3905
3910
|
}
|
|
3906
3911
|
};
|
|
3907
3912
|
|
|
@@ -3912,22 +3917,25 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3912
3917
|
});
|
|
3913
3918
|
}
|
|
3914
3919
|
|
|
3915
|
-
protected processCreateBooking(response: Response): Promise<
|
|
3920
|
+
protected processCreateBooking(response: Response): Promise<BookingDto> {
|
|
3916
3921
|
const status = response.status;
|
|
3917
3922
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3918
|
-
if (status ===
|
|
3923
|
+
if (status === 200) {
|
|
3919
3924
|
return response.text().then((_responseText) => {
|
|
3920
|
-
|
|
3925
|
+
let result200: any = null;
|
|
3926
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3927
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3928
|
+
return result200;
|
|
3921
3929
|
});
|
|
3922
3930
|
} else if (status !== 200 && status !== 204) {
|
|
3923
3931
|
return response.text().then((_responseText) => {
|
|
3924
3932
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3925
3933
|
});
|
|
3926
3934
|
}
|
|
3927
|
-
return Promise.resolve<
|
|
3935
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
3928
3936
|
}
|
|
3929
3937
|
|
|
3930
|
-
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<
|
|
3938
|
+
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto> {
|
|
3931
3939
|
let url_ = this.baseUrl + "/move/booking/cancel";
|
|
3932
3940
|
url_ = url_.replace(/[?&]$/, "");
|
|
3933
3941
|
|
|
@@ -3938,6 +3946,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3938
3946
|
method: "POST",
|
|
3939
3947
|
headers: {
|
|
3940
3948
|
"Content-Type": "application/json",
|
|
3949
|
+
"Accept": "application/json"
|
|
3941
3950
|
}
|
|
3942
3951
|
};
|
|
3943
3952
|
|
|
@@ -3948,22 +3957,25 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3948
3957
|
});
|
|
3949
3958
|
}
|
|
3950
3959
|
|
|
3951
|
-
protected processCancelBooking(response: Response): Promise<
|
|
3960
|
+
protected processCancelBooking(response: Response): Promise<BookingDto> {
|
|
3952
3961
|
const status = response.status;
|
|
3953
3962
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3954
|
-
if (status ===
|
|
3963
|
+
if (status === 200) {
|
|
3955
3964
|
return response.text().then((_responseText) => {
|
|
3956
|
-
|
|
3965
|
+
let result200: any = null;
|
|
3966
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3967
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3968
|
+
return result200;
|
|
3957
3969
|
});
|
|
3958
3970
|
} else if (status !== 200 && status !== 204) {
|
|
3959
3971
|
return response.text().then((_responseText) => {
|
|
3960
3972
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3961
3973
|
});
|
|
3962
3974
|
}
|
|
3963
|
-
return Promise.resolve<
|
|
3975
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
3964
3976
|
}
|
|
3965
3977
|
|
|
3966
|
-
startDelivery(bookingUpdate: BookingUpdateDto): Promise<
|
|
3978
|
+
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto> {
|
|
3967
3979
|
let url_ = this.baseUrl + "/move/booking/startdelivery";
|
|
3968
3980
|
url_ = url_.replace(/[?&]$/, "");
|
|
3969
3981
|
|
|
@@ -3974,6 +3986,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3974
3986
|
method: "POST",
|
|
3975
3987
|
headers: {
|
|
3976
3988
|
"Content-Type": "application/json",
|
|
3989
|
+
"Accept": "application/json"
|
|
3977
3990
|
}
|
|
3978
3991
|
};
|
|
3979
3992
|
|
|
@@ -3984,22 +3997,25 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
3984
3997
|
});
|
|
3985
3998
|
}
|
|
3986
3999
|
|
|
3987
|
-
protected processStartDelivery(response: Response): Promise<
|
|
4000
|
+
protected processStartDelivery(response: Response): Promise<BookingDto> {
|
|
3988
4001
|
const status = response.status;
|
|
3989
4002
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
3990
|
-
if (status ===
|
|
4003
|
+
if (status === 200) {
|
|
3991
4004
|
return response.text().then((_responseText) => {
|
|
3992
|
-
|
|
4005
|
+
let result200: any = null;
|
|
4006
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4007
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
4008
|
+
return result200;
|
|
3993
4009
|
});
|
|
3994
4010
|
} else if (status !== 200 && status !== 204) {
|
|
3995
4011
|
return response.text().then((_responseText) => {
|
|
3996
4012
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3997
4013
|
});
|
|
3998
4014
|
}
|
|
3999
|
-
return Promise.resolve<
|
|
4015
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
4000
4016
|
}
|
|
4001
4017
|
|
|
4002
|
-
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<
|
|
4018
|
+
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto> {
|
|
4003
4019
|
let url_ = this.baseUrl + "/move/booking/finishdelivery";
|
|
4004
4020
|
url_ = url_.replace(/[?&]$/, "");
|
|
4005
4021
|
|
|
@@ -4010,6 +4026,7 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
4010
4026
|
method: "POST",
|
|
4011
4027
|
headers: {
|
|
4012
4028
|
"Content-Type": "application/json",
|
|
4029
|
+
"Accept": "application/json"
|
|
4013
4030
|
}
|
|
4014
4031
|
};
|
|
4015
4032
|
|
|
@@ -4020,30 +4037,33 @@ export class BookingClient extends AuthorizedApiBase implements IBookingClient {
|
|
|
4020
4037
|
});
|
|
4021
4038
|
}
|
|
4022
4039
|
|
|
4023
|
-
protected processFinishDelivery(response: Response): Promise<
|
|
4040
|
+
protected processFinishDelivery(response: Response): Promise<BookingDto> {
|
|
4024
4041
|
const status = response.status;
|
|
4025
4042
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4026
|
-
if (status ===
|
|
4043
|
+
if (status === 200) {
|
|
4027
4044
|
return response.text().then((_responseText) => {
|
|
4028
|
-
|
|
4045
|
+
let result200: any = null;
|
|
4046
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4047
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
4048
|
+
return result200;
|
|
4029
4049
|
});
|
|
4030
4050
|
} else if (status !== 200 && status !== 204) {
|
|
4031
4051
|
return response.text().then((_responseText) => {
|
|
4032
4052
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4033
4053
|
});
|
|
4034
4054
|
}
|
|
4035
|
-
return Promise.resolve<
|
|
4055
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
4036
4056
|
}
|
|
4037
4057
|
}
|
|
4038
4058
|
|
|
4039
|
-
export interface
|
|
4059
|
+
export interface IMoveLocationsClient {
|
|
4040
4060
|
|
|
4041
4061
|
searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
4042
4062
|
|
|
4043
4063
|
suggestionsLocations(workOrderId: string | null | undefined, locationKinds: LocationKindDto[] | undefined): Promise<LocationDto[]>;
|
|
4044
4064
|
}
|
|
4045
4065
|
|
|
4046
|
-
export class
|
|
4066
|
+
export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
|
|
4047
4067
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
4048
4068
|
private baseUrl: string;
|
|
4049
4069
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -4147,7 +4167,7 @@ export class LocationsClient extends AuthorizedApiBase implements ILocationsClie
|
|
|
4147
4167
|
}
|
|
4148
4168
|
}
|
|
4149
4169
|
|
|
4150
|
-
export interface
|
|
4170
|
+
export interface IMoveTrackingClient {
|
|
4151
4171
|
|
|
4152
4172
|
listTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
|
|
4153
4173
|
|
|
@@ -4162,7 +4182,7 @@ export interface ITrackingClient {
|
|
|
4162
4182
|
createLabel(workOrderId: string, palletCount: number | undefined): Promise<FileResponse>;
|
|
4163
4183
|
}
|
|
4164
4184
|
|
|
4165
|
-
export class
|
|
4185
|
+
export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
4166
4186
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
4167
4187
|
private baseUrl: string;
|
|
4168
4188
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -4407,12 +4427,12 @@ export class TrackingClient extends AuthorizedApiBase implements ITrackingClient
|
|
|
4407
4427
|
}
|
|
4408
4428
|
}
|
|
4409
4429
|
|
|
4410
|
-
export interface
|
|
4430
|
+
export interface IMoveWorkOrdersClient {
|
|
4411
4431
|
|
|
4412
4432
|
searchWorkOrders(input: string | null | undefined): Promise<SearchWorkOrderDto[]>;
|
|
4413
4433
|
}
|
|
4414
4434
|
|
|
4415
|
-
export class
|
|
4435
|
+
export class MoveWorkOrdersClient extends AuthorizedApiBase implements IMoveWorkOrdersClient {
|
|
4416
4436
|
private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
|
|
4417
4437
|
private baseUrl: string;
|
|
4418
4438
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
|
|
@@ -8124,6 +8144,8 @@ export interface ICncFileTransferClient {
|
|
|
8124
8144
|
getCamTransfer(path: string | null | undefined): Promise<CamTransferDto>;
|
|
8125
8145
|
|
|
8126
8146
|
startCamTransferToMachine(request: StartCamTransferToMachine): Promise<CncMachineTransferDto>;
|
|
8147
|
+
|
|
8148
|
+
startCamTransferToMachineFromTempUpload(request: StartCamTransferToMachineFromTempUpload): Promise<CncMachineTransferDto>;
|
|
8127
8149
|
}
|
|
8128
8150
|
|
|
8129
8151
|
export class CncFileTransferClient extends AuthorizedApiBase implements ICncFileTransferClient {
|
|
@@ -8371,6 +8393,46 @@ export class CncFileTransferClient extends AuthorizedApiBase implements ICncFile
|
|
|
8371
8393
|
}
|
|
8372
8394
|
return Promise.resolve<CncMachineTransferDto>(null as any);
|
|
8373
8395
|
}
|
|
8396
|
+
|
|
8397
|
+
startCamTransferToMachineFromTempUpload(request: StartCamTransferToMachineFromTempUpload): Promise<CncMachineTransferDto> {
|
|
8398
|
+
let url_ = this.baseUrl + "/cncfiletransfer/transfers/tempcamfile";
|
|
8399
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
8400
|
+
|
|
8401
|
+
const content_ = JSON.stringify(request);
|
|
8402
|
+
|
|
8403
|
+
let options_: RequestInit = {
|
|
8404
|
+
body: content_,
|
|
8405
|
+
method: "POST",
|
|
8406
|
+
headers: {
|
|
8407
|
+
"Content-Type": "application/json",
|
|
8408
|
+
"Accept": "application/json"
|
|
8409
|
+
}
|
|
8410
|
+
};
|
|
8411
|
+
|
|
8412
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
8413
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
8414
|
+
}).then((_response: Response) => {
|
|
8415
|
+
return this.processStartCamTransferToMachineFromTempUpload(_response);
|
|
8416
|
+
});
|
|
8417
|
+
}
|
|
8418
|
+
|
|
8419
|
+
protected processStartCamTransferToMachineFromTempUpload(response: Response): Promise<CncMachineTransferDto> {
|
|
8420
|
+
const status = response.status;
|
|
8421
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
8422
|
+
if (status === 200) {
|
|
8423
|
+
return response.text().then((_responseText) => {
|
|
8424
|
+
let result200: any = null;
|
|
8425
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
8426
|
+
result200 = CncMachineTransferDto.fromJS(resultData200);
|
|
8427
|
+
return result200;
|
|
8428
|
+
});
|
|
8429
|
+
} else if (status !== 200 && status !== 204) {
|
|
8430
|
+
return response.text().then((_responseText) => {
|
|
8431
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
8432
|
+
});
|
|
8433
|
+
}
|
|
8434
|
+
return Promise.resolve<CncMachineTransferDto>(null as any);
|
|
8435
|
+
}
|
|
8374
8436
|
}
|
|
8375
8437
|
|
|
8376
8438
|
export interface ICncSetupAgentClient {
|
|
@@ -25208,11 +25270,11 @@ export interface IListTraceWorkordersRequest {
|
|
|
25208
25270
|
continuationToken?: string | null;
|
|
25209
25271
|
}
|
|
25210
25272
|
|
|
25211
|
-
export class
|
|
25212
|
-
results!:
|
|
25273
|
+
export class BookingListDto implements IBookingListDto {
|
|
25274
|
+
results!: BookingDto[];
|
|
25213
25275
|
continuationToken?: string | null;
|
|
25214
25276
|
|
|
25215
|
-
constructor(data?:
|
|
25277
|
+
constructor(data?: IBookingListDto) {
|
|
25216
25278
|
if (data) {
|
|
25217
25279
|
for (var property in data) {
|
|
25218
25280
|
if (data.hasOwnProperty(property))
|
|
@@ -25229,15 +25291,15 @@ export class BookingResponseListDto implements IBookingResponseListDto {
|
|
|
25229
25291
|
if (Array.isArray(_data["results"])) {
|
|
25230
25292
|
this.results = [] as any;
|
|
25231
25293
|
for (let item of _data["results"])
|
|
25232
|
-
this.results!.push(
|
|
25294
|
+
this.results!.push(BookingDto.fromJS(item));
|
|
25233
25295
|
}
|
|
25234
25296
|
this.continuationToken = _data["continuationToken"];
|
|
25235
25297
|
}
|
|
25236
25298
|
}
|
|
25237
25299
|
|
|
25238
|
-
static fromJS(data: any):
|
|
25300
|
+
static fromJS(data: any): BookingListDto {
|
|
25239
25301
|
data = typeof data === 'object' ? data : {};
|
|
25240
|
-
let result = new
|
|
25302
|
+
let result = new BookingListDto();
|
|
25241
25303
|
result.init(data);
|
|
25242
25304
|
return result;
|
|
25243
25305
|
}
|
|
@@ -25254,19 +25316,25 @@ export class BookingResponseListDto implements IBookingResponseListDto {
|
|
|
25254
25316
|
}
|
|
25255
25317
|
}
|
|
25256
25318
|
|
|
25257
|
-
export interface
|
|
25258
|
-
results:
|
|
25319
|
+
export interface IBookingListDto {
|
|
25320
|
+
results: BookingDto[];
|
|
25259
25321
|
continuationToken?: string | null;
|
|
25260
25322
|
}
|
|
25261
25323
|
|
|
25262
|
-
export class
|
|
25324
|
+
export class BookingDto implements IBookingDto {
|
|
25263
25325
|
bookingId!: string;
|
|
25264
25326
|
bookingType!: BookingTypeDto;
|
|
25265
|
-
|
|
25266
|
-
|
|
25267
|
-
|
|
25327
|
+
status!: BookingStatusDto;
|
|
25328
|
+
items!: BookingItemDto[];
|
|
25329
|
+
fromLocation!: LocationDto;
|
|
25330
|
+
toLocation!: LocationDto;
|
|
25331
|
+
created!: Date;
|
|
25332
|
+
createdBy!: string;
|
|
25333
|
+
createdById!: string;
|
|
25334
|
+
updatedBy?: string | null;
|
|
25335
|
+
updatedById?: string | null;
|
|
25268
25336
|
|
|
25269
|
-
constructor(data?:
|
|
25337
|
+
constructor(data?: IBookingDto) {
|
|
25270
25338
|
if (data) {
|
|
25271
25339
|
for (var property in data) {
|
|
25272
25340
|
if (data.hasOwnProperty(property))
|
|
@@ -25275,6 +25343,8 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
25275
25343
|
}
|
|
25276
25344
|
if (!data) {
|
|
25277
25345
|
this.items = [];
|
|
25346
|
+
this.fromLocation = new LocationDto();
|
|
25347
|
+
this.toLocation = new LocationDto();
|
|
25278
25348
|
}
|
|
25279
25349
|
}
|
|
25280
25350
|
|
|
@@ -25282,19 +25352,25 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
25282
25352
|
if (_data) {
|
|
25283
25353
|
this.bookingId = _data["bookingId"];
|
|
25284
25354
|
this.bookingType = _data["bookingType"];
|
|
25355
|
+
this.status = _data["status"];
|
|
25285
25356
|
if (Array.isArray(_data["items"])) {
|
|
25286
25357
|
this.items = [] as any;
|
|
25287
25358
|
for (let item of _data["items"])
|
|
25288
|
-
this.items!.push(
|
|
25359
|
+
this.items!.push(BookingItemDto.fromJS(item));
|
|
25289
25360
|
}
|
|
25290
|
-
this.
|
|
25291
|
-
this.
|
|
25361
|
+
this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
|
|
25362
|
+
this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
|
|
25363
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
25364
|
+
this.createdBy = _data["createdBy"];
|
|
25365
|
+
this.createdById = _data["createdById"];
|
|
25366
|
+
this.updatedBy = _data["updatedBy"];
|
|
25367
|
+
this.updatedById = _data["updatedById"];
|
|
25292
25368
|
}
|
|
25293
25369
|
}
|
|
25294
25370
|
|
|
25295
|
-
static fromJS(data: any):
|
|
25371
|
+
static fromJS(data: any): BookingDto {
|
|
25296
25372
|
data = typeof data === 'object' ? data : {};
|
|
25297
|
-
let result = new
|
|
25373
|
+
let result = new BookingDto();
|
|
25298
25374
|
result.init(data);
|
|
25299
25375
|
return result;
|
|
25300
25376
|
}
|
|
@@ -25303,31 +25379,47 @@ export class BookingResponseDto implements IBookingResponseDto {
|
|
|
25303
25379
|
data = typeof data === 'object' ? data : {};
|
|
25304
25380
|
data["bookingId"] = this.bookingId;
|
|
25305
25381
|
data["bookingType"] = this.bookingType;
|
|
25382
|
+
data["status"] = this.status;
|
|
25306
25383
|
if (Array.isArray(this.items)) {
|
|
25307
25384
|
data["items"] = [];
|
|
25308
25385
|
for (let item of this.items)
|
|
25309
25386
|
data["items"].push(item.toJSON());
|
|
25310
25387
|
}
|
|
25311
|
-
data["
|
|
25312
|
-
data["
|
|
25388
|
+
data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : <any>undefined;
|
|
25389
|
+
data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : <any>undefined;
|
|
25390
|
+
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
25391
|
+
data["createdBy"] = this.createdBy;
|
|
25392
|
+
data["createdById"] = this.createdById;
|
|
25393
|
+
data["updatedBy"] = this.updatedBy;
|
|
25394
|
+
data["updatedById"] = this.updatedById;
|
|
25313
25395
|
return data;
|
|
25314
25396
|
}
|
|
25315
25397
|
}
|
|
25316
25398
|
|
|
25317
|
-
export interface
|
|
25399
|
+
export interface IBookingDto {
|
|
25318
25400
|
bookingId: string;
|
|
25319
25401
|
bookingType: BookingTypeDto;
|
|
25320
|
-
|
|
25321
|
-
|
|
25322
|
-
|
|
25402
|
+
status: BookingStatusDto;
|
|
25403
|
+
items: BookingItemDto[];
|
|
25404
|
+
fromLocation: LocationDto;
|
|
25405
|
+
toLocation: LocationDto;
|
|
25406
|
+
created: Date;
|
|
25407
|
+
createdBy: string;
|
|
25408
|
+
createdById: string;
|
|
25409
|
+
updatedBy?: string | null;
|
|
25410
|
+
updatedById?: string | null;
|
|
25323
25411
|
}
|
|
25324
25412
|
|
|
25325
25413
|
export type BookingTypeDto = "NormalTruck" | "LargeTruck" | "SideLoadingTruck";
|
|
25326
25414
|
|
|
25327
|
-
export
|
|
25415
|
+
export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Delivered";
|
|
25416
|
+
|
|
25417
|
+
export class BookingItemDto implements IBookingItemDto {
|
|
25328
25418
|
trackingId!: string;
|
|
25419
|
+
workOrderId!: string;
|
|
25420
|
+
material?: string | null;
|
|
25329
25421
|
|
|
25330
|
-
constructor(data?:
|
|
25422
|
+
constructor(data?: IBookingItemDto) {
|
|
25331
25423
|
if (data) {
|
|
25332
25424
|
for (var property in data) {
|
|
25333
25425
|
if (data.hasOwnProperty(property))
|
|
@@ -25339,12 +25431,14 @@ export class BookingItemResponseDto implements IBookingItemResponseDto {
|
|
|
25339
25431
|
init(_data?: any) {
|
|
25340
25432
|
if (_data) {
|
|
25341
25433
|
this.trackingId = _data["trackingId"];
|
|
25434
|
+
this.workOrderId = _data["workOrderId"];
|
|
25435
|
+
this.material = _data["material"];
|
|
25342
25436
|
}
|
|
25343
25437
|
}
|
|
25344
25438
|
|
|
25345
|
-
static fromJS(data: any):
|
|
25439
|
+
static fromJS(data: any): BookingItemDto {
|
|
25346
25440
|
data = typeof data === 'object' ? data : {};
|
|
25347
|
-
let result = new
|
|
25441
|
+
let result = new BookingItemDto();
|
|
25348
25442
|
result.init(data);
|
|
25349
25443
|
return result;
|
|
25350
25444
|
}
|
|
@@ -25352,14 +25446,68 @@ export class BookingItemResponseDto implements IBookingItemResponseDto {
|
|
|
25352
25446
|
toJSON(data?: any) {
|
|
25353
25447
|
data = typeof data === 'object' ? data : {};
|
|
25354
25448
|
data["trackingId"] = this.trackingId;
|
|
25449
|
+
data["workOrderId"] = this.workOrderId;
|
|
25450
|
+
data["material"] = this.material;
|
|
25355
25451
|
return data;
|
|
25356
25452
|
}
|
|
25357
25453
|
}
|
|
25358
25454
|
|
|
25359
|
-
export interface
|
|
25455
|
+
export interface IBookingItemDto {
|
|
25360
25456
|
trackingId: string;
|
|
25457
|
+
workOrderId: string;
|
|
25458
|
+
material?: string | null;
|
|
25459
|
+
}
|
|
25460
|
+
|
|
25461
|
+
export class LocationDto implements ILocationDto {
|
|
25462
|
+
locationId!: string;
|
|
25463
|
+
locationName!: string;
|
|
25464
|
+
kind!: LocationKindDto;
|
|
25465
|
+
profile?: string | null;
|
|
25466
|
+
|
|
25467
|
+
constructor(data?: ILocationDto) {
|
|
25468
|
+
if (data) {
|
|
25469
|
+
for (var property in data) {
|
|
25470
|
+
if (data.hasOwnProperty(property))
|
|
25471
|
+
(<any>this)[property] = (<any>data)[property];
|
|
25472
|
+
}
|
|
25473
|
+
}
|
|
25474
|
+
}
|
|
25475
|
+
|
|
25476
|
+
init(_data?: any) {
|
|
25477
|
+
if (_data) {
|
|
25478
|
+
this.locationId = _data["locationId"];
|
|
25479
|
+
this.locationName = _data["locationName"];
|
|
25480
|
+
this.kind = _data["kind"];
|
|
25481
|
+
this.profile = _data["profile"];
|
|
25482
|
+
}
|
|
25483
|
+
}
|
|
25484
|
+
|
|
25485
|
+
static fromJS(data: any): LocationDto {
|
|
25486
|
+
data = typeof data === 'object' ? data : {};
|
|
25487
|
+
let result = new LocationDto();
|
|
25488
|
+
result.init(data);
|
|
25489
|
+
return result;
|
|
25490
|
+
}
|
|
25491
|
+
|
|
25492
|
+
toJSON(data?: any) {
|
|
25493
|
+
data = typeof data === 'object' ? data : {};
|
|
25494
|
+
data["locationId"] = this.locationId;
|
|
25495
|
+
data["locationName"] = this.locationName;
|
|
25496
|
+
data["kind"] = this.kind;
|
|
25497
|
+
data["profile"] = this.profile;
|
|
25498
|
+
return data;
|
|
25499
|
+
}
|
|
25500
|
+
}
|
|
25501
|
+
|
|
25502
|
+
export interface ILocationDto {
|
|
25503
|
+
locationId: string;
|
|
25504
|
+
locationName: string;
|
|
25505
|
+
kind: LocationKindDto;
|
|
25506
|
+
profile?: string | null;
|
|
25361
25507
|
}
|
|
25362
25508
|
|
|
25509
|
+
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
25510
|
+
|
|
25363
25511
|
export class BookingRequestListDto implements IBookingRequestListDto {
|
|
25364
25512
|
continuationToken?: string | null;
|
|
25365
25513
|
|
|
@@ -25533,8 +25681,8 @@ export interface IBookingUpdateDto {
|
|
|
25533
25681
|
|
|
25534
25682
|
export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
|
|
25535
25683
|
bookingId!: string;
|
|
25536
|
-
toLocationId?: string | null;
|
|
25537
25684
|
comment?: string | null;
|
|
25685
|
+
deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
|
|
25538
25686
|
|
|
25539
25687
|
constructor(data?: IBookingDeliveryUpdateDto) {
|
|
25540
25688
|
if (data) {
|
|
@@ -25548,8 +25696,12 @@ export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
|
|
|
25548
25696
|
init(_data?: any) {
|
|
25549
25697
|
if (_data) {
|
|
25550
25698
|
this.bookingId = _data["bookingId"];
|
|
25551
|
-
this.toLocationId = _data["toLocationId"];
|
|
25552
25699
|
this.comment = _data["comment"];
|
|
25700
|
+
if (Array.isArray(_data["deliveryExceptions"])) {
|
|
25701
|
+
this.deliveryExceptions = [] as any;
|
|
25702
|
+
for (let item of _data["deliveryExceptions"])
|
|
25703
|
+
this.deliveryExceptions!.push(BookingDeliveryExceptionDto.fromJS(item));
|
|
25704
|
+
}
|
|
25553
25705
|
}
|
|
25554
25706
|
}
|
|
25555
25707
|
|
|
@@ -25563,25 +25715,28 @@ export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
|
|
|
25563
25715
|
toJSON(data?: any) {
|
|
25564
25716
|
data = typeof data === 'object' ? data : {};
|
|
25565
25717
|
data["bookingId"] = this.bookingId;
|
|
25566
|
-
data["toLocationId"] = this.toLocationId;
|
|
25567
25718
|
data["comment"] = this.comment;
|
|
25719
|
+
if (Array.isArray(this.deliveryExceptions)) {
|
|
25720
|
+
data["deliveryExceptions"] = [];
|
|
25721
|
+
for (let item of this.deliveryExceptions)
|
|
25722
|
+
data["deliveryExceptions"].push(item.toJSON());
|
|
25723
|
+
}
|
|
25568
25724
|
return data;
|
|
25569
25725
|
}
|
|
25570
25726
|
}
|
|
25571
25727
|
|
|
25572
25728
|
export interface IBookingDeliveryUpdateDto {
|
|
25573
25729
|
bookingId: string;
|
|
25574
|
-
toLocationId?: string | null;
|
|
25575
25730
|
comment?: string | null;
|
|
25731
|
+
deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
|
|
25576
25732
|
}
|
|
25577
25733
|
|
|
25578
|
-
export class
|
|
25579
|
-
|
|
25580
|
-
|
|
25581
|
-
|
|
25582
|
-
profile?: string | null;
|
|
25734
|
+
export class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto {
|
|
25735
|
+
trackingId!: string;
|
|
25736
|
+
toLocationId?: string | null;
|
|
25737
|
+
comment?: string | null;
|
|
25583
25738
|
|
|
25584
|
-
constructor(data?:
|
|
25739
|
+
constructor(data?: IBookingDeliveryExceptionDto) {
|
|
25585
25740
|
if (data) {
|
|
25586
25741
|
for (var property in data) {
|
|
25587
25742
|
if (data.hasOwnProperty(property))
|
|
@@ -25592,39 +25747,34 @@ export class LocationDto implements ILocationDto {
|
|
|
25592
25747
|
|
|
25593
25748
|
init(_data?: any) {
|
|
25594
25749
|
if (_data) {
|
|
25595
|
-
this.
|
|
25596
|
-
this.
|
|
25597
|
-
this.
|
|
25598
|
-
this.profile = _data["profile"];
|
|
25750
|
+
this.trackingId = _data["trackingId"];
|
|
25751
|
+
this.toLocationId = _data["toLocationId"];
|
|
25752
|
+
this.comment = _data["comment"];
|
|
25599
25753
|
}
|
|
25600
25754
|
}
|
|
25601
25755
|
|
|
25602
|
-
static fromJS(data: any):
|
|
25756
|
+
static fromJS(data: any): BookingDeliveryExceptionDto {
|
|
25603
25757
|
data = typeof data === 'object' ? data : {};
|
|
25604
|
-
let result = new
|
|
25758
|
+
let result = new BookingDeliveryExceptionDto();
|
|
25605
25759
|
result.init(data);
|
|
25606
25760
|
return result;
|
|
25607
25761
|
}
|
|
25608
25762
|
|
|
25609
25763
|
toJSON(data?: any) {
|
|
25610
25764
|
data = typeof data === 'object' ? data : {};
|
|
25611
|
-
data["
|
|
25612
|
-
data["
|
|
25613
|
-
data["
|
|
25614
|
-
data["profile"] = this.profile;
|
|
25765
|
+
data["trackingId"] = this.trackingId;
|
|
25766
|
+
data["toLocationId"] = this.toLocationId;
|
|
25767
|
+
data["comment"] = this.comment;
|
|
25615
25768
|
return data;
|
|
25616
25769
|
}
|
|
25617
25770
|
}
|
|
25618
25771
|
|
|
25619
|
-
export interface
|
|
25620
|
-
|
|
25621
|
-
|
|
25622
|
-
|
|
25623
|
-
profile?: string | null;
|
|
25772
|
+
export interface IBookingDeliveryExceptionDto {
|
|
25773
|
+
trackingId: string;
|
|
25774
|
+
toLocationId?: string | null;
|
|
25775
|
+
comment?: string | null;
|
|
25624
25776
|
}
|
|
25625
25777
|
|
|
25626
|
-
export type LocationKindDto = "Warehouse" | "Zone" | "Location";
|
|
25627
|
-
|
|
25628
25778
|
export class TrackingHistoryDto implements ITrackingHistoryDto {
|
|
25629
25779
|
trackingId!: string;
|
|
25630
25780
|
palletNumber!: number;
|
|
@@ -25688,6 +25838,7 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25688
25838
|
id!: number;
|
|
25689
25839
|
created!: Date;
|
|
25690
25840
|
createdBy!: string;
|
|
25841
|
+
createdById!: string;
|
|
25691
25842
|
location!: LocationDto;
|
|
25692
25843
|
status!: TrackingStatusDto;
|
|
25693
25844
|
bookingId?: string | null;
|
|
@@ -25710,6 +25861,7 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25710
25861
|
this.id = _data["id"];
|
|
25711
25862
|
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
25712
25863
|
this.createdBy = _data["createdBy"];
|
|
25864
|
+
this.createdById = _data["createdById"];
|
|
25713
25865
|
this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : new LocationDto();
|
|
25714
25866
|
this.status = _data["status"];
|
|
25715
25867
|
this.bookingId = _data["bookingId"];
|
|
@@ -25729,6 +25881,7 @@ export class TrackingEventDto implements ITrackingEventDto {
|
|
|
25729
25881
|
data["id"] = this.id;
|
|
25730
25882
|
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
25731
25883
|
data["createdBy"] = this.createdBy;
|
|
25884
|
+
data["createdById"] = this.createdById;
|
|
25732
25885
|
data["location"] = this.location ? this.location.toJSON() : <any>undefined;
|
|
25733
25886
|
data["status"] = this.status;
|
|
25734
25887
|
data["bookingId"] = this.bookingId;
|
|
@@ -25741,6 +25894,7 @@ export interface ITrackingEventDto {
|
|
|
25741
25894
|
id: number;
|
|
25742
25895
|
created: Date;
|
|
25743
25896
|
createdBy: string;
|
|
25897
|
+
createdById: string;
|
|
25744
25898
|
location: LocationDto;
|
|
25745
25899
|
status: TrackingStatusDto;
|
|
25746
25900
|
bookingId?: string | null;
|
|
@@ -25895,6 +26049,7 @@ export interface ITrackingHistoryUpdateDto {
|
|
|
25895
26049
|
|
|
25896
26050
|
export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
25897
26051
|
workOrderId!: string;
|
|
26052
|
+
trackingIds!: string[];
|
|
25898
26053
|
partName?: string | null;
|
|
25899
26054
|
partNumber?: string | null;
|
|
25900
26055
|
|
|
@@ -25905,11 +26060,19 @@ export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
|
25905
26060
|
(<any>this)[property] = (<any>data)[property];
|
|
25906
26061
|
}
|
|
25907
26062
|
}
|
|
26063
|
+
if (!data) {
|
|
26064
|
+
this.trackingIds = [];
|
|
26065
|
+
}
|
|
25908
26066
|
}
|
|
25909
26067
|
|
|
25910
26068
|
init(_data?: any) {
|
|
25911
26069
|
if (_data) {
|
|
25912
26070
|
this.workOrderId = _data["workOrderId"];
|
|
26071
|
+
if (Array.isArray(_data["trackingIds"])) {
|
|
26072
|
+
this.trackingIds = [] as any;
|
|
26073
|
+
for (let item of _data["trackingIds"])
|
|
26074
|
+
this.trackingIds!.push(item);
|
|
26075
|
+
}
|
|
25913
26076
|
this.partName = _data["partName"];
|
|
25914
26077
|
this.partNumber = _data["partNumber"];
|
|
25915
26078
|
}
|
|
@@ -25925,6 +26088,11 @@ export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
|
25925
26088
|
toJSON(data?: any) {
|
|
25926
26089
|
data = typeof data === 'object' ? data : {};
|
|
25927
26090
|
data["workOrderId"] = this.workOrderId;
|
|
26091
|
+
if (Array.isArray(this.trackingIds)) {
|
|
26092
|
+
data["trackingIds"] = [];
|
|
26093
|
+
for (let item of this.trackingIds)
|
|
26094
|
+
data["trackingIds"].push(item);
|
|
26095
|
+
}
|
|
25928
26096
|
data["partName"] = this.partName;
|
|
25929
26097
|
data["partNumber"] = this.partNumber;
|
|
25930
26098
|
return data;
|
|
@@ -25933,6 +26101,7 @@ export class SearchWorkOrderDto implements ISearchWorkOrderDto {
|
|
|
25933
26101
|
|
|
25934
26102
|
export interface ISearchWorkOrderDto {
|
|
25935
26103
|
workOrderId: string;
|
|
26104
|
+
trackingIds: string[];
|
|
25936
26105
|
partName?: string | null;
|
|
25937
26106
|
partNumber?: string | null;
|
|
25938
26107
|
}
|
|
@@ -31263,6 +31432,50 @@ export interface IStartCamTransferToMachine {
|
|
|
31263
31432
|
cncMachineId: string;
|
|
31264
31433
|
}
|
|
31265
31434
|
|
|
31435
|
+
export class StartCamTransferToMachineFromTempUpload implements IStartCamTransferToMachineFromTempUpload {
|
|
31436
|
+
uploadKey!: string;
|
|
31437
|
+
filename!: string;
|
|
31438
|
+
cncMachineId!: string;
|
|
31439
|
+
|
|
31440
|
+
constructor(data?: IStartCamTransferToMachineFromTempUpload) {
|
|
31441
|
+
if (data) {
|
|
31442
|
+
for (var property in data) {
|
|
31443
|
+
if (data.hasOwnProperty(property))
|
|
31444
|
+
(<any>this)[property] = (<any>data)[property];
|
|
31445
|
+
}
|
|
31446
|
+
}
|
|
31447
|
+
}
|
|
31448
|
+
|
|
31449
|
+
init(_data?: any) {
|
|
31450
|
+
if (_data) {
|
|
31451
|
+
this.uploadKey = _data["uploadKey"];
|
|
31452
|
+
this.filename = _data["filename"];
|
|
31453
|
+
this.cncMachineId = _data["cncMachineId"];
|
|
31454
|
+
}
|
|
31455
|
+
}
|
|
31456
|
+
|
|
31457
|
+
static fromJS(data: any): StartCamTransferToMachineFromTempUpload {
|
|
31458
|
+
data = typeof data === 'object' ? data : {};
|
|
31459
|
+
let result = new StartCamTransferToMachineFromTempUpload();
|
|
31460
|
+
result.init(data);
|
|
31461
|
+
return result;
|
|
31462
|
+
}
|
|
31463
|
+
|
|
31464
|
+
toJSON(data?: any) {
|
|
31465
|
+
data = typeof data === 'object' ? data : {};
|
|
31466
|
+
data["uploadKey"] = this.uploadKey;
|
|
31467
|
+
data["filename"] = this.filename;
|
|
31468
|
+
data["cncMachineId"] = this.cncMachineId;
|
|
31469
|
+
return data;
|
|
31470
|
+
}
|
|
31471
|
+
}
|
|
31472
|
+
|
|
31473
|
+
export interface IStartCamTransferToMachineFromTempUpload {
|
|
31474
|
+
uploadKey: string;
|
|
31475
|
+
filename: string;
|
|
31476
|
+
cncMachineId: string;
|
|
31477
|
+
}
|
|
31478
|
+
|
|
31266
31479
|
export class AgentConfigDto implements IAgentConfigDto {
|
|
31267
31480
|
serviceBusNamespace!: string;
|
|
31268
31481
|
queueName!: string;
|