@silexpert/core 1.0.193 → 1.0.194

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.0.193",
3
+ "version": "1.0.194",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "js/index.js",
@@ -3,6 +3,7 @@ import { Resource } from '../Resource';
3
3
  import {
4
4
  ReadFile,
5
5
  CreateFile,
6
+ QueryFileBuffer,
6
7
  } from '../../types';
7
8
 
8
9
  export class File extends Resource {
@@ -21,4 +22,8 @@ export class File extends Resource {
21
22
  get(id: number): Promise<ReadFile> {
22
23
  return this.axios.$get(`files/${id}`);
23
24
  }
25
+
26
+ getBuffer(id: number, params: QueryFileBuffer): Promise<Buffer> {
27
+ return this.axios.$get(`files/${id}/buffer`, { params, responseType: 'blob' });
28
+ }
24
29
  }
@@ -0,0 +1,6 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryFileBuffer {
4
+ @ApiProperty()
5
+ folder: string;
6
+ }
@@ -11,6 +11,7 @@ import { IFile } from './IFile';
11
11
  import { ISociety } from './ISociety';
12
12
  import { IExerciceDetail } from './IExerciceDetail';
13
13
  import { IBalanceSheetModule } from './IBalanceSheetModule';
14
+ import { IRegistration } from './IRegistration';
14
15
 
15
16
  // exercices
16
17
  export interface IExercice {
@@ -60,4 +61,5 @@ export interface IExercice {
60
61
  society?: ISociety;
61
62
  exerciceDetail?: IExerciceDetail;
62
63
  exerciceBalanceSheetModule?: IBalanceSheetModule;
64
+ registration: IRegistration;
63
65
  }
package/ts/types/index.ts CHANGED
@@ -874,6 +874,7 @@ export * from './Interface/api/qonto/ProcessBankAccount';
874
874
  export * from './Interface/api/qonto/Read';
875
875
  export * from './Interface/api/file/Create';
876
876
  export * from './Interface/api/file/Read';
877
+ export * from './Interface/api/file/Query';
877
878
  export * from './Interface/api/societyConfig/update';
878
879
  export * from './Interface/api/wallet/UpdateAttribution';
879
880
  export * from './Interface/api/prestation/CreatePrestation';