@ignos/api-client 20250605.0.11880 → 20250619.0.11931

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.
@@ -1206,6 +1206,8 @@ export interface ICncSetupClient {
1206
1206
  deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
1207
1207
  importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
1208
1208
  copyTool(command: CopyCncTool): Promise<CncToolDto>;
1209
+ getKeepSettings(): Promise<KeepSettingsDto>;
1210
+ updateKeepSettings(request: UpdateKeepSettings): Promise<KeepSettingsDto>;
1209
1211
  }
1210
1212
  export declare class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient {
1211
1213
  private http;
@@ -1320,6 +1322,10 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
1320
1322
  protected processImportOperationWithTools(response: Response): Promise<void>;
1321
1323
  copyTool(command: CopyCncTool): Promise<CncToolDto>;
1322
1324
  protected processCopyTool(response: Response): Promise<CncToolDto>;
1325
+ getKeepSettings(): Promise<KeepSettingsDto>;
1326
+ protected processGetKeepSettings(response: Response): Promise<KeepSettingsDto>;
1327
+ updateKeepSettings(request: UpdateKeepSettings): Promise<KeepSettingsDto>;
1328
+ protected processUpdateKeepSettings(response: Response): Promise<KeepSettingsDto>;
1323
1329
  }
1324
1330
  export interface ICncSetupFixturesClient {
1325
1331
  listFixtures(request: ListFixtures): Promise<FixtureListDto>;
@@ -1330,11 +1336,11 @@ export interface ICncSetupFixturesClient {
1330
1336
  getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
1331
1337
  getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
1332
1338
  listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
1333
- uploadFixtureAttachment(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<FileDto>;
1334
- deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void>;
1339
+ uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]>;
1340
+ deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void>;
1335
1341
  listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
1336
- uploadFixtureImage(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<ListFixtureImagesDto>;
1337
- deleteFixtureImage(fixtureId: string, filename: string): Promise<void>;
1342
+ uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]>;
1343
+ deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void>;
1338
1344
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1339
1345
  operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1340
1346
  }
@@ -1361,16 +1367,16 @@ export declare class CncSetupFixturesClient extends AuthorizedApiBase implements
1361
1367
  protected processGetFixtureLocationSuggestions(response: Response): Promise<FixtureSuggestionDto[]>;
1362
1368
  listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
1363
1369
  protected processListFixtureAttachments(response: Response): Promise<FileDto[]>;
1364
- uploadFixtureAttachment(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<FileDto>;
1365
- protected processUploadFixtureAttachment(response: Response): Promise<FileDto>;
1366
- deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void>;
1367
- protected processDeleteFixtureAttachment(response: Response): Promise<void>;
1370
+ uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]>;
1371
+ protected processUploadFixtureAttachments(response: Response): Promise<FileDto[]>;
1372
+ deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void>;
1373
+ protected processDeleteFixtureAttachments(response: Response): Promise<void>;
1368
1374
  listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
1369
1375
  protected processListFixtureImages(response: Response): Promise<ListFixtureImagesDto[]>;
1370
- uploadFixtureImage(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<ListFixtureImagesDto>;
1371
- protected processUploadFixtureImage(response: Response): Promise<ListFixtureImagesDto>;
1372
- deleteFixtureImage(fixtureId: string, filename: string): Promise<void>;
1373
- protected processDeleteFixtureImage(response: Response): Promise<void>;
1376
+ uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]>;
1377
+ protected processUploadFixtureImages(response: Response): Promise<ListFixtureImagesDto[]>;
1378
+ deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void>;
1379
+ protected processDeleteFixtureImages(response: Response): Promise<void>;
1374
1380
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1375
1381
  protected processOperationAddFixture(response: Response): Promise<CncMachineOperationDto>;
1376
1382
  operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
@@ -8238,6 +8244,36 @@ export interface ICopyCncTool {
8238
8244
  originType: ToolOriginType;
8239
8245
  }
8240
8246
  export type ToolOriginType = "Operation" | "Machine";
8247
+ export declare class KeepSettingsDto implements IKeepSettingsDto {
8248
+ autoApproveFixtures?: boolean;
8249
+ created: Date;
8250
+ createdBy: string;
8251
+ createdById: string;
8252
+ updatedBy?: string | null;
8253
+ updatedById?: string | null;
8254
+ constructor(data?: IKeepSettingsDto);
8255
+ init(_data?: any): void;
8256
+ static fromJS(data: any): KeepSettingsDto;
8257
+ toJSON(data?: any): any;
8258
+ }
8259
+ export interface IKeepSettingsDto {
8260
+ autoApproveFixtures?: boolean;
8261
+ created: Date;
8262
+ createdBy: string;
8263
+ createdById: string;
8264
+ updatedBy?: string | null;
8265
+ updatedById?: string | null;
8266
+ }
8267
+ export declare class UpdateKeepSettings implements IUpdateKeepSettings {
8268
+ autoApproveFixtures: boolean;
8269
+ constructor(data?: IUpdateKeepSettings);
8270
+ init(_data?: any): void;
8271
+ static fromJS(data: any): UpdateKeepSettings;
8272
+ toJSON(data?: any): any;
8273
+ }
8274
+ export interface IUpdateKeepSettings {
8275
+ autoApproveFixtures: boolean;
8276
+ }
8241
8277
  export declare class FixtureListDto implements IFixtureListDto {
8242
8278
  results: FixtureDto[];
8243
8279
  continuationToken?: string | null;
@@ -11193,6 +11193,83 @@ export class CncSetupClient extends AuthorizedApiBase {
11193
11193
  }
11194
11194
  return Promise.resolve(null);
11195
11195
  }
11196
+ getKeepSettings() {
11197
+ let url_ = this.baseUrl + "/cncsetup/settings";
11198
+ url_ = url_.replace(/[?&]$/, "");
11199
+ let options_ = {
11200
+ method: "GET",
11201
+ headers: {
11202
+ "Accept": "application/json"
11203
+ }
11204
+ };
11205
+ return this.transformOptions(options_).then(transformedOptions_ => {
11206
+ return this.http.fetch(url_, transformedOptions_);
11207
+ }).then((_response) => {
11208
+ return this.processGetKeepSettings(_response);
11209
+ });
11210
+ }
11211
+ processGetKeepSettings(response) {
11212
+ const status = response.status;
11213
+ let _headers = {};
11214
+ if (response.headers && response.headers.forEach) {
11215
+ response.headers.forEach((v, k) => _headers[k] = v);
11216
+ }
11217
+ ;
11218
+ if (status === 200) {
11219
+ return response.text().then((_responseText) => {
11220
+ let result200 = null;
11221
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11222
+ result200 = KeepSettingsDto.fromJS(resultData200);
11223
+ return result200;
11224
+ });
11225
+ }
11226
+ else if (status !== 200 && status !== 204) {
11227
+ return response.text().then((_responseText) => {
11228
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11229
+ });
11230
+ }
11231
+ return Promise.resolve(null);
11232
+ }
11233
+ updateKeepSettings(request) {
11234
+ let url_ = this.baseUrl + "/cncsetup/settings";
11235
+ url_ = url_.replace(/[?&]$/, "");
11236
+ const content_ = JSON.stringify(request);
11237
+ let options_ = {
11238
+ body: content_,
11239
+ method: "POST",
11240
+ headers: {
11241
+ "Content-Type": "application/json",
11242
+ "Accept": "application/json"
11243
+ }
11244
+ };
11245
+ return this.transformOptions(options_).then(transformedOptions_ => {
11246
+ return this.http.fetch(url_, transformedOptions_);
11247
+ }).then((_response) => {
11248
+ return this.processUpdateKeepSettings(_response);
11249
+ });
11250
+ }
11251
+ processUpdateKeepSettings(response) {
11252
+ const status = response.status;
11253
+ let _headers = {};
11254
+ if (response.headers && response.headers.forEach) {
11255
+ response.headers.forEach((v, k) => _headers[k] = v);
11256
+ }
11257
+ ;
11258
+ if (status === 200) {
11259
+ return response.text().then((_responseText) => {
11260
+ let result200 = null;
11261
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11262
+ result200 = KeepSettingsDto.fromJS(resultData200);
11263
+ return result200;
11264
+ });
11265
+ }
11266
+ else if (status !== 200 && status !== 204) {
11267
+ return response.text().then((_responseText) => {
11268
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11269
+ });
11270
+ }
11271
+ return Promise.resolve(null);
11272
+ }
11196
11273
  }
