@ignos/api-client 20250806.0.12310-alpha → 20250808.0.12338

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.
@@ -1155,6 +1155,12 @@ export interface IMeClient {
1155
1155
  setIsBetaTester(request: SetIsBetaTesterRequest): Promise<UserDto>;
1156
1156
 
1157
1157
  updateCurrentUserLastSeen(): Promise<void>;
1158
+
1159
+ getRoles(): Promise<string[]>;
1160
+
1161
+ setTestRoles(roles: string[]): Promise<void>;
1162
+
1163
+ removeAllTestRoles(): Promise<void>;
1158
1164
  }
1159
1165
 
1160
1166
  export class MeClient extends AuthorizedApiBase implements IMeClient {
@@ -1315,6 +1321,114 @@ export class MeClient extends AuthorizedApiBase implements IMeClient {
1315
1321
  }
1316
1322
  return Promise.resolve<void>(null as any);
1317
1323
  }
1324
+
1325
+ getRoles(): Promise<string[]> {
1326
+ let url_ = this.baseUrl + "/me/roles";
1327
+ url_ = url_.replace(/[?&]$/, "");
1328
+
1329
+ let options_: RequestInit = {
1330
+ method: "GET",
1331
+ headers: {
1332
+ "Accept": "application/json"
1333
+ }
1334
+ };
1335
+
1336
+ return this.transformOptions(options_).then(transformedOptions_ => {
1337
+ return this.http.fetch(url_, transformedOptions_);
1338
+ }).then((_response: Response) => {
1339
+ return this.processGetRoles(_response);
1340
+ });
1341
+ }
1342
+
1343
+ protected processGetRoles(response: Response): Promise<string[]> {
1344
+ const status = response.status;
1345
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1346
+ if (status === 200) {
1347
+ return response.text().then((_responseText) => {
1348
+ let result200: any = null;
1349
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1350
+ if (Array.isArray(resultData200)) {
1351
+ result200 = [] as any;
1352
+ for (let item of resultData200)
1353
+ result200!.push(item);
1354
+ }
1355
+ return result200;
1356
+ });
1357
+ } else if (status !== 200 && status !== 204) {
1358
+ return response.text().then((_responseText) => {
1359
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1360
+ });
1361
+ }
1362
+ return Promise.resolve<string[]>(null as any);
1363
+ }
1364
+
1365
+ setTestRoles(roles: string[]): Promise<void> {
1366
+ let url_ = this.baseUrl + "/me/roles";
1367
+ url_ = url_.replace(/[?&]$/, "");
1368
+
1369
+ const content_ = JSON.stringify(roles);
1370
+
1371
+ let options_: RequestInit = {
1372
+ body: content_,
1373
+ method: "POST",
1374
+ headers: {
1375
+ "Content-Type": "application/json",
1376
+ }
1377
+ };
1378
+
1379
+ return this.transformOptions(options_).then(transformedOptions_ => {
1380
+ return this.http.fetch(url_, transformedOptions_);
1381
+ }).then((_response: Response) => {
1382
+ return this.processSetTestRoles(_response);
1383
+ });
1384
+ }
1385
+
1386
+ protected processSetTestRoles(response: Response): Promise<void> {
1387
+ const status = response.status;
1388
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1389
+ if (status === 200) {
1390
+ return response.text().then((_responseText) => {
1391
+ return;
1392
+ });
1393
+ } else if (status !== 200 && status !== 204) {
1394
+ return response.text().then((_responseText) => {
1395
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1396
+ });
1397
+ }
1398
+ return Promise.resolve<void>(null as any);
1399
+ }
1400
+
1401
+ removeAllTestRoles(): Promise<void> {
1402
+ let url_ = this.baseUrl + "/me/roles";
1403
+ url_ = url_.replace(/[?&]$/, "");
1404
+
1405
+ let options_: RequestInit = {
1406
+ method: "DELETE",
1407
+ headers: {
1408
+ }
1409
+ };
1410
+
1411
+ return this.transformOptions(options_).then(transformedOptions_ => {
1412
+ return this.http.fetch(url_, transformedOptions_);
1413
+ }).then((_response: Response) => {
1414
+ return this.processRemoveAllTestRoles(_response);
1415
+ });
1416
+ }
1417
+
1418
+ protected processRemoveAllTestRoles(response: Response): Promise<void> {
1419
+ const status = response.status;
1420
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
1421
+ if (status === 200) {
1422
+ return response.text().then((_responseText) => {
1423
+ return;
1424
+ });
1425
+ } else if (status !== 200 && status !== 204) {
1426
+ return response.text().then((_responseText) => {
1427
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1428
+ });
1429
+ }
1430
+ return Promise.resolve<void>(null as any);
1431
+ }
1318
1432
  }
