@ignos/api-client 20240911.0.10316 → 20240911.0.10321

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.
@@ -1542,7 +1542,6 @@ export interface IMoveTrackingClient {
1542
1542
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
1543
1543
  createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
1544
1544
  deleteTrackingHistory(trackingId: string): Promise<void>;
1545
- createLabel(trackingIds: string[]): Promise<DownloadDto>;
1546
1545
  createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
1547
1546
  }
1548
1547
  export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
@@ -1568,8 +1567,6 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
1568
1567
  protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]>;
1569
1568
  deleteTrackingHistory(trackingId: string): Promise<void>;
1570
1569
  protected processDeleteTrackingHistory(response: Response): Promise<void>;
1571
- createLabel(trackingIds: string[]): Promise<DownloadDto>;
1572
- protected processCreateLabel(response: Response): Promise<DownloadDto>;
1573
1570
  createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
1574
1571
  protected processCreateLabelAndUpdateParcel(response: Response): Promise<DownloadDto>;
1575
1572
  }
@@ -1645,7 +1642,6 @@ export interface IMesProductionOrderClient {
1645
1642
  getProductionOrderOpenNonConformances(id: string, onlyOpen: boolean | undefined): Promise<NonConformanceDto[]>;
1646
1643
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
1647
1644
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
1648
- getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
1649
1645
  getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
1650
1646
  }
1651
1647
  export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
@@ -1669,8 +1665,6 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
1669
1665
  protected processPostMaterialPickList(response: Response): Promise<MaterialPickListResultDto>;
1670
1666
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
1671
1667
  protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
1672
- getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
1673
- protected processGetPrintableProductionOrders(response: Response): Promise<DownloadDto>;
1674
1668
  getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
1675
1669
  protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
1676
1670
  }
@@ -9026,23 +9020,6 @@ export interface IProductionOrderOperationActivityDto {
9026
9020
  producedQuantity?: number | null;
9027
9021
  scrappedQuantity?: number | null;
9028
9022
  }
9029
- export declare class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
9030
- productionOrderNumbers: string[];
9031
- type: ProductionOrderPdfType;
9032
- includeOperations: boolean;
9033
- includeDrawing: boolean;
9034
- constructor(data?: IGenerateProductionOrderPdf);
9035
- init(_data?: any): void;
9036
- static fromJS(data: any): GenerateProductionOrderPdf;
9037
- toJSON(data?: any): any;
9038
- }
9039
- export interface IGenerateProductionOrderPdf {
9040
- productionOrderNumbers: string[];
9041
- type: ProductionOrderPdfType;
9042
- includeOperations: boolean;
9043
- includeDrawing: boolean;
9044
- }
9045
- export type ProductionOrderPdfType = "Rich" | "Compact";
9046
9023
  export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
9047
9024
  labelIds: LabelId[];
9048
9025
  constructor(data?: IGeneratePrintableLabel);
@@ -12877,46 +12877,6 @@ export class MoveTrackingClient extends AuthorizedApiBase {
12877
12877
  }
12878
12878
  return Promise.resolve(null);
12879
12879
  }
12880
- createLabel(trackingIds) {
12881
- let url_ = this.baseUrl + "/move/tracking/label";
12882
- url_ = url_.replace(/[?&]$/, "");
12883
- const content_ = JSON.stringify(trackingIds);
12884
- let options_ = {
12885
- body: content_,
12886
- method: "POST",
12887
- headers: {
12888
- "Content-Type": "application/json",
12889
- "Accept": "application/json"
12890
- }
12891
- };
12892
- return this.transformOptions(options_).then(transformedOptions_ => {
12893
- return this.http.fetch(url_, transformedOptions_);
12894
- }).then((_response) => {
12895
- return this.processCreateLabel(_response);
12896
- });
12897
- }
12898
- processCreateLabel(response) {
12899
- const status = response.status;
12900
- let _headers = {};
12901
- if (response.headers && response.headers.forEach) {
12902
- response.headers.forEach((v, k) => _headers[k] = v);
12903
- }
12904
- ;
12905
- if (status === 200) {
12906
- return response.text().then((_responseText) => {
12907
- let result200 = null;
12908
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12909
- result200 = DownloadDto.fromJS(resultData200);
12910
- return result200;
12911
- });
12912
- }
12913
- else if (status !== 200 && status !== 204) {
12914
- return response.text().then((_responseText) => {
12915
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12916
- });
12917
- }
12918
- return Promise.resolve(null);
12919
- }
12920
12880
  createLabelAndUpdateParcel(labelUpdate) {
12921
12881
  let url_ = this.baseUrl + "/move/tracking/labelupdate";
12922
12882
  url_ = url_.replace(/[?&]$/, "");
@@ -13643,46 +13603,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
13643
13603
  }
13644
13604
  return Promise.resolve(null);
13645
13605
  }
