@ignos/api-client 20250521.0.11797 → 20250521.0.11809

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.
@@ -1326,6 +1326,8 @@ export interface ICncSetupFixturesClient {
1326
1326
  getFixture(fixtureId: string): Promise<FixtureDto>;
1327
1327
  createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
1328
1328
  updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
1329
+ getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
1330
+ getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
1329
1331
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1330
1332
  operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1331
1333
  }
@@ -1344,6 +1346,10 @@ export declare class CncSetupFixturesClient extends AuthorizedApiBase implements
1344
1346
  protected processCreateFixture(response: Response): Promise<FixtureDto>;
1345
1347
  updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
1346
1348
  protected processUpdateFixtures(response: Response): Promise<FixtureDto[]>;
1349
+ getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
1350
+ protected processGetFixtureInterfaceSuggestions(response: Response): Promise<FixtureSuggestionDto[]>;
1351
+ getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
1352
+ protected processGetFixtureLocationSuggestions(response: Response): Promise<FixtureSuggestionDto[]>;
1347
1353
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1348
1354
  protected processOperationAddFixture(response: Response): Promise<CncMachineOperationDto>;
1349
1355
  operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
@@ -8282,6 +8288,7 @@ export declare class ListFixtures implements IListFixtures {
8282
8288
  diameterFilter?: FixtureDecimalFilterDto | null;
8283
8289
  outerDiameterFilter?: FixtureDecimalFilterDto | null;
8284
8290
  innerDiameterFilter?: FixtureDecimalFilterDto | null;
8291
+ depthFilter?: FixtureDecimalFilterDto | null;
8285
8292
  totalHeightFilter?: FixtureDecimalFilterDto | null;
8286
8293
  widthFilter?: FixtureDecimalFilterDto | null;
8287
8294
  totalLengthFilter?: FixtureDecimalFilterDto | null;
@@ -8308,6 +8315,7 @@ export interface IListFixtures {
8308
8315
  diameterFilter?: FixtureDecimalFilterDto | null;
8309
8316
  outerDiameterFilter?: FixtureDecimalFilterDto | null;
8310
8317
  innerDiameterFilter?: FixtureDecimalFilterDto | null;
8318
+ depthFilter?: FixtureDecimalFilterDto | null;
8311
8319
  totalHeightFilter?: FixtureDecimalFilterDto | null;
8312
8320
  widthFilter?: FixtureDecimalFilterDto | null;
8313
8321
  totalLengthFilter?: FixtureDecimalFilterDto | null;
@@ -8450,6 +8458,16 @@ export interface IFixtureUpdateDto {
8450
8458
  gripSide?: GripSideDto;
8451
8459
  description?: string | null;
8452
8460
  }
8461
+ export declare class FixtureSuggestionDto implements IFixtureSuggestionDto {
8462
+ suggestion: string;
8463
+ constructor(data?: IFixtureSuggestionDto);
8464
+ init(_data?: any): void;
8465
+ static fromJS(data: any): FixtureSuggestionDto;
8466
+ toJSON(data?: any): any;
8467
+ }
8468
+ export interface IFixtureSuggestionDto {
8469
+ suggestion: string;
8470
+ }
8453
8471
  export declare class SpindleAndCuttingSpeedDto implements ISpindleAndCuttingSpeedDto {
8454
8472
  diameter: number;
8455
8473
  cuttingSpeed: number;
@@ -11365,6 +11365,104 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11365
11365
  }
11366
11366
  return Promise.resolve(null);
11367
11367
  }
11368
+ getFixtureInterfaceSuggestions(input, fixtureType) {
11369
+ let url_ = this.baseUrl + "/fixtures/suggestion/interface?";
11370
+ if (input === null)
11371
+ throw new Error("The parameter 'input' cannot be null.");
11372
+ else if (input !== undefined)
11373
+ url_ += "input=" + encodeURIComponent("" + input) + "&";
11374
+ if (fixtureType === null)
11375
+ throw new Error("The parameter 'fixtureType' cannot be null.");
11376
+ else if (fixtureType !== undefined)
11377
+ url_ += "fixtureType=" + encodeURIComponent("" + fixtureType) + "&";
11378
+ url_ = url_.replace(/[?&]$/, "");
11379
+ let options_ = {
11380
+ method: "POST",
11381
+ headers: {
11382
+ "Accept": "application/json"
11383
+ }
11384
+ };
11385
+ return this.transformOptions(options_).then(transformedOptions_ => {
11386
+ return this.http.fetch(url_, transformedOptions_);
11387
+ }).then((_response) => {
11388
+ return this.processGetFixtureInterfaceSuggestions(_response);
11389
+ });
11390
+ }
11391
+ processGetFixtureInterfaceSuggestions(response) {
11392
+ const status = response.status;
11393
+ let _headers = {};
11394
+ if (response.headers && response.headers.forEach) {
11395
+ response.headers.forEach((v, k) => _headers[k] = v);
11396
+ }
11397
+ ;
11398
+ if (status === 200) {
11399
+ return response.text().then((_responseText) => {
11400
+ let result200 = null;
11401
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11402
+ if (Array.isArray(resultData200)) {
11403
+ result200 = [];
11404
+ for (let item of resultData200)
11405
+ result200.push(FixtureSuggestionDto.fromJS(item));
11406
+ }
11407
+ return result200;
11408
+ });
11409
+ }
11410
+ else if (status !== 200 && status !== 204) {
11411
+ return response.text().then((_responseText) => {
11412
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11413
+ });
11414
+ }
11415
+ return Promise.resolve(null);
11416
+ }
11417
+ getFixtureLocationSuggestions(input, fixtureType) {
11418
+ let url_ = this.baseUrl + "/fixtures/suggestion/location?";
11419
+ if (input === null)
11420
+ throw new Error("The parameter 'input' cannot be null.");
11421
+ else if (input !== undefined)
11422
+ url_ += "input=" + encodeURIComponent("" + input) + "&";
11423
+ if (fixtureType === null)
11424
+ throw new Error("The parameter 'fixtureType' cannot be null.");
11425
+ else if (fixtureType !== undefined)
11426
+ url_ += "fixtureType=" + encodeURIComponent("" + fixtureType) + "&";
11427
+ url_ = url_.replace(/[?&]$/, "");
11428
+ let options_ = {
11429
+ method: "POST",
11430
+ headers: {
11431
+ "Accept": "application/json"
11432
+ }
11433
+ };
11434
+ return this.transformOptions(options_).then(transformedOptions_ => {
11435
+ return this.http.fetch(url_, transformedOptions_);
11436
+ }).then((_response) => {
11437
+ return this.processGetFixtureLocationSuggestions(_response);
11438
+ });
11439
+ }
11440
+ processGetFixtureLocationSuggestions(response) {
11441
+ const status = response.status;
11442
+ let _headers = {};
11443
+ if (response.headers && response.headers.forEach) {
11444
+ response.headers.forEach((v, k) => _headers[k] = v);
11445
+ }
11446
+ ;
11447
+ if (status === 200) {
11448
+ return response.text().then((_responseText) => {
11449
+ let result200 = null;
11450
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11451
+ if (Array.isArray(resultData200)) {
11452
+ result200 = [];
11453
+ for (let item of resultData200)
11454
+ result200.push(FixtureSuggestionDto.fromJS(item));
11455
+ }
11456
+ return result200;
11457
+ });
11458
+ }
11459
+ else if (status !== 200 && status !== 204) {
11460
+ return response.text().then((_responseText) => {
11461
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11462
+ });
11463
+ }
11464
+ return Promise.resolve(null);
11465
+ }
11368
11466
  operationAddFixture(operationId, fixtureIds) {
11369
11467
  let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
11370
11468
  if (operationId === undefined || operationId === null)
@@ -33239,6 +33337,7 @@ export class ListFixtures {
33239
33337
  this.diameterFilter = _data["diameterFilter"] ? FixtureDecimalFilterDto.fromJS(_data["diameterFilter"]) : undefined;
33240
33338
  this.outerDiameterFilter = _data["outerDiameterFilter"] ? FixtureDecimalFilterDto.fromJS(_data["outerDiameterFilter"]) : undefined;
33241
33339
  this.innerDiameterFilter = _data["innerDiameterFilter"] ? FixtureDecimalFilterDto.fromJS(_data["innerDiameterFilter"]) : undefined;
33340
+ this.depthFilter = _data["depthFilter"] ? FixtureDecimalFilterDto.fromJS(_data["depthFilter"]) : undefined;
33242
33341
  this.totalHeightFilter = _data["totalHeightFilter"] ? FixtureDecimalFilterDto.fromJS(_data["totalHeightFilter"]) : undefined;
33243
33342
  this.widthFilter = _data["widthFilter"] ? FixtureDecimalFilterDto.fromJS(_data["widthFilter"]) : undefined;
33244
33343
  this.totalLengthFilter = _data["totalLengthFilter"] ? FixtureDecimalFilterDto.fromJS(_data["totalLengthFilter"]) : undefined;
@@ -33281,6 +33380,7 @@ export class ListFixtures {
33281
33380
  data["diameterFilter"] = this.diameterFilter ? this.diameterFilter.toJSON() : undefined;
33282
33381
  data["outerDiameterFilter"] = this.outerDiameterFilter ? this.outerDiameterFilter.toJSON() : undefined;
33283
33382
  data["innerDiameterFilter"] = this.innerDiameterFilter ? this.innerDiameterFilter.toJSON() : undefined;
33383
+ data["depthFilter"] = this.depthFilter ? this.depthFilter.toJSON() : undefined;
33284
33384
  data["totalHeightFilter"] = this.totalHeightFilter ? this.totalHeightFilter.toJSON() : undefined;
33285
33385
  data["widthFilter"] = this.widthFilter ? this.widthFilter.toJSON() : undefined;
33286
33386
  data["totalLengthFilter"] = this.totalLengthFilter ? this.totalLengthFilter.toJSON() : undefined;
@@ -33501,6 +33601,32 @@ export class FixtureUpdateDto {
33501
33601
  return data;
33502
33602
  }
33503
33603
  }
33604
+ export class FixtureSuggestionDto {
33605
+ constructor(data) {
33606
+ if (data) {
33607
+ for (var property in data) {
33608
+ if (data.hasOwnProperty(property))
33609
+ this[property] = data[property];
33610
+ }
33611
+ }
33612
+ }
33613
+ init(_data) {
33614
+ if (_data) {
33615
+ this.suggestion = _data["suggestion"];
33616
+ }
33617
+ }
33618
+ static fromJS(data) {
33619
+ data = typeof data === 'object' ? data : {};
33620
+ let result = new FixtureSuggestionDto();
33621
+ result.init(data);
33622
+ return result;
33623
+ }
33624
+ toJSON(data) {
33625
+ data = typeof data === 'object' ? data : {};
33626
+ data["suggestion"] = this.suggestion;
33627
+ return data;
33628
+ }
33629
+ }
33504
33630
  export class SpindleAndCuttingSpeedDto {
33505
33631
  constructor(data) {
33506
33632
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250521.0.11797",
3
+ "version": "20250521.0.11809",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -11941,6 +11941,10 @@ export interface ICncSetupFixturesClient {
11941
11941
 
11942
11942
  updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
11943
11943
 
11944
+ getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
11945
+
11946
+ getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
11947
+
11944
11948
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
11945
11949
 
11946
11950
  operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
@@ -12120,6 +12124,102 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12120
12124
  return Promise.resolve<FixtureDto[]>(null as any);
12121
12125
  }
12122
12126
 
12127
+ getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]> {
12128
+ let url_ = this.baseUrl + "/fixtures/suggestion/interface?";
12129
+ if (input === null)
12130
+ throw new Error("The parameter 'input' cannot be null.");
12131
+ else if (input !== undefined)
12132
+ url_ += "input=" + encodeURIComponent("" + input) + "&";
12133
+ if (fixtureType === null)
12134
+ throw new Error("The parameter 'fixtureType' cannot be null.");
12135
+ else if (fixtureType !== undefined)
12136
+ url_ += "fixtureType=" + encodeURIComponent("" + fixtureType) + "&";
12137
+ url_ = url_.replace(/[?&]$/, "");
12138
+
12139
+ let options_: RequestInit = {
12140
+ method: "POST",
12141
+ headers: {
12142
+ "Accept": "application/json"
12143
+ }
12144
+ };
12145
+
12146
+ return this.transformOptions(options_).then(transformedOptions_ => {
12147
+ return this.http.fetch(url_, transformedOptions_);
12148
+ }).then((_response: Response) => {
12149
+ return this.processGetFixtureInterfaceSuggestions(_response);
12150
+ });
12151
+ }
12152
+
12153
+ protected processGetFixtureInterfaceSuggestions(response: Response): Promise<FixtureSuggestionDto[]> {
12154
+ const status = response.status;
12155
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12156
+ if (status === 200) {
12157
+ return response.text().then((_responseText) => {
12158
+ let result200: any = null;
12159
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12160
+ if (Array.isArray(resultData200)) {
12161
+ result200 = [] as any;
12162
+ for (let item of resultData200)
12163
+ result200!.push(FixtureSuggestionDto.fromJS(item));
12164
+ }
12165
+ return result200;
12166
+ });
12167
+ } else if (status !== 200 && status !== 204) {
12168
+ return response.text().then((_responseText) => {
12169
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12170
+ });
12171
+ }
12172
+ return Promise.resolve<FixtureSuggestionDto[]>(null as any);
12173
+ }
12174
+
12175
+ getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]> {
12176
+ let url_ = this.baseUrl + "/fixtures/suggestion/location?";
12177
+ if (input === null)
12178
+ throw new Error("The parameter 'input' cannot be null.");
12179
+ else if (input !== undefined)
12180
+ url_ += "input=" + encodeURIComponent("" + input) + "&";
12181
+ if (fixtureType === null)
12182
+ throw new Error("The parameter 'fixtureType' cannot be null.");
12183
+ else if (fixtureType !== undefined)
12184
+ url_ += "fixtureType=" + encodeURIComponent("" + fixtureType) + "&";
12185
+ url_ = url_.replace(/[?&]$/, "");
12186
+
12187
+ let options_: RequestInit = {
12188
+ method: "POST",
12189
+ headers: {
12190
+ "Accept": "application/json"
12191
+ }
12192
+ };
12193
+
12194
+ return this.transformOptions(options_).then(transformedOptions_ => {
12195
+ return this.http.fetch(url_, transformedOptions_);
12196
+ }).then((_response: Response) => {
12197
+ return this.processGetFixtureLocationSuggestions(_response);
12198
+ });
12199
+ }
12200
+
12201
+ protected processGetFixtureLocationSuggestions(response: Response): Promise<FixtureSuggestionDto[]> {
12202
+ const status = response.status;
12203
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12204
+ if (status === 200) {
12205
+ return response.text().then((_responseText) => {
12206
+ let result200: any = null;
12207
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12208
+ if (Array.isArray(resultData200)) {
12209
+ result200 = [] as any;
12210
+ for (let item of resultData200)
12211
+ result200!.push(FixtureSuggestionDto.fromJS(item));
12212
+ }
12213
+ return result200;
12214
+ });
12215
+ } else if (status !== 200 && status !== 204) {
12216
+ return response.text().then((_responseText) => {
12217
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12218
+ });
12219
+ }
12220
+ return Promise.resolve<FixtureSuggestionDto[]>(null as any);
12221
+ }
12222
+
12123
12223
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto> {
12124
12224
  let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
12125
12225
  if (operationId === undefined || operationId === null)
@@ -40359,6 +40459,7 @@ export class ListFixtures implements IListFixtures {
40359
40459
  diameterFilter?: FixtureDecimalFilterDto | null;
40360
40460
  outerDiameterFilter?: FixtureDecimalFilterDto | null;
40361
40461
  innerDiameterFilter?: FixtureDecimalFilterDto | null;
40462
+ depthFilter?: FixtureDecimalFilterDto | null;
40362
40463
  totalHeightFilter?: FixtureDecimalFilterDto | null;
40363
40464
  widthFilter?: FixtureDecimalFilterDto | null;
40364
40465
  totalLengthFilter?: FixtureDecimalFilterDto | null;
@@ -40403,6 +40504,7 @@ export class ListFixtures implements IListFixtures {
40403
40504
  this.diameterFilter = _data["diameterFilter"] ? FixtureDecimalFilterDto.fromJS(_data["diameterFilter"]) : <any>undefined;
40404
40505
  this.outerDiameterFilter = _data["outerDiameterFilter"] ? FixtureDecimalFilterDto.fromJS(_data["outerDiameterFilter"]) : <any>undefined;
40405
40506
  this.innerDiameterFilter = _data["innerDiameterFilter"] ? FixtureDecimalFilterDto.fromJS(_data["innerDiameterFilter"]) : <any>undefined;
40507
+ this.depthFilter = _data["depthFilter"] ? FixtureDecimalFilterDto.fromJS(_data["depthFilter"]) : <any>undefined;
40406
40508
  this.totalHeightFilter = _data["totalHeightFilter"] ? FixtureDecimalFilterDto.fromJS(_data["totalHeightFilter"]) : <any>undefined;
40407
40509
  this.widthFilter = _data["widthFilter"] ? FixtureDecimalFilterDto.fromJS(_data["widthFilter"]) : <any>undefined;
40408
40510
  this.totalLengthFilter = _data["totalLengthFilter"] ? FixtureDecimalFilterDto.fromJS(_data["totalLengthFilter"]) : <any>undefined;
@@ -40447,6 +40549,7 @@ export class ListFixtures implements IListFixtures {
40447
40549
  data["diameterFilter"] = this.diameterFilter ? this.diameterFilter.toJSON() : <any>undefined;
40448
40550
  data["outerDiameterFilter"] = this.outerDiameterFilter ? this.outerDiameterFilter.toJSON() : <any>undefined;
40449
40551
  data["innerDiameterFilter"] = this.innerDiameterFilter ? this.innerDiameterFilter.toJSON() : <any>undefined;
40552
+ data["depthFilter"] = this.depthFilter ? this.depthFilter.toJSON() : <any>undefined;
40450
40553
  data["totalHeightFilter"] = this.totalHeightFilter ? this.totalHeightFilter.toJSON() : <any>undefined;
40451
40554
  data["widthFilter"] = this.widthFilter ? this.widthFilter.toJSON() : <any>undefined;
40452
40555
  data["totalLengthFilter"] = this.totalLengthFilter ? this.totalLengthFilter.toJSON() : <any>undefined;
@@ -40472,6 +40575,7 @@ export interface IListFixtures {
40472
40575
  diameterFilter?: FixtureDecimalFilterDto | null;
40473
40576
  outerDiameterFilter?: FixtureDecimalFilterDto | null;
40474
40577
  innerDiameterFilter?: FixtureDecimalFilterDto | null;
40578
+ depthFilter?: FixtureDecimalFilterDto | null;
40475
40579
  totalHeightFilter?: FixtureDecimalFilterDto | null;
40476
40580
  widthFilter?: FixtureDecimalFilterDto | null;
40477
40581
  totalLengthFilter?: FixtureDecimalFilterDto | null;
@@ -40831,6 +40935,42 @@ export interface IFixtureUpdateDto {
40831
40935
  description?: string | null;
40832
40936
  }
40833
40937
 
40938
+ export class FixtureSuggestionDto implements IFixtureSuggestionDto {
40939
+ suggestion!: string;
40940
+
40941
+ constructor(data?: IFixtureSuggestionDto) {
40942
+ if (data) {
40943
+ for (var property in data) {
40944
+ if (data.hasOwnProperty(property))
40945
+ (<any>this)[property] = (<any>data)[property];
40946
+ }
40947
+ }
40948
+ }
40949
+
40950
+ init(_data?: any) {
40951
+ if (_data) {
40952
+ this.suggestion = _data["suggestion"];
40953
+ }
40954
+ }
40955
+
40956
+ static fromJS(data: any): FixtureSuggestionDto {
40957
+ data = typeof data === 'object' ? data : {};
40958
+ let result = new FixtureSuggestionDto();
40959
+ result.init(data);
40960
+ return result;
40961
+ }
40962
+
40963
+ toJSON(data?: any) {
40964
+ data = typeof data === 'object' ? data : {};
40965
+ data["suggestion"] = this.suggestion;
40966
+ return data;
40967
+ }
40968
+ }
40969
+
40970
+ export interface IFixtureSuggestionDto {
40971
+ suggestion: string;
40972
+ }
40973
+
40834
40974
  export class SpindleAndCuttingSpeedDto implements ISpindleAndCuttingSpeedDto {
40835
40975
  diameter!: number;
40836
40976
  cuttingSpeed!: number;