@ignos/api-client 20251013.0.12851-alpha → 20251021.0.12920

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.
@@ -15179,6 +15179,8 @@ export interface IMoveBookingClient {
15179
15179
  preBookGeneral(req: PreBookingGeneralRequestDto): Promise<PreBookingResultItemDto[]>;
15180
15180
 
15181
15181
  updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
15182
+
15183
+ exportBookings(includeTracking: boolean | undefined): Promise<DownloadDto>;
15182
15184
  }
15183
15185
 
15184
15186
  export class MoveBookingClient extends AuthorizedApiBase implements IMoveBookingClient {
@@ -15565,6 +15567,46 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
15565
15567
  }
15566
15568
  return Promise.resolve<BookingDto>(null as any);
15567
15569
  }
15570
+
15571
+ exportBookings(includeTracking: boolean | undefined): Promise<DownloadDto> {
15572
+ let url_ = this.baseUrl + "/move/booking/export?";
15573
+ if (includeTracking === null)
15574
+ throw new globalThis.Error("The parameter 'includeTracking' cannot be null.");
15575
+ else if (includeTracking !== undefined)
15576
+ url_ += "includeTracking=" + encodeURIComponent("" + includeTracking) + "&";
15577
+ url_ = url_.replace(/[?&]$/, "");
15578
+
15579
+ let options_: RequestInit = {
15580
+ method: "POST",
15581
+ headers: {
15582
+ "Accept": "application/json"
15583
+ }
15584
+ };
15585
+
15586
+ return this.transformOptions(options_).then(transformedOptions_ => {
15587
+ return this.http.fetch(url_, transformedOptions_);
15588
+ }).then((_response: Response) => {
15589
+ return this.processExportBookings(_response);
15590
+ });
15591
+ }
15592
+
15593
+ protected processExportBookings(response: Response): Promise<DownloadDto> {
15594
+ const status = response.status;
15595
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
15596
+ if (status === 200) {
15597
+ return response.text().then((_responseText) => {
15598
+ let result200: any = null;
15599
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
15600
+ result200 = DownloadDto.fromJS(resultData200);
15601
+ return result200;
15602
+ });
15603
+ } else if (status !== 200 && status !== 204) {
15604
+ return response.text().then((_responseText) => {
15605
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
15606
+ });
15607
+ }
15608
+ return Promise.resolve<DownloadDto>(null as any);
15609
+ }
15568
15610
  }
15569
15611
 
15570
15612
  export interface IMoveLocationsClient {
@@ -16245,6 +16287,8 @@ export interface IMoveTrackingClient {
16245
16287
  createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
16246
16288
 
16247
16289
  deleteTrackingHistory(trackingId: string): Promise<void>;
16290
+
16291
+ exportParcels(): Promise<DownloadDto>;
16248
16292
  }
16249
16293
 
16250
16294
  export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTrackingClient {
@@ -16590,6 +16634,42 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
16590
16634
  }
16591
16635
  return Promise.resolve<void>(null as any);
16592
16636
  }
16637
+
16638
+ exportParcels(): Promise<DownloadDto> {
16639
+ let url_ = this.baseUrl + "/move/tracking/export";
16640
+ url_ = url_.replace(/[?&]$/, "");
16641
+
16642
+ let options_: RequestInit = {
16643
+ method: "POST",
16644
+ headers: {
16645
+ "Accept": "application/json"
16646
+ }
16647
+ };
16648
+
16649
+ return this.transformOptions(options_).then(transformedOptions_ => {
16650
+ return this.http.fetch(url_, transformedOptions_);
16651
+ }).then((_response: Response) => {
16652
+ return this.processExportParcels(_response);
16653
+ });
16654
+ }
16655
+
16656
+ protected processExportParcels(response: Response): Promise<DownloadDto> {
16657
+ const status = response.status;
16658
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
16659
+ if (status === 200) {
16660
+ return response.text().then((_responseText) => {
16661
+ let result200: any = null;
16662
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
16663
+ result200 = DownloadDto.fromJS(resultData200);
16664
+ return result200;
16665
+ });
16666
+ } else if (status !== 200 && status !== 204) {
16667
+ return response.text().then((_responseText) => {
16668
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
16669
+ });
16670
+ }
16671
+ return Promise.resolve<DownloadDto>(null as any);
16672
+ }
16593
16673
  }
