@ignos/api-client 20240320.0.9040 → 20240327.0.9055

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.
@@ -7810,6 +7810,8 @@ export interface ICncSetupClient {
7810
7810
 
7811
7811
  copyCncMachineOperations(request: CopyCncMachineOperations): Promise<CncMachineOperationDto[]>;
7812
7812
 
7813
+ copyToolsCncMachine(request: CopyToolsCncMachine): Promise<CncToolDto[]>;
7814
+
7813
7815
  createUploadProgramsInfo(id: string, request: UploadFileRequest): Promise<UploadFileDto[]>;
7814
7816
 
7815
7817
  listCncMachineOperationsPrograms(id: string, filterDeleted: CncFilterDeletedDto | undefined): Promise<ProgramFileDto[]>;
@@ -7854,6 +7856,10 @@ export interface ICncSetupClient {
7854
7856
 
7855
7857
  deleteCncMachineTool(cncMachineId: string, id: number): Promise<void>;
7856
7858
 
7859
+ uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto>;
7860
+
7861
+ deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
7862
+
7857
7863
  importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
7858
7864
  }
7859
7865
 
@@ -8921,6 +8927,50 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
8921
8927
  return Promise.resolve<CncMachineOperationDto[]>(null as any);
8922
8928
  }
8923
8929
 
8930
+ copyToolsCncMachine(request: CopyToolsCncMachine): Promise<CncToolDto[]> {
8931
+ let url_ = this.baseUrl + "/cncsetup/operations/copytoolscncmachine";
8932
+ url_ = url_.replace(/[?&]$/, "");
8933
+
8934
+ const content_ = JSON.stringify(request);
8935
+
8936
+ let options_: RequestInit = {
8937
+ body: content_,
8938
+ method: "POST",
8939
+ headers: {
8940
+ "Content-Type": "application/json",
8941
+ "Accept": "application/json"
8942
+ }
8943
+ };
8944
+
8945
+ return this.transformOptions(options_).then(transformedOptions_ => {
8946
+ return this.http.fetch(url_, transformedOptions_);
8947
+ }).then((_response: Response) => {
8948
+ return this.processCopyToolsCncMachine(_response);
8949
+ });
8950
+ }
8951
+
8952
+ protected processCopyToolsCncMachine(response: Response): Promise<CncToolDto[]> {
8953
+ const status = response.status;
8954
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
8955
+ if (status === 200) {
8956
+ return response.text().then((_responseText) => {
8957
+ let result200: any = null;
8958
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
8959
+ if (Array.isArray(resultData200)) {
8960
+ result200 = [] as any;
8961
+ for (let item of resultData200)
8962
+ result200!.push(CncToolDto.fromJS(item));
8963
+ }
8964
+ return result200;
8965
+ });
8966
+ } else if (status !== 200 && status !== 204) {
8967
+ return response.text().then((_responseText) => {
8968
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
8969
+ });
8970
+ }
8971
+ return Promise.resolve<CncToolDto[]>(null as any);
8972
+ }
8973
+
8924
8974
  createUploadProgramsInfo(id: string, request: UploadFileRequest): Promise<UploadFileDto[]> {
8925
8975
  let url_ = this.baseUrl + "/cncsetup/operations/{id}/programs";
8926
8976
  if (id === undefined || id === null)
@@ -9877,6 +9927,93 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
9877
9927
  return Promise.resolve<void>(null as any);
9878
9928
  }
9879
9929
 
