@ignos/api-client 20250807.0.12317 → 20250814.0.12365

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.
@@ -18122,7 +18122,7 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
18122
18122
 
18123
18123
  export interface IMeasurementFormSchemasClient {
18124
18124
 
18125
- listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
18125
+ listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
18126
18126
 
18127
18127
  createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
18128
18128
 
@@ -18150,8 +18150,6 @@ export interface IMeasurementFormSchemasClient {
18150
18150
 
18151
18151
  uploadSchemaAttachment(id: string, request: UploadRequest): Promise<MeasurementFormSchemaDto>;
18152
18152
 
18153
- getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto>;
18154
-
18155
18153
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
18156
18154
 
18157
18155
  postListLinkableMeasurementFormSchemas(request: ListLinkableMeasurementFormSchemasRequest): Promise<PagedResultOfMeasurementFormListDto>;
@@ -18202,12 +18200,7 @@ export interface IMeasurementFormSchemasClient {
18202
18200
 
18203
18201
  getMeasurementFormMappingSuggestion(targetId: string | null | undefined, sourceId: string | null | undefined): Promise<MeasurementFormMappingSuggestionDto>;
18204
18202
 
18205
- /**
18206
- * Custom api for initial import. Not to be used more than once per customer.
18207
- */
18208
- importMeasurementFormSchema(request: ImportMeasurementFormSchema): Promise<MeasurementFormDto>;
18209
-
18210
- listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
18203
+ listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
18211
18204
 
18212
18205
  postListMeasurementFormNeeds(request: ListMeasurementFormNeedsRequest | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
18213
18206
 
@@ -18219,7 +18212,7 @@ export interface IMeasurementFormSchemasClient {
18219
18212
 
18220
18213
  uploadNeedDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormNeedDto>;
18221
18214
 
18222
- listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto>;
18215
+ listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto>;
18223
18216
 
18224
18217
  postListMeasurementFormSchemasNotNeeded(request: ListMeasurementFormSchemasNotNeededRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto>;
18225
18218
 
@@ -18259,7 +18252,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
18259
18252
  this.baseUrl = baseUrl ?? "";
18260
18253
  }
18261
18254
 
18262
- listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto> {
18255
+ listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto> {
18263
18256
  let url_ = this.baseUrl + "/measurementforms/schemas?";
18264
18257
  if (pageSize === null)
18265
18258
  throw new Error("The parameter 'pageSize' cannot be null.");
@@ -18271,6 +18264,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
18271
18264
  url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
18272
18265
  if (partNumber !== undefined && partNumber !== null)
18273
18266
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
18267
+ if (partName !== undefined && partName !== null)
18268
+ url_ += "partName=" + encodeURIComponent("" + partName) + "&";
18274
18269
  if (partRevision !== undefined && partRevision !== null)
18275
18270
  url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
18276
18271
  if (drawing !== undefined && drawing !== null)
@@ -18856,45 +18851,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
18856
18851
  return Promise.resolve<MeasurementFormSchemaDto>(null as any);
18857
18852
  }
18858
18853
 
18859
- getMeasurementFormImportStatus(id: string): Promise<MeasurementFormImportStatusDto> {
18860
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}/importstatus";
18861
- if (id === undefined || id === null)
18862
- throw new Error("The parameter 'id' must be defined.");
18863
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
18864
- url_ = url_.replace(/[?&]$/, "");
18865
-
18866
- let options_: RequestInit = {
18867
- method: "GET",
18868
- headers: {
18869
- "Accept": "application/json"
18870
- }
18871
- };
18872
-
18873
- return this.transformOptions(options_).then(transformedOptions_ => {
18874
- return this.http.fetch(url_, transformedOptions_);
18875
- }).then((_response: Response) => {
18876
- return this.processGetMeasurementFormImportStatus(_response);
18877
- });
18878
- }
18879
-
18880
- protected processGetMeasurementFormImportStatus(response: Response): Promise<MeasurementFormImportStatusDto> {
18881
- const status = response.status;
18882
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
18883
- if (status === 200) {
18884
- return response.text().then((_responseText) => {
18885
- let result200: any = null;
18886
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
18887
- result200 = MeasurementFormImportStatusDto.fromJS(resultData200);
18888
- return result200;
18889
- });
18890
- } else if (status !== 200 && status !== 204) {
18891
- return response.text().then((_responseText) => {
18892
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
18893
- });
18894
- }
18895
- return Promise.resolve<MeasurementFormImportStatusDto>(null as any);
18896
- }
18897
-
18898
18854
  listLinkableMeasurementFormSchemas(schemaId: string, pageSize: number | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto> {
18899
18855
  let url_ = this.baseUrl + "/measurementforms/schemas/{schemaId}/listlinkableschemas?";
18900
18856
  if (schemaId === undefined || schemaId === null)
@@ -19683,50 +19639,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19683
19639
  return Promise.resolve<MeasurementFormMappingSuggestionDto>(null as any);
19684
19640
  }
19685
19641
 
19686
- /**
19687
- * Custom api for initial import. Not to be used more than once per customer.
19688
- */
19689
- importMeasurementFormSchema(request: ImportMeasurementFormSchema): Promise<MeasurementFormDto> {
19690
- let url_ = this.baseUrl + "/measurementforms/schemas/import";
19691
- url_ = url_.replace(/[?&]$/, "");
19692
-
19693
- const content_ = JSON.stringify(request);
19694
-
19695
- let options_: RequestInit = {
19696
- body: content_,
19697
- method: "POST",
19698
- headers: {
19699
- "Content-Type": "application/json",
19700
- "Accept": "application/json"
19701
- }
19702
- };
19703
-
19704
- return this.transformOptions(options_).then(transformedOptions_ => {
19705
- return this.http.fetch(url_, transformedOptions_);
19706
- }).then((_response: Response) => {
19707
- return this.processImportMeasurementFormSchema(_response);
19708
- });
19709
- }
19710
-
19711
- protected processImportMeasurementFormSchema(response: Response): Promise<MeasurementFormDto> {
19712
- const status = response.status;
19713
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19714
- if (status === 200) {
19715
- return response.text().then((_responseText) => {
19716
- let result200: any = null;
19717
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19718
- result200 = MeasurementFormDto.fromJS(resultData200);
19719
- return result200;
19720
- });
19721
- } else if (status !== 200 && status !== 204) {
19722
- return response.text().then((_responseText) => {
19723
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19724
- });
19725
- }
19726
- return Promise.resolve<MeasurementFormDto>(null as any);
19727
- }
19728
-
19729
- listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto> {
19642
+ listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto> {
19730
19643
  let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
19731
19644
  if (pageSize === null)
19732
19645
  throw new Error("The parameter 'pageSize' cannot be null.");
@@ -19738,6 +19651,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19738
19651
  url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
19739
19652
  if (partNumber !== undefined && partNumber !== null)
19740
19653
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
19654
+ if (partName !== undefined && partName !== null)
19655
+ url_ += "partName=" + encodeURIComponent("" + partName) + "&";
19741
19656
  if (partRevision !== undefined && partRevision !== null)
19742
19657
  url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
19743
19658
  if (drawing !== undefined && drawing !== null)
@@ -19988,7 +19903,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19988
19903
  return Promise.resolve<MeasurementFormNeedDto>(null as any);
19989
19904
  }
19990
19905
 
19991
- listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto> {
19906
+ listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto> {
19992
19907
  let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded?";
19993
19908
  if (pageSize === null)
19994
19909
  throw new Error("The parameter 'pageSize' cannot be null.");
@@ -20000,6 +19915,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
20000
19915
  url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
20001
19916
  if (partNumber !== undefined && partNumber !== null)
20002
19917
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
19918
+ if (partName !== undefined && partName !== null)
19919
+ url_ += "partName=" + encodeURIComponent("" + partName) + "&";
20003
19920
  if (partRevision !== undefined && partRevision !== null)
20004
19921
  url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
20005
19922
  if (drawing !== undefined && drawing !== null)
@@ -20774,11 +20691,11 @@ export interface IMeasurementFormsInstancesClient {
20774
20691
 
20775
20692
  cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
20776
20693
 
20777
- getMeasurementFormInstanceSchema(id: string, schemaId: string, sequence: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
20694
+ getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto>;
20778
20695
 
20779
20696
  getWorkorderMeasurementFormProgress(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceProgressDto>;
20780
20697
 
20781
- getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, sequence: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
20698
+ getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]>;
20782
20699
 
20783
20700
  getValidationRules(): Promise<ValidationRuleDto[]>;
20784
20701
 
@@ -20809,8 +20726,6 @@ export interface IMeasurementFormsInstancesClient {
20809
20726
  getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
20810
20727
 
20811
20728
  toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
20812
-
20813
- importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
20814
20729
  }
20815
20730
 
20816
20731
  export class MeasurementFormsInstancesClient extends AuthorizedApiBase implements IMeasurementFormsInstancesClient {
@@ -21412,7 +21327,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21412
21327
  return Promise.resolve<MeasurementFormInstanceDto>(null as any);
21413
21328
  }
21414
21329
 
21415
- getMeasurementFormInstanceSchema(id: string, schemaId: string, sequence: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
21330
+ getMeasurementFormInstanceSchema(id: string, schemaId: string, serialNumber: string | null | undefined, tenantId: string | null | undefined): Promise<MeasurementFormInstanceSchemaDto> {
21416
21331
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}?";
21417
21332
  if (id === undefined || id === null)
21418
21333
  throw new Error("The parameter 'id' must be defined.");
@@ -21420,8 +21335,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21420
21335
  if (schemaId === undefined || schemaId === null)
21421
21336
  throw new Error("The parameter 'schemaId' must be defined.");
21422
21337
  url_ = url_.replace("{schemaId}", encodeURIComponent("" + schemaId));
21423
- if (sequence !== undefined && sequence !== null)
21424
- url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
21338
+ if (serialNumber !== undefined && serialNumber !== null)
21339
+ url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
21425
21340
  if (tenantId !== undefined && tenantId !== null)
21426
21341
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
21427
21342
  url_ = url_.replace(/[?&]$/, "");
@@ -21499,7 +21414,7 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21499
21414
  return Promise.resolve<MeasurementFormInstanceProgressDto>(null as any);
21500
21415
  }
21501
21416
 
21502
- getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, sequence: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]> {
21417
+ getAuditLog(id: string, tenantId: string | null | undefined, schemaId: string | null | undefined, serialNumber: string | null | undefined, elementId: string | null | undefined): Promise<MeasurementFormElementValueAuditDto[]> {
21503
21418
  let url_ = this.baseUrl + "/measurementforms/instances/{id}/auditlog?";
21504
21419
  if (id === undefined || id === null)
21505
21420
  throw new Error("The parameter 'id' must be defined.");
@@ -21508,8 +21423,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
21508
21423
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
21509
21424
  if (schemaId !== undefined && schemaId !== null)
21510
21425
  url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
21511
- if (sequence !== undefined && sequence !== null)
21512
- url_ += "sequence=" + encodeURIComponent("" + sequence) + "&";
21426
+ if (serialNumber !== undefined && serialNumber !== null)
21427
+ url_ += "serialNumber=" + encodeURIComponent("" + serialNumber) + "&";
21513
21428
  if (elementId !== undefined && elementId !== null)
21514
21429
  url_ += "elementId=" + encodeURIComponent("" + elementId) + "&";
21515
21430
  url_ = url_.replace(/[?&]$/, "");
@@ -22193,12 +22108,112 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22193
22108
  }
22194
22109
  return Promise.resolve<void>(null as any);
22195
22110
  }
22111
+ }
22196
22112
 
22197
- importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
22198
- let url_ = this.baseUrl + "/measurementforms/instances/{id}/import";
22199
- if (id === undefined || id === null)
22200
- throw new Error("The parameter 'id' must be defined.");
22201
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22113
+ export interface IElectricalClient {
22114
+
22115
+ listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
22116
+
22117
+ listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]>;
22118
+
22119
+ createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto>;
22120
+
22121
+ deleteElectricalIotConfig(typeId: string, id: string): Promise<void>;
22122
+ }
22123
+
22124
+ export class ElectricalClient extends AuthorizedApiBase implements IElectricalClient {
22125
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22126
+ private baseUrl: string;
22127
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
22128
+
22129
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22130
+ super(configuration);
22131
+ this.http = http ? http : window as any;
22132
+ this.baseUrl = baseUrl ?? "";
22133
+ }
22134
+
22135
+ listElectricalSourceTypes(): Promise<IotTypeSourceDto[]> {
22136
+ let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
22137
+ url_ = url_.replace(/[?&]$/, "");
22138
+
22139
+ let options_: RequestInit = {
22140
+ method: "GET",
22141
+ headers: {
22142
+ "Accept": "application/json"
22143
+ }
22144
+ };
22145
+
22146
+ return this.transformOptions(options_).then(transformedOptions_ => {
22147
+ return this.http.fetch(url_, transformedOptions_);
22148
+ }).then((_response: Response) => {
22149
+ return this.processListElectricalSourceTypes(_response);
22150
+ });
22151
+ }
22152
+
22153
+ protected processListElectricalSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
22154
+ const status = response.status;
22155
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22156
+ if (status === 200) {
22157
+ return response.text().then((_responseText) => {
22158
+ let result200: any = null;
22159
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22160
+ if (Array.isArray(resultData200)) {
22161
+ result200 = [] as any;
22162
+ for (let item of resultData200)
22163
+ result200!.push(IotTypeSourceDto.fromJS(item));
22164
+ }
22165
+ return result200;
22166
+ });
22167
+ } else if (status !== 200 && status !== 204) {
22168
+ return response.text().then((_responseText) => {
22169
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22170
+ });
22171
+ }
22172
+ return Promise.resolve<IotTypeSourceDto[]>(null as any);
22173
+ }
22174
+
22175
+ listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]> {
22176
+ let url_ = this.baseUrl + "/iot/electrical";
22177
+ url_ = url_.replace(/[?&]$/, "");
22178
+
22179
+ let options_: RequestInit = {
22180
+ method: "GET",
22181
+ headers: {
22182
+ "Accept": "application/json"
22183
+ }
22184
+ };
22185
+
22186
+ return this.transformOptions(options_).then(transformedOptions_ => {
22187
+ return this.http.fetch(url_, transformedOptions_);
22188
+ }).then((_response: Response) => {
22189
+ return this.processListElectricalDataConfigs(_response);
22190
+ });
22191
+ }
22192
+
22193
+ protected processListElectricalDataConfigs(response: Response): Promise<ElectricalIotConfigDto[]> {
22194
+ const status = response.status;
22195
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22196
+ if (status === 200) {
22197
+ return response.text().then((_responseText) => {
22198
+ let result200: any = null;
22199
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22200
+ if (Array.isArray(resultData200)) {
22201
+ result200 = [] as any;
22202
+ for (let item of resultData200)
22203
+ result200!.push(ElectricalIotConfigDto.fromJS(item));
22204
+ }
22205
+ return result200;
22206
+ });
22207
+ } else if (status !== 200 && status !== 204) {
22208
+ return response.text().then((_responseText) => {
22209
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22210
+ });
22211
+ }
22212
+ return Promise.resolve<ElectricalIotConfigDto[]>(null as any);
22213
+ }
22214
+
22215
+ createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto> {
22216
+ let url_ = this.baseUrl + "/iot/electrical";
22202
22217
  url_ = url_.replace(/[?&]$/, "");
22203
22218
 
22204
22219
  const content_ = JSON.stringify(request);
@@ -22215,18 +22230,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22215
22230
  return this.transformOptions(options_).then(transformedOptions_ => {
22216
22231
  return this.http.fetch(url_, transformedOptions_);
22217
22232
  }).then((_response: Response) => {
22218
- return this.processImportMeasurementFormInstance(_response);
22233
+ return this.processCreateElectricalIotConfig(_response);
22219
22234
  });
22220
22235
  }
22221
22236
 
22222
- protected processImportMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
22237
+ protected processCreateElectricalIotConfig(response: Response): Promise<ElectricalIotConfigDto> {
22223
22238
  const status = response.status;
22224
22239
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22225
22240
  if (status === 200) {
22226
22241
  return response.text().then((_responseText) => {
22227
22242
  let result200: any = null;
22228
22243
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22229
- result200 = MeasurementFormInstanceDto.fromJS(resultData200);
22244
+ result200 = ElectricalIotConfigDto.fromJS(resultData200);
22230
22245
  return result200;
22231
22246
  });
22232
22247
  } else if (status !== 200 && status !== 204) {
@@ -22234,22 +22249,60 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
22234
22249
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22235
22250
  });
22236
22251
  }
22237
- return Promise.resolve<MeasurementFormInstanceDto>(null as any);
22252
+ return Promise.resolve<ElectricalIotConfigDto>(null as any);
22253
+ }
22254
+
22255
+ deleteElectricalIotConfig(typeId: string, id: string): Promise<void> {
22256
+ let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
22257
+ if (typeId === undefined || typeId === null)
22258
+ throw new Error("The parameter 'typeId' must be defined.");
22259
+ url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
22260
+ if (id === undefined || id === null)
22261
+ throw new Error("The parameter 'id' must be defined.");
22262
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
22263
+ url_ = url_.replace(/[?&]$/, "");
22264
+
22265
+ let options_: RequestInit = {
22266
+ method: "DELETE",
22267
+ headers: {
22268
+ }
22269
+ };
22270
+
22271
+ return this.transformOptions(options_).then(transformedOptions_ => {
22272
+ return this.http.fetch(url_, transformedOptions_);
22273
+ }).then((_response: Response) => {
22274
+ return this.processDeleteElectricalIotConfig(_response);
22275
+ });
22276
+ }
22277
+
22278
+ protected processDeleteElectricalIotConfig(response: Response): Promise<void> {
22279
+ const status = response.status;
22280
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22281
+ if (status === 204) {
22282
+ return response.text().then((_responseText) => {
22283
+ return;
22284
+ });
22285
+ } else if (status !== 200 && status !== 204) {
22286
+ return response.text().then((_responseText) => {
22287
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22288
+ });
22289
+ }
22290
+ return Promise.resolve<void>(null as any);
22238
22291
  }
22239
22292
  }
22240
22293
 
22241
- export interface IElectricalClient {
22294
+ export interface IWeldingClient {
22242
22295
 
22243
- listElectricalSourceTypes(): Promise<IotTypeSourceDto[]>;
22296
+ listWeldingSourceTypes(): Promise<IotTypeSourceDto[]>;
22244
22297
 
22245
- listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]>;
22298
+ listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]>;
22246
22299
 
22247
- createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto>;
22300
+ createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto>;
22248
22301
 
22249
- deleteElectricalIotConfig(typeId: string, id: string): Promise<void>;
22302
+ deleteWeldingIotConfig(typeId: string, id: string): Promise<void>;
22250
22303
  }
22251
22304
 
22252
- export class ElectricalClient extends AuthorizedApiBase implements IElectricalClient {
22305
+ export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
22253
22306
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22254
22307
  private baseUrl: string;
22255
22308
  protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
@@ -22260,8 +22313,8 @@ export class ElectricalClient extends AuthorizedApiBase implements IElectricalCl
22260
22313
  this.baseUrl = baseUrl ?? "";
22261
22314
  }
22262
22315
 
22263
- listElectricalSourceTypes(): Promise<IotTypeSourceDto[]> {
22264
- let url_ = this.baseUrl + "/iot/electrical/sourcetypes";
22316
+ listWeldingSourceTypes(): Promise<IotTypeSourceDto[]> {
22317
+ let url_ = this.baseUrl + "/iot/welding/sourcetypes";
22265
22318
  url_ = url_.replace(/[?&]$/, "");
22266
22319
 
22267
22320
  let options_: RequestInit = {
@@ -22274,192 +22327,11 @@ export class ElectricalClient extends AuthorizedApiBase implements IElectricalCl
22274
22327
  return this.transformOptions(options_).then(transformedOptions_ => {
22275
22328
  return this.http.fetch(url_, transformedOptions_);
22276
22329
  }).then((_response: Response) => {
22277
- return this.processListElectricalSourceTypes(_response);
22330
+ return this.processListWeldingSourceTypes(_response);
22278
22331
  });
22279
22332
  }
22280
22333
 
22281
- protected processListElectricalSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
22282
- const status = response.status;
22283
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22284
- if (status === 200) {
22285
- return response.text().then((_responseText) => {
22286
- let result200: any = null;
22287
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22288
- if (Array.isArray(resultData200)) {
22289
- result200 = [] as any;
22290
- for (let item of resultData200)
22291
- result200!.push(IotTypeSourceDto.fromJS(item));
22292
- }
22293
- return result200;
22294
- });
22295
- } else if (status !== 200 && status !== 204) {
22296
- return response.text().then((_responseText) => {
22297
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22298
- });
22299
- }
22300
- return Promise.resolve<IotTypeSourceDto[]>(null as any);
22301
- }
22302
-
22303
- listElectricalDataConfigs(): Promise<ElectricalIotConfigDto[]> {
22304
- let url_ = this.baseUrl + "/iot/electrical";
22305
- url_ = url_.replace(/[?&]$/, "");
22306
-
22307
- let options_: RequestInit = {
22308
- method: "GET",
22309
- headers: {
22310
- "Accept": "application/json"
22311
- }
22312
- };
22313
-
22314
- return this.transformOptions(options_).then(transformedOptions_ => {
22315
- return this.http.fetch(url_, transformedOptions_);
22316
- }).then((_response: Response) => {
22317
- return this.processListElectricalDataConfigs(_response);
22318
- });
22319
- }
22320
-
22321
- protected processListElectricalDataConfigs(response: Response): Promise<ElectricalIotConfigDto[]> {
22322
- const status = response.status;
22323
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22324
- if (status === 200) {
22325
- return response.text().then((_responseText) => {
22326
- let result200: any = null;
22327
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22328
- if (Array.isArray(resultData200)) {
22329
- result200 = [] as any;
22330
- for (let item of resultData200)
22331
- result200!.push(ElectricalIotConfigDto.fromJS(item));
22332
- }
22333
- return result200;
22334
- });
22335
- } else if (status !== 200 && status !== 204) {
22336
- return response.text().then((_responseText) => {
22337
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22338
- });
22339
- }
22340
- return Promise.resolve<ElectricalIotConfigDto[]>(null as any);
22341
- }
22342
-
22343
- createElectricalIotConfig(request: CreateElectricalIotConfig): Promise<ElectricalIotConfigDto> {
22344
- let url_ = this.baseUrl + "/iot/electrical";
22345
- url_ = url_.replace(/[?&]$/, "");
22346
-
22347
- const content_ = JSON.stringify(request);
22348
-
22349
- let options_: RequestInit = {
22350
- body: content_,
22351
- method: "POST",
22352
- headers: {
22353
- "Content-Type": "application/json",
22354
- "Accept": "application/json"
22355
- }
22356
- };
22357
-
22358
- return this.transformOptions(options_).then(transformedOptions_ => {
22359
- return this.http.fetch(url_, transformedOptions_);
22360
- }).then((_response: Response) => {
22361
- return this.processCreateElectricalIotConfig(_response);
22362
- });
22363
- }
22364
-
22365
- protected processCreateElectricalIotConfig(response: Response): Promise<ElectricalIotConfigDto> {
22366
- const status = response.status;
22367
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22368
- if (status === 200) {
22369
- return response.text().then((_responseText) => {
22370
- let result200: any = null;
22371
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
22372
- result200 = ElectricalIotConfigDto.fromJS(resultData200);
22373
- return result200;
22374
- });
22375
- } else if (status !== 200 && status !== 204) {
22376
- return response.text().then((_responseText) => {
22377
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22378
- });
22379
- }
22380
- return Promise.resolve<ElectricalIotConfigDto>(null as any);
22381
- }
22382
-
22383
- deleteElectricalIotConfig(typeId: string, id: string): Promise<void> {
22384
- let url_ = this.baseUrl + "/iot/electrical/{typeId}/{id}";
22385
- if (typeId === undefined || typeId === null)
22386
- throw new Error("The parameter 'typeId' must be defined.");
22387
- url_ = url_.replace("{typeId}", encodeURIComponent("" + typeId));
22388
- if (id === undefined || id === null)
22389
- throw new Error("The parameter 'id' must be defined.");
22390
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
22391
- url_ = url_.replace(/[?&]$/, "");
22392
-
22393
- let options_: RequestInit = {
22394
- method: "DELETE",
22395
- headers: {
22396
- }
22397
- };
22398
-
22399
- return this.transformOptions(options_).then(transformedOptions_ => {
22400
- return this.http.fetch(url_, transformedOptions_);
22401
- }).then((_response: Response) => {
22402
- return this.processDeleteElectricalIotConfig(_response);
22403
- });
22404
- }
22405
-
22406
- protected processDeleteElectricalIotConfig(response: Response): Promise<void> {
22407
- const status = response.status;
22408
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22409
- if (status === 204) {
22410
- return response.text().then((_responseText) => {
22411
- return;
22412
- });
22413
- } else if (status !== 200 && status !== 204) {
22414
- return response.text().then((_responseText) => {
22415
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
22416
- });
22417
- }
22418
- return Promise.resolve<void>(null as any);
22419
- }
22420
- }
22421
-
22422
- export interface IWeldingClient {
22423
-
22424
- listWeldingSourceTypes(): Promise<IotTypeSourceDto[]>;
22425
-
22426
- listElectricalDataConfigs(): Promise<WeldingIotConfigDto[]>;
22427
-
22428
- createWeldingIotConfig(request: CreateWeldingIotConfig): Promise<WeldingIotConfigDto>;
22429
-
22430
- deleteWeldingIotConfig(typeId: string, id: string): Promise<void>;
22431
- }
22432
-
22433
- export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
22434
- private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
22435
- private baseUrl: string;
22436
- protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
22437
-
22438
- constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
22439
- super(configuration);
22440
- this.http = http ? http : window as any;
22441
- this.baseUrl = baseUrl ?? "";
22442
- }
22443
-
22444
- listWeldingSourceTypes(): Promise<IotTypeSourceDto[]> {
22445
- let url_ = this.baseUrl + "/iot/welding/sourcetypes";
22446
- url_ = url_.replace(/[?&]$/, "");
22447
-
22448
- let options_: RequestInit = {
22449
- method: "GET",
22450
- headers: {
22451
- "Accept": "application/json"
22452
- }
22453
- };
22454
-
22455
- return this.transformOptions(options_).then(transformedOptions_ => {
22456
- return this.http.fetch(url_, transformedOptions_);
22457
- }).then((_response: Response) => {
22458
- return this.processListWeldingSourceTypes(_response);
22459
- });
22460
- }
22461
-
22462
- protected processListWeldingSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
22334
+ protected processListWeldingSourceTypes(response: Response): Promise<IotTypeSourceDto[]> {
22463
22335
  const status = response.status;
22464
22336
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
22465
22337
  if (status === 200) {
@@ -23346,6 +23218,18 @@ export interface IWorkordersClient {
23346
23218
  * Deleteds existing work order mappings.
23347
23219
  */
23348
23220
  deleteWorkOrderMappings(): Promise<void>;
23221
+
23222
+ getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessageDto[]>;
23223
+
23224
+ addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<WorkorderDiscussionMessageDto>;
23225
+
23226
+ updateMessage(id: string, messageId: string, content: string): Promise<FileResponse>;
23227
+
23228
+ deleteMessage(id: string, messageId: string): Promise<FileResponse>;
23229
+
23230
+ getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto>;
23231
+
23232
+ setLastRead(id: string, request: SetDiscussionLastReadRequest): Promise<void>;
23349
23233
  }
23350
23234
 
23351
23235
  export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
@@ -24425,6 +24309,270 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
24425
24309
  }
24426
24310
  return Promise.resolve<void>(null as any);
24427
24311
  }
24312
+
24313
+ getDiscussionMessages(id: string): Promise<WorkorderDiscussionMessageDto[]> {
24314
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
24315
+ if (id === undefined || id === null)
24316
+ throw new Error("The parameter 'id' must be defined.");
24317
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24318
+ url_ = url_.replace(/[?&]$/, "");
24319
+
24320
+ let options_: RequestInit = {
24321
+ method: "GET",
24322
+ headers: {
24323
+ "Accept": "application/json"
24324
+ }
24325
+ };
24326
+
24327
+ return this.transformOptions(options_).then(transformedOptions_ => {
24328
+ return this.http.fetch(url_, transformedOptions_);
24329
+ }).then((_response: Response) => {
24330
+ return this.processGetDiscussionMessages(_response);
24331
+ });
24332
+ }
24333
+
24334
+ protected processGetDiscussionMessages(response: Response): Promise<WorkorderDiscussionMessageDto[]> {
24335
+ const status = response.status;
24336
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24337
+ if (status === 200) {
24338
+ return response.text().then((_responseText) => {
24339
+ let result200: any = null;
24340
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24341
+ if (Array.isArray(resultData200)) {
24342
+ result200 = [] as any;
24343
+ for (let item of resultData200)
24344
+ result200!.push(WorkorderDiscussionMessageDto.fromJS(item));
24345
+ }
24346
+ return result200;
24347
+ });
24348
+ } else if (status !== 200 && status !== 204) {
24349
+ return response.text().then((_responseText) => {
24350
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24351
+ });
24352
+ }
24353
+ return Promise.resolve<WorkorderDiscussionMessageDto[]>(null as any);
24354
+ }
24355
+
24356
+ addDiscussionMessage(id: string, request: AddDiscussionMessageRequest): Promise<WorkorderDiscussionMessageDto> {
24357
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion";
24358
+ if (id === undefined || id === null)
24359
+ throw new Error("The parameter 'id' must be defined.");
24360
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24361
+ url_ = url_.replace(/[?&]$/, "");
24362
+
24363
+ const content_ = JSON.stringify(request);
24364
+
24365
+ let options_: RequestInit = {
24366
+ body: content_,
24367
+ method: "POST",
24368
+ headers: {
24369
+ "Content-Type": "application/json",
24370
+ "Accept": "application/json"
24371
+ }
24372
+ };
24373
+
24374
+ return this.transformOptions(options_).then(transformedOptions_ => {
24375
+ return this.http.fetch(url_, transformedOptions_);
24376
+ }).then((_response: Response) => {
24377
+ return this.processAddDiscussionMessage(_response);
24378
+ });
24379
+ }
24380
+
24381
+ protected processAddDiscussionMessage(response: Response): Promise<WorkorderDiscussionMessageDto> {
24382
+ const status = response.status;
24383
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24384
+ if (status === 201) {
24385
+ return response.text().then((_responseText) => {
24386
+ let result201: any = null;
24387
+ let resultData201 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24388
+ result201 = WorkorderDiscussionMessageDto.fromJS(resultData201);
24389
+ return result201;
24390
+ });
24391
+ } else if (status !== 200 && status !== 204) {
24392
+ return response.text().then((_responseText) => {
24393
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24394
+ });
24395
+ }
24396
+ return Promise.resolve<WorkorderDiscussionMessageDto>(null as any);
24397
+ }
24398
+
24399
+ updateMessage(id: string, messageId: string, content: string): Promise<FileResponse> {
24400
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
24401
+ if (id === undefined || id === null)
24402
+ throw new Error("The parameter 'id' must be defined.");
24403
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24404
+ if (messageId === undefined || messageId === null)
24405
+ throw new Error("The parameter 'messageId' must be defined.");
24406
+ url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
24407
+ url_ = url_.replace(/[?&]$/, "");
24408
+
24409
+ const content_ = JSON.stringify(content);
24410
+
24411
+ let options_: RequestInit = {
24412
+ body: content_,
24413
+ method: "PUT",
24414
+ headers: {
24415
+ "Content-Type": "application/json",
24416
+ "Accept": "application/octet-stream"
24417
+ }
24418
+ };
24419
+
24420
+ return this.transformOptions(options_).then(transformedOptions_ => {
24421
+ return this.http.fetch(url_, transformedOptions_);
24422
+ }).then((_response: Response) => {
24423
+ return this.processUpdateMessage(_response);
24424
+ });
24425
+ }
24426
+
24427
+ protected processUpdateMessage(response: Response): Promise<FileResponse> {
24428
+ const status = response.status;
24429
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24430
+ if (status === 200 || status === 206) {
24431
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
24432
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
24433
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
24434
+ if (fileName) {
24435
+ fileName = decodeURIComponent(fileName);
24436
+ } else {
24437
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
24438
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
24439
+ }
24440
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
24441
+ } else if (status !== 200 && status !== 204) {
24442
+ return response.text().then((_responseText) => {
24443
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24444
+ });
24445
+ }
24446
+ return Promise.resolve<FileResponse>(null as any);
24447
+ }
24448
+
24449
+ deleteMessage(id: string, messageId: string): Promise<FileResponse> {
24450
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/{messageId}";
24451
+ if (id === undefined || id === null)
24452
+ throw new Error("The parameter 'id' must be defined.");
24453
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24454
+ if (messageId === undefined || messageId === null)
24455
+ throw new Error("The parameter 'messageId' must be defined.");
24456
+ url_ = url_.replace("{messageId}", encodeURIComponent("" + messageId));
24457
+ url_ = url_.replace(/[?&]$/, "");
24458
+
24459
+ let options_: RequestInit = {
24460
+ method: "DELETE",
24461
+ headers: {
24462
+ "Accept": "application/octet-stream"
24463
+ }
24464
+ };
24465
+
24466
+ return this.transformOptions(options_).then(transformedOptions_ => {
24467
+ return this.http.fetch(url_, transformedOptions_);
24468
+ }).then((_response: Response) => {
24469
+ return this.processDeleteMessage(_response);
24470
+ });
24471
+ }
24472
+
24473
+ protected processDeleteMessage(response: Response): Promise<FileResponse> {
24474
+ const status = response.status;
24475
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24476
+ if (status === 200 || status === 206) {
24477
+ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
24478
+ let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
24479
+ let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
24480
+ if (fileName) {
24481
+ fileName = decodeURIComponent(fileName);
24482
+ } else {
24483
+ fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
24484
+ fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
24485
+ }
24486
+ return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
24487
+ } else if (status !== 200 && status !== 204) {
24488
+ return response.text().then((_responseText) => {
24489
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24490
+ });
24491
+ }
24492
+ return Promise.resolve<FileResponse>(null as any);
24493
+ }
24494
+
24495
+ getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto> {
24496
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read?";
24497
+ if (id === undefined || id === null)
24498
+ throw new Error("The parameter 'id' must be defined.");
24499
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24500
+ if (operationId !== undefined && operationId !== null)
24501
+ url_ += "operationId=" + encodeURIComponent("" + operationId) + "&";
24502
+ if (resourceId !== undefined && resourceId !== null)
24503
+ url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
24504
+ url_ = url_.replace(/[?&]$/, "");
24505
+
24506
+ let options_: RequestInit = {
24507
+ method: "GET",
24508
+ headers: {
24509
+ "Accept": "application/json"
24510
+ }
24511
+ };
24512
+
24513
+ return this.transformOptions(options_).then(transformedOptions_ => {
24514
+ return this.http.fetch(url_, transformedOptions_);
24515
+ }).then((_response: Response) => {
24516
+ return this.processGetLastRead(_response);
24517
+ });
24518
+ }
24519
+
24520
+ protected processGetLastRead(response: Response): Promise<WorkorderDiscussionReadStatusDto> {
24521
+ const status = response.status;
24522
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24523
+ if (status === 200) {
24524
+ return response.text().then((_responseText) => {
24525
+ let result200: any = null;
24526
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
24527
+ result200 = WorkorderDiscussionReadStatusDto.fromJS(resultData200);
24528
+ return result200;
24529
+ });
24530
+ } else if (status !== 200 && status !== 204) {
24531
+ return response.text().then((_responseText) => {
24532
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24533
+ });
24534
+ }
24535
+ return Promise.resolve<WorkorderDiscussionReadStatusDto>(null as any);
24536
+ }
24537
+
24538
+ setLastRead(id: string, request: SetDiscussionLastReadRequest): Promise<void> {
24539
+ let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
24540
+ if (id === undefined || id === null)
24541
+ throw new Error("The parameter 'id' must be defined.");
24542
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
24543
+ url_ = url_.replace(/[?&]$/, "");
24544
+
24545
+ const content_ = JSON.stringify(request);
24546
+
24547
+ let options_: RequestInit = {
24548
+ body: content_,
24549
+ method: "POST",
24550
+ headers: {
24551
+ "Content-Type": "application/json",
24552
+ }
24553
+ };
24554
+
24555
+ return this.transformOptions(options_).then(transformedOptions_ => {
24556
+ return this.http.fetch(url_, transformedOptions_);
24557
+ }).then((_response: Response) => {
24558
+ return this.processSetLastRead(_response);
24559
+ });
24560
+ }
24561
+
24562
+ protected processSetLastRead(response: Response): Promise<void> {
24563
+ const status = response.status;
24564
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
24565
+ if (status === 204) {
24566
+ return response.text().then((_responseText) => {
24567
+ return;
24568
+ });
24569
+ } else if (status !== 200 && status !== 204) {
24570
+ return response.text().then((_responseText) => {
24571
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
24572
+ });
24573
+ }
24574
+ return Promise.resolve<void>(null as any);
24575
+ }
24428
24576
  }
