@ignos/api-client 20251106.0.13145-alpha → 20251107.0.13168-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1591,6 +1591,10 @@ export interface IUserAppSettingsClient {
1591
1591
  getMoveUserSettings(): Promise<MoveAppSettings>;
1592
1592
 
1593
1593
  setMoveUserSettings(settings: MoveAppSettings): Promise<void>;
1594
+
1595
+ getEngageUserSettings(): Promise<EngageAppSettings>;
1596
+
1597
+ setEngageUserSettings(settings: EngageAppSettings): Promise<void>;
1594
1598
  }
1595
1599
 
1596
1600
  export class UserAppSettingsClient extends AuthorizedApiBase implements IUserAppSettingsClient {
@@ -1747,6 +1751,78 @@ export class UserAppSettingsClient extends AuthorizedApiBase implements IUserApp
1747
1751
  }
1748
1752
  return Promise.resolve<void>(null as any);
1749
1753
  }
1754
+
1755
+ getEngageUserSettings(): Promise<EngageAppSettings> {
1756
+ let url_ = this.baseUrl + "/userappsettings/engage";
1757
+ url_ = url_.replace(/[?&]$/, "");
1758
+
1759
+ let options_: RequestInit = {
1760
+ method: "GET",
1761
+ headers: {
1762
+ "Accept": "application/json"
1763
+ }
1764
+ };
1765
+
1766
+ return this.transformOptions(options_).then(transformedOptions_ => {
1767
+ return this.http.fetch(url_, transformedOptions_);
1768
+ }).then((_response: Response) => {
1769
+ return this.processGetEngageUserSettings(_response);
1770
+ });
1771
+ }
1772
+
1773
+ protected processGetEngageUserSettings(response: Response): Promise<EngageAppSettings> {
1774
+ const status = response.status;
1775
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1776
+ if (status === 200) {
1777
+ return response.text().then((_responseText) => {
1778
+ let result200: any = null;
1779
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1780
+ result200 = EngageAppSettings.fromJS(resultData200);
1781
+ return result200;
1782
+ });
1783
+ } else if (status !== 200 && status !== 204) {
1784
+ return response.text().then((_responseText) => {
1785
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1786
+ });
1787
+ }
1788
+ return Promise.resolve<EngageAppSettings>(null as any);
1789
+ }
1790
+
1791
+ setEngageUserSettings(settings: EngageAppSettings): Promise<void> {
1792
+ let url_ = this.baseUrl + "/userappsettings/engage";
1793
+ url_ = url_.replace(/[?&]$/, "");
1794
+
1795
+ const content_ = JSON.stringify(settings);
1796
+
1797
+ let options_: RequestInit = {
1798
+ body: content_,
1799
+ method: "PUT",
1800
+ headers: {
1801
+ "Content-Type": "application/json",
1802
+ }
1803
+ };
1804
+
1805
+ return this.transformOptions(options_).then(transformedOptions_ => {
1806
+ return this.http.fetch(url_, transformedOptions_);
1807
+ }).then((_response: Response) => {
1808
+ return this.processSetEngageUserSettings(_response);
1809
+ });
1810
+ }
1811
+
1812
+ protected processSetEngageUserSettings(response: Response): Promise<void> {
1813
+ const status = response.status;
1814
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1815
+ if (status === 204) {
1816
+ return response.text().then((_responseText) => {
1817
+ return;
1818
+ });
1819
+ } else if (status !== 200 && status !== 204) {
1820
+ return response.text().then((_responseText) => {
1821
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1822
+ });
1823
+ }
1824
+ return Promise.resolve<void>(null as any);
1825
+ }
1750
1826
  }
1751
1827
 