13646
- getPrintableProductionOrders(request) {
13647
- let url_ = this.baseUrl + "/mes/productionorders/printable";
13648
- url_ = url_.replace(/[?&]$/, "");
13649
- const content_ = JSON.stringify(request);
13650
- let options_ = {
13651
- body: content_,
13652
- method: "POST",
13653
- headers: {
13654
- "Content-Type": "application/json",
13655
- "Accept": "application/json"
13656
- }
13657
- };
13658
- return this.transformOptions(options_).then(transformedOptions_ => {
13659
- return this.http.fetch(url_, transformedOptions_);
13660
- }).then((_response) => {
13661
- return this.processGetPrintableProductionOrders(_response);
13662
- });
13663
- }
13664
- processGetPrintableProductionOrders(response) {
13665
- const status = response.status;
13666
- let _headers = {};
13667
- if (response.headers && response.headers.forEach) {
13668
- response.headers.forEach((v, k) => _headers[k] = v);
13669
- }
13670
- ;
13671
- if (status === 200) {
13672
- return response.text().then((_responseText) => {
13673
- let result200 = null;
13674
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13675
- result200 = DownloadDto.fromJS(resultData200);
13676
- return result200;
13677
- });
13678
- }
13679
- else if (status !== 200 && status !== 204) {
13680
- return response.text().then((_responseText) => {
13681
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13682
- });
13683
- }
13684
- return Promise.resolve(null);
13685
- }
13686
13606
  getPrintableLabels(request) {
13687
13607
  let url_ = this.baseUrl + "/mes/labels/printable";
13688
13608
  url_ = url_.replace(/[?&]$/, "");
@@ -33108,49 +33028,6 @@ export class ProductionOrderOperationActivityDto {
33108
33028
  return data;
33109
33029
  }
33110
33030
  }