24429
24577
 
24430
24578
  export class AzureRegionDto implements IAzureRegionDto {
@@ -52003,6 +52151,7 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
52003
52151
  pageSize?: number | null;
52004
52152
  customerId?: string | null;
52005
52153
  customerName?: string | null;
52154
+ partName?: string | null;
52006
52155
  partNumber?: string | null;
52007
52156
  partRevision?: string | null;
52008
52157
  drawing?: string | null;
@@ -52024,6 +52173,7 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
52024
52173
  this.pageSize = _data["pageSize"];
52025
52174
  this.customerId = _data["customerId"];
52026
52175
  this.customerName = _data["customerName"];
52176
+ this.partName = _data["partName"];
52027
52177
  this.partNumber = _data["partNumber"];
52028
52178
  this.partRevision = _data["partRevision"];
52029
52179
  this.drawing = _data["drawing"];
@@ -52045,6 +52195,7 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
52045
52195
  data["pageSize"] = this.pageSize;
52046
52196
  data["customerId"] = this.customerId;
52047
52197
  data["customerName"] = this.customerName;
52198
+ data["partName"] = this.partName;
52048
52199
  data["partNumber"] = this.partNumber;
52049
52200
  data["partRevision"] = this.partRevision;
52050
52201
  data["drawing"] = this.drawing;
@@ -52059,6 +52210,7 @@ export interface IListMeasurementFormSchemasRequest {
52059
52210
  pageSize?: number | null;
52060
52211
  customerId?: string | null;
52061
52212
  customerName?: string | null;
52213
+ partName?: string | null;
52062
52214
  partNumber?: string | null;
52063
52215
  partRevision?: string | null;
52064
52216
  drawing?: string | null;
@@ -53241,54 +53393,6 @@ export interface IUploadRequest {
53241
53393
  filename: string;
53242
53394
  }
53243
53395
 
53244
- export class MeasurementFormImportStatusDto implements IMeasurementFormImportStatusDto {
53245
- progress!: number;
53246
- totalElements!: number;
53247
- errorMessage!: string;
53248
- timestamp!: Date;
53249
-
53250
- constructor(data?: IMeasurementFormImportStatusDto) {
53251
- if (data) {
53252
- for (var property in data) {
53253
- if (data.hasOwnProperty(property))
53254
- (<any>this)[property] = (<any>data)[property];
53255
- }
53256
- }
53257
- }
53258
-
53259
- init(_data?: any) {
53260
- if (_data) {
53261
- this.progress = _data["progress"];
53262
- this.totalElements = _data["totalElements"];
53263
- this.errorMessage = _data["errorMessage"];
53264
- this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
53265
- }
53266
- }
53267
-
53268
- static fromJS(data: any): MeasurementFormImportStatusDto {
53269
- data = typeof data === 'object' ? data : {};
53270
- let result = new MeasurementFormImportStatusDto();
53271
- result.init(data);
53272
- return result;
53273
- }
53274
-
53275
- toJSON(data?: any) {
53276
- data = typeof data === 'object' ? data : {};
53277
- data["progress"] = this.progress;
53278
- data["totalElements"] = this.totalElements;
53279
- data["errorMessage"] = this.errorMessage;
53280
- data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
53281
- return data;
53282
- }
53283
- }
53284
-
53285
- export interface IMeasurementFormImportStatusDto {
53286
- progress: number;
53287
- totalElements: number;
53288
- errorMessage: string;
53289
- timestamp: Date;
53290
- }
53291
-
53292
53396
  export class ListLinkableMeasurementFormSchemasRequest implements IListLinkableMeasurementFormSchemasRequest {
53293
53397
  schemaId!: string;
53294
53398
  pageSize?: number | null;
@@ -53990,448 +54094,6 @@ export interface IMeasurementFormMappingSuggestionDto {
53990
54094
  targetBalloons: MeasurementFormBalloonMappingDto[];
53991
54095
  }
53992
54096
 
53993
- export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema {
53994
- customerId?: string | null;
53995
- customerName?: string | null;
53996
- partNumber!: string;
53997
- partRevision?: string | null;
53998
- drawing?: string | null;
53999
- drawingRevision?: string | null;
54000
- includeToolsInReport!: boolean;
54001
- created?: Date;
54002
- createdBy?: string | null;
54003
- updatedBy?: string | null;
54004
- excludeFromCustomerDocumentation!: boolean;
54005
- source!: MeasurementFormSource;
54006
- extraSchemas?: MeasurementFormImportLinkedSchemaDto[] | null;
54007
- versions!: MeasurementFormVersionImportDto[];
54008
-
54009
- constructor(data?: IImportMeasurementFormSchema) {
54010
- if (data) {
54011
- for (var property in data) {
54012
- if (data.hasOwnProperty(property))
54013
- (<any>this)[property] = (<any>data)[property];
54014
- }
54015
- }
54016
- if (!data) {
54017
- this.versions = [];
54018
- }
54019
- }
54020
-
54021
- init(_data?: any) {
54022
- if (_data) {
54023
- this.customerId = _data["customerId"];
54024
- this.customerName = _data["customerName"];
54025
- this.partNumber = _data["partNumber"];
54026
- this.partRevision = _data["partRevision"];
54027
- this.drawing = _data["drawing"];
54028
- this.drawingRevision = _data["drawingRevision"];
54029
- this.includeToolsInReport = _data["includeToolsInReport"];
54030
- this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
54031
- this.createdBy = _data["createdBy"];
54032
- this.updatedBy = _data["updatedBy"];
54033
- this.excludeFromCustomerDocumentation = _data["excludeFromCustomerDocumentation"];
54034
- this.source = _data["source"];
54035
- if (Array.isArray(_data["extraSchemas"])) {
54036
- this.extraSchemas = [] as any;
54037
- for (let item of _data["extraSchemas"])
54038
- this.extraSchemas!.push(MeasurementFormImportLinkedSchemaDto.fromJS(item));
54039
- }
54040
- if (Array.isArray(_data["versions"])) {
54041
- this.versions = [] as any;
54042
- for (let item of _data["versions"])
54043
- this.versions!.push(MeasurementFormVersionImportDto.fromJS(item));
54044
- }
54045
- }
54046
- }
54047
-
54048
- static fromJS(data: any): ImportMeasurementFormSchema {
54049
- data = typeof data === 'object' ? data : {};
54050
- let result = new ImportMeasurementFormSchema();
54051
- result.init(data);
54052
- return result;
54053
- }
54054
-
54055
- toJSON(data?: any) {
54056
- data = typeof data === 'object' ? data : {};
54057
- data["customerId"] = this.customerId;
54058
- data["customerName"] = this.customerName;
54059
- data["partNumber"] = this.partNumber;
54060
- data["partRevision"] = this.partRevision;
54061
- data["drawing"] = this.drawing;
54062
- data["drawingRevision"] = this.drawingRevision;
54063
- data["includeToolsInReport"] = this.includeToolsInReport;
54064
- data["created"] = this.created ? this.created.toISOString() : <any>undefined;
54065
- data["createdBy"] = this.createdBy;
54066
- data["updatedBy"] = this.updatedBy;
54067
- data["excludeFromCustomerDocumentation"] = this.excludeFromCustomerDocumentation;
54068
- data["source"] = this.source;
54069
- if (Array.isArray(this.extraSchemas)) {
54070
- data["extraSchemas"] = [];
54071
- for (let item of this.extraSchemas)
54072
- data["extraSchemas"].push(item.toJSON());
54073
- }
54074
- if (Array.isArray(this.versions)) {
54075
- data["versions"] = [];
54076
- for (let item of this.versions)
54077
- data["versions"].push(item.toJSON());
54078
- }
54079
- return data;
54080
- }
54081
- }
54082
-
54083
- export interface IImportMeasurementFormSchema {
54084
- customerId?: string | null;
54085
- customerName?: string | null;
54086
- partNumber: string;
54087
- partRevision?: string | null;
54088
- drawing?: string | null;
54089
- drawingRevision?: string | null;
54090
- includeToolsInReport: boolean;
54091
- created?: Date;
54092
- createdBy?: string | null;
54093
- updatedBy?: string | null;
54094
- excludeFromCustomerDocumentation: boolean;
54095
- source: MeasurementFormSource;
54096
- extraSchemas?: MeasurementFormImportLinkedSchemaDto[] | null;
54097
- versions: MeasurementFormVersionImportDto[];
54098
- }
54099
-
54100
- export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImportLinkedSchemaDto {
54101
- customerId?: string | null;
54102
- partNumber?: string | null;
54103
- partRevision?: string | null;
54104
- drawing!: string;
54105
- drawingRevision?: string | null;
54106
- schemaId?: string | null;
54107
-
54108
- constructor(data?: IMeasurementFormImportLinkedSchemaDto) {
54109
- if (data) {
54110
- for (var property in data) {
54111
- if (data.hasOwnProperty(property))
54112
- (<any>this)[property] = (<any>data)[property];
54113
- }
54114
- }
54115
- }
54116
-
54117
- init(_data?: any) {
54118
- if (_data) {
54119
- this.customerId = _data["customerId"];
54120
- this.partNumber = _data["partNumber"];
54121
- this.partRevision = _data["partRevision"];
54122
- this.drawing = _data["drawing"];
54123
- this.drawingRevision = _data["drawingRevision"];
54124
- this.schemaId = _data["schemaId"];
54125
- }
54126
- }
54127
-
54128
- static fromJS(data: any): MeasurementFormImportLinkedSchemaDto {
54129
- data = typeof data === 'object' ? data : {};
54130
- let result = new MeasurementFormImportLinkedSchemaDto();
54131
- result.init(data);
54132
- return result;
54133
- }
54134
-
54135
- toJSON(data?: any) {
54136
- data = typeof data === 'object' ? data : {};
54137
- data["customerId"] = this.customerId;
54138
- data["partNumber"] = this.partNumber;
54139
- data["partRevision"] = this.partRevision;
54140
- data["drawing"] = this.drawing;
54141
- data["drawingRevision"] = this.drawingRevision;
54142
- data["schemaId"] = this.schemaId;
54143
- return data;
54144
- }
54145
- }
54146
-
54147
- export interface IMeasurementFormImportLinkedSchemaDto {
54148
- customerId?: string | null;
54149
- partNumber?: string | null;
54150
- partRevision?: string | null;
54151
- drawing: string;
54152
- drawingRevision?: string | null;
54153
- schemaId?: string | null;
54154
- }
54155
-
54156
- export class MeasurementFormVersionImportDto implements IMeasurementFormVersionImportDto {
54157
- version!: number;
54158
- specification?: string | null;
54159
- drawingUrl?: string | null;
54160
- markedDrawingUrl?: string | null;
54161
- xmlUrl?: string | null;
54162
- inspectionXpertProjectUrl?: string | null;
54163
- created!: Date;
54164
- createdBy!: string;
54165
- updated?: Date | null;
54166
- updatedBy?: string | null;
54167
- elements!: MeasurementFormElementImportDto[];
54168
- isUsed!: boolean;
54169
-
54170
- constructor(data?: IMeasurementFormVersionImportDto) {
54171
- if (data) {
54172
- for (var property in data) {
54173
- if (data.hasOwnProperty(property))
54174
- (<any>this)[property] = (<any>data)[property];
54175
- }
54176
- }
54177
- if (!data) {
54178
- this.elements = [];
54179
- }
54180
- }
54181
-
54182
- init(_data?: any) {
54183
- if (_data) {
54184
- this.version = _data["version"];
54185
- this.specification = _data["specification"];
54186
- this.drawingUrl = _data["drawingUrl"];
54187
- this.markedDrawingUrl = _data["markedDrawingUrl"];
54188
- this.xmlUrl = _data["xmlUrl"];
54189
- this.inspectionXpertProjectUrl = _data["inspectionXpertProjectUrl"];
54190
- this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
54191
- this.createdBy = _data["createdBy"];
54192
- this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
54193
- this.updatedBy = _data["updatedBy"];
54194
- if (Array.isArray(_data["elements"])) {
54195
- this.elements = [] as any;
54196
- for (let item of _data["elements"])
54197
- this.elements!.push(MeasurementFormElementImportDto.fromJS(item));
54198
- }
54199
- this.isUsed = _data["isUsed"];
54200
- }
54201
- }
54202
-
54203
- static fromJS(data: any): MeasurementFormVersionImportDto {
54204
- data = typeof data === 'object' ? data : {};
54205
- let result = new MeasurementFormVersionImportDto();
54206
- result.init(data);
54207
- return result;
54208
- }
54209
-
54210
- toJSON(data?: any) {
54211
- data = typeof data === 'object' ? data : {};
54212
- data["version"] = this.version;
54213
- data["specification"] = this.specification;
54214
- data["drawingUrl"] = this.drawingUrl;
54215
- data["markedDrawingUrl"] = this.markedDrawingUrl;
54216
- data["xmlUrl"] = this.xmlUrl;
54217
- data["inspectionXpertProjectUrl"] = this.inspectionXpertProjectUrl;
54218
- data["created"] = this.created ? this.created.toISOString() : <any>undefined;
54219
- data["createdBy"] = this.createdBy;
54220
- data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
54221
- data["updatedBy"] = this.updatedBy;
54222
- if (Array.isArray(this.elements)) {
54223
- data["elements"] = [];
54224
- for (let item of this.elements)
54225
- data["elements"].push(item.toJSON());
54226
- }
54227
- data["isUsed"] = this.isUsed;
54228
- return data;
54229
- }
54230
- }
54231
-
54232
- export interface IMeasurementFormVersionImportDto {
54233
- version: number;
54234
- specification?: string | null;
54235
- drawingUrl?: string | null;
54236
- markedDrawingUrl?: string | null;
54237
- xmlUrl?: string | null;
54238
- inspectionXpertProjectUrl?: string | null;
54239
- created: Date;
54240
- createdBy: string;
54241
- updated?: Date | null;
54242
- updatedBy?: string | null;
54243
- elements: MeasurementFormElementImportDto[];
54244
- isUsed: boolean;
54245
- }
54246
-
54247
- export class MeasurementFormElementImportDto implements IMeasurementFormElementImportDto {
54248
- id?: string | null;
54249
- imageUrl?: string | null;
54250
- thumbnailUrl?: string | null;
54251
- balloonId?: string | null;
54252
- section?: string | null;
54253
- pageNumber?: number;
54254
- sheetZone?: string | null;
54255
- places?: number | null;
54256
- nominal?: number | null;
54257
- nominalText?: string | null;
54258
- type?: string | null;
54259
- subType?: string | null;
54260
- unitOfMeasure?: string | null;
54261
- typeCharacter?: string | null;
54262
- plusTolerance?: number | null;
54263
- minusTolerance?: number | null;
54264
- upperLimit?: number | null;
54265
- lowerLimit?: number | null;
54266
- comments?: string | null;
54267
- updatedByUser?: string | null;
54268
- updatedDate?: Date | null;
54269
- createdByUser?: string | null;
54270
- createdDate?: Date;
54271
- frequency?: MeasurementFrequency;
54272
- frequencyParameter?: number | null;
54273
- includeInCustomerDocumentation?: boolean;
54274
- balloonSequence?: number | null;
54275
- balloonQuantity?: number | null;
54276
- plusToleranceText?: string | null;
54277
- minusToleranceText?: string | null;
54278
- coatingThickness?: number | null;
54279
- canCopy?: boolean;
54280
- valueType?: MeasurementFormValueType;
54281
- inspectionMethod?: string | null;
54282
- process?: string | null;
54283
- classification?: string | null;
54284
- fitGrade?: string | null;
54285
- fitType?: number | null;
54286
- forReference?: boolean;
54287
-
54288
- constructor(data?: IMeasurementFormElementImportDto) {
54289
- if (data) {
54290
- for (var property in data) {
54291
- if (data.hasOwnProperty(property))
54292
- (<any>this)[property] = (<any>data)[property];
54293
- }
54294
- }
54295
- }
54296
-
54297
- init(_data?: any) {
54298
- if (_data) {
54299
- this.id = _data["id"];
54300
- this.imageUrl = _data["imageUrl"];
54301
- this.thumbnailUrl = _data["thumbnailUrl"];
54302
- this.balloonId = _data["balloonId"];
54303
- this.section = _data["section"];
54304
- this.pageNumber = _data["pageNumber"];
54305
- this.sheetZone = _data["sheetZone"];
54306
- this.places = _data["places"];
54307
- this.nominal = _data["nominal"];
54308
- this.nominalText = _data["nominalText"];
54309
- this.type = _data["type"];
54310
- this.subType = _data["subType"];
54311
- this.unitOfMeasure = _data["unitOfMeasure"];
54312
- this.typeCharacter = _data["typeCharacter"];
54313
- this.plusTolerance = _data["plusTolerance"];
54314
- this.minusTolerance = _data["minusTolerance"];
54315
- this.upperLimit = _data["upperLimit"];
54316
- this.lowerLimit = _data["lowerLimit"];
54317
- this.comments = _data["comments"];
54318
- this.updatedByUser = _data["updatedByUser"];
54319
- this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : <any>undefined;
54320
- this.createdByUser = _data["createdByUser"];
54321
- this.createdDate = _data["createdDate"] ? new Date(_data["createdDate"].toString()) : <any>undefined;
54322
- this.frequency = _data["frequency"];
54323
- this.frequencyParameter = _data["frequencyParameter"];
54324
- this.includeInCustomerDocumentation = _data["includeInCustomerDocumentation"];
54325
- this.balloonSequence = _data["balloonSequence"];
54326
- this.balloonQuantity = _data["balloonQuantity"];
54327
- this.plusToleranceText = _data["plusToleranceText"];
54328
- this.minusToleranceText = _data["minusToleranceText"];
54329
- this.coatingThickness = _data["coatingThickness"];
54330
- this.canCopy = _data["canCopy"];
54331
- this.valueType = _data["valueType"];
54332
- this.inspectionMethod = _data["inspectionMethod"];
54333
- this.process = _data["process"];
54334
- this.classification = _data["classification"];
54335
- this.fitGrade = _data["fitGrade"];
54336
- this.fitType = _data["fitType"];
54337
- this.forReference = _data["forReference"];
54338
- }
54339
- }
54340
-
54341
- static fromJS(data: any): MeasurementFormElementImportDto {
54342
- data = typeof data === 'object' ? data : {};
54343
- let result = new MeasurementFormElementImportDto();
54344
- result.init(data);
54345
- return result;
54346
- }
54347
-
54348
- toJSON(data?: any) {
54349
- data = typeof data === 'object' ? data : {};
54350
- data["id"] = this.id;
54351
- data["imageUrl"] = this.imageUrl;
54352
- data["thumbnailUrl"] = this.thumbnailUrl;
54353
- data["balloonId"] = this.balloonId;
54354
- data["section"] = this.section;
54355
- data["pageNumber"] = this.pageNumber;
54356
- data["sheetZone"] = this.sheetZone;
54357
- data["places"] = this.places;
54358
- data["nominal"] = this.nominal;
54359
- data["nominalText"] = this.nominalText;
54360
- data["type"] = this.type;
54361
- data["subType"] = this.subType;
54362
- data["unitOfMeasure"] = this.unitOfMeasure;
54363
- data["typeCharacter"] = this.typeCharacter;
54364
- data["plusTolerance"] = this.plusTolerance;
54365
- data["minusTolerance"] = this.minusTolerance;
54366
- data["upperLimit"] = this.upperLimit;
54367
- data["lowerLimit"] = this.lowerLimit;
54368
- data["comments"] = this.comments;
54369
- data["updatedByUser"] = this.updatedByUser;
54370
- data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : <any>undefined;
54371
- data["createdByUser"] = this.createdByUser;
54372
- data["createdDate"] = this.createdDate ? this.createdDate.toISOString() : <any>undefined;
54373
- data["frequency"] = this.frequency;
54374
- data["frequencyParameter"] = this.frequencyParameter;
54375
- data["includeInCustomerDocumentation"] = this.includeInCustomerDocumentation;
54376
- data["balloonSequence"] = this.balloonSequence;
54377
- data["balloonQuantity"] = this.balloonQuantity;
54378
- data["plusToleranceText"] = this.plusToleranceText;
54379
- data["minusToleranceText"] = this.minusToleranceText;
54380
- data["coatingThickness"] = this.coatingThickness;
54381
- data["canCopy"] = this.canCopy;
54382
- data["valueType"] = this.valueType;
54383
- data["inspectionMethod"] = this.inspectionMethod;
54384
- data["process"] = this.process;
54385
- data["classification"] = this.classification;
54386
- data["fitGrade"] = this.fitGrade;
54387
- data["fitType"] = this.fitType;
54388
- data["forReference"] = this.forReference;
54389
- return data;
54390
- }
54391
- }
54392
-
54393
- export interface IMeasurementFormElementImportDto {
54394
- id?: string | null;
54395
- imageUrl?: string | null;
54396
- thumbnailUrl?: string | null;
54397
- balloonId?: string | null;
54398
- section?: string | null;
54399
- pageNumber?: number;
54400
- sheetZone?: string | null;
54401
- places?: number | null;
54402
- nominal?: number | null;
54403
- nominalText?: string | null;
54404
- type?: string | null;
54405
- subType?: string | null;
54406
- unitOfMeasure?: string | null;
54407
- typeCharacter?: string | null;
54408
- plusTolerance?: number | null;
54409
- minusTolerance?: number | null;
54410
- upperLimit?: number | null;
54411
- lowerLimit?: number | null;
54412
- comments?: string | null;
54413
- updatedByUser?: string | null;
54414
- updatedDate?: Date | null;
54415
- createdByUser?: string | null;
54416
- createdDate?: Date;
54417
- frequency?: MeasurementFrequency;
54418
- frequencyParameter?: number | null;
54419
- includeInCustomerDocumentation?: boolean;
54420
- balloonSequence?: number | null;
54421
- balloonQuantity?: number | null;
54422
- plusToleranceText?: string | null;
54423
- minusToleranceText?: string | null;
54424
- coatingThickness?: number | null;
54425
- canCopy?: boolean;
54426
- valueType?: MeasurementFormValueType;
54427
- inspectionMethod?: string | null;
54428
- process?: string | null;
54429
- classification?: string | null;
54430
- fitGrade?: string | null;
54431
- fitType?: number | null;
54432
- forReference?: boolean;
54433
- }
54434
-
54435
54097
  export class PagedResultOfMeasurementFormNeedDto implements IPagedResultOfMeasurementFormNeedDto {
54436
54098
  results!: MeasurementFormNeedDto[];
54437
54099
  continuationToken?: string | null;
@@ -54490,6 +54152,7 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
54490
54152
  customerName?: string | null;
54491
54153
  partNumber?: string | null;
54492
54154
  partRevision?: string | null;
54155
+ partName?: string | null;
54493
54156
  drawing?: string | null;
54494
54157
  drawingRevision?: string | null;
54495
54158
  workorder?: string | null;
@@ -54519,6 +54182,7 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
54519
54182
  this.customerName = _data["customerName"];
54520
54183
  this.partNumber = _data["partNumber"];
54521
54184
  this.partRevision = _data["partRevision"];
54185
+ this.partName = _data["partName"];
54522
54186
  this.drawing = _data["drawing"];
54523
54187
  this.drawingRevision = _data["drawingRevision"];
54524
54188
  this.workorder = _data["workorder"];
@@ -54548,6 +54212,7 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
54548
54212
  data["customerName"] = this.customerName;
54549
54213
  data["partNumber"] = this.partNumber;
54550
54214
  data["partRevision"] = this.partRevision;
54215
+ data["partName"] = this.partName;
54551
54216
  data["drawing"] = this.drawing;
54552
54217
  data["drawingRevision"] = this.drawingRevision;
54553
54218
  data["workorder"] = this.workorder;
@@ -54570,6 +54235,7 @@ export interface IMeasurementFormNeedDto {
54570
54235
  customerName?: string | null;
54571
54236
  partNumber?: string | null;
54572
54237
  partRevision?: string | null;
54238
+ partName?: string | null;
54573
54239
  drawing?: string | null;
54574
54240
  drawingRevision?: string | null;
54575
54241
  workorder?: string | null;
@@ -54587,6 +54253,7 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
54587
54253
  pageSize?: number | null;
54588
54254
  customerId?: string | null;
54589
54255
  customerName?: string | null;
54256
+ partName?: string | null;
54590
54257
  partNumber?: string | null;
54591
54258
  partRevision?: string | null;
54592
54259
  drawing?: string | null;
@@ -54609,6 +54276,7 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
54609
54276
  this.pageSize = _data["pageSize"];
54610
54277
  this.customerId = _data["customerId"];
54611
54278
  this.customerName = _data["customerName"];
54279
+ this.partName = _data["partName"];
54612
54280
  this.partNumber = _data["partNumber"];
54613
54281
  this.partRevision = _data["partRevision"];
54614
54282
  this.drawing = _data["drawing"];
@@ -54631,6 +54299,7 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
54631
54299
  data["pageSize"] = this.pageSize;
54632
54300
  data["customerId"] = this.customerId;
54633
54301
  data["customerName"] = this.customerName;
54302
+ data["partName"] = this.partName;
54634
54303
  data["partNumber"] = this.partNumber;
54635
54304
  data["partRevision"] = this.partRevision;
54636
54305
  data["drawing"] = this.drawing;
@@ -54646,6 +54315,7 @@ export interface IListMeasurementFormNeedsRequest {
54646
54315
  pageSize?: number | null;
54647
54316
  customerId?: string | null;
54648
54317
  customerName?: string | null;
54318
+ partName?: string | null;
54649
54319
  partNumber?: string | null;
54650
54320
  partRevision?: string | null;
54651
54321
  drawing?: string | null;
@@ -54847,6 +54517,7 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
54847
54517
  customerId?: string | null;
54848
54518
  customerName?: string | null;
54849
54519
  partNumber?: string | null;
54520
+ partName?: string | null;
54850
54521
  partRevision?: string | null;
54851
54522
  drawing?: string | null;
54852
54523
  drawingRevision?: string | null;
@@ -54868,6 +54539,7 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
54868
54539
  this.customerId = _data["customerId"];
54869
54540
  this.customerName = _data["customerName"];
54870
54541
  this.partNumber = _data["partNumber"];
54542
+ this.partName = _data["partName"];
54871
54543
  this.partRevision = _data["partRevision"];
54872
54544
  this.drawing = _data["drawing"];
54873
54545
  this.drawingRevision = _data["drawingRevision"];
@@ -54889,6 +54561,7 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
54889
54561
  data["customerId"] = this.customerId;
54890
54562
  data["customerName"] = this.customerName;
54891
54563
  data["partNumber"] = this.partNumber;
54564
+ data["partName"] = this.partName;
54892
54565
  data["partRevision"] = this.partRevision;
54893
54566
  data["drawing"] = this.drawing;
54894
54567
  data["drawingRevision"] = this.drawingRevision;
@@ -54903,6 +54576,7 @@ export interface IListMeasurementFormSchemasNotNeededRequest {
54903
54576
  customerId?: string | null;
54904
54577
  customerName?: string | null;
54905
54578
  partNumber?: string | null;
54579
+ partName?: string | null;
54906
54580
  partRevision?: string | null;
54907
54581
  drawing?: string | null;
54908
54582
  drawingRevision?: string | null;
@@ -55088,6 +54762,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
55088
54762
  latestSchemaDefinitionId?: string | null;
55089
54763
  partNumber?: string | null;
55090
54764
  partRevision?: string | null;
54765
+ partName?: string | null;
55091
54766
  drawing?: string | null;
55092
54767
  drawingRevision?: string | null;
55093
54768
 
@@ -55116,6 +54791,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
55116
54791
  this.latestSchemaDefinitionId = _data["latestSchemaDefinitionId"];
55117
54792
  this.partNumber = _data["partNumber"];
55118
54793
  this.partRevision = _data["partRevision"];
54794
+ this.partName = _data["partName"];
55119
54795
  this.drawing = _data["drawing"];
55120
54796
  this.drawingRevision = _data["drawingRevision"];
55121
54797
  }
@@ -55144,6 +54820,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
55144
54820
  data["latestSchemaDefinitionId"] = this.latestSchemaDefinitionId;
55145
54821
  data["partNumber"] = this.partNumber;
55146
54822
  data["partRevision"] = this.partRevision;
54823
+ data["partName"] = this.partName;
55147
54824
  data["drawing"] = this.drawing;
55148
54825
  data["drawingRevision"] = this.drawingRevision;
55149
54826
  return data;
@@ -55165,6 +54842,7 @@ export interface ISchemaFeedbackDto {
55165
54842
  latestSchemaDefinitionId?: string | null;
55166
54843
  partNumber?: string | null;
55167
54844
  partRevision?: string | null;
54845
+ partName?: string | null;
55168
54846
  drawing?: string | null;
55169
54847
  drawingRevision?: string | null;
55170
54848
  }
@@ -55369,6 +55047,7 @@ export interface IPagedResultOfMeasurementFormInstanceOverviewDto {
55369
55047
  export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInstanceOverviewDto {
55370
55048
  id!: string;
55371
55049
  readonly!: boolean;
55050
+ partName?: string | null;
55372
55051
  partNumber?: string | null;
55373
55052
  partRevision?: string | null;
55374
55053
  drawing?: string | null;
@@ -55399,6 +55078,7 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
55399
55078
  if (_data) {
55400
55079
  this.id = _data["id"];
55401
55080
  this.readonly = _data["readonly"];
55081
+ this.partName = _data["partName"];
55402
55082
  this.partNumber = _data["partNumber"];
55403
55083
  this.partRevision = _data["partRevision"];
55404
55084
  this.drawing = _data["drawing"];
@@ -55429,6 +55109,7 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
55429
55109
  data = typeof data === 'object' ? data : {};
55430
55110
  data["id"] = this.id;
55431
55111
  data["readonly"] = this.readonly;
55112
+ data["partName"] = this.partName;
55432
55113
  data["partNumber"] = this.partNumber;
55433
55114
  data["partRevision"] = this.partRevision;
55434
55115
  data["drawing"] = this.drawing;
@@ -55452,6 +55133,7 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
55452
55133
  export interface IMeasurementFormInstanceOverviewDto {
55453
55134
  id: string;
55454
55135
  readonly: boolean;
55136
+ partName?: string | null;
55455
55137
  partNumber?: string | null;
55456
55138
  partRevision?: string | null;
55457
55139
  drawing?: string | null;
@@ -55719,6 +55401,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55719
55401
  id!: string;
55720
55402
  readonly!: boolean;
55721
55403
  partNumber?: string | null;
55404
+ partName?: string | null;
55722
55405
  partRevision?: string | null;
55723
55406
  drawing?: string | null;
55724
55407
  drawingRevision?: string | null;
@@ -55728,7 +55411,8 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55728
55411
  status!: MeasurementFormInstanceStatus;
55729
55412
  statusChangedDate?: Date | null;
55730
55413
  schemas!: MeasurementFormWorkorderSchemaDto[];
55731
- sequences!: MeasurementFormWorkorderSequenceDto[];
55414
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
55415
+ serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
55732
55416
  suppliers!: MeasurementFormWorkorderSupplierDto[];
55733
55417
  progress!: MeasurementFormProgressDto;
55734
55418
  approvedReportUrl?: string | null;
@@ -55743,7 +55427,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55743
55427
  }
55744
55428
  if (!data) {
55745
55429
  this.schemas = [];
55746
- this.sequences = [];
55430
+ this.serialNumbers = [];
55747
55431
  this.suppliers = [];
55748
55432
  this.progress = new MeasurementFormProgressDto();
55749
55433
  }
@@ -55754,6 +55438,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55754
55438
  this.id = _data["id"];
55755
55439
  this.readonly = _data["readonly"];
55756
55440
  this.partNumber = _data["partNumber"];
55441
+ this.partName = _data["partName"];
55757
55442
  this.partRevision = _data["partRevision"];
55758
55443
  this.drawing = _data["drawing"];
55759
55444
  this.drawingRevision = _data["drawingRevision"];
@@ -55772,6 +55457,11 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55772
55457
  for (let item of _data["sequences"])
55773
55458
  this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
55774
55459
  }
55460
+ if (Array.isArray(_data["serialNumbers"])) {
55461
+ this.serialNumbers = [] as any;
55462
+ for (let item of _data["serialNumbers"])
55463
+ this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
55464
+ }
55775
55465
  if (Array.isArray(_data["suppliers"])) {
55776
55466
  this.suppliers = [] as any;
55777
55467
  for (let item of _data["suppliers"])
@@ -55795,6 +55485,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55795
55485
  data["id"] = this.id;
55796
55486
  data["readonly"] = this.readonly;
55797
55487
  data["partNumber"] = this.partNumber;
55488
+ data["partName"] = this.partName;
55798
55489
  data["partRevision"] = this.partRevision;
55799
55490
  data["drawing"] = this.drawing;
55800
55491
  data["drawingRevision"] = this.drawingRevision;
@@ -55813,6 +55504,11 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55813
55504
  for (let item of this.sequences)
55814
55505
  data["sequences"].push(item.toJSON());
55815
55506
  }
55507
+ if (Array.isArray(this.serialNumbers)) {
55508
+ data["serialNumbers"] = [];
55509
+ for (let item of this.serialNumbers)
55510
+ data["serialNumbers"].push(item.toJSON());
55511
+ }
55816
55512
  if (Array.isArray(this.suppliers)) {
55817
55513
  data["suppliers"] = [];
55818
55514
  for (let item of this.suppliers)
@@ -55829,6 +55525,7 @@ export interface IMeasurementFormInstanceDto {
55829
55525
  id: string;
55830
55526
  readonly: boolean;
55831
55527
  partNumber?: string | null;
55528
+ partName?: string | null;
55832
55529
  partRevision?: string | null;
55833
55530
  drawing?: string | null;
55834
55531
  drawingRevision?: string | null;
@@ -55838,7 +55535,8 @@ export interface IMeasurementFormInstanceDto {
55838
55535
  status: MeasurementFormInstanceStatus;
55839
55536
  statusChangedDate?: Date | null;
55840
55537
  schemas: MeasurementFormWorkorderSchemaDto[];
55841
- sequences: MeasurementFormWorkorderSequenceDto[];
55538
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
55539
+ serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
55842
55540
  suppliers: MeasurementFormWorkorderSupplierDto[];
55843
55541
  progress: MeasurementFormProgressDto;
55844
55542
  approvedReportUrl?: string | null;
@@ -55972,6 +55670,50 @@ export interface IMeasurementFormWorkorderSequenceDto {
55972
55670
  serialNumber?: string | null;
55973
55671
  }
55974
55672
 
55673
+ export class MeasurementFormWorkorderSerialNumberDto implements IMeasurementFormWorkorderSerialNumberDto {
55674
+ lot?: string | null;
55675
+ serialNumber!: string;
55676
+ customerSerialNumber?: string | null;
55677
+
55678
+ constructor(data?: IMeasurementFormWorkorderSerialNumberDto) {
55679
+ if (data) {
55680
+ for (var property in data) {
55681
+ if (data.hasOwnProperty(property))
55682
+ (<any>this)[property] = (<any>data)[property];
55683
+ }
55684
+ }
55685
+ }
55686
+
55687
+ init(_data?: any) {
55688
+ if (_data) {
55689
+ this.lot = _data["lot"];
55690
+ this.serialNumber = _data["serialNumber"];
55691
+ this.customerSerialNumber = _data["customerSerialNumber"];
55692
+ }
55693
+ }
55694
+
55695
+ static fromJS(data: any): MeasurementFormWorkorderSerialNumberDto {
55696
+ data = typeof data === 'object' ? data : {};
55697
+ let result = new MeasurementFormWorkorderSerialNumberDto();
55698
+ result.init(data);
55699
+ return result;
55700
+ }
55701
+
55702
+ toJSON(data?: any) {
55703
+ data = typeof data === 'object' ? data : {};
55704
+ data["lot"] = this.lot;
55705
+ data["serialNumber"] = this.serialNumber;
55706
+ data["customerSerialNumber"] = this.customerSerialNumber;
55707
+ return data;
55708
+ }
55709
+ }
55710
+
55711
+ export interface IMeasurementFormWorkorderSerialNumberDto {
55712
+ lot?: string | null;
55713
+ serialNumber: string;
55714
+ customerSerialNumber?: string | null;
55715
+ }
55716
+
55975
55717
  export class MeasurementFormWorkorderSupplierDto implements IMeasurementFormWorkorderSupplierDto {
55976
55718
  supplierId!: string;
55977
55719
  supplierName?: string | null;
@@ -56158,6 +55900,7 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
56158
55900
  customerName?: string | null;
56159
55901
  purchaseOrder?: string | null;
56160
55902
  sequences!: CreateMeasurementFormInstanceRequestSequence[];
55903
+ serialNumbers!: CreateMeasurementFormInstanceRequestSerialNumber[];
56161
55904
 
56162
55905
  constructor(data?: ICreateMeasurementFormInstanceRequest) {
56163
55906
  if (data) {
@@ -56168,6 +55911,7 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
56168
55911
  }
56169
55912
  if (!data) {
56170
55913
  this.sequences = [];
55914
+ this.serialNumbers = [];
56171
55915
  }
56172
55916
  }
56173
55917
 
@@ -56182,6 +55926,11 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
56182
55926
  for (let item of _data["sequences"])
56183
55927
  this.sequences!.push(CreateMeasurementFormInstanceRequestSequence.fromJS(item));
56184
55928
  }
55929
+ if (Array.isArray(_data["serialNumbers"])) {
55930
+ this.serialNumbers = [] as any;
55931
+ for (let item of _data["serialNumbers"])
55932
+ this.serialNumbers!.push(CreateMeasurementFormInstanceRequestSerialNumber.fromJS(item));
55933
+ }
56185
55934
  }
56186
55935
  }
56187
55936
 
@@ -56203,6 +55952,11 @@ export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementF
56203
55952
  for (let item of this.sequences)
56204
55953
  data["sequences"].push(item.toJSON());
56205
55954
  }
55955
+ if (Array.isArray(this.serialNumbers)) {
55956
+ data["serialNumbers"] = [];
55957
+ for (let item of this.serialNumbers)
55958
+ data["serialNumbers"].push(item.toJSON());
55959
+ }
56206
55960
  return data;
56207
55961
  }
56208
55962
  }
@@ -56213,6 +55967,7 @@ export interface ICreateMeasurementFormInstanceRequest {
56213
55967
  customerName?: string | null;
56214
55968
  purchaseOrder?: string | null;
56215
55969
  sequences: CreateMeasurementFormInstanceRequestSequence[];
55970
+ serialNumbers: CreateMeasurementFormInstanceRequestSerialNumber[];
56216
55971
  }
56217
55972
 
56218
55973
  export class CreateMeasurementFormInstanceRequestSequence implements ICreateMeasurementFormInstanceRequestSequence {
@@ -56255,8 +56010,49 @@ export interface ICreateMeasurementFormInstanceRequestSequence {
56255
56010
  serialNumber?: string | null;
56256
56011
  }
56257
56012
 
56013
+ export class CreateMeasurementFormInstanceRequestSerialNumber implements ICreateMeasurementFormInstanceRequestSerialNumber {
56014
+ serialNumber!: string;
56015
+ customerSerialNumber?: string | null;
56016
+
56017
+ constructor(data?: ICreateMeasurementFormInstanceRequestSerialNumber) {
56018
+ if (data) {
56019
+ for (var property in data) {
56020
+ if (data.hasOwnProperty(property))
56021
+ (<any>this)[property] = (<any>data)[property];
56022
+ }
56023
+ }
56024
+ }
56025
+
56026
+ init(_data?: any) {
56027
+ if (_data) {
56028
+ this.serialNumber = _data["serialNumber"];
56029
+ this.customerSerialNumber = _data["customerSerialNumber"];
56030
+ }
56031
+ }
56032
+
56033
+ static fromJS(data: any): CreateMeasurementFormInstanceRequestSerialNumber {
56034
+ data = typeof data === 'object' ? data : {};
56035
+ let result = new CreateMeasurementFormInstanceRequestSerialNumber();
56036
+ result.init(data);
56037
+ return result;
56038
+ }
56039
+
56040
+ toJSON(data?: any) {
56041
+ data = typeof data === 'object' ? data : {};
56042
+ data["serialNumber"] = this.serialNumber;
56043
+ data["customerSerialNumber"] = this.customerSerialNumber;
56044
+ return data;
56045
+ }
56046
+ }
56047
+
56048
+ export interface ICreateMeasurementFormInstanceRequestSerialNumber {
56049
+ serialNumber: string;
56050
+ customerSerialNumber?: string | null;
56051
+ }
56052
+
56258
56053
  export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
56259
- sequences!: MeasurementFormWorkorderSequenceDto[];
56054
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
56055
+ serialNumbers!: MeasurementFormWorkorderSerialNumberDto[];
56260
56056
  suppliers!: MeasurementFormWorkorderSupplierDto[];
56261
56057
 
56262
56058
  constructor(data?: IUpdateMeasurementFormInstanceRequest) {
@@ -56267,7 +56063,7 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56267
56063
  }
56268
56064
  }
56269
56065
  if (!data) {
56270
- this.sequences = [];
56066
+ this.serialNumbers = [];
56271
56067
  this.suppliers = [];
56272
56068
  }
56273
56069
  }
@@ -56279,6 +56075,11 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56279
56075
  for (let item of _data["sequences"])
56280
56076
  this.sequences!.push(MeasurementFormWorkorderSequenceDto.fromJS(item));
56281
56077
  }
56078
+ if (Array.isArray(_data["serialNumbers"])) {
56079
+ this.serialNumbers = [] as any;
56080
+ for (let item of _data["serialNumbers"])
56081
+ this.serialNumbers!.push(MeasurementFormWorkorderSerialNumberDto.fromJS(item));
56082
+ }
56282
56083
  if (Array.isArray(_data["suppliers"])) {
56283
56084
  this.suppliers = [] as any;
56284
56085
  for (let item of _data["suppliers"])
@@ -56301,6 +56102,11 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56301
56102
  for (let item of this.sequences)
56302
56103
  data["sequences"].push(item.toJSON());
56303
56104
  }
56105
+ if (Array.isArray(this.serialNumbers)) {
56106
+ data["serialNumbers"] = [];
56107
+ for (let item of this.serialNumbers)
56108
+ data["serialNumbers"].push(item.toJSON());
56109
+ }
56304
56110
  if (Array.isArray(this.suppliers)) {
56305
56111
  data["suppliers"] = [];
56306
56112
  for (let item of this.suppliers)
@@ -56311,7 +56117,8 @@ export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementF
56311
56117
  }
56312
56118
 
56313
56119
  export interface IUpdateMeasurementFormInstanceRequest {
56314
- sequences: MeasurementFormWorkorderSequenceDto[];
56120
+ sequences?: MeasurementFormWorkorderSequenceDto[] | null;
56121
+ serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
56315
56122
  suppliers: MeasurementFormWorkorderSupplierDto[];
56316
56123
  }
56317
56124
 
@@ -56580,7 +56387,8 @@ export interface IMeasurementFormInstanceElementDto {
56580
56387
  export class MeasurementFormElementValueDto implements IMeasurementFormElementValueDto {
56581
56388
  bonus?: string | null;
56582
56389
  completed!: boolean;
56583
- sequence!: string;
56390
+ sequence?: string | null;
56391
+ serialNumber!: string;
56584
56392
  value?: string | null;
56585
56393
  updatedByUser!: string;
56586
56394
  updatedDate!: Date;
@@ -56606,6 +56414,7 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
56606
56414
  this.bonus = _data["bonus"];
56607
56415
  this.completed = _data["completed"];
56608
56416
  this.sequence = _data["sequence"];
56417
+ this.serialNumber = _data["serialNumber"];
56609
56418
  this.value = _data["value"];
56610
56419
  this.updatedByUser = _data["updatedByUser"];
56611
56420
  this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : <any>undefined;
@@ -56632,6 +56441,7 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
56632
56441
  data["bonus"] = this.bonus;
56633
56442
  data["completed"] = this.completed;
56634
56443
  data["sequence"] = this.sequence;
56444
+ data["serialNumber"] = this.serialNumber;
56635
56445
  data["value"] = this.value;
56636
56446
  data["updatedByUser"] = this.updatedByUser;
56637
56447
  data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : <any>undefined;
@@ -56650,7 +56460,8 @@ export class MeasurementFormElementValueDto implements IMeasurementFormElementVa
56650
56460
  export interface IMeasurementFormElementValueDto {
56651
56461
  bonus?: string | null;
56652
56462
  completed: boolean;
56653
- sequence: string;
56463
+ sequence?: string | null;
56464
+ serialNumber: string;
56654
56465
  value?: string | null;
56655
56466
  updatedByUser: string;
56656
56467
  updatedDate: Date;
@@ -56759,7 +56570,8 @@ export class MeasurementFormElementValueAuditDto implements IMeasurementFormElem
56759
56570
  schemaId!: string;
56760
56571
  value?: string | null;
56761
56572
  bonus?: number | null;
56762
- sequence!: string;
56573
+ sequence?: string | null;
56574
+ serialNumber!: string;
56763
56575
  elementId!: string;
56764
56576
  updatedByUser!: string;
56765
56577
  updatedDate!: Date;
@@ -56786,6 +56598,7 @@ export class MeasurementFormElementValueAuditDto implements IMeasurementFormElem
56786
56598
  this.value = _data["value"];
56787
56599
  this.bonus = _data["bonus"];
56788
56600
  this.sequence = _data["sequence"];
56601
+ this.serialNumber = _data["serialNumber"];
56789
56602
  this.elementId = _data["elementId"];
56790
56603
  this.updatedByUser = _data["updatedByUser"];
56791
56604
  this.updatedDate = _data["updatedDate"] ? new Date(_data["updatedDate"].toString()) : <any>undefined;
@@ -56813,6 +56626,7 @@ export class MeasurementFormElementValueAuditDto implements IMeasurementFormElem
56813
56626
  data["value"] = this.value;
56814
56627
  data["bonus"] = this.bonus;
56815
56628
  data["sequence"] = this.sequence;
56629
+ data["serialNumber"] = this.serialNumber;
56816
56630
  data["elementId"] = this.elementId;
56817
56631
  data["updatedByUser"] = this.updatedByUser;
56818
56632
  data["updatedDate"] = this.updatedDate ? this.updatedDate.toISOString() : <any>undefined;
@@ -56832,7 +56646,8 @@ export interface IMeasurementFormElementValueAuditDto {
56832
56646
  schemaId: string;
56833
56647
  value?: string | null;
56834
56648
  bonus?: number | null;
56835
- sequence: string;
56649
+ sequence?: string | null;
56650
+ serialNumber: string;
56836
56651
  elementId: string;
56837
56652
  updatedByUser: string;
56838
56653
  updatedDate: Date;
@@ -56947,7 +56762,8 @@ export class SaveValueRequest implements ISaveValueRequest {
56947
56762
  resourceName?: string | null;
56948
56763
  schemaId!: string;
56949
56764
  elementId!: string;
56950
- sequence!: string;
56765
+ sequence?: string | null;
56766
+ serialNumber!: string;
56951
56767
  value?: string | null;
56952
56768
  bonus?: string | null;
56953
56769
 
@@ -56967,6 +56783,7 @@ export class SaveValueRequest implements ISaveValueRequest {
56967
56783
  this.schemaId = _data["schemaId"];
56968
56784
  this.elementId = _data["elementId"];
56969
56785
  this.sequence = _data["sequence"];
56786
+ this.serialNumber = _data["serialNumber"];
56970
56787
  this.value = _data["value"];
56971
56788
  this.bonus = _data["bonus"];
56972
56789
  }
@@ -56986,6 +56803,7 @@ export class SaveValueRequest implements ISaveValueRequest {
56986
56803
  data["schemaId"] = this.schemaId;
56987
56804
  data["elementId"] = this.elementId;
56988
56805
  data["sequence"] = this.sequence;
56806
+ data["serialNumber"] = this.serialNumber;
56989
56807
  data["value"] = this.value;
56990
56808
  data["bonus"] = this.bonus;
56991
56809
  return data;
@@ -56997,7 +56815,8 @@ export interface ISaveValueRequest {
56997
56815
  resourceName?: string | null;
56998
56816
  schemaId: string;
56999
56817
  elementId: string;
57000
- sequence: string;
56818
+ sequence?: string | null;
56819
+ serialNumber: string;
57001
56820
  value?: string | null;
57002
56821
  bonus?: string | null;
57003
56822
  }
@@ -57005,7 +56824,8 @@ export interface ISaveValueRequest {
57005
56824
  export class SaveToolRequest implements ISaveToolRequest {
57006
56825
  schemaId!: string;
57007
56826
  elementId!: string;
57008
- sequence!: string;
56827
+ sequence?: string | null;
56828
+ serialNumber!: string;
57009
56829
  tools?: string[] | null;
57010
56830
  force?: boolean;
57011
56831
 
@@ -57023,6 +56843,7 @@ export class SaveToolRequest implements ISaveToolRequest {
57023
56843
  this.schemaId = _data["schemaId"];
57024
56844
  this.elementId = _data["elementId"];
57025
56845
  this.sequence = _data["sequence"];
56846
+ this.serialNumber = _data["serialNumber"];
57026
56847
  if (Array.isArray(_data["tools"])) {
57027
56848
  this.tools = [] as any;
57028
56849
  for (let item of _data["tools"])
@@ -57044,6 +56865,7 @@ export class SaveToolRequest implements ISaveToolRequest {
57044
56865
  data["schemaId"] = this.schemaId;
57045
56866
  data["elementId"] = this.elementId;
57046
56867
  data["sequence"] = this.sequence;
56868
+ data["serialNumber"] = this.serialNumber;
57047
56869
  if (Array.isArray(this.tools)) {
57048
56870
  data["tools"] = [];
57049
56871
  for (let item of this.tools)
@@ -57057,7 +56879,8 @@ export class SaveToolRequest implements ISaveToolRequest {
57057
56879
  export interface ISaveToolRequest {
57058
56880
  schemaId: string;
57059
56881
  elementId: string;
57060
- sequence: string;
56882
+ sequence?: string | null;
56883
+ serialNumber: string;
57061
56884
  tools?: string[] | null;
57062
56885
  force?: boolean;
57063
56886
  }
@@ -57065,7 +56888,8 @@ export interface ISaveToolRequest {
57065
56888
  export class SaveCommentRequest implements ISaveCommentRequest {
57066
56889
  schemaId!: string;
57067
56890
  elementId!: string;
57068
- sequence!: string;
56891
+ sequence?: string | null;
56892
+ serialNumber!: string;
57069
56893
  comment?: string | null;
57070
56894
 
57071
56895
  constructor(data?: ISaveCommentRequest) {
@@ -57082,6 +56906,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
57082
56906
  this.schemaId = _data["schemaId"];
57083
56907
  this.elementId = _data["elementId"];
57084
56908
  this.sequence = _data["sequence"];
56909
+ this.serialNumber = _data["serialNumber"];
57085
56910
  this.comment = _data["comment"];
57086
56911
  }
57087
56912
  }
@@ -57098,6 +56923,7 @@ export class SaveCommentRequest implements ISaveCommentRequest {
57098
56923
  data["schemaId"] = this.schemaId;
57099
56924
  data["elementId"] = this.elementId;
57100
56925
  data["sequence"] = this.sequence;
56926
+ data["serialNumber"] = this.serialNumber;
57101
56927
  data["comment"] = this.comment;
57102
56928
  return data;
57103
56929
  }
@@ -57106,7 +56932,8 @@ export class SaveCommentRequest implements ISaveCommentRequest {
57106
56932
  export interface ISaveCommentRequest {
57107
56933
  schemaId: string;
57108
56934
  elementId: string;
57109
- sequence: string;
56935
+ sequence?: string | null;
56936
+ serialNumber: string;
57110
56937
  comment?: string | null;
57111
56938
  }
57112
56939
 
@@ -57494,6 +57321,7 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57494
57321
  includeAllSchemasAndElements?: boolean | null;
57495
57322
  createBlankReport?: boolean | null;
57496
57323
  sequences?: string[] | null;
57324
+ serialNumbers?: string[] | null;
57497
57325
  customerPO?: string | null;
57498
57326
  workOrder?: string | null;
57499
57327
  comment?: string | null;
@@ -57518,6 +57346,11 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57518
57346
  for (let item of _data["sequences"])
57519
57347
  this.sequences!.push(item);
57520
57348
  }
57349
+ if (Array.isArray(_data["serialNumbers"])) {
57350
+ this.serialNumbers = [] as any;
57351
+ for (let item of _data["serialNumbers"])
57352
+ this.serialNumbers!.push(item);
57353
+ }
57521
57354
  this.customerPO = _data["customerPO"];
57522
57355
  this.workOrder = _data["workOrder"];
57523
57356
  this.comment = _data["comment"];
@@ -57542,6 +57375,11 @@ export class ExportDimensionReportRequest implements IExportDimensionReportReque
57542
57375
  for (let item of this.sequences)
57543
57376
  data["sequences"].push(item);
57544
57377
  }
57378
+ if (Array.isArray(this.serialNumbers)) {
57379
+ data["serialNumbers"] = [];
57380
+ for (let item of this.serialNumbers)
57381
+ data["serialNumbers"].push(item);
57382
+ }
57545
57383
  data["customerPO"] = this.customerPO;
57546
57384
  data["workOrder"] = this.workOrder;
57547
57385
  data["comment"] = this.comment;
@@ -57555,6 +57393,7 @@ export interface IExportDimensionReportRequest {
57555
57393
  includeAllSchemasAndElements?: boolean | null;
57556
57394
  createBlankReport?: boolean | null;
57557
57395
  sequences?: string[] | null;
57396
+ serialNumbers?: string[] | null;
57558
57397
  customerPO?: string | null;
57559
57398
  workOrder?: string | null;
57560
57399
  comment?: string | null;
@@ -57648,255 +57487,6 @@ export interface ISchemaInstanceElementDto {
57648
57487
  disabled: boolean;
57649
57488
  }
57650
57489
 
57651
- export class ImportMeasurementFormInstanceRequest implements IImportMeasurementFormInstanceRequest {
57652
- partInfo!: ImportMeasurementFormPartDto;
57653
- customerId?: string | null;
57654
- customerGroupId?: string | null;
57655
- customerName?: string | null;
57656
- externalOrderNumber?: string | null;
57657
- quantity!: number;
57658
- sequences!: WorkorderImportTraceItemDto[];
57659
- status!: MeasurementFormInstanceStatus;
57660
- statusChangedBy?: string | null;
57661
- statusChangedDate?: Date | null;
57662
- created!: Date;
57663
- createdBy?: string | null;
57664
- updatedBy?: string | null;
57665
- schemas!: ImportMeasurementSchemaInstanceDto[];
57666
-
57667
- constructor(data?: IImportMeasurementFormInstanceRequest) {
57668
- if (data) {
57669
- for (var property in data) {
57670
- if (data.hasOwnProperty(property))
57671
- (<any>this)[property] = (<any>data)[property];
57672
- }
57673
- }
57674
- if (!data) {
57675
- this.partInfo = new ImportMeasurementFormPartDto();
57676
- this.sequences = [];
57677
- this.schemas = [];
57678
- }
57679
- }
57680
-
57681
- init(_data?: any) {
57682
- if (_data) {
57683
- this.partInfo = _data["partInfo"] ? ImportMeasurementFormPartDto.fromJS(_data["partInfo"]) : new ImportMeasurementFormPartDto();
57684
- this.customerId = _data["customerId"];
57685
- this.customerGroupId = _data["customerGroupId"];
57686
- this.customerName = _data["customerName"];
57687
- this.externalOrderNumber = _data["externalOrderNumber"];
57688
- this.quantity = _data["quantity"];
57689
- if (Array.isArray(_data["sequences"])) {
57690
- this.sequences = [] as any;
57691
- for (let item of _data["sequences"])
57692
- this.sequences!.push(WorkorderImportTraceItemDto.fromJS(item));
57693
- }
57694
- this.status = _data["status"];
57695
- this.statusChangedBy = _data["statusChangedBy"];
57696
- this.statusChangedDate = _data["statusChangedDate"] ? new Date(_data["statusChangedDate"].toString()) : <any>undefined;
57697
- this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
57698
- this.createdBy = _data["createdBy"];
57699
- this.updatedBy = _data["updatedBy"];
57700
- if (Array.isArray(_data["schemas"])) {
57701
- this.schemas = [] as any;
57702
- for (let item of _data["schemas"])
57703
- this.schemas!.push(ImportMeasurementSchemaInstanceDto.fromJS(item));
57704
- }
57705
- }
57706
- }
57707
-
57708
- static fromJS(data: any): ImportMeasurementFormInstanceRequest {
57709
- data = typeof data === 'object' ? data : {};
57710
- let result = new ImportMeasurementFormInstanceRequest();
57711
- result.init(data);
57712
- return result;
57713
- }
57714
-
57715
- toJSON(data?: any) {
57716
- data = typeof data === 'object' ? data : {};
57717
- data["partInfo"] = this.partInfo ? this.partInfo.toJSON() : <any>undefined;
57718
- data["customerId"] = this.customerId;
57719
- data["customerGroupId"] = this.customerGroupId;
57720
- data["customerName"] = this.customerName;
57721
- data["externalOrderNumber"] = this.externalOrderNumber;
57722
- data["quantity"] = this.quantity;
57723
- if (Array.isArray(this.sequences)) {
57724
- data["sequences"] = [];
57725
- for (let item of this.sequences)
57726
- data["sequences"].push(item.toJSON());
57727
- }
57728
- data["status"] = this.status;
57729
- data["statusChangedBy"] = this.statusChangedBy;
57730
- data["statusChangedDate"] = this.statusChangedDate ? this.statusChangedDate.toISOString() : <any>undefined;
57731
- data["created"] = this.created ? this.created.toISOString() : <any>undefined;
57732
- data["createdBy"] = this.createdBy;
57733
- data["updatedBy"] = this.updatedBy;
57734
- if (Array.isArray(this.schemas)) {
57735
- data["schemas"] = [];
57736
- for (let item of this.schemas)
57737
- data["schemas"].push(item.toJSON());
57738
- }
57739
- return data;
57740
- }
57741
- }
57742
-
57743
- export interface IImportMeasurementFormInstanceRequest {
57744
- partInfo: ImportMeasurementFormPartDto;
57745
- customerId?: string | null;
57746
- customerGroupId?: string | null;
57747
- customerName?: string | null;
57748
- externalOrderNumber?: string | null;
57749
- quantity: number;
57750
- sequences: WorkorderImportTraceItemDto[];
57751
- status: MeasurementFormInstanceStatus;
57752
- statusChangedBy?: string | null;
57753
- statusChangedDate?: Date | null;
57754
- created: Date;
57755
- createdBy?: string | null;
57756
- updatedBy?: string | null;
57757
- schemas: ImportMeasurementSchemaInstanceDto[];
57758
- }
57759
-
57760
- export class ImportMeasurementFormPartDto implements IImportMeasurementFormPartDto {
57761
- partNumber?: string | null;
57762
- partName?: string | null;
57763
- partRevision?: string | null;
57764
- drawing!: string;
57765
- drawingRevision?: string | null;
57766
-
57767
- constructor(data?: IImportMeasurementFormPartDto) {
57768
- if (data) {
57769
- for (var property in data) {
57770
- if (data.hasOwnProperty(property))
57771
- (<any>this)[property] = (<any>data)[property];
57772
- }
57773
- }
57774
- }
57775
-
57776
- init(_data?: any) {
57777
- if (_data) {
57778
- this.partNumber = _data["partNumber"];
57779
- this.partName = _data["partName"];
57780
- this.partRevision = _data["partRevision"];
57781
- this.drawing = _data["drawing"];
57782
- this.drawingRevision = _data["drawingRevision"];
57783
- }
57784
- }
57785
-
57786
- static fromJS(data: any): ImportMeasurementFormPartDto {
57787
- data = typeof data === 'object' ? data : {};
57788
- let result = new ImportMeasurementFormPartDto();
57789
- result.init(data);
57790
- return result;
57791
- }
57792
-
57793
- toJSON(data?: any) {
57794
- data = typeof data === 'object' ? data : {};
57795
- data["partNumber"] = this.partNumber;
57796
- data["partName"] = this.partName;
57797
- data["partRevision"] = this.partRevision;
57798
- data["drawing"] = this.drawing;
57799
- data["drawingRevision"] = this.drawingRevision;
57800
- return data;
57801
- }
57802
- }
57803
-
57804
- export interface IImportMeasurementFormPartDto {
57805
- partNumber?: string | null;
57806
- partName?: string | null;
57807
- partRevision?: string | null;
57808
- drawing: string;
57809
- drawingRevision?: string | null;
57810
- }
57811
-
57812
- export class WorkorderImportTraceItemDto implements IWorkorderImportTraceItemDto {
57813
- sequence!: string;
57814
- serialNumber?: string | null;
57815
- lot?: string | null;
57816
- active!: boolean;
57817
-
57818
- constructor(data?: IWorkorderImportTraceItemDto) {
57819
- if (data) {
57820
- for (var property in data) {
57821
- if (data.hasOwnProperty(property))
57822
- (<any>this)[property] = (<any>data)[property];
57823
- }
57824
- }
57825
- }
57826
-
57827
- init(_data?: any) {
57828
- if (_data) {
57829
- this.sequence = _data["sequence"];
57830
- this.serialNumber = _data["serialNumber"];
57831
- this.lot = _data["lot"];
57832
- this.active = _data["active"];
57833
- }
57834
- }
57835
-
57836
- static fromJS(data: any): WorkorderImportTraceItemDto {
57837
- data = typeof data === 'object' ? data : {};
57838
- let result = new WorkorderImportTraceItemDto();
57839
- result.init(data);
57840
- return result;
57841
- }
57842
-
57843
- toJSON(data?: any) {
57844
- data = typeof data === 'object' ? data : {};
57845
- data["sequence"] = this.sequence;
57846
- data["serialNumber"] = this.serialNumber;
57847
- data["lot"] = this.lot;
57848
- data["active"] = this.active;
57849
- return data;
57850
- }
57851
- }
57852
-
57853
- export interface IWorkorderImportTraceItemDto {
57854
- sequence: string;
57855
- serialNumber?: string | null;
57856
- lot?: string | null;
57857
- active: boolean;
57858
- }
57859
-
57860
- export class ImportMeasurementSchemaInstanceDto implements IImportMeasurementSchemaInstanceDto {
57861
- id!: string;
57862
- version!: number;
57863
-
57864
- constructor(data?: IImportMeasurementSchemaInstanceDto) {
57865
- if (data) {
57866
- for (var property in data) {
57867
- if (data.hasOwnProperty(property))
57868
- (<any>this)[property] = (<any>data)[property];
57869
- }
57870
- }
57871
- }
57872
-
57873
- init(_data?: any) {
57874
- if (_data) {
57875
- this.id = _data["id"];
57876
- this.version = _data["version"];
57877
- }
57878
- }
57879
-
57880
- static fromJS(data: any): ImportMeasurementSchemaInstanceDto {
57881
- data = typeof data === 'object' ? data : {};
57882
- let result = new ImportMeasurementSchemaInstanceDto();
57883
- result.init(data);
57884
- return result;
57885
- }
57886
-
57887
- toJSON(data?: any) {
57888
- data = typeof data === 'object' ? data : {};
57889
- data["id"] = this.id;
57890
- data["version"] = this.version;
57891
- return data;
57892
- }
57893
- }
57894
-
57895
- export interface IImportMeasurementSchemaInstanceDto {
57896
- id: string;
57897
- version: number;
57898
- }
57899
-
57900
57490
  export class IotTypeSourceDto implements IIotTypeSourceDto {
57901
57491
  id!: string;
57902
57492
  name!: string;
@@ -60081,6 +59671,218 @@ export interface ICreateWorkOrderMapping {
60081
59671
  newWorkOrderId: string;
60082
59672
  }
60083
59673
 
59674
+ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessageDto {
59675
+ id?: string;
59676
+ workorderId?: string;
59677
+ companyId?: string;
59678
+ content?: string;
59679
+ senderUpn?: string;
59680
+ senderName?: string;
59681
+ operationId?: string | null;
59682
+ operationName?: string | null;
59683
+ resourceId?: string | null;
59684
+ created?: Date;
59685
+
59686
+ constructor(data?: IWorkorderDiscussionMessageDto) {
59687
+ if (data) {
59688
+ for (var property in data) {
59689
+ if (data.hasOwnProperty(property))
59690
+ (<any>this)[property] = (<any>data)[property];
59691
+ }
59692
+ }
59693
+ }
59694
+
59695
+ init(_data?: any) {
59696
+ if (_data) {
59697
+ this.id = _data["id"];
59698
+ this.workorderId = _data["workorderId"];
59699
+ this.companyId = _data["companyId"];
59700
+ this.content = _data["content"];
59701
+ this.senderUpn = _data["senderUpn"];
59702
+ this.senderName = _data["senderName"];
59703
+ this.operationId = _data["operationId"];
59704
+ this.operationName = _data["operationName"];
59705
+ this.resourceId = _data["resourceId"];
59706
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
59707
+ }
59708
+ }
59709
+
59710
+ static fromJS(data: any): WorkorderDiscussionMessageDto {
59711
+ data = typeof data === 'object' ? data : {};
59712
+ let result = new WorkorderDiscussionMessageDto();
59713
+ result.init(data);
59714
+ return result;
59715
+ }
59716
+
59717
+ toJSON(data?: any) {
59718
+ data = typeof data === 'object' ? data : {};
59719
+ data["id"] = this.id;
59720
+ data["workorderId"] = this.workorderId;
59721
+ data["companyId"] = this.companyId;
59722
+ data["content"] = this.content;
59723
+ data["senderUpn"] = this.senderUpn;
59724
+ data["senderName"] = this.senderName;
59725
+ data["operationId"] = this.operationId;
59726
+ data["operationName"] = this.operationName;
59727
+ data["resourceId"] = this.resourceId;
59728
+ data["created"] = this.created ? this.created.toISOString() : <any>undefined;
59729
+ return data;
59730
+ }
59731
+ }
59732
+
59733
+ export interface IWorkorderDiscussionMessageDto {
59734
+ id?: string;
59735
+ workorderId?: string;
59736
+ companyId?: string;
59737
+ content?: string;
59738
+ senderUpn?: string;
59739
+ senderName?: string;
59740
+ operationId?: string | null;
59741
+ operationName?: string | null;
59742
+ resourceId?: string | null;
59743
+ created?: Date;
59744
+ }
59745
+
59746
+ export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
59747
+ message!: string;
59748
+ operationId?: string | null;
59749
+ operationName?: string | null;
59750
+ resourceId?: string | null;
59751
+
59752
+ constructor(data?: IAddDiscussionMessageRequest) {
59753
+ if (data) {
59754
+ for (var property in data) {
59755
+ if (data.hasOwnProperty(property))
59756
+ (<any>this)[property] = (<any>data)[property];
59757
+ }
59758
+ }
59759
+ }
59760
+
59761
+ init(_data?: any) {
59762
+ if (_data) {
59763
+ this.message = _data["message"];
59764
+ this.operationId = _data["operationId"];
59765
+ this.operationName = _data["operationName"];
59766
+ this.resourceId = _data["resourceId"];
59767
+ }
59768
+ }
59769
+
59770
+ static fromJS(data: any): AddDiscussionMessageRequest {
59771
+ data = typeof data === 'object' ? data : {};
59772
+ let result = new AddDiscussionMessageRequest();
59773
+ result.init(data);
59774
+ return result;
59775
+ }
59776
+
59777
+ toJSON(data?: any) {
59778
+ data = typeof data === 'object' ? data : {};
59779
+ data["message"] = this.message;
59780
+ data["operationId"] = this.operationId;
59781
+ data["operationName"] = this.operationName;
59782
+ data["resourceId"] = this.resourceId;
59783
+ return data;
59784
+ }
59785
+ }
59786
+
59787
+ export interface IAddDiscussionMessageRequest {
59788
+ message: string;
59789
+ operationId?: string | null;
59790
+ operationName?: string | null;
59791
+ resourceId?: string | null;
59792
+ }
59793
+
59794
+ export class WorkorderDiscussionReadStatusDto implements IWorkorderDiscussionReadStatusDto {
59795
+ workorderId?: string;
59796
+ operationId?: string | null;
59797
+ resourceId?: string | null;
59798
+ userUpn?: string;
59799
+ lastRead?: Date;
59800
+
59801
+ constructor(data?: IWorkorderDiscussionReadStatusDto) {
59802
+ if (data) {
59803
+ for (var property in data) {
59804
+ if (data.hasOwnProperty(property))
59805
+ (<any>this)[property] = (<any>data)[property];
59806
+ }
59807
+ }
59808
+ }
59809
+
59810
+ init(_data?: any) {
59811
+ if (_data) {
59812
+ this.workorderId = _data["workorderId"];
59813
+ this.operationId = _data["operationId"];
59814
+ this.resourceId = _data["resourceId"];
59815
+ this.userUpn = _data["userUpn"];
59816
+ this.lastRead = _data["lastRead"] ? new Date(_data["lastRead"].toString()) : <any>undefined;
59817
+ }
59818
+ }
59819
+
59820
+ static fromJS(data: any): WorkorderDiscussionReadStatusDto {
59821
+ data = typeof data === 'object' ? data : {};
59822
+ let result = new WorkorderDiscussionReadStatusDto();
59823
+ result.init(data);
59824
+ return result;
59825
+ }
59826
+
59827
+ toJSON(data?: any) {
59828
+ data = typeof data === 'object' ? data : {};
59829
+ data["workorderId"] = this.workorderId;
59830
+ data["operationId"] = this.operationId;
59831
+ data["resourceId"] = this.resourceId;
59832
+ data["userUpn"] = this.userUpn;
59833
+ data["lastRead"] = this.lastRead ? this.lastRead.toISOString() : <any>undefined;
59834
+ return data;
59835
+ }
59836
+ }
59837
+
59838
+ export interface IWorkorderDiscussionReadStatusDto {
59839
+ workorderId?: string;
59840
+ operationId?: string | null;
59841
+ resourceId?: string | null;
59842
+ userUpn?: string;
59843
+ lastRead?: Date;
59844
+ }
59845
+
59846
+ export class SetDiscussionLastReadRequest implements ISetDiscussionLastReadRequest {
59847
+ operationId?: string | null;
59848
+ resourceId?: string | null;
59849
+
59850
+ constructor(data?: ISetDiscussionLastReadRequest) {
59851
+ if (data) {
59852
+ for (var property in data) {
59853
+ if (data.hasOwnProperty(property))
59854
+ (<any>this)[property] = (<any>data)[property];
59855
+ }
59856
+ }
59857
+ }
59858
+
59859
+ init(_data?: any) {
59860
+ if (_data) {
59861
+ this.operationId = _data["operationId"];
59862
+ this.resourceId = _data["resourceId"];
59863
+ }
59864
+ }
59865
+
59866
+ static fromJS(data: any): SetDiscussionLastReadRequest {
59867
+ data = typeof data === 'object' ? data : {};
59868
+ let result = new SetDiscussionLastReadRequest();
59869
+ result.init(data);
59870
+ return result;
59871
+ }
59872
+
59873
+ toJSON(data?: any) {
59874
+ data = typeof data === 'object' ? data : {};
59875
+ data["operationId"] = this.operationId;
59876
+ data["resourceId"] = this.resourceId;
59877
+ return data;
59878
+ }
59879
+ }
59880
+
59881
+ export interface ISetDiscussionLastReadRequest {
59882
+ operationId?: string | null;
59883
+ resourceId?: string | null;
59884
+ }
59885
+
60084
59886
  function formatDate(d: Date) {
60085
59887
  return d.getFullYear() + '-' +
60086
59888
  (d.getMonth() < 9 ? ('0' + (d.getMonth()+1)) : (d.getMonth()+1)) + '-' +