@ignos/api-client 20250710.0.12165-alpha → 20250711.0.12189-alpha

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.
@@ -2268,9 +2268,9 @@ export interface IMeasurementFormsInstancesClient {
2268
2268
  approveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
2269
2269
  disapproveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
2270
2270
  cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
2271
- getMeasurementFormInstanceSchema(id: string, schemaId: string, sequence: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
2271
+ getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
2272
2272
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
2273
- getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, sequence: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
2273
+ getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
2274
2274
  getValidationRules(): Promise<ValidationRuleDto[]>;
2275
2275
  saveValue(id: string, tenantId: string | null | undefined, request: SaveValueRequest): Promise<SaveValueResponseDto>;
2276
2276
  saveTool(id: string, tenantId: string | null | undefined, request: SaveToolRequest): Promise<SaveValueResponseDto>;
@@ -2286,7 +2286,6 @@ export interface IMeasurementFormsInstancesClient {
2286
2286
  updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
2287
2287
  getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
2288
2288
  toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
2289
- importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
2290
2289
  }
2291
2290
  export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase implements IMeasurementFormsInstancesClient {
2292
2291
  private http;
@@ -2323,11 +2322,11 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
2323
2322
  protected processDisapproveMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
2324
2323
  cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
2325
2324
  protected processCancelMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
2326
- getMeasurementFormInstanceSchema(id: string, schemaId: string, sequence: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
2325
+ getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
2327
2326
  protected processGetMeasurementFormInstanceSchema(response: Response): Promise<MeasurementFormInstanceSchemaDto>;
2328
2327
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
2329
2328
  protected processGetWorkorderMeasurementFormProgress(response: Response): Promise<MeasurementFormInstanceProgressDto>;
2330
- getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, sequence: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
2329
+ getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
2331
2330
  protected processGetAuditLog(response: Response): Promise<MeasurementFormElementValueAuditDto[]>;
2332
2331
  getValidationRules(): Promise<ValidationRuleDto[]>;
2333
2332
  protected processGetValidationRules(response: Response): Promise<ValidationRuleDto[]>;
@@ -2359,8 +2358,6 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
2359
2358
  protected processGetSchemaInstanceElements(response: Response): Promise<SchemaInstanceElementDto[]>;
2360
2359
  toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
2361
2360
  protected processToggleSchemaInstanceElementDocumentedExternallyOverride(response: Response): Promise<void>;
2362
- importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
2363
- protected processImportMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
2364
2361
  }
2365
2362
  export interface IElectricalClient {
2366
2363
  listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
@@ -13155,8 +13152,8 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
13155
13152
  serialNumber?: string | null;
13156
13153
  }
13157
13154
  export declare class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
13158
- sequences: MeasurementFormWorkorderSequenceDto[];
13159
- serialNumbers?: MeasurementFormWorkorderSerialNumberDto[] | null;
13155
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
13156
+ serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
13160
13157
  suppliers: MeasurementFormWorkorderSupplierDto[];
13161
13158
  constructor(data?: IUpdateMeasurementFormInstanceRequest);
13162
13159
  init(_data?: any): void;
@@ -13164,8 +13161,8 @@ export declare class UpdateMeasurementFormInstanceRequest implements IUpdateMeas
13164
13161
  toJSON(data?: any): any;
13165
13162
  }
13166
13163
  export interface IUpdateMeasurementFormInstanceRequest {
13167
- sequences: MeasurementFormWorkorderSequenceDto[];
13168
- serialNumbers?: MeasurementFormWorkorderSerialNumberDto[] | null;
13164
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
13165
+ serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
13169
13166
  suppliers: MeasurementFormWorkorderSupplierDto[];
13170
13167
  }
13171
13168
  export declare class MeasurementFormWorkorderSerialNumberDto implements IMeasurementFormWorkorderSerialNumberDto {
@@ -13405,7 +13402,8 @@ export declare class SaveValueRequest implements ISaveValueRequest {
13405
13402
  resourceName?: string | null;
13406
13403
  schemaId: string;
13407
13404
  elementId: string;
13408
- sequence: string;
13405
+ sequence?: string | null;
13406
+ serialNumber: string;
13409
13407
  value?: string | null;
13410
13408
  bonus?: string | null;
13411
13409
  constructor(data?: ISaveValueRequest);
@@ -13418,14 +13416,16 @@ export interface ISaveValueRequest {
13418
13416
  resourceName?: string | null;
13419
13417
  schemaId: string;
13420
13418
  elementId: string;
13421
- sequence: string;
13419
+ sequence?: string | null;
13420
+ serialNumber: string;
13422
13421
  value?: string | null;
13423
13422
  bonus?: string | null;
13424
13423
  }
13425
13424
  export declare class SaveToolRequest implements ISaveToolRequest {
13426
13425
  schemaId: string;
13427
13426
  elementId: string;
13428
- sequence: string;
13427
+ sequence?: string | null;
13428
+ serialNumber: string;
13429
13429
  tools?: string[] | null;
13430
13430
  force?: boolean;
13431
13431
  constructor(data?: ISaveToolRequest);
@@ -13436,14 +13436,16 @@ export declare class SaveToolRequest implements ISaveToolRequest {
13436
13436
  export interface ISaveToolRequest {
13437
13437
  schemaId: string;
13438
13438
  elementId: string;
13439
- sequence: string;
13439
+ sequence?: string | null;
13440
+ serialNumber: string;
13440
13441
  tools?: string[] | null;
13441
13442
  force?: boolean;
13442
13443
  }
13443
13444
  export declare class SaveCommentRequest implements ISaveCommentRequest {
13444
13445
  schemaId: string;
13445
13446
  elementId: string;
13446
- sequence: string;
13447
+ sequence?: string | null;
13448
+ serialNumber: string;
13447
13449
  comment?: string | null;
13448
13450
  constructor(data?: ISaveCommentRequest);
13449
13451
  init(_data?: any): void;
@@ -13453,7 +13455,8 @@ export declare class SaveCommentRequest implements ISaveCommentRequest {
13453
13455
  export interface ISaveCommentRequest {
13454
13456
  schemaId: string;
13455
13457
  elementId: string;
13456
- sequence: string;
13458
+ sequence?: string | null;
13459
+ serialNumber: string;
13457
13460
  comment?: string | null;
13458
13461
  }
13459
13462
  export declare class BatchInsertValuesResponseDto implements IBatchInsertValuesResponseDto {
@@ -13584,6 +13587,7 @@ export declare class ExportDimensionReportRequest implements IExportDimensionRep
13584
13587
  includeAllSchemasAndElements?: boolean | null;
13585
13588
  createBlankReport?: boolean | null;
13586
13589
  sequences?: string[] | null;
13590
+ serialNumbers?: string[] | null;
13587
13591
  customerPO?: string | null;
13588
13592
  workOrder?: string | null;
13589
13593
  comment?: string | null;
@@ -13598,6 +13602,7 @@ export interface IExportDimensionReportRequest {
13598
13602
  includeAllSchemasAndElements?: boolean | null;
13599
13603
  createBlankReport?: boolean | null;
13600
13604
  sequences?: string[] | null;
13605
+ serialNumbers?: string[] | null;
13601
13606
  customerPO?: string | null;
13602
13607
  workOrder?: string | null;
13603
13608
  comment?: string | null;
@@ -13626,88 +13631,6 @@ export interface ISchemaInstanceElementDto {
13626
13631
  balloonId: string;
13627
13632
  disabled: boolean;
13628
13633
  }
13629
- export declare class ImportMeasurementFormInstanceRequest implements IImportMeasurementFormInstanceRequest {
13630
- partInfo: ImportMeasurementFormPartDto;
13631
- customerId?: string | null;
13632
- customerGroupId?: string | null;
13633
- customerName?: string | null;
13634
- externalOrderNumber?: string | null;
13635
- quantity: number;
13636
- sequences: WorkorderImportTraceItemDto[];
13637
- status: MeasurementFormInstanceStatus;
13638
- statusChangedBy?: string | null;
13639
- statusChangedDate?: Date | null;
13640
- created: Date;
13641
- createdBy?: string | null;
13642
- updatedBy?: string | null;
13643
- schemas: ImportMeasurementSchemaInstanceDto[];
13644
- constructor(data?: IImportMeasurementFormInstanceRequest);
13645
- init(_data?: any): void;
13646
- static fromJS(data: any): ImportMeasurementFormInstanceRequest;
13647
- toJSON(data?: any): any;
13648
- }
13649
- export interface IImportMeasurementFormInstanceRequest {
13650
- partInfo: ImportMeasurementFormPartDto;
13651
- customerId?: string | null;
13652
- customerGroupId?: string | null;
13653
- customerName?: string | null;
13654
- externalOrderNumber?: string | null;
13655
- quantity: number;
13656
- sequences: WorkorderImportTraceItemDto[];
13657
- status: MeasurementFormInstanceStatus;
13658
- statusChangedBy?: string | null;
13659
- statusChangedDate?: Date | null;
13660
- created: Date;
13661
- createdBy?: string | null;
13662
- updatedBy?: string | null;
13663
- schemas: ImportMeasurementSchemaInstanceDto[];
13664
- }
13665
- export declare class ImportMeasurementFormPartDto implements IImportMeasurementFormPartDto {
13666
- partNumber?: string | null;
13667
- partName?: string | null;
13668
- partRevision?: string | null;
13669
- drawing: string;
13670
- drawingRevision?: string | null;
13671
- constructor(data?: IImportMeasurementFormPartDto);
13672
- init(_data?: any): void;
13673
- static fromJS(data: any): ImportMeasurementFormPartDto;
13674
- toJSON(data?: any): any;
13675
- }
13676
- export interface IImportMeasurementFormPartDto {
13677
- partNumber?: string | null;
13678
- partName?: string | null;
13679
- partRevision?: string | null;
13680
- drawing: string;
13681
- drawingRevision?: string | null;
13682
- }
13683
- export declare class WorkorderImportTraceItemDto implements IWorkorderImportTraceItemDto {
13684
- sequence: string;
13685
- serialNumber?: string | null;
13686
- lot?: string | null;
13687
- active: boolean;
13688
- constructor(data?: IWorkorderImportTraceItemDto);
13689
- init(_data?: any): void;
13690
- static fromJS(data: any): WorkorderImportTraceItemDto;
13691
- toJSON(data?: any): any;
13692
- }
13693
- export interface IWorkorderImportTraceItemDto {
13694
- sequence: string;
13695
- serialNumber?: string | null;
13696
- lot?: string | null;
13697
- active: boolean;
13698
- }
13699
- export declare class ImportMeasurementSchemaInstanceDto implements IImportMeasurementSchemaInstanceDto {
13700
- id: string;
13701
- version: number;
13702
- constructor(data?: IImportMeasurementSchemaInstanceDto);
13703
- init(_data?: any): void;
13704
- static fromJS(data: any): ImportMeasurementSchemaInstanceDto;
13705
- toJSON(data?: any): any;
13706
- }
13707
- export interface IImportMeasurementSchemaInstanceDto {
13708
- id: string;
13709
- version: number;
13710
- }
13711
13634
  export declare class IotTypeSourceDto implements IIotTypeSourceDto {
13712
13635
  id: string;
13713
13636
  name: string;
@@ -19918,7 +19918,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
19918
19918
  }
19919
19919
  return Promise.resolve(null);
19920
19920
  }
19921
- getMeasurementFormInstanceSchema(id, schemaId, sequence, tenantId) {
19921
+ getMeasurementFormInstanceSchema(id, schemaId, serialNumber, tenantId) {
19922
19922
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
19923
19923
  if (id === undefined || id === null)
19924
19924
  throw new Error("The parameter 'id' must be defined.");
@@ -19926,8 +19926,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
19926
19926
  if (schemaId === undefined || schemaId === null)
19927
19927
  throw new Error("The parameter 'schemaId' must be defined.");
19928
19928
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
19929
- if (sequence !== undefined && sequence !== null)
19930
- url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
19929
+ if (serialNumber !== undefined && serialNumber !== null)
19930
+ url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
19931
19931
  if (tenantId !== undefined && tenantId !== null)
19932
19932
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
19933
19933
  url_ = url_.replace(/[?&]$/, "");
@@ -20007,7 +20007,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20007
20007
  }
20008
20008
  return Promise.resolve(null);
20009
20009
  }
20010
- getAuditLog(id, tenantId, schemaId, sequence, elementId) {
20010
+ getAuditLog(id, tenantId, schemaId, serialNumber, elementId) {
20011
20011
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
20012
20012
  if (id === undefined || id === null)
20013
20013
  throw new Error("The parameter 'id' must be defined.");
@@ -20016,8 +20016,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20016
20016
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
20017
20017
  if (schemaId !== undefined && schemaId !== null)
20018
20018
  url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
20019
- if (sequence !== undefined && sequence !== null)
20020
- url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
20019
+ if (serialNumber !== undefined && serialNumber !== null)
20020
+ url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
20021
20021
  if (elementId !== undefined && elementId !== null)
20022
20022
  url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
20023
20023
  url_ = url_.replace(/[?&]$/, "");
@@ -20707,49 +20707,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
20707
20707
  }
20708
20708
  return Promise.resolve(null);
20709
20709
  }
20710
- importMeasurementFormInstance(id, request) {
20711
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
20712
- if (id === undefined || id === null)
20713
- throw new Error("The parameter 'id' must be defined.");
20714
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
20715
- url_ = url_.replace(/[?&]$/, "");
20716
- const content_ = JSON.stringify(request);
20717
- let options_ = {
20718
- body: content_,
20719
- method: "POST",
20720
- headers: {
20721
- "Content-Type": "application/json",
20722
- "Accept": "application/json"
20723
- }
20724
- };
20725
- return this.transformOptions(options_).then(transformedOptions_ => {
20726
- return this.http.fetch(url_, transformedOptions_);
20727
- }).then((_response) => {
20728
- return this.processImportMeasurementFormInstance(_response);
20729
- });
20730
- }
20731
- processImportMeasurementFormInstance(response) {
20732
- const status = response.status;
20733
- let _headers = {};
20734
- if (response.headers && response.headers.forEach) {
20735
- response.headers.forEach((v, k) => _headers[k] = v);
20736
- }
20737
- ;
20738
- if (status === 200) {
20739
- return response.text().then((_responseText) => {
20740
- let result200 = null;
20741
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
20742
- result200 = MeasurementFormInstanceDto.fromJS(resultData200);
20743
- return result200;
20744
- });
20745
- }
20746
- else if (status !== 200 && status !== 204) {
20747
- return response.text().then((_responseText) => {
20748
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
20749
- });
20750
- }
20751
- return Promise.resolve(null);
20752
- }
20753
20710
  }
20754
20711
  export class ElectricalClient extends AuthorizedApiBase {
20755
20712
  constructor(configuration, baseUrl, http) {
@@ -44050,7 +44007,7 @@ export class UpdateMeasurementFormInstanceRequest {
44050
44007
  }
44051
44008
  }
44052
44009
  if (!data) {
44053
- this.sequences = [];
44010
+ this.serialNumbers = [];
44054
44011
  this.suppliers = [];
44055
44012
  }
44056
44013
  }
@@ -44554,6 +44511,7 @@ export class SaveValueRequest {
44554
44511
  this.schemaId = _data["schemaId"];
44555
44512
  this.elementId = _data["elementId"];
44556
44513
  this.sequence = _data["sequence"];
44514
+ this.serialNumber = _data["serialNumber"];
44557
44515
  this.value = _data["value"];
44558
44516
  this.bonus = _data["bonus"];
44559
44517
  }
@@ -44571,6 +44529,7 @@ export class SaveValueRequest {
44571
44529
  data["schemaId"] = this.schemaId;
44572
44530
  data["elementId"] = this.elementId;
44573
44531
  data["sequence"] = this.sequence;
44532
+ data["serialNumber"] = this.serialNumber;
44574
44533
  data["value"] = this.value;
44575
44534
  data["bonus"] = this.bonus;
44576
44535
  return data;
@@ -44590,6 +44549,7 @@ export class SaveToolRequest {
44590
44549
  this.schemaId = _data["schemaId"];
44591
44550
  this.elementId = _data["elementId"];
44592
44551
  this.sequence = _data["sequence"];
44552
+ this.serialNumber = _data["serialNumber"];
44593
44553
  if (Array.isArray(_data["tools"])) {
44594
44554
  this.tools = [];
44595
44555
  for (let item of _data["tools"])
@@ -44609,6 +44569,7 @@ export class SaveToolRequest {
44609
44569
  data["schemaId"] = this.schemaId;
44610
44570
  data["elementId"] = this.elementId;
44611
44571
  data["sequence"] = this.sequence;
44572
+ data["serialNumber"] = this.serialNumber;
44612
44573
  if (Array.isArray(this.tools)) {
44613
44574
  data["tools"] = [];
44614
44575
  for (let item of this.tools)
@@ -44632,6 +44593,7 @@ export class SaveCommentRequest {
44632
44593
  this.schemaId = _data["schemaId"];
44633
44594
  this.elementId = _data["elementId"];
44634
44595
  this.sequence = _data["sequence"];
44596
+ this.serialNumber = _data["serialNumber"];
44635
44597
  this.comment = _data["comment"];
44636
44598
  }
44637
44599
  }
@@ -44646,6 +44608,7 @@ export class SaveCommentRequest {
44646
44608
  data["schemaId"] = this.schemaId;
44647
44609
  data["elementId"] = this.elementId;
44648
44610
  data["sequence"] = this.sequence;
44611
+ data["serialNumber"] = this.serialNumber;
44649
44612
  data["comment"] = this.comment;
44650
44613
  return data;
44651
44614
  }
@@ -44926,6 +44889,11 @@ export class ExportDimensionReportRequest {
44926
44889
  for (let item of _data["sequences"])
44927
44890
  this.sequences.push(item);
44928
44891
  }
44892
+ if (Array.isArray(_data["serialNumbers"])) {
44893
+ this.serialNumbers = [];
44894
+ for (let item of _data["serialNumbers"])
44895
+ this.serialNumbers.push(item);
44896
+ }
44929
44897
  this.customerPO = _data["customerPO"];
44930
44898
  this.workOrder = _data["workOrder"];
44931
44899
  this.comment = _data["comment"];
@@ -44948,6 +44916,11 @@ export class ExportDimensionReportRequest {
44948
44916
  for (let item of this.sequences)
44949
44917
  data["sequences"].push(item);
44950
44918
  }
44919
+ if (Array.isArray(this.serialNumbers)) {
44920
+ data["serialNumbers"] = [];
44921
+ for (let item of this.serialNumbers)
44922
+ data["serialNumbers"].push(item);
44923
+ }
44951
44924
  data["customerPO"] = this.customerPO;
44952
44925
  data["workOrder"] = this.workOrder;
44953
44926
  data["comment"] = this.comment;
@@ -45018,173 +44991,6 @@ export class SchemaInstanceElementDto {
45018
44991
  return data;
45019
44992
  }
45020
44993
  }
45021
- export class ImportMeasurementFormInstanceRequest {
45022
- constructor(data) {
45023
- if (data) {
45024
- for (var property in data) {
45025
- if (data.hasOwnProperty(property))
45026
- this[property] = data[property];
45027
- }
45028
- }
45029
- if (!data) {
45030
- this.partInfo = new ImportMeasurementFormPartDto();
45031
- this.sequences = [];
45032
- this.schemas = [];
45033
- }
45034
- }
45035
- init(_data) {
45036
- if (_data) {
45037
- this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
45038
- this.customerId = _data["customerId"];
45039
- this.customerGroupId = _data["customerGroupId"];
45040
- this.customerName = _data["customerName"];
45041
- this.externalOrderNumber = _data["externalOrderNumber"];
45042
- this.quantity = _data["quantity"];
45043
- if (Array.isArray(_data["sequences"])) {
45044
- this.sequences = [];
45045
- for (let item of _data["sequences"])
45046
- this.sequences.push(WorkorderImportTraceItemDto.fromJS(item));
45047
- }
45048
- this.status = _data["status"];
45049
- this.statusChangedBy = _data["statusChangedBy"];
45050
- this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : undefined;
45051
- this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
45052
- this.createdBy = _data["createdBy"];
45053
- this.updatedBy = _data["updatedBy"];
45054
- if (Array.isArray(_data["schemas"])) {
45055
- this.schemas = [];
45056
- for (let item of _data["schemas"])
45057
- this.schemas.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
45058
- }
45059
- }
45060
- }
45061
- static fromJS(data) {
45062
- data = typeof data === 'object' ? data : {};
45063
- let result = new ImportMeasurementFormInstanceRequest();
45064
- result.init(data);
45065
- return result;
45066
- }
45067
- toJSON(data) {
45068
- data = typeof data === 'object' ? data : {};
45069
- data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : undefined;
45070
- data["customerId"] = this.customerId;
45071
- data["customerGroupId"] = this.customerGroupId;
45072
- data["customerName"] = this.customerName;
45073
- data["externalOrderNumber"] = this.externalOrderNumber;
45074
- data["quantity"] = this.quantity;
45075
- if (Array.isArray(this.sequences)) {
45076
- data["sequences"] = [];
45077
- for (let item of this.sequences)
45078
- data["sequences"].push(item.toJSON());
45079
- }
45080
- data["status"] = this.status;
45081
- data["statusChangedBy"] = this.statusChangedBy;
45082
- data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : undefined;
45083
- data["created"] = this.created ? this.created.toISOString() : undefined;
45084
- data["createdBy"] = this.createdBy;
45085
- data["updatedBy"] = this.updatedBy;
45086
- if (Array.isArray(this.schemas)) {
45087
- data["schemas"] = [];
45088
- for (let item of this.schemas)
45089
- data["schemas"].push(item.toJSON());
45090
- }
45091
- return data;
45092
- }
45093
- }
45094
- export class ImportMeasurementFormPartDto {
45095
- constructor(data) {
45096
- if (data) {
45097
- for (var property in data) {
45098
- if (data.hasOwnProperty(property))
45099
- this[property] = data[property];
45100
- }
45101
- }
45102
- }
45103
- init(_data) {
45104
- if (_data) {
45105
- this.partNumber = _data["partNumber"];
45106
- this.partName = _data["partName"];
45107
- this.partRevision = _data["partRevision"];
45108
- this.drawing = _data["drawing"];
45109
- this.drawingRevision = _data["drawingRevision"];
45110
- }
45111
- }
45112
- static fromJS(data) {
45113
- data = typeof data === 'object' ? data : {};
45114
- let result = new ImportMeasurementFormPartDto();
45115
- result.init(data);
45116
- return result;
45117
- }
45118
- toJSON(data) {
45119
- data = typeof data === 'object' ? data : {};
45120
- data["partNumber"] = this.partNumber;
45121
- data["partName"] = this.partName;
45122
- data["partRevision"] = this.partRevision;
45123
- data["drawing"] = this.drawing;
45124
- data["drawingRevision"] = this.drawingRevision;
45125
- return data;
45126
- }
45127
- }
45128
- export class WorkorderImportTraceItemDto {
45129
- constructor(data) {
45130
- if (data) {
45131
- for (var property in data) {
45132
- if (data.hasOwnProperty(property))
45133
- this[property] = data[property];
45134
- }
45135
- }
45136
- }
45137
- init(_data) {
45138
- if (_data) {
45139
- this.sequence = _data["sequence"];
45140
- this.serialNumber = _data["serialNumber"];
45141
- this.lot = _data["lot"];
45142
- this.active = _data["active"];
45143
- }
45144
- }
45145
- static fromJS(data) {
45146
- data = typeof data === 'object' ? data : {};
45147
- let result = new WorkorderImportTraceItemDto();
45148
- result.init(data);
45149
- return result;
45150
- }
45151
- toJSON(data) {
45152
- data = typeof data === 'object' ? data : {};
45153
- data["sequence"] = this.sequence;
45154
- data["serialNumber"] = this.serialNumber;
45155
- data["lot"] = this.lot;
45156
- data["active"] = this.active;
45157
- return data;
45158
- }
45159
- }
45160
- export class ImportMeasurementSchemaInstanceDto {
45161
- constructor(data) {
45162
- if (data) {
45163
- for (var property in data) {
45164
- if (data.hasOwnProperty(property))
45165
- this[property] = data[property];
45166
- }
45167
- }
45168
- }
45169
- init(_data) {
45170
- if (_data) {
45171
- this.id = _data["id"];
45172
- this.version = _data["version"];
45173
- }
45174
- }
45175
- static fromJS(data) {
45176
- data = typeof data === 'object' ? data : {};
45177
- let result = new ImportMeasurementSchemaInstanceDto();
45178
- result.init(data);
45179
- return result;
45180
- }
45181
- toJSON(data) {
45182
- data = typeof data === 'object' ? data : {};
45183
- data["id"] = this.id;
45184
- data["version"] = this.version;
45185
- return data;
45186
- }
45187
- }
45188
44994
  export class IotTypeSourceDto {
45189
44995
  constructor(data) {
45190
44996
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250710.0.12165-alpha",
3
+ "version": "20250711.0.12189-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -20611,11 +20611,11 @@ export interface IMeasurementFormsInstancesClient {
20611
20611
 
20612
20612
  cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
20613
20613
 
20614
- getMeasurementFormInstanceSchema(id: string, schemaId: string, sequence: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
20614
+ getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
20615
20615
 
20616
20616
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
20617
20617
 
20618
- getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, sequence: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
20618
+ getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
20619
20619
 
20620
20620
  getValidationRules(): Promise<ValidationRuleDto[]>;
20621
20621
 
@@ -20646,8 +20646,6 @@ export interface IMeasurementFormsInstancesClient {
20646
20646
  getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
20647
20647
 
20648
20648
  toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
20649
-
20650
- importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
20651
20649
  }
20652
20650
 
20653
20651
  export class MeasurementFormsInstancesClient extends AuthorizedApiBase implements IMeasurementFormsInstancesClient {
@@ -21249,7 +21247,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21249
21247
  return Promise.resolve<MeasurementFormInstanceDto>(null as any);
21250
21248
  }
21251
21249
 
21252
- getMeasurementFormInstanceSchema(id: string, schemaId: string, sequence: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
21250
+ getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
21253
21251
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
21254
21252
  if (id === undefined || id === null)
21255
21253
  throw new Error("The parameter 'id' must be defined.");
@@ -21257,8 +21255,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21257
21255
  if (schemaId === undefined || schemaId === null)
21258
21256
  throw new Error("The parameter 'schemaId' must be defined.");
21259
21257
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
21260
- if (sequence !== undefined && sequence !== null)
21261
- url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
21258
+ if (serialNumber !== undefined && serialNumber !== null)
21259
+ url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
21262
21260
  if (tenantId !== undefined && tenantId !== null)
21263
21261
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
21264
21262
  url_ = url_.replace(/[?&]$/, "");
@@ -21336,7 +21334,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21336
21334
  return Promise.resolve<MeasurementFormInstanceProgressDto>(null as any);
21337
21335
  }
21338
21336
 
21339
- getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, sequence: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]> {
21337
+ getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]> {
21340
21338
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
21341
21339
  if (id === undefined || id === null)
21342
21340
  throw new Error("The parameter 'id' must be defined.");
@@ -21345,8 +21343,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21345
21343
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
21346
21344
  if (schemaId !== undefined && schemaId !== null)
21347
21345
  url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
21348
- if (sequence !== undefined && sequence !== null)
21349
- url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
21346
+ if (serialNumber !== undefined && serialNumber !== null)
21347
+ url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
21350
21348
  if (elementId !== undefined && elementId !== null)
21351
21349
  url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
21352
21350
  url_ = url_.replace(/[?&]$/, "");
@@ -22030,49 +22028,6 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22030
22028
  }
22031
22029
  return Promise.resolve<void>(null as any);
22032
22030
  }
22033
-
22034
- importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
22035
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
22036
- if (id === undefined || id === null)
22037
- throw new Error("The parameter 'id' must be defined.");
22038
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22039
- url_ = url_.replace(/[?&]$/, "");
22040
-
22041
- const content_ = JSON.stringify(request);
22042
-
22043
- let options_: RequestInit = {
22044
- body: content_,
22045
- method: "POST",
22046
- headers: {
22047
- "Content-Type": "application/json",
22048
- "Accept": "application/json"
22049
- }
22050
- };
22051
-
22052
- return this.transformOptions(options_).then(transformedOptions_ => {
22053
- return this.http.fetch(url_, transformedOptions_);
22054
- }).then((_response: Response) => {
22055
- return this.processImportMeasurementFormInstance(_response);
22056
- });
22057
- }
22058
-
22059
- protected processImportMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
22060
- const status = response.status;
22061
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22062
- if (status === 200) {
22063
- return response.text().then((_responseText) => {
22064
- let result200: any = null;
22065
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22066
- result200 = MeasurementFormInstanceDto.fromJS(resultData200);
22067
- return result200;
22068
- });
22069
- } else if (status !== 200 && status !== 204) {
22070
- return response.text().then((_responseText) => {
22071
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22072
- });
22073
- }
22074
- return Promise.resolve<MeasurementFormInstanceDto>(null as any);
22075
- }
22076
22031
  }
22077
22032
 
22078
22033
  export interface IElectricalClient {
@@ -56033,8 +55988,8 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
56033
55988
  }
56034
55989
 
56035
55990
  export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
56036
- sequences!: MeasurementFormWorkorderSequenceDto[];
56037
- serialNumbers?: MeasurementFormWorkorderSerialNumberDto[] | null;
55991
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
55992
+ serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
56038
55993
  suppliers!: MeasurementFormWorkorderSupplierDto[];
56039
55994
 
56040
55995
  constructor(data?: IUpdateMeasurementFormInstanceRequest) {
@@ -56045,7 +56000,7 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56045
56000
  }
56046
56001
  }
56047
56002
  if (!data) {
56048
- this.sequences = [];
56003
+ this.serialNumbers = [];
56049
56004
  this.suppliers = [];
56050
56005
  }
56051
56006
  }
@@ -56099,8 +56054,8 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56099
56054
  }
56100
56055
 
56101
56056
  export interface IUpdateMeasurementFormInstanceRequest {
56102
- sequences: MeasurementFormWorkorderSequenceDto[];
56103
- serialNumbers?: MeasurementFormWorkorderSerialNumberDto[] | null;
56057
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
56058
+ serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
56104
56059
  suppliers: MeasurementFormWorkorderSupplierDto[];
56105
56060
  }
56106
56061
 
@@ -56780,7 +56735,8 @@ export class SaveValueRequest implements ISaveValueRequest {
56780
56735
  resourceName?: string | null;
56781
56736
  schemaId!: string;
56782
56737
  elementId!: string;
56783
- sequence!: string;
56738
+ sequence?: string | null;
56739
+ serialNumber!: string;
56784
56740
  value?: string | null;
56785
56741
  bonus?: string | null;
56786
56742
 
@@ -56800,6 +56756,7 @@ export class SaveValueRequest implements ISaveValueRequest {
56800
56756
  this.schemaId = _data["schemaId"];
56801
56757
  this.elementId = _data["elementId"];
56802
56758
  this.sequence = _data["sequence"];
56759
+ this.serialNumber = _data["serialNumber"];
56803
56760
  this.value = _data["value"];
56804
56761
  this.bonus = _data["bonus"];
56805
56762
  }
@@ -56819,6 +56776,7 @@ export class SaveValueRequest implements ISaveValueRequest {
56819
56776
  data["schemaId"] = this.schemaId;
56820
56777
  data["elementId"] = this.elementId;
56821
56778
  data["sequence"] = this.sequence;
56779
+ data["serialNumber"] = this.serialNumber;
56822
56780
  data["value"] = this.value;
56823
56781
  data["bonus"] = this.bonus;
56824
56782
  return data;
@@ -56830,7 +56788,8 @@ export interface ISaveValueRequest {
56830
56788
  resourceName?: string | null;
56831
56789
  schemaId: string;
56832
56790
  elementId: string;
56833
- sequence: string;
56791
+ sequence?: string | null;
56792
+ serialNumber: string;
56834
56793
  value?: string | null;
56835
56794
  bonus?: string | null;
56836
56795
  }
@@ -56838,7 +56797,8 @@ export interface ISaveValueRequest {
56838
56797
  export class SaveToolRequest implements ISaveToolRequest {
56839
56798
  schemaId!: string;
56840
56799
  elementId!: string;
56841
- sequence!: string;
56800
+ sequence?: string | null;
56801
+ serialNumber!: string;
56842
56802
  tools?: string[] | null;
56843
56803
  force?: boolean;
56844
56804
 
@@ -56856,6 +56816,7 @@ export class SaveToolRequest implements ISaveToolRequest {
56856
56816
  this.schemaId = _data["schemaId"];
56857
56817
  this.elementId = _data["elementId"];
56858
56818
  this.sequence = _data["sequence"];
56819
+ this.serialNumber = _data["serialNumber"];
56859
56820
  if (Array.isArray(_data["tools"])) {
56860
56821
  this.tools = [] as any;
56861
56822
  for (let item of _data["tools"])
@@ -56877,6 +56838,7 @@ export class SaveToolRequest implements ISaveToolRequest {
56877
56838
  data["schemaId"] = this.schemaId;
56878
56839
  data["elementId"] = this.elementId;
56879
56840
  data["sequence"] = this.sequence;
56841
+ data["serialNumber"] = this.serialNumber;
56880
56842
  if (Array.isArray(this.tools)) {
56881
56843
  data["tools"] = [];
56882
56844
  for (let item of this.tools)
@@ -56890,7 +56852,8 @@ export class SaveToolRequest implements ISaveToolRequest {
56890
56852
  export interface ISaveToolRequest {
56891
56853
  schemaId: string;
56892
56854
  elementId: string;
56893
- sequence: string;
56855
+ sequence?: string | null;
56856
+ serialNumber: string;
56894
56857
  tools?: string[] | null;
56895
56858
  force?: boolean;
56896
56859
  }
@@ -56898,7 +56861,8 @@ export interface ISaveToolRequest {
56898
56861
  export class SaveCommentRequest implements ISaveCommentRequest {
56899
56862
  schemaId!: string;
56900
56863
  elementId!: string;
56901
- sequence!: string;
56864
+ sequence?: string | null;
56865
+ serialNumber!: string;
56902
56866
  comment?: string | null;
56903
56867
 
56904
56868
  constructor(data?: ISaveCommentRequest) {
@@ -56915,6 +56879,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
56915
56879
  this.schemaId = _data["schemaId"];
56916
56880
  this.elementId = _data["elementId"];
56917
56881
  this.sequence = _data["sequence"];
56882
+ this.serialNumber = _data["serialNumber"];
56918
56883
  this.comment = _data["comment"];
56919
56884
  }
56920
56885
  }
@@ -56931,6 +56896,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
56931
56896
  data["schemaId"] = this.schemaId;
56932
56897
  data["elementId"] = this.elementId;
56933
56898
  data["sequence"] = this.sequence;
56899
+ data["serialNumber"] = this.serialNumber;
56934
56900
  data["comment"] = this.comment;
56935
56901
  return data;
56936
56902
  }
@@ -56939,7 +56905,8 @@ export class SaveCommentRequest implements ISaveCommentRequest {
56939
56905
  export interface ISaveCommentRequest {
56940
56906
  schemaId: string;
56941
56907
  elementId: string;
56942
- sequence: string;
56908
+ sequence?: string | null;
56909
+ serialNumber: string;
56943
56910
  comment?: string | null;
56944
56911
  }
56945
56912
 
@@ -57327,6 +57294,7 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57327
57294
  includeAllSchemasAndElements?: boolean | null;
57328
57295
  createBlankReport?: boolean | null;
57329
57296
  sequences?: string[] | null;
57297
+ serialNumbers?: string[] | null;
57330
57298
  customerPO?: string | null;
57331
57299
  workOrder?: string | null;
57332
57300
  comment?: string | null;
@@ -57351,6 +57319,11 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57351
57319
  for (let item of _data["sequences"])
57352
57320
  this.sequences!.push(item);
57353
57321
  }
57322
+ if (Array.isArray(_data["serialNumbers"])) {
57323
+ this.serialNumbers = [] as any;
57324
+ for (let item of _data["serialNumbers"])
57325
+ this.serialNumbers!.push(item);
57326
+ }
57354
57327
  this.customerPO = _data["customerPO"];
57355
57328
  this.workOrder = _data["workOrder"];
57356
57329
  this.comment = _data["comment"];
@@ -57375,6 +57348,11 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57375
57348
  for (let item of this.sequences)
57376
57349
  data["sequences"].push(item);
57377
57350
  }
57351
+ if (Array.isArray(this.serialNumbers)) {
57352
+ data["serialNumbers"] = [];
57353
+ for (let item of this.serialNumbers)
57354
+ data["serialNumbers"].push(item);
57355
+ }
57378
57356
  data["customerPO"] = this.customerPO;
57379
57357
  data["workOrder"] = this.workOrder;
57380
57358
  data["comment"] = this.comment;
@@ -57388,6 +57366,7 @@ export interface IExportDimensionReportRequest {
57388
57366
  includeAllSchemasAndElements?: boolean | null;
57389
57367
  createBlankReport?: boolean | null;
57390
57368
  sequences?: string[] | null;
57369
+ serialNumbers?: string[] | null;
57391
57370
  customerPO?: string | null;
57392
57371
  workOrder?: string | null;
57393
57372
  comment?: string | null;
@@ -57481,255 +57460,6 @@ export interface ISchemaInstanceElementDto {
57481
57460
  disabled: boolean;
57482
57461
  }
57483
57462
 
57484
- export class ImportMeasurementFormInstanceRequest implements IImportMeasurementFormInstanceRequest {
57485
- partInfo!: ImportMeasurementFormPartDto;
57486
- customerId?: string | null;
57487
- customerGroupId?: string | null;
57488
- customerName?: string | null;
57489
- externalOrderNumber?: string | null;
57490
- quantity!: number;
57491
- sequences!: WorkorderImportTraceItemDto[];
57492
- status!: MeasurementFormInstanceStatus;
57493
- statusChangedBy?: string | null;
57494
- statusChangedDate?: Date | null;
57495
- created!: Date;
57496
- createdBy?: string | null;
57497
- updatedBy?: string | null;
57498
- schemas!: ImportMeasurementSchemaInstanceDto[];
57499
-
57500
- constructor(data?: IImportMeasurementFormInstanceRequest) {
57501
- if (data) {
57502
- for (var property in data) {
57503
- if (data.hasOwnProperty(property))
57504
- (<any>this)[property] = (<any>data)[property];
57505
- }
57506
- }
57507
- if (!data) {
57508
- this.partInfo = new ImportMeasurementFormPartDto();
57509
- this.sequences = [];
57510
- this.schemas = [];
57511
- }
57512
- }
57513
-
57514
- init(_data?: any) {
57515
- if (_data) {
57516
- this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
57517
- this.customerId = _data["customerId"];
57518
- this.customerGroupId = _data["customerGroupId"];
57519
- this.customerName = _data["customerName"];
57520
- this.externalOrderNumber = _data["externalOrderNumber"];
57521
- this.quantity = _data["quantity"];
57522
- if (Array.isArray(_data["sequences"])) {
57523
- this.sequences = [] as any;
57524
- for (let item of _data["sequences"])
57525
- this.sequences!.push(WorkorderImportTraceItemDto.fromJS(item));
57526
- }
57527
- this.status = _data["status"];
57528
- this.statusChangedBy = _data["statusChangedBy"];
57529
- this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : <any>undefined;
57530
- this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
57531
- this.createdBy = _data["createdBy"];
57532
- this.updatedBy = _data["updatedBy"];
57533
- if (Array.isArray(_data["schemas"])) {
57534
- this.schemas = [] as any;
57535
- for (let item of _data["schemas"])
57536
- this.schemas!.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
57537
- }
57538
- }
57539
- }
57540
-
57541
- static fromJS(data: any): ImportMeasurementFormInstanceRequest {
57542
- data = typeof data === 'object' ? data : {};
57543
- let result = new ImportMeasurementFormInstanceRequest();
57544
- result.init(data);
57545
- return result;
57546
- }
57547
-
57548
- toJSON(data?: any) {
57549
- data = typeof data === 'object' ? data : {};
57550
- data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : <any>undefined;
57551
- data["customerId"] = this.customerId;
57552
- data["customerGroupId"] = this.customerGroupId;
57553
- data["customerName"] = this.customerName;
57554
- data["externalOrderNumber"] = this.externalOrderNumber;
57555
- data["quantity"] = this.quantity;
57556
- if (Array.isArray(this.sequences)) {
57557
- data["sequences"] = [];
57558
- for (let item of this.sequences)
57559
- data["sequences"].push(item.toJSON());
57560
- }
57561
- data["status"] = this.status;
57562
- data["statusChangedBy"] = this.statusChangedBy;
57563
- data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : <any>undefined;
57564
- data["created"] = this.created ? this.created.toISOString() : <any>undefined;
57565
- data["createdBy"] = this.createdBy;
57566
- data["updatedBy"] = this.updatedBy;
57567
- if (Array.isArray(this.schemas)) {
57568
- data["schemas"] = [];
57569
- for (let item of this.schemas)
57570
- data["schemas"].push(item.toJSON());
57571
- }
57572
- return data;
57573
- }
57574
- }
57575
-
57576
- export interface IImportMeasurementFormInstanceRequest {
57577
- partInfo: ImportMeasurementFormPartDto;
57578
- customerId?: string | null;
57579
- customerGroupId?: string | null;
57580
- customerName?: string | null;
57581
- externalOrderNumber?: string | null;
57582
- quantity: number;
57583
- sequences: WorkorderImportTraceItemDto[];
57584
- status: MeasurementFormInstanceStatus;
57585
- statusChangedBy?: string | null;
57586
- statusChangedDate?: Date | null;
57587
- created: Date;
57588
- createdBy?: string | null;
57589
- updatedBy?: string | null;
57590
- schemas: ImportMeasurementSchemaInstanceDto[];
57591
- }
57592
-
57593
- export class ImportMeasurementFormPartDto implements IImportMeasurementFormPartDto {
57594
- partNumber?: string | null;
57595
- partName?: string | null;
57596
- partRevision?: string | null;
57597
- drawing!: string;
57598
- drawingRevision?: string | null;
57599
-
57600
- constructor(data?: IImportMeasurementFormPartDto) {
57601
- if (data) {
57602
- for (var property in data) {
57603
- if (data.hasOwnProperty(property))
57604
- (<any>this)[property] = (<any>data)[property];
57605
- }
57606
- }
57607
- }
57608
-
57609
- init(_data?: any) {
57610
- if (_data) {
57611
- this.partNumber = _data["partNumber"];
57612
- this.partName = _data["partName"];
57613
- this.partRevision = _data["partRevision"];
57614
- this.drawing = _data["drawing"];
57615
- this.drawingRevision = _data["drawingRevision"];
57616
- }
57617
- }
57618
-
57619
- static fromJS(data: any): ImportMeasurementFormPartDto {
57620
- data = typeof data === 'object' ? data : {};
57621
- let result = new ImportMeasurementFormPartDto();
57622
- result.init(data);
57623
- return result;
57624
- }
57625
-
57626
- toJSON(data?: any) {
57627
- data = typeof data === 'object' ? data : {};
57628
- data["partNumber"] = this.partNumber;
57629
- data["partName"] = this.partName;
57630
- data["partRevision"] = this.partRevision;
57631
- data["drawing"] = this.drawing;
57632
- data["drawingRevision"] = this.drawingRevision;
57633
- return data;
57634
- }
57635
- }
57636
-
57637
- export interface IImportMeasurementFormPartDto {
57638
- partNumber?: string | null;
57639
- partName?: string | null;
57640
- partRevision?: string | null;
57641
- drawing: string;
57642
- drawingRevision?: string | null;
57643
- }
57644
-
57645
- export class WorkorderImportTraceItemDto implements IWorkorderImportTraceItemDto {
57646
- sequence!: string;
57647
- serialNumber?: string | null;
57648
- lot?: string | null;
57649
- active!: boolean;
57650
-
57651
- constructor(data?: IWorkorderImportTraceItemDto) {
57652
- if (data) {
57653
- for (var property in data) {
57654
- if (data.hasOwnProperty(property))
57655
- (<any>this)[property] = (<any>data)[property];
57656
- }
57657
- }
57658
- }
57659
-
57660
- init(_data?: any) {
57661
- if (_data) {
57662
- this.sequence = _data["sequence"];
57663
- this.serialNumber = _data["serialNumber"];
57664
- this.lot = _data["lot"];
57665
- this.active = _data["active"];
57666
- }
57667
- }
57668
-
57669
- static fromJS(data: any): WorkorderImportTraceItemDto {
57670
- data = typeof data === 'object' ? data : {};
57671
- let result = new WorkorderImportTraceItemDto();
57672
- result.init(data);
57673
- return result;
57674
- }
57675
-
57676
- toJSON(data?: any) {
57677
- data = typeof data === 'object' ? data : {};
57678
- data["sequence"] = this.sequence;
57679
- data["serialNumber"] = this.serialNumber;
57680
- data["lot"] = this.lot;
57681
- data["active"] = this.active;
57682
- return data;
57683
- }
57684
- }
57685
-
57686
- export interface IWorkorderImportTraceItemDto {
57687
- sequence: string;
57688
- serialNumber?: string | null;
57689
- lot?: string | null;
57690
- active: boolean;
57691
- }
57692
-
57693
- export class ImportMeasurementSchemaInstanceDto implements IImportMeasurementSchemaInstanceDto {
57694
- id!: string;
57695
- version!: number;
57696
-
57697
- constructor(data?: IImportMeasurementSchemaInstanceDto) {
57698
- if (data) {
57699
- for (var property in data) {
57700
- if (data.hasOwnProperty(property))
57701
- (<any>this)[property] = (<any>data)[property];
57702
- }
57703
- }
57704
- }
57705
-
57706
- init(_data?: any) {
57707
- if (_data) {
57708
- this.id = _data["id"];
57709
- this.version = _data["version"];
57710
- }
57711
- }
57712
-
57713
- static fromJS(data: any): ImportMeasurementSchemaInstanceDto {
57714
- data = typeof data === 'object' ? data : {};
57715
- let result = new ImportMeasurementSchemaInstanceDto();
57716
- result.init(data);
57717
- return result;
57718
- }
57719
-
57720
- toJSON(data?: any) {
57721
- data = typeof data === 'object' ? data : {};
57722
- data["id"] = this.id;
57723
- data["version"] = this.version;
57724
- return data;
57725
- }
57726
- }
57727
-
57728
- export interface IImportMeasurementSchemaInstanceDto {
57729
- id: string;
57730
- version: number;
57731
- }
57732
-
57733
57463
  export class IotTypeSourceDto implements IIotTypeSourceDto {
57734
57464
  id!: string;
57735
57465
  name!: string;