@ignos/api-client 20240312.0.8822 → 20240315.0.8961

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.
@@ -644,7 +644,7 @@ export interface IMachinesClient {
644
644
  listMachineErpData(): Promise<MachineErpDataListDto>;
645
645
  getMachineErpData(id: number): Promise<MachineErpDataDto>;
646
646
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
647
- listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
647
+ listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]>;
648
648
  }
649
649
  export declare class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
650
650
  private http;
@@ -675,14 +675,14 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
675
675
  protected processGetMachineErpData(response: Response): Promise<MachineErpDataDto>;
676
676
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
677
677
  protected processGetMachineUtilizationSummary(response: Response): Promise<UtilizationSummaryDto>;
678
- listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
678
+ listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]>;
679
679
  protected processListCurrentMachineOperators(response: Response): Promise<OperatorAndMachineDto[]>;
680
680
  }
681
681
  export interface ILinksClient {
682
- getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
682
+ getAllLinks(scope: string | undefined): Promise<LinkDto[]>;
683
683
  createLink(request: CreateLinkRequest): Promise<LinkDto>;
684
684
  getAllLinkScopes(): Promise<string[]>;
685
- deleteLink(id: string, scope: string | null | undefined): Promise<void>;
685
+ deleteLink(id: string, scope: string | undefined): Promise<void>;
686
686
  }
687
687
  export declare class LinksClient extends AuthorizedApiBase implements ILinksClient {
688
688
  private http;
@@ -691,13 +691,13 @@ export declare class LinksClient extends AuthorizedApiBase implements ILinksClie
691
691
  constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
692
692
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
693
693
  });
694
- getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
694
+ getAllLinks(scope: string | undefined): Promise<LinkDto[]>;
695
695
  protected processGetAllLinks(response: Response): Promise<LinkDto[]>;
696
696
  createLink(request: CreateLinkRequest): Promise<LinkDto>;
697
697
  protected processCreateLink(response: Response): Promise<LinkDto>;
698
698
  getAllLinkScopes(): Promise<string[]>;
699
699
  protected processGetAllLinkScopes(response: Response): Promise<string[]>;
700
- deleteLink(id: string, scope: string | null | undefined): Promise<void>;
700
+ deleteLink(id: string, scope: string | undefined): Promise<void>;
701
701
  protected processDeleteLink(response: Response): Promise<void>;
702
702
  }
