@silexpert/core 1.0.198 → 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 (53) 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/Enum/Log.js +1 -1
  6. package/es/types/Enum/Log.js.map +1 -1
  7. package/es/types/Interface/api/accountingFiles/Read.d.ts +6 -0
  8. package/es/types/Interface/api/accountingFiles/Read.d.ts.map +1 -0
  9. package/es/types/Interface/api/accountingFiles/Read.js +2 -0
  10. package/es/types/Interface/api/accountingFiles/Read.js.map +1 -0
  11. package/es/types/Interface/api/exercice/CreateExercice.d.ts +1 -0
  12. package/es/types/Interface/api/exercice/CreateExercice.d.ts.map +1 -1
  13. package/es/types/Interface/api/exercice/CreateExercice.js +7 -0
  14. package/es/types/Interface/api/exercice/CreateExercice.js.map +1 -1
  15. package/es/types/Interface/api/exercice/UpdateExercice.d.ts +1 -0
  16. package/es/types/Interface/api/exercice/UpdateExercice.d.ts.map +1 -1
  17. package/es/types/Interface/api/exercice/UpdateExercice.js +7 -0
  18. package/es/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
  19. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +3 -2
  20. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
  21. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +9 -4
  22. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  23. package/es/types/Interface/models/IPayment.d.ts +1 -0
  24. package/es/types/Interface/models/IPayment.d.ts.map +1 -1
  25. package/es/types/Interface/models/IPayment.js.map +1 -1
  26. package/es/types/index.d.ts +1 -0
  27. package/es/types/index.d.ts.map +1 -1
  28. package/es/types/index.js +1 -0
  29. package/es/types/index.js.map +1 -1
  30. package/js/api/resources/AccountingFiles.js +3 -0
  31. package/js/api/resources/AccountingFiles.js.map +1 -1
  32. package/js/types/Enum/Log.js +1 -1
  33. package/js/types/Enum/Log.js.map +1 -1
  34. package/js/types/Interface/api/accountingFiles/Read.js +6 -0
  35. package/js/types/Interface/api/accountingFiles/Read.js.map +1 -0
  36. package/js/types/Interface/api/exercice/CreateExercice.js +1 -0
  37. package/js/types/Interface/api/exercice/CreateExercice.js.map +1 -1
  38. package/js/types/Interface/api/exercice/UpdateExercice.js +1 -0
  39. package/js/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
  40. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +2 -1
  41. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  42. package/js/types/Interface/models/IPayment.js.map +1 -1
  43. package/js/types/index.js +34 -24
  44. package/js/types/index.js.map +1 -1
  45. package/package.json +1 -1
  46. package/ts/api/resources/AccountingFiles.ts +5 -1
  47. package/ts/types/Enum/Log.ts +1 -1
  48. package/ts/types/Interface/api/accountingFiles/Read.ts +6 -0
  49. package/ts/types/Interface/api/exercice/CreateExercice.ts +6 -0
  50. package/ts/types/Interface/api/exercice/UpdateExercice.ts +6 -0
  51. package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +8 -4
  52. package/ts/types/Interface/models/IPayment.ts +1 -0
  53. 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.198",
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
  }
@@ -215,7 +215,7 @@ export const LogTypeDetail = {
215
215
  },
216
216
  INACTIVITY: {
217
217
  id: LogType.INACTIVITY,
218
- label: 'Incativité',
218
+ label: 'Inactivité',
219
219
  color: 'red darken-2',
220
220
  icon: null,
221
221
  },
@@ -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
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
- IsOptional, IsEnum, IsNumber, IsDateString, IsString, IsArray, IsBoolean,
2
+ IsOptional, IsEnum, IsDateString, IsString, IsArray, IsBoolean, IsNumber,
3
3
  } from 'class-validator';
4
4
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
5
  import {
6
- VatRegime, ToDoOrDone, BankCollectingState,
6
+ VatRegime, ToDoOrDone, BankCollectingState, TaxState,
7
7
  } from '../../..';
8
8
  import { ComptaType } from '../../../Enum/ComptaType';
9
9
  import { TaxSystem } from '../../../Enum/TaxSystem';
@@ -112,8 +112,7 @@ export class QueryTaxDeadlineStatistics {
112
112
 
113
113
  export class QueryCompanyTaxesByCollaborater {
114
114
  @ApiProperty({ description: 'Id collaborater' })
115
- @IsNumber()
116
- idUser: number;
115
+ idUser: number | number[];
117
116
 
118
117
  @ApiProperty()
119
118
  @IsDateString()
@@ -127,4 +126,9 @@ export class QueryCompanyTaxesByCollaborater {
127
126
  @IsString()
128
127
  @IsOptional()
129
128
  search?: string;
129
+
130
+ @ApiPropertyOptional()
131
+ @IsNumber()
132
+ @IsOptional()
133
+ idState: TaxState;
130
134
  }
@@ -16,6 +16,7 @@ export interface IPayment {
16
16
  toCollect?: boolean;
17
17
  isAsset?: boolean;
18
18
  isFree?: boolean;
19
+ isHiddenCustomer?: boolean;
19
20
  dateOverdue?: Date | null;
20
21
  datePayment: Date;
21
22
  comment?: string | null;
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';