@ignos/api-client 20240820.0.10059 → 20240820.0.10076

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.
@@ -1419,10 +1419,6 @@ export interface IMoveBookingClient {
1419
1419
  createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
1420
1420
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
1421
1421
  updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
1422
- cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1423
- revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1424
- startDelivery(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1425
- finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
1426
1422
  }
1427
1423
  export declare class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
1428
1424
  private http;
@@ -1445,14 +1441,6 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
1445
1441
  protected processCreateBookingGeneral(response: Response): Promise<BookingDto>;
1446
1442
  updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
1447
1443
  protected processUpdateBookingStatus(response: Response): Promise<BookingDto>;
1448
- cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1449
- protected processCancelBooking(response: Response): Promise<BookingDto>;
1450
- revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1451
- protected processRevertBooking(response: Response): Promise<BookingDto>;
1452
- startDelivery(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1453
- protected processStartDelivery(response: Response): Promise<BookingDto>;
1454
- finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
1455
- protected processFinishDelivery(response: Response): Promise<BookingDto>;
1456
1444
  }
1457
1445
  export interface IMoveLocationsClient {
1458
1446
  searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined): Promise<LocationDto[]>;
@@ -7889,7 +7877,7 @@ export interface IBookingDto {
7889
7877
  driverId?: string | null;
7890
7878
  completed?: Date | null;
7891
7879
  }
7892
- export type ParcelKindDto = "Forklift" | "General" | "ChipDisposal" | "Garbage";
7880
+ export type ParcelKindDto = "Standard" | "OtherInquiries" | "ChipDisposal" | "Garbage";
7893
7881
  export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
7894
7882
  export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Completed";
7895
7883
  export declare class BookingItemDto implements IBookingItemDto {
@@ -8075,28 +8063,6 @@ export interface IBookingDeliveryExceptionDto {
8075
8063
  toLocationId?: string | null;
8076
8064
  comment?: string | null;
8077
8065
  }
8078
- export declare class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
8079
- bookingId: string;
8080
- constructor(data?: IBookingUpdateStatusDto);
8081
- init(_data?: any): void;
8082
- static fromJS(data: any): BookingUpdateStatusDto;
8083
- toJSON(data?: any): any;
8084
- }
8085
- export interface IBookingUpdateStatusDto {
8086
- bookingId: string;
8087
- }
8088
- export declare class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
8089
- bookingId: string;
8090
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
8091
- constructor(data?: IBookingDeliveryUpdateDto);
8092
- init(_data?: any): void;
8093
- static fromJS(data: any): BookingDeliveryUpdateDto;
8094
- toJSON(data?: any): any;
8095
- }
8096
- export interface IBookingDeliveryUpdateDto {
8097
- bookingId: string;
8098
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
8099
- }
8100
8066
  export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
8101
8067
  items: LocationSuggestionsItemDto[];
8102
8068
  locationKindFilter?: LocationKindDto[] | null;
