@silexpert/core 1.1.365 → 1.1.367

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 (206) hide show
  1. package/dist/cjs/api/resources/Card.d.ts +8 -3
  2. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Card.js +10 -1
  4. package/dist/cjs/api/resources/Card.js.map +1 -1
  5. package/dist/cjs/types/Enum/AutomaticRegistration.d.ts +5 -0
  6. package/dist/cjs/types/Enum/AutomaticRegistration.d.ts.map +1 -0
  7. package/dist/cjs/types/Enum/AutomaticRegistration.js +9 -0
  8. package/dist/cjs/types/Enum/AutomaticRegistration.js.map +1 -0
  9. package/dist/cjs/types/Enum/BalanceSheet.d.ts +1 -1
  10. package/dist/cjs/types/Enum/BalanceSheet.js +1 -1
  11. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  12. package/dist/cjs/types/Enum/Card.d.ts +1 -1
  13. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/Card.js.map +1 -1
  15. package/dist/cjs/types/Enum/Consistency.js +2 -2
  16. package/dist/cjs/types/Enum/Consistency.js.map +1 -1
  17. package/dist/cjs/types/Enum/PaymentReason.d.ts +2 -1
  18. package/dist/cjs/types/Enum/PaymentReason.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/PaymentReason.js +5 -0
  20. package/dist/cjs/types/Enum/PaymentReason.js.map +1 -1
  21. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +6 -1
  22. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/ReasonTerminationType.js +40 -0
  24. package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
  25. package/dist/cjs/types/Enum/RefundReason.d.ts +17 -3
  26. package/dist/cjs/types/Enum/RefundReason.d.ts.map +1 -1
  27. package/dist/cjs/types/Enum/RefundReason.js +17 -2
  28. package/dist/cjs/types/Enum/RefundReason.js.map +1 -1
  29. package/dist/cjs/types/Enum/StockType.d.ts +1 -0
  30. package/dist/cjs/types/Enum/StockType.d.ts.map +1 -1
  31. package/dist/cjs/types/Enum/StockType.js +1 -0
  32. package/dist/cjs/types/Enum/StockType.js.map +1 -1
  33. package/dist/cjs/types/Enum/TerminationList.d.ts +12 -1
  34. package/dist/cjs/types/Enum/TerminationList.d.ts.map +1 -1
  35. package/dist/cjs/types/Enum/TerminationList.js +31 -1
  36. package/dist/cjs/types/Enum/TerminationList.js.map +1 -1
  37. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +2 -1
  38. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
  39. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +1 -0
  40. package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
  41. package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts +13 -0
  42. package/dist/cjs/types/Interface/api/card/ModifyPlanning.d.ts.map +1 -0
  43. package/dist/cjs/types/Interface/api/card/ModifyPlanning.js +61 -0
  44. package/dist/cjs/types/Interface/api/card/ModifyPlanning.js.map +1 -0
  45. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts +8 -3
  46. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  47. package/dist/cjs/types/Interface/api/card/QueryUserCards.js +23 -3
  48. package/dist/cjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  49. package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.d.ts +2 -1
  50. package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.d.ts.map +1 -1
  51. package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.js +8 -1
  52. package/dist/cjs/types/Interface/api/card/QueryUserCardsStats.js.map +1 -1
  53. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +2 -0
  54. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -1
  55. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +12 -0
  56. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -1
  57. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.d.ts +6 -1
  58. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.d.ts.map +1 -1
  59. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.js +23 -1
  60. package/dist/cjs/types/Interface/api/registration/DeclareRegistration.js.map +1 -1
  61. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +5 -2
  62. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  63. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js +26 -4
  64. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  65. package/dist/cjs/types/Interface/api/terminationList/DestroyTerminationList.d.ts +2 -1
  66. package/dist/cjs/types/Interface/api/terminationList/DestroyTerminationList.d.ts.map +1 -1
  67. package/dist/cjs/types/Interface/api/terminationList/DestroyTerminationList.js +8 -1
  68. package/dist/cjs/types/Interface/api/terminationList/DestroyTerminationList.js.map +1 -1
  69. package/dist/cjs/types/Interface/models/IAutomaticRegistration.d.ts +14 -0
  70. package/dist/cjs/types/Interface/models/IAutomaticRegistration.d.ts.map +1 -0
  71. package/dist/cjs/types/Interface/models/IAutomaticRegistration.js +3 -0
  72. package/dist/cjs/types/Interface/models/IAutomaticRegistration.js.map +1 -0
  73. package/dist/cjs/types/Interface/models/ICard.d.ts +4 -1
  74. package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
  75. package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
  76. package/dist/cjs/types/Interface/models/ICardHistory.d.ts +4 -1
  77. package/dist/cjs/types/Interface/models/ICardHistory.d.ts.map +1 -1
  78. package/dist/cjs/types/Interface/models/ICardHistory.js.map +1 -1
  79. package/dist/cjs/types/Interface/models/IRefund.d.ts +1 -3
  80. package/dist/cjs/types/Interface/models/IRefund.d.ts.map +1 -1
  81. package/dist/cjs/types/Interface/models/IRefund.js.map +1 -1
  82. package/dist/cjs/types/Interface/models/IRefundMotif.d.ts.map +1 -1
  83. package/dist/cjs/types/Interface/models/IRefundMotif.js.map +1 -1
  84. package/dist/cjs/types/Interface/models/ITerminationList.d.ts +3 -3
  85. package/dist/cjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  86. package/dist/cjs/types/Interface/models/ITerminationList.js.map +1 -1
  87. package/dist/cjs/types/index.d.ts +2 -0
  88. package/dist/cjs/types/index.d.ts.map +1 -1
  89. package/dist/cjs/types/index.js +2 -0
  90. package/dist/cjs/types/index.js.map +1 -1
  91. package/dist/mjs/api/resources/Card.d.ts +8 -3
  92. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  93. package/dist/mjs/api/resources/Card.js +10 -1
  94. package/dist/mjs/api/resources/Card.js.map +1 -1
  95. package/dist/mjs/types/Enum/AutomaticRegistration.d.ts +5 -0
  96. package/dist/mjs/types/Enum/AutomaticRegistration.d.ts.map +1 -0
  97. package/dist/mjs/types/Enum/AutomaticRegistration.js +6 -0
  98. package/dist/mjs/types/Enum/AutomaticRegistration.js.map +1 -0
  99. package/dist/mjs/types/Enum/BalanceSheet.d.ts +1 -1
  100. package/dist/mjs/types/Enum/BalanceSheet.js +1 -1
  101. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  102. package/dist/mjs/types/Enum/Card.d.ts +1 -1
  103. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  104. package/dist/mjs/types/Enum/Card.js.map +1 -1
  105. package/dist/mjs/types/Enum/Consistency.js +2 -2
  106. package/dist/mjs/types/Enum/Consistency.js.map +1 -1
  107. package/dist/mjs/types/Enum/PaymentReason.d.ts +2 -1
  108. package/dist/mjs/types/Enum/PaymentReason.d.ts.map +1 -1
  109. package/dist/mjs/types/Enum/PaymentReason.js +5 -0
  110. package/dist/mjs/types/Enum/PaymentReason.js.map +1 -1
  111. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +6 -1
  112. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  113. package/dist/mjs/types/Enum/ReasonTerminationType.js +40 -0
  114. package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
  115. package/dist/mjs/types/Enum/RefundReason.d.ts +17 -3
  116. package/dist/mjs/types/Enum/RefundReason.d.ts.map +1 -1
  117. package/dist/mjs/types/Enum/RefundReason.js +17 -2
  118. package/dist/mjs/types/Enum/RefundReason.js.map +1 -1
  119. package/dist/mjs/types/Enum/StockType.d.ts +1 -0
  120. package/dist/mjs/types/Enum/StockType.d.ts.map +1 -1
  121. package/dist/mjs/types/Enum/StockType.js +1 -0
  122. package/dist/mjs/types/Enum/StockType.js.map +1 -1
  123. package/dist/mjs/types/Enum/TerminationList.d.ts +12 -1
  124. package/dist/mjs/types/Enum/TerminationList.d.ts.map +1 -1
  125. package/dist/mjs/types/Enum/TerminationList.js +30 -0
  126. package/dist/mjs/types/Enum/TerminationList.js.map +1 -1
  127. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +2 -1
  128. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
  129. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +1 -0
  130. package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
  131. package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts +13 -0
  132. package/dist/mjs/types/Interface/api/card/ModifyPlanning.d.ts.map +1 -0
  133. package/dist/mjs/types/Interface/api/card/ModifyPlanning.js +64 -0
  134. package/dist/mjs/types/Interface/api/card/ModifyPlanning.js.map +1 -0
  135. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts +8 -3
  136. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  137. package/dist/mjs/types/Interface/api/card/QueryUserCards.js +25 -5
  138. package/dist/mjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  139. package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.d.ts +2 -1
  140. package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.d.ts.map +1 -1
  141. package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.js +10 -4
  142. package/dist/mjs/types/Interface/api/card/QueryUserCardsStats.js.map +1 -1
  143. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +2 -0
  144. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -1
  145. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +14 -0
  146. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -1
  147. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.d.ts +6 -1
  148. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.d.ts.map +1 -1
  149. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.js +25 -1
  150. package/dist/mjs/types/Interface/api/registration/DeclareRegistration.js.map +1 -1
  151. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +5 -2
  152. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  153. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js +29 -4
  154. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  155. package/dist/mjs/types/Interface/api/terminationList/DestroyTerminationList.d.ts +2 -1
  156. package/dist/mjs/types/Interface/api/terminationList/DestroyTerminationList.d.ts.map +1 -1
  157. package/dist/mjs/types/Interface/api/terminationList/DestroyTerminationList.js +9 -1
  158. package/dist/mjs/types/Interface/api/terminationList/DestroyTerminationList.js.map +1 -1
  159. package/dist/mjs/types/Interface/models/IAutomaticRegistration.d.ts +14 -0
  160. package/dist/mjs/types/Interface/models/IAutomaticRegistration.d.ts.map +1 -0
  161. package/dist/mjs/types/Interface/models/IAutomaticRegistration.js +2 -0
  162. package/dist/mjs/types/Interface/models/IAutomaticRegistration.js.map +1 -0
  163. package/dist/mjs/types/Interface/models/ICard.d.ts +4 -1
  164. package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
  165. package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
  166. package/dist/mjs/types/Interface/models/ICardHistory.d.ts +4 -1
  167. package/dist/mjs/types/Interface/models/ICardHistory.d.ts.map +1 -1
  168. package/dist/mjs/types/Interface/models/ICardHistory.js.map +1 -1
  169. package/dist/mjs/types/Interface/models/IRefund.d.ts +1 -3
  170. package/dist/mjs/types/Interface/models/IRefund.d.ts.map +1 -1
  171. package/dist/mjs/types/Interface/models/IRefund.js.map +1 -1
  172. package/dist/mjs/types/Interface/models/IRefundMotif.d.ts.map +1 -1
  173. package/dist/mjs/types/Interface/models/IRefundMotif.js.map +1 -1
  174. package/dist/mjs/types/Interface/models/ITerminationList.d.ts +3 -3
  175. package/dist/mjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  176. package/dist/mjs/types/Interface/models/ITerminationList.js.map +1 -1
  177. package/dist/mjs/types/index.d.ts +2 -0
  178. package/dist/mjs/types/index.d.ts.map +1 -1
  179. package/dist/mjs/types/index.js +2 -0
  180. package/dist/mjs/types/index.js.map +1 -1
  181. package/package.json +1 -1
  182. package/ts/api/resources/Card.ts +15 -4
  183. package/ts/types/Enum/AutomaticRegistration.ts +4 -0
  184. package/ts/types/Enum/BalanceSheet.ts +1 -1
  185. package/ts/types/Enum/Card.ts +1 -1
  186. package/ts/types/Enum/Consistency.ts +2 -2
  187. package/ts/types/Enum/PaymentReason.ts +5 -0
  188. package/ts/types/Enum/ReasonTerminationType.ts +40 -0
  189. package/ts/types/Enum/RefundReason.ts +17 -2
  190. package/ts/types/Enum/StockType.ts +1 -0
  191. package/ts/types/Enum/TerminationList.ts +31 -0
  192. package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +2 -1
  193. package/ts/types/Interface/api/card/ModifyPlanning.ts +38 -0
  194. package/ts/types/Interface/api/card/QueryUserCards.ts +27 -8
  195. package/ts/types/Interface/api/card/QueryUserCardsStats.ts +10 -4
  196. package/ts/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.ts +10 -0
  197. package/ts/types/Interface/api/registration/DeclareRegistration.ts +20 -2
  198. package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +23 -4
  199. package/ts/types/Interface/api/terminationList/DestroyTerminationList.ts +8 -2
  200. package/ts/types/Interface/models/IAutomaticRegistration.ts +15 -0
  201. package/ts/types/Interface/models/ICard.ts +4 -1
  202. package/ts/types/Interface/models/ICardHistory.ts +4 -1
  203. package/ts/types/Interface/models/IRefund.ts +1 -3
  204. package/ts/types/Interface/models/IRefundMotif.ts +1 -0
  205. package/ts/types/Interface/models/ITerminationList.ts +3 -3
  206. package/ts/types/index.ts +2 -0
