@silexpert/core 1.1.384 → 1.1.385

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 (69) hide show
  1. package/dist/cjs/api/resources/ToDoExpress.d.ts +29 -0
  2. package/dist/cjs/api/resources/ToDoExpress.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/ToDoExpress.js +36 -0
  4. package/dist/cjs/api/resources/ToDoExpress.js.map +1 -0
  5. package/dist/cjs/api/resources.d.ts +2 -0
  6. package/dist/cjs/api/resources.d.ts.map +1 -1
  7. package/dist/cjs/api/resources.js +2 -0
  8. package/dist/cjs/api/resources.js.map +1 -1
  9. package/dist/cjs/types/Interface/api/OnBoarding.d.ts +1 -1
  10. package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  11. package/dist/cjs/types/Interface/api/OnBoarding.js +2 -2
  12. package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
  13. package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts +32 -0
  14. package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -0
  15. package/dist/cjs/types/Interface/api/toDoExpress/Query.js +185 -0
  16. package/dist/cjs/types/Interface/api/toDoExpress/Query.js.map +1 -0
  17. package/dist/cjs/types/Interface/api/toDoExpress/Read.d.ts +18 -0
  18. package/dist/cjs/types/Interface/api/toDoExpress/Read.d.ts.map +1 -0
  19. package/dist/cjs/types/Interface/api/toDoExpress/Read.js +3 -0
  20. package/dist/cjs/types/Interface/api/toDoExpress/Read.js.map +1 -0
  21. package/dist/cjs/types/Interface/models/IChecklist.d.ts +2 -2
  22. package/dist/cjs/types/Interface/models/IChecklist.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/models/IChecklist.js.map +1 -1
  24. package/dist/cjs/types/Interface/models/IExercice.d.ts +2 -0
  25. package/dist/cjs/types/Interface/models/IExercice.d.ts.map +1 -1
  26. package/dist/cjs/types/Interface/models/IExercice.js.map +1 -1
  27. package/dist/cjs/types/index.d.ts +2 -0
  28. package/dist/cjs/types/index.d.ts.map +1 -1
  29. package/dist/cjs/types/index.js +2 -0
  30. package/dist/cjs/types/index.js.map +1 -1
  31. package/dist/mjs/api/resources/ToDoExpress.d.ts +29 -0
  32. package/dist/mjs/api/resources/ToDoExpress.d.ts.map +1 -0
  33. package/dist/mjs/api/resources/ToDoExpress.js +40 -0
  34. package/dist/mjs/api/resources/ToDoExpress.js.map +1 -0
  35. package/dist/mjs/api/resources.d.ts +2 -0
  36. package/dist/mjs/api/resources.d.ts.map +1 -1
  37. package/dist/mjs/api/resources.js +2 -0
  38. package/dist/mjs/api/resources.js.map +1 -1
  39. package/dist/mjs/types/Interface/api/OnBoarding.d.ts +1 -1
  40. package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  41. package/dist/mjs/types/Interface/api/OnBoarding.js +2 -2
  42. package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
  43. package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts +32 -0
  44. package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -0
  45. package/dist/mjs/types/Interface/api/toDoExpress/Query.js +206 -0
  46. package/dist/mjs/types/Interface/api/toDoExpress/Query.js.map +1 -0
  47. package/dist/mjs/types/Interface/api/toDoExpress/Read.d.ts +18 -0
  48. package/dist/mjs/types/Interface/api/toDoExpress/Read.d.ts.map +1 -0
  49. package/dist/mjs/types/Interface/api/toDoExpress/Read.js +2 -0
  50. package/dist/mjs/types/Interface/api/toDoExpress/Read.js.map +1 -0
  51. package/dist/mjs/types/Interface/models/IChecklist.d.ts +2 -2
  52. package/dist/mjs/types/Interface/models/IChecklist.d.ts.map +1 -1
  53. package/dist/mjs/types/Interface/models/IChecklist.js.map +1 -1
  54. package/dist/mjs/types/Interface/models/IExercice.d.ts +2 -0
  55. package/dist/mjs/types/Interface/models/IExercice.d.ts.map +1 -1
  56. package/dist/mjs/types/Interface/models/IExercice.js.map +1 -1
  57. package/dist/mjs/types/index.d.ts +2 -0
  58. package/dist/mjs/types/index.d.ts.map +1 -1
  59. package/dist/mjs/types/index.js +2 -0
  60. package/dist/mjs/types/index.js.map +1 -1
  61. package/package.json +1 -1
  62. package/ts/api/resources/ToDoExpress.ts +44 -0
  63. package/ts/api/resources.ts +2 -0
  64. package/ts/types/Interface/api/OnBoarding.ts +2 -2
  65. package/ts/types/Interface/api/toDoExpress/Query.ts +144 -0
  66. package/ts/types/Interface/api/toDoExpress/Read.ts +11 -0
  67. package/ts/types/Interface/models/IChecklist.ts +2 -2
  68. package/ts/types/Interface/models/IExercice.ts +2 -0
  69. package/ts/types/index.ts +2 -0
