@silexpert/core 1.1.257 → 1.1.258

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 (71) hide show
  1. package/dist/cjs/api/resources/Comment.d.ts +1 -0
  2. package/dist/cjs/api/resources/Comment.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Comment.js +3 -0
  4. package/dist/cjs/api/resources/Comment.js.map +1 -1
  5. package/dist/cjs/types/Enum/BrandAnytime.d.ts +457 -0
  6. package/dist/cjs/types/Enum/BrandAnytime.d.ts.map +1 -0
  7. package/dist/cjs/types/Enum/BrandAnytime.js +333 -0
  8. package/dist/cjs/types/Enum/BrandAnytime.js.map +1 -0
  9. package/dist/cjs/types/Enum/ReportType.d.ts +4 -0
  10. package/dist/cjs/types/Enum/ReportType.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/ReportType.js +4 -0
  12. package/dist/cjs/types/Enum/ReportType.js.map +1 -1
  13. package/dist/cjs/types/Enum/StateSynchro.d.ts +5 -0
  14. package/dist/cjs/types/Enum/StateSynchro.d.ts.map +1 -0
  15. package/dist/cjs/types/Enum/StateSynchro.js +9 -0
  16. package/dist/cjs/types/Enum/StateSynchro.js.map +1 -0
  17. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts +1 -0
  18. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.js +4 -0
  20. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -1
  21. package/dist/cjs/types/Interface/models/IBankAccount.d.ts +2 -0
  22. package/dist/cjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/models/IBankAccount.js.map +1 -1
  24. package/dist/cjs/types/index.d.ts +1 -0
  25. package/dist/cjs/types/index.d.ts.map +1 -1
  26. package/dist/cjs/types/index.js +1 -0
  27. package/dist/cjs/types/index.js.map +1 -1
  28. package/dist/cjs/utils/bankAccount.d.ts +2 -5
  29. package/dist/cjs/utils/bankAccount.d.ts.map +1 -1
  30. package/dist/cjs/utils/bankAccount.js +12 -15
  31. package/dist/cjs/utils/bankAccount.js.map +1 -1
  32. package/dist/mjs/api/resources/Comment.d.ts +1 -0
  33. package/dist/mjs/api/resources/Comment.d.ts.map +1 -1
  34. package/dist/mjs/api/resources/Comment.js +3 -0
  35. package/dist/mjs/api/resources/Comment.js.map +1 -1
  36. package/dist/mjs/types/Enum/BrandAnytime.d.ts +457 -0
  37. package/dist/mjs/types/Enum/BrandAnytime.d.ts.map +1 -0
  38. package/dist/mjs/types/Enum/BrandAnytime.js +330 -0
  39. package/dist/mjs/types/Enum/BrandAnytime.js.map +1 -0
  40. package/dist/mjs/types/Enum/ReportType.d.ts +4 -0
  41. package/dist/mjs/types/Enum/ReportType.d.ts.map +1 -1
  42. package/dist/mjs/types/Enum/ReportType.js +4 -0
  43. package/dist/mjs/types/Enum/ReportType.js.map +1 -1
  44. package/dist/mjs/types/Enum/StateSynchro.d.ts +5 -0
  45. package/dist/mjs/types/Enum/StateSynchro.d.ts.map +1 -0
  46. package/dist/mjs/types/Enum/StateSynchro.js +6 -0
  47. package/dist/mjs/types/Enum/StateSynchro.js.map +1 -0
  48. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts +1 -0
  49. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts.map +1 -1
  50. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.js +5 -0
  51. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -1
  52. package/dist/mjs/types/Interface/models/IBankAccount.d.ts +2 -0
  53. package/dist/mjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  54. package/dist/mjs/types/Interface/models/IBankAccount.js.map +1 -1
  55. package/dist/mjs/types/index.d.ts +1 -0
  56. package/dist/mjs/types/index.d.ts.map +1 -1
  57. package/dist/mjs/types/index.js +1 -0
  58. package/dist/mjs/types/index.js.map +1 -1
  59. package/dist/mjs/utils/bankAccount.d.ts +2 -5
  60. package/dist/mjs/utils/bankAccount.d.ts.map +1 -1
  61. package/dist/mjs/utils/bankAccount.js +4 -7
  62. package/dist/mjs/utils/bankAccount.js.map +1 -1
  63. package/package.json +1 -1
  64. package/ts/api/resources/Comment.ts +4 -0
  65. package/ts/types/Enum/BrandAnytime.ts +330 -0
  66. package/ts/types/Enum/ReportType.ts +4 -0
  67. package/ts/types/Enum/StateSynchro.ts +4 -0
  68. package/ts/types/Interface/api/calendarEvent/createCalendarEvent.ts +3 -0
  69. package/ts/types/Interface/models/IBankAccount.ts +2 -0
  70. package/ts/types/index.ts +1 -0
  71. package/ts/utils/bankAccount.ts +4 -9
