@silexpert/core 0.4.144 → 0.4.146

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 (100) hide show
  1. package/es/api/resources/Payment.d.ts +6 -0
  2. package/es/api/resources/Payment.d.ts.map +1 -0
  3. package/es/api/resources/Payment.js +13 -0
  4. package/es/api/resources/Payment.js.map +1 -0
  5. package/es/api/resources/VatDeclaration.d.ts +3 -0
  6. package/es/api/resources/VatDeclaration.d.ts.map +1 -1
  7. package/es/api/resources/VatDeclaration.js +6 -0
  8. package/es/api/resources/VatDeclaration.js.map +1 -1
  9. package/es/api/resources.d.ts +2 -0
  10. package/es/api/resources.d.ts.map +1 -1
  11. package/es/api/resources.js +2 -0
  12. package/es/api/resources.js.map +1 -1
  13. package/es/types/Enum/BalanceSheetQuestion.d.ts +6 -1
  14. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  15. package/es/types/Enum/BalanceSheetQuestion.js +5 -0
  16. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  17. package/es/types/Enum/BalanceSheetQuestionWording.d.ts +17 -4
  18. package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  19. package/es/types/Enum/BalanceSheetQuestionWording.js +14 -4
  20. package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  21. package/es/types/Enum/VatDeclarationType.d.ts +15 -0
  22. package/es/types/Enum/VatDeclarationType.d.ts.map +1 -0
  23. package/es/types/Enum/VatDeclarationType.js +238 -0
  24. package/es/types/Enum/VatDeclarationType.js.map +1 -0
  25. package/es/types/Interface/api/jeDeclare/Util.d.ts +1 -1
  26. package/es/types/Interface/api/jeDeclare/Util.d.ts.map +1 -1
  27. package/es/types/Interface/api/jeDeclare/Util.js.map +1 -1
  28. package/es/types/Interface/api/payment/QueryMonthlyPayment.d.ts +4 -0
  29. package/es/types/Interface/api/payment/QueryMonthlyPayment.d.ts.map +1 -0
  30. package/es/types/Interface/api/payment/QueryMonthlyPayment.js +24 -0
  31. package/es/types/Interface/api/payment/QueryMonthlyPayment.js.map +1 -0
  32. package/es/types/Interface/api/user/CreateCoworker.d.ts +8 -10
  33. package/es/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
  34. package/es/types/Interface/api/user/CreateCoworker.js +17 -12
  35. package/es/types/Interface/api/user/CreateCoworker.js.map +1 -1
  36. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts +10 -0
  37. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts.map +1 -0
  38. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js +2 -0
  39. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js.map +1 -0
  40. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts +6 -0
  41. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts.map +1 -0
  42. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js +2 -0
  43. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -0
  44. package/es/types/Interface/models/IApiError.d.ts +1 -0
  45. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  46. package/es/types/Interface/models/IApiError.js +1 -0
  47. package/es/types/Interface/models/IApiError.js.map +1 -1
  48. package/es/types/Interface/models/IUser.d.ts +50 -50
  49. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  50. package/es/types/Interface/models/IUser.js.map +1 -1
  51. package/es/types/index.d.ts +4 -0
  52. package/es/types/index.d.ts.map +1 -1
  53. package/es/types/index.js +4 -0
  54. package/es/types/index.js.map +1 -1
  55. package/es/utils/brands.d.ts +2 -1
  56. package/es/utils/brands.d.ts.map +1 -1
  57. package/es/utils/brands.js +12 -1
  58. package/es/utils/brands.js.map +1 -1
  59. package/js/api/resources/Payment.js +24 -0
  60. package/js/api/resources/Payment.js.map +1 -0
  61. package/js/api/resources/VatDeclaration.js +8 -0
  62. package/js/api/resources/VatDeclaration.js.map +1 -1
  63. package/js/api/resources.js +3 -0
  64. package/js/api/resources.js.map +1 -1
  65. package/js/types/Enum/BalanceSheetQuestion.js +6 -0
  66. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  67. package/js/types/Enum/BalanceSheetQuestionWording.js +17 -4
  68. package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  69. package/js/types/Enum/VatDeclarationType.js +234 -0
  70. package/js/types/Enum/VatDeclarationType.js.map +1 -0
  71. package/js/types/Interface/api/payment/QueryMonthlyPayment.js +34 -0
  72. package/js/types/Interface/api/payment/QueryMonthlyPayment.js.map +1 -0
  73. package/js/types/Interface/api/user/CreateCoworker.js +18 -18
  74. package/js/types/Interface/api/user/CreateCoworker.js.map +1 -1
  75. package/js/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js +6 -0
  76. package/js/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js.map +1 -0
  77. package/js/types/Interface/api/vatDeclaration/ResultFormatToEntries.js +6 -0
  78. package/js/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -0
  79. package/js/types/Interface/models/IApiError.js +2 -1
  80. package/js/types/Interface/models/IApiError.js.map +1 -1
  81. package/js/types/index.js +48 -0
  82. package/js/types/index.js.map +1 -1
  83. package/js/utils/brands.js +10 -1
  84. package/js/utils/brands.js.map +1 -1
  85. package/package.json +1 -1
  86. package/ts/api/resources/Payment.ts +14 -0
  87. package/ts/api/resources/VatDeclaration.ts +9 -1
  88. package/ts/api/resources.ts +2 -0
  89. package/ts/types/Enum/BalanceSheetQuestion.ts +7 -0
  90. package/ts/types/Enum/BalanceSheetQuestionWording.ts +20 -4
  91. package/ts/types/Enum/VatDeclarationType.ts +253 -0
  92. package/ts/types/Interface/api/jeDeclare/Util.ts +1 -1
  93. package/ts/types/Interface/api/payment/QueryMonthlyPayment.ts +13 -0
  94. package/ts/types/Interface/api/user/CreateCoworker.ts +24 -17
  95. package/ts/types/Interface/api/vatDeclaration/ReadVatVariousOperations.ts +9 -0
  96. package/ts/types/Interface/api/vatDeclaration/ResultFormatToEntries.ts +5 -0
  97. package/ts/types/Interface/models/IApiError.ts +1 -0
  98. package/ts/types/Interface/models/IUser.ts +50 -50
  99. package/ts/types/index.ts +4 -0
  100. package/ts/utils/brands.ts +9 -1