1752
1828
  export interface IUploadClient {
@@ -10364,6 +10440,8 @@ export interface ICncSetupClient {
10364
10440
 
10365
10441
  deleteCncMachineOperationTool(operationId: string, id: number): Promise<void>;
10366
10442
 
10443
+ deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void>;
10444
+
10367
10445
  uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
10368
10446
 
10369
10447
  deleteCncMachineOperationToolImage(operationId: string, id: number, filename: string): Promise<void>;
@@ -10376,6 +10454,8 @@ export interface ICncSetupClient {
10376
10454
 
10377
10455
  deleteCncMachineTool(cncMachineId: string, id: number): Promise<void>;
10378
10456
 
10457
+ deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void>;
10458
+
10379
10459
  uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
10380
10460
 
10381
10461
  deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
@@ -12186,6 +12266,45 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
12186
12266
  return Promise.resolve<void>(null as any);
12187
12267
  }
12188
12268
 
12269
+ deleteCncMachineOperationToolMultiple(operationId: string, idsToDelete: number[]): Promise<void> {
12270
+ let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools";
12271
+ if (operationId === undefined || operationId === null)
12272
+ throw new globalThis.Error("The parameter 'operationId' must be defined.");
12273
+ url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
12274
+ url_ = url_.replace(/[?&]$/, "");
12275
+
12276
+ const content_ = JSON.stringify(idsToDelete);
12277
+
12278
+ let options_: RequestInit = {
12279
+ body: content_,
12280
+ method: "DELETE",
12281
+ headers: {
12282
+ "Content-Type": "application/json",
12283
+ }
12284
+ };
12285
+
12286
+ return this.transformOptions(options_).then(transformedOptions_ => {
12287
+ return this.http.fetch(url_, transformedOptions_);
12288
+ }).then((_response: Response) => {
12289
+ return this.processDeleteCncMachineOperationToolMultiple(_response);
12290
+ });
12291
+ }
12292
+
12293
+ protected processDeleteCncMachineOperationToolMultiple(response: Response): Promise<void> {
12294
+ const status = response.status;
12295
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12296
+ if (status === 204) {
12297
+ return response.text().then((_responseText) => {
12298
+ return;
12299
+ });
12300
+ } else if (status !== 200 && status !== 204) {
12301
+ return response.text().then((_responseText) => {
12302
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12303
+ });
12304
+ }
12305
+ return Promise.resolve<void>(null as any);
12306
+ }
12307
+
12189
12308
  uploadOperationCncToolImage(operationId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto> {
12190
12309
  let url_ = this.baseUrl + "/cncsetup/operations/{operationId}/tools/{id}/uploadimage";
12191
12310
  if (operationId === undefined || operationId === null)
@@ -12443,6 +12562,45 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
12443
12562
  return Promise.resolve<void>(null as any);
12444
12563
  }
12445
12564
 
12565
+ deleteCncMachineToolMultiple(cncMachineId: string, idsToDelete: number[]): Promise<void> {
12566
+ let url_ = this.baseUrl + "/cncsetup/machines/{cncMachineId}/tools";
12567
+ if (cncMachineId === undefined || cncMachineId === null)
12568
+ throw new globalThis.Error("The parameter 'cncMachineId' must be defined.");
12569
+ url_ = url_.replace("{cncMachineId}", encodeURIComponent("" + cncMachineId));
12570
+ url_ = url_.replace(/[?&]$/, "");
12571
+
12572
+ const content_ = JSON.stringify(idsToDelete);
12573
+
12574
+ let options_: RequestInit = {
12575
+ body: content_,
12576
+ method: "DELETE",
12577
+ headers: {
12578
+ "Content-Type": "application/json",
12579
+ }
12580
+ };
12581
+
12582
+ return this.transformOptions(options_).then(transformedOptions_ => {
12583
+ return this.http.fetch(url_, transformedOptions_);
12584
+ }).then((_response: Response) => {
12585
+ return this.processDeleteCncMachineToolMultiple(_response);
12586
+ });
12587
+ }
12588
+
12589
+ protected processDeleteCncMachineToolMultiple(response: Response): Promise<void> {
12590
+ const status = response.status;
12591
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12592
+ if (status === 204) {
12593
+ return response.text().then((_responseText) => {
12594
+ return;
12595
+ });
12596
+ } else if (status !== 200 && status !== 204) {
12597
+ return response.text().then((_responseText) => {
12598
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12599
+ });
12600
+ }
12601
+ return Promise.resolve<void>(null as any);
12602
+ }
12603
+
12446
12604
  uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto> {
12447
12605
  let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
12448
12606
  if (machineId === undefined || machineId === null)
@@ -18934,22 +19092,16 @@ export class WeldingClient extends AuthorizedApiBase implements IWeldingClient {
18934
19092
  }
18935
19093
  }
18936
19094
 
18937
- export interface IMeasurementFormSchemasClient {
19095
+ export interface IMeasurementFormSchemasAdminClient {
18938
19096
 
18939
- 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>;
19097
+ getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
18940
19098
 
18941
19099
  createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
18942
19100
 
18943
- postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
18944
-
18945
- getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
18946
-
18947
19101
  updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
18948
19102
 
18949
19103
  deleteMeasurementForm(id: string): Promise<void>;
18950
19104
 
18951
- getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
18952
-
18953
19105
  copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
18954
19106
 
18955
19107
  updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
@@ -19062,7 +19214,7 @@ export interface IMeasurementFormSchemasClient {
19062
19214
  postListMeasurementFormSchemasWithHistory(request: ListMeasurementFormSchemasWithHistoryRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
19063
19215
  }
19064
19216
 
19065
- export class MeasurementFormSchemasClient extends AuthorizedApiBase implements IMeasurementFormSchemasClient {
19217
+ export class MeasurementFormSchemasAdminClient extends AuthorizedApiBase implements IMeasurementFormSchemasAdminClient {
19066
19218
  private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
19067
19219
  private baseUrl: string;
19068
19220
  protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
@@ -19073,30 +19225,11 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19073
19225
  this.baseUrl = baseUrl ?? "";
19074
19226
  }
19075
19227
 
19076
- 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> {
19077
- let url_ = this.baseUrl + "/measurementforms/schemas?";
19078
- if (pageSize === null)
19079
- throw new globalThis.Error("The parameter 'pageSize' cannot be null.");
19080
- else if (pageSize !== undefined)
19081
- url_ += "pageSize=" + encodeURIComponent("" + pageSize) + "&";
19082
- if (customerId !== undefined && customerId !== null)
19083
- url_ += "customerId=" + encodeURIComponent("" + customerId) + "&";
19084
- if (customerName !== undefined && customerName !== null)
19085
- url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
19086
- if (partNumber !== undefined && partNumber !== null)
19087
- url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
19088
- if (partName !== undefined && partName !== null)
19089
- url_ += "partName=" + encodeURIComponent("" + partName) + "&";
19090
- if (partRevision !== undefined && partRevision !== null)
19091
- url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
19092
- if (drawing !== undefined && drawing !== null)
19093
- url_ += "drawing=" + encodeURIComponent("" + drawing) + "&";
19094
- if (drawingRevision !== undefined && drawingRevision !== null)
19095
- url_ += "drawingRevision=" + encodeURIComponent("" + drawingRevision) + "&";
19096
- if (filter !== undefined && filter !== null)
19097
- url_ += "filter=" + encodeURIComponent("" + filter) + "&";
19098
- if (continuationToken !== undefined && continuationToken !== null)
19099
- url_ += "continuationToken=" + encodeURIComponent("" + continuationToken) + "&";
19228
+ getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
19229
+ let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
19230
+ if (id === undefined || id === null)
19231
+ throw new globalThis.Error("The parameter 'id' must be defined.");
19232
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
19100
19233
  url_ = url_.replace(/[?&]$/, "");
19101
19234
 
19102
19235
  let options_: RequestInit = {
@@ -19109,18 +19242,18 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19109
19242
  return this.transformOptions(options_).then(transformedOptions_ => {
19110
19243
  return this.http.fetch(url_, transformedOptions_);
19111
19244
  }).then((_response: Response) => {
19112
- return this.processListMeasurmentFormSchemas(_response);
19245
+ return this.processGetArchivedMeasurementFormSchema(_response);
19113
19246
  });
19114
19247
  }
19115
19248
 
19116
- protected processListMeasurmentFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto> {
19249
+ protected processGetArchivedMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
19117
19250
  const status = response.status;
19118
19251
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19119
19252
  if (status === 200) {
19120
19253
  return response.text().then((_responseText) => {
19121
19254
  let result200: any = null;
19122
19255
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19123
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
19256
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
19124
19257
  return result200;
19125
19258
  });
19126
19259
  } else if (status !== 200 && status !== 204) {
@@ -19128,7 +19261,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19128
19261
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19129
19262
  });
19130
19263
  }
19131
- return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
19264
+ return Promise.resolve<MeasurementFormSchemaDto>(null as any);
19132
19265
  }
19133
19266
 
19134
19267
  createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto> {
@@ -19171,85 +19304,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19171
19304
  return Promise.resolve<MeasurementFormDto>(null as any);
19172
19305
  }
19173
19306
 
19174
- postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto> {
19175
- let url_ = this.baseUrl + "/measurementforms/schemas/list";
19176
- url_ = url_.replace(/[?&]$/, "");
19177
-
19178
- const content_ = JSON.stringify(request);
19179
-
19180
- let options_: RequestInit = {
19181
- body: content_,
19182
- method: "POST",
19183
- headers: {
19184
- "Content-Type": "application/json",
19185
- "Accept": "application/json"
19186
- }
19187
- };
19188
-
19189
- return this.transformOptions(options_).then(transformedOptions_ => {
19190
- return this.http.fetch(url_, transformedOptions_);
19191
- }).then((_response: Response) => {
19192
- return this.processPostListMeasurementFormSchemas(_response);
19193
- });
19194
- }
19195
-
19196
- protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto> {
19197
- const status = response.status;
19198
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19199
- if (status === 200) {
19200
- return response.text().then((_responseText) => {
19201
- let result200: any = null;
19202
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19203
- result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
19204
- return result200;
19205
- });
19206
- } else if (status !== 200 && status !== 204) {
19207
- return response.text().then((_responseText) => {
19208
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19209
- });
19210
- }
19211
- return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
19212
- }
19213
-
19214
- getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
19215
- let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
19216
- if (id === undefined || id === null)
19217
- throw new globalThis.Error("The parameter 'id' must be defined.");
19218
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
19219
- url_ = url_.replace(/[?&]$/, "");
19220
-
19221
- let options_: RequestInit = {
19222
- method: "GET",
19223
- headers: {
19224
- "Accept": "application/json"
19225
- }
19226
- };
19227
-
19228
- return this.transformOptions(options_).then(transformedOptions_ => {
19229
- return this.http.fetch(url_, transformedOptions_);
19230
- }).then((_response: Response) => {
19231
- return this.processGetMeasurementFormSchema(_response);
19232
- });
19233
- }
19234
-
19235
- protected processGetMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
19236
- const status = response.status;
19237
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19238
- if (status === 200) {
19239
- return response.text().then((_responseText) => {
19240
- let result200: any = null;
19241
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19242
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
19243
- return result200;
19244
- });
19245
- } else if (status !== 200 && status !== 204) {
19246
- return response.text().then((_responseText) => {
19247
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19248
- });
19249
- }
19250
- return Promise.resolve<MeasurementFormSchemaDto>(null as any);
19251
- }
19252
-
19253
19307
  updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto> {
19254
19308
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
19255
19309
  if (id === undefined || id === null)
@@ -19328,45 +19382,6 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19328
19382
  return Promise.resolve<void>(null as any);
19329
19383
  }
19330
19384
 
19331
- getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
19332
- let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
19333
- if (id === undefined || id === null)
19334
- throw new globalThis.Error("The parameter 'id' must be defined.");
19335
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
19336
- url_ = url_.replace(/[?&]$/, "");
19337
-
19338
- let options_: RequestInit = {
19339
- method: "GET",
19340
- headers: {
19341
- "Accept": "application/json"
19342
- }
19343
- };
19344
-
19345
- return this.transformOptions(options_).then(transformedOptions_ => {
19346
- return this.http.fetch(url_, transformedOptions_);
19347
- }).then((_response: Response) => {
19348
- return this.processGetArchivedMeasurementFormSchema(_response);
19349
- });
19350
- }
19351
-
19352
- protected processGetArchivedMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
19353
- const status = response.status;
19354
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
19355
- if (status === 200) {
19356
- return response.text().then((_responseText) => {
19357
- let result200: any = null;
19358
- let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
19359
- result200 = MeasurementFormSchemaDto.fromJS(resultData200);
19360
- return result200;
19361
- });
19362
- } else if (status !== 200 && status !== 204) {
19363
- return response.text().then((_responseText) => {
19364
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
19365
- });
19366
- }
19367
- return Promise.resolve<MeasurementFormSchemaDto>(null as any);
19368
- }
19369
-
19370
19385
  copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto> {
19371
19386
  let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
19372
19387
  if (id === undefined || id === null)
@@ -21385,6 +21400,104 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
21385
21400
  }
21386
21401
  }
21387
21402
 
21403
+ export interface IMeasurementFormSchemasClient {
21404
+
21405
+ getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
21406
+
21407
+ postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto>;
21408
+ }
21409
+
21410
+ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements IMeasurementFormSchemasClient {
21411
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
21412
+ private baseUrl: string;
21413
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
21414
+
21415
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
21416
+ super(configuration);
21417
+ this.http = http ? http : window as any;
21418
+ this.baseUrl = baseUrl ?? "";
21419
+ }
21420
+
21421
+ getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
21422
+ let url_ = this.baseUrl + "/measurementforms/schemas/{id}";
21423
+ if (id === undefined || id === null)
21424
+ throw new globalThis.Error("The parameter 'id' must be defined.");
21425
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
21426
+ url_ = url_.replace(/[?&]$/, "");
21427
+
21428
+ let options_: RequestInit = {
21429
+ method: "GET",
21430
+ headers: {
21431
+ "Accept": "application/json"
21432
+ }
21433
+ };
21434
+
21435
+ return this.transformOptions(options_).then(transformedOptions_ => {
21436
+ return this.http.fetch(url_, transformedOptions_);
21437
+ }).then((_response: Response) => {
21438
+ return this.processGetMeasurementFormSchema(_response);
21439
+ });
21440
+ }
21441
+
21442
+ protected processGetMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
21443
+ const status = response.status;
21444
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21445
+ if (status === 200) {
21446
+ return response.text().then((_responseText) => {
21447
+ let result200: any = null;
21448
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21449
+ result200 = MeasurementFormSchemaDto.fromJS(resultData200);
21450
+ return result200;
21451
+ });
21452
+ } else if (status !== 200 && status !== 204) {
21453
+ return response.text().then((_responseText) => {
21454
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21455
+ });
21456
+ }
21457
+ return Promise.resolve<MeasurementFormSchemaDto>(null as any);
21458
+ }
21459
+
21460
+ postListMeasurementFormSchemas(request: ListMeasurementFormSchemasRequest | undefined): Promise<PagedResultOfMeasurementFormListDto> {
21461
+ let url_ = this.baseUrl + "/measurementforms/schemas/list";
21462
+ url_ = url_.replace(/[?&]$/, "");
21463
+
21464
+ const content_ = JSON.stringify(request);
21465
+
21466
+ let options_: RequestInit = {
21467
+ body: content_,
21468
+ method: "POST",
21469
+ headers: {
21470
+ "Content-Type": "application/json",
21471
+ "Accept": "application/json"
21472
+ }
21473
+ };
21474
+
21475
+ return this.transformOptions(options_).then(transformedOptions_ => {
21476
+ return this.http.fetch(url_, transformedOptions_);
21477
+ }).then((_response: Response) => {
21478
+ return this.processPostListMeasurementFormSchemas(_response);
21479
+ });
21480
+ }
21481
+
21482
+ protected processPostListMeasurementFormSchemas(response: Response): Promise<PagedResultOfMeasurementFormListDto> {
21483
+ const status = response.status;
21484
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
21485
+ if (status === 200) {
21486
+ return response.text().then((_responseText) => {
21487
+ let result200: any = null;
21488
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
21489
+ result200 = PagedResultOfMeasurementFormListDto.fromJS(resultData200);
21490
+ return result200;
21491
+ });
21492
+ } else if (status !== 200 && status !== 204) {
21493
+ return response.text().then((_responseText) => {
21494
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
21495
+ });
21496
+ }
21497
+ return Promise.resolve<PagedResultOfMeasurementFormListDto>(null as any);
21498
+ }
21499
+ }
21500
+
21388
21501
  export interface IMeasurementFormSettingsClient {
21389
21502
 
21390
21503
  getMeasurementFormSettings(): Promise<InspectCompanySettingsDto>;
@@ -23767,6 +23880,8 @@ export interface IWorkordersClient {
23767
23880
  getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto>;
23768
23881
 
23769
23882
  setLastRead(id: string, request: SetDiscussionLastReadRequest): Promise<void>;
23883
+
23884
+ generateContentPartsForDiscussions(): Promise<WorkorderDiscussionMessageDto[]>;
23770
23885
  }
23771
23886
 
23772
23887
  export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
@@ -25110,6 +25225,46 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
25110
25225
  }