@@ -8193,6 +8159,7 @@ export declare class TrackingHistoryDto implements ITrackingHistoryDto {
8193
8159
  palletNumber: number;
8194
8160
  parcelKind: ParcelKindDto;
8195
8161
  parcelId: string;
8162
+ currentTracking?: TrackingEventDto | null;
8196
8163
  trackingEvents: TrackingEventDto[];
8197
8164
  material?: string | null;
8198
8165
  activeBooking?: boolean | null;
@@ -8206,6 +8173,7 @@ export interface ITrackingHistoryDto {
8206
8173
  palletNumber: number;
8207
8174
  parcelKind: ParcelKindDto;
8208
8175
  parcelId: string;
8176
+ currentTracking?: TrackingEventDto | null;
8209
8177
  trackingEvents: TrackingEventDto[];
8210
8178
  material?: string | null;
8211
8179
  activeBooking?: boolean | null;
@@ -8741,6 +8709,9 @@ export declare class NonConformanceDto implements INonConformanceDto {
8741
8709
  closed: boolean;
8742
8710
  approved: boolean;
8743
8711
  url?: string | null;
8712
+ rootCause?: NonConformanceAttachmentDto | null;
8713
+ decision?: NonConformanceAttachmentDto | null;
8714
+ correctiveAction?: NonConformanceAttachmentDto | null;
8744
8715
  constructor(data?: INonConformanceDto);
8745
8716
  init(_data?: any): void;
8746
8717
  static fromJS(data: any): NonConformanceDto;
@@ -8762,8 +8733,27 @@ export interface INonConformanceDto {
8762
8733
  closed: boolean;
8763
8734
  approved: boolean;
8764
8735
  url?: string | null;
8736
+ rootCause?: NonConformanceAttachmentDto | null;
8737
+ decision?: NonConformanceAttachmentDto | null;
8738
+ correctiveAction?: NonConformanceAttachmentDto | null;
8765
8739
  }
8766
8740
  export type NonConformanceType = 1;
8741
+ export declare class NonConformanceAttachmentDto implements INonConformanceAttachmentDto {
8742
+ title?: string | null;
8743
+ description?: string | null;
8744
+ created?: Date;
8745
+ modified?: Date | null;
8746
+ constructor(data?: INonConformanceAttachmentDto);
8747
+ init(_data?: any): void;
8748
+ static fromJS(data: any): NonConformanceAttachmentDto;
8749
+ toJSON(data?: any): any;
8750
+ }
8751
+ export interface INonConformanceAttachmentDto {
8752
+ title?: string | null;
8753
+ description?: string | null;
8754
+ created?: Date;
8755
+ modified?: Date | null;
8756
+ }
8767
8757
  export declare class MaterialPickListResultDto implements IMaterialPickListResultDto {
8768
8758
  results: MaterialPickListResultEntryDto[];
8769
8759
  constructor(data?: IMaterialPickListResultDto);
@@ -11884,166 +11884,6 @@ export class MoveBookingClient extends AuthorizedApiBase {
11884
11884
  }
11885
11885
  return Promise.resolve(null);
11886
11886
  }
11887
- cancelBooking(bookingUpdate) {
11888
- let url_ = this.baseUrl + "/move/booking/cancel";
11889
- url_ = url_.replace(/[?&]$/, "");
11890
- const content_ = JSON.stringify(bookingUpdate);
11891
- let options_ = {
11892
- body: content_,
11893
- method: "POST",
11894
- headers: {
11895
- "Content-Type": "application/json",
11896
- "Accept": "application/json"
11897
- }
11898
- };
11899
- return this.transformOptions(options_).then(transformedOptions_ => {
11900
- return this.http.fetch(url_, transformedOptions_);
11901
- }).then((_response) => {
11902
- return this.processCancelBooking(_response);
11903
- });
11904
- }
11905
- processCancelBooking(response) {
11906
- const status = response.status;
11907
- let _headers = {};
11908
- if (response.headers && response.headers.forEach) {
11909
- response.headers.forEach((v, k) => _headers[k] = v);
11910
- }
11911
- ;
11912
- if (status === 200) {
11913
- return response.text().then((_responseText) => {
11914
- let result200 = null;
11915
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11916
- result200 = BookingDto.fromJS(resultData200);
11917
- return result200;
11918
- });
11919
- }
11920
- else if (status !== 200 && status !== 204) {
11921
- return response.text().then((_responseText) => {
11922
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11923
- });
11924
- }
11925
- return Promise.resolve(null);
11926
- }
11927
- revertBooking(bookingUpdate) {
11928
- let url_ = this.baseUrl + "/move/booking/revert";
11929
- url_ = url_.replace(/[?&]$/, "");
11930
- const content_ = JSON.stringify(bookingUpdate);
11931
- let options_ = {
11932
- body: content_,
11933
- method: "POST",
11934
- headers: {
11935
- "Content-Type": "application/json",
11936
- "Accept": "application/json"
11937
- }
11938
- };
11939
- return this.transformOptions(options_).then(transformedOptions_ => {
11940
- return this.http.fetch(url_, transformedOptions_);
11941
- }).then((_response) => {
11942
- return this.processRevertBooking(_response);
11943
- });
11944
- }
11945
- processRevertBooking(response) {
11946
- const status = response.status;
11947
- let _headers = {};
11948
- if (response.headers && response.headers.forEach) {
11949
- response.headers.forEach((v, k) => _headers[k] = v);
11950
- }
11951
- ;
11952
- if (status === 200) {
11953
- return response.text().then((_responseText) => {
11954
- let result200 = null;
11955
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11956
- result200 = BookingDto.fromJS(resultData200);
11957
- return result200;
11958
- });
11959
- }
11960
- else if (status !== 200 && status !== 204) {
11961
- return response.text().then((_responseText) => {
11962
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11963
- });
11964
- }
11965
- return Promise.resolve(null);
11966
- }
11967
- startDelivery(bookingUpdate) {
11968
- let url_ = this.baseUrl + "/move/booking/startdelivery";
11969
- url_ = url_.replace(/[?&]$/, "");
11970
- const content_ = JSON.stringify(bookingUpdate);
11971
- let options_ = {
11972
- body: content_,
11973
- method: "POST",
11974
- headers: {
11975
- "Content-Type": "application/json",
11976
- "Accept": "application/json"
11977
- }
11978
- };
11979
- return this.transformOptions(options_).then(transformedOptions_ => {
11980
- return this.http.fetch(url_, transformedOptions_);
11981
- }).then((_response) => {
11982
- return this.processStartDelivery(_response);
11983
- });
11984
- }
11985
- processStartDelivery(response) {
11986
- const status = response.status;
11987
- let _headers = {};
11988
- if (response.headers && response.headers.forEach) {
11989
- response.headers.forEach((v, k) => _headers[k] = v);
11990
- }
11991
- ;
11992
- if (status === 200) {
11993
- return response.text().then((_responseText) => {
11994
- let result200 = null;
11995
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11996
- result200 = BookingDto.fromJS(resultData200);
11997
- return result200;
11998
- });
11999
- }
12000
- else if (status !== 200 && status !== 204) {
12001
- return response.text().then((_responseText) => {
12002
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12003
- });
12004
- }
12005
- return Promise.resolve(null);
12006
- }
12007
- finishDelivery(bookingUpdate) {
12008
- let url_ = this.baseUrl + "/move/booking/finishdelivery";
12009
- url_ = url_.replace(/[?&]$/, "");
12010
- const content_ = JSON.stringify(bookingUpdate);
12011
- let options_ = {
12012
- body: content_,
12013
- method: "POST",
12014
- headers: {
12015
- "Content-Type": "application/json",
12016
- "Accept": "application/json"
12017
- }
12018
- };
12019
- return this.transformOptions(options_).then(transformedOptions_ => {
12020
- return this.http.fetch(url_, transformedOptions_);
12021
- }).then((_response) => {
12022
- return this.processFinishDelivery(_response);
12023
- });
12024
- }
12025
- processFinishDelivery(response) {
12026
- const status = response.status;
12027
- let _headers = {};
12028
- if (response.headers && response.headers.forEach) {
12029
- response.headers.forEach((v, k) => _headers[k] = v);
12030
- }
12031
- ;
12032
- if (status === 200) {
12033
- return response.text().then((_responseText) => {
12034
- let result200 = null;
12035
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12036
- result200 = BookingDto.fromJS(resultData200);
12037
- return result200;
12038
- });
12039
- }
12040
- else if (status !== 200 && status !== 204) {
12041
- return response.text().then((_responseText) => {
12042
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12043
- });
12044
- }
12045
- return Promise.resolve(null);
12046
- }
12047
11887
  }
12048
11888
  export class MoveLocationsClient extends AuthorizedApiBase {
12049
11889
  constructor(configuration, baseUrl, http) {
@@ -30915,68 +30755,6 @@ export class BookingDeliveryExceptionDto {
30915
30755
  return data;
30916
30756
  }
30917
30757
  }
30918
- export class BookingUpdateStatusDto {
30919
- constructor(data) {
30920
- if (data) {
30921
- for (var property in data) {
30922
- if (data.hasOwnProperty(property))
30923
- this[property] = data[property];
30924
- }
30925
- }
30926
- }
30927
- init(_data) {
30928
- if (_data) {
30929
- this.bookingId = _data["bookingId"];
30930
- }
30931
- }
30932
- static fromJS(data) {
30933
- data = typeof data === 'object' ? data : {};
30934
- let result = new BookingUpdateStatusDto();
30935
- result.init(data);
30936
- return result;
30937
- }
30938
- toJSON(data) {
30939
- data = typeof data === 'object' ? data : {};
30940
- data["bookingId"] = this.bookingId;
30941
- return data;
30942
- }
30943
- }
30944
- export class BookingDeliveryUpdateDto {
30945
- constructor(data) {
30946
- if (data) {
30947
- for (var property in data) {
30948
- if (data.hasOwnProperty(property))
30949
- this[property] = data[property];
30950
- }
30951
- }
30952
- }
30953
- init(_data) {
30954
- if (_data) {
30955
- this.bookingId = _data["bookingId"];
30956
- if (Array.isArray(_data["deliveryExceptions"])) {
30957
- this.deliveryExceptions = [];
30958
- for (let item of _data["deliveryExceptions"])
30959
- this.deliveryExceptions.push(BookingDeliveryExceptionDto.fromJS(item));
30960
- }
30961
- }
30962
- }
30963
- static fromJS(data) {
30964
- data = typeof data === 'object' ? data : {};
30965
- let result = new BookingDeliveryUpdateDto();
30966
- result.init(data);
30967
- return result;
30968
- }
30969
- toJSON(data) {
30970
- data = typeof data === 'object' ? data : {};
30971
- data["bookingId"] = this.bookingId;
30972
- if (Array.isArray(this.deliveryExceptions)) {
30973
- data["deliveryExceptions"] = [];
30974
- for (let item of this.deliveryExceptions)
30975
- data["deliveryExceptions"].push(item.toJSON());
30976
- }
30977
- return data;
30978
- }
30979
- }
30980
30758
  export class LocationSuggestionsDto {
30981
30759
  constructor(data) {
30982
30760
  if (data) {
@@ -31238,6 +31016,7 @@ export class TrackingHistoryDto {
31238
31016
  this.palletNumber = _data["palletNumber"];
31239
31017
  this.parcelKind = _data["parcelKind"];
31240
31018
  this.parcelId = _data["parcelId"];
31019
+ this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
31241
31020
  if (Array.isArray(_data["trackingEvents"])) {
31242
31021
  this.trackingEvents = [];
31243
31022
  for (let item of _data["trackingEvents"])
@@ -31259,6 +31038,7 @@ export class TrackingHistoryDto {
31259
31038
  data["palletNumber"] = this.palletNumber;
31260
31039
  data["parcelKind"] = this.parcelKind;
31261
31040
  data["parcelId"] = this.parcelId;
31041
+ data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
31262
31042
  if (Array.isArray(this.trackingEvents)) {
31263
31043
  data["trackingEvents"] = [];
31264
31044
  for (let item of this.trackingEvents)
@@ -32293,6 +32073,9 @@ export class NonConformanceDto {
32293
32073
  this.closed = _data["closed"];
32294
32074
  this.approved = _data["approved"];
32295
32075
  this.url = _data["url"];
32076
+ this.rootCause = _data["rootCause"] ? NonConformanceAttachmentDto.fromJS(_data["rootCause"]) : undefined;
32077
+ this.decision = _data["decision"] ? NonConformanceAttachmentDto.fromJS(_data["decision"]) : undefined;
32078
+ this.correctiveAction = _data["correctiveAction"] ? NonConformanceAttachmentDto.fromJS(_data["correctiveAction"]) : undefined;
32296
32079
  }
32297
32080
  }
32298
32081
  static fromJS(data) {
@@ -32318,6 +32101,41 @@ export class NonConformanceDto {
32318
32101
  data["closed"] = this.closed;
32319
32102
  data["approved"] = this.approved;
32320
32103
  data["url"] = this.url;
32104
+ data["rootCause"] = this.rootCause ? this.rootCause.toJSON() : undefined;
32105
+ data["decision"] = this.decision ? this.decision.toJSON() : undefined;
32106
+ data["correctiveAction"] = this.correctiveAction ? this.correctiveAction.toJSON() : undefined;
32107
+ return data;
32108
+ }
32109
+ }
32110
+ export class NonConformanceAttachmentDto {
32111
+ constructor(data) {
32112
+ if (data) {
32113
+ for (var property in data) {
32114
+ if (data.hasOwnProperty(property))
32115
+ this[property] = data[property];
32116
+ }
32117
+ }
32118
+ }
32119
+ init(_data) {
32120
+ if (_data) {
32121
+ this.title = _data["title"];
32122
+ this.description = _data["description"];
32123
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
32124
+ this.modified = _data["modified"] ? new Date(_data["modified"].toString()) : undefined;
32125
+ }
32126
+ }
32127
+ static fromJS(data) {
32128
+ data = typeof data === 'object' ? data : {};
32129
+ let result = new NonConformanceAttachmentDto();
32130
+ result.init(data);
32131
+ return result;
32132
+ }
32133
+ toJSON(data) {
32134
+ data = typeof data === 'object' ? data : {};
32135
+ data["title"] = this.title;
32136
+ data["description"] = this.description;
32137
+ data["created"] = this.created ? this.created.toISOString() : undefined;
32138
+ data["modified"] = this.modified ? this.modified.toISOString() : undefined;
32321
32139
  return data;
32322
32140
  }
32323
32141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240820.0.10059",
3
+ "version": "20240820.0.10076",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -12398,14 +12398,6 @@ export interface IMoveBookingClient {
12398
12398
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
12399
12399
 
12400
12400
  updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
12401
-
12402
- cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
12403
-
12404
- revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
12405
-
12406
- startDelivery(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
12407
-
12408
- finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
12409
12401
  }
12410
12402
 
12411
12403
  export class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
@@ -12700,166 +12692,6 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
12700
12692
  }
12701
12693
  return Promise.resolve<BookingDto>(null as any);
12702
12694
  }
12703
-
12704
- cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto> {
12705
- let url_ = this.baseUrl + "/move/booking/cancel";
12706
- url_ = url_.replace(/[?&]$/, "");
12707
-
12708
- const content_ = JSON.stringify(bookingUpdate);
12709
-
12710
- let options_: RequestInit = {
12711
- body: content_,
12712
- method: "POST",
12713
- headers: {
12714
- "Content-Type": "application/json",
12715
- "Accept": "application/json"
12716
- }
12717
- };
12718
-
12719
- return this.transformOptions(options_).then(transformedOptions_ => {
12720
- return this.http.fetch(url_, transformedOptions_);
12721
- }).then((_response: Response) => {
12722
- return this.processCancelBooking(_response);
12723
- });
12724
- }
12725
-
12726
- protected processCancelBooking(response: Response): Promise<BookingDto> {
12727
- const status = response.status;
12728
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12729
- if (status === 200) {
12730
- return response.text().then((_responseText) => {
12731
- let result200: any = null;
12732
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12733
- result200 = BookingDto.fromJS(resultData200);
12734
- return result200;
12735
- });
12736
- } else if (status !== 200 && status !== 204) {
12737
- return response.text().then((_responseText) => {
12738
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12739
- });
12740
- }
12741
- return Promise.resolve<BookingDto>(null as any);
12742
- }
12743
-
12744
- revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto> {
12745
- let url_ = this.baseUrl + "/move/booking/revert";
12746
- url_ = url_.replace(/[?&]$/, "");
12747
-
12748
- const content_ = JSON.stringify(bookingUpdate);
12749
-
12750
- let options_: RequestInit = {
12751
- body: content_,
12752
- method: "POST",
12753
- headers: {
12754
- "Content-Type": "application/json",
12755
- "Accept": "application/json"
12756
- }
12757
- };
12758
-
12759
- return this.transformOptions(options_).then(transformedOptions_ => {
12760
- return this.http.fetch(url_, transformedOptions_);
12761
- }).then((_response: Response) => {
12762
- return this.processRevertBooking(_response);
12763
- });
12764
- }
12765
-
12766
- protected processRevertBooking(response: Response): Promise<BookingDto> {
12767
- const status = response.status;
12768
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12769
- if (status === 200) {
12770
- return response.text().then((_responseText) => {
12771
- let result200: any = null;
12772
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12773
- result200 = BookingDto.fromJS(resultData200);
12774
- return result200;
12775
- });
12776
- } else if (status !== 200 && status !== 204) {
12777
- return response.text().then((_responseText) => {
12778
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12779
- });
12780
- }
12781
- return Promise.resolve<BookingDto>(null as any);
12782
- }
12783
-
12784
- startDelivery(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto> {
12785
- let url_ = this.baseUrl + "/move/booking/startdelivery";
12786
- url_ = url_.replace(/[?&]$/, "");
12787
-
12788
- const content_ = JSON.stringify(bookingUpdate);
12789
-
12790
- let options_: RequestInit = {
12791
- body: content_,
12792
- method: "POST",
12793
- headers: {
12794
- "Content-Type": "application/json",
12795
- "Accept": "application/json"
12796
- }
12797
- };
12798
-
12799
- return this.transformOptions(options_).then(transformedOptions_ => {
12800
- return this.http.fetch(url_, transformedOptions_);
12801
- }).then((_response: Response) => {
12802
- return this.processStartDelivery(_response);
12803
- });
12804
- }
12805
-
12806
- protected processStartDelivery(response: Response): Promise<BookingDto> {
12807
- const status = response.status;
12808
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12809
- if (status === 200) {
12810
- return response.text().then((_responseText) => {
12811
- let result200: any = null;
12812
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12813
- result200 = BookingDto.fromJS(resultData200);
12814
- return result200;
12815
- });
12816
- } else if (status !== 200 && status !== 204) {
12817
- return response.text().then((_responseText) => {
12818
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12819
- });
12820
- }
12821
- return Promise.resolve<BookingDto>(null as any);
12822
- }
12823
-
12824
- finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto> {
12825
- let url_ = this.baseUrl + "/move/booking/finishdelivery";
12826
- url_ = url_.replace(/[?&]$/, "");
12827
-
12828
- const content_ = JSON.stringify(bookingUpdate);
12829
-
12830
- let options_: RequestInit = {
12831
- body: content_,
12832
- method: "POST",
12833
- headers: {
12834
- "Content-Type": "application/json",
12835
- "Accept": "application/json"
12836
- }
12837
- };
12838
-
12839
- return this.transformOptions(options_).then(transformedOptions_ => {
12840
- return this.http.fetch(url_, transformedOptions_);
12841
- }).then((_response: Response) => {
12842
- return this.processFinishDelivery(_response);
12843
- });
12844
- }
12845
-
12846
- protected processFinishDelivery(response: Response): Promise<BookingDto> {
12847
- const status = response.status;
12848
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12849
- if (status === 200) {
12850
- return response.text().then((_responseText) => {
12851
- let result200: any = null;
12852
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12853
- result200 = BookingDto.fromJS(resultData200);
12854
- return result200;
12855
- });
12856
- } else if (status !== 200 && status !== 204) {
12857
- return response.text().then((_responseText) => {
12858
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12859
- });
12860
- }
12861
- return Promise.resolve<BookingDto>(null as any);
12862
- }
12863
12695
  }
12864
12696
 
12865
12697
  export interface IMoveLocationsClient {
@@ -37390,7 +37222,7 @@ export interface IBookingDto {
37390
37222
  completed?: Date | null;
37391
37223
  }
37392
37224
 
37393
- export type ParcelKindDto = "Forklift" | "General" | "ChipDisposal" | "Garbage";
37225
+ export type ParcelKindDto = "Standard" | "OtherInquiries" | "ChipDisposal" | "Garbage";
37394
37226
 
37395
37227
  export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
37396
37228
 
@@ -37997,90 +37829,6 @@ export interface IBookingDeliveryExceptionDto {
37997
37829
  comment?: string | null;
37998
37830
  }
37999
37831
 
38000
- export class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
38001
- bookingId!: string;
38002
-
38003
- constructor(data?: IBookingUpdateStatusDto) {
38004
- if (data) {
38005
- for (var property in data) {
38006
- if (data.hasOwnProperty(property))
38007
- (<any>this)[property] = (<any>data)[property];
38008
- }
38009
- }
38010
- }
38011
-
38012
- init(_data?: any) {
38013
- if (_data) {
38014
- this.bookingId = _data["bookingId"];
38015
- }
38016
- }
38017
-
38018
- static fromJS(data: any): BookingUpdateStatusDto {
38019
- data = typeof data === 'object' ? data : {};
38020
- let result = new BookingUpdateStatusDto();
38021
- result.init(data);
38022
- return result;
38023
- }
38024
-
38025
- toJSON(data?: any) {
38026
- data = typeof data === 'object' ? data : {};
38027
- data["bookingId"] = this.bookingId;
38028
- return data;
38029
- }
38030
- }
38031
-
38032
- export interface IBookingUpdateStatusDto {
38033
- bookingId: string;
38034
- }
38035
-
38036
- export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
38037
- bookingId!: string;
38038
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
38039
-
38040
- constructor(data?: IBookingDeliveryUpdateDto) {
38041
- if (data) {
38042
- for (var property in data) {
38043
- if (data.hasOwnProperty(property))
38044
- (<any>this)[property] = (<any>data)[property];
38045
- }
38046
- }
38047
- }
38048
-
38049
- init(_data?: any) {
38050
- if (_data) {
38051
- this.bookingId = _data["bookingId"];
38052
- if (Array.isArray(_data["deliveryExceptions"])) {
38053
- this.deliveryExceptions = [] as any;
38054
- for (let item of _data["deliveryExceptions"])
38055
- this.deliveryExceptions!.push(BookingDeliveryExceptionDto.fromJS(item));
38056
- }
38057
- }
38058
- }
38059
-
38060
- static fromJS(data: any): BookingDeliveryUpdateDto {
38061
- data = typeof data === 'object' ? data : {};
38062
- let result = new BookingDeliveryUpdateDto();
38063
- result.init(data);
38064
- return result;
38065
- }
38066
-
38067
- toJSON(data?: any) {
38068
- data = typeof data === 'object' ? data : {};
38069
- data["bookingId"] = this.bookingId;
38070
- if (Array.isArray(this.deliveryExceptions)) {
38071
- data["deliveryExceptions"] = [];
38072
- for (let item of this.deliveryExceptions)
38073
- data["deliveryExceptions"].push(item.toJSON());
38074
- }
38075
- return data;
38076
- }
38077
- }
38078
-
38079
- export interface IBookingDeliveryUpdateDto {
38080
- bookingId: string;
38081
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
38082
- }
38083
-
38084
37832
  export class LocationSuggestionsDto implements ILocationSuggestionsDto {
38085
37833
  items!: LocationSuggestionsItemDto[];
38086
37834
  locationKindFilter?: LocationKindDto[] | null;
@@ -38421,6 +38169,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38421
38169
  palletNumber!: number;
38422
38170
  parcelKind!: ParcelKindDto;
38423
38171
  parcelId!: string;
38172
+ currentTracking?: TrackingEventDto | null;
38424
38173
  trackingEvents!: TrackingEventDto[];
38425
38174
  material?: string | null;
38426
38175
  activeBooking?: boolean | null;
@@ -38443,6 +38192,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38443
38192
  this.palletNumber = _data["palletNumber"];
38444
38193
  this.parcelKind = _data["parcelKind"];
38445
38194
  this.parcelId = _data["parcelId"];
38195
+ this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : <any>undefined;
38446
38196
  if (Array.isArray(_data["trackingEvents"])) {
38447
38197
  this.trackingEvents = [] as any;
38448
38198
  for (let item of _data["trackingEvents"])
@@ -38466,6 +38216,7 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38466
38216
  data["palletNumber"] = this.palletNumber;
38467
38217
  data["parcelKind"] = this.parcelKind;
38468
38218
  data["parcelId"] = this.parcelId;
38219
+ data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : <any>undefined;
38469
38220
  if (Array.isArray(this.trackingEvents)) {
38470
38221
  data["trackingEvents"] = [];
38471
38222
  for (let item of this.trackingEvents)
@@ -38482,6 +38233,7 @@ export interface ITrackingHistoryDto {
38482
38233
  palletNumber: number;
38483
38234
  parcelKind: ParcelKindDto;
38484
38235
  parcelId: string;
38236
+ currentTracking?: TrackingEventDto | null;
38485
38237
  trackingEvents: TrackingEventDto[];
38486
38238
  material?: string | null;
38487
38239
  activeBooking?: boolean | null;
@@ -40019,6 +39771,9 @@ export class NonConformanceDto implements INonConformanceDto {
40019
39771
  closed!: boolean;
40020
39772
  approved!: boolean;
40021
39773
  url?: string | null;
39774
+ rootCause?: NonConformanceAttachmentDto | null;
39775
+ decision?: NonConformanceAttachmentDto | null;
39776
+ correctiveAction?: NonConformanceAttachmentDto | null;
40022
39777
 
40023
39778
  constructor(data?: INonConformanceDto) {
40024
39779
  if (data) {
@@ -40046,6 +39801,9 @@ export class NonConformanceDto implements INonConformanceDto {
40046
39801
  this.closed = _data["closed"];
40047
39802
  this.approved = _data["approved"];
40048
39803
  this.url = _data["url"];
39804
+ this.rootCause = _data["rootCause"] ? NonConformanceAttachmentDto.fromJS(_data["rootCause"]) : <any>undefined;
39805
+ this.decision = _data["decision"] ? NonConformanceAttachmentDto.fromJS(_data["decision"]) : <any>undefined;
39806
+ this.correctiveAction = _data["correctiveAction"] ? NonConformanceAttachmentDto.fromJS(_data["correctiveAction"]) : <any>undefined;
40049
39807
  }
40050
39808
  }
40051
39809
 
@@ -40073,6 +39831,9 @@ export class NonConformanceDto implements INonConformanceDto {
40073
39831
  data["closed"] = this.closed;
40074
39832
  data["approved"] = this.approved;
40075
39833
  data["url"] = this.url;
39834
+ data["rootCause"] = this.rootCause ? this.rootCause.toJSON() : <any>undefined;
39835
+ data["decision"] = this.decision ? this.decision.toJSON() : <any>undefined;
39836
+ data["correctiveAction"] = this.correctiveAction ? this.correctiveAction.toJSON() : <any>undefined;
40076
39837
  return data;
40077
39838
  }
40078
39839
  }
@@ -40093,10 +39854,61 @@ export interface INonConformanceDto {
40093
39854
  closed: boolean;
40094
39855
  approved: boolean;
40095
39856
  url?: string | null;
39857
+ rootCause?: NonConformanceAttachmentDto | null;
39858
+ decision?: NonConformanceAttachmentDto | null;
39859
+ correctiveAction?: NonConformanceAttachmentDto | null;
40096
39860
  }
40097
39861
 
40098
39862
  export type NonConformanceType = 1;
40099
39863
 
39864
+ export class NonConformanceAttachmentDto implements INonConformanceAttachmentDto {
39865
+ title?: string | null;
39866
+ description?: string | null;
39867
+ created?: Date;
39868
+ modified?: Date | null;
39869
+
39870
+ constructor(data?: INonConformanceAttachmentDto) {
39871
+ if (data) {
39872
+ for (var property in data) {
39873
+ if (data.hasOwnProperty(property))
39874
+ (<any>this)[property] = (<any>data)[property];
39875
+ }
39876
+ }
39877
+ }
39878
+
39879
+ init(_data?: any) {
39880
+ if (_data) {
39881
+ this.title = _data["title"];
39882
+ this.description = _data["description"];
39883
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
39884
+ this.modified = _data["modified"] ? new Date(_data["modified"].toString()) : <any>undefined;
39885
+ }
39886
+ }
39887
+
39888
+ static fromJS(data: any): NonConformanceAttachmentDto {
39889
+ data = typeof data === 'object' ? data : {};
39890
+ let result = new NonConformanceAttachmentDto();
39891
+ result.init(data);
39892
+ return result;
39893
+ }
39894
+
39895
+ toJSON(data?: any) {
39896
+ data = typeof data === 'object' ? data : {};
39897
+ data["title"] = this.title;
39898
+ data["description"] = this.description;
39899
+ data["created"] = this.created ? this.created.toISOString() : <any>undefined;
39900
+ data["modified"] = this.modified ? this.modified.toISOString() : <any>undefined;
39901
+ return data;
39902
+ }
39903
+ }
39904
+
39905
+ export interface INonConformanceAttachmentDto {
39906
+ title?: string | null;
39907
+ description?: string | null;
39908
+ created?: Date;
39909
+ modified?: Date | null;
39910
+ }
39911
+
40100
39912
  export class MaterialPickListResultDto implements IMaterialPickListResultDto {
40101
39913
  results!: MaterialPickListResultEntryDto[];
40102
39914