@ignos/api-client 20240902.0.10238 → 20240906.0.10268
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.
- package/lib/ignosportal-api.d.ts +80 -8
- package/lib/ignosportal-api.js +245 -2
- package/package.json +1 -1
- package/src/ignosportal-api.ts +323 -10
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1504,6 +1504,7 @@ export declare class MoveParcelsClient extends AuthorizedApiBase implements IMov
|
|
|
1504
1504
|
}
|
|
1505
1505
|
export interface IMoveTrackingClient {
|
|
1506
1506
|
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
1507
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto>;
|
|
1507
1508
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
1508
1509
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
1509
1510
|
listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]>;
|
|
@@ -1511,6 +1512,7 @@ export interface IMoveTrackingClient {
|
|
|
1511
1512
|
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
1512
1513
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
1513
1514
|
createLabel(trackingIds: string[]): Promise<DownloadDto>;
|
|
1515
|
+
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
|
|
1514
1516
|
}
|
|
1515
1517
|
export declare class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
1516
1518
|
private http;
|
|
@@ -1521,6 +1523,8 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
1521
1523
|
});
|
|
1522
1524
|
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
1523
1525
|
protected processListTrackingHistory(response: Response): Promise<TrackingParcelListDto>;
|
|
1526
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto>;
|
|
1527
|
+
protected processListTrackingHistoryFlattened(response: Response): Promise<TrackingParcelFlattenedListDto>;
|
|
1524
1528
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
1525
1529
|
protected processGetTrackingHistory(response: Response): Promise<TrackingParcelDto>;
|
|
1526
1530
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
@@ -1535,6 +1539,8 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
1535
1539
|
protected processDeleteTrackingHistory(response: Response): Promise<void>;
|
|
1536
1540
|
createLabel(trackingIds: string[]): Promise<DownloadDto>;
|
|
1537
1541
|
protected processCreateLabel(response: Response): Promise<DownloadDto>;
|
|
1542
|
+
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
|
|
1543
|
+
protected processCreateLabelAndUpdateParcel(response: Response): Promise<DownloadDto>;
|
|
1538
1544
|
}
|
|
1539
1545
|
export interface IMesClient {
|
|
1540
1546
|
getWorkerDetailsForCurrentUser(): Promise<WorkerDto>;
|
|
@@ -6957,7 +6963,7 @@ export interface IMarkdownNotesDto {
|
|
|
6957
6963
|
}
|
|
6958
6964
|
export declare class SaveMarkdownNotes implements ISaveMarkdownNotes {
|
|
6959
6965
|
id: string;
|
|
6960
|
-
markdown
|
|
6966
|
+
markdown?: string;
|
|
6961
6967
|
constructor(data?: ISaveMarkdownNotes);
|
|
6962
6968
|
init(_data?: any): void;
|
|
6963
6969
|
static fromJS(data: any): SaveMarkdownNotes;
|
|
@@ -6965,7 +6971,7 @@ export declare class SaveMarkdownNotes implements ISaveMarkdownNotes {
|
|
|
6965
6971
|
}
|
|
6966
6972
|
export interface ISaveMarkdownNotes {
|
|
6967
6973
|
id: string;
|
|
6968
|
-
markdown
|
|
6974
|
+
markdown?: string;
|
|
6969
6975
|
}
|
|
6970
6976
|
export declare class CncToolTypeDto implements ICncToolTypeDto {
|
|
6971
6977
|
id: string;
|
|
@@ -8073,8 +8079,8 @@ export interface IBookingTransportRequestDto {
|
|
|
8073
8079
|
toLocationId: string;
|
|
8074
8080
|
}
|
|
8075
8081
|
export declare class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
8076
|
-
parcelId
|
|
8077
|
-
trackingId
|
|
8082
|
+
parcelId: string;
|
|
8083
|
+
trackingId: string;
|
|
8078
8084
|
comment?: string | null;
|
|
8079
8085
|
constructor(data?: IBookingItemRequestDto);
|
|
8080
8086
|
init(_data?: any): void;
|
|
@@ -8082,8 +8088,8 @@ export declare class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
8082
8088
|
toJSON(data?: any): any;
|
|
8083
8089
|
}
|
|
8084
8090
|
export interface IBookingItemRequestDto {
|
|
8085
|
-
parcelId
|
|
8086
|
-
trackingId
|
|
8091
|
+
parcelId: string;
|
|
8092
|
+
trackingId: string;
|
|
8087
8093
|
comment?: string | null;
|
|
8088
8094
|
}
|
|
8089
8095
|
export declare class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
@@ -8309,6 +8315,50 @@ export interface ITrackingRequestListDto {
|
|
|
8309
8315
|
includeActiveBookings?: boolean;
|
|
8310
8316
|
continuationToken?: string | null;
|
|
8311
8317
|
}
|
|
8318
|
+
export declare class TrackingParcelFlattenedListDto implements ITrackingParcelFlattenedListDto {
|
|
8319
|
+
results: TrackingHistoryFlattenedDto[];
|
|
8320
|
+
continuationToken?: string | null;
|
|
8321
|
+
constructor(data?: ITrackingParcelFlattenedListDto);
|
|
8322
|
+
init(_data?: any): void;
|
|
8323
|
+
static fromJS(data: any): TrackingParcelFlattenedListDto;
|
|
8324
|
+
toJSON(data?: any): any;
|
|
8325
|
+
}
|
|
8326
|
+
export interface ITrackingParcelFlattenedListDto {
|
|
8327
|
+
results: TrackingHistoryFlattenedDto[];
|
|
8328
|
+
continuationToken?: string | null;
|
|
8329
|
+
}
|
|
8330
|
+
export declare class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto {
|
|
8331
|
+
parcelId: string;
|
|
8332
|
+
parcelKind: ParcelKindDto;
|
|
8333
|
+
partName?: string | null;
|
|
8334
|
+
partNumber?: string | null;
|
|
8335
|
+
quantity?: number | null;
|
|
8336
|
+
material?: string | null;
|
|
8337
|
+
covered?: MaterialCoveredDto | null;
|
|
8338
|
+
trackingId: string;
|
|
8339
|
+
palletNumber: number;
|
|
8340
|
+
activeBooking?: boolean | null;
|
|
8341
|
+
currentTracking?: TrackingEventDto | null;
|
|
8342
|
+
trackingEvents: TrackingEventDto[];
|
|
8343
|
+
constructor(data?: ITrackingHistoryFlattenedDto);
|
|
8344
|
+
init(_data?: any): void;
|
|
8345
|
+
static fromJS(data: any): TrackingHistoryFlattenedDto;
|
|
8346
|
+
toJSON(data?: any): any;
|
|
8347
|
+
}
|
|
8348
|
+
export interface ITrackingHistoryFlattenedDto {
|
|
8349
|
+
parcelId: string;
|
|
8350
|
+
parcelKind: ParcelKindDto;
|
|
8351
|
+
partName?: string | null;
|
|
8352
|
+
partNumber?: string | null;
|
|
8353
|
+
quantity?: number | null;
|
|
8354
|
+
material?: string | null;
|
|
8355
|
+
covered?: MaterialCoveredDto | null;
|
|
8356
|
+
trackingId: string;
|
|
8357
|
+
palletNumber: number;
|
|
8358
|
+
activeBooking?: boolean | null;
|
|
8359
|
+
currentTracking?: TrackingEventDto | null;
|
|
8360
|
+
trackingEvents: TrackingEventDto[];
|
|
8361
|
+
}
|
|
8312
8362
|
export declare class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
|
|
8313
8363
|
parcelIds: string[];
|
|
8314
8364
|
includeActiveBookings: boolean;
|
|
@@ -8345,6 +8395,30 @@ export declare class TrackingHistoryUpdateDto implements ITrackingHistoryUpdateD
|
|
|
8345
8395
|
export interface ITrackingHistoryUpdateDto {
|
|
8346
8396
|
parcelId: string;
|
|
8347
8397
|
}
|
|
8398
|
+
export declare class LabelUpdateListDto implements ILabelUpdateListDto {
|
|
8399
|
+
labelUpdates: LabelUpdateDto[];
|
|
8400
|
+
constructor(data?: ILabelUpdateListDto);
|
|
8401
|
+
init(_data?: any): void;
|
|
8402
|
+
static fromJS(data: any): LabelUpdateListDto;
|
|
8403
|
+
toJSON(data?: any): any;
|
|
8404
|
+
}
|
|
8405
|
+
export interface ILabelUpdateListDto {
|
|
8406
|
+
labelUpdates: LabelUpdateDto[];
|
|
8407
|
+
}
|
|
8408
|
+
export declare class LabelUpdateDto implements ILabelUpdateDto {
|
|
8409
|
+
parcelId: string;
|
|
8410
|
+
trackingId?: string | null;
|
|
8411
|
+
comment?: string | null;
|
|
8412
|
+
constructor(data?: ILabelUpdateDto);
|
|
8413
|
+
init(_data?: any): void;
|
|
8414
|
+
static fromJS(data: any): LabelUpdateDto;
|
|
8415
|
+
toJSON(data?: any): any;
|
|
8416
|
+
}
|
|
8417
|
+
export interface ILabelUpdateDto {
|
|
8418
|
+
parcelId: string;
|
|
8419
|
+
trackingId?: string | null;
|
|
8420
|
+
comment?: string | null;
|
|
8421
|
+
}
|
|
8348
8422
|
export declare class WorkerDto implements IWorkerDto {
|
|
8349
8423
|
personnelNumber?: string | null;
|
|
8350
8424
|
badgeId?: string | null;
|
|
@@ -8917,7 +8991,6 @@ export declare class GenerateProductionOrderPdf implements IGenerateProductionOr
|
|
|
8917
8991
|
type: ProductionOrderPdfType;
|
|
8918
8992
|
includeOperations: boolean;
|
|
8919
8993
|
includeDrawing: boolean;
|
|
8920
|
-
includeOperationText: boolean;
|
|
8921
8994
|
constructor(data?: IGenerateProductionOrderPdf);
|
|
8922
8995
|
init(_data?: any): void;
|
|
8923
8996
|
static fromJS(data: any): GenerateProductionOrderPdf;
|
|
@@ -8928,7 +9001,6 @@ export interface IGenerateProductionOrderPdf {
|
|
|
8928
9001
|
type: ProductionOrderPdfType;
|
|
8929
9002
|
includeOperations: boolean;
|
|
8930
9003
|
includeDrawing: boolean;
|
|
8931
|
-
includeOperationText: boolean;
|
|
8932
9004
|
}
|
|
8933
9005
|
export type ProductionOrderPdfType = "Rich" | "Compact";
|
|
8934
9006
|
export declare class PagedResultOfProductionScheduleOperationDto implements IPagedResultOfProductionScheduleOperationDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -12378,6 +12378,46 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12378
12378
|
}
|
|
12379
12379
|
return Promise.resolve(null);
|
|
12380
12380
|
}
|
|
12381
|
+
listTrackingHistoryFlattened(request) {
|
|
12382
|
+
let url_ = this.baseUrl + "/move/tracking/list/flattened";
|
|
12383
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12384
|
+
const content_ = JSON.stringify(request);
|
|
12385
|
+
let options_ = {
|
|
12386
|
+
body: content_,
|
|
12387
|
+
method: "POST",
|
|
12388
|
+
headers: {
|
|
12389
|
+
"Content-Type": "application/json",
|
|
12390
|
+
"Accept": "application/json"
|
|
12391
|
+
}
|
|
12392
|
+
};
|
|
12393
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12394
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12395
|
+
}).then((_response) => {
|
|
12396
|
+
return this.processListTrackingHistoryFlattened(_response);
|
|
12397
|
+
});
|
|
12398
|
+
}
|
|
12399
|
+
processListTrackingHistoryFlattened(response) {
|
|
12400
|
+
const status = response.status;
|
|
12401
|
+
let _headers = {};
|
|
12402
|
+
if (response.headers && response.headers.forEach) {
|
|
12403
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12404
|
+
}
|
|
12405
|
+
;
|
|
12406
|
+
if (status === 200) {
|
|
12407
|
+
return response.text().then((_responseText) => {
|
|
12408
|
+
let result200 = null;
|
|
12409
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12410
|
+
result200 = TrackingParcelFlattenedListDto.fromJS(resultData200);
|
|
12411
|
+
return result200;
|
|
12412
|
+
});
|
|
12413
|
+
}
|
|
12414
|
+
else if (status !== 200 && status !== 204) {
|
|
12415
|
+
return response.text().then((_responseText) => {
|
|
12416
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12417
|
+
});
|
|
12418
|
+
}
|
|
12419
|
+
return Promise.resolve(null);
|
|
12420
|
+
}
|
|
12381
12421
|
getTrackingHistory(trackingId, includeActiveBookings) {
|
|
12382
12422
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
|
|
12383
12423
|
if (trackingId === undefined || trackingId === null)
|
|
@@ -12673,6 +12713,46 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
12673
12713
|
}
|
|
12674
12714
|
return Promise.resolve(null);
|
|
12675
12715
|
}
|
|
12716
|
+
createLabelAndUpdateParcel(labelUpdate) {
|
|
12717
|
+
let url_ = this.baseUrl + "/move/tracking/labelupdate";
|
|
12718
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12719
|
+
const content_ = JSON.stringify(labelUpdate);
|
|
12720
|
+
let options_ = {
|
|
12721
|
+
body: content_,
|
|
12722
|
+
method: "POST",
|
|
12723
|
+
headers: {
|
|
12724
|
+
"Content-Type": "application/json",
|
|
12725
|
+
"Accept": "application/json"
|
|
12726
|
+
}
|
|
12727
|
+
};
|
|
12728
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12729
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12730
|
+
}).then((_response) => {
|
|
12731
|
+
return this.processCreateLabelAndUpdateParcel(_response);
|
|
12732
|
+
});
|
|
12733
|
+
}
|
|
12734
|
+
processCreateLabelAndUpdateParcel(response) {
|
|
12735
|
+
const status = response.status;
|
|
12736
|
+
let _headers = {};
|
|
12737
|
+
if (response.headers && response.headers.forEach) {
|
|
12738
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12739
|
+
}
|
|
12740
|
+
;
|
|
12741
|
+
if (status === 200) {
|
|
12742
|
+
return response.text().then((_responseText) => {
|
|
12743
|
+
let result200 = null;
|
|
12744
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12745
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
12746
|
+
return result200;
|
|
12747
|
+
});
|
|
12748
|
+
}
|
|
12749
|
+
else if (status !== 200 && status !== 204) {
|
|
12750
|
+
return response.text().then((_responseText) => {
|
|
12751
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12752
|
+
});
|
|
12753
|
+
}
|
|
12754
|
+
return Promise.resolve(null);
|
|
12755
|
+
}
|
|
12676
12756
|
}
|
|
12677
12757
|
export class MesClient extends AuthorizedApiBase {
|
|
12678
12758
|
constructor(configuration, baseUrl, http) {
|
|
@@ -31492,6 +31572,104 @@ export class TrackingRequestListDto {
|
|
|
31492
31572
|
return data;
|
|
31493
31573
|
}
|
|
31494
31574
|
}
|
|
31575
|
+
export class TrackingParcelFlattenedListDto {
|
|
31576
|
+
constructor(data) {
|
|
31577
|
+
if (data) {
|
|
31578
|
+
for (var property in data) {
|
|
31579
|
+
if (data.hasOwnProperty(property))
|
|
31580
|
+
this[property] = data[property];
|
|
31581
|
+
}
|
|
31582
|
+
}
|
|
31583
|
+
if (!data) {
|
|
31584
|
+
this.results = [];
|
|
31585
|
+
}
|
|
31586
|
+
}
|
|
31587
|
+
init(_data) {
|
|
31588
|
+
if (_data) {
|
|
31589
|
+
if (Array.isArray(_data["results"])) {
|
|
31590
|
+
this.results = [];
|
|
31591
|
+
for (let item of _data["results"])
|
|
31592
|
+
this.results.push(TrackingHistoryFlattenedDto.fromJS(item));
|
|
31593
|
+
}
|
|
31594
|
+
this.continuationToken = _data["continuationToken"];
|
|
31595
|
+
}
|
|
31596
|
+
}
|
|
31597
|
+
static fromJS(data) {
|
|
31598
|
+
data = typeof data === 'object' ? data : {};
|
|
31599
|
+
let result = new TrackingParcelFlattenedListDto();
|
|
31600
|
+
result.init(data);
|
|
31601
|
+
return result;
|
|
31602
|
+
}
|
|
31603
|
+
toJSON(data) {
|
|
31604
|
+
data = typeof data === 'object' ? data : {};
|
|
31605
|
+
if (Array.isArray(this.results)) {
|
|
31606
|
+
data["results"] = [];
|
|
31607
|
+
for (let item of this.results)
|
|
31608
|
+
data["results"].push(item.toJSON());
|
|
31609
|
+
}
|
|
31610
|
+
data["continuationToken"] = this.continuationToken;
|
|
31611
|
+
return data;
|
|
31612
|
+
}
|
|
31613
|
+
}
|
|
31614
|
+
export class TrackingHistoryFlattenedDto {
|
|
31615
|
+
constructor(data) {
|
|
31616
|
+
if (data) {
|
|
31617
|
+
for (var property in data) {
|
|
31618
|
+
if (data.hasOwnProperty(property))
|
|
31619
|
+
this[property] = data[property];
|
|
31620
|
+
}
|
|
31621
|
+
}
|
|
31622
|
+
if (!data) {
|
|
31623
|
+
this.trackingEvents = [];
|
|
31624
|
+
}
|
|
31625
|
+
}
|
|
31626
|
+
init(_data) {
|
|
31627
|
+
if (_data) {
|
|
31628
|
+
this.parcelId = _data["parcelId"];
|
|
31629
|
+
this.parcelKind = _data["parcelKind"];
|
|
31630
|
+
this.partName = _data["partName"];
|
|
31631
|
+
this.partNumber = _data["partNumber"];
|
|
31632
|
+
this.quantity = _data["quantity"];
|
|
31633
|
+
this.material = _data["material"];
|
|
31634
|
+
this.covered = _data["covered"];
|
|
31635
|
+
this.trackingId = _data["trackingId"];
|
|
31636
|
+
this.palletNumber = _data["palletNumber"];
|
|
31637
|
+
this.activeBooking = _data["activeBooking"];
|
|
31638
|
+
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined;
|
|
31639
|
+
if (Array.isArray(_data["trackingEvents"])) {
|
|
31640
|
+
this.trackingEvents = [];
|
|
31641
|
+
for (let item of _data["trackingEvents"])
|
|
31642
|
+
this.trackingEvents.push(TrackingEventDto.fromJS(item));
|
|
31643
|
+
}
|
|
31644
|
+
}
|
|
31645
|
+
}
|
|
31646
|
+
static fromJS(data) {
|
|
31647
|
+
data = typeof data === 'object' ? data : {};
|
|
31648
|
+
let result = new TrackingHistoryFlattenedDto();
|
|
31649
|
+
result.init(data);
|
|
31650
|
+
return result;
|
|
31651
|
+
}
|
|
31652
|
+
toJSON(data) {
|
|
31653
|
+
data = typeof data === 'object' ? data : {};
|
|
31654
|
+
data["parcelId"] = this.parcelId;
|
|
31655
|
+
data["parcelKind"] = this.parcelKind;
|
|
31656
|
+
data["partName"] = this.partName;
|
|
31657
|
+
data["partNumber"] = this.partNumber;
|
|
31658
|
+
data["quantity"] = this.quantity;
|
|
31659
|
+
data["material"] = this.material;
|
|
31660
|
+
data["covered"] = this.covered;
|
|
31661
|
+
data["trackingId"] = this.trackingId;
|
|
31662
|
+
data["palletNumber"] = this.palletNumber;
|
|
31663
|
+
data["activeBooking"] = this.activeBooking;
|
|
31664
|
+
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined;
|
|
31665
|
+
if (Array.isArray(this.trackingEvents)) {
|
|
31666
|
+
data["trackingEvents"] = [];
|
|
31667
|
+
for (let item of this.trackingEvents)
|
|
31668
|
+
data["trackingEvents"].push(item.toJSON());
|
|
31669
|
+
}
|
|
31670
|
+
return data;
|
|
31671
|
+
}
|
|
31672
|
+
}
|
|
31495
31673
|
export class TrackingParcelRequestListDto {
|
|
31496
31674
|
constructor(data) {
|
|
31497
31675
|
if (data) {
|
|
@@ -31587,6 +31765,73 @@ export class TrackingHistoryUpdateDto {
|
|
|
31587
31765
|
return data;
|
|
31588
31766
|
}
|
|
31589
31767
|
}
|
|
31768
|
+
export class LabelUpdateListDto {
|
|
31769
|
+
constructor(data) {
|
|
31770
|
+
if (data) {
|
|
31771
|
+
for (var property in data) {
|
|
31772
|
+
if (data.hasOwnProperty(property))
|
|
31773
|
+
this[property] = data[property];
|
|
31774
|
+
}
|
|
31775
|
+
}
|
|
31776
|
+
if (!data) {
|
|
31777
|
+
this.labelUpdates = [];
|
|
31778
|
+
}
|
|
31779
|
+
}
|
|
31780
|
+
init(_data) {
|
|
31781
|
+
if (_data) {
|
|
31782
|
+
if (Array.isArray(_data["labelUpdates"])) {
|
|
31783
|
+
this.labelUpdates = [];
|
|
31784
|
+
for (let item of _data["labelUpdates"])
|
|
31785
|
+
this.labelUpdates.push(LabelUpdateDto.fromJS(item));
|
|
31786
|
+
}
|
|
31787
|
+
}
|
|
31788
|
+
}
|
|
31789
|
+
static fromJS(data) {
|
|
31790
|
+
data = typeof data === 'object' ? data : {};
|
|
31791
|
+
let result = new LabelUpdateListDto();
|
|
31792
|
+
result.init(data);
|
|
31793
|
+
return result;
|
|
31794
|
+
}
|
|
31795
|
+
toJSON(data) {
|
|
31796
|
+
data = typeof data === 'object' ? data : {};
|
|
31797
|
+
if (Array.isArray(this.labelUpdates)) {
|
|
31798
|
+
data["labelUpdates"] = [];
|
|
31799
|
+
for (let item of this.labelUpdates)
|
|
31800
|
+
data["labelUpdates"].push(item.toJSON());
|
|
31801
|
+
}
|
|
31802
|
+
return data;
|
|
31803
|
+
}
|
|
31804
|
+
}
|
|
31805
|
+
export class LabelUpdateDto {
|
|
31806
|
+
constructor(data) {
|
|
31807
|
+
if (data) {
|
|
31808
|
+
for (var property in data) {
|
|
31809
|
+
if (data.hasOwnProperty(property))
|
|
31810
|
+
this[property] = data[property];
|
|
31811
|
+
}
|
|
31812
|
+
}
|
|
31813
|
+
}
|
|
31814
|
+
init(_data) {
|
|
31815
|
+
if (_data) {
|
|
31816
|
+
this.parcelId = _data["parcelId"];
|
|
31817
|
+
this.trackingId = _data["trackingId"];
|
|
31818
|
+
this.comment = _data["comment"];
|
|
31819
|
+
}
|
|
31820
|
+
}
|
|
31821
|
+
static fromJS(data) {
|
|
31822
|
+
data = typeof data === 'object' ? data : {};
|
|
31823
|
+
let result = new LabelUpdateDto();
|
|
31824
|
+
result.init(data);
|
|
31825
|
+
return result;
|
|
31826
|
+
}
|
|
31827
|
+
toJSON(data) {
|
|
31828
|
+
data = typeof data === 'object' ? data : {};
|
|
31829
|
+
data["parcelId"] = this.parcelId;
|
|
31830
|
+
data["trackingId"] = this.trackingId;
|
|
31831
|
+
data["comment"] = this.comment;
|
|
31832
|
+
return data;
|
|
31833
|
+
}
|
|
31834
|
+
}
|
|
31590
31835
|
export class WorkerDto {
|
|
31591
31836
|
constructor(data) {
|
|
31592
31837
|
if (data) {
|
|
@@ -32635,7 +32880,6 @@ export class GenerateProductionOrderPdf {
|
|
|
32635
32880
|
this.type = _data["type"];
|
|
32636
32881
|
this.includeOperations = _data["includeOperations"];
|
|
32637
32882
|
this.includeDrawing = _data["includeDrawing"];
|
|
32638
|
-
this.includeOperationText = _data["includeOperationText"];
|
|
32639
32883
|
}
|
|
32640
32884
|
}
|
|
32641
32885
|
static fromJS(data) {
|
|
@@ -32654,7 +32898,6 @@ export class GenerateProductionOrderPdf {
|
|
|
32654
32898
|
data["type"] = this.type;
|
|
32655
32899
|
data["includeOperations"] = this.includeOperations;
|
|
32656
32900
|
data["includeDrawing"] = this.includeDrawing;
|
|
32657
|
-
data["includeOperationText"] = this.includeOperationText;
|
|
32658
32901
|
return data;
|
|
32659
32902
|
}
|
|
32660
32903
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -13182,6 +13182,8 @@ export interface IMoveTrackingClient {
|
|
|
13182
13182
|
|
|
13183
13183
|
listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
|
|
13184
13184
|
|
|
13185
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto>;
|
|
13186
|
+
|
|
13185
13187
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
13186
13188
|
|
|
13187
13189
|
getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
|
|
@@ -13195,6 +13197,8 @@ export interface IMoveTrackingClient {
|
|
|
13195
13197
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
13196
13198
|
|
|
13197
13199
|
createLabel(trackingIds: string[]): Promise<DownloadDto>;
|
|
13200
|
+
|
|
13201
|
+
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto>;
|
|
13198
13202
|
}
|
|
13199
13203
|
|
|
13200
13204
|
export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
|
|
@@ -13248,6 +13252,46 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13248
13252
|
return Promise.resolve<TrackingParcelListDto>(null as any);
|
|
13249
13253
|
}
|
|
13250
13254
|
|
|
13255
|
+
listTrackingHistoryFlattened(request: TrackingRequestListDto): Promise<TrackingParcelFlattenedListDto> {
|
|
13256
|
+
let url_ = this.baseUrl + "/move/tracking/list/flattened";
|
|
13257
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
13258
|
+
|
|
13259
|
+
const content_ = JSON.stringify(request);
|
|
13260
|
+
|
|
13261
|
+
let options_: RequestInit = {
|
|
13262
|
+
body: content_,
|
|
13263
|
+
method: "POST",
|
|
13264
|
+
headers: {
|
|
13265
|
+
"Content-Type": "application/json",
|
|
13266
|
+
"Accept": "application/json"
|
|
13267
|
+
}
|
|
13268
|
+
};
|
|
13269
|
+
|
|
13270
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13271
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
13272
|
+
}).then((_response: Response) => {
|
|
13273
|
+
return this.processListTrackingHistoryFlattened(_response);
|
|
13274
|
+
});
|
|
13275
|
+
}
|
|
13276
|
+
|
|
13277
|
+
protected processListTrackingHistoryFlattened(response: Response): Promise<TrackingParcelFlattenedListDto> {
|
|
13278
|
+
const status = response.status;
|
|
13279
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13280
|
+
if (status === 200) {
|
|
13281
|
+
return response.text().then((_responseText) => {
|
|
13282
|
+
let result200: any = null;
|
|
13283
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13284
|
+
result200 = TrackingParcelFlattenedListDto.fromJS(resultData200);
|
|
13285
|
+
return result200;
|
|
13286
|
+
});
|
|
13287
|
+
} else if (status !== 200 && status !== 204) {
|
|
13288
|
+
return response.text().then((_responseText) => {
|
|
13289
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13290
|
+
});
|
|
13291
|
+
}
|
|
13292
|
+
return Promise.resolve<TrackingParcelFlattenedListDto>(null as any);
|
|
13293
|
+
}
|
|
13294
|
+
|
|
13251
13295
|
getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
|
|
13252
13296
|
let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
|
|
13253
13297
|
if (trackingId === undefined || trackingId === null)
|
|
@@ -13540,6 +13584,46 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
13540
13584
|
}
|
|
13541
13585
|
return Promise.resolve<DownloadDto>(null as any);
|
|
13542
13586
|
}
|
|
13587
|
+
|
|
13588
|
+
createLabelAndUpdateParcel(labelUpdate: LabelUpdateListDto): Promise<DownloadDto> {
|
|
13589
|
+
let url_ = this.baseUrl + "/move/tracking/labelupdate";
|
|
13590
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
13591
|
+
|
|
13592
|
+
const content_ = JSON.stringify(labelUpdate);
|
|
13593
|
+
|
|
13594
|
+
let options_: RequestInit = {
|
|
13595
|
+
body: content_,
|
|
13596
|
+
method: "POST",
|
|
13597
|
+
headers: {
|
|
13598
|
+
"Content-Type": "application/json",
|
|
13599
|
+
"Accept": "application/json"
|
|
13600
|
+
}
|
|
13601
|
+
};
|
|
13602
|
+
|
|
13603
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13604
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
13605
|
+
}).then((_response: Response) => {
|
|
13606
|
+
return this.processCreateLabelAndUpdateParcel(_response);
|
|
13607
|
+
});
|
|
13608
|
+
}
|
|
13609
|
+
|
|
13610
|
+
protected processCreateLabelAndUpdateParcel(response: Response): Promise<DownloadDto> {
|
|
13611
|
+
const status = response.status;
|
|
13612
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13613
|
+
if (status === 200) {
|
|
13614
|
+
return response.text().then((_responseText) => {
|
|
13615
|
+
let result200: any = null;
|
|
13616
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13617
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
13618
|
+
return result200;
|
|
13619
|
+
});
|
|
13620
|
+
} else if (status !== 200 && status !== 204) {
|
|
13621
|
+
return response.text().then((_responseText) => {
|
|
13622
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13623
|
+
});
|
|
13624
|
+
}
|
|
13625
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
13626
|
+
}
|
|
13543
13627
|
}
|
|
13544
13628
|
|
|
13545
13629
|
export interface IMesClient {
|
|
@@ -34737,7 +34821,7 @@ export interface IMarkdownNotesDto {
|
|
|
34737
34821
|
|
|
34738
34822
|
export class SaveMarkdownNotes implements ISaveMarkdownNotes {
|
|
34739
34823
|
id!: string;
|
|
34740
|
-
markdown
|
|
34824
|
+
markdown?: string;
|
|
34741
34825
|
|
|
34742
34826
|
constructor(data?: ISaveMarkdownNotes) {
|
|
34743
34827
|
if (data) {
|
|
@@ -34772,7 +34856,7 @@ export class SaveMarkdownNotes implements ISaveMarkdownNotes {
|
|
|
34772
34856
|
|
|
34773
34857
|
export interface ISaveMarkdownNotes {
|
|
34774
34858
|
id: string;
|
|
34775
|
-
markdown
|
|
34859
|
+
markdown?: string;
|
|
34776
34860
|
}
|
|
34777
34861
|
|
|
34778
34862
|
export class CncToolTypeDto implements ICncToolTypeDto {
|
|
@@ -37994,8 +38078,8 @@ export interface IBookingTransportRequestDto {
|
|
|
37994
38078
|
}
|
|
37995
38079
|
|
|
37996
38080
|
export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
37997
|
-
parcelId
|
|
37998
|
-
trackingId
|
|
38081
|
+
parcelId!: string;
|
|
38082
|
+
trackingId!: string;
|
|
37999
38083
|
comment?: string | null;
|
|
38000
38084
|
|
|
38001
38085
|
constructor(data?: IBookingItemRequestDto) {
|
|
@@ -38032,8 +38116,8 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
38032
38116
|
}
|
|
38033
38117
|
|
|
38034
38118
|
export interface IBookingItemRequestDto {
|
|
38035
|
-
parcelId
|
|
38036
|
-
trackingId
|
|
38119
|
+
parcelId: string;
|
|
38120
|
+
trackingId: string;
|
|
38037
38121
|
comment?: string | null;
|
|
38038
38122
|
}
|
|
38039
38123
|
|
|
@@ -38802,6 +38886,148 @@ export interface ITrackingRequestListDto {
|
|
|
38802
38886
|
continuationToken?: string | null;
|
|
38803
38887
|
}
|
|
38804
38888
|
|
|
38889
|
+
export class TrackingParcelFlattenedListDto implements ITrackingParcelFlattenedListDto {
|
|
38890
|
+
results!: TrackingHistoryFlattenedDto[];
|
|
38891
|
+
continuationToken?: string | null;
|
|
38892
|
+
|
|
38893
|
+
constructor(data?: ITrackingParcelFlattenedListDto) {
|
|
38894
|
+
if (data) {
|
|
38895
|
+
for (var property in data) {
|
|
38896
|
+
if (data.hasOwnProperty(property))
|
|
38897
|
+
(<any>this)[property] = (<any>data)[property];
|
|
38898
|
+
}
|
|
38899
|
+
}
|
|
38900
|
+
if (!data) {
|
|
38901
|
+
this.results = [];
|
|
38902
|
+
}
|
|
38903
|
+
}
|
|
38904
|
+
|
|
38905
|
+
init(_data?: any) {
|
|
38906
|
+
if (_data) {
|
|
38907
|
+
if (Array.isArray(_data["results"])) {
|
|
38908
|
+
this.results = [] as any;
|
|
38909
|
+
for (let item of _data["results"])
|
|
38910
|
+
this.results!.push(TrackingHistoryFlattenedDto.fromJS(item));
|
|
38911
|
+
}
|
|
38912
|
+
this.continuationToken = _data["continuationToken"];
|
|
38913
|
+
}
|
|
38914
|
+
}
|
|
38915
|
+
|
|
38916
|
+
static fromJS(data: any): TrackingParcelFlattenedListDto {
|
|
38917
|
+
data = typeof data === 'object' ? data : {};
|
|
38918
|
+
let result = new TrackingParcelFlattenedListDto();
|
|
38919
|
+
result.init(data);
|
|
38920
|
+
return result;
|
|
38921
|
+
}
|
|
38922
|
+
|
|
38923
|
+
toJSON(data?: any) {
|
|
38924
|
+
data = typeof data === 'object' ? data : {};
|
|
38925
|
+
if (Array.isArray(this.results)) {
|
|
38926
|
+
data["results"] = [];
|
|
38927
|
+
for (let item of this.results)
|
|
38928
|
+
data["results"].push(item.toJSON());
|
|
38929
|
+
}
|
|
38930
|
+
data["continuationToken"] = this.continuationToken;
|
|
38931
|
+
return data;
|
|
38932
|
+
}
|
|
38933
|
+
}
|
|
38934
|
+
|
|
38935
|
+
export interface ITrackingParcelFlattenedListDto {
|
|
38936
|
+
results: TrackingHistoryFlattenedDto[];
|
|
38937
|
+
continuationToken?: string | null;
|
|
38938
|
+
}
|
|
38939
|
+
|
|
38940
|
+
export class TrackingHistoryFlattenedDto implements ITrackingHistoryFlattenedDto {
|
|
38941
|
+
parcelId!: string;
|
|
38942
|
+
parcelKind!: ParcelKindDto;
|
|
38943
|
+
partName?: string | null;
|
|
38944
|
+
partNumber?: string | null;
|
|
38945
|
+
quantity?: number | null;
|
|
38946
|
+
material?: string | null;
|
|
38947
|
+
covered?: MaterialCoveredDto | null;
|
|
38948
|
+
trackingId!: string;
|
|
38949
|
+
palletNumber!: number;
|
|
38950
|
+
activeBooking?: boolean | null;
|
|
38951
|
+
currentTracking?: TrackingEventDto | null;
|
|
38952
|
+
trackingEvents!: TrackingEventDto[];
|
|
38953
|
+
|
|
38954
|
+
constructor(data?: ITrackingHistoryFlattenedDto) {
|
|
38955
|
+
if (data) {
|
|
38956
|
+
for (var property in data) {
|
|
38957
|
+
if (data.hasOwnProperty(property))
|
|
38958
|
+
(<any>this)[property] = (<any>data)[property];
|
|
38959
|
+
}
|
|
38960
|
+
}
|
|
38961
|
+
if (!data) {
|
|
38962
|
+
this.trackingEvents = [];
|
|
38963
|
+
}
|
|
38964
|
+
}
|
|
38965
|
+
|
|
38966
|
+
init(_data?: any) {
|
|
38967
|
+
if (_data) {
|
|
38968
|
+
this.parcelId = _data["parcelId"];
|
|
38969
|
+
this.parcelKind = _data["parcelKind"];
|
|
38970
|
+
this.partName = _data["partName"];
|
|
38971
|
+
this.partNumber = _data["partNumber"];
|
|
38972
|
+
this.quantity = _data["quantity"];
|
|
38973
|
+
this.material = _data["material"];
|
|
38974
|
+
this.covered = _data["covered"];
|
|
38975
|
+
this.trackingId = _data["trackingId"];
|
|
38976
|
+
this.palletNumber = _data["palletNumber"];
|
|
38977
|
+
this.activeBooking = _data["activeBooking"];
|
|
38978
|
+
this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : <any>undefined;
|
|
38979
|
+
if (Array.isArray(_data["trackingEvents"])) {
|
|
38980
|
+
this.trackingEvents = [] as any;
|
|
38981
|
+
for (let item of _data["trackingEvents"])
|
|
38982
|
+
this.trackingEvents!.push(TrackingEventDto.fromJS(item));
|
|
38983
|
+
}
|
|
38984
|
+
}
|
|
38985
|
+
}
|
|
38986
|
+
|
|
38987
|
+
static fromJS(data: any): TrackingHistoryFlattenedDto {
|
|
38988
|
+
data = typeof data === 'object' ? data : {};
|
|
38989
|
+
let result = new TrackingHistoryFlattenedDto();
|
|
38990
|
+
result.init(data);
|
|
38991
|
+
return result;
|
|
38992
|
+
}
|
|
38993
|
+
|
|
38994
|
+
toJSON(data?: any) {
|
|
38995
|
+
data = typeof data === 'object' ? data : {};
|
|
38996
|
+
data["parcelId"] = this.parcelId;
|
|
38997
|
+
data["parcelKind"] = this.parcelKind;
|
|
38998
|
+
data["partName"] = this.partName;
|
|
38999
|
+
data["partNumber"] = this.partNumber;
|
|
39000
|
+
data["quantity"] = this.quantity;
|
|
39001
|
+
data["material"] = this.material;
|
|
39002
|
+
data["covered"] = this.covered;
|
|
39003
|
+
data["trackingId"] = this.trackingId;
|
|
39004
|
+
data["palletNumber"] = this.palletNumber;
|
|
39005
|
+
data["activeBooking"] = this.activeBooking;
|
|
39006
|
+
data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : <any>undefined;
|
|
39007
|
+
if (Array.isArray(this.trackingEvents)) {
|
|
39008
|
+
data["trackingEvents"] = [];
|
|
39009
|
+
for (let item of this.trackingEvents)
|
|
39010
|
+
data["trackingEvents"].push(item.toJSON());
|
|
39011
|
+
}
|
|
39012
|
+
return data;
|
|
39013
|
+
}
|
|
39014
|
+
}
|
|
39015
|
+
|
|
39016
|
+
export interface ITrackingHistoryFlattenedDto {
|
|
39017
|
+
parcelId: string;
|
|
39018
|
+
parcelKind: ParcelKindDto;
|
|
39019
|
+
partName?: string | null;
|
|
39020
|
+
partNumber?: string | null;
|
|
39021
|
+
quantity?: number | null;
|
|
39022
|
+
material?: string | null;
|
|
39023
|
+
covered?: MaterialCoveredDto | null;
|
|
39024
|
+
trackingId: string;
|
|
39025
|
+
palletNumber: number;
|
|
39026
|
+
activeBooking?: boolean | null;
|
|
39027
|
+
currentTracking?: TrackingEventDto | null;
|
|
39028
|
+
trackingEvents: TrackingEventDto[];
|
|
39029
|
+
}
|
|
39030
|
+
|
|
38805
39031
|
export class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
|
|
38806
39032
|
parcelIds!: string[];
|
|
38807
39033
|
includeActiveBookings!: boolean;
|
|
@@ -38933,6 +39159,97 @@ export interface ITrackingHistoryUpdateDto {
|
|
|
38933
39159
|
parcelId: string;
|
|
38934
39160
|
}
|
|
38935
39161
|
|
|
39162
|
+
export class LabelUpdateListDto implements ILabelUpdateListDto {
|
|
39163
|
+
labelUpdates!: LabelUpdateDto[];
|
|
39164
|
+
|
|
39165
|
+
constructor(data?: ILabelUpdateListDto) {
|
|
39166
|
+
if (data) {
|
|
39167
|
+
for (var property in data) {
|
|
39168
|
+
if (data.hasOwnProperty(property))
|
|
39169
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39170
|
+
}
|
|
39171
|
+
}
|
|
39172
|
+
if (!data) {
|
|
39173
|
+
this.labelUpdates = [];
|
|
39174
|
+
}
|
|
39175
|
+
}
|
|
39176
|
+
|
|
39177
|
+
init(_data?: any) {
|
|
39178
|
+
if (_data) {
|
|
39179
|
+
if (Array.isArray(_data["labelUpdates"])) {
|
|
39180
|
+
this.labelUpdates = [] as any;
|
|
39181
|
+
for (let item of _data["labelUpdates"])
|
|
39182
|
+
this.labelUpdates!.push(LabelUpdateDto.fromJS(item));
|
|
39183
|
+
}
|
|
39184
|
+
}
|
|
39185
|
+
}
|
|
39186
|
+
|
|
39187
|
+
static fromJS(data: any): LabelUpdateListDto {
|
|
39188
|
+
data = typeof data === 'object' ? data : {};
|
|
39189
|
+
let result = new LabelUpdateListDto();
|
|
39190
|
+
result.init(data);
|
|
39191
|
+
return result;
|
|
39192
|
+
}
|
|
39193
|
+
|
|
39194
|
+
toJSON(data?: any) {
|
|
39195
|
+
data = typeof data === 'object' ? data : {};
|
|
39196
|
+
if (Array.isArray(this.labelUpdates)) {
|
|
39197
|
+
data["labelUpdates"] = [];
|
|
39198
|
+
for (let item of this.labelUpdates)
|
|
39199
|
+
data["labelUpdates"].push(item.toJSON());
|
|
39200
|
+
}
|
|
39201
|
+
return data;
|
|
39202
|
+
}
|
|
39203
|
+
}
|
|
39204
|
+
|
|
39205
|
+
export interface ILabelUpdateListDto {
|
|
39206
|
+
labelUpdates: LabelUpdateDto[];
|
|
39207
|
+
}
|
|
39208
|
+
|
|
39209
|
+
export class LabelUpdateDto implements ILabelUpdateDto {
|
|
39210
|
+
parcelId!: string;
|
|
39211
|
+
trackingId?: string | null;
|
|
39212
|
+
comment?: string | null;
|
|
39213
|
+
|
|
39214
|
+
constructor(data?: ILabelUpdateDto) {
|
|
39215
|
+
if (data) {
|
|
39216
|
+
for (var property in data) {
|
|
39217
|
+
if (data.hasOwnProperty(property))
|
|
39218
|
+
(<any>this)[property] = (<any>data)[property];
|
|
39219
|
+
}
|
|
39220
|
+
}
|
|
39221
|
+
}
|
|
39222
|
+
|
|
39223
|
+
init(_data?: any) {
|
|
39224
|
+
if (_data) {
|
|
39225
|
+
this.parcelId = _data["parcelId"];
|
|
39226
|
+
this.trackingId = _data["trackingId"];
|
|
39227
|
+
this.comment = _data["comment"];
|
|
39228
|
+
}
|
|
39229
|
+
}
|
|
39230
|
+
|
|
39231
|
+
static fromJS(data: any): LabelUpdateDto {
|
|
39232
|
+
data = typeof data === 'object' ? data : {};
|
|
39233
|
+
let result = new LabelUpdateDto();
|
|
39234
|
+
result.init(data);
|
|
39235
|
+
return result;
|
|
39236
|
+
}
|
|
39237
|
+
|
|
39238
|
+
toJSON(data?: any) {
|
|
39239
|
+
data = typeof data === 'object' ? data : {};
|
|
39240
|
+
data["parcelId"] = this.parcelId;
|
|
39241
|
+
data["trackingId"] = this.trackingId;
|
|
39242
|
+
data["comment"] = this.comment;
|
|
39243
|
+
return data;
|
|
39244
|
+
}
|
|
39245
|
+
}
|
|
39246
|
+
|
|
39247
|
+
export interface ILabelUpdateDto {
|
|
39248
|
+
parcelId: string;
|
|
39249
|
+
trackingId?: string | null;
|
|
39250
|
+
comment?: string | null;
|
|
39251
|
+
}
|
|
39252
|
+
|
|
38936
39253
|
export class WorkerDto implements IWorkerDto {
|
|
38937
39254
|
personnelNumber?: string | null;
|
|
38938
39255
|
badgeId?: string | null;
|
|
@@ -40534,7 +40851,6 @@ export class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
|
|
|
40534
40851
|
type!: ProductionOrderPdfType;
|
|
40535
40852
|
includeOperations!: boolean;
|
|
40536
40853
|
includeDrawing!: boolean;
|
|
40537
|
-
includeOperationText!: boolean;
|
|
40538
40854
|
|
|
40539
40855
|
constructor(data?: IGenerateProductionOrderPdf) {
|
|
40540
40856
|
if (data) {
|
|
@@ -40558,7 +40874,6 @@ export class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
|
|
|
40558
40874
|
this.type = _data["type"];
|
|
40559
40875
|
this.includeOperations = _data["includeOperations"];
|
|
40560
40876
|
this.includeDrawing = _data["includeDrawing"];
|
|
40561
|
-
this.includeOperationText = _data["includeOperationText"];
|
|
40562
40877
|
}
|
|
40563
40878
|
}
|
|
40564
40879
|
|
|
@@ -40579,7 +40894,6 @@ export class GenerateProductionOrderPdf implements IGenerateProductionOrderPdf {
|
|
|
40579
40894
|
data["type"] = this.type;
|
|
40580
40895
|
data["includeOperations"] = this.includeOperations;
|
|
40581
40896
|
data["includeDrawing"] = this.includeDrawing;
|
|
40582
|
-
data["includeOperationText"] = this.includeOperationText;
|
|
40583
40897
|
return data;
|
|
40584
40898
|
}
|
|
40585
40899
|
}
|
|
@@ -40589,7 +40903,6 @@ export interface IGenerateProductionOrderPdf {
|
|
|
40589
40903
|
type: ProductionOrderPdfType;
|
|
40590
40904
|
includeOperations: boolean;
|
|
40591
40905
|
includeDrawing: boolean;
|
|
40592
|
-
includeOperationText: boolean;
|
|
40593
40906
|
}
|
|
40594
40907
|
|
|
40595
40908
|
export type ProductionOrderPdfType = "Rich" | "Compact";
|