25111
25226
  return Promise.resolve<void>(null as any);
25112
25227
  }
25228
+
25229
+ generateContentPartsForDiscussions(): Promise<WorkorderDiscussionMessageDto[]> {
25230
+ let url_ = this.baseUrl + "/erp/workorders/generatecontentpartsfordiscussions";
25231
+ url_ = url_.replace(/[?&]$/, "");
25232
+
25233
+ let options_: RequestInit = {
25234
+ method: "POST",
25235
+ headers: {
25236
+ "Accept": "application/json"
25237
+ }
25238
+ };
25239
+
25240
+ return this.transformOptions(options_).then(transformedOptions_ => {
25241
+ return this.http.fetch(url_, transformedOptions_);
25242
+ }).then((_response: Response) => {
25243
+ return this.processGenerateContentPartsForDiscussions(_response);
25244
+ });
25245
+ }
25246
+
25247
+ protected processGenerateContentPartsForDiscussions(response: Response): Promise<WorkorderDiscussionMessageDto[]> {
25248
+ const status = response.status;
25249
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
25250
+ if (status === 200) {
25251
+ return response.text().then((_responseText) => {
25252
+ let result200: any = null;
25253
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
25254
+ if (Array.isArray(resultData200)) {
25255
+ result200 = [] as any;
25256
+ for (let item of resultData200)
25257
+ result200!.push(WorkorderDiscussionMessageDto.fromJS(item));
25258
+ }
25259
+ return result200;
25260
+ });
25261
+ } else if (status !== 200 && status !== 204) {
25262
+ return response.text().then((_responseText) => {
25263
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
25264
+ });
25265
+ }
25266
+ return Promise.resolve<WorkorderDiscussionMessageDto[]>(null as any);
25267
+ }
25113
25268
  }