@@ -126,7 +126,7 @@ export interface UserCardsStats {
126
126
  nbPostponed: number;
127
127
  }
128
128
 
129
- export interface UserCardsStatsGroup {
129
+ export interface CardsStatsGroup {
130
130
  idGroup: CardGroupEnum;
131
131
  totalTodo: number;
132
132
  totalDone: number;
@@ -131,7 +131,7 @@ export const ConsistencyIssues: ConsistencyIssue[] = [
131
131
  },
132
132
  {
133
133
  key: ConsistencyKey.PARTNER_CURRENT_ACCOUNT_DEBIT_BALANCE,
134
- label: 'Compte courant associé 455xxx débiteur',
134
+ label: 'Compte courant associé débiteur',
135
135
  isBlocking: false,
136
136
  settings: {
137
137
  type: ConsistencySettingType.OTHER,
@@ -259,7 +259,7 @@ export const ConsistencyIssues: ConsistencyIssue[] = [
259
259
  },
260
260
  {
261
261
  key: ConsistencyKey.AMOUNT_OVER_1000_EUROS_IN_ACCOUNT_6XXX_NOT_REVIEWED,
262
- label: 'Montant de plus de 1000€ non révisé dans le compte 6xx',
262
+ label: 'Montant de plus de 1000€ non révisé',
263
263
  isBlocking: true,
264
264
  settings: {
265
265
  type: ConsistencySettingType.OTHER,
@@ -9,6 +9,7 @@ export enum PaymentReason {
9
9
  ADDITIONAL_PRESTA = 8,
10
10
  ATTESTATIONS = 9,
11
11
  UNPAID = 10,
12
+ TERMINATION = 11,
12
13
  }
13
14
 
14
15
  export const PaymentReasonList: Array<{ value: PaymentReason; text: string }> = [
@@ -52,4 +53,8 @@ export const PaymentReasonList: Array<{ value: PaymentReason; text: string }> =
52
53
  value: PaymentReason.UNPAID,
53
54
  text: 'Impayé',
54
55
  },
56
+ {
57
+ value: PaymentReason.TERMINATION,
58
+ text: 'Résiliation',
59
+ },
55
60
  ];
@@ -15,71 +15,111 @@ export enum ReasonTerminationType {
15
15
  DISCONTINUED = 14,
16
16
  UPDATE = 15,
17
17
  ACTIVITY_CESSATION = 16,
18
+ INADEQUATE_FUNCTIONING = 17,
19
+ BRAND_CHANGE = 18,
20
+ SERVICE_DELAYS = 19,
21
+ LACK_OF_ADVICE = 20,
18
22
  }
19
23
 
20
24
  export const ReasonTerminationTypeDetail = [
21
25
  {
22
26
  id: ReasonTerminationType.LIQUIDATION,
23
27
  label: 'Liquidation',
28
+ active: false,
24
29
  },
25
30
  {
26
31
  id: ReasonTerminationType.PRICE,
27
32
  label: 'Prix',
33
+ active: true,
28
34
  },
29
35
  {
30
36
  id: ReasonTerminationType.CHANGE_EC_ONLINE,
31
37
  label: 'Changement EC en ligne',
38
+ active: false,
32
39
  },
33
40
  {
34
41
  id: ReasonTerminationType.CHANGE_EC_CLASSIC,
35
42
  label: 'Changement EC classique',
43
+ active: false,
36
44
  },
37
45
  {
38
46
  id: ReasonTerminationType.RETIREMENT,
39
47
  label: 'Retraite',
48
+ active: false,
40
49
  },
41
50
  {
42
51
  id: ReasonTerminationType.SELL,
43
52
  label: 'Vente',
53
+ active: false,
44
54
  },
45
55
  {
46
56
  id: ReasonTerminationType.CONFLICT,
47
57
  label: 'Conflit',
58
+ active: false,
48
59
  },
49
60
  {
50
61
  id: ReasonTerminationType.UNPAYED,
51
62
  label: 'Impayé',
63
+ active: true,
52
64
  },
53
65
  {
54
66
  id: ReasonTerminationType.SOFTWARE,
55
67
  label: 'Logiciel',
68
+ active: true,
56
69
  },
57
70
  {
58
71
  id: ReasonTerminationType.RESIGNATION_FROM_THE_MISSION,
59
72
  label: 'Démission de la mission',
73
+ active: true,
60
74
  },
61
75
  {
62
76
  id: ReasonTerminationType.MAIL_LRAR,
63
77
  label: 'Mail/LRAR',
78
+ active: false,
64
79
  },
65
80
  {
66
81
  id: ReasonTerminationType.NON_COMPLIANT,
67
82
  label: 'Non conforme',
83
+ active: false,
68
84
  },
69
85
  {
70
86
  id: ReasonTerminationType.NO_RESPONSE,
71
87
  label: 'Pas de réponse au premier entretien',
88
+ active: false,
72
89
  },
73
90
  {
74
91
  id: ReasonTerminationType.DISCONTINUED,
75
92
  label: 'Abandon de constitution',
93
+ active: true,
76
94
  },
77
95
  {
78
96
  id: ReasonTerminationType.UPDATE,
79
97
  label: 'Mise à jour du clémentinier',
98
+ active: false,
80
99
  },
81
100
  {
82
101
  id: ReasonTerminationType.ACTIVITY_CESSATION,
83
102
  label: 'Cessation d\'activité',
103
+ active: true,
104
+ },
105
+ {
106
+ id:ReasonTerminationType.INADEQUATE_FUNCTIONING,
107
+ label: 'Fonctionnement non adapté',
108
+ active: true,
109
+ },
110
+ {
111
+ id:ReasonTerminationType.BRAND_CHANGE,
112
+ label: 'Changement de marque (Clementine, Pourcentage, Comptalib)',
113
+ active: true,
114
+ },
115
+ {
116
+ id:ReasonTerminationType.SERVICE_DELAYS,
117
+ label: 'Retards prestations',
118
+ active: true,
119
+ },
120
+ {
121
+ id:ReasonTerminationType.LACK_OF_ADVICE,
122
+ label: 'Manque de conseil',
123
+ active: true,
84
124
  },
85
125
  ];
@@ -8,43 +8,58 @@ export enum RefundReason {
8
8
  TERMINATION = 7,
9
9
  DEBIT_UNJUSTIFIED = 8,
10
10
  LAB_REFUSED = 9,
11
+ CANCELLATION_PERIOD = 10,
11
12
  }
12
13
 
13
14
  export const RefundReasonList = [
14
15
  {
15
16
  id: RefundReason.OVERCHARGED,
16
- label: 'Trop prélevé',
17
+ label: 'Trop perçu',
18
+ active: true,
17
19
  },
18
20
  {
19
21
  id: RefundReason.SATISFIED_REFUNDED,
20
22
  label: 'Satisfait / Remboursé',
23
+ active: true,
21
24
  },
22
25
  {
23
26
  id: RefundReason.EC_NOT_REGISTERED,
24
27
  label: 'Ancien EC non-réglé',
28
+ active: false,
25
29
  },
26
30
  {
27
31
  id: RefundReason.DEBIT_AFTER_TERMINATION,
28
32
  label: 'Prélevement après résiliation',
33
+ active: false,
29
34
  },
30
35
  {
31
36
  id: RefundReason.CONFLICT,
32
- label: 'Conflits',
37
+ label: 'Litiges',
38
+ active: true,
33
39
  },
34
40
  {
35
41
  id: RefundReason.OTHER,
36
42
  label: 'Autres',
43
+ active: true,
37
44
  },
38
45
  {
39
46
  id: RefundReason.TERMINATION,
40
47
  label: 'Résiliation',
48
+ active: false,
41
49
  },
42
50
  {
43
51
  id: RefundReason.DEBIT_UNJUSTIFIED,
44
52
  label: 'Prélèvement non justifié',
53
+ active: false,
45
54
  },
46
55
  {
47
56
  id: RefundReason.LAB_REFUSED,
48
57
  label: 'Lab refusée',
58
+ active: true,
59
+ },
60
+ {
61
+ id: RefundReason.CANCELLATION_PERIOD,
62
+ label: 'Délai de rétractation',
63
+ active: true,
49
64
  },
50
65
  ] as const;
@@ -88,4 +88,5 @@ export const StockMapping = {
88
88
  STOCK_PRODUITS_SERVICE_EN_COURS: 'semiFinishedServices',
89
89
  STOCK_PRESTATION_SERVICE_EN_COURS: 'servicesInProgress',
90
90
  STOCK_PRODUITS_FINI: 'finishedProducts',
91
+ STOCK_REAL_ESTATE: 'realEstate',
91
92
  };
@@ -1,6 +1,8 @@
1
1
  export enum TerminationListType {
2
2
  REGULAR = 1,
3
3
  OUT_OF_TIME = 2,
4
+ RETRACTION = 3,
5
+ SATISFIED_REFUNDED = 4,
4
6
  }
5
7
 
6
8
  export const TerminationListTypeDetail = [
@@ -12,6 +14,14 @@ export const TerminationListTypeDetail = [
12
14
  id: TerminationListType.OUT_OF_TIME,
13
15
  label: 'Hors délai',
14
16
  },
17
+ {
18
+ id: TerminationListType.RETRACTION,
19
+ label: 'Rétractation',
20
+ },
21
+ {
22
+ id: TerminationListType.SATISFIED_REFUNDED,
23
+ label: 'Satisfait / Remboursé',
24
+ },
15
25
  ];
16
26
 
17
27
  export enum TerminationListState {
@@ -33,4 +43,25 @@ export const TerminationListStateDetail = [
33
43
  id: TerminationListState.REFUSED,
34
44
  label: 'Refusée',
35
45
  },
46
+ ];
47
+
48
+ export enum ConclusionTermination {
49
+ CHANGE_EC_ONLINE = 1,
50
+ CHANGE_EC_CLASSIC = 2,
51
+ PERSONAL_MANAGEMENT = 3,
52
+ }
53
+
54
+ export const ConclusionTerminationDetail = [
55
+ {
56
+ id: ConclusionTermination.CHANGE_EC_ONLINE,
57
+ label: 'Changement EC en ligne',
58
+ },
59
+ {
60
+ id: ConclusionTermination.CHANGE_EC_CLASSIC,
61
+ label: 'Changement EC classique',
62
+ },
63
+ {
64
+ id: ConclusionTermination.PERSONAL_MANAGEMENT,
65
+ label: 'Gestion personnelle',
66
+ },
36
67
  ];
@@ -2,6 +2,7 @@ import {
2
2
  IsDate, IsNumber, IsOptional, IsString,
3
3
  } from 'class-validator';
4
4
  import { ApiPropertyOptional } from '../../../../utils/decorators';
5
+ import { BalanceSheetState } from '../../../Enum/BalanceSheet';
5
6
 
6
7
  export class UpdateBalanceSheet {
7
8
  @ApiPropertyOptional()
@@ -42,7 +43,7 @@ export class UpdateBalanceSheet {
42
43
  @ApiPropertyOptional()
43
44
  @IsNumber()
44
45
  @IsOptional()
45
- state?: number;
46
+ state?: BalanceSheetState;
46
47
 
47
48
  @ApiPropertyOptional()
48
49
  @IsNumber()
@@ -0,0 +1,38 @@
1
+ import { IsDate, IsInt } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class ModifyTeamPlanning {
5
+ @ApiProperty()
6
+ @IsInt()
7
+ idUserMissing: number;
8
+
9
+ @ApiProperty()
10
+ @IsInt({ each: true })
11
+ idUsers: number[];
12
+
13
+ @ApiProperty()
14
+ @IsDate()
15
+ startDate: Date;
16
+
17
+ @ApiProperty()
18
+ @IsDate()
19
+ endDate: Date;
20
+ }
21
+
22
+ export class ModifyExercisePlanning {
23
+ @ApiProperty()
24
+ @IsDate()
25
+ exerciseClosingDate: Date;
26
+
27
+ @ApiProperty()
28
+ @IsDate()
29
+ startDate: Date;
30
+
31
+ @ApiProperty()
32
+ @IsDate()
33
+ endDate: Date;
34
+
35
+ @ApiProperty()
36
+ @IsInt({ each: true })
37
+ idUsers: number[];
38
+ }
@@ -1,19 +1,28 @@
1
- import { IsArray, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
2
- import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
1
+ import { IsArray, IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
3
  import { CardType, CardState } from '../../../Enum/Card';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
5
 
5
6
  export class QueryUserCards {
6
- @ApiProperty()
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
7
9
  @IsInt()
8
- declare idUser: number;
10
+ declare idUser?: number;
9
11
 
10
- @ApiProperty()
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsInt()
15
+ declare idTeam?: number;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
11
19
  @IsDate()
12
- declare startDate: Date;
20
+ declare startDate?: Date;
13
21
 
14
- @ApiProperty()
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
15
24
  @IsDate()
16
- declare endDate: Date;
25
+ declare endDate?: Date;
17
26
 
18
27
  @ApiPropertyOptional()
19
28
  @IsOptional()
@@ -29,7 +38,17 @@ export class QueryUserCards {
29
38
  @IsOptional()
30
39
  @IsEnum(CardState)
31
40
  declare state?: CardState;
41
+
42
+ @ApiPropertyOptional()
43
+ @IsOptional()
44
+ @IsBoolean()
45
+ @ToBoolean()
46
+ declare includePostponed?: boolean;
32
47
  }
48
+
49
+ /**
50
+ * @deprecated Use QueryUserCards instead
51
+ */
33
52
  export class QueryUserCardsAdmin {
34
53
  @ApiPropertyOptional()
35
54
  @IsOptional()
@@ -1,10 +1,16 @@
1
- import { IsDate, IsInt } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils';
1
+ import { IsDate, IsInt, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
 
4
4
  export class QueryUserCardsStats {
5
- @ApiProperty()
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ @IsInt()
8
+ declare idUser?: number;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsOptional()
6
12
  @IsInt()
7
- idUser: number;
13
+ declare idTeam?: number;
8
14
 
9
15
  @ApiProperty()
10
16
  @IsDate()
@@ -33,6 +33,16 @@ export class CreateBusinessPartnersSociety {
33
33
  @IsString()
34
34
  additionalAddress?: string;
35
35
 
36
+ @ApiProperty()
37
+ @IsBoolean()
38
+ @ToBoolean()
39
+ isOwner: boolean;
40
+
41
+ @ApiPropertyOptional()
42
+ @IsOptional()
43
+ @IsEnum(Quality)
44
+ idQuality?: Quality;
45
+
36
46
  @ApiProperty()
37
47
  @IsString()
38
48
  zipCode: string;
@@ -1,4 +1,4 @@
1
- import { IsOptional, IsBoolean, IsNumber, IsArray, IsInt } from 'class-validator';
1
+ import { IsOptional, IsBoolean, IsNumber, IsArray, IsInt, IsDateString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
  import { CustomerVatState } from '../../../Enum/CustomerVat';
@@ -35,13 +35,31 @@ export class ProcessVatRegistration {
35
35
  @IsOptional()
36
36
  @IsBoolean()
37
37
  @ToBoolean()
38
- isTestMode: boolean;
38
+ isTestMode?: boolean;
39
39
 
40
40
  @ApiProperty()
41
41
  @IsNumber()
42
42
  state: CustomerVatState;
43
43
  }
44
44
 
45
+ export class GenerateVatRegistrationPayload {
46
+ @ApiPropertyOptional()
47
+ @IsDateString()
48
+ @IsOptional()
49
+ startDate?: string;
50
+
51
+ @ApiPropertyOptional()
52
+ @IsBoolean()
53
+ @ToBoolean()
54
+ @IsOptional()
55
+ disableGeneration?: boolean;
56
+
57
+ @ApiPropertyOptional()
58
+ @IsInt()
59
+ @IsOptional()
60
+ idSociety?: number;
61
+ }
62
+
45
63
  export class GenerateVatAutomaticallyPayload {
46
64
  @ApiProperty()
47
65
  @IsArray()
@@ -4,6 +4,7 @@ import {
4
4
  IsInt, IsOptional, IsString, IsNumber,
5
5
  } from 'class-validator';
6
6
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
7
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
8
 
8
9
  export class CreateTerminationList {
9
10
  @ApiPropertyOptional()
@@ -35,9 +36,10 @@ export class CreateTerminationList {
35
36
  @IsDate()
36
37
  effectiveDate: Date;
37
38
 
38
- @ApiProperty()
39
+ @ApiPropertyOptional()
40
+ @IsOptional()
39
41
  @IsInt()
40
- idExercice: number;
42
+ idExercice: number | null;
41
43
 
42
44
  @ApiPropertyOptional()
43
45
  @IsOptional()
@@ -47,8 +49,14 @@ export class CreateTerminationList {
47
49
  @ApiPropertyOptional()
48
50
  @IsOptional()
49
51
  @IsBoolean()
52
+ @ToBoolean()
50
53
  refund?: boolean;
51
54
 
55
+ @ApiPropertyOptional()
56
+ @IsOptional()
57
+ @IsInt()
58
+ refundAmount?: number;
59
+
52
60
  @ApiPropertyOptional()
53
61
  @IsOptional()
54
62
  @IsNumber()
@@ -66,8 +74,8 @@ export class CreateTerminationList {
66
74
 
67
75
  @ApiPropertyOptional()
68
76
  @IsOptional()
69
- @IsInt()
70
- idReasonTermination?: number;
77
+ @IsInt({ each: true })
78
+ idReasonTermination?: number[];
71
79
 
72
80
  @ApiProperty()
73
81
  @IsInt()
@@ -81,4 +89,15 @@ export class CreateTerminationList {
81
89
  @IsOptional()
82
90
  @IsInt()
83
91
  idCollaborateur?: number;
92
+
93
+ @ApiPropertyOptional()
94
+ @IsOptional()
95
+ @IsBoolean()
96
+ @ToBoolean()
97
+ needPaymentLink?: boolean;
98
+
99
+ @ApiPropertyOptional()
100
+ @IsOptional()
101
+ @IsNumber()
102
+ totalAmount?: number;
84
103
  }
@@ -4,9 +4,10 @@ import {
4
4
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
5
 
6
6
  export class DestroyTerminationList {
7
- @ApiProperty()
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
8
9
  @IsInt()
9
- id: number;
10
+ id?: number;
10
11
 
11
12
  @ApiPropertyOptional()
12
13
  @IsOptional()
@@ -67,6 +68,11 @@ export class DestroyTerminationList {
67
68
  @IsDateString()
68
69
  createdAt?: string;
69
70
 
71
+ @ApiPropertyOptional()
72
+ @IsOptional()
73
+ @IsDateString()
74
+ createdAtLike?: string;
75
+
70
76
  @ApiPropertyOptional()
71
77
  @IsOptional()
72
78
  @IsDateString()
@@ -0,0 +1,15 @@
1
+ import { AutomaticRegistrationType } from '../../Enum/AutomaticRegistration';
2
+ import { IRegistration } from './IRegistration';
3
+ import { ISociety } from './ISociety';
4
+
5
+ export interface IAutomaticRegistration {
6
+ id?: number;
7
+ date: Date;
8
+ state: AutomaticRegistrationType;
9
+ details: any;
10
+ idSociety: number;
11
+ idRegistration: number;
12
+
13
+ registrations?: IRegistration | null;
14
+ society?: ISociety | null;
15
+ }
@@ -6,6 +6,7 @@ import { ICalendarEvent } from './ICalendarEvent';
6
6
  import { ICustomerVat } from './ICustomerVat';
7
7
  import { ICardHistory } from './ICardHistory';
8
8
  import { IComment } from './IComment';
9
+ import { ITeam } from './ITeam';
9
10
 
10
11
  export interface ICard {
11
12
  id?: number;
@@ -14,7 +15,8 @@ export interface ICard {
14
15
  isManual: boolean;
15
16
  isBlocked: boolean;
16
17
  plannedAt?: Date | null;
17
- idUser: number;
18
+ idUser?: number | null;
19
+ idTeam?: number | null;
18
20
  idSociety: number;
19
21
  createdAt?: Date;
20
22
  updatedAt?: Date;
@@ -22,6 +24,7 @@ export interface ICard {
22
24
 
23
25
  // Associations
24
26
  user?: IUser;
27
+ team?: ITeam;
25
28
  society?: ISociety;
26
29
  balanceSheet?: IBalanceSheet;
27
30
  customerVat?: ICustomerVat;
@@ -1,13 +1,15 @@
1
1
  import { CardState } from '../../Enum/Card';
2
2
  import { IUser } from './IUser';
3
3
  import { ICard } from './ICard';
4
+ import { ITeam } from './ITeam';
4
5
 
5
6
  export interface ICardHistory {
6
7
  id?: number;
7
8
  state: CardState;
8
9
  plannedAt: Date;
9
10
  idUserWhoChanged: number;
10
- idUserOrigin: number;
11
+ idUserOrigin?: number;
12
+ idTeamOrigin?: number;
11
13
  idCard: number;
12
14
  createdAt?: Date;
13
15
  updatedAt?: Date;
@@ -15,5 +17,6 @@ export interface ICardHistory {
15
17
  // Associations
16
18
  userWhoChanged?: Partial<IUser>;
17
19
  userOrigin?: Partial<IUser>;
20
+ teamOrigin?: Partial<ITeam>;
18
21
  card?: ICard
19
22
  }
@@ -1,4 +1,3 @@
1
- import { IRefundMotif } from './IRefundMotif';
2
1
  import { ISociety } from './ISociety';
3
2
  import { IFile } from './IFile';
4
3
  import { IUser } from './IUser';
@@ -13,12 +12,11 @@ export interface IRefund {
13
12
  idRefundMotif: number;
14
13
  idSociety: number;
15
14
  idUserDemand: number;
16
- idFile: number | null;
15
+ idFile?: number | null; //non obligatoire désormais, utilisé avant pour rattacher le RIB
17
16
  createdAt?: Date | null;
18
17
  updatedAt?: Date | null;
19
18
 
20
19
  // Associations
21
- refundsMotif?: IRefundMotif;
22
20
  society?: ISociety;
23
21
  file?: IFile;
24
22
  userDemand?: IUser;
@@ -1,4 +1,5 @@
1
1
  // refundsMotif
2
+ // @deprecated
2
3
  export interface IRefundMotif {
3
4
  id?: number;
4
5
  name: string;
@@ -1,14 +1,15 @@
1
- import { IReasonTermination } from './IReasonTermination';
2
1
  import { ISociety } from './ISociety';
3
2
  import { IExercice } from './IExercice';
4
3
  import { IUser } from './IUser';
5
4
  import { IPrestation } from './IPrestation';
5
+ import { ConclusionTermination } from '../../Enum/TerminationList';
6
6
 
7
7
  // terminitionsList
8
8
  export interface ITerminationList {
9
9
  id?: number;
10
10
  idTerminationType?: number | null;
11
11
  idTerminationState?: number | null;
12
+ idTerminationConclusion?: ConclusionTermination | null;
12
13
  comment?: string | null;
13
14
  recalledCustomer?: Date | null;
14
15
  recalledCustomerBySupervisor?: Date | null;
@@ -19,7 +20,7 @@ export interface ITerminationList {
19
20
  monthlyPrice?: number | null;
20
21
  monthNumber?: number | null;
21
22
  monthOffer?: number | null;
22
- idReasonTermination?: number | null;
23
+ idReasonTermination?: number[] | null;
23
24
  idSociety?: number | null;
24
25
  idPrestation?: number | null;
25
26
  idCollaborateur?: number | null;
@@ -27,7 +28,6 @@ export interface ITerminationList {
27
28
  updatedAt?: Date | null;
28
29
 
29
30
  // Associations
30
- reasonTermination?: IReasonTermination;
31
31
  societiesTerminations?: ISociety;
32
32
  exercice?: IExercice;
33
33
  user?: IUser;