@@ -0,0 +1,253 @@
1
+ import { IAccount } from '../Interface/models/IAccount';
2
+
3
+ export const accountList3310: Array<number> = [
4
+ 445720, 445705, 445710, 445785, 445721, 445820,
5
+ 445200, 445662, 445620, 445660, 445840, 445670_1,
6
+ 445830, 445670_2, 445680, 445510,
7
+ ];
8
+
9
+ export const accountList3517: Array<number> = [
10
+ 445720, 445705, 445710, 445785, 445721, 445700,
11
+ 445820, 445200, 445662, 445620, 445660, 445840,
12
+ 445820, 445810, 445670, 445830, 445670, 445810,
13
+ 445680, 445510,
14
+ ];
15
+
16
+ export const accountInfo3310: Record<number, AccountInfo> = {
17
+ 445720: {
18
+ number: 445720,
19
+ fields: ['ligne08Tva'],
20
+ fieldsToSubtract: ['ligne17'],
21
+ type: 'debit',
22
+ },
23
+ 445705: {
24
+ number: 445705,
25
+ fields: ['ligne09Tva'],
26
+ fieldsToSubtract: [],
27
+ type: 'debit',
28
+ },
29
+ 445710: {
30
+ number: 445710,
31
+ fields: ['ligne9BTva'],
32
+ fieldsToSubtract: [],
33
+ type: 'debit',
34
+ },
35
+ 445785: {
36
+ number: 445785,
37
+ fields: ['ligne10Tva'],
38
+ fieldsToSubtract: [],
39
+ type: 'debit',
40
+ },
41
+ 445721: {
42
+ number: 445721,
43
+ fields: ['ligne11Tva'],
44
+ fieldsToSubtract: [],
45
+ type: 'debit',
46
+ },
47
+ 445820: {
48
+ number: 445820,
49
+ fields: ['ligne13', 'ligne14', 'ligne15', 'ligne5B'],
50
+ fieldsToSubtract: [],
51
+ type: 'debit',
52
+ },
53
+ 445200: {
54
+ number: 445200,
55
+ fields: ['ligne7C', 'ligne17'],
56
+ fieldsToSubtract: [],
57
+ type: 'debit',
58
+ },
59
+ 445662: {
60
+ number: 445662,
61
+ fields: ['ligne7C', 'ligne17'],
62
+ fieldsToSubtract: [],
63
+ type: 'credit',
64
+ },
65
+ 445620: {
66
+ number: 445620,
67
+ fields: ['ligne19'],
68
+ fieldsToSubtract: [],
69
+ type: 'credit',
70
+ },
71
+ 445660: {
72
+ number: 445660,
73
+ fields: ['ligne20'],
74
+ fieldsToSubtract: ['ligne7C', 'ligne17'],
75
+ type: 'credit',
76
+ },
77
+ 445840: {
78
+ number: 445840,
79
+ fields: ['ligne21'],
80
+ fieldsToSubtract: [],
81
+ type: 'credit',
82
+ },
83
+ 445670_1: {
84
+ number: 445670,
85
+ fields: ['ligne22'],
86
+ fieldsToSubtract: [],
87
+ type: 'credit',
88
+ },
89
+ 445830: {
90
+ number: 445830,
91
+ fields: ['ligne26'],
92
+ fieldsToSubtract: [],
93
+ type: 'debit',
94
+ },
95
+ 445670_2: {
96
+ number: 445670,
97
+ fields: ['ligne27'],
98
+ fieldsToSubtract: [],
99
+ type: 'debit',
100
+ },
101
+ 445810: {
102
+ number: 445810,
103
+ fields: ['A100224_0'],
104
+ fieldsToSubtract: [],
105
+ type: 'debit',
106
+ },
107
+ 445680: {
108
+ number: 445680,
109
+ fields: ['A100204_0'],
110
+ fieldsToSubtract: [],
111
+ type: 'credit',
112
+ },
113
+ 445510: {
114
+ number: 445510,
115
+ fields: ['A100103_0'],
116
+ fieldsToSubtract: [],
117
+ type: 'credit',
118
+ },
119
+ };
120
+
121
+ export const accountInfo3517: Record<number, AccountInfo> = {
122
+ 445720: {
123
+ number: 445720,
124
+ fields: ['A904072_0', 'A100147_0', 'A100149_0', 'A100161_0'],
125
+ fieldsToSubtract: [],
126
+ type: 'debit',
127
+ },
128
+ 445705: {
129
+ number: 445705,
130
+ fields: ['A100140_0'],
131
+ fieldsToSubtract: [],
132
+ type: 'debit',
133
+ },
134
+ 445710: {
135
+ number: 445710,
136
+ fields: ['A904074_0'],
137
+ fieldsToSubtract: [],
138
+ type: 'debit',
139
+ },
140
+ 445785: {
141
+ number: 445785,
142
+ fields: ['A100168_0'],
143
+ fieldsToSubtract: [],
144
+ type: 'debit',
145
+ },
146
+ 445721: {
147
+ number: 445721,
148
+ fields: ['A100166_0'],
149
+ fieldsToSubtract: [],
150
+ type: 'debit',
151
+ },
152
+ 445700: {
153
+ number: 445700,
154
+ fields: ['A100083_0', 'A100145_0', 'A100185_0', 'A107009_0'],
155
+ fieldsToSubtract: [],
156
+ type: 'debit',
157
+ },
158
+ 445820_1: {
159
+ number: 445820,
160
+ fields: ['A100197_0', 'A100087_0', 'A905878_0'],
161
+ fieldsToSubtract: [],
162
+ type: 'debit',
163
+ },
164
+ 445200: {
165
+ number: 445200,
166
+ fields: ['A900775_0', 'A100150_0'],
167
+ fieldsToSubtract: [],
168
+ type: 'debit',
169
+ },
170
+ 445662: {
171
+ number: 445662,
172
+ fields: ['A900775_0', 'A100150_0'],
173
+ fieldsToSubtract: [],
174
+ type: 'credit',
175
+ },
176
+ 445620: {
177
+ number: 445620,
178
+ fields: ['A100090_0'],
179
+ fieldsToSubtract: [],
180
+ type: 'credit',
181
+ },
182
+ 445660: {
183
+ number: 445660,
184
+ fields: ['A100091_0', 'A100192_0'],
185
+ fieldsToSubtract: ['A900775_0', 'A100150_0'],
186
+ type: 'credit',
187
+ },
188
+ 445840: {
189
+ number: 445840,
190
+ fields: ['A100092_0'],
191
+ fieldsToSubtract: [],
192
+ type: 'credit',
193
+ },
194
+ 445820_2: {
195
+ number: 445820,
196
+ fields: ['A905879_0'],
197
+ fieldsToSubtract: [],
198
+ type: 'credit',
199
+ },
200
+ 445810_1: {
201
+ number: 445810,
202
+ fields: ['A100194_0'],
203
+ fieldsToSubtract: [],
204
+ type: 'credit',
205
+ },
206
+ 445670_1: {
207
+ number: 445670,
208
+ fields: ['A100151_0'],
209
+ fieldsToSubtract: [],
210
+ type: 'credit',
211
+ },
212
+ 445830: {
213
+ number: 445830,
214
+ fields: ['A100097_0'],
215
+ fieldsToSubtract: [],
216
+ type: 'debit',
217
+ },
218
+ 445670_2: {
219
+ number: 445670,
220
+ fields: ['A100098_0'],
221
+ fieldsToSubtract: [],
222
+ type: 'debit',
223
+ },
224
+ 445810_2: {
225
+ number: 445810,
226
+ fields: ['A100224_0'],
227
+ fieldsToSubtract: [],
228
+ type: 'debit',
229
+ },
230
+ 445680: {
231
+ number: 445680,
232
+ fields: ['A100204_0'],
233
+ fieldsToSubtract: [],
234
+ type: 'credit',
235
+ },
236
+ 445510: {
237
+ number: 445510,
238
+ fields: ['A100103_0'],
239
+ fieldsToSubtract: [],
240
+ type: 'credit',
241
+ },
242
+ };
243
+
244
+ export interface EntriesListField {
245
+ fields: Array<string>,
246
+ fieldsToSubtract: Array<string>,
247
+ account: IAccount,
248
+ type: 'debit' | 'credit',
249
+ }
250
+
251
+ export interface AccountInfo extends Pick<EntriesListField, 'fields' | 'fieldsToSubtract' | 'type'> {
252
+ number: number;
253
+ }
@@ -50,7 +50,7 @@ type UsableBankStatementTransaction = {
50
50
 
51
51
  type BankStatementData = {
52
52
  balance: number;
53
- dateBalance?: string;
53
+ dateBalance: string;
54
54
  };
55
55
 
56
56
  export type UsableBankStatement = {
@@ -0,0 +1,13 @@
1
+ import { IsDefined } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QueryMonthlyPayment {
5
+ @IsDefined()
6
+ @ApiProperty({
7
+ description: 'date of the month',
8
+ required: true,
9
+ type: Date,
10
+ example: '2022-03',
11
+ })
12
+ dateMonth: Date;
13
+ }
@@ -1,69 +1,76 @@
1
1
  import {
2
2
  IsBoolean, IsDate, IsDefined, IsEmail, IsNumber, IsOptional, IsPhoneNumber, IsString, IsUrl,
3
3
  } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
4
5
 
5
6
  export class CreateCoworker {
7
+ @ApiProperty()
6
8
  @IsDefined()
7
9
  @IsString()
8
10
  firstname: string;
9
11
 
12
+ @ApiProperty()
10
13
  @IsDefined()
11
14
  @IsString()
12
15
  lastname: string;
13
16
 
17
+ @ApiProperty()
14
18
  @IsDefined()
15
19
  @IsEmail()
16
20
  email: string;
17
21
 
22
+ @ApiProperty()
18
23
  @IsDefined()
19
24
  @IsString()
20
25
  username: string;
21
26
 
27
+ @ApiProperty()
22
28
  @IsDefined()
23
29
  @IsString()
24
30
  password: string;
25
31
 
26
- @IsOptional()
27
- @IsString()
28
- hash: string;
29
-
32
+ @ApiProperty()
30
33
  @IsDefined()
31
34
  @IsPhoneNumber()
32
35
  phone: string;
33
36
 
34
- @IsDefined()
37
+ @ApiPropertyOptional()
38
+ @IsOptional()
35
39
  @IsNumber()
36
- idCivility: number;
40
+ idCivility?: number;
37
41
 
42
+ @ApiProperty({ default: true })
38
43
  @IsDefined()
39
44
  @IsBoolean()
40
- active: number;
45
+ active: boolean;
41
46
 
47
+ @ApiPropertyOptional()
42
48
  @IsOptional()
43
49
  @IsUrl()
44
- calendlyUrl: string;
50
+ calendlyUrl?: string;
45
51
 
52
+ @ApiPropertyOptional()
46
53
  @IsOptional()
47
54
  @IsString()
48
- positionLabel: string;
49
-
50
- @IsOptional()
51
- @IsBoolean()
52
- isNewProspect: number;
55
+ positionLabel?: string;
53
56
 
57
+ @ApiPropertyOptional()
54
58
  @IsOptional()
55
59
  @IsBoolean()
56
- apprentice: boolean;
60
+ apprentice?: boolean;
57
61
 
62
+ @ApiPropertyOptional()
58
63
  @IsOptional()
59
64
  @IsDate()
60
- birthdate: Date;
65
+ birthdate?: Date;
61
66
 
67
+ @ApiPropertyOptional()
62
68
  @IsOptional()
63
69
  @IsDate()
64
- arrivalDate: Date;
70
+ arrivalDate?: Date;
65
71
 
72
+ @ApiPropertyOptional()
66
73
  @IsOptional()
67
74
  @IsDate()
68
- confirmedAt: Date;
75
+ confirmedAt?: Date;
69
76
  }
@@ -0,0 +1,9 @@
1
+ export interface ReadVatVariousOperations {
2
+ debit: number,
3
+ credit: number,
4
+ master: boolean,
5
+ designation: string,
6
+ dateValue: Date,
7
+ idAccount?: number,
8
+ idThirdParty?: number,
9
+ }
@@ -0,0 +1,5 @@
1
+ export interface ResultFormatToEntries {
2
+ name: string,
3
+ number: number,
4
+ amount: number
5
+ }
@@ -113,6 +113,7 @@ export enum Code {
113
113
  userEmailAlreadyExist = 'user-username-already-exists',
114
114
  userPhoneAlreadyExist = 'user-phone-already-exists',
115
115
  couldNotFindUser = 'could-not-find-user',
116
+ wrongBrandEmail = 'wrong-brand-email',
116
117
 
117
118
  // Cerfa
118
119
  civilityNotFound = 'civility_not_found',
@@ -19,60 +19,60 @@ type isAny<T> = T | any;
19
19
  // users
20
20
  export interface IUser {
21
21
  id?: number;
22
- firstname: string | null;
23
- lastname: string | null;
24
- fullname: string | null;
25
- email: string | null;
26
- email2: string | null;
27
- username: string | null;
28
- stripeCustomerId: string | null;
29
- positionLabel: string | null;
30
- sha: string | null;
31
- hash: string | null;
32
- password: string | null;
33
- idFile: number | null;
34
- quality: string | null;
35
- idQuality: number | null;
36
- phone: string | null;
37
- phone2: string | null;
38
- prefix: string | null;
39
- tokenLostPassword: string | null;
40
- tokenApi: string | null;
41
- tokenNotification: string | null;
42
- tokenSocket: string | null;
43
- authyId: string | null;
44
- authCode: string | null;
45
- authCodeDate: Date | null;
46
- tutoTransaction: boolean | null;
47
- lastConnection: Date | null;
48
- beforeLastConnection: Date | null;
49
- active: boolean | null;
50
- toContact: boolean;
51
- stateProspect: boolean | null;
52
- birthdate: Date | null;
53
- arrivalDate: Date | null;
54
- isNewProspect: boolean;
55
- hasAccountNumberDisplay: boolean;
56
- isAssociate: boolean | null;
57
- isResponderActive: boolean;
58
- suppDoublon: boolean | null;
59
- calendlyUrl: string | null;
60
- idCivility: number | null;
61
- idCommercialDoublon: number | null;
62
- idProspectIsWith: number | null;
63
- apprentice: boolean;
64
- smsNotAllowed: boolean;
65
- restDaysAbsence: number | null;
66
- startOnboarding: Date | null;
67
- societyByDefault: number | null;
68
- longAbsence: boolean | null;
69
- internationalPhone: string | null;
70
- isThemeLight: boolean;
22
+ firstname?: string | null;
23
+ lastname?: string | null;
24
+ fullname?: string | null;
25
+ email?: string | null;
26
+ email2?: string | null;
27
+ username?: string | null;
28
+ stripeCustomerId?: string | null;
29
+ positionLabel?: string | null;
30
+ sha?: string | null;
31
+ hash?: string | null;
32
+ password?: string | null;
33
+ idFile?: number | null;
34
+ quality?: string | null;
35
+ idQuality?: number | null;
36
+ phone?: string | null;
37
+ phone2?: string | null;
38
+ prefix?: string | null;
39
+ tokenLostPassword?: string | null;
40
+ tokenApi?: string | null;
41
+ tokenNotification?: string | null;
42
+ tokenSocket?: string | null;
43
+ authyId?: string | null;
44
+ authCode?: string | null;
45
+ authCodeDate?: Date | null;
46
+ tutoTransaction?: boolean | null;
47
+ lastConnection?: Date | null;
48
+ beforeLastConnection?: Date | null;
49
+ active?: boolean | null;
50
+ toContact?: boolean;
51
+ stateProspect?: boolean | null;
52
+ birthdate?: Date | null;
53
+ arrivalDate?: Date | null;
54
+ isNewProspect?: boolean;
55
+ hasAccountNumberDisplay?: boolean;
56
+ isAssociate?: boolean | null;
57
+ isResponderActive?: boolean;
58
+ suppDoublon?: boolean | null;
59
+ calendlyUrl?: string | null;
60
+ idCivility?: number | null;
61
+ idCommercialDoublon?: number | null;
62
+ idProspectIsWith?: number | null;
63
+ apprentice?: boolean;
64
+ smsNotAllowed?: boolean;
65
+ restDaysAbsence?: number | null;
66
+ startOnboarding?: Date | null;
67
+ societyByDefault?: number | null;
68
+ longAbsence?: boolean | null;
69
+ internationalPhone?: string | null;
70
+ isThemeLight?: boolean;
71
71
  createdAt?: Date | null;
72
72
  updatedAt?: Date | null;
73
73
  confirmedAt?: Date | null;
74
74
  tokenConfirmedAt?: string | null;
75
- idPoleLeader: number | null;
75
+ idPoleLeader?: number | null;
76
76
  affiliateTrackingId?: number | null;
77
77
 
78
78
  // Associations
package/ts/types/index.ts CHANGED
@@ -392,6 +392,7 @@ export * from './Enum/BalanceSheetModule';
392
392
  export * from './Enum/BalanceSheetStatus';
393
393
  export * from './Enum/FuelType';
394
394
  export * from './Enum/KilometricAllowanceScale';
395
+ export * from './Enum/VatDeclarationType';
395
396
 
396
397
  // Interfaces API
397
398
  export * from './Interface/api/jeDeclare/ReadJeDeclare';
@@ -404,6 +405,7 @@ export * from './Interface/api/accountingEntry/AnnotateAccountingTransaction';
404
405
  export * from './Interface/api/accountingEntry/CreateManualEntry';
405
406
  export * from './Interface/api/immobilization/ReadFormattedImmobilization';
406
407
  export * from './Interface/api/immobilization/CreateImmobilization';
408
+ export * from './Interface/api/payment/QueryMonthlyPayment';
407
409
  export * from './Interface/api/paymentExpectationCustomer/ReadPaymentExpectationCustomer';
408
410
  export * from './Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer';
409
411
  export * from './Interface/api/paymentExpectationCustomer/UpdatePaymentExpectationCustomer';
@@ -492,6 +494,8 @@ export * from './Interface/api/revision/QueryRevisionMergeIntoAccount';
492
494
  export * from './Interface/api/revision/ReadRevisionMergeIntoAccount';
493
495
  export * from './Interface/api/revision/QueryRevisionSearchEntries';
494
496
  export * from './Interface/api/vatDeclaration/QueryVatDeclaration';
497
+ export * from './Interface/api/vatDeclaration/ReadVatVariousOperations';
498
+ export * from './Interface/api/vatDeclaration/ResultFormatToEntries';
495
499
 
496
500
  // export * from './Interface/api/survey/QuerySurvey';
497
501
  export * from './Interface/api/survey/ReadSurvey';
@@ -77,4 +77,12 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
77
77
  return brand;
78
78
  };
79
79
 
80
- export { getBrandConfig, getBrandNameByNodeEnv };
80
+ const getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | null => {
81
+ if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';
82
+ if (email.indexOf('comptalib.com') > -1) return 'Comptalib';
83
+ if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';
84
+ if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';
85
+ return null;
86
+ };
87
+
88
+ export { getBrandConfig, getBrandNameByNodeEnv, getBrandByEmail };