1319
1433
 
1320
1434
  export interface IUsersClient {
@@ -6890,6 +7004,8 @@ export interface IMachinesClient {
6890
7004
 
6891
7005
  getMachineErpData(id: number): Promise<MachineErpDataDto>;
6892
7006
 
7007
+ getWorkOrderTimeline(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]>;
7008
+
6893
7009
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
6894
7010
 
6895
7011
  getCrossCompanyUtilizationSummary(): Promise<CrossCompanyUtilizationSummaryDto>;
@@ -7407,6 +7523,53 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
7407
7523
  return Promise.resolve<MachineErpDataDto>(null as any);
7408
7524
  }
7409
7525
 
7526
+ getWorkOrderTimeline(id: number, startTime: Date | null | undefined, endTime: Date | null | undefined): Promise<WorkOrderDatapoint[]> {
7527
+ let url_ = this.baseUrl + "/machines/{id}/workorder/timeline?";
7528
+ if (id === undefined || id === null)
7529
+ throw new Error("The parameter 'id' must be defined.");
7530
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
7531
+ if (startTime !== undefined && startTime !== null)
7532
+ url_ += "startTime=" + encodeURIComponent(startTime ? "" + startTime.toISOString() : "") + "&";
7533
+ if (endTime !== undefined && endTime !== null)
7534
+ url_ += "endTime=" + encodeURIComponent(endTime ? "" + endTime.toISOString() : "") + "&";
7535
+ url_ = url_.replace(/[?&]$/, "");
7536
+
7537
+ let options_: RequestInit = {
7538
+ method: "GET",
7539
+ headers: {
7540
+ "Accept": "application/json"
7541
+ }
7542
+ };
7543
+
7544
+ return this.transformOptions(options_).then(transformedOptions_ => {
7545
+ return this.http.fetch(url_, transformedOptions_);
7546
+ }).then((_response: Response) => {
7547
+ return this.processGetWorkOrderTimeline(_response);
7548
+ });
7549
+ }
7550
+
7551
+ protected processGetWorkOrderTimeline(response: Response): Promise<WorkOrderDatapoint[]> {
7552
+ const status = response.status;
7553
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
7554
+ if (status === 200) {
7555
+ return response.text().then((_responseText) => {
7556
+ let result200: any = null;
7557
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
7558
+ if (Array.isArray(resultData200)) {
7559
+ result200 = [] as any;
7560
+ for (let item of resultData200)
7561
+ result200!.push(WorkOrderDatapoint.fromJS(item));
7562
+ }
7563
+ return result200;
7564
+ });
7565
+ } else if (status !== 200 && status !== 204) {
7566
+ return response.text().then((_responseText) => {
7567
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7568
+ });
7569
+ }
7570
+ return Promise.resolve<WorkOrderDatapoint[]>(null as any);
7571
+ }
7572
+
7410
7573
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto> {
7411
7574
  let url_ = this.baseUrl + "/machines/utilization/summary";
7412
7575
  url_ = url_.replace(/[?&]$/, "");
@@ -17959,7 +18122,7 @@ export class MesResourceClient extends AuthorizedApiBase implements IMesResource
17959
18122
 
17960
18123
  export interface IMeasurementFormSchemasClient {
17961
18124
 
17962
- listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
18125
+ listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto>;
17963
18126
 
17964
18127
  createMeasurementForm(request: CreateMeasurementFormSchema): Promise<MeasurementFormDto>;
17965
18128
 
@@ -18044,7 +18207,7 @@ export interface IMeasurementFormSchemasClient {
18044
18207
  */
18045
18208
  importMeasurementFormSchema(request: ImportMeasurementFormSchema): Promise<MeasurementFormDto>;
18046
18209
 
18047
- listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
18210
+ listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
18048
18211
 
18049
18212
  postListMeasurementFormNeeds(request: ListMeasurementFormNeedsRequest | undefined): Promise<PagedResultOfMeasurementFormNeedDto>;
18050
18213
 
@@ -18056,7 +18219,7 @@ export interface IMeasurementFormSchemasClient {
18056
18219
 
18057
18220
  uploadNeedDrawing(id: string, request: UploadDrawingRequest): Promise<MeasurementFormNeedDto>;
18058
18221
 
18059
- listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto>;
18222
+ listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto>;
18060
18223
 
18061
18224
  postListMeasurementFormSchemasNotNeeded(request: ListMeasurementFormSchemasNotNeededRequest | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto>;
18062
18225
 
@@ -18096,7 +18259,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
18096
18259
  this.baseUrl = baseUrl ?? "";
18097
18260
  }
18098
18261
 
18099
- listMeasurmentFormSchemas(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormListDto> {
18262
+ 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> {
18100
18263
  let url_ = this.baseUrl + "/measurementforms/schemas?";
18101
18264
  if (pageSize === null)
18102
18265
  throw new Error("The parameter 'pageSize' cannot be null.");
@@ -18108,6 +18271,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
18108
18271
  url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
18109
18272
  if (partNumber !== undefined && partNumber !== null)
18110
18273
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
18274
+ if (partName !== undefined && partName !== null)
18275
+ url_ += "partName=" + encodeURIComponent("" + partName) + "&";
18111
18276
  if (partRevision !== undefined && partRevision !== null)
18112
18277
  url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
18113
18278
  if (drawing !== undefined && drawing !== null)
@@ -19563,7 +19728,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19563
19728
  return Promise.resolve<MeasurementFormDto>(null as any);
19564
19729
  }
19565
19730
 
19566
- listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto> {
19731
+ listMeasurementFormNeeds(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined, onlyWithoutDrawingUrl: boolean | null | undefined): Promise<PagedResultOfMeasurementFormNeedDto> {
19567
19732
  let url_ = this.baseUrl + "/measurementforms/schemas/needs?";
19568
19733
  if (pageSize === null)
19569
19734
  throw new Error("The parameter 'pageSize' cannot be null.");
@@ -19575,6 +19740,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19575
19740
  url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
19576
19741
  if (partNumber !== undefined && partNumber !== null)
19577
19742
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
19743
+ if (partName !== undefined && partName !== null)
19744
+ url_ += "partName=" + encodeURIComponent("" + partName) + "&";
19578
19745
  if (partRevision !== undefined && partRevision !== null)
19579
19746
  url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
19580
19747
  if (drawing !== undefined && drawing !== null)
@@ -19825,7 +19992,7 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19825
19992
  return Promise.resolve<MeasurementFormNeedDto>(null as any);
19826
19993
  }
19827
19994
 
19828
- listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto> {
19995
+ listMeasurmentFormSchemasNotNeeded(pageSize: number | undefined, customerId: string | null | undefined, customerName: string | null | undefined, partNumber: string | null | undefined, partName: string | null | undefined, partRevision: string | null | undefined, drawing: string | null | undefined, drawingRevision: string | null | undefined, filter: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormSchemaNotNeededDto> {
19829
19996
  let url_ = this.baseUrl + "/measurementforms/schemas/schemasnotneeded?";
19830
19997
  if (pageSize === null)
19831
19998
  throw new Error("The parameter 'pageSize' cannot be null.");
@@ -19837,6 +20004,8 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
19837
20004
  url_ += "customerName=" + encodeURIComponent("" + customerName) + "&";
19838
20005
  if (partNumber !== undefined && partNumber !== null)
19839
20006
  url_ += "partNumber=" + encodeURIComponent("" + partNumber) + "&";
20007
+ if (partName !== undefined && partName !== null)
20008
+ url_ += "partName=" + encodeURIComponent("" + partName) + "&";
19840
20009
  if (partRevision !== undefined && partRevision !== null)
19841
20010
  url_ += "partRevision=" + encodeURIComponent("" + partRevision) + "&";
19842
20011
  if (drawing !== undefined && drawing !== null)
@@ -23194,7 +23363,7 @@ export interface IWorkordersClient {
23194
23363
 
23195
23364
  getLastRead(id: string, operationId: string | null | undefined, resourceId: string | null | undefined): Promise<WorkorderDiscussionReadStatusDto>;
23196
23365
 
23197
- setLastRead(id: string, request: SetDiscussionLastRead): Promise<void>;
23366
+ setLastRead(id: string, request: SetDiscussionLastReadRequest): Promise<void>;
23198
23367
  }
23199
23368
 
23200
23369
  export class WorkordersClient extends AuthorizedApiBase implements IWorkordersClient {
@@ -24500,7 +24669,7 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
24500
24669
  return Promise.resolve<WorkorderDiscussionReadStatusDto>(null as any);
24501
24670
  }
24502
24671
 
24503
- setLastRead(id: string, request: SetDiscussionLastRead): Promise<void> {
24672
+ setLastRead(id: string, request: SetDiscussionLastReadRequest): Promise<void> {
24504
24673
  let url_ = this.baseUrl + "/erp/workorders/{id}/discussion/last-read";
24505
24674
  if (id === undefined || id === null)
24506
24675
  throw new Error("The parameter 'id' must be defined.");
@@ -35708,6 +35877,78 @@ export interface IWorkOrderProjectDto {
35708
35877
  projectManager?: string | null;
35709
35878
  }
35710
35879
 
35880
+ export class WorkOrderDatapoint implements IWorkOrderDatapoint {
35881
+ workOrder!: string;
35882
+ id!: number;
35883
+ externalId!: string;
35884
+ subType?: string | null;
35885
+ startTime!: number;
35886
+ endTime?: number | null;
35887
+ metaData?: { [key: string]: string; } | null;
35888
+
35889
+ constructor(data?: IWorkOrderDatapoint) {
35890
+ if (data) {
35891
+ for (var property in data) {
35892
+ if (data.hasOwnProperty(property))
35893
+ (<any>this)[property] = (<any>data)[property];
35894
+ }
35895
+ }
35896
+ }
35897
+
35898
+ init(_data?: any) {
35899
+ if (_data) {
35900
+ this.workOrder = _data["workOrder"];
35901
+ this.id = _data["id"];
35902
+ this.externalId = _data["externalId"];
35903
+ this.subType = _data["subType"];
35904
+ this.startTime = _data["startTime"];
35905
+ this.endTime = _data["endTime"];
35906
+ if (_data["metaData"]) {
35907
+ this.metaData = {} as any;
35908
+ for (let key in _data["metaData"]) {
35909
+ if (_data["metaData"].hasOwnProperty(key))
35910
+ (<any>this.metaData)![key] = _data["metaData"][key];
35911
+ }
35912
+ }
35913
+ }
35914
+ }
35915
+
35916
+ static fromJS(data: any): WorkOrderDatapoint {
35917
+ data = typeof data === 'object' ? data : {};
35918
+ let result = new WorkOrderDatapoint();
35919
+ result.init(data);
35920
+ return result;
35921
+ }
35922
+
35923
+ toJSON(data?: any) {
35924
+ data = typeof data === 'object' ? data : {};
35925
+ data["workOrder"] = this.workOrder;
35926
+ data["id"] = this.id;
35927
+ data["externalId"] = this.externalId;
35928
+ data["subType"] = this.subType;
35929
+ data["startTime"] = this.startTime;
35930
+ data["endTime"] = this.endTime;
35931
+ if (this.metaData) {
35932
+ data["metaData"] = {};
35933
+ for (let key in this.metaData) {
35934
+ if (this.metaData.hasOwnProperty(key))
35935
+ (<any>data["metaData"])[key] = (<any>this.metaData)[key];
35936
+ }
35937
+ }
35938
+ return data;
35939
+ }
35940
+ }
35941
+
35942
+ export interface IWorkOrderDatapoint {
35943
+ workOrder: string;
35944
+ id: number;
35945
+ externalId: string;
35946
+ subType?: string | null;
35947
+ startTime: number;
35948
+ endTime?: number | null;
35949
+ metaData?: { [key: string]: string; } | null;
35950
+ }
35951
+
35711
35952
  export class UtilizationSummaryDto implements IUtilizationSummaryDto {
35712
35953
  factory!: FactoryUtilizationDto;
35713
35954
  groups!: MachineGroupUtilizationDto[];
@@ -52044,6 +52285,7 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
52044
52285
  pageSize?: number | null;
52045
52286
  customerId?: string | null;
52046
52287
  customerName?: string | null;
52288
+ partName?: string | null;
52047
52289
  partNumber?: string | null;
52048
52290
  partRevision?: string | null;
52049
52291
  drawing?: string | null;
@@ -52065,6 +52307,7 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
52065
52307
  this.pageSize = _data["pageSize"];
52066
52308
  this.customerId = _data["customerId"];
52067
52309
  this.customerName = _data["customerName"];
52310
+ this.partName = _data["partName"];
52068
52311
  this.partNumber = _data["partNumber"];
52069
52312
  this.partRevision = _data["partRevision"];
52070
52313
  this.drawing = _data["drawing"];
@@ -52086,6 +52329,7 @@ export class ListMeasurementFormSchemasRequest implements IListMeasurementFormSc
52086
52329
  data["pageSize"] = this.pageSize;
52087
52330
  data["customerId"] = this.customerId;
52088
52331
  data["customerName"] = this.customerName;
52332
+ data["partName"] = this.partName;
52089
52333
  data["partNumber"] = this.partNumber;
52090
52334
  data["partRevision"] = this.partRevision;
52091
52335
  data["drawing"] = this.drawing;
@@ -52100,6 +52344,7 @@ export interface IListMeasurementFormSchemasRequest {
52100
52344
  pageSize?: number | null;
52101
52345
  customerId?: string | null;
52102
52346
  customerName?: string | null;
52347
+ partName?: string | null;
52103
52348
  partNumber?: string | null;
52104
52349
  partRevision?: string | null;
52105
52350
  drawing?: string | null;
@@ -54035,6 +54280,7 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
54035
54280
  customerId?: string | null;
54036
54281
  customerName?: string | null;
54037
54282
  partNumber!: string;
54283
+ partName?: string | null;
54038
54284
  partRevision?: string | null;
54039
54285
  drawing?: string | null;
54040
54286
  drawingRevision?: string | null;
@@ -54064,6 +54310,7 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
54064
54310
  this.customerId = _data["customerId"];
54065
54311
  this.customerName = _data["customerName"];
54066
54312
  this.partNumber = _data["partNumber"];
54313
+ this.partName = _data["partName"];
54067
54314
  this.partRevision = _data["partRevision"];
54068
54315
  this.drawing = _data["drawing"];
54069
54316
  this.drawingRevision = _data["drawingRevision"];
@@ -54098,6 +54345,7 @@ export class ImportMeasurementFormSchema implements IImportMeasurementFormSchema
54098
54345
  data["customerId"] = this.customerId;
54099
54346
  data["customerName"] = this.customerName;
54100
54347
  data["partNumber"] = this.partNumber;
54348
+ data["partName"] = this.partName;
54101
54349
  data["partRevision"] = this.partRevision;
54102
54350
  data["drawing"] = this.drawing;
54103
54351
  data["drawingRevision"] = this.drawingRevision;
@@ -54125,6 +54373,7 @@ export interface IImportMeasurementFormSchema {
54125
54373
  customerId?: string | null;
54126
54374
  customerName?: string | null;
54127
54375
  partNumber: string;
54376
+ partName?: string | null;
54128
54377
  partRevision?: string | null;
54129
54378
  drawing?: string | null;
54130
54379
  drawingRevision?: string | null;
@@ -54141,6 +54390,7 @@ export interface IImportMeasurementFormSchema {
54141
54390
  export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImportLinkedSchemaDto {
54142
54391
  customerId?: string | null;
54143
54392
  partNumber?: string | null;
54393
+ partName?: string | null;
54144
54394
  partRevision?: string | null;
54145
54395
  drawing!: string;
54146
54396
  drawingRevision?: string | null;
@@ -54159,6 +54409,7 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
54159
54409
  if (_data) {
54160
54410
  this.customerId = _data["customerId"];
54161
54411
  this.partNumber = _data["partNumber"];
54412
+ this.partName = _data["partName"];
54162
54413
  this.partRevision = _data["partRevision"];
54163
54414
  this.drawing = _data["drawing"];
54164
54415
  this.drawingRevision = _data["drawingRevision"];
@@ -54177,6 +54428,7 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
54177
54428
  data = typeof data === 'object' ? data : {};
54178
54429
  data["customerId"] = this.customerId;
54179
54430
  data["partNumber"] = this.partNumber;
54431
+ data["partName"] = this.partName;
54180
54432
  data["partRevision"] = this.partRevision;
54181
54433
  data["drawing"] = this.drawing;
54182
54434
  data["drawingRevision"] = this.drawingRevision;
@@ -54188,6 +54440,7 @@ export class MeasurementFormImportLinkedSchemaDto implements IMeasurementFormImp
54188
54440
  export interface IMeasurementFormImportLinkedSchemaDto {
54189
54441
  customerId?: string | null;
54190
54442
  partNumber?: string | null;
54443
+ partName?: string | null;
54191
54444
  partRevision?: string | null;
54192
54445
  drawing: string;
54193
54446
  drawingRevision?: string | null;
@@ -54531,6 +54784,7 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
54531
54784
  customerName?: string | null;
54532
54785
  partNumber?: string | null;
54533
54786
  partRevision?: string | null;
54787
+ partName?: string | null;
54534
54788
  drawing?: string | null;
54535
54789
  drawingRevision?: string | null;
54536
54790
  workorder?: string | null;
@@ -54560,6 +54814,7 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
54560
54814
  this.customerName = _data["customerName"];
54561
54815
  this.partNumber = _data["partNumber"];
54562
54816
  this.partRevision = _data["partRevision"];
54817
+ this.partName = _data["partName"];
54563
54818
  this.drawing = _data["drawing"];
54564
54819
  this.drawingRevision = _data["drawingRevision"];
54565
54820
  this.workorder = _data["workorder"];
@@ -54589,6 +54844,7 @@ export class MeasurementFormNeedDto implements IMeasurementFormNeedDto {
54589
54844
  data["customerName"] = this.customerName;
54590
54845
  data["partNumber"] = this.partNumber;
54591
54846
  data["partRevision"] = this.partRevision;
54847
+ data["partName"] = this.partName;
54592
54848
  data["drawing"] = this.drawing;
54593
54849
  data["drawingRevision"] = this.drawingRevision;
54594
54850
  data["workorder"] = this.workorder;
@@ -54611,6 +54867,7 @@ export interface IMeasurementFormNeedDto {
54611
54867
  customerName?: string | null;
54612
54868
  partNumber?: string | null;
54613
54869
  partRevision?: string | null;
54870
+ partName?: string | null;
54614
54871
  drawing?: string | null;
54615
54872
  drawingRevision?: string | null;
54616
54873
  workorder?: string | null;
@@ -54628,6 +54885,7 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
54628
54885
  pageSize?: number | null;
54629
54886
  customerId?: string | null;
54630
54887
  customerName?: string | null;
54888
+ partName?: string | null;
54631
54889
  partNumber?: string | null;
54632
54890
  partRevision?: string | null;
54633
54891
  drawing?: string | null;
@@ -54650,6 +54908,7 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
54650
54908
  this.pageSize = _data["pageSize"];
54651
54909
  this.customerId = _data["customerId"];
54652
54910
  this.customerName = _data["customerName"];
54911
+ this.partName = _data["partName"];
54653
54912
  this.partNumber = _data["partNumber"];
54654
54913
  this.partRevision = _data["partRevision"];
54655
54914
  this.drawing = _data["drawing"];
@@ -54672,6 +54931,7 @@ export class ListMeasurementFormNeedsRequest implements IListMeasurementFormNeed
54672
54931
  data["pageSize"] = this.pageSize;
54673
54932
  data["customerId"] = this.customerId;
54674
54933
  data["customerName"] = this.customerName;
54934
+ data["partName"] = this.partName;
54675
54935
  data["partNumber"] = this.partNumber;
54676
54936
  data["partRevision"] = this.partRevision;
54677
54937
  data["drawing"] = this.drawing;
@@ -54687,6 +54947,7 @@ export interface IListMeasurementFormNeedsRequest {
54687
54947
  pageSize?: number | null;
54688
54948
  customerId?: string | null;
54689
54949
  customerName?: string | null;
54950
+ partName?: string | null;
54690
54951
  partNumber?: string | null;
54691
54952
  partRevision?: string | null;
54692
54953
  drawing?: string | null;
@@ -54888,6 +55149,7 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
54888
55149
  customerId?: string | null;
54889
55150
  customerName?: string | null;
54890
55151
  partNumber?: string | null;
55152
+ partName?: string | null;
54891
55153
  partRevision?: string | null;
54892
55154
  drawing?: string | null;
54893
55155
  drawingRevision?: string | null;
@@ -54909,6 +55171,7 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
54909
55171
  this.customerId = _data["customerId"];
54910
55172
  this.customerName = _data["customerName"];
54911
55173
  this.partNumber = _data["partNumber"];
55174
+ this.partName = _data["partName"];
54912
55175
  this.partRevision = _data["partRevision"];
54913
55176
  this.drawing = _data["drawing"];
54914
55177
  this.drawingRevision = _data["drawingRevision"];
@@ -54930,6 +55193,7 @@ export class ListMeasurementFormSchemasNotNeededRequest implements IListMeasurem
54930
55193
  data["customerId"] = this.customerId;
54931
55194
  data["customerName"] = this.customerName;
54932
55195
  data["partNumber"] = this.partNumber;
55196
+ data["partName"] = this.partName;
54933
55197
  data["partRevision"] = this.partRevision;
54934
55198
  data["drawing"] = this.drawing;
54935
55199
  data["drawingRevision"] = this.drawingRevision;
@@ -54944,6 +55208,7 @@ export interface IListMeasurementFormSchemasNotNeededRequest {
54944
55208
  customerId?: string | null;
54945
55209
  customerName?: string | null;
54946
55210
  partNumber?: string | null;
55211
+ partName?: string | null;
54947
55212
  partRevision?: string | null;
54948
55213
  drawing?: string | null;
54949
55214
  drawingRevision?: string | null;
@@ -55129,6 +55394,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
55129
55394
  latestSchemaDefinitionId?: string | null;
55130
55395
  partNumber?: string | null;
55131
55396
  partRevision?: string | null;
55397
+ partName?: string | null;
55132
55398
  drawing?: string | null;
55133
55399
  drawingRevision?: string | null;
55134
55400
 
@@ -55157,6 +55423,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
55157
55423
  this.latestSchemaDefinitionId = _data["latestSchemaDefinitionId"];
55158
55424
  this.partNumber = _data["partNumber"];
55159
55425
  this.partRevision = _data["partRevision"];
55426
+ this.partName = _data["partName"];
55160
55427
  this.drawing = _data["drawing"];
55161
55428
  this.drawingRevision = _data["drawingRevision"];
55162
55429
  }
@@ -55185,6 +55452,7 @@ export class SchemaFeedbackDto implements ISchemaFeedbackDto {
55185
55452
  data["latestSchemaDefinitionId"] = this.latestSchemaDefinitionId;
55186
55453
  data["partNumber"] = this.partNumber;
55187
55454
  data["partRevision"] = this.partRevision;
55455
+ data["partName"] = this.partName;
55188
55456
  data["drawing"] = this.drawing;
55189
55457
  data["drawingRevision"] = this.drawingRevision;
55190
55458
  return data;
@@ -55206,6 +55474,7 @@ export interface ISchemaFeedbackDto {
55206
55474
  latestSchemaDefinitionId?: string | null;
55207
55475
  partNumber?: string | null;
55208
55476
  partRevision?: string | null;
55477
+ partName?: string | null;
55209
55478
  drawing?: string | null;
55210
55479
  drawingRevision?: string | null;
55211
55480
  }
@@ -55410,6 +55679,7 @@ export interface IPagedResultOfMeasurementFormInstanceOverviewDto {
55410
55679
  export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInstanceOverviewDto {
55411
55680
  id!: string;
55412
55681
  readonly!: boolean;
55682
+ partName?: string | null;
55413
55683
  partNumber?: string | null;
55414
55684
  partRevision?: string | null;
55415
55685
  drawing?: string | null;
@@ -55440,6 +55710,7 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
55440
55710
  if (_data) {
55441
55711
  this.id = _data["id"];
55442
55712
  this.readonly = _data["readonly"];
55713
+ this.partName = _data["partName"];
55443
55714
  this.partNumber = _data["partNumber"];
55444
55715
  this.partRevision = _data["partRevision"];
55445
55716
  this.drawing = _data["drawing"];
@@ -55470,6 +55741,7 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
55470
55741
  data = typeof data === 'object' ? data : {};
55471
55742
  data["id"] = this.id;
55472
55743
  data["readonly"] = this.readonly;
55744
+ data["partName"] = this.partName;
55473
55745
  data["partNumber"] = this.partNumber;
55474
55746
  data["partRevision"] = this.partRevision;
55475
55747
  data["drawing"] = this.drawing;
@@ -55493,6 +55765,7 @@ export class MeasurementFormInstanceOverviewDto implements IMeasurementFormInsta
55493
55765
  export interface IMeasurementFormInstanceOverviewDto {
55494
55766
  id: string;
55495
55767
  readonly: boolean;
55768
+ partName?: string | null;
55496
55769
  partNumber?: string | null;
55497
55770
  partRevision?: string | null;
55498
55771
  drawing?: string | null;
@@ -55760,6 +56033,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55760
56033
  id!: string;
55761
56034
  readonly!: boolean;
55762
56035
  partNumber?: string | null;
56036
+ partName?: string | null;
55763
56037
  partRevision?: string | null;
55764
56038
  drawing?: string | null;
55765
56039
  drawingRevision?: string | null;
@@ -55795,6 +56069,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55795
56069
  this.id = _data["id"];
55796
56070
  this.readonly = _data["readonly"];
55797
56071
  this.partNumber = _data["partNumber"];
56072
+ this.partName = _data["partName"];
55798
56073
  this.partRevision = _data["partRevision"];
55799
56074
  this.drawing = _data["drawing"];
55800
56075
  this.drawingRevision = _data["drawingRevision"];
@@ -55836,6 +56111,7 @@ export class MeasurementFormInstanceDto implements IMeasurementFormInstanceDto {
55836
56111
  data["id"] = this.id;
55837
56112
  data["readonly"] = this.readonly;
55838
56113
  data["partNumber"] = this.partNumber;
56114
+ data["partName"] = this.partName;
55839
56115
  data["partRevision"] = this.partRevision;
55840
56116
  data["drawing"] = this.drawing;
55841
56117
  data["drawingRevision"] = this.drawingRevision;
@@ -55870,6 +56146,7 @@ export interface IMeasurementFormInstanceDto {
55870
56146
  id: string;
55871
56147
  readonly: boolean;
55872
56148
  partNumber?: string | null;
56149
+ partName?: string | null;
55873
56150
  partRevision?: string | null;
55874
56151
  drawing?: string | null;
55875
56152
  drawingRevision?: string | null;
@@ -60195,10 +60472,7 @@ export interface IWorkorderDiscussionMessageDto {
60195
60472
  }
60196
60473
 
60197
60474
  export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest {
60198
- companyId?: string;
60199
- message?: string;
60200
- senderUpn?: string;
60201
- senderName?: string;
60475
+ message!: string;
60202
60476
  operationId?: string | null;
60203
60477
  operationName?: string | null;
60204
60478
  resourceId?: string | null;
@@ -60214,10 +60488,7 @@ export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest
60214
60488
 
60215
60489
  init(_data?: any) {
60216
60490
  if (_data) {
60217
- this.companyId = _data["companyId"];
60218
60491
  this.message = _data["message"];
60219
- this.senderUpn = _data["senderUpn"];
60220
- this.senderName = _data["senderName"];
60221
60492
  this.operationId = _data["operationId"];
60222
60493
  this.operationName = _data["operationName"];
60223
60494
  this.resourceId = _data["resourceId"];
@@ -60233,10 +60504,7 @@ export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest
60233
60504
 
60234
60505
  toJSON(data?: any) {
60235
60506
  data = typeof data === 'object' ? data : {};
60236
- data["companyId"] = this.companyId;
60237
60507
  data["message"] = this.message;
60238
- data["senderUpn"] = this.senderUpn;
60239
- data["senderName"] = this.senderName;
60240
60508
  data["operationId"] = this.operationId;
60241
60509
  data["operationName"] = this.operationName;
60242
60510
  data["resourceId"] = this.resourceId;
@@ -60245,10 +60513,7 @@ export class AddDiscussionMessageRequest implements IAddDiscussionMessageRequest
60245
60513
  }
60246
60514
 
60247
60515
  export interface IAddDiscussionMessageRequest {
60248
- companyId?: string;
60249
- message?: string;
60250
- senderUpn?: string;
60251
- senderName?: string;
60516
+ message: string;
60252
60517
  operationId?: string | null;
60253
60518
  operationName?: string | null;
60254
60519
  resourceId?: string | null;
@@ -60306,13 +60571,11 @@ export interface IWorkorderDiscussionReadStatusDto {
60306
60571
  lastRead?: Date;
60307
60572
  }
60308
60573
 
60309
- export class SetDiscussionLastRead implements ISetDiscussionLastRead {
60310
- workorderId?: string;
60574
+ export class SetDiscussionLastReadRequest implements ISetDiscussionLastReadRequest {
60311
60575
  operationId?: string | null;
60312
60576
  resourceId?: string | null;
60313
- userUpn?: string;
60314
60577
 
60315
- constructor(data?: ISetDiscussionLastRead) {
60578
+ constructor(data?: ISetDiscussionLastReadRequest) {
60316
60579
  if (data) {
60317
60580
  for (var property in data) {
60318
60581
  if (data.hasOwnProperty(property))
@@ -60323,35 +60586,29 @@ export class SetDiscussionLastRead implements ISetDiscussionLastRead {
60323
60586
 
60324
60587
  init(_data?: any) {
60325
60588
  if (_data) {
60326
- this.workorderId = _data["workorderId"];
60327
60589
  this.operationId = _data["operationId"];
60328
60590
  this.resourceId = _data["resourceId"];
60329
- this.userUpn = _data["userUpn"];
60330
60591
  }
60331
60592
  }
60332
60593
 
60333
- static fromJS(data: any): SetDiscussionLastRead {
60594
+ static fromJS(data: any): SetDiscussionLastReadRequest {
60334
60595
  data = typeof data === 'object' ? data : {};
60335
- let result = new SetDiscussionLastRead();
60596
+ let result = new SetDiscussionLastReadRequest();
60336
60597
  result.init(data);
60337
60598
  return result;
60338
60599
  }
60339
60600
 
60340
60601
  toJSON(data?: any) {
60341
60602
  data = typeof data === 'object' ? data : {};
60342
- data["workorderId"] = this.workorderId;
60343
60603
  data["operationId"] = this.operationId;
60344
60604
  data["resourceId"] = this.resourceId;
60345
- data["userUpn"] = this.userUpn;
60346
60605
  return data;
60347
60606
  }
60348
60607
  }
60349
60608
 
60350
- export interface ISetDiscussionLastRead {
60351
- workorderId?: string;
60609
+ export interface ISetDiscussionLastReadRequest {
60352
60610
  operationId?: string | null;
60353
60611
  resourceId?: string | null;
60354
- userUpn?: string;
60355
60612
  }
60356
60613
 
60357
60614
  function formatDate(d: Date) {