@silexpert/core 1.2.41 → 1.2.43

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/BalanceSheet.d.ts +2 -1
  2. package/dist/cjs/api/resources/BalanceSheet.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/BalanceSheet.js +3 -0
  4. package/dist/cjs/api/resources/BalanceSheet.js.map +1 -1
  5. package/dist/cjs/types/Enum/BalanceSheet.d.ts +4 -4
  6. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  7. package/dist/cjs/types/Enum/BalanceSheet.js +104 -21
  8. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  9. package/dist/cjs/types/Enum/BankCollectingState.d.ts +2 -1
  10. package/dist/cjs/types/Enum/BankCollectingState.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/BankCollectingState.js +7 -0
  12. package/dist/cjs/types/Enum/BankCollectingState.js.map +1 -1
  13. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/BrandClementine.js +6 -0
  15. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  16. package/dist/cjs/types/Enum/ReasonNotSubscribed.d.ts +12 -0
  17. package/dist/cjs/types/Enum/ReasonNotSubscribed.d.ts.map +1 -0
  18. package/dist/cjs/types/Enum/ReasonNotSubscribed.js +216 -0
  19. package/dist/cjs/types/Enum/ReasonNotSubscribed.js.map +1 -0
  20. package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts +4 -0
  21. package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
  22. package/dist/cjs/types/Interface/api/balanceSheet/Query.js +14 -1
  23. package/dist/cjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
  24. package/dist/cjs/types/Interface/models/IUser.d.ts +2 -0
  25. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  26. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  27. package/dist/cjs/types/index.d.ts +1 -0
  28. package/dist/cjs/types/index.d.ts.map +1 -1
  29. package/dist/cjs/types/index.js +1 -0
  30. package/dist/cjs/types/index.js.map +1 -1
  31. package/dist/mjs/api/resources/BalanceSheet.d.ts +2 -1
  32. package/dist/mjs/api/resources/BalanceSheet.d.ts.map +1 -1
  33. package/dist/mjs/api/resources/BalanceSheet.js +6 -0
  34. package/dist/mjs/api/resources/BalanceSheet.js.map +1 -1
  35. package/dist/mjs/types/Enum/BalanceSheet.d.ts +4 -4
  36. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  37. package/dist/mjs/types/Enum/BalanceSheet.js +104 -21
  38. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  39. package/dist/mjs/types/Enum/BankCollectingState.d.ts +2 -1
  40. package/dist/mjs/types/Enum/BankCollectingState.d.ts.map +1 -1
  41. package/dist/mjs/types/Enum/BankCollectingState.js +7 -0
  42. package/dist/mjs/types/Enum/BankCollectingState.js.map +1 -1
  43. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  44. package/dist/mjs/types/Enum/BrandClementine.js +6 -0
  45. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  46. package/dist/mjs/types/Enum/ReasonNotSubscribed.d.ts +12 -0
  47. package/dist/mjs/types/Enum/ReasonNotSubscribed.d.ts.map +1 -0
  48. package/dist/mjs/types/Enum/ReasonNotSubscribed.js +213 -0
  49. package/dist/mjs/types/Enum/ReasonNotSubscribed.js.map +1 -0
  50. package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts +4 -0
  51. package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
  52. package/dist/mjs/types/Interface/api/balanceSheet/Query.js +15 -1
  53. package/dist/mjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
  54. package/dist/mjs/types/Interface/models/IUser.d.ts +2 -0
  55. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  56. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  57. package/dist/mjs/types/index.d.ts +1 -0
  58. package/dist/mjs/types/index.d.ts.map +1 -1
  59. package/dist/mjs/types/index.js +1 -0
  60. package/dist/mjs/types/index.js.map +1 -1
  61. package/package.json +1 -1
  62. package/ts/api/resources/BalanceSheet.ts +24 -2
  63. package/ts/types/Enum/BalanceSheet.ts +106 -23
  64. package/ts/types/Enum/BankCollectingState.ts +8 -1
  65. package/ts/types/Enum/BrandClementine.ts +6 -0
  66. package/ts/types/Enum/ReasonNotSubscribed.ts +212 -0
  67. package/ts/types/Interface/api/balanceSheet/Query.ts +33 -26
  68. package/ts/types/Interface/models/IUser.ts +4 -2
  69. package/ts/types/index.ts +1 -0
