@ignos/api-client 20240911.0.10316 → 20240913.0.10360

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
  }
@@ -3344,6 +3338,7 @@ export declare class MrbInstanceDto implements IMrbInstanceDto {
3344
3338
  mrbExportJobId?: string | null;
3345
3339
  status?: MrbStatusDto | null;
3346
3340
  latestRevision?: MrbInstanceRevisionDto | null;
3341
+ part?: MrbPartDto | null;
3347
3342
  constructor(data?: IMrbInstanceDto);
3348
3343
  init(_data?: any): void;
3349
3344
  static fromJS(data: any): MrbInstanceDto;
@@ -3364,6 +3359,7 @@ export interface IMrbInstanceDto {
3364
3359
  mrbExportJobId?: string | null;
3365
3360
  status?: MrbStatusDto | null;
3366
3361
  latestRevision?: MrbInstanceRevisionDto | null;
3362
+ part?: MrbPartDto | null;
3367
3363
  }
3368
3364
  export declare class CustomerOrderLineTraceItemDto implements ICustomerOrderLineTraceItemDto {
3369
3365
  workOrder: string;
@@ -3437,6 +3433,18 @@ export interface IMrbSentInfoDto {
3437
3433
  sentTime: Date;
3438
3434
  sentBy: UserDto;
3439
3435
  }
3436
+ export declare class MrbPartDto implements IMrbPartDto {
3437
+ partNumber?: string | null;
3438
+ partName?: string | null;
3439
+ constructor(data?: IMrbPartDto);
3440
+ init(_data?: any): void;
3441
+ static fromJS(data: any): MrbPartDto;
3442
+ toJSON(data?: any): any;
3443
+ }
3444
+ export interface IMrbPartDto {
3445
+ partNumber?: string | null;
3446
+ partName?: string | null;
3447
+ }
3440
3448
  export declare class MrbInstanceJobDto implements IMrbInstanceJobDto {
3441
3449
  jobId: string;
3442
3450
  mrbInstanceId: string;
@@ -9026,23 +9034,6 @@ export interface IProductionOrderOperationActivityDto {
9026
9034
  producedQuantity?: number | null;
9027
9035
  scrappedQuantity?: number | null;
9028
9036
  }
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
9037
  export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
9047
9038
  labelIds: LabelId[];
9048
9039
  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(/[?&]$/, "");
@@ -21713,6 +21633,7 @@ export class MrbInstanceDto {
21713
21633
  this.mrbExportJobId = _data["mrbExportJobId"];
21714
21634
  this.status = _data["status"] ? MrbStatusDto.fromJS(_data["status"]) : undefined;
21715
21635
  this.latestRevision = _data["latestRevision"] ? MrbInstanceRevisionDto.fromJS(_data["latestRevision"]) : undefined;
21636
+ this.part = _data["part"] ? MrbPartDto.fromJS(_data["part"]) : undefined;
21716
21637
  }
21717
21638
  }
21718
21639
  static fromJS(data) {
@@ -21741,6 +21662,7 @@ export class MrbInstanceDto {
21741
21662
  data["mrbExportJobId"] = this.mrbExportJobId;
21742
21663
  data["status"] = this.status ? this.status.toJSON() : undefined;
21743
21664
  data["latestRevision"] = this.latestRevision ? this.latestRevision.toJSON() : undefined;
21665
+ data["part"] = this.part ? this.part.toJSON() : undefined;
21744
21666
  return data;
21745
21667
  }
21746
21668
  }
@@ -21881,6 +21803,34 @@ export class MrbSentInfoDto {
21881
21803
  return data;
21882
21804
  }
21883
21805
  }
21806
+ export class MrbPartDto {
21807
+ constructor(data) {
21808
+ if (data) {
21809
+ for (var property in data) {
21810
+ if (data.hasOwnProperty(property))
21811
+ this[property] = data[property];
21812
+ }
21813
+ }
21814
+ }
21815
+ init(_data) {
21816
+ if (_data) {
21817
+ this.partNumber = _data["partNumber"];
21818
+ this.partName = _data["partName"];
21819
+ }
21820
+ }
21821
+ static fromJS(data) {
21822
+ data = typeof data === 'object' ? data : {};
21823
+ let result = new MrbPartDto();
21824
+ result.init(data);
21825
+ return result;
21826
+ }
21827
+ toJSON(data) {
21828
+ data = typeof data === 'object' ? data : {};
21829
+ data["partNumber"] = this.partNumber;
21830
+ data["partName"] = this.partName;
21831
+ return data;
21832
+ }
21833
+ }
21884
21834
  export class MrbInstanceJobDto {
21885
21835
  constructor(data) {
21886
21836
  if (data) {
@@ -33108,49 +33058,6 @@ export class ProductionOrderOperationActivityDto {
33108
33058
  return data;
33109
33059
  }
33110
33060
  }
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
33061
  export class GeneratePrintableLabel {
33155
33062
  constructor(data) {
33156
33063
  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": "20240913.0.10360",
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(/[?&]$/, "");
@@ -23979,6 +23895,7 @@ export class MrbInstanceDto implements IMrbInstanceDto {
23979
23895
  mrbExportJobId?: string | null;
23980
23896
  status?: MrbStatusDto | null;
23981
23897
  latestRevision?: MrbInstanceRevisionDto | null;
23898
+ part?: MrbPartDto | null;
23982
23899
 
23983
23900
  constructor(data?: IMrbInstanceDto) {
23984
23901
  if (data) {
@@ -24012,6 +23929,7 @@ export class MrbInstanceDto implements IMrbInstanceDto {
24012
23929
  this.mrbExportJobId = _data["mrbExportJobId"];
24013
23930
  this.status = _data["status"] ? MrbStatusDto.fromJS(_data["status"]) : <any>undefined;
24014
23931
  this.latestRevision = _data["latestRevision"] ? MrbInstanceRevisionDto.fromJS(_data["latestRevision"]) : <any>undefined;
23932
+ this.part = _data["part"] ? MrbPartDto.fromJS(_data["part"]) : <any>undefined;
24015
23933
  }
24016
23934
  }
24017
23935
 
@@ -24042,6 +23960,7 @@ export class MrbInstanceDto implements IMrbInstanceDto {
24042
23960
  data["mrbExportJobId"] = this.mrbExportJobId;
24043
23961
  data["status"] = this.status ? this.status.toJSON() : <any>undefined;
24044
23962
  data["latestRevision"] = this.latestRevision ? this.latestRevision.toJSON() : <any>undefined;
23963
+ data["part"] = this.part ? this.part.toJSON() : <any>undefined;
24045
23964
  return data;
24046
23965
  }
24047
23966
  }
@@ -24061,6 +23980,7 @@ export interface IMrbInstanceDto {
24061
23980
  mrbExportJobId?: string | null;
24062
23981
  status?: MrbStatusDto | null;
24063
23982
  latestRevision?: MrbInstanceRevisionDto | null;
23983
+ part?: MrbPartDto | null;
24064
23984
  }
24065
23985
 
24066
23986
  export class CustomerOrderLineTraceItemDto implements ICustomerOrderLineTraceItemDto {
@@ -24274,6 +24194,46 @@ export interface IMrbSentInfoDto {
24274
24194
  sentBy: UserDto;
24275
24195
  }
24276
24196
 
24197
+ export class MrbPartDto implements IMrbPartDto {
24198
+ partNumber?: string | null;
24199
+ partName?: string | null;
24200
+
24201
+ constructor(data?: IMrbPartDto) {
24202
+ if (data) {
24203
+ for (var property in data) {
24204
+ if (data.hasOwnProperty(property))
24205
+ (<any>this)[property] = (<any>data)[property];
24206
+ }
24207
+ }
24208
+ }
24209
+
24210
+ init(_data?: any) {
24211
+ if (_data) {
24212
+ this.partNumber = _data["partNumber"];
24213
+ this.partName = _data["partName"];
24214
+ }
24215
+ }
24216
+
24217
+ static fromJS(data: any): MrbPartDto {
24218
+ data = typeof data === 'object' ? data : {};
24219
+ let result = new MrbPartDto();
24220
+ result.init(data);
24221
+ return result;
24222
+ }
24223
+
24224
+ toJSON(data?: any) {
24225
+ data = typeof data === 'object' ? data : {};
24226
+ data["partNumber"] = this.partNumber;
24227
+ data["partName"] = this.partName;
24228
+ return data;
24229
+ }
24230
+ }
24231
+
24232
+ export interface IMrbPartDto {
24233
+ partNumber?: string | null;
24234
+ partName?: string | null;
24235
+ }
24236
+
24277
24237
  export class MrbInstanceJobDto implements IMrbInstanceJobDto {
24278
24238
  jobId!: string;
24279
24239
  mrbInstanceId!: string;
@@ -41121,67 +41081,6 @@ export interface IProductionOrderOperationActivityDto {
41121
41081
  scrappedQuantity?: number | null;
41122
41082
  }
41123
41083
 
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
41084
  export class GeneratePrintableLabel implements IGeneratePrintableLabel {
41186
41085
  labelIds!: LabelId[];
41187
41086