@silexpert/core 1.0.193 → 1.0.195
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/es/api/resources/FIle.d.ts +3 -1
- package/es/api/resources/FIle.d.ts.map +1 -1
- package/es/api/resources/FIle.js +3 -0
- package/es/api/resources/FIle.js.map +1 -1
- package/es/types/Enum/RoleDetail.js +1 -1
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Interface/api/file/Query.d.ts +4 -0
- package/es/types/Interface/api/file/Query.d.ts.map +1 -0
- package/es/types/Interface/api/file/Query.js +17 -0
- package/es/types/Interface/api/file/Query.js.map +1 -0
- package/es/types/Interface/models/IExercice.d.ts +2 -0
- package/es/types/Interface/models/IExercice.d.ts.map +1 -1
- package/es/types/Interface/models/IExercice.js.map +1 -1
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/FIle.js +6 -0
- package/js/api/resources/FIle.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +1 -1
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Interface/api/file/Query.js +21 -0
- package/js/types/Interface/api/file/Query.js.map +1 -0
- package/js/types/Interface/models/IExercice.js.map +1 -1
- package/js/types/index.js +16 -6
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/FIle.ts +5 -0
- package/ts/types/Enum/RoleDetail.ts +1 -1
- package/ts/types/Interface/api/file/Query.ts +6 -0
- package/ts/types/Interface/models/IExercice.ts +2 -0
- package/ts/types/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.195",
|
|
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",
|
package/ts/api/resources/FIle.ts
CHANGED
|
@@ -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(idSociety: number, id: number, params: QueryFileBuffer): Promise<Buffer> {
|
|
27
|
+
return this.axios.$get(`societies/${idSociety}/files/${id}/buffer`, { params, responseType: 'blob' });
|
|
28
|
+
}
|
|
24
29
|
}
|
|
@@ -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';
|