@silexpert/core 1.1.364 → 1.1.366

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 (101) hide show
  1. package/dist/cjs/types/Enum/BalanceSheet.d.ts +8 -1
  2. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  3. package/dist/cjs/types/Enum/BalanceSheet.js +8 -0
  4. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  5. package/dist/cjs/types/Enum/JobTitle.d.ts +3 -1
  6. package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
  7. package/dist/cjs/types/Enum/JobTitle.js +16 -4
  8. package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
  9. package/dist/cjs/types/Enum/PaymentReason.d.ts +2 -1
  10. package/dist/cjs/types/Enum/PaymentReason.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/PaymentReason.js +5 -0
  12. package/dist/cjs/types/Enum/PaymentReason.js.map +1 -1
  13. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +6 -1
  14. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/ReasonTerminationType.js +40 -0
  16. package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
  17. package/dist/cjs/types/Enum/RefundReason.d.ts +17 -3
  18. package/dist/cjs/types/Enum/RefundReason.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/RefundReason.js +17 -2
  20. package/dist/cjs/types/Enum/RefundReason.js.map +1 -1
  21. package/dist/cjs/types/Enum/TerminationList.d.ts +12 -1
  22. package/dist/cjs/types/Enum/TerminationList.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/TerminationList.js +31 -1
  24. package/dist/cjs/types/Enum/TerminationList.js.map +1 -1
  25. package/dist/cjs/types/Enum/TimeSlot.d.ts +2 -1
  26. package/dist/cjs/types/Enum/TimeSlot.d.ts.map +1 -1
  27. package/dist/cjs/types/Enum/TimeSlot.js +13 -1
  28. package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +1 -0
  30. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js +4 -0
  32. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  33. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +5 -2
  34. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js +26 -4
  36. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  37. package/dist/cjs/types/Interface/models/IRefund.d.ts +1 -3
  38. package/dist/cjs/types/Interface/models/IRefund.d.ts.map +1 -1
  39. package/dist/cjs/types/Interface/models/IRefund.js.map +1 -1
  40. package/dist/cjs/types/Interface/models/IRefundMotif.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/models/IRefundMotif.js.map +1 -1
  42. package/dist/cjs/types/Interface/models/ITerminationList.d.ts +3 -3
  43. package/dist/cjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  44. package/dist/cjs/types/Interface/models/ITerminationList.js.map +1 -1
  45. package/dist/mjs/types/Enum/BalanceSheet.d.ts +8 -1
  46. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  47. package/dist/mjs/types/Enum/BalanceSheet.js +8 -0
  48. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  49. package/dist/mjs/types/Enum/JobTitle.d.ts +3 -1
  50. package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
  51. package/dist/mjs/types/Enum/JobTitle.js +16 -4
  52. package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
  53. package/dist/mjs/types/Enum/PaymentReason.d.ts +2 -1
  54. package/dist/mjs/types/Enum/PaymentReason.d.ts.map +1 -1
  55. package/dist/mjs/types/Enum/PaymentReason.js +5 -0
  56. package/dist/mjs/types/Enum/PaymentReason.js.map +1 -1
  57. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +6 -1
  58. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  59. package/dist/mjs/types/Enum/ReasonTerminationType.js +40 -0
  60. package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
  61. package/dist/mjs/types/Enum/RefundReason.d.ts +17 -3
  62. package/dist/mjs/types/Enum/RefundReason.d.ts.map +1 -1
  63. package/dist/mjs/types/Enum/RefundReason.js +17 -2
  64. package/dist/mjs/types/Enum/RefundReason.js.map +1 -1
  65. package/dist/mjs/types/Enum/TerminationList.d.ts +12 -1
  66. package/dist/mjs/types/Enum/TerminationList.d.ts.map +1 -1
  67. package/dist/mjs/types/Enum/TerminationList.js +30 -0
  68. package/dist/mjs/types/Enum/TerminationList.js.map +1 -1
  69. package/dist/mjs/types/Enum/TimeSlot.d.ts +2 -1
  70. package/dist/mjs/types/Enum/TimeSlot.d.ts.map +1 -1
  71. package/dist/mjs/types/Enum/TimeSlot.js +12 -0
  72. package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
  73. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +1 -0
  74. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
  75. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js +5 -0
  76. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  77. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +5 -2
  78. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  79. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js +29 -4
  80. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  81. package/dist/mjs/types/Interface/models/IRefund.d.ts +1 -3
  82. package/dist/mjs/types/Interface/models/IRefund.d.ts.map +1 -1
  83. package/dist/mjs/types/Interface/models/IRefund.js.map +1 -1
  84. package/dist/mjs/types/Interface/models/IRefundMotif.d.ts.map +1 -1
  85. package/dist/mjs/types/Interface/models/IRefundMotif.js.map +1 -1
  86. package/dist/mjs/types/Interface/models/ITerminationList.d.ts +3 -3
  87. package/dist/mjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  88. package/dist/mjs/types/Interface/models/ITerminationList.js.map +1 -1
  89. package/package.json +1 -1
  90. package/ts/types/Enum/BalanceSheet.ts +8 -0
  91. package/ts/types/Enum/JobTitle.ts +17 -4
  92. package/ts/types/Enum/PaymentReason.ts +5 -0
  93. package/ts/types/Enum/ReasonTerminationType.ts +40 -0
  94. package/ts/types/Enum/RefundReason.ts +17 -2
  95. package/ts/types/Enum/TerminationList.ts +31 -0
  96. package/ts/types/Enum/TimeSlot.ts +12 -1
  97. package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +3 -0
  98. package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +23 -4
  99. package/ts/types/Interface/models/IRefund.ts +1 -3
  100. package/ts/types/Interface/models/IRefundMotif.ts +1 -0
  101. package/ts/types/Interface/models/ITerminationList.ts +3 -3
