@ignos/api-client 20240820.0.10076 → 20240828.0.10152

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.
@@ -13084,13 +13084,13 @@ export class MoveParcelsClient extends AuthorizedApiBase implements IMoveParcels
13084
13084
 
13085
13085
  export interface IMoveTrackingClient {
13086
13086
 
13087
- listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto>;
13087
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto>;
13088
13088
 
13089
- getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingHistoryDto>;
13089
+ getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
13090
13090
 
13091
13091
  getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto>;
13092
13092
 
13093
- listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]>;
13093
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]>;
13094
13094
 
13095
13095
  createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
13096
13096
 
@@ -13112,7 +13112,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13112
13112
  this.baseUrl = baseUrl ?? "";
13113
13113
  }
13114
13114
 
13115
- listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingHistoryListDto> {
13115
+ listTrackingHistory(request: TrackingRequestListDto): Promise<TrackingParcelListDto> {
13116
13116
  let url_ = this.baseUrl + "/move/tracking/list";
13117
13117
  url_ = url_.replace(/[?&]$/, "");
13118
13118
 
@@ -13134,14 +13134,14 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13134
13134
  });
13135
13135
  }
13136
13136
 
13137
- protected processListTrackingHistory(response: Response): Promise<TrackingHistoryListDto> {
13137
+ protected processListTrackingHistory(response: Response): Promise<TrackingParcelListDto> {
13138
13138
  const status = response.status;
13139
13139
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13140
13140
  if (status === 200) {
13141
13141
  return response.text().then((_responseText) => {
13142
13142
  let result200: any = null;
13143
13143
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13144
- result200 = TrackingHistoryListDto.fromJS(resultData200);
13144
+ result200 = TrackingParcelListDto.fromJS(resultData200);
13145
13145
  return result200;
13146
13146
  });
13147
13147
  } else if (status !== 200 && status !== 204) {
@@ -13149,10 +13149,10 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13149
13149
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13150
13150
  });
13151
13151
  }
13152
- return Promise.resolve<TrackingHistoryListDto>(null as any);
13152
+ return Promise.resolve<TrackingParcelListDto>(null as any);
13153
13153
  }
13154
13154
 
13155
- getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingHistoryDto> {
13155
+ getTrackingHistory(trackingId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
13156
13156
  let url_ = this.baseUrl + "/move/tracking/{trackingId}?";
13157
13157
  if (trackingId === undefined || trackingId === null)
13158
13158
  throw new Error("The parameter 'trackingId' must be defined.");
@@ -13177,14 +13177,14 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13177
13177
  });
13178
13178
  }
13179
13179
 
13180
- protected processGetTrackingHistory(response: Response): Promise<TrackingHistoryDto> {
13180
+ protected processGetTrackingHistory(response: Response): Promise<TrackingParcelDto> {
13181
13181
  const status = response.status;
13182
13182
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13183
13183
  if (status === 200) {
13184
13184
  return response.text().then((_responseText) => {
13185
13185
  let result200: any = null;
13186
13186
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13187
- result200 = TrackingHistoryDto.fromJS(resultData200);
13187
+ result200 = TrackingParcelDto.fromJS(resultData200);
13188
13188
  return result200;
13189
13189
  });
13190
13190
  } else if (status !== 200 && status !== 204) {
@@ -13192,7 +13192,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13192
13192
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13193
13193
  });
13194
13194
  }
13195
- return Promise.resolve<TrackingHistoryDto>(null as any);
13195
+ return Promise.resolve<TrackingParcelDto>(null as any);
13196
13196
  }
13197
13197
 
13198
13198
  getParcelTrackingHistory(parcelId: string, includeActiveBookings: boolean | undefined): Promise<TrackingParcelDto> {
@@ -13238,7 +13238,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
13238
13238
  return Promise.resolve<TrackingParcelDto>(null as any);
13239
13239
  }
13240
13240
 
13241
- listParcelTrackingHistory(trackingParcelList: TrackingParcelListDto): Promise<TrackingParcelDto[]> {
13241
+ listParcelTrackingHistory(trackingParcelList: TrackingParcelRequestListDto): Promise<TrackingParcelDto[]> {
13242
13242
  let url_ = this.baseUrl + "/move/tracking/parcel/list";
13243
13243
  url_ = url_.replace(/[?&]$/, "");
13244
13244
 
@@ -19170,6 +19170,158 @@ export class CustomerOrdersClient extends AuthorizedApiBase implements ICustomer
19170
19170
  }
19171
19171
  }
19172
19172
 
