@ignos/api-client 20251106.0.13145-alpha → 20251110.0.13171

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;
@@ -32721,6 +32912,8 @@ export class MeasuringToolDto implements IMeasuringToolDto {
32721
32912
  unit?: string | null;
32722
32913
  min?: number | null;
32723
32914
  max?: number | null;
32915
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
32916
+ lastUsedDate?: Date | null;
32724
32917
  lastCalibrationDate?: Date | null;
32725
32918
  nextCalibrationDate?: Date | null;
32726
32919
  calibrationInterval?: number | null;
@@ -32754,6 +32947,8 @@ export class MeasuringToolDto implements IMeasuringToolDto {
32754
32947
  this.unit = _data["unit"];
32755
32948
  this.min = _data["min"];
32756
32949
  this.max = _data["max"];
32950
+ this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined as any;
32951
+ this.lastUsedDate = _data["lastUsedDate"] ? new Date(_data["lastUsedDate"].toString()) : undefined as any;
32757
32952
  this.lastCalibrationDate = _data["lastCalibrationDate"] ? new Date(_data["lastCalibrationDate"].toString()) : undefined as any;
32758
32953
  this.nextCalibrationDate = _data["nextCalibrationDate"] ? new Date(_data["nextCalibrationDate"].toString()) : undefined as any;
32759
32954
  this.calibrationInterval = _data["calibrationInterval"];
@@ -32787,6 +32982,8 @@ export class MeasuringToolDto implements IMeasuringToolDto {
32787
32982
  data["unit"] = this.unit;
32788
32983
  data["min"] = this.min;
32789
32984
  data["max"] = this.max;
32985
+ data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined as any;
32986
+ data["lastUsedDate"] = this.lastUsedDate ? this.lastUsedDate.toISOString() : undefined as any;
32790
32987
  data["lastCalibrationDate"] = this.lastCalibrationDate ? this.lastCalibrationDate.toISOString() : undefined as any;
32791
32988
  data["nextCalibrationDate"] = this.nextCalibrationDate ? this.nextCalibrationDate.toISOString() : undefined as any;
32792
32989
  data["calibrationInterval"] = this.calibrationInterval;
@@ -32813,6 +33010,8 @@ export interface IMeasuringToolDto {
32813
33010
  unit?: string | null;
32814
33011
  min?: number | null;
32815
33012
  max?: number | null;
33013
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
33014
+ lastUsedDate?: Date | null;
32816
33015
  lastCalibrationDate?: Date | null;
32817
33016
  nextCalibrationDate?: Date | null;
32818
33017
  calibrationInterval?: number | null;
@@ -32825,6 +33024,50 @@ export interface IMeasuringToolDto {
32825
33024
  calibrationStatus: CalibrationStatusDto;
32826
33025
  }
32827
33026
 
33027
+ export class MeasuringToolLastUsedByDto implements IMeasuringToolLastUsedByDto {
33028
+ objectId?: string;
33029
+ userId?: string;
33030
+ displayName?: string | null;
33031
+
33032
+ constructor(data?: IMeasuringToolLastUsedByDto) {
33033
+ if (data) {
33034
+ for (var property in data) {
33035
+ if (data.hasOwnProperty(property))
33036
+ (this as any)[property] = (data as any)[property];
33037
+ }
33038
+ }
33039
+ }
33040
+
33041
+ init(_data?: any) {
33042
+ if (_data) {
33043
+ this.objectId = _data["objectId"];
33044
+ this.userId = _data["userId"];
33045
+ this.displayName = _data["displayName"];
33046
+ }
33047
+ }
33048
+
33049
+ static fromJS(data: any): MeasuringToolLastUsedByDto {
33050
+ data = typeof data === 'object' ? data : {};
33051
+ let result = new MeasuringToolLastUsedByDto();
33052
+ result.init(data);
33053
+ return result;
33054
+ }
33055
+
33056
+ toJSON(data?: any) {
33057
+ data = typeof data === 'object' ? data : {};
33058
+ data["objectId"] = this.objectId;
33059
+ data["userId"] = this.userId;
33060
+ data["displayName"] = this.displayName;
33061
+ return data;
33062
+ }
33063
+ }
33064
+
33065
+ export interface IMeasuringToolLastUsedByDto {
33066
+ objectId?: string;
33067
+ userId?: string;
33068
+ displayName?: string | null;
33069
+ }
33070
+
32828
33071
  export type CalibrationStatusDto = "Uncalibrated" | "Deprecated" | "Expired" | "SoonDue" | "Valid";
32829
33072
 
32830
33073
  export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
@@ -32838,6 +33081,8 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
32838
33081
  defaultLocation?: string | null;
32839
33082
  min?: number | null;
32840
33083
  max?: number | null;
33084
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
33085
+ lastUsedDate?: Date | null;
32841
33086
  calibrationInterval?: number | null;
32842
33087
  serialNumber?: string | null;
32843
33088
  precision?: string | null;
@@ -32874,6 +33119,8 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
32874
33119
  this.defaultLocation = _data["defaultLocation"];
32875
33120
  this.min = _data["min"];
32876
33121
  this.max = _data["max"];
33122
+ this.lastUsedBy = _data["lastUsedBy"] ? MeasuringToolLastUsedByDto.fromJS(_data["lastUsedBy"]) : undefined as any;
33123
+ this.lastUsedDate = _data["lastUsedDate"] ? new Date(_data["lastUsedDate"].toString()) : undefined as any;
32877
33124
  this.calibrationInterval = _data["calibrationInterval"];
32878
33125
  this.serialNumber = _data["serialNumber"];
32879
33126
  this.precision = _data["precision"];
@@ -32906,6 +33153,8 @@ export class MeasuringToolDetailDto implements IMeasuringToolDetailDto {
32906
33153
  data["defaultLocation"] = this.defaultLocation;
32907
33154
  data["min"] = this.min;
32908
33155
  data["max"] = this.max;
33156
+ data["lastUsedBy"] = this.lastUsedBy ? this.lastUsedBy.toJSON() : undefined as any;
33157
+ data["lastUsedDate"] = this.lastUsedDate ? this.lastUsedDate.toISOString() : undefined as any;
32909
33158
  data["calibrationInterval"] = this.calibrationInterval;
32910
33159
  data["serialNumber"] = this.serialNumber;
32911
33160
  data["precision"] = this.precision;
@@ -32931,6 +33180,8 @@ export interface IMeasuringToolDetailDto {
32931
33180
  defaultLocation?: string | null;
32932
33181
  min?: number | null;
32933
33182
  max?: number | null;
33183
+ lastUsedBy?: MeasuringToolLastUsedByDto | null;
33184
+ lastUsedDate?: Date | null;
32934
33185
  calibrationInterval?: number | null;
32935
33186
  serialNumber?: string | null;
32936
33187
  precision?: string | null;
@@ -53476,221 +53727,6 @@ export class CreateWeldingIotConfig implements ICreateWeldingIotConfig {
53476
53727
  export interface ICreateWeldingIotConfig {
53477
53728
  }
53478
53729
 
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
53730
  export class MeasurementFormSchemaDto implements IMeasurementFormSchemaDto {
53695
53731
  id!: string;
53696
53732
  versionId!: number;
@@ -53856,6 +53892,10 @@ export interface IMeasurementFormSchemaDto {
53856
53892
  extraSchemas: MeasurementFormLinkedSchemaDto[];
53857
53893
  }
53858
53894
 
53895
+ export type MeasurementFormStatus = "Draft" | "Released" | "Revoked";
53896
+
53897
+ export type MeasurementFormSource = "Unknown" | "InspectionXpert" | "Excel" | "Manual";
53898
+
53859
53899
  export type UnitOfMeasureDto = "Millimeter" | "Inch";
53860
53900
 
53861
53901
  export type DimensionSettingDto = "Tolerance" | "MinMaxDimension";
@@ -54946,6 +54986,145 @@ export interface IMeasurementFormImportStatusDto {
54946
54986
  timestamp: Date;
54947
54987
  }
54948
54988
 
54989
+ export class PagedResultOfMeasurementFormListDto implements IPagedResultOfMeasurementFormListDto {
54990
+ results!: MeasurementFormListDto[];
54991
+ continuationToken?: string | null;
54992
+
54993
+ constructor(data?: IPagedResultOfMeasurementFormListDto) {
54994
+ if (data) {
54995
+ for (var property in data) {
54996
+ if (data.hasOwnProperty(property))
54997
+ (this as any)[property] = (data as any)[property];
54998
+ }
54999
+ }
55000
+ if (!data) {
55001
+ this.results = [];
55002
+ }
55003
+ }
55004
+
55005
+ init(_data?: any) {
55006
+ if (_data) {
55007
+ if (Array.isArray(_data["results"])) {
55008
+ this.results = [] as any;
55009
+ for (let item of _data["results"])
55010
+ this.results!.push(MeasurementFormListDto.fromJS(item));
55011
+ }
55012
+ this.continuationToken = _data["continuationToken"];
55013
+ }
55014
+ }
55015
+
55016
+ static fromJS(data: any): PagedResultOfMeasurementFormListDto {
55017
+ data = typeof data === 'object' ? data : {};
55018
+ let result = new PagedResultOfMeasurementFormListDto();
55019
+ result.init(data);
55020
+ return result;
55021
+ }
55022
+
55023
+ toJSON(data?: any) {
55024
+ data = typeof data === 'object' ? data : {};
55025
+ if (Array.isArray(this.results)) {
55026
+ data["results"] = [];
55027
+ for (let item of this.results)
55028
+ data["results"].push(item ? item.toJSON() : undefined as any);
55029
+ }
55030
+ data["continuationToken"] = this.continuationToken;
55031
+ return data;
55032
+ }
55033
+ }
55034
+
55035
+ export interface IPagedResultOfMeasurementFormListDto {
55036
+ results: MeasurementFormListDto[];
55037
+ continuationToken?: string | null;
55038
+ }
55039
+
55040
+ export class MeasurementFormListDto implements IMeasurementFormListDto {
55041
+ id!: string;
55042
+ schemaId!: string;
55043
+ versionId!: number;
55044
+ customerId?: string | null;
55045
+ customerName?: string | null;
55046
+ partNumber?: string | null;
55047
+ partRevision?: string | null;
55048
+ partName?: string | null;
55049
+ drawing!: string;
55050
+ drawingRevision?: string | null;
55051
+ createdBy!: string;
55052
+ created!: Date;
55053
+ status!: MeasurementFormStatus;
55054
+ source!: MeasurementFormSource;
55055
+
55056
+ constructor(data?: IMeasurementFormListDto) {
55057
+ if (data) {
55058
+ for (var property in data) {
55059
+ if (data.hasOwnProperty(property))
55060
+ (this as any)[property] = (data as any)[property];
55061
+ }
55062
+ }
55063
+ }
55064
+
55065
+ init(_data?: any) {
55066
+ if (_data) {
55067
+ this.id = _data["id"];
55068
+ this.schemaId = _data["schemaId"];
55069
+ this.versionId = _data["versionId"];
55070
+ this.customerId = _data["customerId"];
55071
+ this.customerName = _data["customerName"];
55072
+ this.partNumber = _data["partNumber"];
55073
+ this.partRevision = _data["partRevision"];
55074
+ this.partName = _data["partName"];
55075
+ this.drawing = _data["drawing"];
55076
+ this.drawingRevision = _data["drawingRevision"];
55077
+ this.createdBy = _data["createdBy"];
55078
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined as any;
55079
+ this.status = _data["status"];
55080
+ this.source = _data["source"];
55081
+ }
55082
+ }
55083
+
55084
+ static fromJS(data: any): MeasurementFormListDto {
55085
+ data = typeof data === 'object' ? data : {};
55086
+ let result = new MeasurementFormListDto();
55087
+ result.init(data);
55088
+ return result;
55089
+ }
55090
+
55091
+ toJSON(data?: any) {
55092
+ data = typeof data === 'object' ? data : {};
55093
+ data["id"] = this.id;
55094
+ data["schemaId"] = this.schemaId;
55095
+ data["versionId"] = this.versionId;
55096
+ data["customerId"] = this.customerId;
55097
+ data["customerName"] = this.customerName;
55098
+ data["partNumber"] = this.partNumber;
55099
+ data["partRevision"] = this.partRevision;
55100
+ data["partName"] = this.partName;
55101
+ data["drawing"] = this.drawing;
55102
+ data["drawingRevision"] = this.drawingRevision;
55103
+ data["createdBy"] = this.createdBy;
55104
+ data["created"] = this.created ? this.created.toISOString() : undefined as any;
55105
+ data["status"] = this.status;
55106
+ data["source"] = this.source;
55107
+ return data;
55108
+ }
55109
+ }
55110
+
55111
+ export interface IMeasurementFormListDto {
55112
+ id: string;
55113
+ schemaId: string;
55114
+ versionId: number;
55115
+ customerId?: string | null;
55116
+ customerName?: string | null;
55117
+ partNumber?: string | null;
55118
+ partRevision?: string | null;
55119
+ partName?: string | null;
55120
+ drawing: string;
55121
+ drawingRevision?: string | null;
55122
+ createdBy: string;
55123
+ created: Date;
55124
+ status: MeasurementFormStatus;
55125
+ source: MeasurementFormSource;
55126
+ }
55127
+
54949
55128
  export class ListLinkableMeasurementFormSchemasRequest implements IListLinkableMeasurementFormSchemasRequest {
54950
55129
  schemaId!: string;
54951
55130
  pageSize?: number | null;
@@ -56614,6 +56793,78 @@ export interface IListMeasurementFormSchemasWithHistoryRequest {
56614
56793
  continuationToken?: string | null;
56615
56794
  }
56616
56795
 
56796
+ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSchemasRequest {
56797
+ pageSize?: number | null;
56798
+ customerId?: string | null;
56799
+ customerName?: string | null;
56800
+ partName?: string | null;
56801
+ partNumber?: string | null;
56802
+ partRevision?: string | null;
56803
+ drawing?: string | null;
56804
+ drawingRevision?: string | null;
56805
+ filter?: string | null;
56806
+ continuationToken?: string | null;
56807
+
56808
+ constructor(data?: IListMeasurementFormSchemasRequest) {
56809
+ if (data) {
56810
+ for (var property in data) {
56811
+ if (data.hasOwnProperty(property))
56812
+ (this as any)[property] = (data as any)[property];
56813
+ }
56814
+ }
56815
+ }
56816
+
56817
+ init(_data?: any) {
56818
+ if (_data) {
56819
+ this.pageSize = _data["pageSize"];
56820
+ this.customerId = _data["customerId"];
56821
+ this.customerName = _data["customerName"];
56822
+ this.partName = _data["partName"];
56823
+ this.partNumber = _data["partNumber"];
56824
+ this.partRevision = _data["partRevision"];
56825
+ this.drawing = _data["drawing"];
56826
+ this.drawingRevision = _data["drawingRevision"];
56827
+ this.filter = _data["filter"];
56828
+ this.continuationToken = _data["continuationToken"];
56829
+ }
56830
+ }
56831
+
56832
+ static fromJS(data: any): ListMeasurementFormSchemasRequest {
56833
+ data = typeof data === 'object' ? data : {};
56834
+ let result = new ListMeasurementFormSchemasRequest();
56835
+ result.init(data);
56836
+ return result;
56837
+ }
56838
+
56839
+ toJSON(data?: any) {
56840
+ data = typeof data === 'object' ? data : {};
56841
+ data["pageSize"] = this.pageSize;
56842
+ data["customerId"] = this.customerId;
56843
+ data["customerName"] = this.customerName;
56844
+ data["partName"] = this.partName;
56845
+ data["partNumber"] = this.partNumber;
56846
+ data["partRevision"] = this.partRevision;
56847
+ data["drawing"] = this.drawing;
56848
+ data["drawingRevision"] = this.drawingRevision;
56849
+ data["filter"] = this.filter;
56850
+ data["continuationToken"] = this.continuationToken;
56851
+ return data;
56852
+ }
56853
+ }
56854
+
56855
+ export interface IListMeasurementFormSchemasRequest {
56856
+ pageSize?: number | null;
56857
+ customerId?: string | null;
56858
+ customerName?: string | null;
56859
+ partName?: string | null;
56860
+ partNumber?: string | null;
56861
+ partRevision?: string | null;
56862
+ drawing?: string | null;
56863
+ drawingRevision?: string | null;
56864
+ filter?: string | null;
56865
+ continuationToken?: string | null;
56866
+ }
56867
+
56617
56868
  export class PagedResultOfMeasurementFormInstanceOverviewDto implements IPagedResultOfMeasurementFormInstanceOverviewDto {
56618
56869
  results!: MeasurementFormInstanceOverviewDto[];
56619
56870
  continuationToken?: string | null;
@@ -60989,6 +61240,7 @@ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessag
60989
61240
  workorderId?: string;
60990
61241
  companyId?: string;
60991
61242
  content?: string;
61243
+ contentParts?: WorkOrderDiscussionContent[] | null;
60992
61244
  senderUpn?: string;
60993
61245
  senderName?: string;
60994
61246
  operationId?: string | null;
@@ -61011,6 +61263,11 @@ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessag
61011
61263
  this.workorderId = _data["workorderId"];
61012
61264
  this.companyId = _data["companyId"];
61013
61265
  this.content = _data["content"];
61266
+ if (Array.isArray(_data["contentParts"])) {
61267
+ this.contentParts = [] as any;
61268
+ for (let item of _data["contentParts"])
61269
+ this.contentParts!.push(WorkOrderDiscussionContent.fromJS(item));
61270
+ }
61014
61271
  this.senderUpn = _data["senderUpn"];
61015
61272
  this.senderName = _data["senderName"];
61016
61273
  this.operationId = _data["operationId"];
@@ -61033,6 +61290,11 @@ export class WorkorderDiscussionMessageDto implements IWorkorderDiscussionMessag
61033
61290
  data["workorderId"] = this.workorderId;
61034
61291
  data["companyId"] = this.companyId;
61035
61292
  data["content"] = this.content;
61293
+ if (Array.isArray(this.contentParts)) {
61294
+ data["contentParts"] = [];
61295
+ for (let item of this.contentParts)
61296
+ data["contentParts"].push(item ? item.toJSON() : undefined as any);
61297
+ }
61036
61298
  data["senderUpn"] = this.senderUpn;
61037
61299
  data["senderName"] = this.senderName;
61038
61300
  data["operationId"] = this.operationId;
@@ -61048,6 +61310,7 @@ export interface IWorkorderDiscussionMessageDto {
61048
61310
  workorderId?: string;
61049
61311
  companyId?: string;
61050
61312
  content?: string;
61313
+ contentParts?: WorkOrderDiscussionContent[] | null;
61051
61314
  senderUpn?: string;
61052
61315
  senderName?: string;
61053
61316
  operationId?: string | null;
@@ -61056,6 +61319,48 @@ export interface IWorkorderDiscussionMessageDto {
61056
61319
  created?: Date;
61057
61320
  }
61058
61321
 
61322
+ export class WorkOrderDiscussionContent implements IWorkOrderDiscussionContent {
61323
+ type?: WorkOrderDiscussionContentType;
61324
+ value?: string;
61325
+
61326
+ constructor(data?: IWorkOrderDiscussionContent) {
61327
+ if (data) {
61328
+ for (var property in data) {
61329
+ if (data.hasOwnProperty(property))
61330
+ (this as any)[property] = (data as any)[property];
61331
+ }
61332
+ }
61333
+ }
61334
+
61335
+ init(_data?: any) {
61336
+ if (_data) {
61337
+ this.type = _data["type"];
61338
+ this.value = _data["value"];
61339
+ }
61340
+ }
61341
+
61342
+ static fromJS(data: any): WorkOrderDiscussionContent {
61343
+ data = typeof data === 'object' ? data : {};
61344
+ let result = new WorkOrderDiscussionContent();
61345
+ result.init(data);
61346
+ return result;
61347
+ }
61348
+
61349
+ toJSON(data?: any) {
61350
+ data = typeof data === 'object' ? data : {};
61351
+ data["type"] = this.type;
61352
+ data["value"] = this.value;
61353
+ return data;
61354
+ }
61355
+ }
61356
+
61357
+ export interface IWorkOrderDiscussionContent {
61358
+ type?: WorkOrderDiscussionContentType;
61359
+ value?: string;
61360
+ }
61361
+
61362
+ export type WorkOrderDiscussionContentType = 0 | 1;
61363
+
61059
61364
  export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
61060
61365
  message!: string;
61061
61366
  operationId?: string | null;