@silexpert/core 1.1.259 → 1.1.260

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 (92) hide show
  1. package/dist/cjs/api/resources/TerminationList.d.ts +5 -3
  2. package/dist/cjs/api/resources/TerminationList.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/TerminationList.js +6 -0
  4. package/dist/cjs/api/resources/TerminationList.js.map +1 -1
  5. package/dist/cjs/types/Enum/FollowList.d.ts +14 -4
  6. package/dist/cjs/types/Enum/FollowList.d.ts.map +1 -1
  7. package/dist/cjs/types/Enum/FollowList.js +32 -12
  8. package/dist/cjs/types/Enum/FollowList.js.map +1 -1
  9. package/dist/cjs/types/Enum/RefundReason.d.ts +40 -0
  10. package/dist/cjs/types/Enum/RefundReason.d.ts.map +1 -0
  11. package/dist/cjs/types/Enum/RefundReason.js +54 -0
  12. package/dist/cjs/types/Enum/RefundReason.js.map +1 -0
  13. package/dist/cjs/types/Enum/TerminationList.d.ts +18 -0
  14. package/dist/cjs/types/Enum/TerminationList.d.ts.map +1 -0
  15. package/dist/cjs/types/Enum/TerminationList.js +39 -0
  16. package/dist/cjs/types/Enum/TerminationList.js.map +1 -0
  17. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +9 -4
  18. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js +33 -7
  20. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  21. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts +17 -0
  22. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts.map +1 -0
  23. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js +106 -0
  24. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js.map +1 -0
  25. package/dist/cjs/types/Interface/models/IRefund.d.ts +4 -4
  26. package/dist/cjs/types/Interface/models/IRefund.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/models/IRefund.js.map +1 -1
  28. package/dist/cjs/types/Interface/models/ISms.d.ts +1 -1
  29. package/dist/cjs/types/Interface/models/ISms.d.ts.map +1 -1
  30. package/dist/cjs/types/Interface/models/ISms.js.map +1 -1
  31. package/dist/cjs/types/Interface/models/ITerminationList.d.ts +5 -0
  32. package/dist/cjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  33. package/dist/cjs/types/Interface/models/ITerminationList.js.map +1 -1
  34. package/dist/cjs/types/Interface/models/IUserBrand.d.ts +2 -0
  35. package/dist/cjs/types/Interface/models/IUserBrand.d.ts.map +1 -1
  36. package/dist/cjs/types/Interface/models/IUserBrand.js.map +1 -1
  37. package/dist/cjs/types/index.d.ts +3 -0
  38. package/dist/cjs/types/index.d.ts.map +1 -1
  39. package/dist/cjs/types/index.js +3 -0
  40. package/dist/cjs/types/index.js.map +1 -1
  41. package/dist/mjs/api/resources/TerminationList.d.ts +5 -3
  42. package/dist/mjs/api/resources/TerminationList.d.ts.map +1 -1
  43. package/dist/mjs/api/resources/TerminationList.js +6 -0
  44. package/dist/mjs/api/resources/TerminationList.js.map +1 -1
  45. package/dist/mjs/types/Enum/FollowList.d.ts +14 -4
  46. package/dist/mjs/types/Enum/FollowList.d.ts.map +1 -1
  47. package/dist/mjs/types/Enum/FollowList.js +32 -12
  48. package/dist/mjs/types/Enum/FollowList.js.map +1 -1
  49. package/dist/mjs/types/Enum/RefundReason.d.ts +40 -0
  50. package/dist/mjs/types/Enum/RefundReason.d.ts.map +1 -0
  51. package/dist/mjs/types/Enum/RefundReason.js +51 -0
  52. package/dist/mjs/types/Enum/RefundReason.js.map +1 -0
  53. package/dist/mjs/types/Enum/TerminationList.d.ts +18 -0
  54. package/dist/mjs/types/Enum/TerminationList.d.ts.map +1 -0
  55. package/dist/mjs/types/Enum/TerminationList.js +36 -0
  56. package/dist/mjs/types/Enum/TerminationList.js.map +1 -0
  57. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +9 -4
  58. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  59. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js +39 -8
  60. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  61. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts +17 -0
  62. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.d.ts.map +1 -0
  63. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js +116 -0
  64. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js.map +1 -0
  65. package/dist/mjs/types/Interface/models/IRefund.d.ts +4 -4
  66. package/dist/mjs/types/Interface/models/IRefund.d.ts.map +1 -1
  67. package/dist/mjs/types/Interface/models/IRefund.js.map +1 -1
  68. package/dist/mjs/types/Interface/models/ISms.d.ts +1 -1
  69. package/dist/mjs/types/Interface/models/ISms.d.ts.map +1 -1
  70. package/dist/mjs/types/Interface/models/ISms.js.map +1 -1
  71. package/dist/mjs/types/Interface/models/ITerminationList.d.ts +5 -0
  72. package/dist/mjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  73. package/dist/mjs/types/Interface/models/ITerminationList.js.map +1 -1
  74. package/dist/mjs/types/Interface/models/IUserBrand.d.ts +2 -0
  75. package/dist/mjs/types/Interface/models/IUserBrand.d.ts.map +1 -1
  76. package/dist/mjs/types/Interface/models/IUserBrand.js.map +1 -1
  77. package/dist/mjs/types/index.d.ts +3 -0
  78. package/dist/mjs/types/index.d.ts.map +1 -1
  79. package/dist/mjs/types/index.js +3 -0
  80. package/dist/mjs/types/index.js.map +1 -1
  81. package/package.json +1 -1
  82. package/ts/api/resources/TerminationList.ts +11 -3
  83. package/ts/types/Enum/FollowList.ts +32 -12
  84. package/ts/types/Enum/RefundReason.ts +50 -0
  85. package/ts/types/Enum/TerminationList.ts +36 -0
  86. package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +32 -11
  87. package/ts/types/Interface/api/terminationList/QueryPaginateTerminationList.ts +78 -0
  88. package/ts/types/Interface/models/IRefund.ts +4 -4
  89. package/ts/types/Interface/models/ISms.ts +1 -1
  90. package/ts/types/Interface/models/ITerminationList.ts +5 -0
  91. package/ts/types/Interface/models/IUserBrand.ts +4 -3
  92. package/ts/types/index.ts +3 -1
