@ignos/api-client 20250605.0.11880 → 20250612.0.11891

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,11 +1330,11 @@ export interface ICncSetupFixturesClient {
1330
1330
  getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
1331
1331
  getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
1332
1332
  listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
1333
- uploadFixtureAttachment(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<FileDto>;
1334
- deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void>;
1333
+ uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]>;
1334
+ deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void>;
1335
1335
  listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
1336
- uploadFixtureImage(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<ListFixtureImagesDto>;
1337
- deleteFixtureImage(fixtureId: string, filename: string): Promise<void>;
1336
+ uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]>;
1337
+ deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void>;
1338
1338
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1339
1339
  operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1340
1340
  }
@@ -1361,16 +1361,16 @@ export declare class CncSetupFixturesClient extends AuthorizedApiBase implements
1361
1361
  protected processGetFixtureLocationSuggestions(response: Response): Promise<FixtureSuggestionDto[]>;
1362
1362
  listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
1363
1363
  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>;
1364
+ uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]>;
1365
+ protected processUploadFixtureAttachments(response: Response): Promise<FileDto[]>;
1366
+ deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void>;
1367
+ protected processDeleteFixtureAttachments(response: Response): Promise<void>;
1368
1368
  listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
1369
1369
  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>;
1370
+ uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]>;
1371
+ protected processUploadFixtureImages(response: Response): Promise<ListFixtureImagesDto[]>;
1372
+ deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void>;
1373
+ protected processDeleteFixtureImages(response: Response): Promise<void>;
1374
1374
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
1375
1375
  protected processOperationAddFixture(response: Response): Promise<CncMachineOperationDto>;
1376
1376
  operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
@@ -11543,13 +11543,13 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11543
11543
  }
11544
11544
  return Promise.resolve(null);
11545
11545
  }