11197
11274
  export class CncSetupFixturesClient extends AuthorizedApiBase {
11198
11275
  constructor(configuration, baseUrl, http) {
@@ -11543,13 +11620,13 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11543
11620
  }
11544
11621
  return Promise.resolve(null);
11545
11622
  }
11546
- uploadFixtureAttachment(fixtureId, attachment) {
11623
+ uploadFixtureAttachments(fixtureId, attachments) {
11547
11624
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
11548
11625
  if (fixtureId === undefined || fixtureId === null)
11549
11626
  throw new Error("The parameter 'fixtureId' must be defined.");
11550
11627
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11551
11628
  url_ = url_.replace(/[?&]$/, "");
11552
- const content_ = JSON.stringify(attachment);
11629
+ const content_ = JSON.stringify(attachments);
11553
11630
  let options_ = {
11554
11631
  body: content_,
11555
11632
  method: "POST",
@@ -11561,10 +11638,10 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11561
11638
  return this.transformOptions(options_).then(transformedOptions_ => {
11562
11639
  return this.http.fetch(url_, transformedOptions_);
11563
11640
  }).then((_response) => {
11564
- return this.processUploadFixtureAttachment(_response);
11641
+ return this.processUploadFixtureAttachments(_response);
11565
11642
  });
11566
11643
  }
11567
- processUploadFixtureAttachment(response) {
11644
+ processUploadFixtureAttachments(response) {
11568
11645
  const status = response.status;
11569
11646
  let _headers = {};
11570
11647
  if (response.headers && response.headers.forEach) {
@@ -11575,7 +11652,11 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11575
11652
  return response.text().then((_responseText) => {
11576
11653
  let result200 = null;
11577
11654
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11578
- result200 = FileDto.fromJS(resultData200);
11655
+ if (Array.isArray(resultData200)) {
11656
+ result200 = [];
11657
+ for (let item of resultData200)
11658
+ result200.push(FileDto.fromJS(item));
11659
+ }
11579
11660
  return result200;
11580
11661
  });
11581
11662
  }
@@ -11586,26 +11667,27 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11586
11667
  }
11587
11668
  return Promise.resolve(null);
11588
11669
  }
11589
- deleteFixtureAttachment(fixtureId, filename) {
11590
- let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments/{filename}";
11670
+ deleteFixtureAttachments(fixtureId, filenames) {
11671
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
11591
11672
  if (fixtureId === undefined || fixtureId === null)
11592
11673
  throw new Error("The parameter 'fixtureId' must be defined.");
11593
11674
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11594
- if (filename === undefined || filename === null)
11595
- throw new Error("The parameter 'filename' must be defined.");
11596
- url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
11597
11675
  url_ = url_.replace(/[?&]$/, "");
11676
+ const content_ = JSON.stringify(filenames);
11598
11677
  let options_ = {
11678
+ body: content_,
11599
11679
  method: "DELETE",
11600
- headers: {}
11680
+ headers: {
11681
+ "Content-Type": "application/json",
11682
+ }
11601
11683
  };
11602
11684
  return this.transformOptions(options_).then(transformedOptions_ => {
11603
11685
  return this.http.fetch(url_, transformedOptions_);
11604
11686
  }).then((_response) => {
11605
- return this.processDeleteFixtureAttachment(_response);
11687
+ return this.processDeleteFixtureAttachments(_response);
11606
11688
  });
11607
11689
  }
11608
- processDeleteFixtureAttachment(response) {
11690
+ processDeleteFixtureAttachments(response) {
11609
11691
  const status = response.status;
11610
11692
  let _headers = {};
11611
11693
  if (response.headers && response.headers.forEach) {
@@ -11668,13 +11750,13 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11668
11750
  }
11669
11751
  return Promise.resolve(null);
11670
11752
  }
11671
- uploadFixtureImage(fixtureId, attachment) {
11753
+ uploadFixtureImages(fixtureId, attachments) {
11672
11754
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
11673
11755
  if (fixtureId === undefined || fixtureId === null)
11674
11756
  throw new Error("The parameter 'fixtureId' must be defined.");
11675
11757
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11676
11758
  url_ = url_.replace(/[?&]$/, "");
11677
- const content_ = JSON.stringify(attachment);
11759
+ const content_ = JSON.stringify(attachments);
11678
11760
  let options_ = {
11679
11761
  body: content_,
11680
11762
  method: "POST",
@@ -11686,10 +11768,10 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11686
11768
  return this.transformOptions(options_).then(transformedOptions_ => {
11687
11769
  return this.http.fetch(url_, transformedOptions_);
11688
11770
  }).then((_response) => {
11689
- return this.processUploadFixtureImage(_response);
11771
+ return this.processUploadFixtureImages(_response);
11690
11772
  });
11691
11773
  }
11692
- processUploadFixtureImage(response) {
11774
+ processUploadFixtureImages(response) {
11693
11775
  const status = response.status;
11694
11776
  let _headers = {};
11695
11777
  if (response.headers && response.headers.forEach) {
@@ -11700,7 +11782,11 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11700
11782
  return response.text().then((_responseText) => {
11701
11783
  let result200 = null;
11702
11784
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11703
- result200 = ListFixtureImagesDto.fromJS(resultData200);
11785
+ if (Array.isArray(resultData200)) {
11786
+ result200 = [];
11787
+ for (let item of resultData200)
11788
+ result200.push(ListFixtureImagesDto.fromJS(item));
11789
+ }
11704
11790
  return result200;
11705
11791
  });
11706
11792
  }
@@ -11711,26 +11797,27 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11711
11797
  }
11712
11798
  return Promise.resolve(null);
11713
11799
  }
11714
- deleteFixtureImage(fixtureId, filename) {
11715
- let url_ = this.baseUrl + "/fixtures/{fixtureId}/images/{filename}";
11800
+ deleteFixtureImages(fixtureId, filenames) {
11801
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
11716
11802
  if (fixtureId === undefined || fixtureId === null)
11717
11803
  throw new Error("The parameter 'fixtureId' must be defined.");
11718
11804
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11719
- if (filename === undefined || filename === null)
11720
- throw new Error("The parameter 'filename' must be defined.");
11721
- url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
11722
11805
  url_ = url_.replace(/[?&]$/, "");
11806
+ const content_ = JSON.stringify(filenames);
11723
11807
  let options_ = {
11808
+ body: content_,
11724
11809
  method: "DELETE",
11725
- headers: {}
11810
+ headers: {
11811
+ "Content-Type": "application/json",
11812
+ }
11726
11813
  };
11727
11814
  return this.transformOptions(options_).then(transformedOptions_ => {
11728
11815
  return this.http.fetch(url_, transformedOptions_);
11729
11816
  }).then((_response) => {
11730
- return this.processDeleteFixtureImage(_response);
11817
+ return this.processDeleteFixtureImages(_response);
11731
11818
  });
11732
11819
  }
11733
- processDeleteFixtureImage(response) {
11820
+ processDeleteFixtureImages(response) {
11734
11821
  const status = response.status;
11735
11822
  let _headers = {};
11736
11823
  if (response.headers && response.headers.forEach) {
@@ -33729,6 +33816,68 @@ export class CopyCncTool {
33729
33816
  return data;
33730
33817
  }
33731
33818
  }
33819
+ export class KeepSettingsDto {
33820
+ constructor(data) {
33821
+ if (data) {
33822
+ for (var property in data) {
33823
+ if (data.hasOwnProperty(property))
33824
+ this[property] = data[property];
33825
+ }
33826
+ }
33827
+ }
33828
+ init(_data) {
33829
+ if (_data) {
33830
+ this.autoApproveFixtures = _data["autoApproveFixtures"];
33831
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
33832
+ this.createdBy = _data["createdBy"];
33833
+ this.createdById = _data["createdById"];
33834
+ this.updatedBy = _data["updatedBy"];
33835
+ this.updatedById = _data["updatedById"];
33836
+ }
33837
+ }
33838
+ static fromJS(data) {
33839
+ data = typeof data === 'object' ? data : {};
33840
+ let result = new KeepSettingsDto();
33841
+ result.init(data);
33842
+ return result;
33843
+ }
33844
+ toJSON(data) {
33845
+ data = typeof data === 'object' ? data : {};
33846
+ data["autoApproveFixtures"] = this.autoApproveFixtures;
33847
+ data["created"] = this.created ? this.created.toISOString() : undefined;
33848
+ data["createdBy"] = this.createdBy;
33849
+ data["createdById"] = this.createdById;
33850
+ data["updatedBy"] = this.updatedBy;
33851
+ data["updatedById"] = this.updatedById;
33852
+ return data;
33853
+ }
33854
+ }
33855
+ export class UpdateKeepSettings {
33856
+ constructor(data) {
33857
+ if (data) {
33858
+ for (var property in data) {
33859
+ if (data.hasOwnProperty(property))
33860
+ this[property] = data[property];
33861
+ }
33862
+ }
33863
+ }
33864
+ init(_data) {
33865
+ if (_data) {
33866
+ this.autoApproveFixtures = _data["autoApproveFixtures"];
33867
+ }
33868
+ }
33869
+ static fromJS(data) {
33870
+ data = typeof data === 'object' ? data : {};
33871
+ let result = new UpdateKeepSettings();
33872
+ result.init(data);
33873
+ return result;
33874
+ }
33875
+ toJSON(data) {
33876
+ data = typeof data === 'object' ? data : {};
33877
+ data["autoApproveFixtures"] = this.autoApproveFixtures;
33878
+ return data;
33879
+ }
33880
+ }
33732
33881
  export class FixtureListDto {
33733
33882
  constructor(data) {
33734
33883
  if (data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250605.0.11880",
3
+ "version": "20250619.0.11931",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -9711,6 +9711,10 @@ export interface ICncSetupClient {
9711
9711
  importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
9712
9712
 
9713
9713
  copyTool(command: CopyCncTool): Promise<CncToolDto>;
9714
+
9715
+ getKeepSettings(): Promise<KeepSettingsDto>;
9716
+
9717
+ updateKeepSettings(request: UpdateKeepSettings): Promise<KeepSettingsDto>;
9714
9718
  }
9715
9719
 
9716
9720
  export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient {
@@ -11929,6 +11933,82 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
11929
11933
  }
11930
11934
  return Promise.resolve<CncToolDto>(null as any);
11931
11935
  }
11936
+
11937
+ getKeepSettings(): Promise<KeepSettingsDto> {
11938
+ let url_ = this.baseUrl + "/cncsetup/settings";
11939
+ url_ = url_.replace(/[?&]$/, "");
11940
+
11941
+ let options_: RequestInit = {
11942
+ method: "GET",
11943
+ headers: {
11944
+ "Accept": "application/json"
11945
+ }
11946
+ };
11947
+
11948
+ return this.transformOptions(options_).then(transformedOptions_ => {
11949
+ return this.http.fetch(url_, transformedOptions_);
11950
+ }).then((_response: Response) => {
11951
+ return this.processGetKeepSettings(_response);
11952
+ });
11953
+ }
11954
+
11955
+ protected processGetKeepSettings(response: Response): Promise<KeepSettingsDto> {
11956
+ const status = response.status;
11957
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
11958
+ if (status === 200) {
11959
+ return response.text().then((_responseText) => {
11960
+ let result200: any = null;
11961
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11962
+ result200 = KeepSettingsDto.fromJS(resultData200);
11963
+ return result200;
11964
+ });
11965
+ } else if (status !== 200 && status !== 204) {
11966
+ return response.text().then((_responseText) => {
11967
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11968
+ });
11969
+ }
11970
+ return Promise.resolve<KeepSettingsDto>(null as any);
11971
+ }
11972
+
11973
+ updateKeepSettings(request: UpdateKeepSettings): Promise<KeepSettingsDto> {
11974
+ let url_ = this.baseUrl + "/cncsetup/settings";
11975
+ url_ = url_.replace(/[?&]$/, "");
11976
+
11977
+ const content_ = JSON.stringify(request);
11978
+
11979
+ let options_: RequestInit = {
11980
+ body: content_,
11981
+ method: "POST",
11982
+ headers: {
11983
+ "Content-Type": "application/json",
11984
+ "Accept": "application/json"
11985
+ }
11986
+ };
11987
+
11988
+ return this.transformOptions(options_).then(transformedOptions_ => {
11989
+ return this.http.fetch(url_, transformedOptions_);
11990
+ }).then((_response: Response) => {
11991
+ return this.processUpdateKeepSettings(_response);
11992
+ });
11993
+ }
11994
+
11995
+ protected processUpdateKeepSettings(response: Response): Promise<KeepSettingsDto> {
11996
+ const status = response.status;
11997
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
11998
+ if (status === 200) {
11999
+ return response.text().then((_responseText) => {
12000
+ let result200: any = null;
12001
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12002
+ result200 = KeepSettingsDto.fromJS(resultData200);
12003
+ return result200;
12004
+ });
12005
+ } else if (status !== 200 && status !== 204) {
12006
+ return response.text().then((_responseText) => {
12007
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12008
+ });
12009
+ }
12010
+ return Promise.resolve<KeepSettingsDto>(null as any);
12011
+ }
11932
12012
  }
11933
12013
 
11934
12014
  export interface ICncSetupFixturesClient {
@@ -11949,15 +12029,15 @@ export interface ICncSetupFixturesClient {
11949
12029
 
11950
12030
  listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
11951
12031
 
11952
- uploadFixtureAttachment(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<FileDto>;
12032
+ uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]>;
11953
12033
 
11954
- deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void>;
12034
+ deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void>;
11955
12035
 
11956
12036
  listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
11957
12037
 
11958
- uploadFixtureImage(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<ListFixtureImagesDto>;
12038
+ uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]>;
11959
12039
 
11960
- deleteFixtureImage(fixtureId: string, filename: string): Promise<void>;
12040
+ deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void>;
11961
12041
 
11962
12042
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
11963
12043
 
@@ -12313,14 +12393,14 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12313
12393
  return Promise.resolve<FileDto[]>(null as any);
12314
12394
  }
12315
12395
 
12316
- uploadFixtureAttachment(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<FileDto> {
12396
+ uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]> {
12317
12397
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
12318
12398
  if (fixtureId === undefined || fixtureId === null)
12319
12399
  throw new Error("The parameter 'fixtureId' must be defined.");
12320
12400
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12321
12401
  url_ = url_.replace(/[?&]$/, "");
12322
12402
 
12323
- const content_ = JSON.stringify(attachment);
12403
+ const content_ = JSON.stringify(attachments);
12324
12404
 
12325
12405
  let options_: RequestInit = {
12326
12406
  body: content_,
@@ -12334,18 +12414,22 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12334
12414
  return this.transformOptions(options_).then(transformedOptions_ => {
12335
12415
  return this.http.fetch(url_, transformedOptions_);
12336
12416
  }).then((_response: Response) => {
12337
- return this.processUploadFixtureAttachment(_response);
12417
+ return this.processUploadFixtureAttachments(_response);
12338
12418
  });
12339
12419
  }
12340
12420
 
12341
- protected processUploadFixtureAttachment(response: Response): Promise<FileDto> {
12421
+ protected processUploadFixtureAttachments(response: Response): Promise<FileDto[]> {
12342
12422
  const status = response.status;
12343
12423
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12344
12424
  if (status === 200) {
12345
12425
  return response.text().then((_responseText) => {
12346
12426
  let result200: any = null;
12347
12427
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12348
- result200 = FileDto.fromJS(resultData200);
12428
+ if (Array.isArray(resultData200)) {
12429
+ result200 = [] as any;
12430
+ for (let item of resultData200)
12431
+ result200!.push(FileDto.fromJS(item));
12432
+ }
12349
12433
  return result200;
12350
12434
  });
12351
12435
  } else if (status !== 200 && status !== 204) {
@@ -12353,33 +12437,34 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12353
12437
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12354
12438
  });
12355
12439
  }
12356
- return Promise.resolve<FileDto>(null as any);
12440
+ return Promise.resolve<FileDto[]>(null as any);
12357
12441
  }
12358
12442
 
12359
- deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void> {
12360
- let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments/{filename}";
12443
+ deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void> {
12444
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
12361
12445
  if (fixtureId === undefined || fixtureId === null)
12362
12446
  throw new Error("The parameter 'fixtureId' must be defined.");
12363
12447
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12364
- if (filename === undefined || filename === null)
12365
- throw new Error("The parameter 'filename' must be defined.");
12366
- url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
12367
12448
  url_ = url_.replace(/[?&]$/, "");
12368
12449
 
12450
+ const content_ = JSON.stringify(filenames);
12451
+
12369
12452
  let options_: RequestInit = {
12453
+ body: content_,
12370
12454
  method: "DELETE",
12371
12455
  headers: {
12456
+ "Content-Type": "application/json",
12372
12457
  }
12373
12458
  };
12374
12459
 
12375
12460
  return this.transformOptions(options_).then(transformedOptions_ => {
12376
12461
  return this.http.fetch(url_, transformedOptions_);
12377
12462
  }).then((_response: Response) => {
12378
- return this.processDeleteFixtureAttachment(_response);
12463
+ return this.processDeleteFixtureAttachments(_response);
12379
12464
  });
12380
12465
  }
12381
12466
 
12382
- protected processDeleteFixtureAttachment(response: Response): Promise<void> {
12467
+ protected processDeleteFixtureAttachments(response: Response): Promise<void> {
12383
12468
  const status = response.status;
12384
12469
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12385
12470
  if (status === 204) {
@@ -12437,14 +12522,14 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12437
12522
  return Promise.resolve<ListFixtureImagesDto[]>(null as any);
12438
12523
  }
12439
12524
 
12440
- uploadFixtureImage(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<ListFixtureImagesDto> {
12525
+ uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]> {
12441
12526
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
12442
12527
  if (fixtureId === undefined || fixtureId === null)
12443
12528
  throw new Error("The parameter 'fixtureId' must be defined.");
12444
12529
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12445
12530
  url_ = url_.replace(/[?&]$/, "");
12446
12531
 
12447
- const content_ = JSON.stringify(attachment);
12532
+ const content_ = JSON.stringify(attachments);
12448
12533
 
12449
12534
  let options_: RequestInit = {
12450
12535
  body: content_,
@@ -12458,18 +12543,22 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12458
12543
  return this.transformOptions(options_).then(transformedOptions_ => {
12459
12544
  return this.http.fetch(url_, transformedOptions_);
12460
12545
  }).then((_response: Response) => {
12461
- return this.processUploadFixtureImage(_response);
12546
+ return this.processUploadFixtureImages(_response);
12462
12547
  });
12463
12548
  }
12464
12549
 
12465
- protected processUploadFixtureImage(response: Response): Promise<ListFixtureImagesDto> {
12550
+ protected processUploadFixtureImages(response: Response): Promise<ListFixtureImagesDto[]> {
12466
12551
  const status = response.status;
12467
12552
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12468
12553
  if (status === 200) {
12469
12554
  return response.text().then((_responseText) => {
12470
12555
  let result200: any = null;
12471
12556
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12472
- result200 = ListFixtureImagesDto.fromJS(resultData200);
12557
+ if (Array.isArray(resultData200)) {
12558
+ result200 = [] as any;
12559
+ for (let item of resultData200)
12560
+ result200!.push(ListFixtureImagesDto.fromJS(item));
12561
+ }
12473
12562
  return result200;
12474
12563
  });
12475
12564
  } else if (status !== 200 && status !== 204) {
@@ -12477,33 +12566,34 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12477
12566
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12478
12567
  });
12479
12568
  }
12480
- return Promise.resolve<ListFixtureImagesDto>(null as any);
12569
+ return Promise.resolve<ListFixtureImagesDto[]>(null as any);
12481
12570
  }
12482
12571
 
12483
- deleteFixtureImage(fixtureId: string, filename: string): Promise<void> {
12484
- let url_ = this.baseUrl + "/fixtures/{fixtureId}/images/{filename}";
12572
+ deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void> {
12573
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
12485
12574
  if (fixtureId === undefined || fixtureId === null)
12486
12575
  throw new Error("The parameter 'fixtureId' must be defined.");
12487
12576
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12488
- if (filename === undefined || filename === null)
12489
- throw new Error("The parameter 'filename' must be defined.");
12490
- url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
12491
12577
  url_ = url_.replace(/[?&]$/, "");
12492
12578
 
12579
+ const content_ = JSON.stringify(filenames);
12580
+
12493
12581
  let options_: RequestInit = {
12582
+ body: content_,
12494
12583
  method: "DELETE",
12495
12584
  headers: {
12585
+ "Content-Type": "application/json",
12496
12586
  }
12497
12587
  };
12498
12588
 
12499
12589
  return this.transformOptions(options_).then(transformedOptions_ => {
12500
12590
  return this.http.fetch(url_, transformedOptions_);
12501
12591
  }).then((_response: Response) => {
12502
- return this.processDeleteFixtureImage(_response);
12592
+ return this.processDeleteFixtureImages(_response);
12503
12593
  });
12504
12594
  }
12505
12595
 
12506
- protected processDeleteFixtureImage(response: Response): Promise<void> {
12596
+ protected processDeleteFixtureImages(response: Response): Promise<void> {
12507
12597
  const status = response.status;
12508
12598
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12509
12599
  if (status === 204) {
@@ -40813,6 +40903,98 @@ export interface ICopyCncTool {
40813
40903
 
40814
40904
  export type ToolOriginType = "Operation" | "Machine";
40815
40905
 
40906
+ export class KeepSettingsDto implements IKeepSettingsDto {
40907
+ autoApproveFixtures?: boolean;
40908
+ created!: Date;
40909
+ createdBy!: string;
40910
+ createdById!: string;
40911
+ updatedBy?: string | null;
40912
+ updatedById?: string | null;
40913
+
40914
+ constructor(data?: IKeepSettingsDto) {
40915
+ if (data) {
40916
+ for (var property in data) {
40917
+ if (data.hasOwnProperty(property))
40918
+ (<any>this)[property] = (<any>data)[property];
40919
+ }
40920
+ }
40921
+ }
40922
+
40923
+ init(_data?: any) {
40924
+ if (_data) {
40925
+ this.autoApproveFixtures = _data["autoApproveFixtures"];
40926
+ this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
40927
+ this.createdBy = _data["createdBy"];
40928
+ this.createdById = _data["createdById"];
40929
+ this.updatedBy = _data["updatedBy"];
40930
+ this.updatedById = _data["updatedById"];
40931
+ }
40932
+ }
40933
+
40934
+ static fromJS(data: any): KeepSettingsDto {
40935
+ data = typeof data === 'object' ? data : {};
40936
+ let result = new KeepSettingsDto();
40937
+ result.init(data);
40938
+ return result;
40939
+ }
40940
+
40941
+ toJSON(data?: any) {
40942
+ data = typeof data === 'object' ? data : {};
40943
+ data["autoApproveFixtures"] = this.autoApproveFixtures;
40944
+ data["created"] = this.created ? this.created.toISOString() : <any>undefined;
40945
+ data["createdBy"] = this.createdBy;
40946
+ data["createdById"] = this.createdById;
40947
+ data["updatedBy"] = this.updatedBy;
40948
+ data["updatedById"] = this.updatedById;
40949
+ return data;
40950
+ }
40951
+ }
40952
+
40953
+ export interface IKeepSettingsDto {
40954
+ autoApproveFixtures?: boolean;
40955
+ created: Date;
40956
+ createdBy: string;
40957
+ createdById: string;
40958
+ updatedBy?: string | null;
40959
+ updatedById?: string | null;
40960
+ }
40961
+
40962
+ export class UpdateKeepSettings implements IUpdateKeepSettings {
40963
+ autoApproveFixtures!: boolean;
40964
+
40965
+ constructor(data?: IUpdateKeepSettings) {
40966
+ if (data) {
40967
+ for (var property in data) {
40968
+ if (data.hasOwnProperty(property))
40969
+ (<any>this)[property] = (<any>data)[property];
40970
+ }
40971
+ }
40972
+ }
40973
+
40974
+ init(_data?: any) {
40975
+ if (_data) {
40976
+ this.autoApproveFixtures = _data["autoApproveFixtures"];
40977
+ }
40978
+ }
40979
+
40980
+ static fromJS(data: any): UpdateKeepSettings {
40981
+ data = typeof data === 'object' ? data : {};
40982
+ let result = new UpdateKeepSettings();
40983
+ result.init(data);
40984
+ return result;
40985
+ }
40986
+
40987
+ toJSON(data?: any) {
40988
+ data = typeof data === 'object' ? data : {};
40989
+ data["autoApproveFixtures"] = this.autoApproveFixtures;
40990
+ return data;
40991
+ }
40992
+ }
40993
+
40994
+ export interface IUpdateKeepSettings {
40995
+ autoApproveFixtures: boolean;
40996
+ }
40997
+
40816
40998
  export class FixtureListDto implements IFixtureListDto {
40817
40999
  results!: FixtureDto[];
40818
41000
  continuationToken?: string | null;