16594
16674
 
16595
16675
  export interface IParcelCategoryClient {
@@ -46065,6 +46145,7 @@ export class BookingItemDto implements IBookingItemDto {
46065
46145
  palletNumber!: number;
46066
46146
  comment?: string | null;
46067
46147
  category?: string | null;
46148
+ trackingHistory?: TrackingHistoryDto | null;
46068
46149
 
46069
46150
  constructor(data?: IBookingItemDto) {
46070
46151
  if (data) {
@@ -46081,6 +46162,7 @@ export class BookingItemDto implements IBookingItemDto {
46081
46162
  this.palletNumber = _data["palletNumber"];
46082
46163
  this.comment = _data["comment"];
46083
46164
  this.category = _data["category"];
46165
+ this.trackingHistory = _data["trackingHistory"] ? TrackingHistoryDto.fromJS(_data["trackingHistory"]) : undefined as any;
46084
46166
  }
46085
46167
  }
46086
46168
 
@@ -46097,6 +46179,7 @@ export class BookingItemDto implements IBookingItemDto {
46097
46179
  data["palletNumber"] = this.palletNumber;
46098
46180
  data["comment"] = this.comment;
46099
46181
  data["category"] = this.category;
46182
+ data["trackingHistory"] = this.trackingHistory ? this.trackingHistory.toJSON() : undefined as any;
46100
46183
  return data;
46101
46184
  }
46102
46185
  }
@@ -46106,6 +46189,158 @@ export interface IBookingItemDto {
46106
46189
  palletNumber: number;
46107
46190
  comment?: string | null;
46108
46191
  category?: string | null;
46192
+ trackingHistory?: TrackingHistoryDto | null;
46193
+ }
46194
+
46195
+ export class TrackingHistoryDto implements ITrackingHistoryDto {
46196
+ trackingId!: string;
46197
+ palletNumber!: number;
46198
+ activeBooking?: boolean | null;
46199
+ materialOperation?: number | null;
46200
+ materialLine?: number | null;
46201
+ materialPartName?: string | null;
46202
+ materialPartNumber?: string | null;
46203
+ category?: string | null;
46204
+ currentTracking?: TrackingEventDto | null;
46205
+ trackingEvents!: TrackingEventDto[];
46206
+ suggestions?: SuggestionsItemDto | null;
46207
+
46208
+ constructor(data?: ITrackingHistoryDto) {
46209
+ if (data) {
46210
+ for (var property in data) {
46211
+ if (data.hasOwnProperty(property))
46212
+ (this as any)[property] = (data as any)[property];
46213
+ }
46214
+ }
46215
+ if (!data) {
46216
+ this.trackingEvents = [];
46217
+ }
46218
+ }
46219
+
46220
+ init(_data?: any) {
46221
+ if (_data) {
46222
+ this.trackingId = _data["trackingId"];
46223
+ this.palletNumber = _data["palletNumber"];
46224
+ this.activeBooking = _data["activeBooking"];
46225
+ this.materialOperation = _data["materialOperation"];
46226
+ this.materialLine = _data["materialLine"];
46227
+ this.materialPartName = _data["materialPartName"];
46228
+ this.materialPartNumber = _data["materialPartNumber"];
46229
+ this.category = _data["category"];
46230
+ this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined as any;
46231
+ if (Array.isArray(_data["trackingEvents"])) {
46232
+ this.trackingEvents = [] as any;
46233
+ for (let item of _data["trackingEvents"])
46234
+ this.trackingEvents!.push(TrackingEventDto.fromJS(item));
46235
+ }
46236
+ this.suggestions = _data["suggestions"] ? SuggestionsItemDto.fromJS(_data["suggestions"]) : undefined as any;
46237
+ }
46238
+ }
46239
+
46240
+ static fromJS(data: any): TrackingHistoryDto {
46241
+ data = typeof data === 'object' ? data : {};
46242
+ let result = new TrackingHistoryDto();
46243
+ result.init(data);
46244
+ return result;
46245
+ }
46246
+
46247
+ toJSON(data?: any) {
46248
+ data = typeof data === 'object' ? data : {};
46249
+ data["trackingId"] = this.trackingId;
46250
+ data["palletNumber"] = this.palletNumber;
46251
+ data["activeBooking"] = this.activeBooking;
46252
+ data["materialOperation"] = this.materialOperation;
46253
+ data["materialLine"] = this.materialLine;
46254
+ data["materialPartName"] = this.materialPartName;
46255
+ data["materialPartNumber"] = this.materialPartNumber;
46256
+ data["category"] = this.category;
46257
+ data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined as any;
46258
+ if (Array.isArray(this.trackingEvents)) {
46259
+ data["trackingEvents"] = [];
46260
+ for (let item of this.trackingEvents)
46261
+ data["trackingEvents"].push(item ? item.toJSON() : undefined as any);
46262
+ }
46263
+ data["suggestions"] = this.suggestions ? this.suggestions.toJSON() : undefined as any;
46264
+ return data;
46265
+ }
46266
+ }
46267
+
46268
+ export interface ITrackingHistoryDto {
46269
+ trackingId: string;
46270
+ palletNumber: number;
46271
+ activeBooking?: boolean | null;
46272
+ materialOperation?: number | null;
46273
+ materialLine?: number | null;
46274
+ materialPartName?: string | null;
46275
+ materialPartNumber?: string | null;
46276
+ category?: string | null;
46277
+ currentTracking?: TrackingEventDto | null;
46278
+ trackingEvents: TrackingEventDto[];
46279
+ suggestions?: SuggestionsItemDto | null;
46280
+ }
46281
+
46282
+ export class TrackingEventDto implements ITrackingEventDto {
46283
+ id!: number;
46284
+ created!: Date;
46285
+ createdBy!: string;
46286
+ createdById!: string;
46287
+ location?: LocationDto | null;
46288
+ status!: TrackingStatusDto;
46289
+ bookingId?: string | null;
46290
+ comment?: string | null;
46291
+
46292
+ constructor(data?: ITrackingEventDto) {
46293
+ if (data) {
46294
+ for (var property in data) {
46295
+ if (data.hasOwnProperty(property))
46296
+ (this as any)[property] = (data as any)[property];
46297
+ }
46298
+ }
46299
+ }
46300
+
46301
+ init(_data?: any) {
46302
+ if (_data) {
46303
+ this.id = _data["id"];
46304
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
46305
+ this.createdBy = _data["createdBy"];
46306
+ this.createdById = _data["createdById"];
46307
+ this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : undefined as any;
46308
+ this.status = _data["status"];
46309
+ this.bookingId = _data["bookingId"];
46310
+ this.comment = _data["comment"];
46311
+ }
46312
+ }
46313
+
46314
+ static fromJS(data: any): TrackingEventDto {
46315
+ data = typeof data === 'object' ? data : {};
46316
+ let result = new TrackingEventDto();
46317
+ result.init(data);
46318
+ return result;
46319
+ }
46320
+
46321
+ toJSON(data?: any) {
46322
+ data = typeof data === 'object' ? data : {};
46323
+ data["id"] = this.id;
46324
+ data["created"] = this.created ? this.created.toISOString() : undefined as any;
46325
+ data["createdBy"] = this.createdBy;
46326
+ data["createdById"] = this.createdById;
46327
+ data["location"] = this.location ? this.location.toJSON() : undefined as any;
46328
+ data["status"] = this.status;
46329
+ data["bookingId"] = this.bookingId;
46330
+ data["comment"] = this.comment;
46331
+ return data;
46332
+ }
46333
+ }
46334
+
46335
+ export interface ITrackingEventDto {
46336
+ id: number;
46337
+ created: Date;
46338
+ createdBy: string;
46339
+ createdById: string;
46340
+ location?: LocationDto | null;
46341
+ status: TrackingStatusDto;
46342
+ bookingId?: string | null;
46343
+ comment?: string | null;
46109
46344
  }
46110
46345
 
46111
46346
  export class LocationDto implements ILocationDto {
@@ -46166,6 +46401,80 @@ export interface ILocationDto {
46166
46401
 
46167
46402
  export type LocationKindDto = "Warehouse" | "Zone" | "Location";
46168
46403
 
46404
+ export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress" | "Completed" | "Created";
46405
+
46406
+ export class SuggestionsItemDto implements ISuggestionsItemDto {
46407
+ trackingId?: string | null;
46408
+ fromAutoFill?: LocationDto | null;
46409
+ toAutoFill?: LocationDto | null;
46410
+ fromSuggestions!: LocationDto[];
46411
+ toSuggestions!: LocationDto[];
46412
+
46413
+ constructor(data?: ISuggestionsItemDto) {
46414
+ if (data) {
46415
+ for (var property in data) {
46416
+ if (data.hasOwnProperty(property))
46417
+ (this as any)[property] = (data as any)[property];
46418
+ }
46419
+ }
46420
+ if (!data) {
46421
+ this.fromSuggestions = [];
46422
+ this.toSuggestions = [];
46423
+ }
46424
+ }
46425
+
46426
+ init(_data?: any) {
46427
+ if (_data) {
46428
+ this.trackingId = _data["trackingId"];
46429
+ this.fromAutoFill = _data["fromAutoFill"] ? LocationDto.fromJS(_data["fromAutoFill"]) : undefined as any;
46430
+ this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : undefined as any;
46431
+ if (Array.isArray(_data["fromSuggestions"])) {
46432
+ this.fromSuggestions = [] as any;
46433
+ for (let item of _data["fromSuggestions"])
46434
+ this.fromSuggestions!.push(LocationDto.fromJS(item));
46435
+ }
46436
+ if (Array.isArray(_data["toSuggestions"])) {
46437
+ this.toSuggestions = [] as any;
46438
+ for (let item of _data["toSuggestions"])
46439
+ this.toSuggestions!.push(LocationDto.fromJS(item));
46440
+ }
46441
+ }
46442
+ }
46443
+
46444
+ static fromJS(data: any): SuggestionsItemDto {
46445
+ data = typeof data === 'object' ? data : {};
46446
+ let result = new SuggestionsItemDto();
46447
+ result.init(data);
46448
+ return result;
46449
+ }
46450
+
46451
+ toJSON(data?: any) {
46452
+ data = typeof data === 'object' ? data : {};
46453
+ data["trackingId"] = this.trackingId;
46454
+ data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : undefined as any;
46455
+ data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : undefined as any;
46456
+ if (Array.isArray(this.fromSuggestions)) {
46457
+ data["fromSuggestions"] = [];
46458
+ for (let item of this.fromSuggestions)
46459
+ data["fromSuggestions"].push(item ? item.toJSON() : undefined as any);
46460
+ }
46461
+ if (Array.isArray(this.toSuggestions)) {
46462
+ data["toSuggestions"] = [];
46463
+ for (let item of this.toSuggestions)
46464
+ data["toSuggestions"].push(item ? item.toJSON() : undefined as any);
46465
+ }
46466
+ return data;
46467
+ }
46468
+ }
46469
+
46470
+ export interface ISuggestionsItemDto {
46471
+ trackingId?: string | null;
46472
+ fromAutoFill?: LocationDto | null;
46473
+ toAutoFill?: LocationDto | null;
46474
+ fromSuggestions: LocationDto[];
46475
+ toSuggestions: LocationDto[];
46476
+ }
46477
+
46169
46478
  export class BookingRequestListDto implements IBookingRequestListDto {
46170
46479
  pageSize?: number | null;
46171
46480
  parcelIdFilter?: string[] | null;
@@ -47247,78 +47556,6 @@ export interface ISuggestionsParcelDto {
47247
47556
  items: SuggestionsItemDto[];
47248
47557
  }
47249
47558
 
47250
- export class SuggestionsItemDto implements ISuggestionsItemDto {
47251
- trackingId?: string | null;
47252
- fromAutoFill?: LocationDto | null;
47253
- toAutoFill?: LocationDto | null;
47254
- fromSuggestions!: LocationDto[];
47255
- toSuggestions!: LocationDto[];
47256
-
47257
- constructor(data?: ISuggestionsItemDto) {
47258
- if (data) {
47259
- for (var property in data) {
47260
- if (data.hasOwnProperty(property))
47261
- (this as any)[property] = (data as any)[property];
47262
- }
47263
- }
47264
- if (!data) {
47265
- this.fromSuggestions = [];
47266
- this.toSuggestions = [];
47267
- }
47268
- }
47269
-
47270
- init(_data?: any) {
47271
- if (_data) {
47272
- this.trackingId = _data["trackingId"];
47273
- this.fromAutoFill = _data["fromAutoFill"] ? LocationDto.fromJS(_data["fromAutoFill"]) : undefined as any;
47274
- this.toAutoFill = _data["toAutoFill"] ? LocationDto.fromJS(_data["toAutoFill"]) : undefined as any;
47275
- if (Array.isArray(_data["fromSuggestions"])) {
47276
- this.fromSuggestions = [] as any;
47277
- for (let item of _data["fromSuggestions"])
47278
- this.fromSuggestions!.push(LocationDto.fromJS(item));
47279
- }
47280
- if (Array.isArray(_data["toSuggestions"])) {
47281
- this.toSuggestions = [] as any;
47282
- for (let item of _data["toSuggestions"])
47283
- this.toSuggestions!.push(LocationDto.fromJS(item));
47284
- }
47285
- }
47286
- }
47287
-
47288
- static fromJS(data: any): SuggestionsItemDto {
47289
- data = typeof data === 'object' ? data : {};
47290
- let result = new SuggestionsItemDto();
47291
- result.init(data);
47292
- return result;
47293
- }
47294
-
47295
- toJSON(data?: any) {
47296
- data = typeof data === 'object' ? data : {};
47297
- data["trackingId"] = this.trackingId;
47298
- data["fromAutoFill"] = this.fromAutoFill ? this.fromAutoFill.toJSON() : undefined as any;
47299
- data["toAutoFill"] = this.toAutoFill ? this.toAutoFill.toJSON() : undefined as any;
47300
- if (Array.isArray(this.fromSuggestions)) {
47301
- data["fromSuggestions"] = [];
47302
- for (let item of this.fromSuggestions)
47303
- data["fromSuggestions"].push(item ? item.toJSON() : undefined as any);
47304
- }
47305
- if (Array.isArray(this.toSuggestions)) {
47306
- data["toSuggestions"] = [];
47307
- for (let item of this.toSuggestions)
47308
- data["toSuggestions"].push(item ? item.toJSON() : undefined as any);
47309
- }
47310
- return data;
47311
- }
47312
- }
47313
-
47314
- export interface ISuggestionsItemDto {
47315
- trackingId?: string | null;
47316
- fromAutoFill?: LocationDto | null;
47317
- toAutoFill?: LocationDto | null;
47318
- fromSuggestions: LocationDto[];
47319
- toSuggestions: LocationDto[];
47320
- }
47321
-
47322
47559
  export type SuggestionTypeDto = "Other" | "ChipDisposal" | "Garbage";
47323
47560
 
47324
47561
  export class SuggestionsMaterialItemDto implements ISuggestionsMaterialItemDto {
@@ -48105,159 +48342,6 @@ export interface ITrackingParcelDto {
48105
48342
  materialItems: TrackingHistoryDto[];
48106
48343
  }
48107
48344
 
48108
- export class TrackingHistoryDto implements ITrackingHistoryDto {
48109
- trackingId!: string;
48110
- palletNumber!: number;
48111
- activeBooking?: boolean | null;
48112
- materialOperation?: number | null;
48113
- materialLine?: number | null;
48114
- materialPartName?: string | null;
48115
- materialPartNumber?: string | null;
48116
- category?: string | null;
48117
- currentTracking?: TrackingEventDto | null;
48118
- trackingEvents!: TrackingEventDto[];
48119
- suggestions?: SuggestionsItemDto | null;
48120
-
48121
- constructor(data?: ITrackingHistoryDto) {
48122
- if (data) {
48123
- for (var property in data) {
48124
- if (data.hasOwnProperty(property))
48125
- (this as any)[property] = (data as any)[property];
48126
- }
48127
- }
48128
- if (!data) {
48129
- this.trackingEvents = [];
48130
- }
48131
- }
48132
-
48133
- init(_data?: any) {
48134
- if (_data) {
48135
- this.trackingId = _data["trackingId"];
48136
- this.palletNumber = _data["palletNumber"];
48137
- this.activeBooking = _data["activeBooking"];
48138
- this.materialOperation = _data["materialOperation"];
48139
- this.materialLine = _data["materialLine"];
48140
- this.materialPartName = _data["materialPartName"];
48141
- this.materialPartNumber = _data["materialPartNumber"];
48142
- this.category = _data["category"];
48143
- this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : undefined as any;
48144
- if (Array.isArray(_data["trackingEvents"])) {
48145
- this.trackingEvents = [] as any;
48146
- for (let item of _data["trackingEvents"])
48147
- this.trackingEvents!.push(TrackingEventDto.fromJS(item));
48148
- }
48149
- this.suggestions = _data["suggestions"] ? SuggestionsItemDto.fromJS(_data["suggestions"]) : undefined as any;
48150
- }
48151
- }
48152
-
48153
- static fromJS(data: any): TrackingHistoryDto {
48154
- data = typeof data === 'object' ? data : {};
48155
- let result = new TrackingHistoryDto();
48156
- result.init(data);
48157
- return result;
48158
- }
48159
-
48160
- toJSON(data?: any) {
48161
- data = typeof data === 'object' ? data : {};
48162
- data["trackingId"] = this.trackingId;
48163
- data["palletNumber"] = this.palletNumber;
48164
- data["activeBooking"] = this.activeBooking;
48165
- data["materialOperation"] = this.materialOperation;
48166
- data["materialLine"] = this.materialLine;
48167
- data["materialPartName"] = this.materialPartName;
48168
- data["materialPartNumber"] = this.materialPartNumber;
48169
- data["category"] = this.category;
48170
- data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : undefined as any;
48171
- if (Array.isArray(this.trackingEvents)) {
48172
- data["trackingEvents"] = [];
48173
- for (let item of this.trackingEvents)
48174
- data["trackingEvents"].push(item ? item.toJSON() : undefined as any);
48175
- }
48176
- data["suggestions"] = this.suggestions ? this.suggestions.toJSON() : undefined as any;
48177
- return data;
48178
- }
48179
- }
48180
-
48181
- export interface ITrackingHistoryDto {
48182
- trackingId: string;
48183
- palletNumber: number;
48184
- activeBooking?: boolean | null;
48185
- materialOperation?: number | null;
48186
- materialLine?: number | null;
48187
- materialPartName?: string | null;
48188
- materialPartNumber?: string | null;
48189
- category?: string | null;
48190
- currentTracking?: TrackingEventDto | null;
48191
- trackingEvents: TrackingEventDto[];
48192
- suggestions?: SuggestionsItemDto | null;
48193
- }
48194
-
48195
- export class TrackingEventDto implements ITrackingEventDto {
48196
- id!: number;
48197
- created!: Date;
48198
- createdBy!: string;
48199
- createdById!: string;
48200
- location?: LocationDto | null;
48201
- status!: TrackingStatusDto;
48202
- bookingId?: string | null;
48203
- comment?: string | null;
48204
-
48205
- constructor(data?: ITrackingEventDto) {
48206
- if (data) {
48207
- for (var property in data) {
48208
- if (data.hasOwnProperty(property))
48209
- (this as any)[property] = (data as any)[property];
48210
- }
48211
- }
48212
- }
48213
-
48214
- init(_data?: any) {
48215
- if (_data) {
48216
- this.id = _data["id"];
48217
- this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
48218
- this.createdBy = _data["createdBy"];
48219
- this.createdById = _data["createdById"];
48220
- this.location = _data["location"] ? LocationDto.fromJS(_data["location"]) : undefined as any;
48221
- this.status = _data["status"];
48222
- this.bookingId = _data["bookingId"];
48223
- this.comment = _data["comment"];
48224
- }
48225
- }
48226
-
48227
- static fromJS(data: any): TrackingEventDto {
48228
- data = typeof data === 'object' ? data : {};
48229
- let result = new TrackingEventDto();
48230
- result.init(data);
48231
- return result;
48232
- }
48233
-
48234
- toJSON(data?: any) {
48235
- data = typeof data === 'object' ? data : {};
48236
- data["id"] = this.id;
48237
- data["created"] = this.created ? this.created.toISOString() : undefined as any;
48238
- data["createdBy"] = this.createdBy;
48239
- data["createdById"] = this.createdById;
48240
- data["location"] = this.location ? this.location.toJSON() : undefined as any;
48241
- data["status"] = this.status;
48242
- data["bookingId"] = this.bookingId;
48243
- data["comment"] = this.comment;
48244
- return data;
48245
- }
48246
- }
48247
-
48248
- export interface ITrackingEventDto {
48249
- id: number;
48250
- created: Date;
48251
- createdBy: string;
48252
- createdById: string;
48253
- location?: LocationDto | null;
48254
- status: TrackingStatusDto;
48255
- bookingId?: string | null;
48256
- comment?: string | null;
48257
- }
48258
-
48259
- export type TrackingStatusDto = "Manual" | "Pending" | "Cancelled" | "InProgress" | "Completed" | "Created";
48260
-
48261
48345
  export class TrackingRequestListDto implements ITrackingRequestListDto {
48262
48346
  pageSize?: number | null;
48263
48347
  parcelIdFilter?: string[] | null;
@@ -49448,7 +49532,6 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
49448
49532
  quantity!: number;
49449
49533
  startedQuantity?: number | null;
49450
49534
  ongoingQuantity?: number | null;
49451
- earlierOperationsScrappedQuantity!: number;
49452
49535
  availableToStartQuantity!: number;
49453
49536
  workInstructions?: string | null;
49454
49537
  note?: string | null;
@@ -49492,7 +49575,6 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
49492
49575
  this.quantity = _data["quantity"];
49493
49576
  this.startedQuantity = _data["startedQuantity"];
49494
49577
  this.ongoingQuantity = _data["ongoingQuantity"];
49495
- this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
49496
49578
  this.availableToStartQuantity = _data["availableToStartQuantity"];
49497
49579
  this.workInstructions = _data["workInstructions"];
49498
49580
  this.note = _data["note"];
@@ -49536,7 +49618,6 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
49536
49618
  data["quantity"] = this.quantity;
49537
49619
  data["startedQuantity"] = this.startedQuantity;
49538
49620
  data["ongoingQuantity"] = this.ongoingQuantity;
49539
- data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
49540
49621
  data["availableToStartQuantity"] = this.availableToStartQuantity;
49541
49622
  data["workInstructions"] = this.workInstructions;
49542
49623
  data["note"] = this.note;
@@ -49573,7 +49654,6 @@ export interface IProductionOrderOperationDto {
49573
49654
  quantity: number;
49574
49655
  startedQuantity?: number | null;
49575
49656
  ongoingQuantity?: number | null;
49576
- earlierOperationsScrappedQuantity: number;
49577
49657
  availableToStartQuantity: number;
49578
49658
  workInstructions?: string | null;
49579
49659
  note?: string | null;
@@ -50759,7 +50839,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
50759
50839
  producedQuantity!: number;
50760
50840
  scrappedQuantity!: number;
50761
50841
  availableToStartQuantity!: number;
50762
- earlierOperationsScrappedQuantity!: number;
50763
50842
  startedQuantity?: number | null;
50764
50843
  ongoingQuantity?: number | null;
50765
50844
  project?: WorkOrderProjectDto | null;
@@ -50823,7 +50902,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
50823
50902
  this.producedQuantity = _data["producedQuantity"];
50824
50903
  this.scrappedQuantity = _data["scrappedQuantity"];
50825
50904
  this.availableToStartQuantity = _data["availableToStartQuantity"];
50826
- this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
50827
50905
  this.startedQuantity = _data["startedQuantity"];
50828
50906
  this.ongoingQuantity = _data["ongoingQuantity"];
50829
50907
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined as any;
@@ -50884,7 +50962,6 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
50884
50962
  data["producedQuantity"] = this.producedQuantity;
50885
50963
  data["scrappedQuantity"] = this.scrappedQuantity;
50886
50964
  data["availableToStartQuantity"] = this.availableToStartQuantity;
50887
- data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
50888
50965
  data["startedQuantity"] = this.startedQuantity;
50889
50966
  data["ongoingQuantity"] = this.ongoingQuantity;
50890
50967
  data["project"] = this.project ? this.project.toJSON() : undefined as any;
@@ -50938,7 +51015,6 @@ export interface IProductionScheduleOperationDto {
50938
51015
  producedQuantity: number;
50939
51016
  scrappedQuantity: number;
50940
51017
  availableToStartQuantity: number;
50941
- earlierOperationsScrappedQuantity: number;
50942
51018
  startedQuantity?: number | null;
50943
51019
  ongoingQuantity?: number | null;
50944
51020
  project?: WorkOrderProjectDto | null;
@@ -50986,7 +51062,6 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
50986
51062
  resourceDepartmentName?: string | null;
50987
51063
  producedQuantity!: number;
50988
51064
  scrappedQuantity!: number;
50989
- earlierOperationsScrappedQuantity!: number;
50990
51065
  startedQuantity?: number | null;
50991
51066
 
50992
51067
  constructor(data?: ISurroundingOperationDto) {
@@ -51015,7 +51090,6 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
51015
51090
  this.resourceDepartmentName = _data["resourceDepartmentName"];
51016
51091
  this.producedQuantity = _data["producedQuantity"];
51017
51092
  this.scrappedQuantity = _data["scrappedQuantity"];
51018
- this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
51019
51093
  this.startedQuantity = _data["startedQuantity"];
51020
51094
  }
51021
51095
  }
@@ -51044,7 +51118,6 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
51044
51118
  data["resourceDepartmentName"] = this.resourceDepartmentName;
51045
51119
  data["producedQuantity"] = this.producedQuantity;
51046
51120
  data["scrappedQuantity"] = this.scrappedQuantity;
51047
- data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
51048
51121
  data["startedQuantity"] = this.startedQuantity;
51049
51122
  return data;
51050
51123
  }
@@ -51066,7 +51139,6 @@ export interface ISurroundingOperationDto {
51066
51139
  resourceDepartmentName?: string | null;
51067
51140
  producedQuantity: number;
51068
51141
  scrappedQuantity: number;
51069
- earlierOperationsScrappedQuantity: number;
51070
51142
  startedQuantity?: number | null;
51071
51143
  }
51072
51144