@ignos/api-client 20250528.0.11837 → 20250528.0.11839

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.
@@ -1330,8 +1330,10 @@ export interface ICncSetupFixturesClient {
1330
1330
  getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
1331
1331
  listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
1332
1332
  uploadFixtureAttachment(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<FileDto>;
1333
+ deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void>;
1333
1334
  listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
1334
1335
  uploadFixtureImage(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<ListFixtureImagesDto>;
1336
+ deleteFixtureImage(fixtureId: string, filename: string): Promise<void>;
1335
1337
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1336
1338
  operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1337
1339
  }
@@ -1358,10 +1360,14 @@ export declare class CncSetupFixturesClient extends AuthorizedApiBase implements
1358
1360
  protected processListFixtureAttachments(response: Response): Promise<FileDto[]>;
1359
1361
  uploadFixtureAttachment(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<FileDto>;
1360
1362
  protected processUploadFixtureAttachment(response: Response): Promise<FileDto>;
1363
+ deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void>;
1364
+ protected processDeleteFixtureAttachment(response: Response): Promise<void>;
1361
1365
  listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
1362
1366
  protected processListFixtureImages(response: Response): Promise<ListFixtureImagesDto[]>;
1363
1367
  uploadFixtureImage(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<ListFixtureImagesDto>;
1364
1368
  protected processUploadFixtureImage(response: Response): Promise<ListFixtureImagesDto>;
1369
+ deleteFixtureImage(fixtureId: string, filename: string): Promise<void>;
1370
+ protected processDeleteFixtureImage(response: Response): Promise<void>;
1365
1371
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1366
1372
  protected processOperationAddFixture(response: Response): Promise<CncMachineOperationDto>;
1367
1373
  operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
@@ -11550,6 +11550,44 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11550
11550
  }
11551
11551
  return Promise.resolve(null);
11552
11552
  }
11553
+ deleteFixtureAttachment(fixtureId, filename) {
11554
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments/{filename}";
11555
+ if (fixtureId === undefined || fixtureId === null)
11556
+ throw new Error("The parameter 'fixtureId' must be defined.");
11557
+ url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11558
+ if (filename === undefined || filename === null)
11559
+ throw new Error("The parameter 'filename' must be defined.");
11560
+ url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
11561
+ url_ = url_.replace(/[?&]$/, "");
11562
+ let options_ = {
11563
+ method: "DELETE",
11564
+ headers: {}
11565
+ };
11566
+ return this.transformOptions(options_).then(transformedOptions_ => {
11567
+ return this.http.fetch(url_, transformedOptions_);
11568
+ }).then((_response) => {
11569
+ return this.processDeleteFixtureAttachment(_response);
11570
+ });
11571
+ }
11572
+ processDeleteFixtureAttachment(response) {
11573
+ const status = response.status;
11574
+ let _headers = {};
11575
+ if (response.headers && response.headers.forEach) {
11576
+ response.headers.forEach((v, k) => _headers[k] = v);
11577
+ }
11578
+ ;
11579
+ if (status === 204) {
11580
+ return response.text().then((_responseText) => {
11581
+ return;
11582
+ });
11583
+ }
11584
+ else if (status !== 200 && status !== 204) {
11585
+ return response.text().then((_responseText) => {
11586
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11587
+ });
11588
+ }
11589
+ return Promise.resolve(null);
11590
+ }
11553
11591
  listFixtureImages(fixtureId) {
11554
11592
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
11555
11593
  if (fixtureId === undefined || fixtureId === null)
@@ -11637,6 +11675,44 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11637
11675
  }
11638
11676
  return Promise.resolve(null);
11639
11677
  }
11678
+ deleteFixtureImage(fixtureId, filename) {
11679
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/images/{filename}";
11680
+ if (fixtureId === undefined || fixtureId === null)
11681
+ throw new Error("The parameter 'fixtureId' must be defined.");
11682
+ url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11683
+ if (filename === undefined || filename === null)
11684
+ throw new Error("The parameter 'filename' must be defined.");
11685
+ url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
11686
+ url_ = url_.replace(/[?&]$/, "");
11687
+ let options_ = {
11688
+ method: "DELETE",
11689
+ headers: {}
11690
+ };
11691
+ return this.transformOptions(options_).then(transformedOptions_ => {
11692
+ return this.http.fetch(url_, transformedOptions_);
11693
+ }).then((_response) => {
11694
+ return this.processDeleteFixtureImage(_response);
11695
+ });
11696
+ }
11697
+ processDeleteFixtureImage(response) {
11698
+ const status = response.status;
11699
+ let _headers = {};
11700
+ if (response.headers && response.headers.forEach) {
11701
+ response.headers.forEach((v, k) => _headers[k] = v);
11702
+ }
11703
+ ;
11704
+ if (status === 204) {
11705
+ return response.text().then((_responseText) => {
11706
+ return;
11707
+ });
11708
+ }
11709
+ else if (status !== 200 && status !== 204) {
11710
+ return response.text().then((_responseText) => {
11711
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
11712
+ });
11713
+ }
11714
+ return Promise.resolve(null);
11715
+ }
11640
11716
  operationAddFixture(operationId, fixtureIds) {
11641
11717
  let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
11642
11718
  if (operationId === undefined || operationId === null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250528.0.11837",
3
+ "version": "20250528.0.11839",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -11949,10 +11949,14 @@ export interface ICncSetupFixturesClient {
11949
11949
 
11950
11950
  uploadFixtureAttachment(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<FileDto>;
11951
11951
 
11952
+ deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void>;
11953
+
11952
11954
  listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
11953
11955
 
11954
11956
  uploadFixtureImage(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<ListFixtureImagesDto>;
11955
11957
 
11958
+ deleteFixtureImage(fixtureId: string, filename: string): Promise<void>;
11959
+
11956
11960
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
11957
11961
 
11958
11962
  operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
@@ -12314,6 +12318,44 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12314
12318
  return Promise.resolve<FileDto>(null as any);
12315
12319
  }
12316
12320
 
12321
+ deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void> {
12322
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments/{filename}";
12323
+ if (fixtureId === undefined || fixtureId === null)
12324
+ throw new Error("The parameter 'fixtureId' must be defined.");
12325
+ url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12326
+ if (filename === undefined || filename === null)
12327
+ throw new Error("The parameter 'filename' must be defined.");
12328
+ url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
12329
+ url_ = url_.replace(/[?&]$/, "");
12330
+
12331
+ let options_: RequestInit = {
12332
+ method: "DELETE",
12333
+ headers: {
12334
+ }
12335
+ };
12336
+
12337
+ return this.transformOptions(options_).then(transformedOptions_ => {
12338
+ return this.http.fetch(url_, transformedOptions_);
12339
+ }).then((_response: Response) => {
12340
+ return this.processDeleteFixtureAttachment(_response);
12341
+ });
12342
+ }
12343
+
12344
+ protected processDeleteFixtureAttachment(response: Response): Promise<void> {
12345
+ const status = response.status;
12346
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12347
+ if (status === 204) {
12348
+ return response.text().then((_responseText) => {
12349
+ return;
12350
+ });
12351
+ } else if (status !== 200 && status !== 204) {
12352
+ return response.text().then((_responseText) => {
12353
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12354
+ });
12355
+ }
12356
+ return Promise.resolve<void>(null as any);
12357
+ }
12358
+
12317
12359
  listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]> {
12318
12360
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
12319
12361
  if (fixtureId === undefined || fixtureId === null)
@@ -12400,6 +12442,44 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12400
12442
  return Promise.resolve<ListFixtureImagesDto>(null as any);
12401
12443
  }
12402
12444
 
12445
+ deleteFixtureImage(fixtureId: string, filename: string): Promise<void> {
12446
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/images/{filename}";
12447
+ if (fixtureId === undefined || fixtureId === null)
12448
+ throw new Error("The parameter 'fixtureId' must be defined.");
12449
+ url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12450
+ if (filename === undefined || filename === null)
12451
+ throw new Error("The parameter 'filename' must be defined.");
12452
+ url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
12453
+ url_ = url_.replace(/[?&]$/, "");
12454
+
12455
+ let options_: RequestInit = {
12456
+ method: "DELETE",
12457
+ headers: {
12458
+ }
12459
+ };
12460
+
12461
+ return this.transformOptions(options_).then(transformedOptions_ => {
12462
+ return this.http.fetch(url_, transformedOptions_);
12463
+ }).then((_response: Response) => {
12464
+ return this.processDeleteFixtureImage(_response);
12465
+ });
12466
+ }
12467
+
12468
+ protected processDeleteFixtureImage(response: Response): Promise<void> {
12469
+ const status = response.status;
12470
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12471
+ if (status === 204) {
12472
+ return response.text().then((_responseText) => {
12473
+ return;
12474
+ });
12475
+ } else if (status !== 200 && status !== 204) {
12476
+ return response.text().then((_responseText) => {
12477
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12478
+ });
12479
+ }
12480
+ return Promise.resolve<void>(null as any);
12481
+ }
12482
+
12403
12483
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto> {
12404
12484
  let url_ = this.baseUrl + "/fixtures/operation/{operationId}";
12405
12485
  if (operationId === undefined || operationId === null)