@ignos/api-client 20240902.0.10238 → 20240905.0.10262

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.
@@ -1511,6 +1511,7 @@ export interface IMoveTrackingClient {
1511
1511
  createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
1512
1512
  deleteTrackingHistory(trackingId: string): Promise<void>;
1513
1513
  createLabel(trackingIds: string[]): Promise<DownloadDto>;
1514
+ createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
1514
1515
  }
1515
1516
  export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
1516
1517
  private http;
@@ -1535,6 +1536,8 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
1535
1536
  protected processDeleteTrackingHistory(response: Response): Promise<void>;
1536
1537
  createLabel(trackingIds: string[]): Promise<DownloadDto>;
1537
1538
  protected processCreateLabel(response: Response): Promise<DownloadDto>;
1539
+ createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
1540
+ protected processCreateLabelAndUpdateParcel(response: Response): Promise<DownloadDto>;
1538
1541
  }
1539
1542
  export interface IMesClient {
1540
1543
  getWorkerDetailsForCurrentUser(): Promise<WorkerDto>;
@@ -6957,7 +6960,7 @@ export interface IMarkdownNotesDto {
6957
6960
  }
6958
6961
  export declare class SaveMarkdownNotes implements ISaveMarkdownNotes {
6959
6962
  id: string;
6960
- markdown: string;
6963
+ markdown?: string;
6961
6964
  constructor(data?: ISaveMarkdownNotes);
6962
6965
  init(_data?: any): void;
6963
6966
  static fromJS(data: any): SaveMarkdownNotes;
@@ -6965,7 +6968,7 @@ export declare class SaveMarkdownNotes implements ISaveMarkdownNotes {
6965
6968
  }
6966
6969
  export interface ISaveMarkdownNotes {
6967
6970
  id: string;
6968
- markdown: string;
6971
+ markdown?: string;
6969
6972
  }
6970
6973
  export declare class CncToolTypeDto implements ICncToolTypeDto {
6971
6974
  id: string;
@@ -8073,8 +8076,8 @@ export interface IBookingTransportRequestDto {
8073
8076
  toLocationId: string;
8074
8077
  }
8075
8078
  export declare class BookingItemRequestDto implements IBookingItemRequestDto {
8076
- parcelId?: string | null;
8077
- trackingId?: string | null;
8079
+ parcelId: string;
8080
+ trackingId: string;
8078
8081
  comment?: string | null;
8079
8082
  constructor(data?: IBookingItemRequestDto);
8080
8083
  init(_data?: any): void;
@@ -8082,8 +8085,8 @@ export declare class BookingItemRequestDto implements IBookingItemRequestDto {
8082
8085
  toJSON(data?: any): any;
8083
8086
  }
8084
8087
  export interface IBookingItemRequestDto {
8085
- parcelId?: string | null;
8086
- trackingId?: string | null;
8088
+ parcelId: string;
8089
+ trackingId: string;
8087
8090
  comment?: string | null;
8088
8091
  }
8089
8092
  export declare class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
@@ -8345,6 +8348,30 @@ export declare class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateD
8345
8348
  export interface ITrackingHistoryUpdateDto {
8346
8349
  parcelId: string;
8347
8350
  }
8351
+ export declare class LabelUpdateListDto implements ILabelUpdateListDto {
8352
+ labelUpdates: LabelUpdateDto[];
8353
+ constructor(data?: ILabelUpdateListDto);
8354
+ init(_data?: any): void;
8355
+ static fromJS(data: any): LabelUpdateListDto;
8356
+ toJSON(data?: any): any;
8357
+ }
8358
+ export interface ILabelUpdateListDto {
8359
+ labelUpdates: LabelUpdateDto[];
8360
+ }
8361
+ export declare class LabelUpdateDto implements ILabelUpdateDto {
8362
+ parcelId: string;
8363
+ trackingId?: string | null;
8364
+ comment?: string | null;
8365
+ constructor(data?: ILabelUpdateDto);
8366
+ init(_data?: any): void;
8367
+ static fromJS(data: any): LabelUpdateDto;
8368
+ toJSON(data?: any): any;
8369
+ }
8370
+ export interface ILabelUpdateDto {
8371
+ parcelId: string;
8372
+ trackingId?: string | null;
8373
+ comment?: string | null;
8374
+ }
8348
8375
  export declare class WorkerDto implements IWorkerDto {
8349
8376
  personnelNumber?: string | null;
8350
8377
  badgeId?: string | null;
@@ -8917,7 +8944,6 @@ export declare class GenerateProductionOrderPdf implements IGenerateProductionOr
8917
8944
  type: ProductionOrderPdfType;
8918
8945
  includeOperations: boolean;
8919
8946
  includeDrawing: boolean;
8920
- includeOperationText: boolean;
8921
8947
  constructor(data?: IGenerateProductionOrderPdf);
8922
8948
  init(_data?: any): void;
8923
8949
  static fromJS(data: any): GenerateProductionOrderPdf;
@@ -8928,7 +8954,6 @@ export interface IGenerateProductionOrderPdf {
8928
8954
  type: ProductionOrderPdfType;
8929
8955
  includeOperations: boolean;
8930
8956
  includeDrawing: boolean;
8931
- includeOperationText: boolean;
8932
8957
  }
8933
8958
  export type ProductionOrderPdfType = "Rich" | "Compact";
8934
8959
  export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
@@ -12673,6 +12673,46 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12673
12673
  }
12674
12674
  return Promise.resolve(null);
12675
12675
  }
12676
+ createLabelAndUpdateParcel(labelUpdate) {
12677
+ let url_ = this.baseUrl + "/move/tracking/labelupdate";
12678
+ url_ = url_.replace(/[?&]$/, "");
12679
+ const content_ = JSON.stringify(labelUpdate);
12680
+ let options_ = {
12681
+ body: content_,
12682
+ method: "POST",
12683
+ headers: {
12684
+ "Content-Type": "application/json",
12685
+ "Accept": "application/json"
12686
+ }
12687
+ };
12688
+ return this.transformOptions(options_).then(transformedOptions_ => {
12689
+ return this.http.fetch(url_, transformedOptions_);
12690
+ }).then((_response) => {
12691
+ return this.processCreateLabelAndUpdateParcel(_response);
12692
+ });
12693
+ }
12694
+ processCreateLabelAndUpdateParcel(response) {
12695
+ const status = response.status;
12696
+ let _headers = {};
12697
+ if (response.headers && response.headers.forEach) {
12698
+ response.headers.forEach((v, k) => _headers[k] = v);
12699
+ }
12700
+ ;
12701
+ if (status === 200) {
12702
+ return response.text().then((_responseText) => {
12703
+ let result200 = null;
12704
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12705
+ result200 = DownloadDto.fromJS(resultData200);
12706
+ return result200;
12707
+ });
12708
+ }
12709
+ else if (status !== 200 && status !== 204) {
12710
+ return response.text().then((_responseText) => {
12711
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12712
+ });
12713
+ }
12714
+ return Promise.resolve(null);
12715
+ }
12676
12716
  }
12677
12717
  export class MesClient extends AuthorizedApiBase {
12678
12718
  constructor(configuration, baseUrl, http) {
@@ -31587,6 +31627,73 @@ export class TrackingHistoryUpdateDto {
31587
31627
  return data;
31588
31628
  }
31589
31629
  }
31630
+ export class LabelUpdateListDto {
31631
+ constructor(data) {
31632
+ if (data) {
31633
+ for (var property in data) {
31634
+ if (data.hasOwnProperty(property))
31635
+ this[property] = data[property];
31636
+ }
31637
+ }
31638
+ if (!data) {
31639
+ this.labelUpdates = [];
31640
+ }
31641
+ }
31642
+ init(_data) {
31643
+ if (_data) {
31644
+ if (Array.isArray(_data["labelUpdates"])) {
31645
+ this.labelUpdates = [];
31646
+ for (let item of _data["labelUpdates"])
31647
+ this.labelUpdates.push(LabelUpdateDto.fromJS(item));
31648
+ }
31649
+ }
31650
+ }
31651
+ static fromJS(data) {
31652
+ data = typeof data === 'object' ? data : {};
31653
+ let result = new LabelUpdateListDto();
31654
+ result.init(data);
31655
+ return result;
31656
+ }
31657
+ toJSON(data) {
31658
+ data = typeof data === 'object' ? data : {};
31659
+ if (Array.isArray(this.labelUpdates)) {
31660
+ data["labelUpdates"] = [];
31661
+ for (let item of this.labelUpdates)
31662
+ data["labelUpdates"].push(item.toJSON());
31663
+ }
31664
+ return data;
31665
+ }
31666
+ }
31667
+ export class LabelUpdateDto {
31668
+ constructor(data) {
31669
+ if (data) {
31670
+ for (var property in data) {
31671
+ if (data.hasOwnProperty(property))
31672
+ this[property] = data[property];
31673
+ }
31674
+ }
31675
+ }
31676
+ init(_data) {
31677
+ if (_data) {
31678
+ this.parcelId = _data["parcelId"];
31679
+ this.trackingId = _data["trackingId"];
31680
+ this.comment = _data["comment"];
31681
+ }
31682
+ }
31683
+ static fromJS(data) {
31684
+ data = typeof data === 'object' ? data : {};
31685
+ let result = new LabelUpdateDto();
31686
+ result.init(data);
31687
+ return result;
31688
+ }
31689
+ toJSON(data) {
31690
+ data = typeof data === 'object' ? data : {};
31691
+ data["parcelId"] = this.parcelId;
31692
+ data["trackingId"] = this.trackingId;
31693
+ data["comment"] = this.comment;
31694
+ return data;
31695
+ }
31696
+ }
31590
31697
  export class WorkerDto {
31591
31698
  constructor(data) {
31592
31699
  if (data) {
@@ -32635,7 +32742,6 @@ export class GenerateProductionOrderPdf {
32635
32742
  this.type = _data["type"];
32636
32743
  this.includeOperations = _data["includeOperations"];
32637
32744
  this.includeDrawing = _data["includeDrawing"];
32638
- this.includeOperationText = _data["includeOperationText"];
32639
32745
  }
32640
32746
  }
32641
32747
  static fromJS(data) {
@@ -32654,7 +32760,6 @@ export class GenerateProductionOrderPdf {
32654
32760
  data["type"] = this.type;
32655
32761
  data["includeOperations"] = this.includeOperations;
32656
32762
  data["includeDrawing"] = this.includeDrawing;
32657
- data["includeOperationText"] = this.includeOperationText;
32658
32763
  return data;
32659
32764
  }
32660
32765
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240902.0.10238",
3
+ "version": "20240905.0.10262",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13195,6 +13195,8 @@ export interface IMoveTrackingClient {
13195
13195
  deleteTrackingHistory(trackingId: string): Promise<void>;
13196
13196
 
13197
13197
  createLabel(trackingIds: string[]): Promise<DownloadDto>;
13198
+
13199
+ createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
13198
13200
  }
13199
13201
 
13200
13202
  export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
@@ -13540,6 +13542,46 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13540
13542
  }
13541
13543
  return Promise.resolve<DownloadDto>(null as any);
13542
13544
  }
13545
+
13546
+ createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto> {
13547
+ let url_ = this.baseUrl + "/move/tracking/labelupdate";
13548
+ url_ = url_.replace(/[?&]$/, "");
13549
+
13550
+ const content_ = JSON.stringify(labelUpdate);
13551
+
13552
+ let options_: RequestInit = {
13553
+ body: content_,
13554
+ method: "POST",
13555
+ headers: {
13556
+ "Content-Type": "application/json",
13557
+ "Accept": "application/json"
13558
+ }
13559
+ };
13560
+
13561
+ return this.transformOptions(options_).then(transformedOptions_ => {
13562
+ return this.http.fetch(url_, transformedOptions_);
13563
+ }).then((_response: Response) => {
13564
+ return this.processCreateLabelAndUpdateParcel(_response);
13565
+ });
13566
+ }
13567
+
13568
+ protected processCreateLabelAndUpdateParcel(response: Response): Promise<DownloadDto> {
13569
+ const status = response.status;
13570
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13571
+ if (status === 200) {
13572
+ return response.text().then((_responseText) => {
13573
+ let result200: any = null;
13574
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13575
+ result200 = DownloadDto.fromJS(resultData200);
13576
+ return result200;
13577
+ });
13578
+ } else if (status !== 200 && status !== 204) {
13579
+ return response.text().then((_responseText) => {
13580
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13581
+ });
13582
+ }
13583
+ return Promise.resolve<DownloadDto>(null as any);
13584
+ }
13543
13585
  }
13544
13586
 
13545
13587
  export interface IMesClient {
@@ -34737,7 +34779,7 @@ export interface IMarkdownNotesDto {
34737
34779
 
34738
34780
  export class SaveMarkdownNotes implements ISaveMarkdownNotes {
34739
34781
  id!: string;
34740
- markdown!: string;
34782
+ markdown?: string;
34741
34783
 
34742
34784
  constructor(data?: ISaveMarkdownNotes) {
34743
34785
  if (data) {
@@ -34772,7 +34814,7 @@ export class SaveMarkdownNotes implements ISaveMarkdownNotes {
34772
34814
 
34773
34815
  export interface ISaveMarkdownNotes {
34774
34816
  id: string;
34775
- markdown: string;
34817
+ markdown?: string;
34776
34818
  }
34777
34819
 
34778
34820
  export class CncToolTypeDto implements ICncToolTypeDto {
@@ -37994,8 +38036,8 @@ export interface IBookingTransportRequestDto {
37994
38036
  }
37995
38037
 
37996
38038
  export class BookingItemRequestDto implements IBookingItemRequestDto {
37997
- parcelId?: string | null;
37998
- trackingId?: string | null;
38039
+ parcelId!: string;
38040
+ trackingId!: string;
37999
38041
  comment?: string | null;
38000
38042
 
38001
38043
  constructor(data?: IBookingItemRequestDto) {
@@ -38032,8 +38074,8 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
38032
38074
  }
38033
38075
 
38034
38076
  export interface IBookingItemRequestDto {
38035
- parcelId?: string | null;
38036
- trackingId?: string | null;
38077
+ parcelId: string;
38078
+ trackingId: string;
38037
38079
  comment?: string | null;
38038
38080
  }
38039
38081
 
@@ -38933,6 +38975,97 @@ export interface ITrackingHistoryUpdateDto {
38933
38975
  parcelId: string;
38934
38976
  }
38935
38977
 
38978
+ export class LabelUpdateListDto implements ILabelUpdateListDto {
38979
+ labelUpdates!: LabelUpdateDto[];
38980
+
38981
+ constructor(data?: ILabelUpdateListDto) {
38982
+ if (data) {
38983
+ for (var property in data) {
38984
+ if (data.hasOwnProperty(property))
38985
+ (<any>this)[property] = (<any>data)[property];
38986
+ }
38987
+ }
38988
+ if (!data) {
38989
+ this.labelUpdates = [];
38990
+ }
38991
+ }
38992
+
38993
+ init(_data?: any) {
38994
+ if (_data) {
38995
+ if (Array.isArray(_data["labelUpdates"])) {
38996
+ this.labelUpdates = [] as any;
38997
+ for (let item of _data["labelUpdates"])
38998
+ this.labelUpdates!.push(LabelUpdateDto.fromJS(item));
38999
+ }
39000
+ }
39001
+ }
39002
+
39003
+ static fromJS(data: any): LabelUpdateListDto {
39004
+ data = typeof data === 'object' ? data : {};
39005
+ let result = new LabelUpdateListDto();
39006
+ result.init(data);
39007
+ return result;
39008
+ }
39009
+
39010
+ toJSON(data?: any) {
39011
+ data = typeof data === 'object' ? data : {};
39012
+ if (Array.isArray(this.labelUpdates)) {
39013
+ data["labelUpdates"] = [];
39014
+ for (let item of this.labelUpdates)
39015
+ data["labelUpdates"].push(item.toJSON());
39016
+ }
39017
+ return data;
39018
+ }
39019
+ }
39020
+
39021
+ export interface ILabelUpdateListDto {
39022
+ labelUpdates: LabelUpdateDto[];
39023
+ }
39024
+
39025
+ export class LabelUpdateDto implements ILabelUpdateDto {
39026
+ parcelId!: string;
39027
+ trackingId?: string | null;
39028
+ comment?: string | null;
39029
+
39030
+ constructor(data?: ILabelUpdateDto) {
39031
+ if (data) {
39032
+ for (var property in data) {
39033
+ if (data.hasOwnProperty(property))
39034
+ (<any>this)[property] = (<any>data)[property];
39035
+ }
39036
+ }
39037
+ }
39038
+
39039
+ init(_data?: any) {
39040
+ if (_data) {
39041
+ this.parcelId = _data["parcelId"];
39042
+ this.trackingId = _data["trackingId"];
39043
+ this.comment = _data["comment"];
39044
+ }
39045
+ }
39046
+
39047
+ static fromJS(data: any): LabelUpdateDto {
39048
+ data = typeof data === 'object' ? data : {};
39049
+ let result = new LabelUpdateDto();
39050
+ result.init(data);
39051
+ return result;
39052
+ }
39053
+
39054
+ toJSON(data?: any) {
39055
+ data = typeof data === 'object' ? data : {};
39056
+ data["parcelId"] = this.parcelId;
39057
+ data["trackingId"] = this.trackingId;
39058
+ data["comment"] = this.comment;
39059
+ return data;
39060
+ }
39061
+ }
39062
+
39063
+ export interface ILabelUpdateDto {
39064
+ parcelId: string;
39065
+ trackingId?: string | null;
39066
+ comment?: string | null;
39067
+ }
39068
+
38936
39069
  export class WorkerDto implements IWorkerDto {
38937
39070
  personnelNumber?: string | null;
38938
39071
  badgeId?: string | null;
@@ -40534,7 +40667,6 @@ export class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
40534
40667
  type!: ProductionOrderPdfType;
40535
40668
  includeOperations!: boolean;
40536
40669
  includeDrawing!: boolean;
40537
- includeOperationText!: boolean;
40538
40670
 
40539
40671
  constructor(data?: IGenerateProductionOrderPdf) {
40540
40672
  if (data) {
@@ -40558,7 +40690,6 @@ export class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
40558
40690
  this.type = _data["type"];
40559
40691
  this.includeOperations = _data["includeOperations"];
40560
40692
  this.includeDrawing = _data["includeDrawing"];
40561
- this.includeOperationText = _data["includeOperationText"];
40562
40693
  }
40563
40694
  }
40564
40695
 
@@ -40579,7 +40710,6 @@ export class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
40579
40710
  data["type"] = this.type;
40580
40711
  data["includeOperations"] = this.includeOperations;
40581
40712
  data["includeDrawing"] = this.includeDrawing;
40582
- data["includeOperationText"] = this.includeOperationText;
40583
40713
  return data;
40584
40714
  }
40585
40715
  }
@@ -40589,7 +40719,6 @@ export interface IGenerateProductionOrderPdf {
40589
40719
  type: ProductionOrderPdfType;
40590
40720
  includeOperations: boolean;
40591
40721
  includeDrawing: boolean;
40592
- includeOperationText: boolean;
40593
40722
  }
40594
40723
 
40595
40724
  export type ProductionOrderPdfType = "Rich" | "Compact";