@@ -164,6 +164,7 @@ import { UserSocietyPermission } from './resources/UserSocietyPermission';
164
164
  import { BalanceSheetSupervision } from './resources/BalanceSheetSupervision';
165
165
  import { CompanyCreationForm } from './resources/CompanyCreationForm';
166
166
  import { BankConnection } from './resources/BankConnection';
167
+ import { ToDoExpress } from './resources/ToDoExpress';
167
168
 
168
169
  export const resources = {
169
170
  simulation: Simulation,
@@ -332,4 +333,5 @@ export const resources = {
332
333
  companyCreationForm: CompanyCreationForm,
333
334
  project: Project,
334
335
  bankConnection: BankConnection,
336
+ toDoExpress: ToDoExpress,
335
337
  };
@@ -30,8 +30,8 @@ export class QueryOnBoardingPaginated extends OptionalQueryPaginate {
30
30
 
31
31
  @ApiPropertyOptional()
32
32
  @IsOptional()
33
- @IsInt({ each: true })
34
- firstContact?: number[];
33
+ @IsInt()
34
+ firstContact?: number;
35
35
 
36
36
  @ApiPropertyOptional()
37
37
  @IsOptional()
@@ -0,0 +1,144 @@
1
+ import { IsArray, IsBoolean, IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { RequiredQueryPaginate } from '../BasePaginate';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
+
6
+ export class QueryToDoExpressPaginated extends RequiredQueryPaginate {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsString()
10
+ search?: string;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsInt()
15
+ accountant?: number;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsInt()
20
+ legalForm?: number;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
24
+ @IsDate()
25
+ arrivalDate?: Date;
26
+
27
+ @ApiPropertyOptional()
28
+ @IsOptional()
29
+ @IsArray()
30
+ turnoverMax?: number[];
31
+
32
+ @ApiPropertyOptional()
33
+ @IsOptional()
34
+ @IsBoolean()
35
+ @ToBoolean()
36
+ facturationState?: boolean;
37
+
38
+ @ApiPropertyOptional()
39
+ @IsOptional()
40
+ @IsInt()
41
+ onboardingState?: number;
42
+
43
+ @ApiPropertyOptional()
44
+ @IsOptional()
45
+ @IsBoolean()
46
+ @ToBoolean()
47
+ collectionState?: boolean;
48
+
49
+ @ApiPropertyOptional()
50
+ @IsOptional()
51
+ @IsArray()
52
+ notation?: number[];
53
+
54
+ @ApiPropertyOptional()
55
+ @IsOptional()
56
+ @IsArray()
57
+ review?: number[];
58
+
59
+ @ApiPropertyOptional()
60
+ @IsOptional()
61
+ @IsInt()
62
+ balanceSheetState?: number;
63
+
64
+ @ApiPropertyOptional()
65
+ @IsOptional()
66
+ @IsInt()
67
+ supervisionState?: number;
68
+
69
+ @ApiPropertyOptional()
70
+ @IsOptional()
71
+ @IsBoolean()
72
+ @ToBoolean()
73
+ planedState?: boolean;
74
+ }
75
+
76
+ export class QueryToDoExpressStats {
77
+ @ApiPropertyOptional()
78
+ @IsOptional()
79
+ @IsString()
80
+ search?: string;
81
+
82
+ @ApiPropertyOptional()
83
+ @IsOptional()
84
+ @IsInt()
85
+ accountant?: number;
86
+
87
+ @ApiPropertyOptional()
88
+ @IsOptional()
89
+ @IsInt()
90
+ legalForm?: number;
91
+
92
+ @ApiPropertyOptional()
93
+ @IsOptional()
94
+ @IsDate()
95
+ arrivalDate?: Date;
96
+
97
+ @ApiPropertyOptional()
98
+ @IsOptional()
99
+ @IsArray()
100
+ turnoverMax?: number[];
101
+
102
+ @ApiPropertyOptional()
103
+ @IsOptional()
104
+ @IsBoolean()
105
+ @ToBoolean()
106
+ facturationState?: boolean;
107
+
108
+ @ApiPropertyOptional()
109
+ @IsOptional()
110
+ @IsInt()
111
+ onboardingState?: number;
112
+
113
+ @ApiPropertyOptional()
114
+ @IsOptional()
115
+ @IsBoolean()
116
+ @ToBoolean()
117
+ collectionState?: boolean;
118
+
119
+ @ApiPropertyOptional()
120
+ @IsOptional()
121
+ @IsArray()
122
+ notation?: number[];
123
+
124
+ @ApiPropertyOptional()
125
+ @IsOptional()
126
+ @IsArray()
127
+ review?: number[];
128
+
129
+ @ApiPropertyOptional()
130
+ @IsOptional()
131
+ @IsInt()
132
+ balanceSheetState?: number;
133
+
134
+ @ApiPropertyOptional()
135
+ @IsOptional()
136
+ @IsInt()
137
+ supervisionState?: number;
138
+
139
+ @ApiPropertyOptional()
140
+ @IsOptional()
141
+ @IsBoolean()
142
+ @ToBoolean()
143
+ planedState?: boolean;
144
+ }
@@ -0,0 +1,11 @@
1
+ export type ReadToDoExpressStats = {
2
+ averageTimeByClient: number,
3
+ societyPayed: {
4
+ nbr: number,
5
+ detail: { year: number, amount: number }[],
6
+ }
7
+ societyFactured: {
8
+ nbr: number,
9
+ detail: { year: number, amount: number }[],
10
+ }
11
+ };
@@ -10,7 +10,7 @@ export interface IChecklist {
10
10
  id?: number;
11
11
  idUserFront: number | null;
12
12
  revisionDate?: Date | null;
13
- idUserWhoValidate: number | null;
13
+ idUserWhoValidate?: number | null;
14
14
  validateDate?: Date | null;
15
15
  isConfirmed: boolean;
16
16
  date: Date | null;
@@ -30,5 +30,5 @@ export interface IChecklist {
30
30
  exercice?: IExercice;
31
31
  checklistHasOneCustomerVat?: ICustomerVat;
32
32
  mailRelation?: IMailRelation[];
33
- userWhoValidate: IUser;
33
+ userWhoValidate?: IUser;
34
34
  }
@@ -13,6 +13,7 @@ import { IExerciceDetail } from './IExerciceDetail';
13
13
  import { IBalanceSheetModule } from './IBalanceSheetModule';
14
14
  import { IRegistration } from './IRegistration';
15
15
  import { IComment } from './IComment';
16
+ import { IPayment } from './IPayment';
16
17
 
17
18
  // exercices
18
19
  export interface IExercice {
@@ -62,6 +63,7 @@ export interface IExercice {
62
63
  society?: ISociety;
63
64
  exerciceDetail?: IExerciceDetail;
64
65
  exerciceBalanceSheetModule?: IBalanceSheetModule;
66
+ exercicePayments?: IPayment[];
65
67
  registrations: IRegistration[];
66
68
  comments?: IComment[];
67
69
  }
package/ts/types/index.ts CHANGED
@@ -1096,6 +1096,8 @@ export * from './Interface/api/companyCreationForm/CreateCompanyCreationForm';
1096
1096
  export * from './Interface/api/companyCreationForm/UpdateCompanyCreationForm';
1097
1097
  export * from './Interface/api/companyCreationForm/CompanyCreationFormPayload';
1098
1098
  export * from './Interface/api/sellsy/CreateInvoicesSellsy';
1099
+ export * from './Interface/api/toDoExpress/Query';
1100
+ export * from './Interface/api/toDoExpress/Read';
1099
1101
 
1100
1102
 
1101
1103
  // Enums types