@ignos/api-client 20250521.0.11797 → 20250521.0.11802

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>;
@@ -8450,6 +8456,16 @@ export interface IFixtureUpdateDto {
8450
8456
  gripSide?: GripSideDto;
8451
8457
  description?: string | null;
8452
8458
  }
8459
+ export declare class FixtureSuggestionDto implements IFixtureSuggestionDto {
8460
+ suggestion: string;
8461
+ constructor(data?: IFixtureSuggestionDto);
8462
+ init(_data?: any): void;
8463
+ static fromJS(data: any): FixtureSuggestionDto;
8464
+ toJSON(data?: any): any;
8465
+ }
8466
+ export interface IFixtureSuggestionDto {
8467
+ suggestion: string;
8468
+ }
8453
8469
  export declare class SpindleAndCuttingSpeedDto implements ISpindleAndCuttingSpeedDto {
8454
8470
  diameter: number;
8455
8471
  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)
@@ -33501,6 +33599,32 @@ export class FixtureUpdateDto {
33501
33599
  return data;
33502
33600
  }
33503
33601
  }
33602
+ export class FixtureSuggestionDto {
33603
+ constructor(data) {
33604
+ if (data) {
33605
+ for (var property in data) {
33606
+ if (data.hasOwnProperty(property))
33607
+ this[property] = data[property];
33608
+ }
33609
+ }
33610
+ }
33611
+ init(_data) {
33612
+ if (_data) {
33613
+ this.suggestion = _data["suggestion"];
33614
+ }
33615
+ }
33616
+ static fromJS(data) {
33617
+ data = typeof data === 'object' ? data : {};
33618
+ let result = new FixtureSuggestionDto();
33619
+ result.init(data);
33620
+ return result;
33621
+ }
33622
+ toJSON(data) {
33623
+ data = typeof data === 'object' ? data : {};
33624
+ data["suggestion"] = this.suggestion;
33625
+ return data;
33626
+ }
33627
+ }
33504
33628
  export class SpindleAndCuttingSpeedDto {
33505
33629
  constructor(data) {
33506
33630
  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.11802",
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)
@@ -40831,6 +40931,42 @@ export interface IFixtureUpdateDto {
40831
40931
  description?: string | null;
40832
40932
  }
40833
40933
 
40934
+ export class FixtureSuggestionDto implements IFixtureSuggestionDto {
40935
+ suggestion!: string;
40936
+
40937
+ constructor(data?: IFixtureSuggestionDto) {
40938
+ if (data) {
40939
+ for (var property in data) {
40940
+ if (data.hasOwnProperty(property))
40941
+ (<any>this)[property] = (<any>data)[property];
40942
+ }
40943
+ }
40944
+ }
40945
+
40946
+ init(_data?: any) {
40947
+ if (_data) {
40948
+ this.suggestion = _data["suggestion"];
40949
+ }
40950
+ }
40951
+
40952
+ static fromJS(data: any): FixtureSuggestionDto {
40953
+ data = typeof data === 'object' ? data : {};
40954
+ let result = new FixtureSuggestionDto();
40955
+ result.init(data);
40956
+ return result;
40957
+ }
40958
+
40959
+ toJSON(data?: any) {
40960
+ data = typeof data === 'object' ? data : {};
40961
+ data["suggestion"] = this.suggestion;
40962
+ return data;
40963
+ }
40964
+ }
40965
+
40966
+ export interface IFixtureSuggestionDto {
40967
+ suggestion: string;
40968
+ }
40969
+
40834
40970
  export class SpindleAndCuttingSpeedDto implements ISpindleAndCuttingSpeedDto {
40835
40971
  diameter!: number;
40836
40972
  cuttingSpeed!: number;