25114
25269
 
25115
25270
  export class AzureRegionDto implements IAzureRegionDto {
@@ -26980,6 +27135,42 @@ export interface IMoveAppSettings {
26980
27135
  defaultFromSuggestionAutoFillLocationId?: string | null;
26981
27136
  }
26982
27137
 
27138
+ export class EngageAppSettings implements IEngageAppSettings {
27139
+ myResourceGroup?: string;
27140
+
27141
+ constructor(data?: IEngageAppSettings) {
27142
+ if (data) {
27143
+ for (var property in data) {
27144
+ if (data.hasOwnProperty(property))
27145
+ (this as any)[property] = (data as any)[property];
27146
+ }
27147
+ }
27148
+ }
27149
+
27150
+ init(_data?: any) {
27151
+ if (_data) {
27152
+ this.myResourceGroup = _data["myResourceGroup"];
27153
+ }
27154
+ }
27155
+
27156
+ static fromJS(data: any): EngageAppSettings {
27157
+ data = typeof data === 'object' ? data : {};
27158
+ let result = new EngageAppSettings();
27159
+ result.init(data);
27160
+ return result;
27161
+ }
27162
+
27163
+ toJSON(data?: any) {
27164
+ data = typeof data === 'object' ? data : {};
27165
+ data["myResourceGroup"] = this.myResourceGroup;
27166
+ return data;
27167
+ }
27168
+ }
27169
+
27170
+ export interface IEngageAppSettings {
27171
+ myResourceGroup?: string;
27172
+ }
27173
+
26983
27174
  export class UploadInfoDto implements IUploadInfoDto {
26984
27175
  baseUrl?: string | null;
26985
27176
  key?: string | null;
@@ -32839,6 +33030,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
32839
33030
  min?: number | null;
32840
33031
  max?: number | null;
32841
33032
  calibrationInterval?: number | null;
33033
+ overriddenCalibrationInterval?: number | null;
32842
33034
  serialNumber?: string | null;
32843
33035
  precision?: string | null;
32844
33036
  lastCalibrationDate?: Date | null;
@@ -32875,6 +33067,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
32875
33067
  this.min = _data["min"];
32876
33068
  this.max = _data["max"];
32877
33069
  this.calibrationInterval = _data["calibrationInterval"];
33070
+ this.overriddenCalibrationInterval = _data["overriddenCalibrationInterval"];
32878
33071
  this.serialNumber = _data["serialNumber"];
32879
33072
  this.precision = _data["precision"];
32880
33073
  this.lastCalibrationDate = _data["lastCalibrationDate"] ? new Date(_data["lastCalibrationDate"].toString()) : undefined as any;
@@ -32907,6 +33100,7 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
32907
33100
  data["min"] = this.min;
32908
33101
  data["max"] = this.max;
32909
33102
  data["calibrationInterval"] = this.calibrationInterval;
33103
+ data["overriddenCalibrationInterval"] = this.overriddenCalibrationInterval;
32910
33104
  data["serialNumber"] = this.serialNumber;
32911
33105
  data["precision"] = this.precision;
32912
33106
  data["lastCalibrationDate"] = this.lastCalibrationDate ? this.lastCalibrationDate.toISOString() : undefined as any;
@@ -32932,6 +33126,7 @@ export interface IMeasuringToolDetailDto {
32932
33126
  min?: number | null;
32933
33127
  max?: number | null;
32934
33128
  calibrationInterval?: number | null;
33129
+ overriddenCalibrationInterval?: number | null;
32935
33130
  serialNumber?: string | null;
32936
33131
  precision?: string | null;
32937
33132
  lastCalibrationDate?: Date | null;
@@ -53476,221 +53671,6 @@ export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
53476
53671
  export interface ICreateWeldingIotConfig {
53477
53672
  }
53478
53673
 
53479
- export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
53480
- results!: MeasurementFormListDto[];
53481
- continuationToken?: string | null;
53482
-
53483
- constructor(data?: IPagedResultOfMeasurementFormListDto) {
53484
- if (data) {
53485
- for (var property in data) {
53486
- if (data.hasOwnProperty(property))
53487
- (this as any)[property] = (data as any)[property];
53488
- }
53489
- }
53490
- if (!data) {
53491
- this.results = [];
53492
- }
53493
- }
53494
-
53495
- init(_data?: any) {
53496
- if (_data) {
53497
- if (Array.isArray(_data["results"])) {
53498
- this.results = [] as any;
53499
- for (let item of _data["results"])
53500
- this.results!.push(MeasurementFormListDto.fromJS(item));
53501
- }
53502
- this.continuationToken = _data["continuationToken"];
53503
- }
53504
- }
53505
-
53506
- static fromJS(data: any): PagedResultOfMeasurementFormListDto {
53507
- data = typeof data === 'object' ? data : {};
53508
- let result = new PagedResultOfMeasurementFormListDto();
53509
- result.init(data);
53510
- return result;
53511
- }
53512
-
53513
- toJSON(data?: any) {
53514
- data = typeof data === 'object' ? data : {};
53515
- if (Array.isArray(this.results)) {
53516
- data["results"] = [];
53517
- for (let item of this.results)
53518
- data["results"].push(item ? item.toJSON() : undefined as any);
53519
- }
53520
- data["continuationToken"] = this.continuationToken;
53521
- return data;
53522
- }
53523
- }
53524
-
53525
- export interface IPagedResultOfMeasurementFormListDto {
53526
- results: MeasurementFormListDto[];
53527
- continuationToken?: string | null;
53528
- }
53529
-
53530
- export class MeasurementFormListDto implements IMeasurementFormListDto {
53531
- id!: string;
53532
- schemaId!: string;
53533
- versionId!: number;
53534
- customerId?: string | null;
53535
- customerName?: string | null;
53536
- partNumber?: string | null;
53537
- partRevision?: string | null;
53538
- partName?: string | null;
53539
- drawing!: string;
53540
- drawingRevision?: string | null;
53541
- createdBy!: string;
53542
- created!: Date;
53543
- status!: MeasurementFormStatus;
53544
- source!: MeasurementFormSource;
53545
-
53546
- constructor(data?: IMeasurementFormListDto) {
53547
- if (data) {
53548
- for (var property in data) {
53549
- if (data.hasOwnProperty(property))
53550
- (this as any)[property] = (data as any)[property];
53551
- }
53552
- }
53553
- }
53554
-
53555
- init(_data?: any) {
53556
- if (_data) {
53557
- this.id = _data["id"];
53558
- this.schemaId = _data["schemaId"];
53559
- this.versionId = _data["versionId"];
53560
- this.customerId = _data["customerId"];
53561
- this.customerName = _data["customerName"];
53562
- this.partNumber = _data["partNumber"];
53563
- this.partRevision = _data["partRevision"];
53564
- this.partName = _data["partName"];
53565
- this.drawing = _data["drawing"];
53566
- this.drawingRevision = _data["drawingRevision"];
53567
- this.createdBy = _data["createdBy"];
53568
- this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
53569
- this.status = _data["status"];
53570
- this.source = _data["source"];
53571
- }
53572
- }
53573
-
53574
- static fromJS(data: any): MeasurementFormListDto {
53575
- data = typeof data === 'object' ? data : {};
53576
- let result = new MeasurementFormListDto();
53577
- result.init(data);
53578
- return result;
53579
- }
53580
-
53581
- toJSON(data?: any) {
53582
- data = typeof data === 'object' ? data : {};
53583
- data["id"] = this.id;
53584
- data["schemaId"] = this.schemaId;
53585
- data["versionId"] = this.versionId;
53586
- data["customerId"] = this.customerId;
53587
- data["customerName"] = this.customerName;
53588
- data["partNumber"] = this.partNumber;
53589
- data["partRevision"] = this.partRevision;
53590
- data["partName"] = this.partName;
53591
- data["drawing"] = this.drawing;
53592
- data["drawingRevision"] = this.drawingRevision;
53593
- data["createdBy"] = this.createdBy;
53594
- data["created"] = this.created ? this.created.toISOString() : undefined as any;
53595
- data["status"] = this.status;
53596
- data["source"] = this.source;
53597
- return data;
53598
- }
53599
- }
53600
-
53601
- export interface IMeasurementFormListDto {
53602
- id: string;
53603
- schemaId: string;
53604
- versionId: number;
53605
- customerId?: string | null;
53606
- customerName?: string | null;
53607
- partNumber?: string | null;
53608
- partRevision?: string | null;
53609
- partName?: string | null;
53610
- drawing: string;
53611
- drawingRevision?: string | null;
53612
- createdBy: string;
53613
- created: Date;
53614
- status: MeasurementFormStatus;
53615
- source: MeasurementFormSource;
53616
- }
53617
-
53618
- export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
53619
-
53620
- export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
53621
-
53622
- export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSchemasRequest {
53623
- pageSize?: number | null;
53624
- customerId?: string | null;
53625
- customerName?: string | null;
53626
- partName?: string | null;
53627
- partNumber?: string | null;
53628
- partRevision?: string | null;
53629
- drawing?: string | null;
53630
- drawingRevision?: string | null;
53631
- filter?: string | null;
53632
- continuationToken?: string | null;
53633
-
53634
- constructor(data?: IListMeasurementFormSchemasRequest) {
53635
- if (data) {
53636
- for (var property in data) {
53637
- if (data.hasOwnProperty(property))
53638
- (this as any)[property] = (data as any)[property];
53639
- }
53640
- }
53641
- }
53642
-
53643
- init(_data?: any) {
53644
- if (_data) {
53645
- this.pageSize = _data["pageSize"];
53646
- this.customerId = _data["customerId"];
53647
- this.customerName = _data["customerName"];
53648
- this.partName = _data["partName"];
53649
- this.partNumber = _data["partNumber"];
53650
- this.partRevision = _data["partRevision"];
53651
- this.drawing = _data["drawing"];
53652
- this.drawingRevision = _data["drawingRevision"];
53653
- this.filter = _data["filter"];
53654
- this.continuationToken = _data["continuationToken"];
53655
- }
53656
- }
53657
-
53658
- static fromJS(data: any): ListMeasurementFormSchemasRequest {
53659
- data = typeof data === 'object' ? data : {};
53660
- let result = new ListMeasurementFormSchemasRequest();
53661
- result.init(data);
53662
- return result;
53663
- }
53664
-
53665
- toJSON(data?: any) {
53666
- data = typeof data === 'object' ? data : {};
53667
- data["pageSize"] = this.pageSize;
53668
- data["customerId"] = this.customerId;
53669
- data["customerName"] = this.customerName;
53670
- data["partName"] = this.partName;
53671
- data["partNumber"] = this.partNumber;
53672
- data["partRevision"] = this.partRevision;
53673
- data["drawing"] = this.drawing;
53674
- data["drawingRevision"] = this.drawingRevision;
53675
- data["filter"] = this.filter;
53676
- data["continuationToken"] = this.continuationToken;
53677
- return data;
53678
- }
53679
- }
53680
-
53681
- export interface IListMeasurementFormSchemasRequest {
53682
- pageSize?: number | null;
53683
- customerId?: string | null;
53684
- customerName?: string | null;
53685
- partName?: string | null;
53686
- partNumber?: string | null;
53687
- partRevision?: string | null;
53688
- drawing?: string | null;
53689
- drawingRevision?: string | null;
53690
- filter?: string | null;
53691
- continuationToken?: string | null;
53692
- }
53693
-
53694
53674
  export class MeasurementFormSchemaDto implements IMeasurementFormSchemaDto {
53695
53675
  id!: string;
53696
53676
  versionId!: number;
@@ -53856,6 +53836,10 @@ export interface IMeasurementFormSchemaDto {
53856
53836
  extraSchemas: MeasurementFormLinkedSchemaDto[];
53857
53837
  }
53858
53838
 
53839
+ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
53840
+
53841
+ export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
53842
+
53859
53843
  export type UnitOfMeasureDto = "Millimeter" | "Inch";
53860
53844
 
53861
53845
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
@@ -54946,6 +54930,145 @@ export interface IMeasurementFormImportStatusDto {
54946
54930
  timestamp: Date;
54947
54931
  }
54948
54932
 
54933
+ export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
54934
+ results!: MeasurementFormListDto[];
54935
+ continuationToken?: string | null;
54936
+
54937
+ constructor(data?: IPagedResultOfMeasurementFormListDto) {
54938
+ if (data) {
54939
+ for (var property in data) {
54940
+ if (data.hasOwnProperty(property))
54941
+ (this as any)[property] = (data as any)[property];
54942
+ }
54943
+ }
54944
+ if (!data) {
54945
+ this.results = [];
54946
+ }
54947
+ }
54948
+
54949
+ init(_data?: any) {
54950
+ if (_data) {
54951
+ if (Array.isArray(_data["results"])) {
54952
+ this.results = [] as any;
54953
+ for (let item of _data["results"])
54954
+ this.results!.push(MeasurementFormListDto.fromJS(item));
54955
+ }
54956
+ this.continuationToken = _data["continuationToken"];
54957
+ }
54958
+ }
54959
+
54960
+ static fromJS(data: any): PagedResultOfMeasurementFormListDto {
54961
+ data = typeof data === 'object' ? data : {};
54962
+ let result = new PagedResultOfMeasurementFormListDto();
54963
+ result.init(data);
54964
+ return result;
54965
+ }
54966
+
54967
+ toJSON(data?: any) {
54968
+ data = typeof data === 'object' ? data : {};
54969
+ if (Array.isArray(this.results)) {
54970
+ data["results"] = [];
54971
+ for (let item of this.results)
54972
+ data["results"].push(item ? item.toJSON() : undefined as any);
54973
+ }
54974
+ data["continuationToken"] = this.continuationToken;
54975
+ return data;
54976
+ }
54977
+ }
54978
+
54979
+ export interface IPagedResultOfMeasurementFormListDto {
54980
+ results: MeasurementFormListDto[];
54981
+ continuationToken?: string | null;
54982
+ }
54983
+
54984
+ export class MeasurementFormListDto implements IMeasurementFormListDto {
54985
+ id!: string;
54986
+ schemaId!: string;
54987
+ versionId!: number;
54988
+ customerId?: string | null;
54989
+ customerName?: string | null;
54990
+ partNumber?: string | null;
54991
+ partRevision?: string | null;
54992
+ partName?: string | null;
54993
+ drawing!: string;
54994
+ drawingRevision?: string | null;
54995
+ createdBy!: string;
54996
+ created!: Date;
54997
+ status!: MeasurementFormStatus;
54998
+ source!: MeasurementFormSource;
54999
+
55000
+ constructor(data?: IMeasurementFormListDto) {
55001
+ if (data) {
55002
+ for (var property in data) {
55003
+ if (data.hasOwnProperty(property))
55004
+ (this as any)[property] = (data as any)[property];
55005
+ }
55006
+ }
55007
+ }
55008
+
55009
+ init(_data?: any) {
55010
+ if (_data) {
55011
+ this.id = _data["id"];
55012
+ this.schemaId = _data["schemaId"];
55013
+ this.versionId = _data["versionId"];
55014
+ this.customerId = _data["customerId"];
55015
+ this.customerName = _data["customerName"];
55016
+ this.partNumber = _data["partNumber"];
55017
+ this.partRevision = _data["partRevision"];
55018
+ this.partName = _data["partName"];
55019
+ this.drawing = _data["drawing"];
55020
+ this.drawingRevision = _data["drawingRevision"];
55021
+ this.createdBy = _data["createdBy"];
55022
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
55023
+ this.status = _data["status"];
55024
+ this.source = _data["source"];
55025
+ }
55026
+ }
55027
+
55028
+ static fromJS(data: any): MeasurementFormListDto {
55029
+ data = typeof data === 'object' ? data : {};
55030
+ let result = new MeasurementFormListDto();
55031
+ result.init(data);
55032
+ return result;
55033
+ }
55034
+
55035
+ toJSON(data?: any) {
55036
+ data = typeof data === 'object' ? data : {};
55037
+ data["id"] = this.id;
55038
+ data["schemaId"] = this.schemaId;
55039
+ data["versionId"] = this.versionId;
55040
+ data["customerId"] = this.customerId;
55041
+ data["customerName"] = this.customerName;
55042
+ data["partNumber"] = this.partNumber;
55043
+ data["partRevision"] = this.partRevision;
55044
+ data["partName"] = this.partName;
55045
+ data["drawing"] = this.drawing;
55046
+ data["drawingRevision"] = this.drawingRevision;
55047
+ data["createdBy"] = this.createdBy;
55048
+ data["created"] = this.created ? this.created.toISOString() : undefined as any;
55049
+ data["status"] = this.status;
55050
+ data["source"] = this.source;
55051
+ return data;
55052
+ }
55053
+ }
55054
+
55055
+ export interface IMeasurementFormListDto {
55056
+ id: string;
55057
+ schemaId: string;
55058
+ versionId: number;
55059
+ customerId?: string | null;
55060
+ customerName?: string | null;
55061
+ partNumber?: string | null;
55062
+ partRevision?: string | null;
55063
+ partName?: string | null;
55064
+ drawing: string;
55065
+ drawingRevision?: string | null;
55066
+ createdBy: string;
55067
+ created: Date;
55068
+ status: MeasurementFormStatus;
55069
+ source: MeasurementFormSource;
55070
+ }
55071
+
54949
55072
  export class ListLinkableMeasurementFormSchemasRequest implements IListLinkableMeasurementFormSchemasRequest {
54950
55073
  schemaId!: string;
54951
55074
  pageSize?: number | null;
@@ -56614,6 +56737,78 @@ export interface IListMeasurementFormSchemasWithHistoryRequest {
56614
56737
  continuationToken?: string | null;
56615
56738
  }
56616
56739
 
56740
+ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSchemasRequest {
56741
+ pageSize?: number | null;
56742
+ customerId?: string | null;
56743
+ customerName?: string | null;
56744
+ partName?: string | null;
56745
+ partNumber?: string | null;
56746
+ partRevision?: string | null;
56747
+ drawing?: string | null;
56748
+ drawingRevision?: string | null;
56749
+ filter?: string | null;
56750
+ continuationToken?: string | null;
56751
+
56752
+ constructor(data?: IListMeasurementFormSchemasRequest) {
56753
+ if (data) {
56754
+ for (var property in data) {
56755
+ if (data.hasOwnProperty(property))
56756
+ (this as any)[property] = (data as any)[property];
56757
+ }
56758
+ }
56759
+ }
56760
+
56761
+ init(_data?: any) {
56762
+ if (_data) {
56763
+ this.pageSize = _data["pageSize"];
56764
+ this.customerId = _data["customerId"];
56765
+ this.customerName = _data["customerName"];
56766
+ this.partName = _data["partName"];
56767
+ this.partNumber = _data["partNumber"];
56768
+ this.partRevision = _data["partRevision"];
56769
+ this.drawing = _data["drawing"];
56770
+ this.drawingRevision = _data["drawingRevision"];
56771
+ this.filter = _data["filter"];
56772
+ this.continuationToken = _data["continuationToken"];
56773
+ }
56774
+ }
56775
+
56776
+ static fromJS(data: any): ListMeasurementFormSchemasRequest {
56777
+ data = typeof data === 'object' ? data : {};
56778
+ let result = new ListMeasurementFormSchemasRequest();
56779
+ result.init(data);
56780
+ return result;
56781
+ }
56782
+
56783
+ toJSON(data?: any) {
56784
+ data = typeof data === 'object' ? data : {};
56785
+ data["pageSize"] = this.pageSize;
56786
+ data["customerId"] = this.customerId;
56787
+ data["customerName"] = this.customerName;
56788
+ data["partName"] = this.partName;
56789
+ data["partNumber"] = this.partNumber;
56790
+ data["partRevision"] = this.partRevision;
56791
+ data["drawing"] = this.drawing;
56792
+ data["drawingRevision"] = this.drawingRevision;
56793
+ data["filter"] = this.filter;
56794
+ data["continuationToken"] = this.continuationToken;
56795
+ return data;
56796
+ }
56797
+ }
56798
+
56799
+ export interface IListMeasurementFormSchemasRequest {
56800
+ pageSize?: number | null;
56801
+ customerId?: string | null;
56802
+ customerName?: string | null;
56803
+ partName?: string | null;
56804
+ partNumber?: string | null;
56805
+ partRevision?: string | null;
56806
+ drawing?: string | null;
56807
+ drawingRevision?: string | null;
56808
+ filter?: string | null;
56809
+ continuationToken?: string | null;
56810
+ }
56811
+
56617
56812
  export class PagedResultOfMeasurementFormInstanceOverviewDto implements IPagedResultOfMeasurementFormInstanceOverviewDto {
56618
56813
  results!: MeasurementFormInstanceOverviewDto[];
56619
56814
  continuationToken?: string | null;
@@ -60989,6 +61184,7 @@ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessag
60989
61184
  workorderId?: string;
60990
61185
  companyId?: string;
60991
61186
  content?: string;
61187
+ contentParts?: WorkOrderDiscussionContent[] | null;
60992
61188
  senderUpn?: string;
60993
61189
  senderName?: string;
60994
61190
  operationId?: string | null;
@@ -61011,6 +61207,11 @@ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessag
61011
61207
  this.workorderId = _data["workorderId"];
61012
61208
  this.companyId = _data["companyId"];
61013
61209
  this.content = _data["content"];
61210
+ if (Array.isArray(_data["contentParts"])) {
61211
+ this.contentParts = [] as any;
61212
+ for (let item of _data["contentParts"])
61213
+ this.contentParts!.push(WorkOrderDiscussionContent.fromJS(item));
61214
+ }
61014
61215
  this.senderUpn = _data["senderUpn"];
61015
61216
  this.senderName = _data["senderName"];
61016
61217
  this.operationId = _data["operationId"];
@@ -61033,6 +61234,11 @@ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessag
61033
61234
  data["workorderId"] = this.workorderId;
61034
61235
  data["companyId"] = this.companyId;
61035
61236
  data["content"] = this.content;
61237
+ if (Array.isArray(this.contentParts)) {
61238
+ data["contentParts"] = [];
61239
+ for (let item of this.contentParts)
61240
+ data["contentParts"].push(item ? item.toJSON() : undefined as any);
61241
+ }
61036
61242
  data["senderUpn"] = this.senderUpn;
61037
61243
  data["senderName"] = this.senderName;
61038
61244
  data["operationId"] = this.operationId;
@@ -61048,6 +61254,7 @@ export interface IWorkorderDiscussionMessageDto {
61048
61254
  workorderId?: string;
61049
61255
  companyId?: string;
61050
61256
  content?: string;
61257
+ contentParts?: WorkOrderDiscussionContent[] | null;
61051
61258
  senderUpn?: string;
61052
61259
  senderName?: string;
61053
61260
  operationId?: string | null;
@@ -61056,6 +61263,48 @@ export interface IWorkorderDiscussionMessageDto {
61056
61263
  created?: Date;
61057
61264
  }
61058
61265
 
61266
+ export class WorkOrderDiscussionContent implements IWorkOrderDiscussionContent {
61267
+ type?: WorkOrderDiscussionContentType;
61268
+ value?: string;
61269
+
61270
+ constructor(data?: IWorkOrderDiscussionContent) {
61271
+ if (data) {
61272
+ for (var property in data) {
61273
+ if (data.hasOwnProperty(property))
61274
+ (this as any)[property] = (data as any)[property];
61275
+ }
61276
+ }
61277
+ }
61278
+
61279
+ init(_data?: any) {
61280
+ if (_data) {
61281
+ this.type = _data["type"];
61282
+ this.value = _data["value"];
61283
+ }
61284
+ }
61285
+
61286
+ static fromJS(data: any): WorkOrderDiscussionContent {
61287
+ data = typeof data === 'object' ? data : {};
61288
+ let result = new WorkOrderDiscussionContent();
61289
+ result.init(data);
61290
+ return result;
61291
+ }
61292
+
61293
+ toJSON(data?: any) {
61294
+ data = typeof data === 'object' ? data : {};
61295
+ data["type"] = this.type;
61296
+ data["value"] = this.value;
61297
+ return data;
61298
+ }
61299
+ }
61300
+
61301
+ export interface IWorkOrderDiscussionContent {
61302
+ type?: WorkOrderDiscussionContentType;
61303
+ value?: string;
61304
+ }
61305
+
61306
+ export type WorkOrderDiscussionContentType = 0 | 1;
61307
+
61059
61308
  export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
61060
61309
  message!: string;
61061
61310
  operationId?: string | null;