19173
+ export interface IErpUsersClient {
19174
+
19175
+ listUsers(request: ListErpUsers | undefined): Promise<PagedResultOfErpUserDto>;
19176
+ }
19177
+
19178
+ export class ErpUsersClient extends AuthorizedApiBase implements IErpUsersClient {
19179
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
19180
+ private baseUrl: string;
19181
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
19182
+
19183
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
19184
+ super(configuration);
19185
+ this.http = http ? http : window as any;
19186
+ this.baseUrl = baseUrl ?? "";
19187
+ }
19188
+
19189
+ listUsers(request: ListErpUsers | undefined): Promise<PagedResultOfErpUserDto> {
19190
+ let url_ = this.baseUrl + "/erp/users/list";
19191
+ url_ = url_.replace(/[?&]$/, "");
19192
+
19193
+ const content_ = JSON.stringify(request);
19194
+
19195
+ let options_: RequestInit = {
19196
+ body: content_,
19197
+ method: "POST",
19198
+ headers: {
19199
+ "Content-Type": "application/json",
19200
+ "Accept": "application/json"
19201
+ }
19202
+ };
19203
+
19204
+ return this.transformOptions(options_).then(transformedOptions_ => {
19205
+ return this.http.fetch(url_, transformedOptions_);
19206
+ }).then((_response: Response) => {
19207
+ return this.processListUsers(_response);
19208
+ });
19209
+ }
19210
+
19211
+ protected processListUsers(response: Response): Promise<PagedResultOfErpUserDto> {
19212
+ const status = response.status;
19213
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19214
+ if (status === 200) {
19215
+ return response.text().then((_responseText) => {
19216
+ let result200: any = null;
19217
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19218
+ result200 = PagedResultOfErpUserDto.fromJS(resultData200);
19219
+ return result200;
19220
+ });
19221
+ } else if (status !== 200 && status !== 204) {
19222
+ return response.text().then((_responseText) => {
19223
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19224
+ });
19225
+ }
19226
+ return Promise.resolve<PagedResultOfErpUserDto>(null as any);
19227
+ }
19228
+ }
19229
+
19230
+ export interface IProductionPoolsClient {
19231
+
19232
+ listProductionPools(): Promise<ProductionPoolDto[]>;
19233
+
19234
+ setProductionPoolContactPerson(request: SetProductionPoolContactPerson): Promise<void>;
19235
+ }
19236
+
19237
+ export class ProductionPoolsClient extends AuthorizedApiBase implements IProductionPoolsClient {
19238
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
19239
+ private baseUrl: string;
19240
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
19241
+
19242
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
19243
+ super(configuration);
19244
+ this.http = http ? http : window as any;
19245
+ this.baseUrl = baseUrl ?? "";
19246
+ }
19247
+
19248
+ listProductionPools(): Promise<ProductionPoolDto[]> {
19249
+ let url_ = this.baseUrl + "/erp/productionpools";
19250
+ url_ = url_.replace(/[?&]$/, "");
19251
+
19252
+ let options_: RequestInit = {
19253
+ method: "GET",
19254
+ headers: {
19255
+ "Accept": "application/json"
19256
+ }
19257
+ };
19258
+
19259
+ return this.transformOptions(options_).then(transformedOptions_ => {
19260
+ return this.http.fetch(url_, transformedOptions_);
19261
+ }).then((_response: Response) => {
19262
+ return this.processListProductionPools(_response);
19263
+ });
19264
+ }
19265
+
19266
+ protected processListProductionPools(response: Response): Promise<ProductionPoolDto[]> {
19267
+ const status = response.status;
19268
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19269
+ if (status === 200) {
19270
+ return response.text().then((_responseText) => {
19271
+ let result200: any = null;
19272
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19273
+ if (Array.isArray(resultData200)) {
19274
+ result200 = [] as any;
19275
+ for (let item of resultData200)
19276
+ result200!.push(ProductionPoolDto.fromJS(item));
19277
+ }
19278
+ return result200;
19279
+ });
19280
+ } else if (status !== 200 && status !== 204) {
19281
+ return response.text().then((_responseText) => {
19282
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19283
+ });
19284
+ }
19285
+ return Promise.resolve<ProductionPoolDto[]>(null as any);
19286
+ }
19287
+
19288
+ setProductionPoolContactPerson(request: SetProductionPoolContactPerson): Promise<void> {
19289
+ let url_ = this.baseUrl + "/erp/productionpools";
19290
+ url_ = url_.replace(/[?&]$/, "");
19291
+
19292
+ const content_ = JSON.stringify(request);
19293
+
19294
+ let options_: RequestInit = {
19295
+ body: content_,
19296
+ method: "PATCH",
19297
+ headers: {
19298
+ "Content-Type": "application/json",
19299
+ }
19300
+ };
19301
+
19302
+ return this.transformOptions(options_).then(transformedOptions_ => {
19303
+ return this.http.fetch(url_, transformedOptions_);
19304
+ }).then((_response: Response) => {
19305
+ return this.processSetProductionPoolContactPerson(_response);
19306
+ });
19307
+ }
19308
+
19309
+ protected processSetProductionPoolContactPerson(response: Response): Promise<void> {
19310
+ const status = response.status;
19311
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19312
+ if (status === 200) {
19313
+ return response.text().then((_responseText) => {
19314
+ return;
19315
+ });
19316
+ } else if (status !== 200 && status !== 204) {
19317
+ return response.text().then((_responseText) => {
19318
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19319
+ });
19320
+ }
19321
+ return Promise.resolve<void>(null as any);
19322
+ }
19323
+ }
19324
+
19173
19325
  export interface IResourcesClient {
19174
19326
 
19175
19327
  listAllMachines(): Promise<MachineDto[]>;
@@ -37122,7 +37274,7 @@ export class BookingDto implements IBookingDto {
37122
37274
  parcelKind!: ParcelKindDto;
37123
37275
  transportKind!: TransportKindDto;
37124
37276
  status!: BookingStatusDto;
37125
- items!: BookingItemDto[];
37277
+ parcels!: BookingParcelDto[];
37126
37278
  fromLocation!: LocationDto;
37127
37279
  toLocation!: LocationDto;
37128
37280
  created!: Date;
@@ -37142,7 +37294,7 @@ export class BookingDto implements IBookingDto {
37142
37294
  }
37143
37295
  }
37144
37296
  if (!data) {
37145
- this.items = [];
37297
+ this.parcels = [];
37146
37298
  this.fromLocation = new LocationDto();
37147
37299
  this.toLocation = new LocationDto();
37148
37300
  }
@@ -37154,10 +37306,10 @@ export class BookingDto implements IBookingDto {
37154
37306
  this.parcelKind = _data["parcelKind"];
37155
37307
  this.transportKind = _data["transportKind"];
37156
37308
  this.status = _data["status"];
37157
- if (Array.isArray(_data["items"])) {
37158
- this.items = [] as any;
37159
- for (let item of _data["items"])
37160
- this.items!.push(BookingItemDto.fromJS(item));
37309
+ if (Array.isArray(_data["parcels"])) {
37310
+ this.parcels = [] as any;
37311
+ for (let item of _data["parcels"])
37312
+ this.parcels!.push(BookingParcelDto.fromJS(item));
37161
37313
  }
37162
37314
  this.fromLocation = _data["fromLocation"] ? LocationDto.fromJS(_data["fromLocation"]) : new LocationDto();
37163
37315
  this.toLocation = _data["toLocation"] ? LocationDto.fromJS(_data["toLocation"]) : new LocationDto();
@@ -37185,10 +37337,10 @@ export class BookingDto implements IBookingDto {
37185
37337
  data["parcelKind"] = this.parcelKind;
37186
37338
  data["transportKind"] = this.transportKind;
37187
37339
  data["status"] = this.status;
37188
- if (Array.isArray(this.items)) {
37189
- data["items"] = [];
37190
- for (let item of this.items)
37191
- data["items"].push(item.toJSON());
37340
+ if (Array.isArray(this.parcels)) {
37341
+ data["parcels"] = [];
37342
+ for (let item of this.parcels)
37343
+ data["parcels"].push(item.toJSON());
37192
37344
  }
37193
37345
  data["fromLocation"] = this.fromLocation ? this.fromLocation.toJSON() : <any>undefined;
37194
37346
  data["toLocation"] = this.toLocation ? this.toLocation.toJSON() : <any>undefined;
@@ -37209,7 +37361,7 @@ export interface IBookingDto {
37209
37361
  parcelKind: ParcelKindDto;
37210
37362
  transportKind: TransportKindDto;
37211
37363
  status: BookingStatusDto;
37212
- items: BookingItemDto[];
37364
+ parcels: BookingParcelDto[];
37213
37365
  fromLocation: LocationDto;
37214
37366
  toLocation: LocationDto;
37215
37367
  created: Date;
@@ -37228,14 +37380,84 @@ export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoading
37228
37380
 
37229
37381
  export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Completed";
37230
37382
 
37231
- export class BookingItemDto implements IBookingItemDto {
37232
- trackingId!: string;
37233
- palletNumber!: number;
37383
+ export class BookingParcelDto implements IBookingParcelDto {
37234
37384
  parcelId!: string;
37235
37385
  parcelKind!: ParcelKindDto;
37386
+ partName?: string | null;
37387
+ partNumber?: string | null;
37388
+ quantity?: number | null;
37236
37389
  material?: string | null;
37237
- comment?: string | null;
37238
37390
  covered!: MaterialCoveredDto;
37391
+ items?: BookingItemDto[];
37392
+
37393
+ constructor(data?: IBookingParcelDto) {
37394
+ if (data) {
37395
+ for (var property in data) {
37396
+ if (data.hasOwnProperty(property))
37397
+ (<any>this)[property] = (<any>data)[property];
37398
+ }
37399
+ }
37400
+ }
37401
+
37402
+ init(_data?: any) {
37403
+ if (_data) {
37404
+ this.parcelId = _data["parcelId"];
37405
+ this.parcelKind = _data["parcelKind"];
37406
+ this.partName = _data["partName"];
37407
+ this.partNumber = _data["partNumber"];
37408
+ this.quantity = _data["quantity"];
37409
+ this.material = _data["material"];
37410
+ this.covered = _data["covered"];
37411
+ if (Array.isArray(_data["items"])) {
37412
+ this.items = [] as any;
37413
+ for (let item of _data["items"])
37414
+ this.items!.push(BookingItemDto.fromJS(item));
37415
+ }
37416
+ }
37417
+ }
37418
+
37419
+ static fromJS(data: any): BookingParcelDto {
37420
+ data = typeof data === 'object' ? data : {};
37421
+ let result = new BookingParcelDto();
37422
+ result.init(data);
37423
+ return result;
37424
+ }
37425
+
37426
+ toJSON(data?: any) {
37427
+ data = typeof data === 'object' ? data : {};
37428
+ data["parcelId"] = this.parcelId;
37429
+ data["parcelKind"] = this.parcelKind;
37430
+ data["partName"] = this.partName;
37431
+ data["partNumber"] = this.partNumber;
37432
+ data["quantity"] = this.quantity;
37433
+ data["material"] = this.material;
37434
+ data["covered"] = this.covered;
37435
+ if (Array.isArray(this.items)) {
37436
+ data["items"] = [];
37437
+ for (let item of this.items)
37438
+ data["items"].push(item.toJSON());
37439
+ }
37440
+ return data;
37441
+ }
37442
+ }
37443
+
37444
+ export interface IBookingParcelDto {
37445
+ parcelId: string;
37446
+ parcelKind: ParcelKindDto;
37447
+ partName?: string | null;
37448
+ partNumber?: string | null;
37449
+ quantity?: number | null;
37450
+ material?: string | null;
37451
+ covered: MaterialCoveredDto;
37452
+ items?: BookingItemDto[];
37453
+ }
37454
+
37455
+ export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
37456
+
37457
+ export class BookingItemDto implements IBookingItemDto {
37458
+ trackingId!: string;
37459
+ palletNumber!: number;
37460
+ comment?: string | null;
37239
37461
  toLocationOverride?: LocationDto | null;
37240
37462
 
37241
37463
  constructor(data?: IBookingItemDto) {
@@ -37251,11 +37473,7 @@ export class BookingItemDto implements IBookingItemDto {
37251
37473
  if (_data) {
37252
37474
  this.trackingId = _data["trackingId"];
37253
37475
  this.palletNumber = _data["palletNumber"];
37254
- this.parcelId = _data["parcelId"];
37255
- this.parcelKind = _data["parcelKind"];
37256
- this.material = _data["material"];
37257
37476
  this.comment = _data["comment"];
37258
- this.covered = _data["covered"];
37259
37477
  this.toLocationOverride = _data["toLocationOverride"] ? LocationDto.fromJS(_data["toLocationOverride"]) : <any>undefined;
37260
37478
  }
37261
37479
  }
@@ -37271,11 +37489,7 @@ export class BookingItemDto implements IBookingItemDto {
37271
37489
  data = typeof data === 'object' ? data : {};
37272
37490
  data["trackingId"] = this.trackingId;
37273
37491
  data["palletNumber"] = this.palletNumber;
37274
- data["parcelId"] = this.parcelId;
37275
- data["parcelKind"] = this.parcelKind;
37276
- data["material"] = this.material;
37277
37492
  data["comment"] = this.comment;
37278
- data["covered"] = this.covered;
37279
37493
  data["toLocationOverride"] = this.toLocationOverride ? this.toLocationOverride.toJSON() : <any>undefined;
37280
37494
  return data;
37281
37495
  }
@@ -37284,16 +37498,10 @@ export class BookingItemDto implements IBookingItemDto {
37284
37498
  export interface IBookingItemDto {
37285
37499
  trackingId: string;
37286
37500
  palletNumber: number;
37287
- parcelId: string;
37288
- parcelKind: ParcelKindDto;
37289
- material?: string | null;
37290
37501
  comment?: string | null;
37291
- covered: MaterialCoveredDto;
37292
37502
  toLocationOverride?: LocationDto | null;
37293
37503
  }
37294
37504
 
37295
- export type MaterialCoveredDto = "NotDefined" | "NotCovered" | "Covered";
37296
-
37297
37505
  export class LocationDto implements ILocationDto {
37298
37506
  locationId!: string;
37299
37507
  locationName!: string;
@@ -38113,11 +38321,11 @@ export interface ISearchParcelItemDto {
38113
38321
  selected: boolean;
38114
38322
  }
38115
38323
 
38116
- export class TrackingHistoryListDto implements ITrackingHistoryListDto {
38117
- results!: TrackingHistoryDto[];
38324
+ export class TrackingParcelListDto implements ITrackingParcelListDto {
38325
+ results!: TrackingParcelDto[];
38118
38326
  continuationToken?: string | null;
38119
38327
 
38120
- constructor(data?: ITrackingHistoryListDto) {
38328
+ constructor(data?: ITrackingParcelListDto) {
38121
38329
  if (data) {
38122
38330
  for (var property in data) {
38123
38331
  if (data.hasOwnProperty(property))
@@ -38134,15 +38342,15 @@ export class TrackingHistoryListDto implements ITrackingHistoryListDto {
38134
38342
  if (Array.isArray(_data["results"])) {
38135
38343
  this.results = [] as any;
38136
38344
  for (let item of _data["results"])
38137
- this.results!.push(TrackingHistoryDto.fromJS(item));
38345
+ this.results!.push(TrackingParcelDto.fromJS(item));
38138
38346
  }
38139
38347
  this.continuationToken = _data["continuationToken"];
38140
38348
  }
38141
38349
  }
38142
38350
 
38143
- static fromJS(data: any): TrackingHistoryListDto {
38351
+ static fromJS(data: any): TrackingParcelListDto {
38144
38352
  data = typeof data === 'object' ? data : {};
38145
- let result = new TrackingHistoryListDto();
38353
+ let result = new TrackingParcelListDto();
38146
38354
  result.init(data);
38147
38355
  return result;
38148
38356
  }
@@ -38159,20 +38367,92 @@ export class TrackingHistoryListDto implements ITrackingHistoryListDto {
38159
38367
  }
38160
38368
  }
38161
38369
 
38162
- export interface ITrackingHistoryListDto {
38163
- results: TrackingHistoryDto[];
38370
+ export interface ITrackingParcelListDto {
38371
+ results: TrackingParcelDto[];
38164
38372
  continuationToken?: string | null;
38165
38373
  }
38166
38374
 
38375
+ export class TrackingParcelDto implements ITrackingParcelDto {
38376
+ parcelId!: string;
38377
+ parcelKind!: ParcelKindDto;
38378
+ partName?: string | null;
38379
+ partNumber?: string | null;
38380
+ quantity?: number | null;
38381
+ material?: string | null;
38382
+ covered?: MaterialCoveredDto | null;
38383
+ items!: TrackingHistoryDto[];
38384
+
38385
+ constructor(data?: ITrackingParcelDto) {
38386
+ if (data) {
38387
+ for (var property in data) {
38388
+ if (data.hasOwnProperty(property))
38389
+ (<any>this)[property] = (<any>data)[property];
38390
+ }
38391
+ }
38392
+ if (!data) {
38393
+ this.items = [];
38394
+ }
38395
+ }
38396
+
38397
+ init(_data?: any) {
38398
+ if (_data) {
38399
+ this.parcelId = _data["parcelId"];
38400
+ this.parcelKind = _data["parcelKind"];
38401
+ this.partName = _data["partName"];
38402
+ this.partNumber = _data["partNumber"];
38403
+ this.quantity = _data["quantity"];
38404
+ this.material = _data["material"];
38405
+ this.covered = _data["covered"];
38406
+ if (Array.isArray(_data["items"])) {
38407
+ this.items = [] as any;
38408
+ for (let item of _data["items"])
38409
+ this.items!.push(TrackingHistoryDto.fromJS(item));
38410
+ }
38411
+ }
38412
+ }
38413
+
38414
+ static fromJS(data: any): TrackingParcelDto {
38415
+ data = typeof data === 'object' ? data : {};
38416
+ let result = new TrackingParcelDto();
38417
+ result.init(data);
38418
+ return result;
38419
+ }
38420
+
38421
+ toJSON(data?: any) {
38422
+ data = typeof data === 'object' ? data : {};
38423
+ data["parcelId"] = this.parcelId;
38424
+ data["parcelKind"] = this.parcelKind;
38425
+ data["partName"] = this.partName;
38426
+ data["partNumber"] = this.partNumber;
38427
+ data["quantity"] = this.quantity;
38428
+ data["material"] = this.material;
38429
+ data["covered"] = this.covered;
38430
+ if (Array.isArray(this.items)) {
38431
+ data["items"] = [];
38432
+ for (let item of this.items)
38433
+ data["items"].push(item.toJSON());
38434
+ }
38435
+ return data;
38436
+ }
38437
+ }
38438
+
38439
+ export interface ITrackingParcelDto {
38440
+ parcelId: string;
38441
+ parcelKind: ParcelKindDto;
38442
+ partName?: string | null;
38443
+ partNumber?: string | null;
38444
+ quantity?: number | null;
38445
+ material?: string | null;
38446
+ covered?: MaterialCoveredDto | null;
38447
+ items: TrackingHistoryDto[];
38448
+ }
38449
+
38167
38450
  export class TrackingHistoryDto implements ITrackingHistoryDto {
38168
38451
  trackingId!: string;
38169
38452
  palletNumber!: number;
38170
- parcelKind!: ParcelKindDto;
38171
- parcelId!: string;
38453
+ activeBooking?: boolean | null;
38172
38454
  currentTracking?: TrackingEventDto | null;
38173
38455
  trackingEvents!: TrackingEventDto[];
38174
- material?: string | null;
38175
- activeBooking?: boolean | null;
38176
38456
 
38177
38457
  constructor(data?: ITrackingHistoryDto) {
38178
38458
  if (data) {
@@ -38190,16 +38470,13 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38190
38470
  if (_data) {
38191
38471
  this.trackingId = _data["trackingId"];
38192
38472
  this.palletNumber = _data["palletNumber"];
38193
- this.parcelKind = _data["parcelKind"];
38194
- this.parcelId = _data["parcelId"];
38473
+ this.activeBooking = _data["activeBooking"];
38195
38474
  this.currentTracking = _data["currentTracking"] ? TrackingEventDto.fromJS(_data["currentTracking"]) : <any>undefined;
38196
38475
  if (Array.isArray(_data["trackingEvents"])) {
38197
38476
  this.trackingEvents = [] as any;
38198
38477
  for (let item of _data["trackingEvents"])
38199
38478
  this.trackingEvents!.push(TrackingEventDto.fromJS(item));
38200
38479
  }
38201
- this.material = _data["material"];
38202
- this.activeBooking = _data["activeBooking"];
38203
38480
  }
38204
38481
  }
38205
38482
 
@@ -38214,16 +38491,13 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38214
38491
  data = typeof data === 'object' ? data : {};
38215
38492
  data["trackingId"] = this.trackingId;
38216
38493
  data["palletNumber"] = this.palletNumber;
38217
- data["parcelKind"] = this.parcelKind;
38218
- data["parcelId"] = this.parcelId;
38494
+ data["activeBooking"] = this.activeBooking;
38219
38495
  data["currentTracking"] = this.currentTracking ? this.currentTracking.toJSON() : <any>undefined;
38220
38496
  if (Array.isArray(this.trackingEvents)) {
38221
38497
  data["trackingEvents"] = [];
38222
38498
  for (let item of this.trackingEvents)
38223
38499
  data["trackingEvents"].push(item.toJSON());
38224
38500
  }
38225
- data["material"] = this.material;
38226
- data["activeBooking"] = this.activeBooking;
38227
38501
  return data;
38228
38502
  }
38229
38503
  }
@@ -38231,12 +38505,9 @@ export class TrackingHistoryDto implements ITrackingHistoryDto {
38231
38505
  export interface ITrackingHistoryDto {
38232
38506
  trackingId: string;
38233
38507
  palletNumber: number;
38234
- parcelKind: ParcelKindDto;
38235
- parcelId: string;
38508
+ activeBooking?: boolean | null;
38236
38509
  currentTracking?: TrackingEventDto | null;
38237
38510
  trackingEvents: TrackingEventDto[];
38238
- material?: string | null;
38239
- activeBooking?: boolean | null;
38240
38511
  }
38241
38512
 
38242
38513
  export class TrackingEventDto implements ITrackingEventDto {
@@ -38409,70 +38680,11 @@ export interface ITrackingRequestListDto {
38409
38680
  continuationToken?: string | null;
38410
38681
  }
38411
38682
 
38412
- export class TrackingParcelDto implements ITrackingParcelDto {
38413
- parcelId!: string;
38414
- part?: PartDto | null;
38415
- trackingHistory!: TrackingHistoryDto[];
38416
- covered!: MaterialCoveredDto;
38417
-
38418
- constructor(data?: ITrackingParcelDto) {
38419
- if (data) {
38420
- for (var property in data) {
38421
- if (data.hasOwnProperty(property))
38422
- (<any>this)[property] = (<any>data)[property];
38423
- }
38424
- }
38425
- if (!data) {
38426
- this.trackingHistory = [];
38427
- }
38428
- }
38429
-
38430
- init(_data?: any) {
38431
- if (_data) {
38432
- this.parcelId = _data["parcelId"];
38433
- this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : <any>undefined;
38434
- if (Array.isArray(_data["trackingHistory"])) {
38435
- this.trackingHistory = [] as any;
38436
- for (let item of _data["trackingHistory"])
38437
- this.trackingHistory!.push(TrackingHistoryDto.fromJS(item));
38438
- }
38439
- this.covered = _data["covered"];
38440
- }
38441
- }
38442
-
38443
- static fromJS(data: any): TrackingParcelDto {
38444
- data = typeof data === 'object' ? data : {};
38445
- let result = new TrackingParcelDto();
38446
- result.init(data);
38447
- return result;
38448
- }
38449
-
38450
- toJSON(data?: any) {
38451
- data = typeof data === 'object' ? data : {};
38452
- data["parcelId"] = this.parcelId;
38453
- data["part"] = this.part ? this.part.toJSON() : <any>undefined;
38454
- if (Array.isArray(this.trackingHistory)) {
38455
- data["trackingHistory"] = [];
38456
- for (let item of this.trackingHistory)
38457
- data["trackingHistory"].push(item.toJSON());
38458
- }
38459
- data["covered"] = this.covered;
38460
- return data;
38461
- }
38462
- }
38463
-
38464
- export interface ITrackingParcelDto {
38465
- parcelId: string;
38466
- part?: PartDto | null;
38467
- trackingHistory: TrackingHistoryDto[];
38468
- covered: MaterialCoveredDto;
38469
- }
38470
-
38471
- export class TrackingParcelListDto implements ITrackingParcelListDto {
38683
+ export class TrackingParcelRequestListDto implements ITrackingParcelRequestListDto {
38472
38684
  parcelIds!: string[];
38473
38685
  includeActiveBookings!: boolean;
38474
38686
 
38475
- constructor(data?: ITrackingParcelListDto) {
38687
+ constructor(data?: ITrackingParcelRequestListDto) {
38476
38688
  if (data) {
38477
38689
  for (var property in data) {
38478
38690
  if (data.hasOwnProperty(property))
@@ -38495,9 +38707,9 @@ export class TrackingParcelListDto implements ITrackingParcelListDto {
38495
38707
  }
38496
38708
  }
38497
38709
 
38498
- static fromJS(data: any): TrackingParcelListDto {
38710
+ static fromJS(data: any): TrackingParcelRequestListDto {
38499
38711
  data = typeof data === 'object' ? data : {};
38500
- let result = new TrackingParcelListDto();
38712
+ let result = new TrackingParcelRequestListDto();
38501
38713
  result.init(data);
38502
38714
  return result;
38503
38715
  }
@@ -38514,7 +38726,7 @@ export class TrackingParcelListDto implements ITrackingParcelListDto {
38514
38726
  }
38515
38727
  }
38516
38728
 
38517
- export interface ITrackingParcelListDto {
38729
+ export interface ITrackingParcelRequestListDto {
38518
38730
  parcelIds: string[];
38519
38731
  includeActiveBookings: boolean;
38520
38732
  }
@@ -49033,6 +49245,249 @@ export interface ICreateCustomerMapping {
49033
49245
  newCustomerId: string;
49034
49246
  }
49035
49247
 
49248
+ export class PagedResultOfErpUserDto implements IPagedResultOfErpUserDto {
49249
+ results!: ErpUserDto[];
49250
+ continuationToken?: string | null;
49251
+
49252
+ constructor(data?: IPagedResultOfErpUserDto) {
49253
+ if (data) {
49254
+ for (var property in data) {
49255
+ if (data.hasOwnProperty(property))
49256
+ (<any>this)[property] = (<any>data)[property];
49257
+ }
49258
+ }
49259
+ if (!data) {
49260
+ this.results = [];
49261
+ }
49262
+ }
49263
+
49264
+ init(_data?: any) {
49265
+ if (_data) {
49266
+ if (Array.isArray(_data["results"])) {
49267
+ this.results = [] as any;
49268
+ for (let item of _data["results"])
49269
+ this.results!.push(ErpUserDto.fromJS(item));
49270
+ }
49271
+ this.continuationToken = _data["continuationToken"];
49272
+ }
49273
+ }
49274
+
49275
+ static fromJS(data: any): PagedResultOfErpUserDto {
49276
+ data = typeof data === 'object' ? data : {};
49277
+ let result = new PagedResultOfErpUserDto();
49278
+ result.init(data);
49279
+ return result;
49280
+ }
49281
+
49282
+ toJSON(data?: any) {
49283
+ data = typeof data === 'object' ? data : {};
49284
+ if (Array.isArray(this.results)) {
49285
+ data["results"] = [];
49286
+ for (let item of this.results)
49287
+ data["results"].push(item.toJSON());
49288
+ }
49289
+ data["continuationToken"] = this.continuationToken;
49290
+ return data;
49291
+ }
49292
+ }
49293
+
49294
+ export interface IPagedResultOfErpUserDto {
49295
+ results: ErpUserDto[];
49296
+ continuationToken?: string | null;
49297
+ }
49298
+
49299
+ export class ErpUserDto implements IErpUserDto {
49300
+ azureAdObjectId?: string | null;
49301
+ name?: string | null;
49302
+ upn!: string;
49303
+ companyId?: string | null;
49304
+ userSelectedCompanyId?: string | null;
49305
+ personnelNumber?: string | null;
49306
+ badgeId?: string | null;
49307
+ email?: string | null;
49308
+
49309
+ constructor(data?: IErpUserDto) {
49310
+ if (data) {
49311
+ for (var property in data) {
49312
+ if (data.hasOwnProperty(property))
49313
+ (<any>this)[property] = (<any>data)[property];
49314
+ }
49315
+ }
49316
+ }
49317
+
49318
+ init(_data?: any) {
49319
+ if (_data) {
49320
+ this.azureAdObjectId = _data["azureAdObjectId"];
49321
+ this.name = _data["name"];
49322
+ this.upn = _data["upn"];
49323
+ this.companyId = _data["companyId"];
49324
+ this.userSelectedCompanyId = _data["userSelectedCompanyId"];
49325
+ this.personnelNumber = _data["personnelNumber"];
49326
+ this.badgeId = _data["badgeId"];
49327
+ this.email = _data["email"];
49328
+ }
49329
+ }
49330
+
49331
+ static fromJS(data: any): ErpUserDto {
49332
+ data = typeof data === 'object' ? data : {};
49333
+ let result = new ErpUserDto();
49334
+ result.init(data);
49335
+ return result;
49336
+ }
49337
+
49338
+ toJSON(data?: any) {
49339
+ data = typeof data === 'object' ? data : {};
49340
+ data["azureAdObjectId"] = this.azureAdObjectId;
49341
+ data["name"] = this.name;
49342
+ data["upn"] = this.upn;
49343
+ data["companyId"] = this.companyId;
49344
+ data["userSelectedCompanyId"] = this.userSelectedCompanyId;
49345
+ data["personnelNumber"] = this.personnelNumber;
49346
+ data["badgeId"] = this.badgeId;
49347
+ data["email"] = this.email;
49348
+ return data;
49349
+ }
49350
+ }
49351
+
49352
+ export interface IErpUserDto {
49353
+ azureAdObjectId?: string | null;
49354
+ name?: string | null;
49355
+ upn: string;
49356
+ companyId?: string | null;
49357
+ userSelectedCompanyId?: string | null;
49358
+ personnelNumber?: string | null;
49359
+ badgeId?: string | null;
49360
+ email?: string | null;
49361
+ }
49362
+
49363
+ export class ListErpUsers implements IListErpUsers {
49364
+ pageSize?: number;
49365
+ filter?: string | null;
49366
+ continuationToken?: string | null;
49367
+
49368
+ constructor(data?: IListErpUsers) {
49369
+ if (data) {
49370
+ for (var property in data) {
49371
+ if (data.hasOwnProperty(property))
49372
+ (<any>this)[property] = (<any>data)[property];
49373
+ }
49374
+ }
49375
+ }
49376
+
49377
+ init(_data?: any) {
49378
+ if (_data) {
49379
+ this.pageSize = _data["pageSize"];
49380
+ this.filter = _data["filter"];
49381
+ this.continuationToken = _data["continuationToken"];
49382
+ }
49383
+ }
49384
+
49385
+ static fromJS(data: any): ListErpUsers {
49386
+ data = typeof data === 'object' ? data : {};
49387
+ let result = new ListErpUsers();
49388
+ result.init(data);
49389
+ return result;
49390
+ }
49391
+
49392
+ toJSON(data?: any) {
49393
+ data = typeof data === 'object' ? data : {};
49394
+ data["pageSize"] = this.pageSize;
49395
+ data["filter"] = this.filter;
49396
+ data["continuationToken"] = this.continuationToken;
49397
+ return data;
49398
+ }
49399
+ }
49400
+
49401
+ export interface IListErpUsers {
49402
+ pageSize?: number;
49403
+ filter?: string | null;
49404
+ continuationToken?: string | null;
49405
+ }
49406
+
49407
+ export class ProductionPoolDto implements IProductionPoolDto {
49408
+ name!: string;
49409
+ contactPersonUpn?: string | null;
49410
+ id?: string;
49411
+
49412
+ constructor(data?: IProductionPoolDto) {
49413
+ if (data) {
49414
+ for (var property in data) {
49415
+ if (data.hasOwnProperty(property))
49416
+ (<any>this)[property] = (<any>data)[property];
49417
+ }
49418
+ }
49419
+ }
49420
+
49421
+ init(_data?: any) {
49422
+ if (_data) {
49423
+ this.name = _data["name"];
49424
+ this.contactPersonUpn = _data["contactPersonUpn"];
49425
+ this.id = _data["id"];
49426
+ }
49427
+ }
49428
+
49429
+ static fromJS(data: any): ProductionPoolDto {
49430
+ data = typeof data === 'object' ? data : {};
49431
+ let result = new ProductionPoolDto();
49432
+ result.init(data);
49433
+ return result;
49434
+ }
49435
+
49436
+ toJSON(data?: any) {
49437
+ data = typeof data === 'object' ? data : {};
49438
+ data["name"] = this.name;
49439
+ data["contactPersonUpn"] = this.contactPersonUpn;
49440
+ data["id"] = this.id;
49441
+ return data;
49442
+ }
49443
+ }
49444
+
49445
+ export interface IProductionPoolDto {
49446
+ name: string;
49447
+ contactPersonUpn?: string | null;
49448
+ id?: string;
49449
+ }
49450
+
49451
+ export class SetProductionPoolContactPerson implements ISetProductionPoolContactPerson {
49452
+ poolId!: string;
49453
+ contactPersonUpn?: string | null;
49454
+
49455
+ constructor(data?: ISetProductionPoolContactPerson) {
49456
+ if (data) {
49457
+ for (var property in data) {
49458
+ if (data.hasOwnProperty(property))
49459
+ (<any>this)[property] = (<any>data)[property];
49460
+ }
49461
+ }
49462
+ }
49463
+
49464
+ init(_data?: any) {
49465
+ if (_data) {
49466
+ this.poolId = _data["poolId"];
49467
+ this.contactPersonUpn = _data["contactPersonUpn"];
49468
+ }
49469
+ }
49470
+
49471
+ static fromJS(data: any): SetProductionPoolContactPerson {
49472
+ data = typeof data === 'object' ? data : {};
49473
+ let result = new SetProductionPoolContactPerson();
49474
+ result.init(data);
49475
+ return result;
49476
+ }
49477
+
49478
+ toJSON(data?: any) {
49479
+ data = typeof data === 'object' ? data : {};
49480
+ data["poolId"] = this.poolId;
49481
+ data["contactPersonUpn"] = this.contactPersonUpn;
49482
+ return data;
49483
+ }
49484
+ }
49485
+
49486
+ export interface ISetProductionPoolContactPerson {
49487
+ poolId: string;
49488
+ contactPersonUpn?: string | null;
49489
+ }
49490
+
49036
49491
  export class UpsertWorkorder implements IUpsertWorkorder {
49037
49492
  workorder!: string;
49038
49493
  part!: PartDto;