@ignos/api-client 20250425.0.11577 → 20250429.0.11603

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.
@@ -1321,6 +1321,28 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
1321
1321
  copyTool(command: CopyCncTool): Promise<CncToolDto>;
1322
1322
  protected processCopyTool(response: Response): Promise<CncToolDto>;
1323
1323
  }
1324
+ export interface ICncSetupFixturesClient {
1325
+ listFixtures(request: ListFixtures): Promise<FixtureListDto>;
1326
+ getFixture(fixtureId: string): Promise<FixtureDto>;
1327
+ updateFixture(fixtureId: string, update: FixtureUpdateDto): Promise<FixtureDto>;
1328
+ createFixture(update: FixtureUpdateDto): Promise<FixtureDto>;
1329
+ }
1330
+ export declare class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSetupFixturesClient {
1331
+ private http;
1332
+ private baseUrl;
1333
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
1334
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
1335
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1336
+ });
1337
+ listFixtures(request: ListFixtures): Promise<FixtureListDto>;
1338
+ protected processListFixtures(response: Response): Promise<FixtureListDto>;
1339
+ getFixture(fixtureId: string): Promise<FixtureDto>;
1340
+ protected processGetFixture(response: Response): Promise<FixtureDto>;
1341
+ updateFixture(fixtureId: string, update: FixtureUpdateDto): Promise<FixtureDto>;
1342
+ protected processUpdateFixture(response: Response): Promise<FixtureDto>;
1343
+ createFixture(update: FixtureUpdateDto): Promise<FixtureDto>;
1344
+ protected processCreateFixture(response: Response): Promise<FixtureDto>;
1345
+ }
1324
1346
  export interface IOperatorCalculatorsClient {
1325
1347
  /**
1326
1348
  * Calculate spindle speed from cutting speed or vice versa.
@@ -8099,6 +8121,122 @@ export interface ICopyCncTool {
8099
8121
  originType: ToolOriginType;
8100
8122
  }
8101
8123
  export type ToolOriginType = "Operation" | "Machine";
8124
+ export declare class FixtureListDto implements IFixtureListDto {
8125
+ results: FixtureDto[];
8126
+ continuationToken?: string | null;
8127
+ constructor(data?: IFixtureListDto);
8128
+ init(_data?: any): void;
8129
+ static fromJS(data: any): FixtureListDto;
8130
+ toJSON(data?: any): any;
8131
+ }
8132
+ export interface IFixtureListDto {
8133
+ results: FixtureDto[];
8134
+ continuationToken?: string | null;
8135
+ }
8136
+ export declare class FixtureDto implements IFixtureDto {
8137
+ id: string;
8138
+ name: string;
8139
+ drawing?: string | null;
8140
+ drawingRev?: string | null;
8141
+ sourceMachine?: string | null;
8142
+ location?: string | null;
8143
+ type?: FixtureTypeDto;
8144
+ interface?: string | null;
8145
+ lastUsedBy?: string | null;
8146
+ lastUsedById?: string | null;
8147
+ lastUsed?: Date | null;
8148
+ diameter?: number | null;
8149
+ outerDiameter?: number | null;
8150
+ innerDiameter?: number | null;
8151
+ depth?: number | null;
8152
+ totalHeight?: number | null;
8153
+ width?: number | null;
8154
+ totalLength?: number | null;
8155
+ gripSide?: GripSideDto | null;
8156
+ description?: string | null;
8157
+ constructor(data?: IFixtureDto);
8158
+ init(_data?: any): void;
8159
+ static fromJS(data: any): FixtureDto;
8160
+ toJSON(data?: any): any;
8161
+ }
8162
+ export interface IFixtureDto {
8163
+ id: string;
8164
+ name: string;
8165
+ drawing?: string | null;
8166
+ drawingRev?: string | null;
8167
+ sourceMachine?: string | null;
8168
+ location?: string | null;
8169
+ type?: FixtureTypeDto;
8170
+ interface?: string | null;
8171
+ lastUsedBy?: string | null;
8172
+ lastUsedById?: string | null;
8173
+ lastUsed?: Date | null;
8174
+ diameter?: number | null;
8175
+ outerDiameter?: number | null;
8176
+ innerDiameter?: number | null;
8177
+ depth?: number | null;
8178
+ totalHeight?: number | null;
8179
+ width?: number | null;
8180
+ totalLength?: number | null;
8181
+ gripSide?: GripSideDto | null;
8182
+ description?: string | null;
8183
+ }
8184
+ export type FixtureTypeDto = "Bungs" | "Jaws" | "Jigs" | "Centers";
8185
+ export type GripSideDto = "NotApplicable" | "Inside" | "Outside";
8186
+ export declare class ListFixtures implements IListFixtures {
8187
+ pageSize?: number | null;
8188
+ fixtureTypeFilter?: FixtureTypeDto[] | null;
8189
+ continuationToken?: string | null;
8190
+ constructor(data?: IListFixtures);
8191
+ init(_data?: any): void;
8192
+ static fromJS(data: any): ListFixtures;
8193
+ toJSON(data?: any): any;
8194
+ }
8195
+ export interface IListFixtures {
8196
+ pageSize?: number | null;
8197
+ fixtureTypeFilter?: FixtureTypeDto[] | null;
8198
+ continuationToken?: string | null;
8199
+ }
8200
+ export declare class FixtureUpdateDto implements IFixtureUpdateDto {
8201
+ name: string;
8202
+ drawing?: string | null;
8203
+ drawingRev?: string | null;
8204
+ sourceMachine?: string | null;
8205
+ location?: string | null;
8206
+ type?: FixtureTypeDto;
8207
+ interface?: string | null;
8208
+ diameter?: number | null;
8209
+ outerDiameter?: number | null;
8210
+ innerDiameter?: number | null;
8211
+ depth?: number | null;
8212
+ totalHeight?: number | null;
8213
+ width?: number | null;
8214
+ totalLength?: number | null;
8215
+ gripSide?: GripSideDto;
8216
+ description?: string | null;
8217
+ constructor(data?: IFixtureUpdateDto);
8218
+ init(_data?: any): void;
8219
+ static fromJS(data: any): FixtureUpdateDto;
8220
+ toJSON(data?: any): any;
8221
+ }
8222
+ export interface IFixtureUpdateDto {
8223
+ name: string;
8224
+ drawing?: string | null;
8225
+ drawingRev?: string | null;
8226
+ sourceMachine?: string | null;
8227
+ location?: string | null;
8228
+ type?: FixtureTypeDto;
8229
+ interface?: string | null;
8230
+ diameter?: number | null;
8231
+ outerDiameter?: number | null;
8232
+ innerDiameter?: number | null;
8233
+ depth?: number | null;
8234
+ totalHeight?: number | null;
8235
+ width?: number | null;
8236
+ totalLength?: number | null;
8237
+ gripSide?: GripSideDto;
8238
+ description?: string | null;
8239
+ }
8102
8240
  export declare class SpindleAndCuttingSpeedDto implements ISpindleAndCuttingSpeedDto {
8103
8241
  diameter: number;
8104
8242
  cuttingSpeed: number;
@@ -11194,6 +11194,177 @@ export class CncSetupClient extends AuthorizedApiBase {
11194
11194
  return Promise.resolve(null);
11195
11195
  }
11196
11196
  }
11197
+ export class CncSetupFixturesClient extends AuthorizedApiBase {
11198
+ constructor(configuration, baseUrl, http) {
11199
+ super(configuration);
11200
+ this.jsonParseReviver = undefined;
11201
+ this.http = http ? http : window;
11202
+ this.baseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : "";
11203
+ }
11204
+ listFixtures(request) {
11205
+ let url_ = this.baseUrl + "/fixtures/list";
11206
+ url_ = url_.replace(/[?&]$/, "");
11207
+ const content_ = JSON.stringify(request);
11208
+ let options_ = {
11209
+ body: content_,
11210
+ method: "POST",
11211
+ headers: {
11212
+ "Content-Type": "application/json",
11213
+ "Accept": "application/json"
11214
+ }
11215
+ };
11216
+ return this.transformOptions(options_).then(transformedOptions_ => {
11217
+ return this.http.fetch(url_, transformedOptions_);
11218
+ }).then((_response) => {
11219
+ return this.processListFixtures(_response);
11220
+ });
11221
+ }
11222
+ processListFixtures(response) {
11223
+ const status = response.status;
11224
+ let _headers = {};
11225
+ if (response.headers && response.headers.forEach) {
11226
+ response.headers.forEach((v, k) => _headers[k] = v);
11227
+ }
11228
+ ;
11229
+ if (status === 200) {
11230
+ return response.text().then((_responseText) => {
11231
+ let result200 = null;
11232
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11233
+ result200 = FixtureListDto.fromJS(resultData200);
11234
+ return result200;
11235
+ });
11236
+ }
11237
+ else if (status !== 200 && status !== 204) {
11238
+ return response.text().then((_responseText) => {
11239
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11240
+ });
11241
+ }
11242
+ return Promise.resolve(null);
11243
+ }
11244
+ getFixture(fixtureId) {
11245
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}";
11246
+ if (fixtureId === undefined || fixtureId === null)
11247
+ throw new Error("The parameter 'fixtureId' must be defined.");
11248
+ url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11249
+ url_ = url_.replace(/[?&]$/, "");
11250
+ let options_ = {
11251
+ method: "GET",
11252
+ headers: {
11253
+ "Accept": "application/json"
11254
+ }
11255
+ };
11256
+ return this.transformOptions(options_).then(transformedOptions_ => {
11257
+ return this.http.fetch(url_, transformedOptions_);
11258
+ }).then((_response) => {
11259
+ return this.processGetFixture(_response);
11260
+ });
11261
+ }
11262
+ processGetFixture(response) {
11263
+ const status = response.status;
11264
+ let _headers = {};
11265
+ if (response.headers && response.headers.forEach) {
11266
+ response.headers.forEach((v, k) => _headers[k] = v);
11267
+ }
11268
+ ;
11269
+ if (status === 200) {
11270
+ return response.text().then((_responseText) => {
11271
+ let result200 = null;
11272
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11273
+ result200 = FixtureDto.fromJS(resultData200);
11274
+ return result200;
11275
+ });
11276
+ }
11277
+ else if (status !== 200 && status !== 204) {
11278
+ return response.text().then((_responseText) => {
11279
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11280
+ });
11281
+ }
11282
+ return Promise.resolve(null);
11283
+ }
11284
+ updateFixture(fixtureId, update) {
11285
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}";
11286
+ if (fixtureId === undefined || fixtureId === null)
11287
+ throw new Error("The parameter 'fixtureId' must be defined.");
11288
+ url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11289
+ url_ = url_.replace(/[?&]$/, "");
11290
+ const content_ = JSON.stringify(update);
11291
+ let options_ = {
11292
+ body: content_,
11293
+ method: "PUT",
11294
+ headers: {
11295
+ "Content-Type": "application/json",
11296
+ "Accept": "application/json"
11297
+ }
11298
+ };
11299
+ return this.transformOptions(options_).then(transformedOptions_ => {
11300
+ return this.http.fetch(url_, transformedOptions_);
11301
+ }).then((_response) => {
11302
+ return this.processUpdateFixture(_response);
11303
+ });
11304
+ }
11305
+ processUpdateFixture(response) {
11306
+ const status = response.status;
11307
+ let _headers = {};
11308
+ if (response.headers && response.headers.forEach) {
11309
+ response.headers.forEach((v, k) => _headers[k] = v);
11310
+ }
11311
+ ;
11312
+ if (status === 200) {
11313
+ return response.text().then((_responseText) => {
11314
+ let result200 = null;
11315
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11316
+ result200 = FixtureDto.fromJS(resultData200);
11317
+ return result200;
11318
+ });
11319
+ }
11320
+ else if (status !== 200 && status !== 204) {
11321
+ return response.text().then((_responseText) => {
11322
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11323
+ });
11324
+ }
11325
+ return Promise.resolve(null);
11326
+ }
11327
+ createFixture(update) {
11328
+ let url_ = this.baseUrl + "/fixtures";
11329
+ url_ = url_.replace(/[?&]$/, "");
11330
+ const content_ = JSON.stringify(update);
11331
+ let options_ = {
11332
+ body: content_,
11333
+ method: "POST",
11334
+ headers: {
11335
+ "Content-Type": "application/json",
11336
+ "Accept": "application/json"
11337
+ }
11338
+ };
11339
+ return this.transformOptions(options_).then(transformedOptions_ => {
11340
+ return this.http.fetch(url_, transformedOptions_);
11341
+ }).then((_response) => {
11342
+ return this.processCreateFixture(_response);
11343
+ });
11344
+ }
11345
+ processCreateFixture(response) {
11346
+ const status = response.status;
11347
+ let _headers = {};
11348
+ if (response.headers && response.headers.forEach) {
11349
+ response.headers.forEach((v, k) => _headers[k] = v);
11350
+ }
11351
+ ;
11352
+ if (status === 200) {
11353
+ return response.text().then((_responseText) => {
11354
+ let result200 = null;
11355
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11356
+ result200 = FixtureDto.fromJS(resultData200);
11357
+ return result200;
11358
+ });
11359
+ }
11360
+ else if (status !== 200 && status !== 204) {
11361
+ return response.text().then((_responseText) => {
11362
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11363
+ });
11364
+ }
11365
+ return Promise.resolve(null);
11366
+ }
11367
+ }
11197
11368
  export class OperatorCalculatorsClient extends AuthorizedApiBase {
11198
11369
  constructor(configuration, baseUrl, http) {
11199
11370
  super(configuration);
@@ -32555,6 +32726,203 @@ export class CopyCncTool {
32555
32726
  return data;
32556
32727
  }
32557
32728
  }
32729
+ export class FixtureListDto {
32730
+ constructor(data) {
32731
+ if (data) {
32732
+ for (var property in data) {
32733
+ if (data.hasOwnProperty(property))
32734
+ this[property] = data[property];
32735
+ }
32736
+ }
32737
+ if (!data) {
32738
+ this.results = [];
32739
+ }
32740
+ }
32741
+ init(_data) {
32742
+ if (_data) {
32743
+ if (Array.isArray(_data["results"])) {
32744
+ this.results = [];
32745
+ for (let item of _data["results"])
32746
+ this.results.push(FixtureDto.fromJS(item));
32747
+ }
32748
+ this.continuationToken = _data["continuationToken"];
32749
+ }
32750
+ }
32751
+ static fromJS(data) {
32752
+ data = typeof data === 'object' ? data : {};
32753
+ let result = new FixtureListDto();
32754
+ result.init(data);
32755
+ return result;
32756
+ }
32757
+ toJSON(data) {
32758
+ data = typeof data === 'object' ? data : {};
32759
+ if (Array.isArray(this.results)) {
32760
+ data["results"] = [];
32761
+ for (let item of this.results)
32762
+ data["results"].push(item.toJSON());
32763
+ }
32764
+ data["continuationToken"] = this.continuationToken;
32765
+ return data;
32766
+ }
32767
+ }
32768
+ export class FixtureDto {
32769
+ constructor(data) {
32770
+ if (data) {
32771
+ for (var property in data) {
32772
+ if (data.hasOwnProperty(property))
32773
+ this[property] = data[property];
32774
+ }
32775
+ }
32776
+ }
32777
+ init(_data) {
32778
+ if (_data) {
32779
+ this.id = _data["id"];
32780
+ this.name = _data["name"];
32781
+ this.drawing = _data["drawing"];
32782
+ this.drawingRev = _data["drawingRev"];
32783
+ this.sourceMachine = _data["sourceMachine"];
32784
+ this.location = _data["location"];
32785
+ this.type = _data["type"];
32786
+ this.interface = _data["interface"];
32787
+ this.lastUsedBy = _data["lastUsedBy"];
32788
+ this.lastUsedById = _data["lastUsedById"];
32789
+ this.lastUsed = _data["lastUsed"] ? new Date(_data["lastUsed"].toString()) : undefined;
32790
+ this.diameter = _data["diameter"];
32791
+ this.outerDiameter = _data["outerDiameter"];
32792
+ this.innerDiameter = _data["innerDiameter"];
32793
+ this.depth = _data["depth"];
32794
+ this.totalHeight = _data["totalHeight"];
32795
+ this.width = _data["width"];
32796
+ this.totalLength = _data["totalLength"];
32797
+ this.gripSide = _data["gripSide"];
32798
+ this.description = _data["description"];
32799
+ }
32800
+ }
32801
+ static fromJS(data) {
32802
+ data = typeof data === 'object' ? data : {};
32803
+ let result = new FixtureDto();
32804
+ result.init(data);
32805
+ return result;
32806
+ }
32807
+ toJSON(data) {
32808
+ data = typeof data === 'object' ? data : {};
32809
+ data["id"] = this.id;
32810
+ data["name"] = this.name;
32811
+ data["drawing"] = this.drawing;
32812
+ data["drawingRev"] = this.drawingRev;
32813
+ data["sourceMachine"] = this.sourceMachine;
32814
+ data["location"] = this.location;
32815
+ data["type"] = this.type;
32816
+ data["interface"] = this.interface;
32817
+ data["lastUsedBy"] = this.lastUsedBy;
32818
+ data["lastUsedById"] = this.lastUsedById;
32819
+ data["lastUsed"] = this.lastUsed ? this.lastUsed.toISOString() : undefined;
32820
+ data["diameter"] = this.diameter;
32821
+ data["outerDiameter"] = this.outerDiameter;
32822
+ data["innerDiameter"] = this.innerDiameter;
32823
+ data["depth"] = this.depth;
32824
+ data["totalHeight"] = this.totalHeight;
32825
+ data["width"] = this.width;
32826
+ data["totalLength"] = this.totalLength;
32827
+ data["gripSide"] = this.gripSide;
32828
+ data["description"] = this.description;
32829
+ return data;
32830
+ }
32831
+ }
32832
+ export class ListFixtures {
32833
+ constructor(data) {
32834
+ if (data) {
32835
+ for (var property in data) {
32836
+ if (data.hasOwnProperty(property))
32837
+ this[property] = data[property];
32838
+ }
32839
+ }
32840
+ }
32841
+ init(_data) {
32842
+ if (_data) {
32843
+ this.pageSize = _data["pageSize"];
32844
+ if (Array.isArray(_data["fixtureTypeFilter"])) {
32845
+ this.fixtureTypeFilter = [];
32846
+ for (let item of _data["fixtureTypeFilter"])
32847
+ this.fixtureTypeFilter.push(item);
32848
+ }
32849
+ this.continuationToken = _data["continuationToken"];
32850
+ }
32851
+ }
32852
+ static fromJS(data) {
32853
+ data = typeof data === 'object' ? data : {};
32854
+ let result = new ListFixtures();
32855
+ result.init(data);
32856
+ return result;
32857
+ }
32858
+ toJSON(data) {
32859
+ data = typeof data === 'object' ? data : {};
32860
+ data["pageSize"] = this.pageSize;
32861
+ if (Array.isArray(this.fixtureTypeFilter)) {
32862
+ data["fixtureTypeFilter"] = [];
32863
+ for (let item of this.fixtureTypeFilter)
32864
+ data["fixtureTypeFilter"].push(item);
32865
+ }
32866
+ data["continuationToken"] = this.continuationToken;
32867
+ return data;
32868
+ }
32869
+ }
32870
+ export class FixtureUpdateDto {
32871
+ constructor(data) {
32872
+ if (data) {
32873
+ for (var property in data) {
32874
+ if (data.hasOwnProperty(property))
32875
+ this[property] = data[property];
32876
+ }
32877
+ }
32878
+ }
32879
+ init(_data) {
32880
+ if (_data) {
32881
+ this.name = _data["name"];
32882
+ this.drawing = _data["drawing"];
32883
+ this.drawingRev = _data["drawingRev"];
32884
+ this.sourceMachine = _data["sourceMachine"];
32885
+ this.location = _data["location"];
32886
+ this.type = _data["type"];
32887
+ this.interface = _data["interface"];
32888
+ this.diameter = _data["diameter"];
32889
+ this.outerDiameter = _data["outerDiameter"];
32890
+ this.innerDiameter = _data["innerDiameter"];
32891
+ this.depth = _data["depth"];
32892
+ this.totalHeight = _data["totalHeight"];
32893
+ this.width = _data["width"];
32894
+ this.totalLength = _data["totalLength"];
32895
+ this.gripSide = _data["gripSide"];
32896
+ this.description = _data["description"];
32897
+ }
32898
+ }
32899
+ static fromJS(data) {
32900
+ data = typeof data === 'object' ? data : {};
32901
+ let result = new FixtureUpdateDto();
32902
+ result.init(data);
32903
+ return result;
32904
+ }
32905
+ toJSON(data) {
32906
+ data = typeof data === 'object' ? data : {};
32907
+ data["name"] = this.name;
32908
+ data["drawing"] = this.drawing;
32909
+ data["drawingRev"] = this.drawingRev;
32910
+ data["sourceMachine"] = this.sourceMachine;
32911
+ data["location"] = this.location;
32912
+ data["type"] = this.type;
32913
+ data["interface"] = this.interface;
32914
+ data["diameter"] = this.diameter;
32915
+ data["outerDiameter"] = this.outerDiameter;
32916
+ data["innerDiameter"] = this.innerDiameter;
32917
+ data["depth"] = this.depth;
32918
+ data["totalHeight"] = this.totalHeight;
32919
+ data["width"] = this.width;
32920
+ data["totalLength"] = this.totalLength;
32921
+ data["gripSide"] = this.gripSide;
32922
+ data["description"] = this.description;
32923
+ return data;
32924
+ }
32925
+ }
32558
32926
  export class SpindleAndCuttingSpeedDto {
32559
32927
  constructor(data) {
32560
32928
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250425.0.11577",
3
+ "version": "20250429.0.11603",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -11931,6 +11931,191 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
11931
11931
  }
11932
11932
  }
11933
11933
 
11934
+ export interface ICncSetupFixturesClient {
11935
+
11936
+ listFixtures(request: ListFixtures): Promise<FixtureListDto>;
11937
+
11938
+ getFixture(fixtureId: string): Promise<FixtureDto>;
11939
+
11940
+ updateFixture(fixtureId: string, update: FixtureUpdateDto): Promise<FixtureDto>;
11941
+
11942
+ createFixture(update: FixtureUpdateDto): Promise<FixtureDto>;
11943
+ }
11944
+
11945
+ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSetupFixturesClient {
11946
+ private http: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> };
11947
+ private baseUrl: string;
11948
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;
11949
+
11950
+ constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: { fetch(url: RequestInfo, init?: RequestInit): Promise<Response> }) {
11951
+ super(configuration);
11952
+ this.http = http ? http : window as any;
11953
+ this.baseUrl = baseUrl ?? "";
11954
+ }
11955
+
11956
+ listFixtures(request: ListFixtures): Promise<FixtureListDto> {
11957
+ let url_ = this.baseUrl + "/fixtures/list";
11958
+ url_ = url_.replace(/[?&]$/, "");
11959
+
11960
+ const content_ = JSON.stringify(request);
11961
+
11962
+ let options_: RequestInit = {
11963
+ body: content_,
11964
+ method: "POST",
11965
+ headers: {
11966
+ "Content-Type": "application/json",
11967
+ "Accept": "application/json"
11968
+ }
11969
+ };
11970
+
11971
+ return this.transformOptions(options_).then(transformedOptions_ => {
11972
+ return this.http.fetch(url_, transformedOptions_);
11973
+ }).then((_response: Response) => {
11974
+ return this.processListFixtures(_response);
11975
+ });
11976
+ }
11977
+
11978
+ protected processListFixtures(response: Response): Promise<FixtureListDto> {
11979
+ const status = response.status;
11980
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
11981
+ if (status === 200) {
11982
+ return response.text().then((_responseText) => {
11983
+ let result200: any = null;
11984
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11985
+ result200 = FixtureListDto.fromJS(resultData200);
11986
+ return result200;
11987
+ });
11988
+ } else if (status !== 200 && status !== 204) {
11989
+ return response.text().then((_responseText) => {
11990
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11991
+ });
11992
+ }
11993
+ return Promise.resolve<FixtureListDto>(null as any);
11994
+ }
11995
+
11996
+ getFixture(fixtureId: string): Promise<FixtureDto> {
11997
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}";
11998
+ if (fixtureId === undefined || fixtureId === null)
11999
+ throw new Error("The parameter 'fixtureId' must be defined.");
12000
+ url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12001
+ url_ = url_.replace(/[?&]$/, "");
12002
+
12003
+ let options_: RequestInit = {
12004
+ method: "GET",
12005
+ headers: {
12006
+ "Accept": "application/json"
12007
+ }
12008
+ };
12009
+
12010
+ return this.transformOptions(options_).then(transformedOptions_ => {
12011
+ return this.http.fetch(url_, transformedOptions_);
12012
+ }).then((_response: Response) => {
12013
+ return this.processGetFixture(_response);
12014
+ });
12015
+ }
12016
+
12017
+ protected processGetFixture(response: Response): Promise<FixtureDto> {
12018
+ const status = response.status;
12019
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12020
+ if (status === 200) {
12021
+ return response.text().then((_responseText) => {
12022
+ let result200: any = null;
12023
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12024
+ result200 = FixtureDto.fromJS(resultData200);
12025
+ return result200;
12026
+ });
12027
+ } else if (status !== 200 && status !== 204) {
12028
+ return response.text().then((_responseText) => {
12029
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12030
+ });
12031
+ }
12032
+ return Promise.resolve<FixtureDto>(null as any);
12033
+ }
12034
+
12035
+ updateFixture(fixtureId: string, update: FixtureUpdateDto): Promise<FixtureDto> {
12036
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}";
12037
+ if (fixtureId === undefined || fixtureId === null)
12038
+ throw new Error("The parameter 'fixtureId' must be defined.");
12039
+ url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12040
+ url_ = url_.replace(/[?&]$/, "");
12041
+
12042
+ const content_ = JSON.stringify(update);
12043
+
12044
+ let options_: RequestInit = {
12045
+ body: content_,
12046
+ method: "PUT",
12047
+ headers: {
12048
+ "Content-Type": "application/json",
12049
+ "Accept": "application/json"
12050
+ }
12051
+ };
12052
+
12053
+ return this.transformOptions(options_).then(transformedOptions_ => {
12054
+ return this.http.fetch(url_, transformedOptions_);
12055
+ }).then((_response: Response) => {
12056
+ return this.processUpdateFixture(_response);
12057
+ });
12058
+ }
12059
+
12060
+ protected processUpdateFixture(response: Response): Promise<FixtureDto> {
12061
+ const status = response.status;
12062
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12063
+ if (status === 200) {
12064
+ return response.text().then((_responseText) => {
12065
+ let result200: any = null;
12066
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12067
+ result200 = FixtureDto.fromJS(resultData200);
12068
+ return result200;
12069
+ });
12070
+ } else if (status !== 200 && status !== 204) {
12071
+ return response.text().then((_responseText) => {
12072
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12073
+ });
12074
+ }
12075
+ return Promise.resolve<FixtureDto>(null as any);
12076
+ }
12077
+
12078
+ createFixture(update: FixtureUpdateDto): Promise<FixtureDto> {
12079
+ let url_ = this.baseUrl + "/fixtures";
12080
+ url_ = url_.replace(/[?&]$/, "");
12081
+
12082
+ const content_ = JSON.stringify(update);
12083
+
12084
+ let options_: RequestInit = {
12085
+ body: content_,
12086
+ method: "POST",
12087
+ headers: {
12088
+ "Content-Type": "application/json",
12089
+ "Accept": "application/json"
12090
+ }
12091
+ };
12092
+
12093
+ return this.transformOptions(options_).then(transformedOptions_ => {
12094
+ return this.http.fetch(url_, transformedOptions_);
12095
+ }).then((_response: Response) => {
12096
+ return this.processCreateFixture(_response);
12097
+ });
12098
+ }
12099
+
12100
+ protected processCreateFixture(response: Response): Promise<FixtureDto> {
12101
+ const status = response.status;
12102
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12103
+ if (status === 200) {
12104
+ return response.text().then((_responseText) => {
12105
+ let result200: any = null;
12106
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12107
+ result200 = FixtureDto.fromJS(resultData200);
12108
+ return result200;
12109
+ });
12110
+ } else if (status !== 200 && status !== 204) {
12111
+ return response.text().then((_responseText) => {
12112
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12113
+ });
12114
+ }
12115
+ return Promise.resolve<FixtureDto>(null as any);
12116
+ }
12117
+ }
12118
+
11934
12119
  export interface IOperatorCalculatorsClient {
11935
12120
 
11936
12121
  /**
@@ -39560,6 +39745,321 @@ export interface ICopyCncTool {
39560
39745
 
39561
39746
  export type ToolOriginType = "Operation" | "Machine";
39562
39747
 
39748
+ export class FixtureListDto implements IFixtureListDto {
39749
+ results!: FixtureDto[];
39750
+ continuationToken?: string | null;
39751
+
39752
+ constructor(data?: IFixtureListDto) {
39753
+ if (data) {
39754
+ for (var property in data) {
39755
+ if (data.hasOwnProperty(property))
39756
+ (<any>this)[property] = (<any>data)[property];
39757
+ }
39758
+ }
39759
+ if (!data) {
39760
+ this.results = [];
39761
+ }
39762
+ }
39763
+
39764
+ init(_data?: any) {
39765
+ if (_data) {
39766
+ if (Array.isArray(_data["results"])) {
39767
+ this.results = [] as any;
39768
+ for (let item of _data["results"])
39769
+ this.results!.push(FixtureDto.fromJS(item));
39770
+ }
39771
+ this.continuationToken = _data["continuationToken"];
39772
+ }
39773
+ }
39774
+
39775
+ static fromJS(data: any): FixtureListDto {
39776
+ data = typeof data === 'object' ? data : {};
39777
+ let result = new FixtureListDto();
39778
+ result.init(data);
39779
+ return result;
39780
+ }
39781
+
39782
+ toJSON(data?: any) {
39783
+ data = typeof data === 'object' ? data : {};
39784
+ if (Array.isArray(this.results)) {
39785
+ data["results"] = [];
39786
+ for (let item of this.results)
39787
+ data["results"].push(item.toJSON());
39788
+ }
39789
+ data["continuationToken"] = this.continuationToken;
39790
+ return data;
39791
+ }
39792
+ }
39793
+
39794
+ export interface IFixtureListDto {
39795
+ results: FixtureDto[];
39796
+ continuationToken?: string | null;
39797
+ }
39798
+
39799
+ export class FixtureDto implements IFixtureDto {
39800
+ id!: string;
39801
+ name!: string;
39802
+ drawing?: string | null;
39803
+ drawingRev?: string | null;
39804
+ sourceMachine?: string | null;
39805
+ location?: string | null;
39806
+ type?: FixtureTypeDto;
39807
+ interface?: string | null;
39808
+ lastUsedBy?: string | null;
39809
+ lastUsedById?: string | null;
39810
+ lastUsed?: Date | null;
39811
+ diameter?: number | null;
39812
+ outerDiameter?: number | null;
39813
+ innerDiameter?: number | null;
39814
+ depth?: number | null;
39815
+ totalHeight?: number | null;
39816
+ width?: number | null;
39817
+ totalLength?: number | null;
39818
+ gripSide?: GripSideDto | null;
39819
+ description?: string | null;
39820
+
39821
+ constructor(data?: IFixtureDto) {
39822
+ if (data) {
39823
+ for (var property in data) {
39824
+ if (data.hasOwnProperty(property))
39825
+ (<any>this)[property] = (<any>data)[property];
39826
+ }
39827
+ }
39828
+ }
39829
+
39830
+ init(_data?: any) {
39831
+ if (_data) {
39832
+ this.id = _data["id"];
39833
+ this.name = _data["name"];
39834
+ this.drawing = _data["drawing"];
39835
+ this.drawingRev = _data["drawingRev"];
39836
+ this.sourceMachine = _data["sourceMachine"];
39837
+ this.location = _data["location"];
39838
+ this.type = _data["type"];
39839
+ this.interface = _data["interface"];
39840
+ this.lastUsedBy = _data["lastUsedBy"];
39841
+ this.lastUsedById = _data["lastUsedById"];
39842
+ this.lastUsed = _data["lastUsed"] ? new Date(_data["lastUsed"].toString()) : <any>undefined;
39843
+ this.diameter = _data["diameter"];
39844
+ this.outerDiameter = _data["outerDiameter"];
39845
+ this.innerDiameter = _data["innerDiameter"];
39846
+ this.depth = _data["depth"];
39847
+ this.totalHeight = _data["totalHeight"];
39848
+ this.width = _data["width"];
39849
+ this.totalLength = _data["totalLength"];
39850
+ this.gripSide = _data["gripSide"];
39851
+ this.description = _data["description"];
39852
+ }
39853
+ }
39854
+
39855
+ static fromJS(data: any): FixtureDto {
39856
+ data = typeof data === 'object' ? data : {};
39857
+ let result = new FixtureDto();
39858
+ result.init(data);
39859
+ return result;
39860
+ }
39861
+
39862
+ toJSON(data?: any) {
39863
+ data = typeof data === 'object' ? data : {};
39864
+ data["id"] = this.id;
39865
+ data["name"] = this.name;
39866
+ data["drawing"] = this.drawing;
39867
+ data["drawingRev"] = this.drawingRev;
39868
+ data["sourceMachine"] = this.sourceMachine;
39869
+ data["location"] = this.location;
39870
+ data["type"] = this.type;
39871
+ data["interface"] = this.interface;
39872
+ data["lastUsedBy"] = this.lastUsedBy;
39873
+ data["lastUsedById"] = this.lastUsedById;
39874
+ data["lastUsed"] = this.lastUsed ? this.lastUsed.toISOString() : <any>undefined;
39875
+ data["diameter"] = this.diameter;
39876
+ data["outerDiameter"] = this.outerDiameter;
39877
+ data["innerDiameter"] = this.innerDiameter;
39878
+ data["depth"] = this.depth;
39879
+ data["totalHeight"] = this.totalHeight;
39880
+ data["width"] = this.width;
39881
+ data["totalLength"] = this.totalLength;
39882
+ data["gripSide"] = this.gripSide;
39883
+ data["description"] = this.description;
39884
+ return data;
39885
+ }
39886
+ }
39887
+
39888
+ export interface IFixtureDto {
39889
+ id: string;
39890
+ name: string;
39891
+ drawing?: string | null;
39892
+ drawingRev?: string | null;
39893
+ sourceMachine?: string | null;
39894
+ location?: string | null;
39895
+ type?: FixtureTypeDto;
39896
+ interface?: string | null;
39897
+ lastUsedBy?: string | null;
39898
+ lastUsedById?: string | null;
39899
+ lastUsed?: Date | null;
39900
+ diameter?: number | null;
39901
+ outerDiameter?: number | null;
39902
+ innerDiameter?: number | null;
39903
+ depth?: number | null;
39904
+ totalHeight?: number | null;
39905
+ width?: number | null;
39906
+ totalLength?: number | null;
39907
+ gripSide?: GripSideDto | null;
39908
+ description?: string | null;
39909
+ }
39910
+
39911
+ export type FixtureTypeDto = "Bungs" | "Jaws" | "Jigs" | "Centers";
39912
+
39913
+ export type GripSideDto = "NotApplicable" | "Inside" | "Outside";
39914
+
39915
+ export class ListFixtures implements IListFixtures {
39916
+ pageSize?: number | null;
39917
+ fixtureTypeFilter?: FixtureTypeDto[] | null;
39918
+ continuationToken?: string | null;
39919
+
39920
+ constructor(data?: IListFixtures) {
39921
+ if (data) {
39922
+ for (var property in data) {
39923
+ if (data.hasOwnProperty(property))
39924
+ (<any>this)[property] = (<any>data)[property];
39925
+ }
39926
+ }
39927
+ }
39928
+
39929
+ init(_data?: any) {
39930
+ if (_data) {
39931
+ this.pageSize = _data["pageSize"];
39932
+ if (Array.isArray(_data["fixtureTypeFilter"])) {
39933
+ this.fixtureTypeFilter = [] as any;
39934
+ for (let item of _data["fixtureTypeFilter"])
39935
+ this.fixtureTypeFilter!.push(item);
39936
+ }
39937
+ this.continuationToken = _data["continuationToken"];
39938
+ }
39939
+ }
39940
+
39941
+ static fromJS(data: any): ListFixtures {
39942
+ data = typeof data === 'object' ? data : {};
39943
+ let result = new ListFixtures();
39944
+ result.init(data);
39945
+ return result;
39946
+ }
39947
+
39948
+ toJSON(data?: any) {
39949
+ data = typeof data === 'object' ? data : {};
39950
+ data["pageSize"] = this.pageSize;
39951
+ if (Array.isArray(this.fixtureTypeFilter)) {
39952
+ data["fixtureTypeFilter"] = [];
39953
+ for (let item of this.fixtureTypeFilter)
39954
+ data["fixtureTypeFilter"].push(item);
39955
+ }
39956
+ data["continuationToken"] = this.continuationToken;
39957
+ return data;
39958
+ }
39959
+ }
39960
+
39961
+ export interface IListFixtures {
39962
+ pageSize?: number | null;
39963
+ fixtureTypeFilter?: FixtureTypeDto[] | null;
39964
+ continuationToken?: string | null;
39965
+ }
39966
+
39967
+ export class FixtureUpdateDto implements IFixtureUpdateDto {
39968
+ name!: string;
39969
+ drawing?: string | null;
39970
+ drawingRev?: string | null;
39971
+ sourceMachine?: string | null;
39972
+ location?: string | null;
39973
+ type?: FixtureTypeDto;
39974
+ interface?: string | null;
39975
+ diameter?: number | null;
39976
+ outerDiameter?: number | null;
39977
+ innerDiameter?: number | null;
39978
+ depth?: number | null;
39979
+ totalHeight?: number | null;
39980
+ width?: number | null;
39981
+ totalLength?: number | null;
39982
+ gripSide?: GripSideDto;
39983
+ description?: string | null;
39984
+
39985
+ constructor(data?: IFixtureUpdateDto) {
39986
+ if (data) {
39987
+ for (var property in data) {
39988
+ if (data.hasOwnProperty(property))
39989
+ (<any>this)[property] = (<any>data)[property];
39990
+ }
39991
+ }
39992
+ }
39993
+
39994
+ init(_data?: any) {
39995
+ if (_data) {
39996
+ this.name = _data["name"];
39997
+ this.drawing = _data["drawing"];
39998
+ this.drawingRev = _data["drawingRev"];
39999
+ this.sourceMachine = _data["sourceMachine"];
40000
+ this.location = _data["location"];
40001
+ this.type = _data["type"];
40002
+ this.interface = _data["interface"];
40003
+ this.diameter = _data["diameter"];
40004
+ this.outerDiameter = _data["outerDiameter"];
40005
+ this.innerDiameter = _data["innerDiameter"];
40006
+ this.depth = _data["depth"];
40007
+ this.totalHeight = _data["totalHeight"];
40008
+ this.width = _data["width"];
40009
+ this.totalLength = _data["totalLength"];
40010
+ this.gripSide = _data["gripSide"];
40011
+ this.description = _data["description"];
40012
+ }
40013
+ }
40014
+
40015
+ static fromJS(data: any): FixtureUpdateDto {
40016
+ data = typeof data === 'object' ? data : {};
40017
+ let result = new FixtureUpdateDto();
40018
+ result.init(data);
40019
+ return result;
40020
+ }
40021
+
40022
+ toJSON(data?: any) {
40023
+ data = typeof data === 'object' ? data : {};
40024
+ data["name"] = this.name;
40025
+ data["drawing"] = this.drawing;
40026
+ data["drawingRev"] = this.drawingRev;
40027
+ data["sourceMachine"] = this.sourceMachine;
40028
+ data["location"] = this.location;
40029
+ data["type"] = this.type;
40030
+ data["interface"] = this.interface;
40031
+ data["diameter"] = this.diameter;
40032
+ data["outerDiameter"] = this.outerDiameter;
40033
+ data["innerDiameter"] = this.innerDiameter;
40034
+ data["depth"] = this.depth;
40035
+ data["totalHeight"] = this.totalHeight;
40036
+ data["width"] = this.width;
40037
+ data["totalLength"] = this.totalLength;
40038
+ data["gripSide"] = this.gripSide;
40039
+ data["description"] = this.description;
40040
+ return data;
40041
+ }
40042
+ }
40043
+
40044
+ export interface IFixtureUpdateDto {
40045
+ name: string;
40046
+ drawing?: string | null;
40047
+ drawingRev?: string | null;
40048
+ sourceMachine?: string | null;
40049
+ location?: string | null;
40050
+ type?: FixtureTypeDto;
40051
+ interface?: string | null;
40052
+ diameter?: number | null;
40053
+ outerDiameter?: number | null;
40054
+ innerDiameter?: number | null;
40055
+ depth?: number | null;
40056
+ totalHeight?: number | null;
40057
+ width?: number | null;
40058
+ totalLength?: number | null;
40059
+ gripSide?: GripSideDto;
40060
+ description?: string | null;
40061
+ }
40062
+
39563
40063
  export class SpindleAndCuttingSpeedDto implements ISpindleAndCuttingSpeedDto {
39564
40064
  diameter!: number;
39565
40065
  cuttingSpeed!: number;