@ignos/api-client 20240319.0.9016 → 20240319.0.9020

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.
@@ -645,9 +645,9 @@ export interface IMachinesClient {
645
645
  getMachineErpData(id: number): Promise<MachineErpDataDto>;
646
646
  getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
647
647
  listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
648
- createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<FileResponse>;
649
- createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<FileResponse>;
650
- createResourceWithMachine(request: CreateResourceWithMachine): Promise<FileResponse>;
648
+ createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
649
+ createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
650
+ createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
651
651
  }
652
652
  export declare class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
653
653
  private http;
@@ -680,12 +680,12 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
680
680
  protected processGetMachineUtilizationSummary(response: Response): Promise<UtilizationSummaryDto>;
681
681
  listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
682
682
  protected processListCurrentMachineOperators(response: Response): Promise<OperatorAndMachineDto[]>;
683
- createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<FileResponse>;
684
- protected processCreateMachineWithoutResource(response: Response): Promise<FileResponse>;
685
- createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<FileResponse>;
686
- protected processCreateResourceWithoutMachine(response: Response): Promise<FileResponse>;
687
- createResourceWithMachine(request: CreateResourceWithMachine): Promise<FileResponse>;
688
- protected processCreateResourceWithMachine(response: Response): Promise<FileResponse>;
683
+ createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
684
+ protected processCreateMachineWithoutResource(response: Response): Promise<void>;
685
+ createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
686
+ protected processCreateResourceWithoutMachine(response: Response): Promise<void>;
687
+ createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
688
+ protected processCreateResourceWithMachine(response: Response): Promise<void>;
689
689
  }
