@ignos/api-client 20240910.0.10294 → 20240910.0.10304

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.
@@ -1481,7 +1481,7 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
1481
1481
  }
1482
1482
  export interface IMoveLocationsClient {
1483
1483
  searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
1484
- suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
1484
+ suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
1485
1485
  }
1486
1486
  export declare class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
1487
1487
  private http;
@@ -1492,7 +1492,7 @@ export declare class MoveLocationsClient extends AuthorizedApiBase implements IM
1492
1492
  });
1493
1493
  searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
1494
1494
  protected processSearchLocations(response: Response): Promise<LocationDto[]>;
1495
- suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
1495
+ suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
1496
1496
  protected processSuggestionsLocations(response: Response): Promise<LocationDto[]>;
1497
1497
  }
1498
1498
  export interface IMoveMaterialsClient {
@@ -1646,6 +1646,7 @@ export interface IMesProductionOrderClient {
1646
1646
  postMaterialPickList(id: string, operationNumber: number, request: PostMaterialPickListRequest): Promise<MaterialPickListResultDto>;
1647
1647
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
1648
1648
  getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
1649
+ getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
1649
1650
  }
1650
1651
  export declare class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
1651
1652
  private http;
@@ -1670,6 +1671,8 @@ export declare class MesProductionOrderClient extends AuthorizedApiBase implemen
1670
1671
  protected processListProductionOrderActivities(response: Response): Promise<ProductionOrderOperationActivityDto[]>;
1671
1672
  getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
1672
1673
  protected processGetPrintableProductionOrders(response: Response): Promise<DownloadDto>;
1674
+ getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
1675
+ protected processGetPrintableLabels(response: Response): Promise<DownloadDto>;
1673
1676
  }
1674
1677
  export interface IMesProductionScheduleClient {
1675
1678
  listProductionScheduleOperations(resourceGroup: string | null | undefined, resourceId: string | null | undefined, pageSize: number | undefined, continuationToken: string | null | undefined, workOrderId: string | null | undefined, projectId: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, material: string | null | undefined): Promise<PagedResultOfProductionScheduleOperationDto>;
@@ -8196,30 +8199,6 @@ export interface IBookingStatusUpdateDto {
8196
8199
  deliveryExceptionComment?: string | null;
8197
8200
  }
8198
8201
  export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environment" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
8199
- export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
8200
- items: LocationSuggestionsItemDto[];
8201
- locationKindFilter?: LocationKindDto[] | null;
8202
- locationProfiles?: LocationProfileDto[] | null;
8203
- constructor(data?: ILocationSuggestionsDto);
8204
- init(_data?: any): void;
8205
- static fromJS(data: any): LocationSuggestionsDto;
8206
- toJSON(data?: any): any;
8207
- }
8208
- export interface ILocationSuggestionsDto {
8209
- items: LocationSuggestionsItemDto[];
8210
- locationKindFilter?: LocationKindDto[] | null;
8211
- locationProfiles?: LocationProfileDto[] | null;
8212
- }
8213
- export declare class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
8214
- parcelId: string;
8215
- constructor(data?: ILocationSuggestionsItemDto);
8216
- init(_data?: any): void;
8217
- static fromJS(data: any): LocationSuggestionsItemDto;
8218
- toJSON(data?: any): any;
8219
- }
8220
- export interface ILocationSuggestionsItemDto {
8221
- parcelId: string;
8222
- }
8223
8202
  export declare class MaterialDesciptionDto implements IMaterialDesciptionDto {
8224
8203
  materialId: string;
8225
8204
  materialName: string;
@@ -9070,6 +9049,28 @@ export interface IGenerateProductionOrderPdf {
9070
9049
  includeDrawing: boolean;
9071
9050
  }
9072
9051
  export type ProductionOrderPdfType = "Rich" | "Compact";
9052
+ export declare class GeneratePrintableLabel implements IGeneratePrintableLabel {
9053
+ labelIds: LabelId[];
9054
+ constructor(data?: IGeneratePrintableLabel);
9055
+ init(_data?: any): void;
9056
+ static fromJS(data: any): GeneratePrintableLabel;
9057
+ toJSON(data?: any): any;
9058
+ }
9059
+ export interface IGeneratePrintableLabel {
9060
+ labelIds: LabelId[];
9061
+ }
9062
+ export declare class LabelId implements ILabelId {
9063
+ parcelId: string;
9064
+ trackingId?: string | null;
9065
+ constructor(data?: ILabelId);
9066
+ init(_data?: any): void;
9067
+ static fromJS(data: any): LabelId;
9068
+ toJSON(data?: any): any;
9069
+ }
9070
+ export interface ILabelId {
9071
+ parcelId: string;
9072
+ trackingId?: string | null;
9073
+ }
9073
9074
  export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
9074
9075
  results: ProductionScheduleOperationDto[];
9075
9076
  continuationToken?: string | null;
@@ -12231,15 +12231,18 @@ export class MoveLocationsClient extends AuthorizedApiBase {
12231
12231
  }
12232
12232
  return Promise.resolve(null);
12233
12233
  }