9930
+ uploadCncMachineToolImage(machineId: string, id: number, request: UploadCncToolImageRequest): Promise<ImageFileDto> {
9931
+ let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/uploadimage";
9932
+ if (machineId === undefined || machineId === null)
9933
+ throw new Error("The parameter 'machineId' must be defined.");
9934
+ url_ = url_.replace("{machineId}", encodeURIComponent("" + machineId));
9935
+ if (id === undefined || id === null)
9936
+ throw new Error("The parameter 'id' must be defined.");
9937
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
9938
+ url_ = url_.replace(/[?&]$/, "");
9939
+
9940
+ const content_ = JSON.stringify(request);
9941
+
9942
+ let options_: RequestInit = {
9943
+ body: content_,
9944
+ method: "POST",
9945
+ headers: {
9946
+ "Content-Type": "application/json",
9947
+ "Accept": "application/json"
9948
+ }
9949
+ };
9950
+
9951
+ return this.transformOptions(options_).then(transformedOptions_ => {
9952
+ return this.http.fetch(url_, transformedOptions_);
9953
+ }).then((_response: Response) => {
9954
+ return this.processUploadCncMachineToolImage(_response);
9955
+ });
9956
+ }
9957
+
9958
+ protected processUploadCncMachineToolImage(response: Response): Promise<ImageFileDto> {
9959
+ const status = response.status;
9960
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
9961
+ if (status === 200) {
9962
+ return response.text().then((_responseText) => {
9963
+ let result200: any = null;
9964
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
9965
+ result200 = ImageFileDto.fromJS(resultData200);
9966
+ return result200;
9967
+ });
9968
+ } else if (status !== 200 && status !== 204) {
9969
+ return response.text().then((_responseText) => {
9970
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
9971
+ });
9972
+ }
9973
+ return Promise.resolve<ImageFileDto>(null as any);
9974
+ }
9975
+
9976
+ deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void> {
9977
+ let url_ = this.baseUrl + "/cncsetup/machines/{machineId}/tools/{id}/{filename}";
9978
+ if (machineId === undefined || machineId === null)
9979
+ throw new Error("The parameter 'machineId' must be defined.");
9980
+ url_ = url_.replace("{machineId}", encodeURIComponent("" + machineId));
9981
+ if (id === undefined || id === null)
9982
+ throw new Error("The parameter 'id' must be defined.");
9983
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
9984
+ if (filename === undefined || filename === null)
9985
+ throw new Error("The parameter 'filename' must be defined.");
9986
+ url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
9987
+ url_ = url_.replace(/[?&]$/, "");
9988
+
9989
+ let options_: RequestInit = {
9990
+ method: "DELETE",
9991
+ headers: {
9992
+ }
9993
+ };
9994
+
9995
+ return this.transformOptions(options_).then(transformedOptions_ => {
9996
+ return this.http.fetch(url_, transformedOptions_);
9997
+ }).then((_response: Response) => {
9998
+ return this.processDeleteCncMachineToolImage(_response);
9999
+ });
10000
+ }
10001
+
10002
+ protected processDeleteCncMachineToolImage(response: Response): Promise<void> {
10003
+ const status = response.status;
10004
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
10005
+ if (status === 204) {
10006
+ return response.text().then((_responseText) => {
10007
+ return;
10008
+ });
10009
+ } else if (status !== 200 && status !== 204) {
10010
+ return response.text().then((_responseText) => {
10011
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
10012
+ });
10013
+ }
10014
+ return Promise.resolve<void>(null as any);
10015
+ }
10016
+
9880
10017
  importOperationWithTools(request: ImportOperationWithTool): Promise<void> {
9881
10018
  let url_ = this.baseUrl + "/cncsetup/import";
9882
10019
  url_ = url_.replace(/[?&]$/, "");
@@ -31083,15 +31220,33 @@ export interface ICopyCncMachineOperationDto {
31083
31220
  copyFiles: boolean;
31084
31221
  }
31085
31222
 
31086
- export class ProgramFileDto implements IProgramFileDto {
31087
- name!: string;
31088
- version!: number;
31089
- uploadStatus!: UploadStatusDto;
31090
- url?: string | null;
31091
- timestamp?: Date | null;
31092
- fileSize?: number | null;
31223
+ export class CncToolDto implements ICncToolDto {
31224
+ id!: number;
31225
+ toolTypeId!: string;
31226
+ toolType!: string;
31227
+ toolSubTypeId!: string;
31228
+ toolSubTypeName!: string;
31229
+ toolNumber?: string | null;
31230
+ toolSuffix?: string | null;
31231
+ description?: string | null;
31232
+ holderDescription?: string | null;
31233
+ geometry?: string | null;
31234
+ size?: string | null;
31235
+ diameter?: number | null;
31236
+ grade?: string | null;
31237
+ radius?: number | null;
31238
+ width?: number | null;
31239
+ pitch?: string | null;
31240
+ length?: number | null;
31241
+ kapr?: number | null;
31242
+ teeth?: number | null;
31243
+ stickOut?: number | null;
31244
+ apmx?: number | null;
31245
+ usableLength?: number | null;
31246
+ images?: ImageFileDto[];
31247
+ auditInfo?: CncSetupAuditDto;
31093
31248
 
31094
- constructor(data?: IProgramFileDto) {
31249
+ constructor(data?: ICncToolDto) {
31095
31250
  if (data) {
31096
31251
  for (var property in data) {
31097
31252
  if (data.hasOwnProperty(property))
@@ -31102,45 +31257,326 @@ export class ProgramFileDto implements IProgramFileDto {
31102
31257
 
31103
31258
  init(_data?: any) {
31104
31259
  if (_data) {
31105
- this.name = _data["name"];
31106
- this.version = _data["version"];
31107
- this.uploadStatus = _data["uploadStatus"];
31108
- this.url = _data["url"];
31109
- this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
31110
- this.fileSize = _data["fileSize"];
31260
+ this.id = _data["id"];
31261
+ this.toolTypeId = _data["toolTypeId"];
31262
+ this.toolType = _data["toolType"];
31263
+ this.toolSubTypeId = _data["toolSubTypeId"];
31264
+ this.toolSubTypeName = _data["toolSubTypeName"];
31265
+ this.toolNumber = _data["toolNumber"];
31266
+ this.toolSuffix = _data["toolSuffix"];
31267
+ this.description = _data["description"];
31268
+ this.holderDescription = _data["holderDescription"];
31269
+ this.geometry = _data["geometry"];
31270
+ this.size = _data["size"];
31271
+ this.diameter = _data["diameter"];
31272
+ this.grade = _data["grade"];
31273
+ this.radius = _data["radius"];
31274
+ this.width = _data["width"];
31275
+ this.pitch = _data["pitch"];
31276
+ this.length = _data["length"];
31277
+ this.kapr = _data["kapr"];
31278
+ this.teeth = _data["teeth"];
31279
+ this.stickOut = _data["stickOut"];
31280
+ this.apmx = _data["apmx"];
31281
+ this.usableLength = _data["usableLength"];
31282
+ if (Array.isArray(_data["images"])) {
31283
+ this.images = [] as any;
31284
+ for (let item of _data["images"])
31285
+ this.images!.push(ImageFileDto.fromJS(item));
31286
+ }
31287
+ this.auditInfo = _data["auditInfo"] ? CncSetupAuditDto.fromJS(_data["auditInfo"]) : <any>undefined;
31111
31288
  }
31112
31289
  }
31113
31290
 
31114
- static fromJS(data: any): ProgramFileDto {
31291
+ static fromJS(data: any): CncToolDto {
31115
31292
  data = typeof data === 'object' ? data : {};
31116
- let result = new ProgramFileDto();
31293
+ let result = new CncToolDto();
31117
31294
  result.init(data);
31118
31295
  return result;
31119
31296
  }
31120
31297
 
31121
31298
  toJSON(data?: any) {
31122
31299
  data = typeof data === 'object' ? data : {};
31123
- data["name"] = this.name;
31124
- data["version"] = this.version;
31125
- data["uploadStatus"] = this.uploadStatus;
31126
- data["url"] = this.url;
31127
- data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
31128
- data["fileSize"] = this.fileSize;
31300
+ data["id"] = this.id;
31301
+ data["toolTypeId"] = this.toolTypeId;
31302
+ data["toolType"] = this.toolType;
31303
+ data["toolSubTypeId"] = this.toolSubTypeId;
31304
+ data["toolSubTypeName"] = this.toolSubTypeName;
31305
+ data["toolNumber"] = this.toolNumber;
31306
+ data["toolSuffix"] = this.toolSuffix;
31307
+ data["description"] = this.description;
31308
+ data["holderDescription"] = this.holderDescription;
31309
+ data["geometry"] = this.geometry;
31310
+ data["size"] = this.size;
31311
+ data["diameter"] = this.diameter;
31312
+ data["grade"] = this.grade;
31313
+ data["radius"] = this.radius;
31314
+ data["width"] = this.width;
31315
+ data["pitch"] = this.pitch;
31316
+ data["length"] = this.length;
31317
+ data["kapr"] = this.kapr;
31318
+ data["teeth"] = this.teeth;
31319
+ data["stickOut"] = this.stickOut;
31320
+ data["apmx"] = this.apmx;
31321
+ data["usableLength"] = this.usableLength;
31322
+ if (Array.isArray(this.images)) {
31323
+ data["images"] = [];
31324
+ for (let item of this.images)
31325
+ data["images"].push(item.toJSON());
31326
+ }
31327
+ data["auditInfo"] = this.auditInfo ? this.auditInfo.toJSON() : <any>undefined;
31129
31328
  return data;
31130
31329
  }
31131
31330
  }
31132
31331
 
31133
- export interface IProgramFileDto {
31134
- name: string;
31135
- version: number;
31136
- uploadStatus: UploadStatusDto;
31137
- url?: string | null;
31138
- timestamp?: Date | null;
31139
- fileSize?: number | null;
31332
+ export interface ICncToolDto {
31333
+ id: number;
31334
+ toolTypeId: string;
31335
+ toolType: string;
31336
+ toolSubTypeId: string;
31337
+ toolSubTypeName: string;
31338
+ toolNumber?: string | null;
31339
+ toolSuffix?: string | null;
31340
+ description?: string | null;
31341
+ holderDescription?: string | null;
31342
+ geometry?: string | null;
31343
+ size?: string | null;
31344
+ diameter?: number | null;
31345
+ grade?: string | null;
31346
+ radius?: number | null;
31347
+ width?: number | null;
31348
+ pitch?: string | null;
31349
+ length?: number | null;
31350
+ kapr?: number | null;
31351
+ teeth?: number | null;
31352
+ stickOut?: number | null;
31353
+ apmx?: number | null;
31354
+ usableLength?: number | null;
31355
+ images?: ImageFileDto[];
31356
+ auditInfo?: CncSetupAuditDto;
31140
31357
  }
31141
31358
 
31142
- export type UploadStatusDto = "NotUploaded" | "Available" | "Deleted";
31143
-
31359
+ export class ImageFileDto implements IImageFileDto {
31360
+ url!: string;
31361
+ name!: string;
31362
+ thumbnailUrl?: string | null;
31363
+
31364
+ constructor(data?: IImageFileDto) {
31365
+ if (data) {
31366
+ for (var property in data) {
31367
+ if (data.hasOwnProperty(property))
31368
+ (<any>this)[property] = (<any>data)[property];
31369
+ }
31370
+ }
31371
+ }
31372
+
31373
+ init(_data?: any) {
31374
+ if (_data) {
31375
+ this.url = _data["url"];
31376
+ this.name = _data["name"];
31377
+ this.thumbnailUrl = _data["thumbnailUrl"];
31378
+ }
31379
+ }
31380
+
31381
+ static fromJS(data: any): ImageFileDto {
31382
+ data = typeof data === 'object' ? data : {};
31383
+ let result = new ImageFileDto();
31384
+ result.init(data);
31385
+ return result;
31386
+ }
31387
+
31388
+ toJSON(data?: any) {
31389
+ data = typeof data === 'object' ? data : {};
31390
+ data["url"] = this.url;
31391
+ data["name"] = this.name;
31392
+ data["thumbnailUrl"] = this.thumbnailUrl;
31393
+ return data;
31394
+ }
31395
+ }
31396
+
31397
+ export interface IImageFileDto {
31398
+ url: string;
31399
+ name: string;
31400
+ thumbnailUrl?: string | null;
31401
+ }
31402
+
31403
+ export class CncSetupAuditDto implements ICncSetupAuditDto {
31404
+ created!: Date;
31405
+ createdBy!: string;
31406
+ createdById!: string;
31407
+ createdByName?: string | null;
31408
+ updated?: Date | null;
31409
+ updatedBy?: string | null;
31410
+ updatedById?: string | null;
31411
+ updatedByName?: string | null;
31412
+
31413
+ constructor(data?: ICncSetupAuditDto) {
31414
+ if (data) {
31415
+ for (var property in data) {
31416
+ if (data.hasOwnProperty(property))
31417
+ (<any>this)[property] = (<any>data)[property];
31418
+ }
31419
+ }
31420
+ }
31421
+
31422
+ init(_data?: any) {
31423
+ if (_data) {
31424
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
31425
+ this.createdBy = _data["createdBy"];
31426
+ this.createdById = _data["createdById"];
31427
+ this.createdByName = _data["createdByName"];
31428
+ this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
31429
+ this.updatedBy = _data["updatedBy"];
31430
+ this.updatedById = _data["updatedById"];
31431
+ this.updatedByName = _data["updatedByName"];
31432
+ }
31433
+ }
31434
+
31435
+ static fromJS(data: any): CncSetupAuditDto {
31436
+ data = typeof data === 'object' ? data : {};
31437
+ let result = new CncSetupAuditDto();
31438
+ result.init(data);
31439
+ return result;
31440
+ }
31441
+
31442
+ toJSON(data?: any) {
31443
+ data = typeof data === 'object' ? data : {};
31444
+ data["created"] = this.created ? this.created.toISOString() : <any>undefined;
31445
+ data["createdBy"] = this.createdBy;
31446
+ data["createdById"] = this.createdById;
31447
+ data["createdByName"] = this.createdByName;
31448
+ data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
31449
+ data["updatedBy"] = this.updatedBy;
31450
+ data["updatedById"] = this.updatedById;
31451
+ data["updatedByName"] = this.updatedByName;
31452
+ return data;
31453
+ }
31454
+ }
31455
+
31456
+ export interface ICncSetupAuditDto {
31457
+ created: Date;
31458
+ createdBy: string;
31459
+ createdById: string;
31460
+ createdByName?: string | null;
31461
+ updated?: Date | null;
31462
+ updatedBy?: string | null;
31463
+ updatedById?: string | null;
31464
+ updatedByName?: string | null;
31465
+ }
31466
+
31467
+ export class CopyToolsCncMachine implements ICopyToolsCncMachine {
31468
+ sourceMachineId!: string;
31469
+ targetOperationId!: string;
31470
+ toolsIds!: number[];
31471
+
31472
+ constructor(data?: ICopyToolsCncMachine) {
31473
+ if (data) {
31474
+ for (var property in data) {
31475
+ if (data.hasOwnProperty(property))
31476
+ (<any>this)[property] = (<any>data)[property];
31477
+ }
31478
+ }
31479
+ if (!data) {
31480
+ this.toolsIds = [];
31481
+ }
31482
+ }
31483
+
31484
+ init(_data?: any) {
31485
+ if (_data) {
31486
+ this.sourceMachineId = _data["sourceMachineId"];
31487
+ this.targetOperationId = _data["targetOperationId"];
31488
+ if (Array.isArray(_data["toolsIds"])) {
31489
+ this.toolsIds = [] as any;
31490
+ for (let item of _data["toolsIds"])
31491
+ this.toolsIds!.push(item);
31492
+ }
31493
+ }
31494
+ }
31495
+
31496
+ static fromJS(data: any): CopyToolsCncMachine {
31497
+ data = typeof data === 'object' ? data : {};
31498
+ let result = new CopyToolsCncMachine();
31499
+ result.init(data);
31500
+ return result;
31501
+ }
31502
+
31503
+ toJSON(data?: any) {
31504
+ data = typeof data === 'object' ? data : {};
31505
+ data["sourceMachineId"] = this.sourceMachineId;
31506
+ data["targetOperationId"] = this.targetOperationId;
31507
+ if (Array.isArray(this.toolsIds)) {
31508
+ data["toolsIds"] = [];
31509
+ for (let item of this.toolsIds)
31510
+ data["toolsIds"].push(item);
31511
+ }
31512
+ return data;
31513
+ }
31514
+ }
31515
+
31516
+ export interface ICopyToolsCncMachine {
31517
+ sourceMachineId: string;
31518
+ targetOperationId: string;
31519
+ toolsIds: number[];
31520
+ }
31521
+
31522
+ export class ProgramFileDto implements IProgramFileDto {
31523
+ name!: string;
31524
+ version!: number;
31525
+ uploadStatus!: UploadStatusDto;
31526
+ url?: string | null;
31527
+ timestamp?: Date | null;
31528
+ fileSize?: number | null;
31529
+
31530
+ constructor(data?: IProgramFileDto) {
31531
+ if (data) {
31532
+ for (var property in data) {
31533
+ if (data.hasOwnProperty(property))
31534
+ (<any>this)[property] = (<any>data)[property];
31535
+ }
31536
+ }
31537
+ }
31538
+
31539
+ init(_data?: any) {
31540
+ if (_data) {
31541
+ this.name = _data["name"];
31542
+ this.version = _data["version"];
31543
+ this.uploadStatus = _data["uploadStatus"];
31544
+ this.url = _data["url"];
31545
+ this.timestamp = _data["timestamp"] ? new Date(_data["timestamp"].toString()) : <any>undefined;
31546
+ this.fileSize = _data["fileSize"];
31547
+ }
31548
+ }
31549
+
31550
+ static fromJS(data: any): ProgramFileDto {
31551
+ data = typeof data === 'object' ? data : {};
31552
+ let result = new ProgramFileDto();
31553
+ result.init(data);
31554
+ return result;
31555
+ }
31556
+
31557
+ toJSON(data?: any) {
31558
+ data = typeof data === 'object' ? data : {};
31559
+ data["name"] = this.name;
31560
+ data["version"] = this.version;
31561
+ data["uploadStatus"] = this.uploadStatus;
31562
+ data["url"] = this.url;
31563
+ data["timestamp"] = this.timestamp ? this.timestamp.toISOString() : <any>undefined;
31564
+ data["fileSize"] = this.fileSize;
31565
+ return data;
31566
+ }
31567
+ }
31568
+
31569
+ export interface IProgramFileDto {
31570
+ name: string;
31571
+ version: number;
31572
+ uploadStatus: UploadStatusDto;
31573
+ url?: string | null;
31574
+ timestamp?: Date | null;
31575
+ fileSize?: number | null;
31576
+ }
31577
+
31578
+ export type UploadStatusDto = "NotUploaded" | "Available" | "Deleted";
31579
+
31144
31580
  export class UpdateProgramFileRequest implements IUpdateProgramFileRequest {
31145
31581
  deleted!: boolean;
31146
31582
 
@@ -31400,250 +31836,6 @@ export interface ICncToolSubTypeDto {
31400
31836
  holderDescriptionHelperText: string;
31401
31837
  }
31402
31838
 
31403
- export class CncToolDto implements ICncToolDto {
31404
- id!: number;
31405
- toolTypeId!: string;
31406
- toolType!: string;
31407
- toolSubTypeId!: string;
31408
- toolSubTypeName!: string;
31409
- toolNumber?: string | null;
31410
- toolSuffix?: string | null;
31411
- description?: string | null;
31412
- holderDescription?: string | null;
31413
- geometry?: string | null;
31414
- size?: string | null;
31415
- diameter?: number | null;
31416
- grade?: string | null;
31417
- radius?: number | null;
31418
- width?: number | null;
31419
- pitch?: string | null;
31420
- length?: number | null;
31421
- kapr?: number | null;
31422
- teeth?: number | null;
31423
- stickOut?: number | null;
31424
- apmx?: number | null;
31425
- usableLength?: number | null;
31426
- images?: ImageFileDto[];
31427
- auditInfo?: CncSetupAuditDto;
31428
-
31429
- constructor(data?: ICncToolDto) {
31430
- if (data) {
31431
- for (var property in data) {
31432
- if (data.hasOwnProperty(property))
31433
- (<any>this)[property] = (<any>data)[property];
31434
- }
31435
- }
31436
- }
31437
-
31438
- init(_data?: any) {
31439
- if (_data) {
31440
- this.id = _data["id"];
31441
- this.toolTypeId = _data["toolTypeId"];
31442
- this.toolType = _data["toolType"];
31443
- this.toolSubTypeId = _data["toolSubTypeId"];
31444
- this.toolSubTypeName = _data["toolSubTypeName"];
31445
- this.toolNumber = _data["toolNumber"];
31446
- this.toolSuffix = _data["toolSuffix"];
31447
- this.description = _data["description"];
31448
- this.holderDescription = _data["holderDescription"];
31449
- this.geometry = _data["geometry"];
31450
- this.size = _data["size"];
31451
- this.diameter = _data["diameter"];
31452
- this.grade = _data["grade"];
31453
- this.radius = _data["radius"];
31454
- this.width = _data["width"];
31455
- this.pitch = _data["pitch"];
31456
- this.length = _data["length"];
31457
- this.kapr = _data["kapr"];
31458
- this.teeth = _data["teeth"];
31459
- this.stickOut = _data["stickOut"];
31460
- this.apmx = _data["apmx"];
31461
- this.usableLength = _data["usableLength"];
31462
- if (Array.isArray(_data["images"])) {
31463
- this.images = [] as any;
31464
- for (let item of _data["images"])
31465
- this.images!.push(ImageFileDto.fromJS(item));
31466
- }
31467
- this.auditInfo = _data["auditInfo"] ? CncSetupAuditDto.fromJS(_data["auditInfo"]) : <any>undefined;
31468
- }
31469
- }
31470
-
31471
- static fromJS(data: any): CncToolDto {
31472
- data = typeof data === 'object' ? data : {};
31473
- let result = new CncToolDto();
31474
- result.init(data);
31475
- return result;
31476
- }
31477
-
31478
- toJSON(data?: any) {
31479
- data = typeof data === 'object' ? data : {};
31480
- data["id"] = this.id;
31481
- data["toolTypeId"] = this.toolTypeId;
31482
- data["toolType"] = this.toolType;
31483
- data["toolSubTypeId"] = this.toolSubTypeId;
31484
- data["toolSubTypeName"] = this.toolSubTypeName;
31485
- data["toolNumber"] = this.toolNumber;
31486
- data["toolSuffix"] = this.toolSuffix;
31487
- data["description"] = this.description;
31488
- data["holderDescription"] = this.holderDescription;
31489
- data["geometry"] = this.geometry;
31490
- data["size"] = this.size;
31491
- data["diameter"] = this.diameter;
31492
- data["grade"] = this.grade;
31493
- data["radius"] = this.radius;
31494
- data["width"] = this.width;
31495
- data["pitch"] = this.pitch;
31496
- data["length"] = this.length;
31497
- data["kapr"] = this.kapr;
31498
- data["teeth"] = this.teeth;
31499
- data["stickOut"] = this.stickOut;
31500
- data["apmx"] = this.apmx;
31501
- data["usableLength"] = this.usableLength;
31502
- if (Array.isArray(this.images)) {
31503
- data["images"] = [];
31504
- for (let item of this.images)
31505
- data["images"].push(item.toJSON());
31506
- }
31507
- data["auditInfo"] = this.auditInfo ? this.auditInfo.toJSON() : <any>undefined;
31508
- return data;
31509
- }
31510
- }
31511
-
31512
- export interface ICncToolDto {
31513
- id: number;
31514
- toolTypeId: string;
31515
- toolType: string;
31516
- toolSubTypeId: string;
31517
- toolSubTypeName: string;
31518
- toolNumber?: string | null;
31519
- toolSuffix?: string | null;
31520
- description?: string | null;
31521
- holderDescription?: string | null;
31522
- geometry?: string | null;
31523
- size?: string | null;
31524
- diameter?: number | null;
31525
- grade?: string | null;
31526
- radius?: number | null;
31527
- width?: number | null;
31528
- pitch?: string | null;
31529
- length?: number | null;
31530
- kapr?: number | null;
31531
- teeth?: number | null;
31532
- stickOut?: number | null;
31533
- apmx?: number | null;
31534
- usableLength?: number | null;
31535
- images?: ImageFileDto[];
31536
- auditInfo?: CncSetupAuditDto;
31537
- }
31538
-
31539
- export class ImageFileDto implements IImageFileDto {
31540
- url!: string;
31541
- name!: string;
31542
- thumbnailUrl?: string | null;
31543
-
31544
- constructor(data?: IImageFileDto) {
31545
- if (data) {
31546
- for (var property in data) {
31547
- if (data.hasOwnProperty(property))
31548
- (<any>this)[property] = (<any>data)[property];
31549
- }
31550
- }
31551
- }
31552
-
31553
- init(_data?: any) {
31554
- if (_data) {
31555
- this.url = _data["url"];
31556
- this.name = _data["name"];
31557
- this.thumbnailUrl = _data["thumbnailUrl"];
31558
- }
31559
- }
31560
-
31561
- static fromJS(data: any): ImageFileDto {
31562
- data = typeof data === 'object' ? data : {};
31563
- let result = new ImageFileDto();
31564
- result.init(data);
31565
- return result;
31566
- }
31567
-
31568
- toJSON(data?: any) {
31569
- data = typeof data === 'object' ? data : {};
31570
- data["url"] = this.url;
31571
- data["name"] = this.name;
31572
- data["thumbnailUrl"] = this.thumbnailUrl;
31573
- return data;
31574
- }
31575
- }
31576
-
31577
- export interface IImageFileDto {
31578
- url: string;
31579
- name: string;
31580
- thumbnailUrl?: string | null;
31581
- }
31582
-
31583
- export class CncSetupAuditDto implements ICncSetupAuditDto {
31584
- created!: Date;
31585
- createdBy!: string;
31586
- createdById!: string;
31587
- createdByName?: string | null;
31588
- updated?: Date | null;
31589
- updatedBy?: string | null;
31590
- updatedById?: string | null;
31591
- updatedByName?: string | null;
31592
-
31593
- constructor(data?: ICncSetupAuditDto) {
31594
- if (data) {
31595
- for (var property in data) {
31596
- if (data.hasOwnProperty(property))
31597
- (<any>this)[property] = (<any>data)[property];
31598
- }
31599
- }
31600
- }
31601
-
31602
- init(_data?: any) {
31603
- if (_data) {
31604
- this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
31605
- this.createdBy = _data["createdBy"];
31606
- this.createdById = _data["createdById"];
31607
- this.createdByName = _data["createdByName"];
31608
- this.updated = _data["updated"] ? new Date(_data["updated"].toString()) : <any>undefined;
31609
- this.updatedBy = _data["updatedBy"];
31610
- this.updatedById = _data["updatedById"];
31611
- this.updatedByName = _data["updatedByName"];
31612
- }
31613
- }
31614
-
31615
- static fromJS(data: any): CncSetupAuditDto {
31616
- data = typeof data === 'object' ? data : {};
31617
- let result = new CncSetupAuditDto();
31618
- result.init(data);
31619
- return result;
31620
- }
31621
-
31622
- toJSON(data?: any) {
31623
- data = typeof data === 'object' ? data : {};
31624
- data["created"] = this.created ? this.created.toISOString() : <any>undefined;
31625
- data["createdBy"] = this.createdBy;
31626
- data["createdById"] = this.createdById;
31627
- data["createdByName"] = this.createdByName;
31628
- data["updated"] = this.updated ? this.updated.toISOString() : <any>undefined;
31629
- data["updatedBy"] = this.updatedBy;
31630
- data["updatedById"] = this.updatedById;
31631
- data["updatedByName"] = this.updatedByName;
31632
- return data;
31633
- }
31634
- }
31635
-
31636
- export interface ICncSetupAuditDto {
31637
- created: Date;
31638
- createdBy: string;
31639
- createdById: string;
31640
- createdByName?: string | null;
31641
- updated?: Date | null;
31642
- updatedBy?: string | null;
31643
- updatedById?: string | null;
31644
- updatedByName?: string | null;
31645
- }
31646
-
31647
31839
  export class CreateCncMachineOperationToolRequest implements ICreateCncMachineOperationToolRequest {
31648
31840
  toolTypeId!: string;
31649
31841
  toolSubTypeId!: string;