11546
- uploadFixtureAttachment(fixtureId, attachment) {
11546
+ uploadFixtureAttachments(fixtureId, attachments) {
11547
11547
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
11548
11548
  if (fixtureId === undefined || fixtureId === null)
11549
11549
  throw new Error("The parameter 'fixtureId' must be defined.");
11550
11550
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11551
11551
  url_ = url_.replace(/[?&]$/, "");
11552
- const content_ = JSON.stringify(attachment);
11552
+ const content_ = JSON.stringify(attachments);
11553
11553
  let options_ = {
11554
11554
  body: content_,
11555
11555
  method: "POST",
@@ -11561,10 +11561,10 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11561
11561
  return this.transformOptions(options_).then(transformedOptions_ => {
11562
11562
  return this.http.fetch(url_, transformedOptions_);
11563
11563
  }).then((_response) => {
11564
- return this.processUploadFixtureAttachment(_response);
11564
+ return this.processUploadFixtureAttachments(_response);
11565
11565
  });
11566
11566
  }
11567
- processUploadFixtureAttachment(response) {
11567
+ processUploadFixtureAttachments(response) {
11568
11568
  const status = response.status;
11569
11569
  let _headers = {};
11570
11570
  if (response.headers && response.headers.forEach) {
@@ -11575,7 +11575,11 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11575
11575
  return response.text().then((_responseText) => {
11576
11576
  let result200 = null;
11577
11577
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11578
- result200 = FileDto.fromJS(resultData200);
11578
+ if (Array.isArray(resultData200)) {
11579
+ result200 = [];
11580
+ for (let item of resultData200)
11581
+ result200.push(FileDto.fromJS(item));
11582
+ }
11579
11583
  return result200;
11580
11584
  });
11581
11585
  }
@@ -11586,26 +11590,27 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11586
11590
  }
11587
11591
  return Promise.resolve(null);
11588
11592
  }
11589
- deleteFixtureAttachment(fixtureId, filename) {
11590
- let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments/{filename}";
11593
+ deleteFixtureAttachments(fixtureId, filenames) {
11594
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
11591
11595
  if (fixtureId === undefined || fixtureId === null)
11592
11596
  throw new Error("The parameter 'fixtureId' must be defined.");
11593
11597
  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
11598
  url_ = url_.replace(/[?&]$/, "");
11599
+ const content_ = JSON.stringify(filenames);
11598
11600
  let options_ = {
11601
+ body: content_,
11599
11602
  method: "DELETE",
11600
- headers: {}
11603
+ headers: {
11604
+ "Content-Type": "application/json",
11605
+ }
11601
11606
  };
11602
11607
  return this.transformOptions(options_).then(transformedOptions_ => {
11603
11608
  return this.http.fetch(url_, transformedOptions_);
11604
11609
  }).then((_response) => {
11605
- return this.processDeleteFixtureAttachment(_response);
11610
+ return this.processDeleteFixtureAttachments(_response);
11606
11611
  });
11607
11612
  }
11608
- processDeleteFixtureAttachment(response) {
11613
+ processDeleteFixtureAttachments(response) {
11609
11614
  const status = response.status;
11610
11615
  let _headers = {};
11611
11616
  if (response.headers && response.headers.forEach) {
@@ -11668,13 +11673,13 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11668
11673
  }
11669
11674
  return Promise.resolve(null);
11670
11675
  }
11671
- uploadFixtureImage(fixtureId, attachment) {
11676
+ uploadFixtureImages(fixtureId, attachments) {
11672
11677
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
11673
11678
  if (fixtureId === undefined || fixtureId === null)
11674
11679
  throw new Error("The parameter 'fixtureId' must be defined.");
11675
11680
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
11676
11681
  url_ = url_.replace(/[?&]$/, "");
11677
- const content_ = JSON.stringify(attachment);
11682
+ const content_ = JSON.stringify(attachments);
11678
11683
  let options_ = {
11679
11684
  body: content_,
11680
11685
  method: "POST",
@@ -11686,10 +11691,10 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11686
11691
  return this.transformOptions(options_).then(transformedOptions_ => {
11687
11692
  return this.http.fetch(url_, transformedOptions_);
11688
11693
  }).then((_response) => {
11689
- return this.processUploadFixtureImage(_response);
11694
+ return this.processUploadFixtureImages(_response);
11690
11695
  });
11691
11696
  }
11692
- processUploadFixtureImage(response) {
11697
+ processUploadFixtureImages(response) {
11693
11698
  const status = response.status;
11694
11699
  let _headers = {};
11695
11700
  if (response.headers && response.headers.forEach) {
@@ -11700,7 +11705,11 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11700
11705
  return response.text().then((_responseText) => {
11701
11706
  let result200 = null;
11702
11707
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
11703
- result200 = ListFixtureImagesDto.fromJS(resultData200);
11708
+ if (Array.isArray(resultData200)) {
11709
+ result200 = [];
11710
+ for (let item of resultData200)
11711
+ result200.push(ListFixtureImagesDto.fromJS(item));
11712
+ }
11704
11713
  return result200;
11705
11714
  });
11706
11715
  }
@@ -11711,26 +11720,27 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
11711
11720
  }
11712
11721
  return Promise.resolve(null);
11713
11722
  }
11714
- deleteFixtureImage(fixtureId, filename) {
11715
- let url_ = this.baseUrl + "/fixtures/{fixtureId}/images/{filename}";
11723
+ deleteFixtureImages(fixtureId, filenames) {
11724
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
11716
11725
  if (fixtureId === undefined || fixtureId === null)
11717
11726
  throw new Error("The parameter 'fixtureId' must be defined.");
11718
11727
  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
11728
  url_ = url_.replace(/[?&]$/, "");
11729
+ const content_ = JSON.stringify(filenames);
11723
11730
  let options_ = {
11731
+ body: content_,
11724
11732
  method: "DELETE",
11725
- headers: {}
11733
+ headers: {
11734
+ "Content-Type": "application/json",
11735
+ }
11726
11736
  };
11727
11737
  return this.transformOptions(options_).then(transformedOptions_ => {
11728
11738
  return this.http.fetch(url_, transformedOptions_);
11729
11739
  }).then((_response) => {
11730
- return this.processDeleteFixtureImage(_response);
11740
+ return this.processDeleteFixtureImages(_response);
11731
11741
  });
11732
11742
  }
11733
- processDeleteFixtureImage(response) {
11743
+ processDeleteFixtureImages(response) {
11734
11744
  const status = response.status;
11735
11745
  let _headers = {};
11736
11746
  if (response.headers && response.headers.forEach) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20250605.0.11880",
3
+ "version": "20250612.0.11891",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -11949,15 +11949,15 @@ export interface ICncSetupFixturesClient {
11949
11949
 
11950
11950
  listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
11951
11951
 
11952
- uploadFixtureAttachment(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<FileDto>;
11952
+ uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]>;
11953
11953
 
11954
- deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void>;
11954
+ deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void>;
11955
11955
 
11956
11956
  listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
11957
11957
 
11958
- uploadFixtureImage(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<ListFixtureImagesDto>;
11958
+ uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]>;
11959
11959
 
11960
- deleteFixtureImage(fixtureId: string, filename: string): Promise<void>;
11960
+ deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void>;
11961
11961
 
11962
11962
  operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
11963
11963
 
@@ -12313,14 +12313,14 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12313
12313
  return Promise.resolve<FileDto[]>(null as any);
12314
12314
  }
12315
12315
 
12316
- uploadFixtureAttachment(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<FileDto> {
12316
+ uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]> {
12317
12317
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
12318
12318
  if (fixtureId === undefined || fixtureId === null)
12319
12319
  throw new Error("The parameter 'fixtureId' must be defined.");
12320
12320
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12321
12321
  url_ = url_.replace(/[?&]$/, "");
12322
12322
 
12323
- const content_ = JSON.stringify(attachment);
12323
+ const content_ = JSON.stringify(attachments);
12324
12324
 
12325
12325
  let options_: RequestInit = {
12326
12326
  body: content_,
@@ -12334,18 +12334,22 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12334
12334
  return this.transformOptions(options_).then(transformedOptions_ => {
12335
12335
  return this.http.fetch(url_, transformedOptions_);
12336
12336
  }).then((_response: Response) => {
12337
- return this.processUploadFixtureAttachment(_response);
12337
+ return this.processUploadFixtureAttachments(_response);
12338
12338
  });
12339
12339
  }
12340
12340
 
12341
- protected processUploadFixtureAttachment(response: Response): Promise<FileDto> {
12341
+ protected processUploadFixtureAttachments(response: Response): Promise<FileDto[]> {
12342
12342
  const status = response.status;
12343
12343
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12344
12344
  if (status === 200) {
12345
12345
  return response.text().then((_responseText) => {
12346
12346
  let result200: any = null;
12347
12347
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12348
- result200 = FileDto.fromJS(resultData200);
12348
+ if (Array.isArray(resultData200)) {
12349
+ result200 = [] as any;
12350
+ for (let item of resultData200)
12351
+ result200!.push(FileDto.fromJS(item));
12352
+ }
12349
12353
  return result200;
12350
12354
  });
12351
12355
  } else if (status !== 200 && status !== 204) {
@@ -12353,33 +12357,34 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12353
12357
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12354
12358
  });
12355
12359
  }
12356
- return Promise.resolve<FileDto>(null as any);
12360
+ return Promise.resolve<FileDto[]>(null as any);
12357
12361
  }
12358
12362
 
12359
- deleteFixtureAttachment(fixtureId: string, filename: string): Promise<void> {
12360
- let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments/{filename}";
12363
+ deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void> {
12364
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
12361
12365
  if (fixtureId === undefined || fixtureId === null)
12362
12366
  throw new Error("The parameter 'fixtureId' must be defined.");
12363
12367
  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
12368
  url_ = url_.replace(/[?&]$/, "");
12368
12369
 
12370
+ const content_ = JSON.stringify(filenames);
12371
+
12369
12372
  let options_: RequestInit = {
12373
+ body: content_,
12370
12374
  method: "DELETE",
12371
12375
  headers: {
12376
+ "Content-Type": "application/json",
12372
12377
  }
12373
12378
  };
12374
12379
 
12375
12380
  return this.transformOptions(options_).then(transformedOptions_ => {
12376
12381
  return this.http.fetch(url_, transformedOptions_);
12377
12382
  }).then((_response: Response) => {
12378
- return this.processDeleteFixtureAttachment(_response);
12383
+ return this.processDeleteFixtureAttachments(_response);
12379
12384
  });
12380
12385
  }
12381
12386
 
12382
- protected processDeleteFixtureAttachment(response: Response): Promise<void> {
12387
+ protected processDeleteFixtureAttachments(response: Response): Promise<void> {
12383
12388
  const status = response.status;
12384
12389
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12385
12390
  if (status === 204) {
@@ -12437,14 +12442,14 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12437
12442
  return Promise.resolve<ListFixtureImagesDto[]>(null as any);
12438
12443
  }
12439
12444
 
12440
- uploadFixtureImage(fixtureId: string, attachment: UploadFixtureAttachmentDto): Promise<ListFixtureImagesDto> {
12445
+ uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]> {
12441
12446
  let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
12442
12447
  if (fixtureId === undefined || fixtureId === null)
12443
12448
  throw new Error("The parameter 'fixtureId' must be defined.");
12444
12449
  url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
12445
12450
  url_ = url_.replace(/[?&]$/, "");
12446
12451
 
12447
- const content_ = JSON.stringify(attachment);
12452
+ const content_ = JSON.stringify(attachments);
12448
12453
 
12449
12454
  let options_: RequestInit = {
12450
12455
  body: content_,
@@ -12458,18 +12463,22 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12458
12463
  return this.transformOptions(options_).then(transformedOptions_ => {
12459
12464
  return this.http.fetch(url_, transformedOptions_);
12460
12465
  }).then((_response: Response) => {
12461
- return this.processUploadFixtureImage(_response);
12466
+ return this.processUploadFixtureImages(_response);
12462
12467
  });
12463
12468
  }
12464
12469
 
12465
- protected processUploadFixtureImage(response: Response): Promise<ListFixtureImagesDto> {
12470
+ protected processUploadFixtureImages(response: Response): Promise<ListFixtureImagesDto[]> {
12466
12471
  const status = response.status;
12467
12472
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12468
12473
  if (status === 200) {
12469
12474
  return response.text().then((_responseText) => {
12470
12475
  let result200: any = null;
12471
12476
  let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
12472
- result200 = ListFixtureImagesDto.fromJS(resultData200);
12477
+ if (Array.isArray(resultData200)) {
12478
+ result200 = [] as any;
12479
+ for (let item of resultData200)
12480
+ result200!.push(ListFixtureImagesDto.fromJS(item));
12481
+ }
12473
12482
  return result200;
12474
12483
  });
12475
12484
  } else if (status !== 200 && status !== 204) {
@@ -12477,33 +12486,34 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
12477
12486
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
12478
12487
  });
12479
12488
  }
12480
- return Promise.resolve<ListFixtureImagesDto>(null as any);
12489
+ return Promise.resolve<ListFixtureImagesDto[]>(null as any);
12481
12490
  }
12482
12491
 
12483
- deleteFixtureImage(fixtureId: string, filename: string): Promise<void> {
12484
- let url_ = this.baseUrl + "/fixtures/{fixtureId}/images/{filename}";
12492
+ deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void> {
12493
+ let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
12485
12494
  if (fixtureId === undefined || fixtureId === null)
12486
12495
  throw new Error("The parameter 'fixtureId' must be defined.");
12487
12496
  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
12497
  url_ = url_.replace(/[?&]$/, "");
12492
12498
 
12499
+ const content_ = JSON.stringify(filenames);
12500
+
12493
12501
  let options_: RequestInit = {
12502
+ body: content_,
12494
12503
  method: "DELETE",
12495
12504
  headers: {
12505
+ "Content-Type": "application/json",
12496
12506
  }
12497
12507
  };
12498
12508
 
12499
12509
  return this.transformOptions(options_).then(transformedOptions_ => {
12500
12510
  return this.http.fetch(url_, transformedOptions_);
12501
12511
  }).then((_response: Response) => {
12502
- return this.processDeleteFixtureImage(_response);
12512
+ return this.processDeleteFixtureImages(_response);
12503
12513
  });
12504
12514
  }
12505
12515
 
12506
- protected processDeleteFixtureImage(response: Response): Promise<void> {
12516
+ protected processDeleteFixtureImages(response: Response): Promise<void> {
12507
12517
  const status = response.status;
12508
12518
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
12509
12519
  if (status === 204) {