12234
- suggestionsLocations(locationSuggestions) {
12235
- let url_ = this.baseUrl + "/move/locations/suggestions";
12234
+ suggestionsLocations(locationProfiles, count) {
12235
+ let url_ = this.baseUrl + "/move/locations/suggestions?";
12236
+ if (locationProfiles !== undefined && locationProfiles !== null)
12237
+ locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
12238
+ if (count === null)
12239
+ throw new Error("The parameter 'count' cannot be null.");
12240
+ else if (count !== undefined)
12241
+ url_ += "count=" + encodeURIComponent("" + count) + "&";
12236
12242
  url_ = url_.replace(/[?&]$/, "");
12237
- const content_ = JSON.stringify(locationSuggestions);
12238
12243
  let options_ = {
12239
- body: content_,
12240
- method: "POST",
12244
+ method: "GET",
12241
12245
  headers: {
12242
- "Content-Type": "application/json",
12243
12246
  "Accept": "application/json"
12244
12247
  }
12245
12248
  };
@@ -13680,6 +13683,46 @@ export class MesProductionOrderClient extends AuthorizedApiBase {
13680
13683
  }
13681
13684
  return Promise.resolve(null);
13682
13685
  }
13686
+ getPrintableLabels(request) {
13687
+ let url_ = this.baseUrl + "/mes/labels/printable";
13688
+ url_ = url_.replace(/[?&]$/, "");
13689
+ const content_ = JSON.stringify(request);
13690
+ let options_ = {
13691
+ body: content_,
13692
+ method: "POST",
13693
+ headers: {
13694
+ "Content-Type": "application/json",
13695
+ "Accept": "application/json"
13696
+ }
13697
+ };
13698
+ return this.transformOptions(options_).then(transformedOptions_ => {
13699
+ return this.http.fetch(url_, transformedOptions_);
13700
+ }).then((_response) => {
13701
+ return this.processGetPrintableLabels(_response);
13702
+ });
13703
+ }
13704
+ processGetPrintableLabels(response) {
13705
+ const status = response.status;
13706
+ let _headers = {};
13707
+ if (response.headers && response.headers.forEach) {
13708
+ response.headers.forEach((v, k) => _headers[k] = v);
13709
+ }
13710
+ ;
13711
+ if (status === 200) {
13712
+ return response.text().then((_responseText) => {
13713
+ let result200 = null;
13714
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13715
+ result200 = DownloadDto.fromJS(resultData200);
13716
+ return result200;
13717
+ });
13718
+ }
13719
+ else if (status !== 200 && status !== 204) {
13720
+ return response.text().then((_responseText) => {
13721
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13722
+ });
13723
+ }
13724
+ return Promise.resolve(null);
13725
+ }
13683
13726
  }