@@ -79,16 +79,16 @@ export const FollowList = {
79
79
  name: 'Relance 5',
80
80
  color: 'pink lighten-4',
81
81
  },
82
- NRP: {
83
- id: 17,
84
- name: 'NRP Constitution',
85
- color: 'purple lighten-3',
86
- },
87
- CONSTITUTION_ANSWER: {
88
- id: 18,
89
- name: 'Répondu Constitution',
90
- color: 'green lighten-3',
91
- },
82
+ // NRP: {
83
+ // id: 17,
84
+ // name: 'NRP Constitution',
85
+ // color: 'purple lighten-3',
86
+ // },
87
+ // CONSTITUTION_ANSWER: {
88
+ // id: 18,
89
+ // name: 'Répondu Constitution',
90
+ // color: 'green lighten-3',
91
+ // },
92
92
  RDV_PROGRAM: {
93
93
  id: 19,
94
94
  name: 'RDV programmé',
@@ -96,7 +96,27 @@ export const FollowList = {
96
96
  },
97
97
  ESTIMATE_RELANCE: {
98
98
  id: 20,
99
- name: 'Relance Devis',
100
- color: 'blue darken-3',
99
+ name: 'Relance Devis 1',
100
+ color: 'purple lighten-1',
101
+ },
102
+ ESTIMATE_RELANCE_2: {
103
+ id: 21,
104
+ name: 'Relance Devis 2',
105
+ color: 'purple lighten-2',
106
+ },
107
+ ESTIMATE_RELANCE_3: {
108
+ id: 22,
109
+ name: 'Relance Devis 3',
110
+ color: 'purple lighten-3',
111
+ },
112
+ ESTIMATE_RELANCE_4: {
113
+ id: 23,
114
+ name: 'Relance Devis 4',
115
+ color: 'purple lighten-4',
116
+ },
117
+ ESTIMATE_RELANCE_5: {
118
+ id: 24,
119
+ name: 'Relance Devis 5',
120
+ color: 'purple lighten-5',
101
121
  },
102
122
  };