703
703
  export interface IExternalServicesClient {
@@ -722,7 +722,7 @@ export interface IDocumentsClient {
722
722
  * Checks if a document exists with import reference. Returns document id if document exists.
723
723
  * @param importedReference (optional)
724
724
  */
725
- checkIfImportedDocumentExists(importedReference: string | null | undefined): Promise<string>;
725
+ checkIfImportedDocumentExists(importedReference: string | undefined): Promise<string>;
726
726
  }
727
727
  export declare class DocumentsClient extends AuthorizedApiBase implements IDocumentsClient {
728
728
  private http;
@@ -740,7 +740,7 @@ export declare class DocumentsClient extends AuthorizedApiBase implements IDocum
740
740
  * Checks if a document exists with import reference. Returns document id if document exists.
741
741
  * @param importedReference (optional)
742
742
  */
743
- checkIfImportedDocumentExists(importedReference: string | null | undefined): Promise<string>;
743
+ checkIfImportedDocumentExists(importedReference: string | undefined): Promise<string>;
744
744
  protected processCheckIfImportedDocumentExists(response: Response): Promise<string>;
745
745
  }
746
746
  export interface IDocumentTypesClient {
@@ -1943,6 +1943,10 @@ export interface IWorkordersClient {
1943
1943
  * Creates a work order mapping between old id and new work order id.
1944
1944
  */
1945
1945
  createWorkOrderMapping(request: CreateWorkOrderMapping): Promise<void>;
1946
+ /**
1947
+ * Deleteds existing work order mappings.
1948
+ */
1949
+ deleteWorkOrderMappings(): Promise<void>;
1946
1950
  }
1947
1951
  export declare class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
1948
1952
  private http;
@@ -2057,6 +2061,11 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
2057
2061
  */
2058
2062
  createWorkOrderMapping(request: CreateWorkOrderMapping): Promise<void>;
2059
2063
  protected processCreateWorkOrderMapping(response: Response): Promise<void>;
2064
+ /**
2065
+ * Deleteds existing work order mappings.
2066
+ */
2067
+ deleteWorkOrderMappings(): Promise<void>;
2068
+ protected processDeleteWorkOrderMappings(response: Response): Promise<void>;
2060
2069
  }
2061
2070
  export declare class AzureRegionDto implements IAzureRegionDto {
2062
2071
  displayName: string;
@@ -7217,6 +7226,7 @@ export declare class ProductionOrderDto implements IProductionOrderDto {
7217
7226
  planner?: UserDto | null;
7218
7227
  projectLeader?: UserDto | null;
7219
7228
  endLocation?: string | null;
7229
+ deliveryLocation?: WarehouseLocationDto | null;
7220
7230
  project?: WorkOrderProjectDto | null;
7221
7231
  startDate?: Date | null;
7222
7232
  endDate?: Date | null;
@@ -7243,6 +7253,7 @@ export interface IProductionOrderDto {
7243
7253
  planner?: UserDto | null;
7244
7254
  projectLeader?: UserDto | null;
7245
7255
  endLocation?: string | null;
7256
+ deliveryLocation?: WarehouseLocationDto | null;
7246
7257
  project?: WorkOrderProjectDto | null;
7247
7258
  startDate?: Date | null;
7248
7259
  endDate?: Date | null;
@@ -7265,6 +7276,8 @@ export declare class ProductionOrderOperationDto implements IProductionOrderOper
7265
7276
  resource?: ResourceDto | null;
7266
7277
  plannedStart?: Date | null;
7267
7278
  plannedEnd?: Date | null;
7279
+ actualStart?: Date | null;
7280
+ actualEnd?: Date | null;
7268
7281
  status: OperationStatusDto;
7269
7282
  producedQuantity: number;
7270
7283
  scrappedQuantity: number;
@@ -7297,6 +7310,8 @@ export interface IProductionOrderOperationDto {
7297
7310
  resource?: ResourceDto | null;
7298
7311
  plannedStart?: Date | null;
7299
7312
  plannedEnd?: Date | null;
7313
+ actualStart?: Date | null;
7314
+ actualEnd?: Date | null;
7300
7315
  status: OperationStatusDto;
7301
7316
  producedQuantity: number;
7302
7317
  scrappedQuantity: number;
@@ -7310,6 +7325,22 @@ export interface IProductionOrderOperationDto {
7310
7325
  toolNumber?: string | null;
7311
7326
  disableSetupRegistration: boolean;
7312
7327
  }
7328
+ export declare class WarehouseLocationDto implements IWarehouseLocationDto {
7329
+ zone?: string | null;
7330
+ location: string;
7331
+ warehouse?: string | null;
7332
+ site?: string | null;
7333
+ constructor(data?: IWarehouseLocationDto);
7334
+ init(_data?: any): void;
7335
+ static fromJS(data: any): WarehouseLocationDto;
7336
+ toJSON(data?: any): any;
7337
+ }
7338
+ export interface IWarehouseLocationDto {
7339
+ zone?: string | null;
7340
+ location: string;
7341
+ warehouse?: string | null;
7342
+ site?: string | null;
7343
+ }
7313
7344
  export declare class DrawingDto implements IDrawingDto {
7314
7345
  drawingNumber: string;
7315
7346
  revision?: string;
@@ -7587,6 +7618,8 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
7587
7618
  operationName: string;
7588
7619
  plannedStart: Date;
7589
7620
  plannedEnd?: Date | null;
7621
+ actualStart?: Date | null;
7622
+ actualEnd?: Date | null;
7590
7623
  status: OperationStatusDto;
7591
7624
  totalPlannedHours?: number;
7592
7625
  totalUsedHours?: number;
@@ -7619,6 +7652,7 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
7619
7652
  toolNumber?: string | null;
7620
7653
  prerequisites: OperationPrerequisitesDto;
7621
7654
  endLocation?: string | null;
7655
+ deliveryLocation?: WarehouseLocationDto | null;
7622
7656
  drawing?: DrawingDto | null;
7623
7657
  drawingNumber?: string | null;
7624
7658
  disableSetupRegistration: boolean;
@@ -7635,6 +7669,8 @@ export interface IProductionScheduleOperationDto {
7635
7669
  operationName: string;
7636
7670
  plannedStart: Date;
7637
7671
  plannedEnd?: Date | null;
7672
+ actualStart?: Date | null;
7673
+ actualEnd?: Date | null;
7638
7674
  status: OperationStatusDto;
7639
7675
  totalPlannedHours?: number;
7640
7676
  totalUsedHours?: number;
@@ -7667,6 +7703,7 @@ export interface IProductionScheduleOperationDto {
7667
7703
  toolNumber?: string | null;
7668
7704
  prerequisites: OperationPrerequisitesDto;
7669
7705
  endLocation?: string | null;
7706
+ deliveryLocation?: WarehouseLocationDto | null;
7670
7707
  drawing?: DrawingDto | null;
7671
7708
  drawingNumber?: string | null;
7672
7709
  disableSetupRegistration: boolean;
@@ -7678,6 +7715,8 @@ export declare class SurroundingOperationDto implements ISurroundingOperationDto
7678
7715
  operationName: string;
7679
7716
  plannedStart: Date;
7680
7717
  plannedEnd?: Date | null;
7718
+ actualStart?: Date | null;
7719
+ actualEnd?: Date | null;
7681
7720
  status: OperationStatusDto;
7682
7721
  resourceGroupId?: string | null;
7683
7722
  resourceId?: string | null;
@@ -7696,6 +7735,8 @@ export interface ISurroundingOperationDto {
7696
7735
  operationName: string;
7697
7736
  plannedStart: Date;
7698
7737
  plannedEnd?: Date | null;
7738
+ actualStart?: Date | null;
7739
+ actualEnd?: Date | null;
7699
7740
  status: OperationStatusDto;
7700
7741
  resourceGroupId?: string | null;
7701
7742
  resourceId?: string | null;
@@ -8133,6 +8174,8 @@ export declare class WorkorderOperationDto implements IWorkorderOperationDto {
8133
8174
  resource?: ResourceDto | null;
8134
8175
  plannedStart?: Date | null;
8135
8176
  plannedEnd?: Date | null;
8177
+ actualStart?: Date | null;
8178
+ actualEnd?: Date | null;
8136
8179
  status: OperationStatusDto;
8137
8180
  producedQuantity: number;
8138
8181
  scrappedQuantity: number;
@@ -8154,6 +8197,8 @@ export interface IWorkorderOperationDto {
8154
8197
  resource?: ResourceDto | null;
8155
8198
  plannedStart?: Date | null;
8156
8199
  plannedEnd?: Date | null;
8200
+ actualStart?: Date | null;
8201
+ actualEnd?: Date | null;
8157
8202
  status: OperationStatusDto;
8158
8203
  producedQuantity: number;
8159
8204
  scrappedQuantity: number;
@@ -10542,6 +10587,7 @@ export declare class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
10542
10587
  planner?: UserDto | null;
10543
10588
  projectLeader?: UserDto | null;
10544
10589
  endLocation?: string | null;
10590
+ deliveryLocation?: WarehouseLocationDto | null;
10545
10591
  project?: WorkOrderProjectDto | null;
10546
10592
  startDate?: Date | null;
10547
10593
  endDate?: Date | null;
@@ -10568,6 +10614,7 @@ export interface IUpsertWorkorderV2 {
10568
10614
  planner?: UserDto | null;
10569
10615
  projectLeader?: UserDto | null;
10570
10616
  endLocation?: string | null;
10617
+ deliveryLocation?: WarehouseLocationDto | null;
10571
10618
  project?: WorkOrderProjectDto | null;
10572
10619
  startDate?: Date | null;
10573
10620
  endDate?: Date | null;
@@ -5207,9 +5207,13 @@ export class MachinesClient extends AuthorizedApiBase {
5207
5207
  }
5208
5208
  listCurrentMachineOperators(machineExternalId, operatorNameQuery) {
5209
5209
  let url_ = this.baseUrl + "/machines/operators?";
5210
- if (machineExternalId !== undefined && machineExternalId !== null)
5210
+ if (machineExternalId === null)
5211
+ throw new Error("The parameter 'machineExternalId' cannot be null.");
5212
+ else if (machineExternalId !== undefined)
5211
5213
  url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
5212
- if (operatorNameQuery !== undefined && operatorNameQuery !== null)
5214
+ if (operatorNameQuery === null)
5215
+ throw new Error("The parameter 'operatorNameQuery' cannot be null.");
5216
+ else if (operatorNameQuery !== undefined)
5213
5217
  url_ += "operatorNameQuery=" + encodeURIComponent("" + operatorNameQuery) + "&";
5214
5218
  url_ = url_.replace(/[?&]$/, "");
5215
5219
  let options_ = {
@@ -5260,7 +5264,9 @@ export class LinksClient extends AuthorizedApiBase {
5260
5264
  }
5261
5265
  getAllLinks(scope) {
5262
5266
  let url_ = this.baseUrl + "/links?";
5263
- if (scope !== undefined && scope !== null)
5267
+ if (scope === null)
5268
+ throw new Error("The parameter 'scope' cannot be null.");
5269
+ else if (scope !== undefined)
5264
5270
  url_ += "scope=" + encodeURIComponent("" + scope) + "&";
5265
5271
  url_ = url_.replace(/[?&]$/, "");
5266
5272
  let options_ = {
@@ -5387,7 +5393,9 @@ export class LinksClient extends AuthorizedApiBase {
5387
5393
  if (id === undefined || id === null)
5388
5394
  throw new Error("The parameter 'id' must be defined.");
5389
5395
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5390
- if (scope !== undefined && scope !== null)
5396
+ if (scope === null)
5397
+ throw new Error("The parameter 'scope' cannot be null.");
5398
+ else if (scope !== undefined)
5391
5399
  url_ += "scope=" + encodeURIComponent("" + scope) + "&";
5392
5400
  url_ = url_.replace(/[?&]$/, "");
5393
5401
  let options_ = {
@@ -5524,7 +5532,9 @@ export class DocumentsClient extends AuthorizedApiBase {
5524
5532
  */
5525
5533
  checkIfImportedDocumentExists(importedReference) {
5526
5534
  let url_ = this.baseUrl + "/documents/importedrevisionexists?";
5527
- if (importedReference !== undefined && importedReference !== null)
5535
+ if (importedReference === null)
5536
+ throw new Error("The parameter 'importedReference' cannot be null.");
5537
+ else if (importedReference !== undefined)
5528
5538
  url_ += "importedReference=" + encodeURIComponent("" + importedReference) + "&";
5529
5539
  url_ = url_.replace(/[?&]$/, "");
5530
5540
  let options_ = {
@@ -16970,6 +16980,41 @@ export class WorkordersClient extends AuthorizedApiBase {
16970
16980
  }
16971
16981
  return Promise.resolve(null);
16972
16982
  }
16983
+ /**
16984
+ * Deleteds existing work order mappings.
16985
+ */
16986
+ deleteWorkOrderMappings() {
16987
+ let url_ = this.baseUrl + "/erp/workorders/mappings";
16988
+ url_ = url_.replace(/[?&]$/, "");
16989
+ let options_ = {
16990
+ method: "DELETE",
16991
+ headers: {}
16992
+ };
16993
+ return this.transformOptions(options_).then(transformedOptions_ => {
16994
+ return this.http.fetch(url_, transformedOptions_);
16995
+ }).then((_response) => {
16996
+ return this.processDeleteWorkOrderMappings(_response);
16997
+ });
16998
+ }
16999
+ processDeleteWorkOrderMappings(response) {
17000
+ const status = response.status;
17001
+ let _headers = {};
17002
+ if (response.headers && response.headers.forEach) {
17003
+ response.headers.forEach((v, k) => _headers[k] = v);
17004
+ }
17005
+ ;
17006
+ if (status === 204) {
17007
+ return response.text().then((_responseText) => {
17008
+ return;
17009
+ });
17010
+ }
17011
+ else if (status !== 200 && status !== 204) {
17012
+ return response.text().then((_responseText) => {
17013
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
17014
+ });
17015
+ }
17016
+ return Promise.resolve(null);
17017
+ }
16973
17018
  }
16974
17019
  export class AzureRegionDto {
16975
17020
  constructor(data) {
@@ -27433,6 +27478,7 @@ export class ProductionOrderDto {
27433
27478
  this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
27434
27479
  this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : undefined;
27435
27480
  this.endLocation = _data["endLocation"];
27481
+ this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
27436
27482
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
27437
27483
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
27438
27484
  this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : undefined;
@@ -27467,6 +27513,7 @@ export class ProductionOrderDto {
27467
27513
  data["planner"] = this.planner ? this.planner.toJSON() : undefined;
27468
27514
  data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : undefined;
27469
27515
  data["endLocation"] = this.endLocation;
27516
+ data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
27470
27517
  data["project"] = this.project ? this.project.toJSON() : undefined;
27471
27518
  data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined;
27472
27519
  data["endDate"] = this.endDate ? this.endDate.toISOString() : undefined;
@@ -27501,6 +27548,8 @@ export class ProductionOrderOperationDto {
27501
27548
  this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined;
27502
27549
  this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : undefined;
27503
27550
  this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : undefined;
27551
+ this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : undefined;
27552
+ this.actualEnd = _data["actualEnd"] ? new Date(_data["actualEnd"].toString()) : undefined;
27504
27553
  this.status = _data["status"];
27505
27554
  this.producedQuantity = _data["producedQuantity"];
27506
27555
  this.scrappedQuantity = _data["scrappedQuantity"];
@@ -27537,6 +27586,8 @@ export class ProductionOrderOperationDto {
27537
27586
  data["resource"] = this.resource ? this.resource.toJSON() : undefined;
27538
27587
  data["plannedStart"] = this.plannedStart ? this.plannedStart.toISOString() : undefined;
27539
27588
  data["plannedEnd"] = this.plannedEnd ? this.plannedEnd.toISOString() : undefined;
27589
+ data["actualStart"] = this.actualStart ? this.actualStart.toISOString() : undefined;
27590
+ data["actualEnd"] = this.actualEnd ? this.actualEnd.toISOString() : undefined;
27540
27591
  data["status"] = this.status;
27541
27592
  data["producedQuantity"] = this.producedQuantity;
27542
27593
  data["scrappedQuantity"] = this.scrappedQuantity;
@@ -27552,6 +27603,38 @@ export class ProductionOrderOperationDto {
27552
27603
  return data;
27553
27604
  }
27554
27605
  }
27606
+ export class WarehouseLocationDto {
27607
+ constructor(data) {
27608
+ if (data) {
27609
+ for (var property in data) {
27610
+ if (data.hasOwnProperty(property))
27611
+ this[property] = data[property];
27612
+ }
27613
+ }
27614
+ }
27615
+ init(_data) {
27616
+ if (_data) {
27617
+ this.zone = _data["zone"];
27618
+ this.location = _data["location"];
27619
+ this.warehouse = _data["warehouse"];
27620
+ this.site = _data["site"];
27621
+ }
27622
+ }
27623
+ static fromJS(data) {
27624
+ data = typeof data === 'object' ? data : {};
27625
+ let result = new WarehouseLocationDto();
27626
+ result.init(data);
27627
+ return result;
27628
+ }
27629
+ toJSON(data) {
27630
+ data = typeof data === 'object' ? data : {};
27631
+ data["zone"] = this.zone;
27632
+ data["location"] = this.location;
27633
+ data["warehouse"] = this.warehouse;
27634
+ data["site"] = this.site;
27635
+ return data;
27636
+ }
27637
+ }
27555
27638
  export class DrawingDto {
27556
27639
  constructor(data) {
27557
27640
  if (data) {
@@ -28108,6 +28191,8 @@ export class ProductionScheduleOperationDto {
28108
28191
  this.operationName = _data["operationName"];
28109
28192
  this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : undefined;
28110
28193
  this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : undefined;
28194
+ this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : undefined;
28195
+ this.actualEnd = _data["actualEnd"] ? new Date(_data["actualEnd"].toString()) : undefined;
28111
28196
  this.status = _data["status"];
28112
28197
  this.totalPlannedHours = _data["totalPlannedHours"];
28113
28198
  this.totalUsedHours = _data["totalUsedHours"];
@@ -28140,6 +28225,7 @@ export class ProductionScheduleOperationDto {
28140
28225
  this.toolNumber = _data["toolNumber"];
28141
28226
  this.prerequisites = _data["prerequisites"] ? OperationPrerequisitesDto.fromJS(_data["prerequisites"]) : new OperationPrerequisitesDto();
28142
28227
  this.endLocation = _data["endLocation"];
28228
+ this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
28143
28229
  this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : undefined;
28144
28230
  this.drawingNumber = _data["drawingNumber"];
28145
28231
  this.disableSetupRegistration = _data["disableSetupRegistration"];
@@ -28160,6 +28246,8 @@ export class ProductionScheduleOperationDto {
28160
28246
  data["operationName"] = this.operationName;
28161
28247
  data["plannedStart"] = this.plannedStart ? this.plannedStart.toISOString() : undefined;
28162
28248
  data["plannedEnd"] = this.plannedEnd ? this.plannedEnd.toISOString() : undefined;
28249
+ data["actualStart"] = this.actualStart ? this.actualStart.toISOString() : undefined;
28250
+ data["actualEnd"] = this.actualEnd ? this.actualEnd.toISOString() : undefined;
28163
28251
  data["status"] = this.status;
28164
28252
  data["totalPlannedHours"] = this.totalPlannedHours;
28165
28253
  data["totalUsedHours"] = this.totalUsedHours;
@@ -28192,6 +28280,7 @@ export class ProductionScheduleOperationDto {
28192
28280
  data["toolNumber"] = this.toolNumber;
28193
28281
  data["prerequisites"] = this.prerequisites ? this.prerequisites.toJSON() : undefined;
28194
28282
  data["endLocation"] = this.endLocation;
28283
+ data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
28195
28284
  data["drawing"] = this.drawing ? this.drawing.toJSON() : undefined;
28196
28285
  data["drawingNumber"] = this.drawingNumber;
28197
28286
  data["disableSetupRegistration"] = this.disableSetupRegistration;
@@ -28215,6 +28304,8 @@ export class SurroundingOperationDto {
28215
28304
  this.operationName = _data["operationName"];
28216
28305
  this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : undefined;
28217
28306
  this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : undefined;
28307
+ this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : undefined;
28308
+ this.actualEnd = _data["actualEnd"] ? new Date(_data["actualEnd"].toString()) : undefined;
28218
28309
  this.status = _data["status"];
28219
28310
  this.resourceGroupId = _data["resourceGroupId"];
28220
28311
  this.resourceId = _data["resourceId"];
@@ -28237,6 +28328,8 @@ export class SurroundingOperationDto {
28237
28328
  data["operationName"] = this.operationName;
28238
28329
  data["plannedStart"] = this.plannedStart ? this.plannedStart.toISOString() : undefined;
28239
28330
  data["plannedEnd"] = this.plannedEnd ? this.plannedEnd.toISOString() : undefined;
28331
+ data["actualStart"] = this.actualStart ? this.actualStart.toISOString() : undefined;
28332
+ data["actualEnd"] = this.actualEnd ? this.actualEnd.toISOString() : undefined;
28240
28333
  data["status"] = this.status;
28241
28334
  data["resourceGroupId"] = this.resourceGroupId;
28242
28335
  data["resourceId"] = this.resourceId;
@@ -29317,6 +29410,8 @@ export class WorkorderOperationDto {
29317
29410
  this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : undefined;
29318
29411
  this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : undefined;
29319
29412
  this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : undefined;
29413
+ this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : undefined;
29414
+ this.actualEnd = _data["actualEnd"] ? new Date(_data["actualEnd"].toString()) : undefined;
29320
29415
  this.status = _data["status"];
29321
29416
  this.producedQuantity = _data["producedQuantity"];
29322
29417
  this.scrappedQuantity = _data["scrappedQuantity"];
@@ -29346,6 +29441,8 @@ export class WorkorderOperationDto {
29346
29441
  data["resource"] = this.resource ? this.resource.toJSON() : undefined;
29347
29442
  data["plannedStart"] = this.plannedStart ? this.plannedStart.toISOString() : undefined;
29348
29443
  data["plannedEnd"] = this.plannedEnd ? this.plannedEnd.toISOString() : undefined;
29444
+ data["actualStart"] = this.actualStart ? this.actualStart.toISOString() : undefined;
29445
+ data["actualEnd"] = this.actualEnd ? this.actualEnd.toISOString() : undefined;
29349
29446
  data["status"] = this.status;
29350
29447
  data["producedQuantity"] = this.producedQuantity;
29351
29448
  data["scrappedQuantity"] = this.scrappedQuantity;
@@ -34012,6 +34109,7 @@ export class UpsertWorkorderV2 {
34012
34109
  this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : undefined;
34013
34110
  this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : undefined;
34014
34111
  this.endLocation = _data["endLocation"];
34112
+ this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
34015
34113
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
34016
34114
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
34017
34115
  this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : undefined;
@@ -34046,6 +34144,7 @@ export class UpsertWorkorderV2 {
34046
34144
  data["planner"] = this.planner ? this.planner.toJSON() : undefined;
34047
34145
  data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : undefined;
34048
34146
  data["endLocation"] = this.endLocation;
34147
+ data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
34049
34148
  data["project"] = this.project ? this.project.toJSON() : undefined;
34050
34149
  data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined;
34051
34150
  data["endDate"] = this.endDate ? this.endDate.toISOString() : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240312.0.8822",
3
+ "version": "20240315.0.8961",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -5127,7 +5127,7 @@ export interface IMachinesClient {
5127
5127
 
5128
5128
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
5129
5129
 
5130
- listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
5130
+ listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]>;
5131
5131
  }
5132
5132
 
5133
5133
  export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
@@ -5574,11 +5574,15 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5574
5574
  return Promise.resolve<UtilizationSummaryDto>(null as any);
5575
5575
  }
5576
5576
 
5577
- listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]> {
5577
+ listCurrentMachineOperators(machineExternalId: string | undefined, operatorNameQuery: string | undefined): Promise<OperatorAndMachineDto[]> {
5578
5578
  let url_ = this.baseUrl + "/machines/operators?";
5579
- if (machineExternalId !== undefined && machineExternalId !== null)
5579
+ if (machineExternalId === null)
5580
+ throw new Error("The parameter 'machineExternalId' cannot be null.");
5581
+ else if (machineExternalId !== undefined)
5580
5582
  url_ += "machineExternalId=" + encodeURIComponent("" + machineExternalId) + "&";
5581
- if (operatorNameQuery !== undefined && operatorNameQuery !== null)
5583
+ if (operatorNameQuery === null)
5584
+ throw new Error("The parameter 'operatorNameQuery' cannot be null.");
5585
+ else if (operatorNameQuery !== undefined)
5582
5586
  url_ += "operatorNameQuery=" + encodeURIComponent("" + operatorNameQuery) + "&";
5583
5587
  url_ = url_.replace(/[?&]$/, "");
5584
5588
 
@@ -5621,13 +5625,13 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5621
5625
 
5622
5626
  export interface ILinksClient {
5623
5627
 
5624
- getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
5628
+ getAllLinks(scope: string | undefined): Promise<LinkDto[]>;
5625
5629
 
5626
5630
  createLink(request: CreateLinkRequest): Promise<LinkDto>;
5627
5631
 
5628
5632
  getAllLinkScopes(): Promise<string[]>;
5629
5633
 
5630
- deleteLink(id: string, scope: string | null | undefined): Promise<void>;
5634
+ deleteLink(id: string, scope: string | undefined): Promise<void>;
5631
5635
  }
5632
5636
 
5633
5637
  export class LinksClient extends AuthorizedApiBase implements ILinksClient {
@@ -5641,9 +5645,11 @@ export class LinksClient extends AuthorizedApiBase implements ILinksClient {
5641
5645
  this.baseUrl = baseUrl ?? "";
5642
5646
  }
5643
5647
 
5644
- getAllLinks(scope: string | null | undefined): Promise<LinkDto[]> {
5648
+ getAllLinks(scope: string | undefined): Promise<LinkDto[]> {
5645
5649
  let url_ = this.baseUrl + "/links?";
5646
- if (scope !== undefined && scope !== null)
5650
+ if (scope === null)
5651
+ throw new Error("The parameter 'scope' cannot be null.");
5652
+ else if (scope !== undefined)
5647
5653
  url_ += "scope=" + encodeURIComponent("" + scope) + "&";
5648
5654
  url_ = url_.replace(/[?&]$/, "");
5649
5655
 
@@ -5763,12 +5769,14 @@ export class LinksClient extends AuthorizedApiBase implements ILinksClient {
5763
5769
  return Promise.resolve<string[]>(null as any);
5764
5770
  }
5765
5771
 
5766
- deleteLink(id: string, scope: string | null | undefined): Promise<void> {
5772
+ deleteLink(id: string, scope: string | undefined): Promise<void> {
5767
5773
  let url_ = this.baseUrl + "/links/{id}?";
5768
5774
  if (id === undefined || id === null)
5769
5775
  throw new Error("The parameter 'id' must be defined.");
5770
5776
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
5771
- if (scope !== undefined && scope !== null)
5777
+ if (scope === null)
5778
+ throw new Error("The parameter 'scope' cannot be null.");
5779
+ else if (scope !== undefined)
5772
5780
  url_ += "scope=" + encodeURIComponent("" + scope) + "&";
5773
5781
  url_ = url_.replace(/[?&]$/, "");
5774
5782
 
@@ -5868,7 +5876,7 @@ export interface IDocumentsClient {
5868
5876
  * Checks if a document exists with import reference. Returns document id if document exists.
5869
5877
  * @param importedReference (optional)
5870
5878
  */
5871
- checkIfImportedDocumentExists(importedReference: string | null | undefined): Promise<string>;
5879
+ checkIfImportedDocumentExists(importedReference: string | undefined): Promise<string>;
5872
5880
  }
5873
5881
 
5874
5882
  export class DocumentsClient extends AuthorizedApiBase implements IDocumentsClient {
@@ -5929,9 +5937,11 @@ export class DocumentsClient extends AuthorizedApiBase implements IDocumentsClie
5929
5937
  * Checks if a document exists with import reference. Returns document id if document exists.
5930
5938
  * @param importedReference (optional)
5931
5939
  */
5932
- checkIfImportedDocumentExists(importedReference: string | null | undefined): Promise<string> {
5940
+ checkIfImportedDocumentExists(importedReference: string | undefined): Promise<string> {
5933
5941
  let url_ = this.baseUrl + "/documents/importedrevisionexists?";
5934
- if (importedReference !== undefined && importedReference !== null)
5942
+ if (importedReference === null)
5943
+ throw new Error("The parameter 'importedReference' cannot be null.");
5944
+ else if (importedReference !== undefined)
5935
5945
  url_ += "importedReference=" + encodeURIComponent("" + importedReference) + "&";
5936
5946
  url_ = url_.replace(/[?&]$/, "");
5937
5947
 
@@ -17137,6 +17147,11 @@ export interface IWorkordersClient {
17137
17147
  * Creates a work order mapping between old id and new work order id.
17138
17148
  */
17139
17149
  createWorkOrderMapping(request: CreateWorkOrderMapping): Promise<void>;
17150
+
17151
+ /**
17152
+ * Deleteds existing work order mappings.
17153
+ */
17154
+ deleteWorkOrderMappings(): Promise<void>;
17140
17155
  }
17141
17156
 
17142
17157
  export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
@@ -18105,6 +18120,41 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
18105
18120
  }
18106
18121
  return Promise.resolve<void>(null as any);
18107
18122
  }
18123
+
18124
+ /**
18125
+ * Deleteds existing work order mappings.
18126
+ */
18127
+ deleteWorkOrderMappings(): Promise<void> {
18128
+ let url_ = this.baseUrl + "/erp/workorders/mappings";
18129
+ url_ = url_.replace(/[?&]$/, "");
18130
+
18131
+ let options_: RequestInit = {
18132
+ method: "DELETE",
18133
+ headers: {
18134
+ }
18135
+ };
18136
+
18137
+ return this.transformOptions(options_).then(transformedOptions_ => {
18138
+ return this.http.fetch(url_, transformedOptions_);
18139
+ }).then((_response: Response) => {
18140
+ return this.processDeleteWorkOrderMappings(_response);
18141
+ });
18142
+ }
18143
+
18144
+ protected processDeleteWorkOrderMappings(response: Response): Promise<void> {
18145
+ const status = response.status;
18146
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18147
+ if (status === 204) {
18148
+ return response.text().then((_responseText) => {
18149
+ return;
18150
+ });
18151
+ } else if (status !== 200 && status !== 204) {
18152
+ return response.text().then((_responseText) => {
18153
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18154
+ });
18155
+ }
18156
+ return Promise.resolve<void>(null as any);
18157
+ }
18108
18158
  }
18109
18159
 
18110
18160
  export class AzureRegionDto implements IAzureRegionDto {
@@ -33715,6 +33765,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
33715
33765
  planner?: UserDto | null;
33716
33766
  projectLeader?: UserDto | null;
33717
33767
  endLocation?: string | null;
33768
+ deliveryLocation?: WarehouseLocationDto | null;
33718
33769
  project?: WorkOrderProjectDto | null;
33719
33770
  startDate?: Date | null;
33720
33771
  endDate?: Date | null;
@@ -33755,6 +33806,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
33755
33806
  this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
33756
33807
  this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : <any>undefined;
33757
33808
  this.endLocation = _data["endLocation"];
33809
+ this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
33758
33810
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
33759
33811
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : <any>undefined;
33760
33812
  this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : <any>undefined;
@@ -33791,6 +33843,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
33791
33843
  data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
33792
33844
  data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : <any>undefined;
33793
33845
  data["endLocation"] = this.endLocation;
33846
+ data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
33794
33847
  data["project"] = this.project ? this.project.toJSON() : <any>undefined;
33795
33848
  data["startDate"] = this.startDate ? this.startDate.toISOString() : <any>undefined;
33796
33849
  data["endDate"] = this.endDate ? this.endDate.toISOString() : <any>undefined;
@@ -33816,6 +33869,7 @@ export interface IProductionOrderDto {
33816
33869
  planner?: UserDto | null;
33817
33870
  projectLeader?: UserDto | null;
33818
33871
  endLocation?: string | null;
33872
+ deliveryLocation?: WarehouseLocationDto | null;
33819
33873
  project?: WorkOrderProjectDto | null;
33820
33874
  startDate?: Date | null;
33821
33875
  endDate?: Date | null;
@@ -33839,6 +33893,8 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
33839
33893
  resource?: ResourceDto | null;
33840
33894
  plannedStart?: Date | null;
33841
33895
  plannedEnd?: Date | null;
33896
+ actualStart?: Date | null;
33897
+ actualEnd?: Date | null;
33842
33898
  status!: OperationStatusDto;
33843
33899
  producedQuantity!: number;
33844
33900
  scrappedQuantity!: number;
@@ -33877,6 +33933,8 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
33877
33933
  this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : <any>undefined;
33878
33934
  this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : <any>undefined;
33879
33935
  this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : <any>undefined;
33936
+ this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : <any>undefined;
33937
+ this.actualEnd = _data["actualEnd"] ? new Date(_data["actualEnd"].toString()) : <any>undefined;
33880
33938
  this.status = _data["status"];
33881
33939
  this.producedQuantity = _data["producedQuantity"];
33882
33940
  this.scrappedQuantity = _data["scrappedQuantity"];
@@ -33915,6 +33973,8 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
33915
33973
  data["resource"] = this.resource ? this.resource.toJSON() : <any>undefined;
33916
33974
  data["plannedStart"] = this.plannedStart ? this.plannedStart.toISOString() : <any>undefined;
33917
33975
  data["plannedEnd"] = this.plannedEnd ? this.plannedEnd.toISOString() : <any>undefined;
33976
+ data["actualStart"] = this.actualStart ? this.actualStart.toISOString() : <any>undefined;
33977
+ data["actualEnd"] = this.actualEnd ? this.actualEnd.toISOString() : <any>undefined;
33918
33978
  data["status"] = this.status;
33919
33979
  data["producedQuantity"] = this.producedQuantity;
33920
33980
  data["scrappedQuantity"] = this.scrappedQuantity;
@@ -33946,6 +34006,8 @@ export interface IProductionOrderOperationDto {
33946
34006
  resource?: ResourceDto | null;
33947
34007
  plannedStart?: Date | null;
33948
34008
  plannedEnd?: Date | null;
34009
+ actualStart?: Date | null;
34010
+ actualEnd?: Date | null;
33949
34011
  status: OperationStatusDto;
33950
34012
  producedQuantity: number;
33951
34013
  scrappedQuantity: number;
@@ -33960,6 +34022,54 @@ export interface IProductionOrderOperationDto {
33960
34022
  disableSetupRegistration: boolean;
33961
34023
  }
33962
34024
 
34025
+ export class WarehouseLocationDto implements IWarehouseLocationDto {
34026
+ zone?: string | null;
34027
+ location!: string;
34028
+ warehouse?: string | null;
34029
+ site?: string | null;
34030
+
34031
+ constructor(data?: IWarehouseLocationDto) {
34032
+ if (data) {
34033
+ for (var property in data) {
34034
+ if (data.hasOwnProperty(property))
34035
+ (<any>this)[property] = (<any>data)[property];
34036
+ }
34037
+ }
34038
+ }
34039
+
34040
+ init(_data?: any) {
34041
+ if (_data) {
34042
+ this.zone = _data["zone"];
34043
+ this.location = _data["location"];
34044
+ this.warehouse = _data["warehouse"];
34045
+ this.site = _data["site"];
34046
+ }
34047
+ }
34048
+
34049
+ static fromJS(data: any): WarehouseLocationDto {
34050
+ data = typeof data === 'object' ? data : {};
34051
+ let result = new WarehouseLocationDto();
34052
+ result.init(data);
34053
+ return result;
34054
+ }
34055
+
34056
+ toJSON(data?: any) {
34057
+ data = typeof data === 'object' ? data : {};
34058
+ data["zone"] = this.zone;
34059
+ data["location"] = this.location;
34060
+ data["warehouse"] = this.warehouse;
34061
+ data["site"] = this.site;
34062
+ return data;
34063
+ }
34064
+ }
34065
+
34066
+ export interface IWarehouseLocationDto {
34067
+ zone?: string | null;
34068
+ location: string;
34069
+ warehouse?: string | null;
34070
+ site?: string | null;
34071
+ }
34072
+
33963
34073
  export class DrawingDto implements IDrawingDto {
33964
34074
  drawingNumber!: string;
33965
34075
  revision?: string;
@@ -34775,6 +34885,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
34775
34885
  operationName!: string;
34776
34886
  plannedStart!: Date;
34777
34887
  plannedEnd?: Date | null;
34888
+ actualStart?: Date | null;
34889
+ actualEnd?: Date | null;
34778
34890
  status!: OperationStatusDto;
34779
34891
  totalPlannedHours?: number;
34780
34892
  totalUsedHours?: number;
@@ -34807,6 +34919,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
34807
34919
  toolNumber?: string | null;
34808
34920
  prerequisites!: OperationPrerequisitesDto;
34809
34921
  endLocation?: string | null;
34922
+ deliveryLocation?: WarehouseLocationDto | null;
34810
34923
  drawing?: DrawingDto | null;
34811
34924
  drawingNumber?: string | null;
34812
34925
  disableSetupRegistration!: boolean;
@@ -34832,6 +34945,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
34832
34945
  this.operationName = _data["operationName"];
34833
34946
  this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : <any>undefined;
34834
34947
  this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : <any>undefined;
34948
+ this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : <any>undefined;
34949
+ this.actualEnd = _data["actualEnd"] ? new Date(_data["actualEnd"].toString()) : <any>undefined;
34835
34950
  this.status = _data["status"];
34836
34951
  this.totalPlannedHours = _data["totalPlannedHours"];
34837
34952
  this.totalUsedHours = _data["totalUsedHours"];
@@ -34864,6 +34979,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
34864
34979
  this.toolNumber = _data["toolNumber"];
34865
34980
  this.prerequisites = _data["prerequisites"] ? OperationPrerequisitesDto.fromJS(_data["prerequisites"]) : new OperationPrerequisitesDto();
34866
34981
  this.endLocation = _data["endLocation"];
34982
+ this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
34867
34983
  this.drawing = _data["drawing"] ? DrawingDto.fromJS(_data["drawing"]) : <any>undefined;
34868
34984
  this.drawingNumber = _data["drawingNumber"];
34869
34985
  this.disableSetupRegistration = _data["disableSetupRegistration"];
@@ -34886,6 +35002,8 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
34886
35002
  data["operationName"] = this.operationName;
34887
35003
  data["plannedStart"] = this.plannedStart ? this.plannedStart.toISOString() : <any>undefined;
34888
35004
  data["plannedEnd"] = this.plannedEnd ? this.plannedEnd.toISOString() : <any>undefined;
35005
+ data["actualStart"] = this.actualStart ? this.actualStart.toISOString() : <any>undefined;
35006
+ data["actualEnd"] = this.actualEnd ? this.actualEnd.toISOString() : <any>undefined;
34889
35007
  data["status"] = this.status;
34890
35008
  data["totalPlannedHours"] = this.totalPlannedHours;
34891
35009
  data["totalUsedHours"] = this.totalUsedHours;
@@ -34918,6 +35036,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
34918
35036
  data["toolNumber"] = this.toolNumber;
34919
35037
  data["prerequisites"] = this.prerequisites ? this.prerequisites.toJSON() : <any>undefined;
34920
35038
  data["endLocation"] = this.endLocation;
35039
+ data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
34921
35040
  data["drawing"] = this.drawing ? this.drawing.toJSON() : <any>undefined;
34922
35041
  data["drawingNumber"] = this.drawingNumber;
34923
35042
  data["disableSetupRegistration"] = this.disableSetupRegistration;
@@ -34933,6 +35052,8 @@ export interface IProductionScheduleOperationDto {
34933
35052
  operationName: string;
34934
35053
  plannedStart: Date;
34935
35054
  plannedEnd?: Date | null;
35055
+ actualStart?: Date | null;
35056
+ actualEnd?: Date | null;
34936
35057
  status: OperationStatusDto;
34937
35058
  totalPlannedHours?: number;
34938
35059
  totalUsedHours?: number;
@@ -34965,6 +35086,7 @@ export interface IProductionScheduleOperationDto {
34965
35086
  toolNumber?: string | null;
34966
35087
  prerequisites: OperationPrerequisitesDto;
34967
35088
  endLocation?: string | null;
35089
+ deliveryLocation?: WarehouseLocationDto | null;
34968
35090
  drawing?: DrawingDto | null;
34969
35091
  drawingNumber?: string | null;
34970
35092
  disableSetupRegistration: boolean;
@@ -34977,6 +35099,8 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
34977
35099
  operationName!: string;
34978
35100
  plannedStart!: Date;
34979
35101
  plannedEnd?: Date | null;
35102
+ actualStart?: Date | null;
35103
+ actualEnd?: Date | null;
34980
35104
  status!: OperationStatusDto;
34981
35105
  resourceGroupId?: string | null;
34982
35106
  resourceId?: string | null;
@@ -35001,6 +35125,8 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
35001
35125
  this.operationName = _data["operationName"];
35002
35126
  this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : <any>undefined;
35003
35127
  this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : <any>undefined;
35128
+ this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : <any>undefined;
35129
+ this.actualEnd = _data["actualEnd"] ? new Date(_data["actualEnd"].toString()) : <any>undefined;
35004
35130
  this.status = _data["status"];
35005
35131
  this.resourceGroupId = _data["resourceGroupId"];
35006
35132
  this.resourceId = _data["resourceId"];
@@ -35025,6 +35151,8 @@ export class SurroundingOperationDto implements ISurroundingOperationDto {
35025
35151
  data["operationName"] = this.operationName;
35026
35152
  data["plannedStart"] = this.plannedStart ? this.plannedStart.toISOString() : <any>undefined;
35027
35153
  data["plannedEnd"] = this.plannedEnd ? this.plannedEnd.toISOString() : <any>undefined;
35154
+ data["actualStart"] = this.actualStart ? this.actualStart.toISOString() : <any>undefined;
35155
+ data["actualEnd"] = this.actualEnd ? this.actualEnd.toISOString() : <any>undefined;
35028
35156
  data["status"] = this.status;
35029
35157
  data["resourceGroupId"] = this.resourceGroupId;
35030
35158
  data["resourceId"] = this.resourceId;
@@ -35042,6 +35170,8 @@ export interface ISurroundingOperationDto {
35042
35170
  operationName: string;
35043
35171
  plannedStart: Date;
35044
35172
  plannedEnd?: Date | null;
35173
+ actualStart?: Date | null;
35174
+ actualEnd?: Date | null;
35045
35175
  status: OperationStatusDto;
35046
35176
  resourceGroupId?: string | null;
35047
35177
  resourceId?: string | null;
@@ -36532,6 +36662,8 @@ export class WorkorderOperationDto implements IWorkorderOperationDto {
36532
36662
  resource?: ResourceDto | null;
36533
36663
  plannedStart?: Date | null;
36534
36664
  plannedEnd?: Date | null;
36665
+ actualStart?: Date | null;
36666
+ actualEnd?: Date | null;
36535
36667
  status!: OperationStatusDto;
36536
36668
  producedQuantity!: number;
36537
36669
  scrappedQuantity!: number;
@@ -36562,6 +36694,8 @@ export class WorkorderOperationDto implements IWorkorderOperationDto {
36562
36694
  this.resource = _data["resource"] ? ResourceDto.fromJS(_data["resource"]) : <any>undefined;
36563
36695
  this.plannedStart = _data["plannedStart"] ? new Date(_data["plannedStart"].toString()) : <any>undefined;
36564
36696
  this.plannedEnd = _data["plannedEnd"] ? new Date(_data["plannedEnd"].toString()) : <any>undefined;
36697
+ this.actualStart = _data["actualStart"] ? new Date(_data["actualStart"].toString()) : <any>undefined;
36698
+ this.actualEnd = _data["actualEnd"] ? new Date(_data["actualEnd"].toString()) : <any>undefined;
36565
36699
  this.status = _data["status"];
36566
36700
  this.producedQuantity = _data["producedQuantity"];
36567
36701
  this.scrappedQuantity = _data["scrappedQuantity"];
@@ -36593,6 +36727,8 @@ export class WorkorderOperationDto implements IWorkorderOperationDto {
36593
36727
  data["resource"] = this.resource ? this.resource.toJSON() : <any>undefined;
36594
36728
  data["plannedStart"] = this.plannedStart ? this.plannedStart.toISOString() : <any>undefined;
36595
36729
  data["plannedEnd"] = this.plannedEnd ? this.plannedEnd.toISOString() : <any>undefined;
36730
+ data["actualStart"] = this.actualStart ? this.actualStart.toISOString() : <any>undefined;
36731
+ data["actualEnd"] = this.actualEnd ? this.actualEnd.toISOString() : <any>undefined;
36596
36732
  data["status"] = this.status;
36597
36733
  data["producedQuantity"] = this.producedQuantity;
36598
36734
  data["scrappedQuantity"] = this.scrappedQuantity;
@@ -36617,6 +36753,8 @@ export interface IWorkorderOperationDto {
36617
36753
  resource?: ResourceDto | null;
36618
36754
  plannedStart?: Date | null;
36619
36755
  plannedEnd?: Date | null;
36756
+ actualStart?: Date | null;
36757
+ actualEnd?: Date | null;
36620
36758
  status: OperationStatusDto;
36621
36759
  producedQuantity: number;
36622
36760
  scrappedQuantity: number;
@@ -43634,6 +43772,7 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
43634
43772
  planner?: UserDto | null;
43635
43773
  projectLeader?: UserDto | null;
43636
43774
  endLocation?: string | null;
43775
+ deliveryLocation?: WarehouseLocationDto | null;
43637
43776
  project?: WorkOrderProjectDto | null;
43638
43777
  startDate?: Date | null;
43639
43778
  endDate?: Date | null;
@@ -43674,6 +43813,7 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
43674
43813
  this.planner = _data["planner"] ? UserDto.fromJS(_data["planner"]) : <any>undefined;
43675
43814
  this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : <any>undefined;
43676
43815
  this.endLocation = _data["endLocation"];
43816
+ this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
43677
43817
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
43678
43818
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : <any>undefined;
43679
43819
  this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : <any>undefined;
@@ -43710,6 +43850,7 @@ export class UpsertWorkorderV2 implements IUpsertWorkorderV2 {
43710
43850
  data["planner"] = this.planner ? this.planner.toJSON() : <any>undefined;
43711
43851
  data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : <any>undefined;
43712
43852
  data["endLocation"] = this.endLocation;
43853
+ data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
43713
43854
  data["project"] = this.project ? this.project.toJSON() : <any>undefined;
43714
43855
  data["startDate"] = this.startDate ? this.startDate.toISOString() : <any>undefined;
43715
43856
  data["endDate"] = this.endDate ? this.endDate.toISOString() : <any>undefined;
@@ -43735,6 +43876,7 @@ export interface IUpsertWorkorderV2 {
43735
43876
  planner?: UserDto | null;
43736
43877
  projectLeader?: UserDto | null;
43737
43878
  endLocation?: string | null;
43879
+ deliveryLocation?: WarehouseLocationDto | null;
43738
43880
  project?: WorkOrderProjectDto | null;
43739
43881
  startDate?: Date | null;
43740
43882
  endDate?: Date | null;