@silexpert/core 1.0.199 → 1.0.200

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.
Files changed (36) hide show
  1. package/es/api/resources/AccountingFiles.d.ts +2 -1
  2. package/es/api/resources/AccountingFiles.d.ts.map +1 -1
  3. package/es/api/resources/AccountingFiles.js +3 -0
  4. package/es/api/resources/AccountingFiles.js.map +1 -1
  5. package/es/types/Interface/api/accountingFiles/Read.d.ts +6 -0
  6. package/es/types/Interface/api/accountingFiles/Read.d.ts.map +1 -0
  7. package/es/types/Interface/api/accountingFiles/Read.js +2 -0
  8. package/es/types/Interface/api/accountingFiles/Read.js.map +1 -0
  9. package/es/types/Interface/api/exercice/CreateExercice.d.ts +1 -0
  10. package/es/types/Interface/api/exercice/CreateExercice.d.ts.map +1 -1
  11. package/es/types/Interface/api/exercice/CreateExercice.js +7 -0
  12. package/es/types/Interface/api/exercice/CreateExercice.js.map +1 -1
  13. package/es/types/Interface/api/exercice/UpdateExercice.d.ts +1 -0
  14. package/es/types/Interface/api/exercice/UpdateExercice.d.ts.map +1 -1
  15. package/es/types/Interface/api/exercice/UpdateExercice.js +7 -0
  16. package/es/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
  17. package/es/types/index.d.ts +1 -0
  18. package/es/types/index.d.ts.map +1 -1
  19. package/es/types/index.js +1 -0
  20. package/es/types/index.js.map +1 -1
  21. package/js/api/resources/AccountingFiles.js +3 -0
  22. package/js/api/resources/AccountingFiles.js.map +1 -1
  23. package/js/types/Interface/api/accountingFiles/Read.js +6 -0
  24. package/js/types/Interface/api/accountingFiles/Read.js.map +1 -0
  25. package/js/types/Interface/api/exercice/CreateExercice.js +1 -0
  26. package/js/types/Interface/api/exercice/CreateExercice.js.map +1 -1
  27. package/js/types/Interface/api/exercice/UpdateExercice.js +1 -0
  28. package/js/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
  29. package/js/types/index.js +34 -24
  30. package/js/types/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/ts/api/resources/AccountingFiles.ts +5 -1
  33. package/ts/types/Interface/api/accountingFiles/Read.ts +6 -0
  34. package/ts/types/Interface/api/exercice/CreateExercice.ts +6 -0
  35. package/ts/types/Interface/api/exercice/UpdateExercice.ts +6 -0
  36. 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.199",
3
+ "version": "1.0.200",
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",
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
- BasePaginate, IAccountingFile, QueryAccountingFiles, QueryTransaction, ReadFormattedAccountingTransaction,
3
+ BasePaginate, IAccountingFile, QueryAccountingFiles, QueryTransaction, ReadFormattedAccountingTransaction, ReadUpdateAccouningFile,
4
4
  } from '../../types';
5
5
 
6
6
  export class AccountingFiles extends Resource {
@@ -29,4 +29,8 @@ export class AccountingFiles extends Resource {
29
29
  getPaginated(idSociety: number, params: QueryTransaction): Promise<BasePaginate<IAccountingFile>> {
30
30
  return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });
31
31
  }
32
+
33
+ update(id:number, payload: Partial<IAccountingFile>): Promise<ReadUpdateAccouningFile> {
34
+ return this.axios.$put(`/accounting-files/${id}`, payload);
35
+ }
32
36
  }
@@ -0,0 +1,6 @@
1
+ import { IAccountingFile } from '../../models/IAccountingFile';
2
+
3
+ export interface ReadUpdateAccouningFile {
4
+ newAf: IAccountingFile,
5
+ hasEstimateBeenUpdated: boolean
6
+ }
@@ -77,4 +77,10 @@ export class CreateExercice {
77
77
  @IsNumber()
78
78
  @IsOptional()
79
79
  idSociety: number;
80
+
81
+ @ApiPropertyOptional()
82
+ @IsBoolean()
83
+ @ToBoolean()
84
+ @IsOptional()
85
+ isDefault?: boolean;
80
86
  }
@@ -83,4 +83,10 @@ export class UpdateExercice {
83
83
  @IsNumber()
84
84
  @IsOptional()
85
85
  benefit?: number;
86
+
87
+ @ApiPropertyOptional()
88
+ @IsBoolean()
89
+ @ToBoolean()
90
+ @IsOptional()
91
+ isDefault?: boolean;
86
92
  }
package/ts/types/index.ts CHANGED
@@ -571,6 +571,7 @@ export * from './Interface/api/accountingFiles/queryAccountingFiles';
571
571
  export * from './Interface/api/accountingFiles/Ocr';
572
572
  export * from './Interface/api/accountingFiles/OcrPayload';
573
573
  export * from './Interface/api/accountingFiles/OcrValue';
574
+ export * from './Interface/api/accountingFiles/Read';
574
575
  export * from './Interface/api/stock/StockEntries';
575
576
  export * from './Interface/api/dashboard/QueryTurnoverProfitAndLoss';
576
577
  export * from './Interface/api/dashboard/ReadTurnOverProfitAndLossAndVats';