@@ -0,0 +1,50 @@
1
+ export enum RefundReason {
2
+ OVERCHARGED = 1,
3
+ SATISFIED_REFUNDED = 2,
4
+ EC_NOT_REGISTERED = 3,
5
+ DEBIT_AFTER_TERMINATION = 4,
6
+ CONFLICT = 5,
7
+ OTHER = 6,
8
+ TERMINATION = 7,
9
+ DEBIT_UNJUSTIFIED = 8,
10
+ LAB_REFUSED = 9,
11
+ }
12
+
13
+ export const RefundReasonList = [
14
+ {
15
+ id: RefundReason.OVERCHARGED,
16
+ label: 'Trop prélevé',
17
+ },
18
+ {
19
+ id: RefundReason.SATISFIED_REFUNDED,
20
+ label: 'Satisfait / Remboursé',
21
+ },
22
+ {
23
+ id: RefundReason.EC_NOT_REGISTERED,
24
+ label: 'Ancien EC non-réglé',
25
+ },
26
+ {
27
+ id: RefundReason.DEBIT_AFTER_TERMINATION,
28
+ label: 'Prélevement après résiliation',
29
+ },
30
+ {
31
+ id: RefundReason.CONFLICT,
32
+ label: 'Conflits',
33
+ },
34
+ {
35
+ id: RefundReason.OTHER,
36
+ label: 'Autres',
37
+ },
38
+ {
39
+ id: RefundReason.TERMINATION,
40
+ label: 'Résiliation',
41
+ },
42
+ {
43
+ id: RefundReason.DEBIT_UNJUSTIFIED,
44
+ label: 'Prélèvement non justifié',
45
+ },
46
+ {
47
+ id: RefundReason.LAB_REFUSED,
48
+ label: 'Lab refusée',
49
+ },
50
+ ] as const;
@@ -0,0 +1,36 @@
1
+ export enum TerminationListType {
2
+ REGULAR = 1,
3
+ OUT_OF_TIME = 2,
4
+ }
5
+
6
+ export const TerminationListTypeDetail = [
7
+ {
8
+ id: TerminationListType.REGULAR,
9
+ label: 'Régulière',
10
+ },
11
+ {
12
+ id: TerminationListType.OUT_OF_TIME,
13
+ label: 'Hors délai',
14
+ },
15
+ ];
16
+
17
+ export enum TerminationListState {
18
+ IN_PROGRESS = 1,
19
+ ACCEPTED = 2,
20
+ REFUSED = 3,
21
+ }
22
+
23
+ export const TerminationListStateDetail = [
24
+ {
25
+ id: TerminationListState.IN_PROGRESS,
26
+ label: 'En cours d\'instruction',
27
+ },
28
+ {
29
+ id: TerminationListState.ACCEPTED,
30
+ label: 'Acceptée',
31
+ },
32
+ {
33
+ id: TerminationListState.REFUSED,
34
+ label: 'Refusée',
35
+ },
36
+ ];
@@ -1,11 +1,21 @@
1
1
  import {
2
2
  IsBoolean,
3
3
  IsDate,
4
- IsInt, IsOptional, IsString,
4
+ IsInt, IsOptional, IsString, IsNumber,
5
5
  } from 'class-validator';
6
6
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
7
7
 