@@ -0,0 +1,330 @@
1
+ import { SalesContractClementine, SalesContractKlems } from './SalesContractBrandClementine';
2
+
3
+ export const BrandClementine = [
4
+ {
5
+ idTypeBrand: 1,
6
+ name: 'Clementine',
7
+ commercialName: 'Clementine',
8
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-anytime/',
9
+ logoS3: 'config/e5abf44b-106d-5c1f-9e38-718eb0482929',
10
+ privacyPolicy: 'https://www.compta-clementine.fr/politique-des-donnees/',
11
+ recaptcha: {
12
+ secretKey: '6LdZneUUAAAAAKfiwC_JFWOlzc_0YYKHQJgSveRP',
13
+ },
14
+ colors: {
15
+ primary: '#31DAFE',
16
+ primary50: '#F4FBFF',
17
+ primary100: '#CFF4FF',
18
+ primary300: '#7FE7FF',
19
+ primary500: '#31DAFE',
20
+ primary700: '#439CB5',
21
+ footerColor: '#f3692f',
22
+ },
23
+ listPhones: {
24
+ contact: '03 83 93 14 14',
25
+ qualite: '03 83 93 30 44',
26
+ social: '03 83 93 16 20',
27
+ juridique: '03 83 93 16 22',
28
+ },
29
+ listMails: {
30
+ administratif: 'administratif@clementine.fr',
31
+ app: 'app@clementine.fr',
32
+ bonjour: 'bonjour@clementine.fr',
33
+ contact: 'contact@clementine.fr',
34
+ facturation: 'facturation@clementine.fr',
35
+ feedback: 'feedback@clementine.fr',
36
+ gestion: 'gestion@clementine.fr',
37
+ juridique: 'juridique@clementine.fr',
38
+ informatique: 'informatique@compta-clementine.fr',
39
+ msd: 'msd@clementine.fr',
40
+ noreply: 'noreply@clementine.fr',
41
+ qualite: 'qualite@clementine.fr',
42
+ paiement: 'paiement@clementine.fr',
43
+ rh: 'rh@clementine.fr',
44
+ social: 'social@clementine.fr',
45
+ support: 'support@clementine.fr',
46
+ tva: 'tva@clementine.fr',
47
+ wb: 'wb@compta-clementine.fr',
48
+ },
49
+ companyInformation: {
50
+ ape: '6920Z',
51
+ bp: 'BP 31029',
52
+ city: 'Laxou',
53
+ montantCapital: '500 000',
54
+ nomRaisonSociale: 'EXPERTISE CHOIX B',
55
+ ECName: 'M. Jean-Louis BOICHÉ',
56
+ ECOrderCity: 'Nancy',
57
+ ECDepartment: 'Lorraine',
58
+ ECPosition: 'Président',
59
+ phone: '03 83 93 14 14',
60
+ postalAddress: '9, avenue du Rhin',
61
+ rcs: '752 566 687',
62
+ statut: 'SAS',
63
+ zipCode: '54 520',
64
+ },
65
+ idPrestationsListHidden: [197], // TODO:
66
+ logoUrl: 'logo-dark.svg',
67
+ miniLogoUrl: 'logo.svg',
68
+ hiddenPages: [],
69
+ urlApp: 'https://app.clementine.fr',
70
+ urlApi1: 'https://api.compta-clementine.fr',
71
+ urlApi2: 'https://api-next.compta-clementine.fr',
72
+ urlExpert: 'https://expert.compta-clementine.fr',
73
+ urlClient: 'https://www.clementine.fr',
74
+ bank: {
75
+ IBAN: 'FR7616106840138646838239863',
76
+ BIC: 'AGRIFRPP861',
77
+ Name: 'Expertise Choix B',
78
+ Id: 'FR91ZZZ617135',
79
+ },
80
+ internalInvoicing: {
81
+ statut: 'SAS',
82
+ name: 'EXPERTISE CHOIX B',
83
+ address: '9, avenue du Rhin',
84
+ zipCode: '54520',
85
+ city: 'LAXOU',
86
+ country: 'FRANCE',
87
+ montantCapital: '500 000',
88
+ siret: '752566687',
89
+ ape: '6920Z',
90
+ rcs: '752 566 687',
91
+ phone: '03 83 93 14 14',
92
+ vatIntracom: 'FR47752566687',
93
+ email: 'facturation@compta-clementine.fr',
94
+ },
95
+ webmail: {
96
+ domains: ['@compta-clementine.fr', '@clementine.fr'],
97
+ },
98
+ offices: {
99
+ LAXOU: {
100
+ id: 1,
101
+ name: 'Laxou',
102
+ },
103
+ PARIS: {
104
+ id: 2,
105
+ name: 'Paris',
106
+ },
107
+ MARSEILLE: {
108
+ id: 3,
109
+ name: 'Marseille',
110
+ },
111
+ EPINAL: {
112
+ id: 4,
113
+ name: 'Epinal',
114
+ },
115
+ HOME_OFFICE: {
116
+ id: 5,
117
+ name: 'Télétravail',
118
+ },
119
+ },
120
+ salesContractConfig: SalesContractClementine,
121
+ },
122
+ {
123
+ idTypeBrand: 2,
124
+ name: 'Legalstart',
125
+ commercialName: 'Clementine',
126
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-clementine/',
127
+ colors: {
128
+ primary: '#16a974',
129
+ footerColor: '#f3692f',
130
+ },
131
+ listPhones: {
132
+ contact: '03 83 93 14 14',
133
+ qualite: '03 83 93 14 14',
134
+ juridique: '03 83 93 14 14',
135
+ },
136
+ listMails: {
137
+ contact: 'comptastart@legalstart.fr',
138
+ },
139
+ companyInformation: {
140
+ ape: '6920Z',
141
+ bp: 'BP 31029',
142
+ city: 'Laxou',
143
+ montantCapital: '500 000',
144
+ nomRaisonSociale: 'EXPERTISE CHOIX B',
145
+ ECName: 'M. Jean-Louis BOICHÉ',
146
+ ECOrderCity: 'Nancy',
147
+ ECPosition: 'Président',
148
+ phone: '03 83 93 14 14',
149
+ postalAddress: '9, avenue du Rhin',
150
+ rcs: '752 566 687',
151
+ statut: 'SAS',
152
+ zipCode: '54 520',
153
+ },
154
+ idPrestationsListHidden: [197],
155
+ logoUrl: 'logo-legalstart.svg',
156
+ miniLogoUrl: 'logo-legalstart.svg',
157
+ hiddenPages: [],
158
+ recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
159
+ urlApp: 'https://app.compta-clementine.fr',
160
+ urlApi1: 'https://api-legalstart.compta-clementine.fr',
161
+ urlApi2: 'https://api-next-legalstart.compta-clementine.fr',
162
+ urlExpert: 'https://pro.comptalib.com',
163
+ urlClient: 'https://www.compta-clementine.fr',
164
+ bank: {
165
+ IBAN: 'FR7616106840138646838239863',
166
+ BIC: 'AGRIFRPP861',
167
+ Name: 'Expertise Choix B',
168
+ Id: 'FR91ZZZ617135',
169
+ },
170
+ internalInvoicing: {
171
+ statut: 'SAS',
172
+ name: 'EXPERTISE CHOIX B',
173
+ address: '9, avenue du Rhin',
174
+ zipCode: '54520',
175
+ city: 'LAXOU',
176
+ country: 'FRANCE',
177
+ montantCapital: '500 000',
178
+ siret: '752566687',
179
+ ape: '6920Z',
180
+ rcs: '752 566 687',
181
+ phone: '03 83 93 14 14',
182
+ vatIntracom: 'FR47752566687',
183
+ email: 'facturation@compta-clementine.fr',
184
+ },
185
+ },
186
+ {
187
+ idTypeBrand: 4,
188
+ name: 'Statuts-Express',
189
+ commercialName: 'Statuts-Express',
190
+ urlApp: 'https://statuts-express.fr',
191
+ urlApi1: 'https://api.compta-clementine.fr',
192
+ urlApi2: 'https://api-next.compta-clementine.fr',
193
+ bank: {
194
+ IBAN: 'FR7616106840138646838239863',
195
+ BIC: 'AGRIFRPP861',
196
+ Name: 'Expertise Choix B',
197
+ Id: 'FR91ZZZ617135',
198
+ },
199
+ colors: {
200
+ primary: '#D8192D',
201
+ sendContract: '#f3692f',
202
+ },
203
+ internalInvoicing: {
204
+ statut: 'SAS',
205
+ name: 'EXPERTISE CHOIX B',
206
+ address: '9, avenue du Rhin',
207
+ zipCode: '54520',
208
+ city: 'LAXOU',
209
+ country: 'FRANCE',
210
+ montantCapital: '500 000',
211
+ siret: '752566687',
212
+ ape: '6920Z',
213
+ rcs: '752 566 687',
214
+ phone: '03 83 93 14 14',
215
+ vatIntracom: 'FR47752566687',
216
+ email: 'facturation@compta-clementine.fr',
217
+ },
218
+ },
219
+ {
220
+ idTypeBrand: 5,
221
+ name: 'Kandbaz',
222
+ commercialName: 'Kandbaz',
223
+ urlApp: 'https://app.compta-clementine.fr',
224
+ urlApi1: 'https://api.compta-clementine.fr',
225
+ urlApi2: 'https://api-next.compta-clementine.fr',
226
+ bank: {
227
+ IBAN: 'FR7616106840138646838239863',
228
+ BIC: 'AGRIFRPP861',
229
+ Name: 'Expertise Choix B',
230
+ Id: 'FR91ZZZ617135',
231
+ },
232
+ colors: {
233
+ primary: '#f39a00',
234
+ footerColor: '#f3692f',
235
+ },
236
+ internalInvoicing: {
237
+ statut: 'SAS',
238
+ name: 'EXPERTISE CHOIX B',
239
+ address: '9, avenue du Rhin',
240
+ zipCode: '54520',
241
+ city: 'LAXOU',
242
+ country: 'FRANCE',
243
+ montantCapital: '500 000',
244
+ siret: '752566687',
245
+ ape: '6920Z',
246
+ rcs: '752 566 687',
247
+ phone: '03 83 93 14 14',
248
+ vatIntracom: 'FR47752566687',
249
+ email: 'facturation@compta-clementine.fr',
250
+ },
251
+ },
252
+ {
253
+ idTypeBrand: 6,
254
+ name: 'Klems',
255
+ commercialName: 'Klems',
256
+ urlApp: 'https://app.clementine.fr',
257
+ urlApi1: 'https://api.compta-clementine.fr',
258
+ urlApi2: 'https://api-next.compta-clementine.fr',
259
+ urlExpert: 'https://expert.compta-clementine.fr',
260
+ urlClient: 'https://www.klems.fr',
261
+ miniLogoUrl: 'logo-klems.svg',
262
+ listPhones: {
263
+ contact: '03 83 93 14 14',
264
+ qualite: '03 83 93 30 44',
265
+ social: '03 83 93 16 20',
266
+ juridique: '03 83 93 16 22',
267
+ },
268
+ listMails: {
269
+ administratif: 'administratif@clementine.fr',
270
+ app: 'app@clementine.fr',
271
+ bonjour: 'bonjour@clementine.fr',
272
+ contact: 'contact@clementine.fr',
273
+ facturation: 'facturation@clementine.fr',
274
+ feedback: 'feedback@clementine.fr',
275
+ juridique: 'juridique@clementine.fr',
276
+ informatique: 'informatique@compta-clementine.fr',
277
+ msd: 'msd@clementine.fr',
278
+ noreply: 'noreply@clementine.fr',
279
+ qualite: 'qualite@clementine.fr',
280
+ paiement: 'paiement@clementine.fr',
281
+ rh: 'rh@clementine.fr',
282
+ social: 'social@clementine.fr',
283
+ support: 'support@clementine.fr',
284
+ tva: 'tva@clementine.fr',
285
+ wb: 'wb@compta-clementine.fr',
286
+ },
287
+ companyInformation: {
288
+ ape: '6920Z',
289
+ bp: 'BP 31029',
290
+ city: 'Laxou',
291
+ montantCapital: '500 000',
292
+ nomRaisonSociale: 'EXPERTISE CHOIX B',
293
+ ECName: 'M. Jean-Louis BOICHÉ',
294
+ ECOrderCity: 'Nancy',
295
+ ECDepartment: 'Lorraine',
296
+ ECPosition: 'Président',
297
+ phone: '03 83 93 14 14',
298
+ postalAddress: '9, avenue du Rhin',
299
+ rcs: '752 566 687',
300
+ statut: 'SAS',
301
+ zipCode: '54 520',
302
+ },
303
+ bank: {
304
+ IBAN: 'FR7616106840138646838239863',
305
+ BIC: 'AGRIFRPP861',
306
+ Name: 'Expertise Choix B',
307
+ Id: 'FR91ZZZ617135',
308
+ },
309
+ colors: {
310
+ primary: '#38A1FF',
311
+ footerColor: '#00A2FF',
312
+ },
313
+ internalInvoicing: {
314
+ statut: 'SAS',
315
+ name: 'EXPERTISE CHOIX B',
316
+ address: '9, avenue du Rhin',
317
+ zipCode: '54520',
318
+ city: 'LAXOU',
319
+ country: 'FRANCE',
320
+ montantCapital: '500 000',
321
+ siret: '752566687',
322
+ ape: '6920Z',
323
+ rcs: '752 566 687',
324
+ phone: '03 83 93 14 14',
325
+ vatIntracom: 'FR47752566687',
326
+ email: 'facturation@compta-clementine.fr',
327
+ },
328
+ salesContractConfig: SalesContractKlems,
329
+ },
330
+ ];
@@ -71,4 +71,8 @@ export const ReportType = {
71
71
  id: 18,
72
72
  name: 'Demande de changement de comptable',
73
73
  },