13684
13727
  export class MesProductionScheduleClient extends AuthorizedApiBase {
13685
13728
  constructor(configuration, baseUrl, http) {
@@ -31397,89 +31440,6 @@ export class BookingStatusUpdateDto {
31397
31440
  return data;
31398
31441
  }
31399
31442
  }
31400
- export class LocationSuggestionsDto {
31401
- constructor(data) {
31402
- if (data) {
31403
- for (var property in data) {
31404
- if (data.hasOwnProperty(property))
31405
- this[property] = data[property];
31406
- }
31407
- }
31408
- if (!data) {
31409
- this.items = [];
31410
- }
31411
- }
31412
- init(_data) {
31413
- if (_data) {
31414
- if (Array.isArray(_data["items"])) {
31415
- this.items = [];
31416
- for (let item of _data["items"])
31417
- this.items.push(LocationSuggestionsItemDto.fromJS(item));
31418
- }
31419
- if (Array.isArray(_data["locationKindFilter"])) {
31420
- this.locationKindFilter = [];
31421
- for (let item of _data["locationKindFilter"])
31422
- this.locationKindFilter.push(item);
31423
- }
31424
- if (Array.isArray(_data["locationProfiles"])) {
31425
- this.locationProfiles = [];
31426
- for (let item of _data["locationProfiles"])
31427
- this.locationProfiles.push(item);
31428
- }
31429
- }
31430
- }
31431
- static fromJS(data) {
31432
- data = typeof data === 'object' ? data : {};
31433
- let result = new LocationSuggestionsDto();
31434
- result.init(data);
31435
- return result;
31436
- }
31437
- toJSON(data) {
31438
- data = typeof data === 'object' ? data : {};
31439
- if (Array.isArray(this.items)) {
31440
- data["items"] = [];
31441
- for (let item of this.items)
31442
- data["items"].push(item.toJSON());
31443
- }
31444
- if (Array.isArray(this.locationKindFilter)) {
31445
- data["locationKindFilter"] = [];
31446
- for (let item of this.locationKindFilter)
31447
- data["locationKindFilter"].push(item);
31448
- }
31449
- if (Array.isArray(this.locationProfiles)) {
31450
- data["locationProfiles"] = [];
31451
- for (let item of this.locationProfiles)
31452
- data["locationProfiles"].push(item);
31453
- }
31454
- return data;
31455
- }
31456
- }
31457
- export class LocationSuggestionsItemDto {
31458
- constructor(data) {
31459
- if (data) {
31460
- for (var property in data) {
31461
- if (data.hasOwnProperty(property))
31462
- this[property] = data[property];
31463
- }
31464
- }
31465
- }
31466
- init(_data) {
31467
- if (_data) {
31468
- this.parcelId = _data["parcelId"];
31469
- }
31470
- }
31471
- static fromJS(data) {
31472
- data = typeof data === 'object' ? data : {};
31473
- let result = new LocationSuggestionsItemDto();
31474
- result.init(data);
31475
- return result;
31476
- }
31477
- toJSON(data) {
31478
- data = typeof data === 'object' ? data : {};
31479
- data["parcelId"] = this.parcelId;
31480
- return data;
31481
- }
31482
- }
31483
31443
  export class MaterialDesciptionDto {
31484
31444
  constructor(data) {
31485
31445
  if (data) {
@@ -33197,6 +33157,71 @@ export class GenerateProductionOrderPdf {
33197
33157
  return data;
33198
33158
  }
33199
33159
  }
33160
+ export class GeneratePrintableLabel {
33161
+ constructor(data) {
33162
+ if (data) {
33163
+ for (var property in data) {
33164
+ if (data.hasOwnProperty(property))
33165
+ this[property] = data[property];
33166
+ }
33167
+ }
33168
+ if (!data) {
33169
+ this.labelIds = [];
33170
+ }
33171
+ }
33172
+ init(_data) {
33173
+ if (_data) {
33174
+ if (Array.isArray(_data["labelIds"])) {
33175
+ this.labelIds = [];
33176
+ for (let item of _data["labelIds"])
33177
+ this.labelIds.push(LabelId.fromJS(item));
33178
+ }
33179
+ }
33180
+ }
33181
+ static fromJS(data) {
33182
+ data = typeof data === 'object' ? data : {};
33183
+ let result = new GeneratePrintableLabel();
33184
+ result.init(data);
33185
+ return result;
33186
+ }
33187
+ toJSON(data) {
33188
+ data = typeof data === 'object' ? data : {};
33189
+ if (Array.isArray(this.labelIds)) {
33190
+ data["labelIds"] = [];
33191
+ for (let item of this.labelIds)
33192
+ data["labelIds"].push(item.toJSON());
33193
+ }
33194
+ return data;
33195
+ }
33196
+ }
33197
+ export class LabelId {
33198
+ constructor(data) {
33199
+ if (data) {
33200
+ for (var property in data) {
33201
+ if (data.hasOwnProperty(property))
33202
+ this[property] = data[property];
33203
+ }
33204
+ }
33205
+ }
33206
+ init(_data) {
33207
+ if (_data) {
33208
+ this.parcelId = _data["parcelId"];
33209
+ this.trackingId = _data["trackingId"];
33210
+ }
33211
+ }
33212
+ static fromJS(data) {
33213
+ data = typeof data === 'object' ? data : {};
33214
+ let result = new LabelId();
33215
+ result.init(data);
33216
+ return result;
33217
+ }
33218
+ toJSON(data) {
33219
+ data = typeof data === 'object' ? data : {};
33220
+ data["parcelId"] = this.parcelId;
33221
+ data["trackingId"] = this.trackingId;
33222
+ return data;
33223
+ }
33224
+ }
33200
33225
  export class PagedResultOfProductionScheduleOperationDto {
33201
33226
  constructor(data) {
33202
33227
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240910.0.10294",
3
+ "version": "20240910.0.10304",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13011,7 +13011,7 @@ export interface IMoveLocationsClient {
13011
13011
 
13012
13012
  searchLocations(input: string | null | undefined, locationKinds: LocationKindDto[] | null | undefined, locationProfiles: LocationProfileDto[] | null | undefined): Promise<LocationDto[]>;
13013
13013
 
13014
- suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]>;
13014
+ suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]>;
13015
13015
  }
13016
13016
 
13017
13017
  export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocationsClient {
@@ -13071,17 +13071,19 @@ export class MoveLocationsClient extends AuthorizedApiBase implements IMoveLocat
13071
13071
  return Promise.resolve<LocationDto[]>(null as any);
13072
13072
  }
13073
13073
 
13074
- suggestionsLocations(locationSuggestions: LocationSuggestionsDto): Promise<LocationDto[]> {
13075
- let url_ = this.baseUrl + "/move/locations/suggestions";
13074
+ suggestionsLocations(locationProfiles: LocationProfileDto[] | null | undefined, count: number | undefined): Promise<LocationDto[]> {
13075
+ let url_ = this.baseUrl + "/move/locations/suggestions?";
13076
+ if (locationProfiles !== undefined && locationProfiles !== null)
13077
+ locationProfiles && locationProfiles.forEach(item => { url_ += "locationProfiles=" + encodeURIComponent("" + item) + "&"; });
13078
+ if (count === null)
13079
+ throw new Error("The parameter 'count' cannot be null.");
13080
+ else if (count !== undefined)
13081
+ url_ += "count=" + encodeURIComponent("" + count) + "&";
13076
13082
  url_ = url_.replace(/[?&]$/, "");
13077
13083
 
13078
- const content_ = JSON.stringify(locationSuggestions);
13079
-
13080
13084
  let options_: RequestInit = {
13081
- body: content_,
13082
- method: "POST",
13085
+ method: "GET",
13083
13086
  headers: {
13084
- "Content-Type": "application/json",
13085
13087
  "Accept": "application/json"
13086
13088
  }
13087
13089
  };
@@ -14264,6 +14266,8 @@ export interface IMesProductionOrderClient {
14264
14266
  listProductionOrderActivities(id: string, operation: number | null | undefined): Promise<ProductionOrderOperationActivityDto[]>;
14265
14267
 
14266
14268
  getPrintableProductionOrders(request: GenerateProductionOrderPdf): Promise<DownloadDto>;
14269
+
14270
+ getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto>;
14267
14271
  }
14268
14272
 
14269
14273
  export class MesProductionOrderClient extends AuthorizedApiBase implements IMesProductionOrderClient {
@@ -14625,6 +14629,46 @@ export class MesProductionOrderClient extends AuthorizedApiBase implements IMesP
14625
14629
  }
14626
14630
  return Promise.resolve<DownloadDto>(null as any);
14627
14631
  }
14632
+
14633
+ getPrintableLabels(request: GeneratePrintableLabel): Promise<DownloadDto> {
14634
+ let url_ = this.baseUrl + "/mes/labels/printable";
14635
+ url_ = url_.replace(/[?&]$/, "");
14636
+
14637
+ const content_ = JSON.stringify(request);
14638
+
14639
+ let options_: RequestInit = {
14640
+ body: content_,
14641
+ method: "POST",
14642
+ headers: {
14643
+ "Content-Type": "application/json",
14644
+ "Accept": "application/json"
14645
+ }
14646
+ };
14647
+
14648
+ return this.transformOptions(options_).then(transformedOptions_ => {
14649
+ return this.http.fetch(url_, transformedOptions_);
14650
+ }).then((_response: Response) => {
14651
+ return this.processGetPrintableLabels(_response);
14652
+ });
14653
+ }
14654
+
14655
+ protected processGetPrintableLabels(response: Response): Promise<DownloadDto> {
14656
+ const status = response.status;
14657
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
14658
+ if (status === 200) {
14659
+ return response.text().then((_responseText) => {
14660
+ let result200: any = null;
14661
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
14662
+ result200 = DownloadDto.fromJS(resultData200);
14663
+ return result200;
14664
+ });
14665
+ } else if (status !== 200 && status !== 204) {
14666
+ return response.text().then((_responseText) => {
14667
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
14668
+ });
14669
+ }
14670
+ return Promise.resolve<DownloadDto>(null as any);
14671
+ }
14628
14672
  }
14629
14673
 
14630
14674
  export interface IMesProductionScheduleClient {
@@ -38577,113 +38621,6 @@ export interface IBookingStatusUpdateDto {
38577
38621
 
38578
38622
  export type LocationProfileDto = "Cage" | "CantileverRack" | "Deviation" | "Environment" | "Gate" | "Ground" | "Inbound" | "Logia" | "LogiaTransit" | "Outbound" | "Pack" | "PalletRack" | "Pick" | "Quality" | "Quarantine" | "Resource" | "ShelvingRack" | "User";
38579
38623
 
38580
- export class LocationSuggestionsDto implements ILocationSuggestionsDto {
38581
- items!: LocationSuggestionsItemDto[];
38582
- locationKindFilter?: LocationKindDto[] | null;
38583
- locationProfiles?: LocationProfileDto[] | null;
38584
-
38585
- constructor(data?: ILocationSuggestionsDto) {
38586
- if (data) {
38587
- for (var property in data) {
38588
- if (data.hasOwnProperty(property))
38589
- (<any>this)[property] = (<any>data)[property];
38590
- }
38591
- }
38592
- if (!data) {
38593
- this.items = [];
38594
- }
38595
- }
38596
-
38597
- init(_data?: any) {
38598
- if (_data) {
38599
- if (Array.isArray(_data["items"])) {
38600
- this.items = [] as any;
38601
- for (let item of _data["items"])
38602
- this.items!.push(LocationSuggestionsItemDto.fromJS(item));
38603
- }
38604
- if (Array.isArray(_data["locationKindFilter"])) {
38605
- this.locationKindFilter = [] as any;
38606
- for (let item of _data["locationKindFilter"])
38607
- this.locationKindFilter!.push(item);
38608
- }
38609
- if (Array.isArray(_data["locationProfiles"])) {
38610
- this.locationProfiles = [] as any;
38611
- for (let item of _data["locationProfiles"])
38612
- this.locationProfiles!.push(item);
38613
- }
38614
- }
38615
- }
38616
-
38617
- static fromJS(data: any): LocationSuggestionsDto {
38618
- data = typeof data === 'object' ? data : {};
38619
- let result = new LocationSuggestionsDto();
38620
- result.init(data);
38621
- return result;
38622
- }
38623
-
38624
- toJSON(data?: any) {
38625
- data = typeof data === 'object' ? data : {};
38626
- if (Array.isArray(this.items)) {
38627
- data["items"] = [];
38628
- for (let item of this.items)
38629
- data["items"].push(item.toJSON());
38630
- }
38631
- if (Array.isArray(this.locationKindFilter)) {
38632
- data["locationKindFilter"] = [];
38633
- for (let item of this.locationKindFilter)
38634
- data["locationKindFilter"].push(item);
38635
- }
38636
- if (Array.isArray(this.locationProfiles)) {
38637
- data["locationProfiles"] = [];
38638
- for (let item of this.locationProfiles)
38639
- data["locationProfiles"].push(item);
38640
- }
38641
- return data;
38642
- }
38643
- }
38644
-
38645
- export interface ILocationSuggestionsDto {
38646
- items: LocationSuggestionsItemDto[];
38647
- locationKindFilter?: LocationKindDto[] | null;
38648
- locationProfiles?: LocationProfileDto[] | null;
38649
- }
38650
-
38651
- export class LocationSuggestionsItemDto implements ILocationSuggestionsItemDto {
38652
- parcelId!: string;
38653
-
38654
- constructor(data?: ILocationSuggestionsItemDto) {
38655
- if (data) {
38656
- for (var property in data) {
38657
- if (data.hasOwnProperty(property))
38658
- (<any>this)[property] = (<any>data)[property];
38659
- }
38660
- }
38661
- }
38662
-
38663
- init(_data?: any) {
38664
- if (_data) {
38665
- this.parcelId = _data["parcelId"];
38666
- }
38667
- }
38668
-
38669
- static fromJS(data: any): LocationSuggestionsItemDto {
38670
- data = typeof data === 'object' ? data : {};
38671
- let result = new LocationSuggestionsItemDto();
38672
- result.init(data);
38673
- return result;
38674
- }
38675
-
38676
- toJSON(data?: any) {
38677
- data = typeof data === 'object' ? data : {};
38678
- data["parcelId"] = this.parcelId;
38679
- return data;
38680
- }
38681
- }
38682
-
38683
- export interface ILocationSuggestionsItemDto {
38684
- parcelId: string;
38685
- }
38686
-
38687
38624
  export class MaterialDesciptionDto implements IMaterialDesciptionDto {
38688
38625
  materialId!: string;
38689
38626
  materialName!: string;
@@ -41257,6 +41194,93 @@ export interface IGenerateProductionOrderPdf {
41257
41194
 
41258
41195
  export type ProductionOrderPdfType = "Rich" | "Compact";
41259
41196
 
41197
+ export class GeneratePrintableLabel implements IGeneratePrintableLabel {
41198
+ labelIds!: LabelId[];
41199
+
41200
+ constructor(data?: IGeneratePrintableLabel) {
41201
+ if (data) {
41202
+ for (var property in data) {
41203
+ if (data.hasOwnProperty(property))
41204
+ (<any>this)[property] = (<any>data)[property];
41205
+ }
41206
+ }
41207
+ if (!data) {
41208
+ this.labelIds = [];
41209
+ }
41210
+ }
41211
+
41212
+ init(_data?: any) {
41213
+ if (_data) {
41214
+ if (Array.isArray(_data["labelIds"])) {
41215
+ this.labelIds = [] as any;
41216
+ for (let item of _data["labelIds"])
41217
+ this.labelIds!.push(LabelId.fromJS(item));
41218
+ }
41219
+ }
41220
+ }
41221
+
41222
+ static fromJS(data: any): GeneratePrintableLabel {
41223
+ data = typeof data === 'object' ? data : {};
41224
+ let result = new GeneratePrintableLabel();
41225
+ result.init(data);
41226
+ return result;
41227
+ }
41228
+
41229
+ toJSON(data?: any) {
41230
+ data = typeof data === 'object' ? data : {};
41231
+ if (Array.isArray(this.labelIds)) {
41232
+ data["labelIds"] = [];
41233
+ for (let item of this.labelIds)
41234
+ data["labelIds"].push(item.toJSON());
41235
+ }
41236
+ return data;
41237
+ }
41238
+ }
41239
+
41240
+ export interface IGeneratePrintableLabel {
41241
+ labelIds: LabelId[];
41242
+ }
41243
+
41244
+ export class LabelId implements ILabelId {
41245
+ parcelId!: string;
41246
+ trackingId?: string | null;
41247
+
41248
+ constructor(data?: ILabelId) {
41249
+ if (data) {
41250
+ for (var property in data) {
41251
+ if (data.hasOwnProperty(property))
41252
+ (<any>this)[property] = (<any>data)[property];
41253
+ }
41254
+ }
41255
+ }
41256
+
41257
+ init(_data?: any) {
41258
+ if (_data) {
41259
+ this.parcelId = _data["parcelId"];
41260
+ this.trackingId = _data["trackingId"];
41261
+ }
41262
+ }
41263
+
41264
+ static fromJS(data: any): LabelId {
41265
+ data = typeof data === 'object' ? data : {};
41266
+ let result = new LabelId();
41267
+ result.init(data);
41268
+ return result;
41269
+ }
41270
+
41271
+ toJSON(data?: any) {
41272
+ data = typeof data === 'object' ? data : {};
41273
+ data["parcelId"] = this.parcelId;
41274
+ data["trackingId"] = this.trackingId;
41275
+ return data;
41276
+ }
41277
+ }
41278
+
41279
+ export interface ILabelId {
41280
+ parcelId: string;
41281
+ trackingId?: string | null;
41282
+ }
41283
+
41260
41284
  export class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
41261
41285
  results!: ProductionScheduleOperationDto[];
41262
41286
  continuationToken?: string | null;