33111
- export class GenerateProductionOrderPdf {
33112
- constructor(data) {
33113
- if (data) {
33114
- for (var property in data) {
33115
- if (data.hasOwnProperty(property))
33116
- this[property] = data[property];
33117
- }
33118
- }
33119
- if (!data) {
33120
- this.productionOrderNumbers = [];
33121
- }
33122
- }
33123
- init(_data) {
33124
- if (_data) {
33125
- if (Array.isArray(_data["productionOrderNumbers"])) {
33126
- this.productionOrderNumbers = [];
33127
- for (let item of _data["productionOrderNumbers"])
33128
- this.productionOrderNumbers.push(item);
33129
- }
33130
- this.type = _data["type"];
33131
- this.includeOperations = _data["includeOperations"];
33132
- this.includeDrawing = _data["includeDrawing"];
33133
- }
33134
- }
33135
- static fromJS(data) {
33136
- data = typeof data === 'object' ? data : {};
33137
- let result = new GenerateProductionOrderPdf();
33138
- result.init(data);
33139
- return result;
33140
- }
33141
- toJSON(data) {
33142
- data = typeof data === 'object' ? data : {};
33143
- if (Array.isArray(this.productionOrderNumbers)) {
33144
- data["productionOrderNumbers"] = [];
33145
- for (let item of this.productionOrderNumbers)
33146
- data["productionOrderNumbers"].push(item);
33147
- }
33148
- data["type"] = this.type;
33149
- data["includeOperations"] = this.includeOperations;
33150
- data["includeDrawing"] = this.includeDrawing;
33151
- return data;
33152
- }
33153
- }
33154
33031
  export class GeneratePrintableLabel {
33155
33032
  constructor(data) {
33156
33033
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240911.0.10316",
3
+ "version": "20240911.0.10321",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13417,8 +13417,6 @@ export interface IMoveTrackingClient {
13417
13417
 
13418
13418
  deleteTrackingHistory(trackingId: string): Promise<void>;
13419
13419
 
13420
- createLabel(trackingIds: string[]): Promise<DownloadDto>;
13421
-
13422
13420
  createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
13423
13421
  }
13424
13422
 
@@ -13766,46 +13764,6 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13766
13764
  return Promise.resolve<void>(null as any);
13767
13765
  }
13768
13766
 
13769
- createLabel(trackingIds: string[]): Promise<DownloadDto> {
13770
- let url_ = this.baseUrl + "/move/tracking/label";
13771
- url_ = url_.replace(/[?&]$/, "");
13772
-
13773
- const content_ = JSON.stringify(trackingIds);
13774
-
13775
- let options_: RequestInit = {
13776
- body: content_,
13777
- method: "POST",
13778
- headers: {
13779
- "Content-Type": "application/json",
13780
- "Accept": "application/json"
13781
- }
13782
- };
13783
-
13784
- return this.transformOptions(options_).then(transformedOptions_ => {
13785
- return this.http.fetch(url_, transformedOptions_);
13786
- }).then((_response: Response) => {
13787
- return this.processCreateLabel(_response);
13788
- });
13789
- }
13790
-
13791
- protected processCreateLabel(response: Response): Promise<DownloadDto> {
13792
- const status = response.status;
13793
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13794
- if (status === 200) {
13795
- return response.text().then((_responseText) => {
13796
- let result200: any = null;
13797
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13798
- result200 = DownloadDto.fromJS(resultData200);
13799
- return result200;
13800
- });
13801
- } else if (status !== 200 && status !== 204) {
13802
- return response.text().then((_responseText) => {
13803
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13804
- });
13805
- }
13806
- return Promise.resolve<DownloadDto>(null as any);
13807
- }
13808
-
13809
13767
  createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto> {
13810
13768
  let url_ = this.baseUrl + "/move/tracking/labelupdate";
13811
13769
  url_ = url_.replace(/[?&]$/, "");
@@ -14265,8 +14223,6 @@ export interface IMesProductionOrderClient {
14265
14223
 
14266
14224
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
14267
14225
 
14268
- getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
14269
-
14270
14226
  getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
14271
14227
  }
14272
14228
 
@@ -14590,46 +14546,6 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
14590
14546
  return Promise.resolve<ProductionOrderOperationActivityDto[]>(null as any);
14591
14547
  }
14592
14548
 
14593
- getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto> {
14594
- let url_ = this.baseUrl + "/mes/productionorders/printable";
14595
- url_ = url_.replace(/[?&]$/, "");
14596
-
14597
- const content_ = JSON.stringify(request);
14598
-
14599
- let options_: RequestInit = {
14600
- body: content_,
14601
- method: "POST",
14602
- headers: {
14603
- "Content-Type": "application/json",
14604
- "Accept": "application/json"
14605
- }
14606
- };
14607
-
14608
- return this.transformOptions(options_).then(transformedOptions_ => {
14609
- return this.http.fetch(url_, transformedOptions_);
14610
- }).then((_response: Response) => {
14611
- return this.processGetPrintableProductionOrders(_response);
14612
- });
14613
- }
14614
-
14615
- protected processGetPrintableProductionOrders(response: Response): Promise<DownloadDto> {
14616
- const status = response.status;
14617
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
14618
- if (status === 200) {
14619
- return response.text().then((_responseText) => {
14620
- let result200: any = null;
14621
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14622
- result200 = DownloadDto.fromJS(resultData200);
14623
- return result200;
14624
- });
14625
- } else if (status !== 200 && status !== 204) {
14626
- return response.text().then((_responseText) => {
14627
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14628
- });
14629
- }
14630
- return Promise.resolve<DownloadDto>(null as any);
14631
- }
14632
-
14633
14549
  getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
14634
14550
  let url_ = this.baseUrl + "/mes/labels/printable";
14635
14551
  url_ = url_.replace(/[?&]$/, "");
@@ -41121,67 +41037,6 @@ export interface IProductionOrderOperationActivityDto {
41121
41037
  scrappedQuantity?: number | null;
41122
41038
  }
41123
41039
 
41124
- export class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
41125
- productionOrderNumbers!: string[];
41126
- type!: ProductionOrderPdfType;
41127
- includeOperations!: boolean;
41128
- includeDrawing!: boolean;
41129
-
41130
- constructor(data?: IGenerateProductionOrderPdf) {
41131
- if (data) {
41132
- for (var property in data) {
41133
- if (data.hasOwnProperty(property))
41134
- (<any>this)[property] = (<any>data)[property];
41135
- }
41136
- }
41137
- if (!data) {
41138
- this.productionOrderNumbers = [];
41139
- }
41140
- }
41141
-
41142
- init(_data?: any) {
41143
- if (_data) {
41144
- if (Array.isArray(_data["productionOrderNumbers"])) {
41145
- this.productionOrderNumbers = [] as any;
41146
- for (let item of _data["productionOrderNumbers"])
41147
- this.productionOrderNumbers!.push(item);
41148
- }
41149
- this.type = _data["type"];
41150
- this.includeOperations = _data["includeOperations"];
41151
- this.includeDrawing = _data["includeDrawing"];
41152
- }
41153
- }
41154
-
41155
- static fromJS(data: any): GenerateProductionOrderPdf {
41156
- data = typeof data === 'object' ? data : {};
41157
- let result = new GenerateProductionOrderPdf();
41158
- result.init(data);
41159
- return result;
41160
- }
41161
-
41162
- toJSON(data?: any) {
41163
- data = typeof data === 'object' ? data : {};
41164
- if (Array.isArray(this.productionOrderNumbers)) {
41165
- data["productionOrderNumbers"] = [];
41166
- for (let item of this.productionOrderNumbers)
41167
- data["productionOrderNumbers"].push(item);
41168
- }
41169
- data["type"] = this.type;
41170
- data["includeOperations"] = this.includeOperations;
41171
- data["includeDrawing"] = this.includeDrawing;
41172
- return data;
41173
- }
41174
- }
41175
-
41176
- export interface IGenerateProductionOrderPdf {
41177
- productionOrderNumbers: string[];
41178
- type: ProductionOrderPdfType;
41179
- includeOperations: boolean;
41180
- includeDrawing: boolean;
41181
- }
41182
-
41183
- export type ProductionOrderPdfType = "Rich" | "Compact";
41184
-
41185
41040
  export class GeneratePrintableLabel implements IGeneratePrintableLabel {
41186
41041
  labelIds!: LabelId[];
41187
41042