74
+ VOLONTARY_UNPAID: {
75
+ id: 19,
76
+ name: 'Impayé volontaire',
77
+ },
74
78
  };
@@ -0,0 +1,4 @@
1
+ export enum StateSynchro {
2
+ SYNCHRONIZED = 1,
3
+ DESYNCHRONIZED = 2,
4
+ }
@@ -54,4 +54,7 @@ export class createCalendarEvent {
54
54
 
55
55
  @ApiPropertyOptional()
56
56
  validatedAt?: Date;
57
+
58
+ @ApiPropertyOptional()
59
+ createdAt?: Date;
57
60
  }
@@ -6,6 +6,7 @@ import { IBankList } from './IBankList';
6
6
  import { IBalanceBankAccount } from './IBalanceBankAccount';
7
7
  import { ISimulation } from './ISimulation';
8
8
  import { IUpToDateBankAccount } from './IUpToDateBankAccount';
9
+ import { StateSynchro } from '../../Enum/StateSynchro';
9
10
 
10
11
  // bankAccounts
11
12
  export interface IBankAccount {
@@ -35,6 +36,7 @@ export interface IBankAccount {
35
36
  idCurrency: number | null;
36
37
  idSociety: number;
37
38
  idBankConnection: number | null;
39
+ synchronizationState?: StateSynchro | null;
38
40
  createdAt?: Date | null;
39
41
  updatedAt?: Date | null;
40
42
 
package/ts/types/index.ts CHANGED
@@ -533,6 +533,7 @@ export * from './Enum/Degree';
533
533
  export * from './Enum/Brevo';
534
534
  export * from './Enum/ZoneCode';
535
535
  export * from './Enum/TimeSlot';
536
+ export * from './Enum/StateSynchro';
536
537
 
537
538
  // Interfaces API
538
539
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
@@ -1,16 +1,12 @@
1
1
  import * as dayjs from 'dayjs';
2
+ import { StateSynchro } from '../types/Enum/StateSynchro';
2
3
  import { IBankAccount, IBankConnection } from '../types';
3
4
  import { PartnerTransactionType } from '../types/Enum/PartnerTransactionType';
5
+ import { isDefined } from 'class-validator';
4
6
 
5
-
6
- export enum StateSynchro {
7
- SYNCHRONIZED = 1,
8
- DESYNCHRONIZED = 2,
9
- }
10
-
11
- export function isSynchro(params: IBankAccount, dateOfTermination?: Date, bankConnection?: IBankConnection ): StateSynchro {
7
+ export function getSynchronizationState(params: IBankAccount, dateOfTermination?: Date, bankConnection?: IBankConnection ): StateSynchro {
12
8
  // si le compte est désactivé au niveau budget on le considére comme syncrho
13
- if (params.disabledAt !== null) return StateSynchro.SYNCHRONIZED;
9
+ if (isDefined(params.disabledAt)) return StateSynchro.SYNCHRONIZED;
14
10
 
15
11
  // // si non Défini alors tjs synchro
16
12
  if (params.idPartnerType === null) return StateSynchro.SYNCHRONIZED;
@@ -36,6 +32,5 @@ export function isSynchro(params: IBankAccount, dateOfTermination?: Date, bankCo
36
32
 
37
33
  if (dateOfTermination && (dayjs(params.lastUpdate).isAfter(dateOfTermination) || dayjs(params.lastUpdate).isSame(dateOfTermination))) return StateSynchro.SYNCHRONIZED;
38
34
 
39
-
40
35
  return StateSynchro.DESYNCHRONIZED;
41
36
  }