690
690
  export interface ILinksClient {
691
691
  getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
@@ -4919,7 +4919,7 @@ export interface IEmployeeDto {
4919
4919
  export declare class CreateMachineWithoutResource implements ICreateMachineWithoutResource {
4920
4920
  id: string;
4921
4921
  name: string;
4922
- description: string;
4922
+ description?: string | null;
4923
4923
  type: string;
4924
4924
  displayName?: string | null;
4925
4925
  manufacturer?: string | null;
@@ -4935,7 +4935,7 @@ export declare class CreateMachineWithoutResource implements ICreateMachineWitho
4935
4935
  export interface ICreateMachineWithoutResource {
4936
4936
  id: string;
4937
4937
  name: string;
4938
- description: string;
4938
+ description?: string | null;
4939
4939
  type: string;
4940
4940
  displayName?: string | null;
4941
4941
  manufacturer?: string | null;
@@ -4969,7 +4969,7 @@ export declare class CreateResourceWithMachine implements ICreateResourceWithMac
4969
4969
  displayName?: string | null;
4970
4970
  machineId: string;
4971
4971
  machineName: string;
4972
- machineDescription: string;
4972
+ machineDescription?: string | null;
4973
4973
  machineType: string;
4974
4974
  manufacturer?: string | null;
4975
4975
  location?: string | null;
@@ -4988,7 +4988,7 @@ export interface ICreateResourceWithMachine {
4988
4988
  displayName?: string | null;
4989
4989
  machineId: string;
4990
4990
  machineName: string;
4991
- machineDescription: string;
4991
+ machineDescription?: string | null;
4992
4992
  machineType: string;
4993
4993
  manufacturer?: string | null;
4994
4994
  location?: string | null;
@@ -5259,7 +5259,6 @@ export class MachinesClient extends AuthorizedApiBase {
5259
5259
  method: "POST",
5260
5260
  headers: {
5261
5261
  "Content-Type": "application/json",
5262
- "Accept": "application/octet-stream"
5263
5262
  }
5264
5263
  };
5265
5264
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -5275,18 +5274,10 @@ export class MachinesClient extends AuthorizedApiBase {
5275
5274
  response.headers.forEach((v, k) => _headers[k] = v);
5276
5275
  }
5277
5276
  ;
5278
- if (status === 200 || status === 206) {
5279
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5280
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
5281
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
5282
- if (fileName) {
5283
- fileName = decodeURIComponent(fileName);
5284
- }
5285
- else {
5286
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5287
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5288
- }
5289
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
5277
+ if (status === 204) {
5278
+ return response.text().then((_responseText) => {
5279
+ return;
5280
+ });
5290
5281
  }
5291
5282
  else if (status !== 200 && status !== 204) {
5292
5283
  return response.text().then((_responseText) => {
@@ -5304,7 +5295,6 @@ export class MachinesClient extends AuthorizedApiBase {
5304
5295
  method: "POST",
5305
5296
  headers: {
5306
5297
  "Content-Type": "application/json",
5307
- "Accept": "application/octet-stream"
5308
5298
  }
5309
5299
  };
5310
5300
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -5320,18 +5310,10 @@ export class MachinesClient extends AuthorizedApiBase {
5320
5310
  response.headers.forEach((v, k) => _headers[k] = v);
5321
5311
  }
5322
5312
  ;
5323
- if (status === 200 || status === 206) {
5324
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5325
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
5326
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
5327
- if (fileName) {
5328
- fileName = decodeURIComponent(fileName);
5329
- }
5330
- else {
5331
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5332
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5333
- }
5334
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
5313
+ if (status === 204) {
5314
+ return response.text().then((_responseText) => {
5315
+ return;
5316
+ });
5335
5317
  }
5336
5318
  else if (status !== 200 && status !== 204) {
5337
5319
  return response.text().then((_responseText) => {
@@ -5349,7 +5331,6 @@ export class MachinesClient extends AuthorizedApiBase {
5349
5331
  method: "POST",
5350
5332
  headers: {
5351
5333
  "Content-Type": "application/json",
5352
- "Accept": "application/octet-stream"
5353
5334
  }
5354
5335
  };
5355
5336
  return this.transformOptions(options_).then(transformedOptions_ => {
@@ -5365,18 +5346,10 @@ export class MachinesClient extends AuthorizedApiBase {
5365
5346
  response.headers.forEach((v, k) => _headers[k] = v);
5366
5347
  }
5367
5348
  ;
5368
- if (status === 200 || status === 206) {
5369
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5370
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
5371
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
5372
- if (fileName) {
5373
- fileName = decodeURIComponent(fileName);
5374
- }
5375
- else {
5376
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5377
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5378
- }
5379
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
5349
+ if (status === 204) {
5350
+ return response.text().then((_responseText) => {
5351
+ return;
5352
+ });
5380
5353
  }
5381
5354
  else if (status !== 200 && status !== 204) {
5382
5355
  return response.text().then((_responseText) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240319.0.9016",
3
+ "version": "20240319.0.9020",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -5129,11 +5129,11 @@ export interface IMachinesClient {
5129
5129
 
5130
5130
  listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
5131
5131
 
5132
- createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<FileResponse>;
5132
+ createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
5133
5133
 
5134
- createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<FileResponse>;
5134
+ createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
5135
5135
 
5136
- createResourceWithMachine(request: CreateResourceWithMachine): Promise<FileResponse>;
5136
+ createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
5137
5137
  }
5138
5138
 
5139
5139
  export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
@@ -5624,7 +5624,7 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5624
5624
  return Promise.resolve<OperatorAndMachineDto[]>(null as any);
5625
5625
  }
5626
5626
 
5627
- createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<FileResponse> {
5627
+ createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void> {
5628
5628
  let url_ = this.baseUrl + "/machines/machine-without-resource";
5629
5629
  url_ = url_.replace(/[?&]$/, "");
5630
5630
 
@@ -5635,7 +5635,6 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5635
5635
  method: "POST",
5636
5636
  headers: {
5637
5637
  "Content-Type": "application/json",
5638
- "Accept": "application/octet-stream"
5639
5638
  }
5640
5639
  };
5641
5640
 
@@ -5646,29 +5645,22 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5646
5645
  });
5647
5646
  }
5648
5647
 
5649
- protected processCreateMachineWithoutResource(response: Response): Promise<FileResponse> {
5648
+ protected processCreateMachineWithoutResource(response: Response): Promise<void> {
5650
5649
  const status = response.status;
5651
5650
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
5652
- if (status === 200 || status === 206) {
5653
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5654
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
5655
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
5656
- if (fileName) {
5657
- fileName = decodeURIComponent(fileName);
5658
- } else {
5659
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5660
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5661
- }
5662
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
5651
+ if (status === 204) {
5652
+ return response.text().then((_responseText) => {
5653
+ return;
5654
+ });
5663
5655
  } else if (status !== 200 && status !== 204) {
5664
5656
  return response.text().then((_responseText) => {
5665
5657
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5666
5658
  });
5667
5659
  }
5668
- return Promise.resolve<FileResponse>(null as any);
5660
+ return Promise.resolve<void>(null as any);
5669
5661
  }
5670
5662
 
5671
- createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<FileResponse> {
5663
+ createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void> {
5672
5664
  let url_ = this.baseUrl + "/machines/resource-without-machine";
5673
5665
  url_ = url_.replace(/[?&]$/, "");
5674
5666
 
@@ -5679,7 +5671,6 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5679
5671
  method: "POST",
5680
5672
  headers: {
5681
5673
  "Content-Type": "application/json",
5682
- "Accept": "application/octet-stream"
5683
5674
  }
5684
5675
  };
5685
5676
 
@@ -5690,29 +5681,22 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5690
5681
  });
5691
5682
  }
5692
5683
 
5693
- protected processCreateResourceWithoutMachine(response: Response): Promise<FileResponse> {
5684
+ protected processCreateResourceWithoutMachine(response: Response): Promise<void> {
5694
5685
  const status = response.status;
5695
5686
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
5696
- if (status === 200 || status === 206) {
5697
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5698
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
5699
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
5700
- if (fileName) {
5701
- fileName = decodeURIComponent(fileName);
5702
- } else {
5703
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5704
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5705
- }
5706
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
5687
+ if (status === 204) {
5688
+ return response.text().then((_responseText) => {
5689
+ return;
5690
+ });
5707
5691
  } else if (status !== 200 && status !== 204) {
5708
5692
  return response.text().then((_responseText) => {
5709
5693
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5710
5694
  });
5711
5695
  }
5712
- return Promise.resolve<FileResponse>(null as any);
5696
+ return Promise.resolve<void>(null as any);
5713
5697
  }
5714
5698
 
5715
- createResourceWithMachine(request: CreateResourceWithMachine): Promise<FileResponse> {
5699
+ createResourceWithMachine(request: CreateResourceWithMachine): Promise<void> {
5716
5700
  let url_ = this.baseUrl + "/machines/resource-with-machine";
5717
5701
  url_ = url_.replace(/[?&]$/, "");
5718
5702
 
@@ -5723,7 +5707,6 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5723
5707
  method: "POST",
5724
5708
  headers: {
5725
5709
  "Content-Type": "application/json",
5726
- "Accept": "application/octet-stream"
5727
5710
  }
5728
5711
  };
5729
5712
 
@@ -5734,26 +5717,19 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
5734
5717
  });
5735
5718
  }
5736
5719
 
5737
- protected processCreateResourceWithMachine(response: Response): Promise<FileResponse> {
5720
+ protected processCreateResourceWithMachine(response: Response): Promise<void> {
5738
5721
  const status = response.status;
5739
5722
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
5740
- if (status === 200 || status === 206) {
5741
- const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5742
- let fileNameMatch = contentDisposition ? /filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(contentDisposition) : undefined;
5743
- let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;
5744
- if (fileName) {
5745
- fileName = decodeURIComponent(fileName);
5746
- } else {
5747
- fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5748
- fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5749
- }
5750
- return response.blob().then(blob => { return { fileName: fileName, data: blob, status: status, headers: _headers }; });
5723
+ if (status === 204) {
5724
+ return response.text().then((_responseText) => {
5725
+ return;
5726
+ });
5751
5727
  } else if (status !== 200 && status !== 204) {
5752
5728
  return response.text().then((_responseText) => {
5753
5729
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
5754
5730
  });
5755
5731
  }
5756
- return Promise.resolve<FileResponse>(null as any);
5732
+ return Promise.resolve<void>(null as any);
5757
5733
  }
5758
5734
  }
5759
5735
 
@@ -27168,7 +27144,7 @@ export interface IEmployeeDto {
27168
27144
  export class CreateMachineWithoutResource implements ICreateMachineWithoutResource {
27169
27145
  id!: string;
27170
27146
  name!: string;
27171
- description!: string;
27147
+ description?: string | null;
27172
27148
  type!: string;
27173
27149
  displayName?: string | null;
27174
27150
  manufacturer?: string | null;
@@ -27227,7 +27203,7 @@ export class CreateMachineWithoutResource implements ICreateMachineWithoutResour
27227
27203
  export interface ICreateMachineWithoutResource {
27228
27204
  id: string;
27229
27205
  name: string;
27230
- description: string;
27206
+ description?: string | null;
27231
27207
  type: string;
27232
27208
  displayName?: string | null;
27233
27209
  manufacturer?: string | null;
@@ -27296,7 +27272,7 @@ export class CreateResourceWithMachine implements ICreateResourceWithMachine {
27296
27272
  displayName?: string | null;
27297
27273
  machineId!: string;
27298
27274
  machineName!: string;
27299
- machineDescription!: string;
27275
+ machineDescription?: string | null;
27300
27276
  machineType!: string;
27301
27277
  manufacturer?: string | null;
27302
27278
  location?: string | null;
@@ -27364,7 +27340,7 @@ export interface ICreateResourceWithMachine {
27364
27340
  displayName?: string | null;
27365
27341
  machineId: string;
27366
27342
  machineName: string;
27367
- machineDescription: string;
27343
+ machineDescription?: string | null;
27368
27344
  machineType: string;
27369
27345
  manufacturer?: string | null;
27370
27346
  location?: string | null;