@@ -1,8 +1,20 @@
1
- import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, QueryBalanceSheetAttestation, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation, QueryBalanceSheetGenerateUnpaid, ReadBalanceSheetConsistency } from '../..';
1
+ import {
2
+ IBalanceSheet,
3
+ QueryBalanceSheetMonthlyStatistic,
4
+ QueryBalanceSheetStatistic,
5
+ QueryBalanceSheetAttestation,
6
+ ReadBalanceSheetMonthlyStatistic,
7
+ ReadBalanceSheetStatistic,
8
+ ReadFreelanceTurnover,
9
+ UpdateBalanceSheet,
10
+ CreateBalanceSheetAttestation,
11
+ QueryBalanceSheetGenerateUnpaid,
12
+ ReadBalanceSheetConsistency,
13
+ QueryBalanceSheetSupervisedStatistic,
14
+ } from '../..';
2
15
  import { Resource } from '../Resource';
3
16
  import { AxiosResponse } from 'axios';
4
17
 
5
-
6
18
  export class BalanceSheet extends Resource {
7
19
  getStatistics(params: QueryBalanceSheetStatistic): Promise<ReadBalanceSheetStatistic> {
8
20
  return this.axios.$get('/exercice/balanceSheet/statistics', { params });
@@ -20,6 +32,16 @@ export class BalanceSheet extends Resource {
20
32
  return this.axios.$get('/exercice/balanceSheet/monthly-statistics-csv', { params });
21
33
  }
22
34
 
35
+ getSupervisedStatistics(
36
+ params: QueryBalanceSheetSupervisedStatistic,
37
+ signal?: AbortSignal,
38
+ ): Promise<IBalanceSheet[]> {
39
+ return this.axios.$get('/exercice/balanceSheet/supervised-statistics', {
40
+ ...(signal ? { signal } : {}),
41
+ params,
42
+ });
43
+ }
44
+
23
45
  createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer> {
24
46
  return this.axios.$post(`/exercice/balanceSheet/${idBalanceSheet}/attestations`, params, {
25
47
  responseType: 'arraybuffer',
@@ -40,7 +40,15 @@ export const BalanceSheetDetails = [
40
40
  text: 'À faire',
41
41
  color: 'grey',
42
42
  textColor: 'grey--text',
43
- forRoles: [['front_office'], ['expert'], ['customer_success'], ['on_boarder'], ['termination'], ['litige'], ['facturation']],
43
+ forRoles: [
44
+ ['front_office'],
45
+ ['expert'],
46
+ ['customer_success'],
47
+ ['on_boarder'],
48
+ ['termination'],
49
+ ['litige'],
50
+ ['facturation'],
51
+ ],
44
52
  },
45
53
  {
46
54
  text: 'En cours de prod.',
@@ -48,7 +56,7 @@ export const BalanceSheetDetails = [
48
56
  alias: 'ENC',
49
57
  color: 'grey',
50
58
  textColor: 'grey--text ',
51
- forRoles: [['front_office'], ['expert']],
59
+ forRoles: [['front_office'], ['expert'], ['customer_success']],
52
60
  },
53
61
  {
54
62
  text: 'Att. retour client',
@@ -56,7 +64,7 @@ export const BalanceSheetDetails = [
56
64
  alias: 'ARC',
57
65
  color: 'cyan',
58
66
  textColor: 'cyan--text',
59
- forRoles: [['front_office'], ['expert']],
67
+ forRoles: [['front_office'], ['expert'], ['customer_success']],
60
68
  },
61
69
  {
62
70
  text: 'À réviser',
@@ -92,7 +100,7 @@ export const BalanceSheetDetails = [
92
100
  value: BalanceSheetState.SENDED_TO_CLIENT,
93
101
  color: 'blue',
94
102
  textColor: 'blue--text',
95
- forRoles: [['front_office'], ['expert']],
103
+ forRoles: [['front_office'], ['expert'], ['customer_success']],
96
104
  },
97
105
  {
98
106
  text: 'Accepté par le client',
@@ -100,7 +108,7 @@ export const BalanceSheetDetails = [
100
108
  color: 'blue darken-2',
101
109
  textColor: 'blue--text ',
102
110
  alias: 'APC',
103
- forRoles: [['front_office'], ['expert']],
111
+ forRoles: [['front_office'], ['expert'], ['customer_success']],
104
112
  },
105
113
  {
106
114
  text: 'Refusé par le client',
@@ -142,7 +150,13 @@ export const BalanceSheetDetails = [
142
150
  text: 'N/A',
143
151
  color: 'grey lighten-2',
144
152
  textColor: 'grey--text',
145
- forRoles: [['customer_success', 'manager'], ['on_boarder', 'manager'], ['termination', 'manager'], ['litige', 'manager'], ['facturation', 'manager']],
153
+ forRoles: [
154
+ ['customer_success', 'manager'],
155
+ ['on_boarder', 'manager'],
156
+ ['termination', 'manager'],
157
+ ['litige', 'manager'],
158
+ ['facturation', 'manager'],
159
+ ],
146
160
  },
147
161
  {
148
162
  text: 'Impayé',
@@ -150,7 +164,15 @@ export const BalanceSheetDetails = [
150
164
  color: 'error darken-2',
151
165
  textColor: 'error--text text--darken-2',
152
166
  key: 'unpaid',
153
- forRoles: [['front_office', 'manager'], ['front_office_express', 'manager'], ['customer_success'], ['on_boarder'], ['termination'], ['litige'], ['facturation']],
167
+ forRoles: [
168
+ ['front_office', 'manager'],
169
+ ['front_office_express', 'manager'],
170
+ ['customer_success'],
171
+ ['on_boarder'],
172
+ ['termination'],
173
+ ['litige'],
174
+ ['facturation'],
175
+ ],
154
176
  },
155
177
  {
156
178
  text: 'Facturation en cours',
@@ -202,14 +224,14 @@ export const BalanceSheetDetails = [
202
224
  forRoles: [['front_office'], ['expert']],
203
225
  },
204
226
  {
205
- text: 'Accepté SIE en l\'état',
227
+ text: "Accepté SIE en l'état",
206
228
  value: BalanceSheetState.ACCEPTED_BY_SIE_IN_STATE,
207
229
  color: 'green darken-3',
208
230
  colorText: 'green--text',
209
231
  forRoles: [['front_office'], ['expert']],
210
232
  },
211
233
  {
212
- text: 'Refus d\'établir',
234
+ text: "Refus d'établir",
213
235
  value: BalanceSheetState.ESTABLISH_REFUSED,
214
236
  color: 'orange darken-1',
215
237
  colorText: 'orange--text text--darken-1',
@@ -272,7 +294,7 @@ export type BalanceSheetField = {
272
294
  calculationAdd?: string[]; // Tableau des keys à additionner pour obtenir le total
273
295
 
274
296
  type?: BalanceSheetType; // Permet de calculer par somme de compte, créditeur ou débiteur
275
- idThirdPartyTypeToAdd?: [ThirdPartyType, MathematicalSign] // Type de tiers à additionner, uniquement au crédit / débit / tous
297
+ idThirdPartyTypeToAdd?: [ThirdPartyType, MathematicalSign]; // Type de tiers à additionner, uniquement au crédit / débit / tous
276
298
  };
277
299
 
278
300
  export type BalanceSheetList = BalanceSheetField[];
@@ -298,7 +320,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
298
320
  isSubcategory: true,
299
321
  fields: [
300
322
  {
301
- name: 'Frais d\'établissement',
323
+ name: "Frais d'établissement",
302
324
  accounts: ['201'],
303
325
  accountsDeducted: ['2801'],
304
326
  total: 0,
@@ -387,7 +409,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
387
409
  accountsDeducted: ['2967', '2968'],
388
410
  },
389
411
  {
390
- name: 'Titres immobilisés de l\'activité de portefeuille',
412
+ name: "Titres immobilisés de l'activité de portefeuille",
391
413
  accounts: ['273'],
392
414
  accountsDeducted: ['2973'],
393
415
  },
@@ -473,7 +495,36 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
473
495
  {
474
496
  // autres = lorsque les fournisseurs te doivent de l'argent = somme débit > crédit
475
497
  name: 'Autres',
476
- accounts: ['401', '408', '4096', '4097', '4098', '42', '43', '44', '451', '452', '453', '454', '455', '4561', '4563', '4564', '4565', '4566', '4567', '4568', '4569', '457', '458', '459', '46', '471', '472', '481'],
498
+ accounts: [
499
+ '401',
500
+ '408',
501
+ '4096',
502
+ '4097',
503
+ '4098',
504
+ '42',
505
+ '43',
506
+ '44',
507
+ '451',
508
+ '452',
509
+ '453',
510
+ '454',
511
+ '455',
512
+ '4561',
513
+ '4563',
514
+ '4564',
515
+ '4565',
516
+ '4566',
517
+ '4567',
518
+ '4568',
519
+ '4569',
520
+ '457',
521
+ '458',
522
+ '459',
523
+ '46',
524
+ '471',
525
+ '472',
526
+ '481',
527
+ ],
477
528
  idThirdPartyTypeToAdd: [ThirdPartyType.PROVIDER, MathematicalSign.PLUS],
478
529
  accountsDeducted: ['495', '496'], // Actif : On compte dedans que ceux qui sont positifs que 4
479
530
  type: 'active',
@@ -514,7 +565,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
514
565
  type: 'active',
515
566
  },
516
567
  {
517
- name: 'Charges constatées d\'avance',
568
+ name: "Charges constatées d'avance",
518
569
  key: 'establishedInAdvance',
519
570
  accounts: ['486'],
520
571
  },
@@ -559,7 +610,16 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
559
610
  total: 0,
560
611
  totalDeducted: 0,
561
612
  calculation: true,
562
- calculationAdd: ['fixedAsset', 'subscribedCapital', 'circulatingActive', 'total3', 'total4', 'total3', 'total4', 'total5'],
613
+ calculationAdd: [
614
+ 'fixedAsset',
615
+ 'subscribedCapital',
616
+ 'circulatingActive',
617
+ 'total3',
618
+ 'total4',
619
+ 'total3',
620
+ 'total4',
621
+ 'total5',
622
+ ],
563
623
  isTotal: true,
564
624
  },
565
625
  ];
@@ -573,7 +633,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
573
633
  total: 0,
574
634
  },
575
635
  {
576
- name: 'Primes d\'émission, de fusion, d\'apport',
636
+ name: "Primes d'émission, de fusion, d'apport",
577
637
  key: 'issuePremiums',
578
638
  accounts: ['104'],
579
639
  isSubcategory: true,
@@ -587,7 +647,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
587
647
  total: 0,
588
648
  },
589
649
  {
590
- name: 'Ecart d\'équivalence',
650
+ name: "Ecart d'équivalence",
591
651
  key: 'equivalenceGap',
592
652
  accounts: ['107'],
593
653
  isSubcategory: true,
@@ -627,14 +687,14 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
627
687
  total: 0,
628
688
  },
629
689
  {
630
- name: 'Résultat de l\'exercice (bénéfice ou perte)',
690
+ name: "Résultat de l'exercice (bénéfice ou perte)",
631
691
  key: 'resultExercice',
632
692
  accounts: ['12'], // comptes 6 - 7
633
693
  isSubcategory: true,
634
694
  total: 0,
635
695
  },
636
696
  {
637
- name: 'Subventions d\'investissement',
697
+ name: "Subventions d'investissement",
638
698
  key: 'subsidies',
639
699
  accounts: ['13'],
640
700
  isSubcategory: true,
@@ -651,7 +711,17 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
651
711
  name: 'Total (I)',
652
712
  key: 'total1',
653
713
  calculation: true,
654
- calculationAdd: ['subscribedCapital', 'issuePremiums', 'equivalenceGap', 'revaluationGap', 'reservations', 'postponement', 'resultExercice', 'subsidies', 'subsidiesRegulated'],
714
+ calculationAdd: [
715
+ 'subscribedCapital',
716
+ 'issuePremiums',
717
+ 'equivalenceGap',
718
+ 'revaluationGap',
719
+ 'reservations',
720
+ 'postponement',
721
+ 'resultExercice',
722
+ 'subsidies',
723
+ 'subsidiesRegulated',
724
+ ],
655
725
  isTotal: true,
656
726
  total: 0,
657
727
  },
@@ -772,7 +842,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
772
842
  type: 'passive',
773
843
  },
774
844
  {
775
- name: 'Produits constatés d\'avance',
845
+ name: "Produits constatés d'avance",
776
846
  key: 'advanceProducts',
777
847
  accounts: ['487', '489'],
778
848
  isSubcategory: true,
@@ -800,7 +870,20 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
800
870
  key: 'total5',
801
871
  total: 0,
802
872
  calculation: true,
803
- calculationAdd: ['subscribedCapital', 'issuePremiums', 'equivalenceGap', 'revaluationGap', 'reservations', 'postponement', 'resultExercice', 'subsidies', 'subsidiesRegulated', 'provisions', 'debts', 'total4'],
873
+ calculationAdd: [
874
+ 'subscribedCapital',
875
+ 'issuePremiums',
876
+ 'equivalenceGap',
877
+ 'revaluationGap',
878
+ 'reservations',
879
+ 'postponement',
880
+ 'resultExercice',
881
+ 'subsidies',
882
+ 'subsidiesRegulated',
883
+ 'provisions',
884
+ 'debts',
885
+ 'total4',
886
+ ],
804
887
  isTotal: true,
805
888
  },
806
889
  ];
@@ -845,4 +928,4 @@ export const balanceSheetTotalRanges = [
845
928
  lowValue: 250000,
846
929
  highValue: 10000000,
847
930
  },
848
- ] as const;
931
+ ] as const;
@@ -4,6 +4,7 @@ export enum BankCollectingState {
4
4
  INVOICED = 3,
5
5
  REFUSED_INVOICE = 4,
6
6
  UNPAID = 5,
7
+ INVOICED_WAITING_PAYMENT = 6,
7
8
  }
8
9
 
9
10
  export const BankCollectingStateList = [
@@ -37,4 +38,10 @@ export const BankCollectingStateList = [
37
38
  color: 'red lighten-2',
38
39
  textColor: 'red--text red--lighten-3',
39
40
  },
40
- ];
41
+ {
42
+ id: BankCollectingState.INVOICED_WAITING_PAYMENT,
43
+ label: 'Facturé en attente de paiement',
44
+ color: 'green darken-2',
45
+ textColor: 'red--text red--lighten-3',
46
+ },
47
+ ];
@@ -340,5 +340,11 @@ export const BrandClementine: Brand[] = [
340
340
  email: 'facturation@compta-clementine.fr',
341
341
  },
342
342
  salesContractConfig: SalesContractKlems,
343
+ caarl: {
344
+ subscriptionNumber: {
345
+ sandbox: 'S-2412-3945851',
346
+ production: 'S-2412-5088901',
347
+ },
348
+ },
343
349
  },
344
350
  ] as const;
@@ -0,0 +1,212 @@
1
+ export const ReasonNotSubscribed = [
2
+ {
3
+ id: 1,
4
+ text: 'Souhaite un cabinet comptable physique',
5
+ hidden: false,
6
+ isOver: [8, 18, 27, 28],
7
+ },
8
+ {
9
+ id: 2,
10
+ text: "Création d'entreprise sans suivi comptable",
11
+ hidden: false,
12
+ isOver: null,
13
+ },
14
+ {
15
+ id: 3,
16
+ text: 'Heure de conseil à la carte',
17
+ hidden: false,
18
+ isOver: null,
19
+ },
20
+ {
21
+ id: 4,
22
+ text: 'Prestation social pour salarié unique',
23
+ hidden: false,
24
+ isOver: null,
25
+ },
26
+ {
27
+ id: 5,
28
+ text: 'Prestation comptable exceptionnelle',
29
+ hidden: false,
30
+ isOver: null,
31
+ },
32
+ {
33
+ id: 6,
34
+ text: 'Prestation juridique exceptionnelle',
35
+ hidden: false,
36
+ isOver: null,
37
+ },
38
+ {
39
+ id: 7,
40
+ text: 'Ne veut pas annoter les opérations',
41
+ hidden: true,
42
+ isOver: null,
43
+ },
44
+ {
45
+ id: 8,
46
+ text: 'Tarifs trop élevés',
47
+ hidden: false,
48
+ isOver: null,
49
+ },
50
+ {
51
+ id: 9,
52
+ text: 'Ne répond pas',
53
+ hidden: true,
54
+ isOver: null,
55
+ },
56
+ {
57
+ id: 11,
58
+ text: 'Concurrence',
59
+ hidden: false,
60
+ isOver: [8, 18, 25, 26],
61
+ },
62
+ {
63
+ id: 12,
64
+ text: 'Ne parle pas français',
65
+ hidden: false,
66
+ isOver: null,
67
+ },
68
+ {
69
+ id: 13,
70
+ text: "N'a pas fait de demande",
71
+ hidden: false,
72
+ isOver: null,
73
+ },
74
+ {
75
+ id: 14,
76
+ text: 'Exercice à reprendre trop vieux',
77
+ hidden: false,
78
+ isOver: null,
79
+ },
80
+ {
81
+ id: 15,
82
+ text: 'Entreprise/société étrangère',
83
+ hidden: false,
84
+ isOver: null,
85
+ },
86
+ {
87
+ id: 16,
88
+ text: 'Activité non prise en charge',
89
+ hidden: false,
90
+ isOver: null,
91
+ },
92
+ {
93
+ id: 17,
94
+ text: 'AE - pas besoin de compta',
95
+ hidden: true,
96
+ isOver: null,
97
+ },
98
+ {
99
+ id: 18,
100
+ text: "Trop d'avis négatif",
101
+ hidden: false,
102
+ isOver: null,
103
+ },
104
+ {
105
+ id: 19,
106
+ text: 'Particulier',
107
+ hidden: false,
108
+ isOver: null,
109
+ },
110
+ {
111
+ id: 20,
112
+ text: 'Erreur de demande',
113
+ hidden: false,
114
+ isOver: [12, 13, 19, 31, 32, 33],
115
+ },
116
+ {
117
+ id: 21,
118
+ text: 'Pourcentage',
119
+ hidden: false,
120
+ isOver: null,
121
+ },
122
+ {
123
+ id: 22,
124
+ text: 'Prévis délais trop long',
125
+ hidden: false,
126
+ isOver: null,
127
+ },
128
+ {
129
+ id: 23,
130
+ text: 'STOP SMS',
131
+ hidden: false,
132
+ isOver: [],
133
+ },
134
+ {
135
+ id: 24,
136
+ text: 'Inscription Newsletter',
137
+ hidden: true,
138
+ isOver: null,
139
+ },
140
+ {
141
+ id: 25,
142
+ text: "N'aime pas le logiciel",
143
+ hidden: false,
144
+ isOver: null,
145
+ },
146
+ {
147
+ id: 26,
148
+ text: 'Approche commercial',
149
+ hidden: false,
150
+ isOver: null,
151
+ },
152
+ {
153
+ id: 27,
154
+ text: 'Souhaite un cabinet comptable physique',
155
+ hidden: false,
156
+ isOver: null,
157
+ },
158
+ {
159
+ id: 28,
160
+ text: 'Souhaite avoir son comptable près de chez lui',
161
+ hidden: false,
162
+ isOver: null,
163
+ },
164
+ {
165
+ id: 29,
166
+ text: 'Prestation non prise en charge',
167
+ hidden: false,
168
+ isOver: [2, 3, 4, 5, 6, 14, 15, 16, 21, 22, 30],
169
+ },
170
+ {
171
+ id: 30,
172
+ text: 'Renvoi Comptalib – souhaite uniquement un logiciel',
173
+ hidden: false,
174
+ isOver: null,
175
+ },
176
+ {
177
+ id: 31,
178
+ text: 'Faux contact',
179
+ hidden: false,
180
+ isOver: null,
181
+ },
182
+ {
183
+ id: 32,
184
+ text: 'Echec appels',
185
+ hidden: false,
186
+ isOver: null,
187
+ },
188
+ {
189
+ id: 33,
190
+ text: 'Demande pour un autre service (RH, communication, ...)',
191
+ hidden: false,
192
+ isOver: null,
193
+ },
194
+ {
195
+ id: 34,
196
+ text: 'Projet annulé/reporté',
197
+ hidden: false,
198
+ isOver: [],
199
+ },
200
+ {
201
+ id: 35,
202
+ text: 'Litige ancien EC/documents pas à jour',
203
+ hidden: false,
204
+ isOver: [],
205
+ },
206
+ {
207
+ id: 36,
208
+ text: 'Ne répond pas - échec relances',
209
+ hidden: false,
210
+ isOver: [],
211
+ },
212
+ ];
@@ -1,81 +1,88 @@
1
1
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
- import {
3
- IsDateString, IsIn, IsNumber, IsOptional, IsString,
4
- } from 'class-validator';
2
+ import { IsDateString, IsIn, IsNumber, IsOptional, IsString } from 'class-validator';
5
3
  import { Supervision } from '../../../Enum/Supervision';
6
4
 
7
-
8
5
  export class QueryBalanceSheetStatistic {
9
6
  @ApiProperty()
10
7
  @IsDateString()
11
- date: string;
8
+ date: string;
12
9
 
13
10
  @ApiPropertyOptional()
14
11
  @IsNumber()
15
12
  @IsOptional()
16
- idUser: number;
13
+ idUser: number;
17
14
  }
18
15
 
19
16
  export class QueryBalanceSheetGenerateUnpaid {
20
17
  @ApiPropertyOptional()
21
18
  @IsNumber()
22
19
  @IsOptional()
23
- idSociety: number;
20
+ idSociety: number;
24
21
  }
25
22
 
26
23
  export class QueryBalanceSheetMonthlyStatistic {
27
24
  @ApiProperty()
28
25
  @IsDateString()
29
- date: string;
26
+ date: string;
27
+ }
28
+
29
+ export class QueryBalanceSheetSupervisedStatistic {
30
+ @ApiProperty()
31
+ @IsDateString()
32
+ date: string;
33
+
34
+ @ApiProperty()
35
+ @IsDateString()
36
+ endDate: string;
30
37
  }
31
38
 
32
39
  export class QueryBalanceSheetAttestation {
33
40
  @ApiProperty()
34
41
  @IsNumber()
35
- idState: number;
42
+ idState: number;
36
43
 
37
44
  @ApiProperty()
38
45
  @IsNumber()
39
- idSociety: number;
40
-
46
+ idSociety: number;
47
+
41
48
  @ApiProperty()
42
49
  @IsNumber()
43
- idBalanceSheet: number;
44
-
50
+ idBalanceSheet: number;
51
+
45
52
  @ApiProperty()
46
53
  @IsNumber()
47
- idExercice: number;
48
-
54
+ idExercice: number;
55
+
49
56
  @ApiProperty()
50
57
  @IsNumber()
51
- idExpertAccountant: number;
58
+ idExpertAccountant: number;
52
59
  }
53
60
 
54
61
  export class CreateBalanceSheetAttestation {
55
62
  @ApiProperty()
56
63
  @IsString()
57
- attestation: string;
58
-
64
+ attestation: string;
65
+
59
66
  @ApiPropertyOptional()
60
67
  @IsString()
61
68
  @IsOptional()
62
- attestationDetail?: string;
63
-
69
+ attestationDetail?: string;
70
+
64
71
  @ApiProperty()
65
72
  @IsNumber()
66
- idSociety: number;
67
-
73
+ idSociety: number;
74
+
68
75
  @ApiPropertyOptional()
69
76
  @IsNumber()
70
77
  @IsOptional()
71
- idFile: number;
78
+ idFile: number;
72
79
 
73
80
  @ApiProperty()
74
81
  @IsNumber()
75
- idSupervision: number;
82
+ idSupervision: number;
76
83
 
77
84
  @ApiProperty()
78
85
  @IsNumber()
79
86
  @IsIn([Supervision.ATTESTED, Supervision.ATTEST_REFUSED, Supervision.ATTEST_WITH_OBSERVATIONS])
80
- state: number;
81
- }
87
+ state: number;
88
+ }