@ignos/api-client 20240422.0.9143 → 20240426.0.9163

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.
@@ -1706,7 +1706,7 @@ export declare class MesDocumentsClient extends AuthorizedApiBase implements IMe
1706
1706
  }
1707
1707
  export interface IMesLinksClient {
1708
1708
  addMesLink(request: AddMesLink): Promise<void>;
1709
- listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
1709
+ listMesLinks(types: MesLinkTypeDto[] | null | undefined, workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
1710
1710
  listUnmappedMesLinks(): Promise<MesLinkDto[]>;
1711
1711
  updateMesLink(id: string, request: UpdateMesLink): Promise<FileResponse>;
1712
1712
  deleteMesLink(id: string): Promise<void>;
@@ -1720,7 +1720,7 @@ export declare class MesLinksClient extends AuthorizedApiBase implements IMesLin
1720
1720
  });
1721
1721
  addMesLink(request: AddMesLink): Promise<void>;
1722
1722
  protected processAddMesLink(response: Response): Promise<void>;
1723
- listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
1723
+ listMesLinks(types: MesLinkTypeDto[] | null | undefined, workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
1724
1724
  protected processListMesLinks(response: Response): Promise<MesLinkDto[]>;
1725
1725
  listUnmappedMesLinks(): Promise<MesLinkDto[]>;
1726
1726
  protected processListUnmappedMesLinks(response: Response): Promise<MesLinkDto[]>;
@@ -3951,6 +3951,7 @@ export declare class CustomerOrderLineWorkOrderTraceStatusNodeDto implements ICu
3951
3951
  part: PartDto;
3952
3952
  traceType: TraceType;
3953
3953
  traceExists: boolean;
3954
+ traceStatus: TraceStatus;
3954
3955
  workOrders?: CustomerOrderLineWorkOrderTraceStatusNodeDto[];
3955
3956
  constructor(data?: ICustomerOrderLineWorkOrderTraceStatusNodeDto);
3956
3957
  init(_data?: any): void;
@@ -3962,8 +3963,10 @@ export interface ICustomerOrderLineWorkOrderTraceStatusNodeDto {
3962
3963
  part: PartDto;
3963
3964
  traceType: TraceType;
3964
3965
  traceExists: boolean;
3966
+ traceStatus: TraceStatus;
3965
3967
  workOrders?: CustomerOrderLineWorkOrderTraceStatusNodeDto[];
3966
3968
  }
3969
+ export type TraceStatus = "None" | "Unavailable" | "NotNeeded" | "Partial" | "Completed";
3967
3970
  export declare class PagedResultOfTraceWorkOrderListDto implements IPagedResultOfTraceWorkOrderListDto {
3968
3971
  results: TraceWorkOrderListDto[];
3969
3972
  continuationToken?: string | null;
@@ -9623,6 +9626,7 @@ export declare class ProductionOrderDto implements IProductionOrderDto {
9623
9626
  projectLeader?: UserDto | null;
9624
9627
  deliveryLocation?: WarehouseLocationDto | null;
9625
9628
  project?: WorkOrderProjectDto | null;
9629
+ attachments?: WorkOrderAttachmentDto[] | null;
9626
9630
  startDate?: Date | null;
9627
9631
  endDate?: Date | null;
9628
9632
  bomPosition?: string | null;
@@ -9649,6 +9653,7 @@ export interface IProductionOrderDto {
9649
9653
  projectLeader?: UserDto | null;
9650
9654
  deliveryLocation?: WarehouseLocationDto | null;
9651
9655
  project?: WorkOrderProjectDto | null;
9656
+ attachments?: WorkOrderAttachmentDto[] | null;
9652
9657
  startDate?: Date | null;
9653
9658
  endDate?: Date | null;
9654
9659
  bomPosition?: string | null;
@@ -9737,6 +9742,28 @@ export interface IWarehouseLocationDto {
9737
9742
  warehouse?: string | null;
9738
9743
  site?: string | null;
9739
9744
  }
9745
+ export declare class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
9746
+ createdBy?: string | null;
9747
+ created?: Date | null;
9748
+ modifiedBy?: string | null;
9749
+ modified?: Date | null;
9750
+ notes?: string | null;
9751
+ name?: string | null;
9752
+ typeId?: string | null;
9753
+ constructor(data?: IWorkOrderAttachmentDto);
9754
+ init(_data?: any): void;
9755
+ static fromJS(data: any): WorkOrderAttachmentDto;
9756
+ toJSON(data?: any): any;
9757
+ }
9758
+ export interface IWorkOrderAttachmentDto {
9759
+ createdBy?: string | null;
9760
+ created?: Date | null;
9761
+ modifiedBy?: string | null;
9762
+ modified?: Date | null;
9763
+ notes?: string | null;
9764
+ name?: string | null;
9765
+ typeId?: string | null;
9766
+ }
9740
9767
  export declare class DrawingDto implements IDrawingDto {
9741
9768
  drawingNumber: string;
9742
9769
  revision?: string;
@@ -15139,8 +15139,10 @@ export class MesLinksClient extends AuthorizedApiBase {
15139
15139
  }
15140
15140
  return Promise.resolve(null);
15141
15141
  }
15142
- listMesLinks(workOrderId, operation) {
15142
+ listMesLinks(types, workOrderId, operation) {
15143
15143
  let url_ = this.baseUrl + "/mes/links?";
15144
+ if (types !== undefined && types !== null)
15145
+ types && types.forEach(item => { url_ += "types=" + encodeURIComponent("" + item) + "&"; });
15144
15146
  if (workOrderId !== undefined && workOrderId !== null)
15145
15147
  url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
15146
15148
  if (operation !== undefined && operation !== null)
@@ -21751,6 +21753,7 @@ export class CustomerOrderLineWorkOrderTraceStatusNodeDto {
21751
21753
  this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
21752
21754
  this.traceType = _data["traceType"];
21753
21755
  this.traceExists = _data["traceExists"];
21756
+ this.traceStatus = _data["traceStatus"];
21754
21757
  if (Array.isArray(_data["workOrders"])) {
21755
21758
  this.workOrders = [];
21756
21759
  for (let item of _data["workOrders"])
@@ -21770,6 +21773,7 @@ export class CustomerOrderLineWorkOrderTraceStatusNodeDto {
21770
21773
  data["part"] = this.part ? this.part.toJSON() : undefined;
21771
21774
  data["traceType"] = this.traceType;
21772
21775
  data["traceExists"] = this.traceExists;
21776
+ data["traceStatus"] = this.traceStatus;
21773
21777
  if (Array.isArray(this.workOrders)) {
21774
21778
  data["workOrders"] = [];
21775
21779
  for (let item of this.workOrders)
@@ -32735,6 +32739,11 @@ export class ProductionOrderDto {
32735
32739
  this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : undefined;
32736
32740
  this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : undefined;
32737
32741
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
32742
+ if (Array.isArray(_data["attachments"])) {
32743
+ this.attachments = [];
32744
+ for (let item of _data["attachments"])
32745
+ this.attachments.push(WorkOrderAttachmentDto.fromJS(item));
32746
+ }
32738
32747
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : undefined;
32739
32748
  this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : undefined;
32740
32749
  this.bomPosition = _data["bomPosition"];
@@ -32769,6 +32778,11 @@ export class ProductionOrderDto {
32769
32778
  data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : undefined;
32770
32779
  data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : undefined;
32771
32780
  data["project"] = this.project ? this.project.toJSON() : undefined;
32781
+ if (Array.isArray(this.attachments)) {
32782
+ data["attachments"] = [];
32783
+ for (let item of this.attachments)
32784
+ data["attachments"].push(item.toJSON());
32785
+ }
32772
32786
  data["startDate"] = this.startDate ? this.startDate.toISOString() : undefined;
32773
32787
  data["endDate"] = this.endDate ? this.endDate.toISOString() : undefined;
32774
32788
  data["bomPosition"] = this.bomPosition;
@@ -32891,6 +32905,44 @@ export class WarehouseLocationDto {
32891
32905
  return data;
32892
32906
  }
32893
32907
  }
32908
+ export class WorkOrderAttachmentDto {
32909
+ constructor(data) {
32910
+ if (data) {
32911
+ for (var property in data) {
32912
+ if (data.hasOwnProperty(property))
32913
+ this[property] = data[property];
32914
+ }
32915
+ }
32916
+ }
32917
+ init(_data) {
32918
+ if (_data) {
32919
+ this.createdBy = _data["createdBy"];
32920
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
32921
+ this.modifiedBy = _data["modifiedBy"];
32922
+ this.modified = _data["modified"] ? new Date(_data["modified"].toString()) : undefined;
32923
+ this.notes = _data["notes"];
32924
+ this.name = _data["name"];
32925
+ this.typeId = _data["typeId"];
32926
+ }
32927
+ }
32928
+ static fromJS(data) {
32929
+ data = typeof data === 'object' ? data : {};
32930
+ let result = new WorkOrderAttachmentDto();
32931
+ result.init(data);
32932
+ return result;
32933
+ }
32934
+ toJSON(data) {
32935
+ data = typeof data === 'object' ? data : {};
32936
+ data["createdBy"] = this.createdBy;
32937
+ data["created"] = this.created ? this.created.toISOString() : undefined;
32938
+ data["modifiedBy"] = this.modifiedBy;
32939
+ data["modified"] = this.modified ? this.modified.toISOString() : undefined;
32940
+ data["notes"] = this.notes;
32941
+ data["name"] = this.name;
32942
+ data["typeId"] = this.typeId;
32943
+ return data;
32944
+ }
32945
+ }
32894
32946
  export class DrawingDto {
32895
32947
  constructor(data) {
32896
32948
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240422.0.9143",
3
+ "version": "20240426.0.9163",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -16043,7 +16043,7 @@ export interface IMesLinksClient {
16043
16043
 
16044
16044
  addMesLink(request: AddMesLink): Promise<void>;
16045
16045
 
16046
- listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
16046
+ listMesLinks(types: MesLinkTypeDto[] | null | undefined, workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]>;
16047
16047
 
16048
16048
  listUnmappedMesLinks(): Promise<MesLinkDto[]>;
16049
16049
 
@@ -16099,8 +16099,10 @@ export class MesLinksClient extends AuthorizedApiBase implements IMesLinksClient
16099
16099
  return Promise.resolve<void>(null as any);
16100
16100
  }
16101
16101
 
16102
- listMesLinks(workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]> {
16102
+ listMesLinks(types: MesLinkTypeDto[] | null | undefined, workOrderId: string | null | undefined, operation: number | null | undefined): Promise<MesLinkDto[]> {
16103
16103
  let url_ = this.baseUrl + "/mes/links?";
16104
+ if (types !== undefined && types !== null)
16105
+ types && types.forEach(item => { url_ += "types=" + encodeURIComponent("" + item) + "&"; });
16104
16106
  if (workOrderId !== undefined && workOrderId !== null)
16105
16107
  url_ += "workOrderId=" + encodeURIComponent("" + workOrderId) + "&";
16106
16108
  if (operation !== undefined && operation !== null)
@@ -24726,6 +24728,7 @@ export class CustomerOrderLineWorkOrderTraceStatusNodeDto implements ICustomerOr
24726
24728
  part!: PartDto;
24727
24729
  traceType!: TraceType;
24728
24730
  traceExists!: boolean;
24731
+ traceStatus!: TraceStatus;
24729
24732
  workOrders?: CustomerOrderLineWorkOrderTraceStatusNodeDto[];
24730
24733
 
24731
24734
  constructor(data?: ICustomerOrderLineWorkOrderTraceStatusNodeDto) {
@@ -24746,6 +24749,7 @@ export class CustomerOrderLineWorkOrderTraceStatusNodeDto implements ICustomerOr
24746
24749
  this.part = _data["part"] ? PartDto.fromJS(_data["part"]) : new PartDto();
24747
24750
  this.traceType = _data["traceType"];
24748
24751
  this.traceExists = _data["traceExists"];
24752
+ this.traceStatus = _data["traceStatus"];
24749
24753
  if (Array.isArray(_data["workOrders"])) {
24750
24754
  this.workOrders = [] as any;
24751
24755
  for (let item of _data["workOrders"])
@@ -24767,6 +24771,7 @@ export class CustomerOrderLineWorkOrderTraceStatusNodeDto implements ICustomerOr
24767
24771
  data["part"] = this.part ? this.part.toJSON() : <any>undefined;
24768
24772
  data["traceType"] = this.traceType;
24769
24773
  data["traceExists"] = this.traceExists;
24774
+ data["traceStatus"] = this.traceStatus;
24770
24775
  if (Array.isArray(this.workOrders)) {
24771
24776
  data["workOrders"] = [];
24772
24777
  for (let item of this.workOrders)
@@ -24781,9 +24786,12 @@ export interface ICustomerOrderLineWorkOrderTraceStatusNodeDto {
24781
24786
  part: PartDto;
24782
24787
  traceType: TraceType;
24783
24788
  traceExists: boolean;
24789
+ traceStatus: TraceStatus;
24784
24790
  workOrders?: CustomerOrderLineWorkOrderTraceStatusNodeDto[];
24785
24791
  }
24786
24792
 
24793
+ export type TraceStatus = "None" | "Unavailable" | "NotNeeded" | "Partial" | "Completed";
24794
+
24787
24795
  export class PagedResultOfTraceWorkOrderListDto implements IPagedResultOfTraceWorkOrderListDto {
24788
24796
  results!: TraceWorkOrderListDto[];
24789
24797
  continuationToken?: string | null;
@@ -41383,6 +41391,7 @@ export class ProductionOrderDto implements IProductionOrderDto {
41383
41391
  projectLeader?: UserDto | null;
41384
41392
  deliveryLocation?: WarehouseLocationDto | null;
41385
41393
  project?: WorkOrderProjectDto | null;
41394
+ attachments?: WorkOrderAttachmentDto[] | null;
41386
41395
  startDate?: Date | null;
41387
41396
  endDate?: Date | null;
41388
41397
  bomPosition?: string | null;
@@ -41423,6 +41432,11 @@ export class ProductionOrderDto implements IProductionOrderDto {
41423
41432
  this.projectLeader = _data["projectLeader"] ? UserDto.fromJS(_data["projectLeader"]) : <any>undefined;
41424
41433
  this.deliveryLocation = _data["deliveryLocation"] ? WarehouseLocationDto.fromJS(_data["deliveryLocation"]) : <any>undefined;
41425
41434
  this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
41435
+ if (Array.isArray(_data["attachments"])) {
41436
+ this.attachments = [] as any;
41437
+ for (let item of _data["attachments"])
41438
+ this.attachments!.push(WorkOrderAttachmentDto.fromJS(item));
41439
+ }
41426
41440
  this.startDate = _data["startDate"] ? new Date(_data["startDate"].toString()) : <any>undefined;
41427
41441
  this.endDate = _data["endDate"] ? new Date(_data["endDate"].toString()) : <any>undefined;
41428
41442
  this.bomPosition = _data["bomPosition"];
@@ -41459,6 +41473,11 @@ export class ProductionOrderDto implements IProductionOrderDto {
41459
41473
  data["projectLeader"] = this.projectLeader ? this.projectLeader.toJSON() : <any>undefined;
41460
41474
  data["deliveryLocation"] = this.deliveryLocation ? this.deliveryLocation.toJSON() : <any>undefined;
41461
41475
  data["project"] = this.project ? this.project.toJSON() : <any>undefined;
41476
+ if (Array.isArray(this.attachments)) {
41477
+ data["attachments"] = [];
41478
+ for (let item of this.attachments)
41479
+ data["attachments"].push(item.toJSON());
41480
+ }
41462
41481
  data["startDate"] = this.startDate ? this.startDate.toISOString() : <any>undefined;
41463
41482
  data["endDate"] = this.endDate ? this.endDate.toISOString() : <any>undefined;
41464
41483
  data["bomPosition"] = this.bomPosition;
@@ -41484,6 +41503,7 @@ export interface IProductionOrderDto {
41484
41503
  projectLeader?: UserDto | null;
41485
41504
  deliveryLocation?: WarehouseLocationDto | null;
41486
41505
  project?: WorkOrderProjectDto | null;
41506
+ attachments?: WorkOrderAttachmentDto[] | null;
41487
41507
  startDate?: Date | null;
41488
41508
  endDate?: Date | null;
41489
41509
  bomPosition?: string | null;
@@ -41687,6 +41707,66 @@ export interface IWarehouseLocationDto {
41687
41707
  site?: string | null;
41688
41708
  }
41689
41709
 
41710
+ export class WorkOrderAttachmentDto implements IWorkOrderAttachmentDto {
41711
+ createdBy?: string | null;
41712
+ created?: Date | null;
41713
+ modifiedBy?: string | null;
41714
+ modified?: Date | null;
41715
+ notes?: string | null;
41716
+ name?: string | null;
41717
+ typeId?: string | null;
41718
+
41719
+ constructor(data?: IWorkOrderAttachmentDto) {
41720
+ if (data) {
41721
+ for (var property in data) {
41722
+ if (data.hasOwnProperty(property))
41723
+ (<any>this)[property] = (<any>data)[property];
41724
+ }
41725
+ }
41726
+ }
41727
+
41728
+ init(_data?: any) {
41729
+ if (_data) {
41730
+ this.createdBy = _data["createdBy"];
41731
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
41732
+ this.modifiedBy = _data["modifiedBy"];
41733
+ this.modified = _data["modified"] ? new Date(_data["modified"].toString()) : <any>undefined;
41734
+ this.notes = _data["notes"];
41735
+ this.name = _data["name"];
41736
+ this.typeId = _data["typeId"];
41737
+ }
41738
+ }
41739
+
41740
+ static fromJS(data: any): WorkOrderAttachmentDto {
41741
+ data = typeof data === 'object' ? data : {};
41742
+ let result = new WorkOrderAttachmentDto();
41743
+ result.init(data);
41744
+ return result;
41745
+ }
41746
+
41747
+ toJSON(data?: any) {
41748
+ data = typeof data === 'object' ? data : {};
41749
+ data["createdBy"] = this.createdBy;
41750
+ data["created"] = this.created ? this.created.toISOString() : <any>undefined;
41751
+ data["modifiedBy"] = this.modifiedBy;
41752
+ data["modified"] = this.modified ? this.modified.toISOString() : <any>undefined;
41753
+ data["notes"] = this.notes;
41754
+ data["name"] = this.name;
41755
+ data["typeId"] = this.typeId;
41756
+ return data;
41757
+ }
41758
+ }
41759
+
41760
+ export interface IWorkOrderAttachmentDto {
41761
+ createdBy?: string | null;
41762
+ created?: Date | null;
41763
+ modifiedBy?: string | null;
41764
+ modified?: Date | null;
41765
+ notes?: string | null;
41766
+ name?: string | null;
41767
+ typeId?: string | null;
41768
+ }
41769
+
41690
41770
  export class DrawingDto implements IDrawingDto {
41691
41771
  drawingNumber!: string;
41692
41772
  revision?: string;