@@ -1,12 +1,13 @@
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
  export interface ITerminationList {
7
7
  id?: number;
8
8
  idTerminationType?: number | null;
9
9
  idTerminationState?: number | null;
10
+ idTerminationConclusion?: ConclusionTermination | null;
10
11
  comment?: string | null;
11
12
  recalledCustomer?: Date | null;
12
13
  recalledCustomerBySupervisor?: Date | null;
@@ -17,13 +18,12 @@ export interface ITerminationList {
17
18
  monthlyPrice?: number | null;
18
19
  monthNumber?: number | null;
19
20
  monthOffer?: number | null;
20
- idReasonTermination?: number | null;
21
+ idReasonTermination?: number[] | null;
21
22
  idSociety?: number | null;
22
23
  idPrestation?: number | null;
23
24
  idCollaborateur?: number | null;
24
25
  createdAt?: Date | null;
25
26
  updatedAt?: Date | null;
26
- reasonTermination?: IReasonTermination;
27
27
  societiesTerminations?: ISociety;
28
28
  exercice?: IExercice;
29
29
  user?: IUser;
@@ -1 +1 @@
1
- {"version":3,"file":"ITerminationList.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ITerminationList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,4BAA4B,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IACvC,qBAAqB,CAAC,EAAE,QAAQ,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,UAAU,CAAC,EAAE,WAAW,CAAC;CAC1B"}
1
+ {"version":3,"file":"ITerminationList.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ITerminationList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,uBAAuB,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,4BAA4B,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,qBAAqB,CAAC,EAAE,QAAQ,CAAC;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,UAAU,CAAC,EAAE,WAAW,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"ITerminationList.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ITerminationList.ts"],"names":[],"mappings":"","sourcesContent":["import { IReasonTermination } from './IReasonTermination';\nimport { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IUser } from './IUser';\nimport { IPrestation } from './IPrestation';\n\n// terminitionsList\nexport interface ITerminationList {\n id?: number;\n idTerminationType?: number | null;\n idTerminationState?: number | null;\n comment?: string | null;\n recalledCustomer?: Date | null;\n recalledCustomerBySupervisor?: Date | null;\n effectiveDate?: Date | null;\n idExercice?: number | null;\n endContractDate?: Date | null;\n refund?: boolean;\n monthlyPrice?: number | null;\n monthNumber?: number | null;\n monthOffer?: number | null;\n idReasonTermination?: number | null;\n idSociety?: number | null;\n idPrestation?: number | null;\n idCollaborateur?: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n reasonTermination?: IReasonTermination;\n societiesTerminations?: ISociety;\n exercice?: IExercice;\n user?: IUser;\n prestation?: IPrestation;\n}\n"]}
1
+ {"version":3,"file":"ITerminationList.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ITerminationList.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\nimport { IExercice } from './IExercice';\nimport { IUser } from './IUser';\nimport { IPrestation } from './IPrestation';\nimport { ConclusionTermination } from '../../Enum/TerminationList';\n\n// terminitionsList\nexport interface ITerminationList {\n id?: number;\n idTerminationType?: number | null;\n idTerminationState?: number | null;\n idTerminationConclusion?: ConclusionTermination | null;\n comment?: string | null;\n recalledCustomer?: Date | null;\n recalledCustomerBySupervisor?: Date | null;\n effectiveDate?: Date | null;\n idExercice?: number | null;\n endContractDate?: Date | null;\n refund?: boolean;\n monthlyPrice?: number | null;\n monthNumber?: number | null;\n monthOffer?: number | null;\n idReasonTermination?: number[] | null;\n idSociety?: number | null;\n idPrestation?: number | null;\n idCollaborateur?: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n societiesTerminations?: ISociety;\n exercice?: IExercice;\n user?: IUser;\n prestation?: IPrestation;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.364",
3
+ "version": "1.1.366",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
@@ -31,6 +31,7 @@ export enum BalanceSheetState {
31
31
  COMPLETE_QUESTIONNAIRE = 26,
32
32
  PROCESSING_ITEMS_IN_PROGRESS = 27,
33
33
  ABANDONED_FORECAST = 28,
34
+ ESTABLISH_REFUSED = 29,
34
35
  }
35
36
 
36
37
  export const BalanceSheetDetails = [
@@ -207,6 +208,13 @@ export const BalanceSheetDetails = [
207
208
  colorText: 'green--text',
208
209
  forRoles: [['front_office'], ['expert']],
209
210
  },
211
+ {
212
+ text: 'Refus d\'établir',
213
+ value: BalanceSheetState.ESTABLISH_REFUSED,
214
+ color: 'orange darken-1',
215
+ colorText: 'orange--text text--darken-1',
216
+ forRoles: [['super_admin'], ['controle_interne']],
217
+ },
210
218
  ] as const;
211
219
 
212
220
  export const ForecastBalanceSheetDetails = [
@@ -35,6 +35,8 @@ export enum JobTitle {
35
35
  TECHNICAL_ADVISOR = 34,
36
36
  OPERATIONS_DIRECTOR = 35,
37
37
  PRODUCT_MANAGER = 36,
38
+ COMMUNICATION_OFFICER = 37,
39
+ RECRUITMENT_OFFICER = 38,
38
40
  }
39
41
 
40
42
  export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: string }> = [
@@ -140,8 +142,8 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: str
140
142
  },
141
143
  {
142
144
  id: JobTitle.COMMUNICATION_MANAGER,
143
- menText: 'Chargé de communication',
144
- womenText: 'Chargée de communication',
145
+ menText: 'Responsable communication',
146
+ womenText: 'Responsable communication',
145
147
  },
146
148
  {
147
149
  id: JobTitle.INTERNAL_CONTROL_REFERENT,
@@ -175,8 +177,8 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: str
175
177
  },
176
178
  {
177
179
  id: JobTitle.RECRUITMENT_MANAGER,
178
- menText: 'Chargé de recrutement',
179
- womenText: 'Chargée de recrutement',
180
+ menText: 'Responsable recrutement',
181
+ womenText: 'Responsable recrutement',
180
182
  },
181
183
  {
182
184
  id: JobTitle.WEB_EDITOR,
@@ -218,4 +220,15 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: str
218
220
  menText: 'Product manager',
219
221
  womenText: 'Product manager',
220
222
  },
223
+ {
224
+ id: JobTitle.COMMUNICATION_OFFICER,
225
+ menText: 'Chargé de communication',
226
+ womenText: 'Chargée de communication',
227
+ },
228
+ {
229
+ id: JobTitle.RECRUITMENT_OFFICER,
230
+ menText: 'Chargé de recrutement',
231
+ womenText: 'Chargée de recrutement',
232
+ },
233
+
221
234
  ];
@@ -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;
@@ -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
  ];
@@ -24,7 +24,7 @@ export enum TimeSlot {
24
24
  VAT_TERRITORIALITY = 21,
25
25
  FINANCIAL_SOURCE = 22,
26
26
  FOLDER_LIFE = 23,
27
-
27
+ CORPORATE_LAW_AND_MULTI_MODIFICATION_CONSULTANCY = 24,
28
28
  }
29
29
  export enum TimeSlotCategory {
30
30
  ACCOUNTING = 1,
@@ -293,4 +293,15 @@ export const TimeSlotDetail:TimeSlotDetailType[] = [
293
293
  forWholeService: false,
294
294
  idTimeCounterType: TimeCounterType.CALENDLY.id,
295
295
  },
296
+ {
297
+ id: TimeSlot.CORPORATE_LAW_AND_MULTI_MODIFICATION_CONSULTANCY,
298
+ name: 'Conseils en droit des sociétés et multi-modifications',
299
+ internalName: 'Rdv droit des sociétés et multi-modifications',
300
+ category: TimeSlotCategoryDetail.find(c => c.id === TimeSlotCategory.JURIDIC)?.name,
301
+ duration: 60,
302
+ idRole: [Role.JURIDIC, Role.MANAGER],
303
+ idRoleExcluded:[Role.DIRECTOR],
304
+ forWholeService: false,
305
+ idTimeCounterType: TimeCounterType.CALENDLY.id,
306
+ },
296
307
  ];
@@ -15,6 +15,9 @@ export class QueryTransaction {
15
15
  @ApiProperty()
16
16
  idAccountingJournal: number[];
17
17
 
18
+ @ApiPropertyOptional()
19
+ idTypeAccountingFile?: number[];
20
+
18
21
  @ApiPropertyOptional()
19
22
  idBankAccount?: number[];
20
23
 
@@ -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
  }
@@ -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;