8
8
  export class CreateTerminationList {
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsInt()
12
+ idTerminationType?: number;
13
+
14
+ @ApiPropertyOptional()
15
+ @IsOptional()
16
+ @IsInt()
17
+ idTerminationState?: number;
18
+
9
19
  @ApiPropertyOptional()
10
20
  @IsOptional()
11
21
  @IsString()
@@ -21,15 +31,13 @@ export class CreateTerminationList {
21
31
  @IsDate()
22
32
  recalledCustomerBySupervisor?: Date;
23
33
 
24
- @ApiPropertyOptional()
25
- @IsOptional()
34
+ @ApiProperty()
26
35
  @IsDate()
27
- effectiveDate?: Date;
36
+ effectiveDate: Date;
28
37
 
29
- @ApiPropertyOptional()
30
- @IsOptional()
38
+ @ApiProperty()
31
39
  @IsInt()
32
- idExercice?: number;
40
+ idExercice: number;
33
41
 
34
42
  @ApiPropertyOptional()
35
43
  @IsOptional()
@@ -41,20 +49,33 @@ export class CreateTerminationList {
41
49
  @IsBoolean()
42
50
  refund?: boolean;
43
51
 
52
+ @ApiPropertyOptional()
53
+ @IsOptional()
54
+ @IsNumber()
55
+ monthlyPrice: number;
56
+
44
57
  @ApiPropertyOptional()
45
58
  @IsOptional()
46
59
  @IsInt()
47
- idReasonTermination?: number;
60
+ monthNumber: number;
48
61
 
49
- @ApiProperty()
62
+ @ApiPropertyOptional()
50
63
  @IsOptional()
51
64
  @IsInt()
52
- idSociety?: number;
65
+ monthOffer: number;
53
66
 
54
67
  @ApiPropertyOptional()
55
68
  @IsOptional()
56
69
  @IsInt()
57
- idPrestation?: number;
70
+ idReasonTermination?: number;
71
+
72
+ @ApiProperty()
73
+ @IsInt()
74
+ idSociety: number;
75
+
76
+ @ApiProperty()
77
+ @IsInt({ each: true })
78
+ idPrestation: number[];
58
79
 
59
80
  @ApiPropertyOptional()
60
81
  @IsOptional()
@@ -0,0 +1,78 @@
1
+ import { IsBoolean, IsDateString, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class QueryPaginateTerminationList {
6
+ @ApiPropertyOptional()
7
+ @IsInt()
8
+ @IsOptional()
9
+ page?: number;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsInt()
13
+ @IsOptional()
14
+ limit?: number;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsString()
18
+ @IsOptional()
19
+ search?: string;
20
+
21
+ @ApiPropertyOptional()
22
+ @IsInt()
23
+ @IsOptional()
24
+ year?: number;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsDateString()
28
+ @IsOptional()
29
+ beginDate?: Date;
30
+
31
+ @ApiPropertyOptional()
32
+ @IsDateString()
33
+ @IsOptional()
34
+ endDate?: Date;
35
+
36
+ @ApiPropertyOptional()
37
+ @IsInt()
38
+ @IsOptional()
39
+ idUser?: number;
40
+
41
+ @ApiPropertyOptional()
42
+ @IsInt()
43
+ @IsOptional()
44
+ monthCreatedAt?: number;
45
+
46
+ @ApiPropertyOptional()
47
+ @IsInt()
48
+ @IsOptional()
49
+ idReasonTermination?: number;
50
+
51
+ @ApiPropertyOptional()
52
+ @IsInt()
53
+ @IsOptional()
54
+ idBrandType?: number;
55
+
56
+ @ApiPropertyOptional()
57
+ @IsBoolean()
58
+ @ToBoolean()
59
+ @IsOptional()
60
+ displayArchive?: boolean;
61
+
62
+ @ApiPropertyOptional()
63
+ @IsString()
64
+ @IsOptional()
65
+ orderBy?: string;
66
+
67
+ @ApiPropertyOptional()
68
+ @IsBoolean()
69
+ @ToBoolean()
70
+ @IsOptional()
71
+ descending?: boolean;
72
+
73
+ @ApiPropertyOptional()
74
+ @IsBoolean()
75
+ @ToBoolean()
76
+ @IsOptional()
77
+ stat?: boolean;
78
+ }
@@ -18,8 +18,8 @@ export interface IRefund {
18
18
  updatedAt?: Date | null;
19
19
 
20
20
  // Associations
21
- refundsMotif: IRefundMotif;
22
- society: ISociety;
23
- file: IFile;
24
- userDemand: IUser;
21
+ refundsMotif?: IRefundMotif;
22
+ society?: ISociety;
23
+ file?: IFile;
24
+ userDemand?: IUser;
25
25
  }
@@ -12,7 +12,7 @@ export interface ISms {
12
12
  errorCode: number | null;
13
13
  isRead: boolean;
14
14
  idRecipient: number;
15
- idCollaborater: number;
15
+ idCollaborater?: number | null;
16
16
  idSociety: number;
17
17
  idTypeSMS: TextMessageType;
18
18
  createdAt?: Date | null;
@@ -7,6 +7,8 @@ import { IPrestation } from './IPrestation';
7
7
  // terminitionsList
8
8
  export interface ITerminationList {
9
9
  id?: number;
10
+ idTerminationType?: number | null;
11
+ idTerminationState?: number | null;
10
12
  comment?: string | null;
11
13
  recalledCustomer?: Date | null;
12
14
  recalledCustomerBySupervisor?: Date | null;
@@ -14,6 +16,9 @@ export interface ITerminationList {
14
16
  idExercice?: number | null;
15
17
  endContractDate?: Date | null;
16
18
  refund?: boolean;
19
+ monthlyPrice?: number | null;
20
+ monthNumber?: number | null;
21
+ monthOffer?: number | null;
17
22
  idReasonTermination?: number | null;
18
23
  idSociety?: number | null;
19
24
  idPrestation?: number | null;
@@ -1,7 +1,8 @@
1
-
2
- // userBrand
1
+ // rolesUsers
3
2
  export interface IUserBrand {
4
3
  id?: number;
5
4
  idUser: number;
6
5
  idBrandType: number;
7
- }
6
+ createdAt?: Date | null;
7
+ updatedAt?: Date | null;
8
+ }
package/ts/types/index.ts CHANGED
@@ -412,6 +412,7 @@ export * from './Enum/Ged';
412
412
  export * from './Enum/TypeBankConnection';
413
413
  export * from './Enum/GlobalRegime';
414
414
  export * from './Enum/TaxSystem';
415
+ export * from './Enum/TerminationList';
415
416
  export * from './Enum/SalesContractConfig';
416
417
  export * from './Enum/FiscalRegime';
417
418
  export * from './Enum/Activity';
@@ -534,6 +535,7 @@ export * from './Enum/Brevo';
534
535
  export * from './Enum/ZoneCode';
535
536
  export * from './Enum/TimeSlot';
536
537
  export * from './Enum/StateSynchro';
538
+ export * from './Enum/RefundReason';
537
539
 
538
540
  // Interfaces API
539
541
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
@@ -1025,6 +1027,7 @@ export * from './Interface/api/visualizedInformation/Update';
1025
1027
  export * from './Interface/api/society/QueryArchived';
1026
1028
  export * from './Interface/api/vatControl/CreateVatControl';
1027
1029
  export * from './Interface/api/vatControl/QueryVatControl';
1030
+ export * from './Interface/api/terminationList/QueryPaginateTerminationList';
1028
1031
  export * from './Interface/api/card/QueryUserCards';
1029
1032
  export * from './Interface/api/card/QueryUserCardsStats';
1030
1033
  export * from './Interface/api/card/UpdateCard';
@@ -1049,7 +1052,6 @@ export * from './Interface/api/echo/NewsPaper';
1049
1052
  export * from './Interface/api/echo/Order';
1050
1053
  export * from './Interface/api/userTimeSlot/QueryUserTimeSlot';
1051
1054
  export * from './Interface/api/workingSchedule/QueryAvailableTimeSlot';
1052
-
1053
1055
  // Enums types
1054
1056
  export * from './Interface/enum/Util';
1055
1057
  export * from './Interface/enum/Date';