@silexpert/core 1.1.365 → 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 (72) hide show
  1. package/dist/cjs/types/Enum/BalanceSheet.d.ts +1 -1
  2. package/dist/cjs/types/Enum/BalanceSheet.js +1 -1
  3. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  4. package/dist/cjs/types/Enum/PaymentReason.d.ts +2 -1
  5. package/dist/cjs/types/Enum/PaymentReason.d.ts.map +1 -1
  6. package/dist/cjs/types/Enum/PaymentReason.js +5 -0
  7. package/dist/cjs/types/Enum/PaymentReason.js.map +1 -1
  8. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +6 -1
  9. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  10. package/dist/cjs/types/Enum/ReasonTerminationType.js +40 -0
  11. package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
  12. package/dist/cjs/types/Enum/RefundReason.d.ts +17 -3
  13. package/dist/cjs/types/Enum/RefundReason.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/RefundReason.js +17 -2
  15. package/dist/cjs/types/Enum/RefundReason.js.map +1 -1
  16. package/dist/cjs/types/Enum/TerminationList.d.ts +12 -1
  17. package/dist/cjs/types/Enum/TerminationList.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/TerminationList.js +31 -1
  19. package/dist/cjs/types/Enum/TerminationList.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +5 -2
  21. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  22. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js +26 -4
  23. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  24. package/dist/cjs/types/Interface/models/IRefund.d.ts +1 -3
  25. package/dist/cjs/types/Interface/models/IRefund.d.ts.map +1 -1
  26. package/dist/cjs/types/Interface/models/IRefund.js.map +1 -1
  27. package/dist/cjs/types/Interface/models/IRefundMotif.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/models/IRefundMotif.js.map +1 -1
  29. package/dist/cjs/types/Interface/models/ITerminationList.d.ts +3 -3
  30. package/dist/cjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/models/ITerminationList.js.map +1 -1
  32. package/dist/mjs/types/Enum/BalanceSheet.d.ts +1 -1
  33. package/dist/mjs/types/Enum/BalanceSheet.js +1 -1
  34. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  35. package/dist/mjs/types/Enum/PaymentReason.d.ts +2 -1
  36. package/dist/mjs/types/Enum/PaymentReason.d.ts.map +1 -1
  37. package/dist/mjs/types/Enum/PaymentReason.js +5 -0
  38. package/dist/mjs/types/Enum/PaymentReason.js.map +1 -1
  39. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +6 -1
  40. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  41. package/dist/mjs/types/Enum/ReasonTerminationType.js +40 -0
  42. package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
  43. package/dist/mjs/types/Enum/RefundReason.d.ts +17 -3
  44. package/dist/mjs/types/Enum/RefundReason.d.ts.map +1 -1
  45. package/dist/mjs/types/Enum/RefundReason.js +17 -2
  46. package/dist/mjs/types/Enum/RefundReason.js.map +1 -1
  47. package/dist/mjs/types/Enum/TerminationList.d.ts +12 -1
  48. package/dist/mjs/types/Enum/TerminationList.d.ts.map +1 -1
  49. package/dist/mjs/types/Enum/TerminationList.js +30 -0
  50. package/dist/mjs/types/Enum/TerminationList.js.map +1 -1
  51. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +5 -2
  52. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  53. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js +29 -4
  54. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  55. package/dist/mjs/types/Interface/models/IRefund.d.ts +1 -3
  56. package/dist/mjs/types/Interface/models/IRefund.d.ts.map +1 -1
  57. package/dist/mjs/types/Interface/models/IRefund.js.map +1 -1
  58. package/dist/mjs/types/Interface/models/IRefundMotif.d.ts.map +1 -1
  59. package/dist/mjs/types/Interface/models/IRefundMotif.js.map +1 -1
  60. package/dist/mjs/types/Interface/models/ITerminationList.d.ts +3 -3
  61. package/dist/mjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  62. package/dist/mjs/types/Interface/models/ITerminationList.js.map +1 -1
  63. package/package.json +1 -1
  64. package/ts/types/Enum/BalanceSheet.ts +1 -1
  65. package/ts/types/Enum/PaymentReason.ts +5 -0
  66. package/ts/types/Enum/ReasonTerminationType.ts +40 -0
  67. package/ts/types/Enum/RefundReason.ts +17 -2
  68. package/ts/types/Enum/TerminationList.ts +31 -0
  69. package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +23 -4
  70. package/ts/types/Interface/models/IRefund.ts +1 -3
  71. package/ts/types/Interface/models/IRefundMotif.ts +1 -0
  72. package/ts/types/Interface/models/ITerminationList.ts +3 -3
@@ -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
  ];
@@ -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;