@silexpert/core 1.1.372 → 1.1.373

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 (105) hide show
  1. package/dist/cjs/api/resources/3cx.d.ts +3 -1
  2. package/dist/cjs/api/resources/3cx.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/3cx.js +6 -0
  4. package/dist/cjs/api/resources/3cx.js.map +1 -1
  5. package/dist/cjs/api/resources/TerminationList.d.ts +2 -2
  6. package/dist/cjs/api/resources/TerminationList.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/TerminationList.js.map +1 -1
  8. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts +1 -1
  9. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  10. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js +1 -1
  11. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  12. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  13. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/ReasonTerminationType.js +6 -0
  15. package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
  16. package/dist/cjs/types/Enum/RegistrationSource.d.ts +1 -0
  17. package/dist/cjs/types/Enum/RegistrationSource.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/RegistrationSource.js +1 -0
  19. package/dist/cjs/types/Enum/RegistrationSource.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.d.ts +6 -0
  21. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.d.ts.map +1 -0
  22. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.js +36 -0
  23. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.js.map +1 -0
  24. package/dist/cjs/types/Interface/api/3cx/Read3cxMeeting.d.ts +14 -0
  25. package/dist/cjs/types/Interface/api/3cx/Read3cxMeeting.d.ts.map +1 -0
  26. package/dist/cjs/types/Interface/api/3cx/Read3cxMeeting.js +10 -0
  27. package/dist/cjs/types/Interface/api/3cx/Read3cxMeeting.js.map +1 -0
  28. package/dist/cjs/types/Interface/api/3cx/Update3cxMeeting.d.ts +10 -0
  29. package/dist/cjs/types/Interface/api/3cx/Update3cxMeeting.d.ts.map +1 -0
  30. package/dist/cjs/types/Interface/api/3cx/Update3cxMeeting.js +46 -0
  31. package/dist/cjs/types/Interface/api/3cx/Update3cxMeeting.js.map +1 -0
  32. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts +1 -0
  33. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts.map +1 -1
  34. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.js +4 -0
  35. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -1
  36. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +24 -3
  37. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  38. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js +119 -1
  39. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  40. package/dist/cjs/types/Interface/models/ICalendarEvent.d.ts +1 -0
  41. package/dist/cjs/types/Interface/models/ICalendarEvent.d.ts.map +1 -1
  42. package/dist/cjs/types/Interface/models/ICalendarEvent.js.map +1 -1
  43. package/dist/cjs/types/index.d.ts +3 -0
  44. package/dist/cjs/types/index.d.ts.map +1 -1
  45. package/dist/cjs/types/index.js +3 -0
  46. package/dist/cjs/types/index.js.map +1 -1
  47. package/dist/mjs/api/resources/3cx.d.ts +3 -1
  48. package/dist/mjs/api/resources/3cx.d.ts.map +1 -1
  49. package/dist/mjs/api/resources/3cx.js +6 -0
  50. package/dist/mjs/api/resources/3cx.js.map +1 -1
  51. package/dist/mjs/api/resources/TerminationList.d.ts +2 -2
  52. package/dist/mjs/api/resources/TerminationList.d.ts.map +1 -1
  53. package/dist/mjs/api/resources/TerminationList.js.map +1 -1
  54. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts +1 -1
  55. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  56. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js +1 -1
  57. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  58. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  59. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  60. package/dist/mjs/types/Enum/ReasonTerminationType.js +6 -0
  61. package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
  62. package/dist/mjs/types/Enum/RegistrationSource.d.ts +1 -0
  63. package/dist/mjs/types/Enum/RegistrationSource.d.ts.map +1 -1
  64. package/dist/mjs/types/Enum/RegistrationSource.js +1 -0
  65. package/dist/mjs/types/Enum/RegistrationSource.js.map +1 -1
  66. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.d.ts +6 -0
  67. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.d.ts.map +1 -0
  68. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.js +35 -0
  69. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.js.map +1 -0
  70. package/dist/mjs/types/Interface/api/3cx/Read3cxMeeting.d.ts +14 -0
  71. package/dist/mjs/types/Interface/api/3cx/Read3cxMeeting.d.ts.map +1 -0
  72. package/dist/mjs/types/Interface/api/3cx/Read3cxMeeting.js +14 -0
  73. package/dist/mjs/types/Interface/api/3cx/Read3cxMeeting.js.map +1 -0
  74. package/dist/mjs/types/Interface/api/3cx/Update3cxMeeting.d.ts +10 -0
  75. package/dist/mjs/types/Interface/api/3cx/Update3cxMeeting.d.ts.map +1 -0
  76. package/dist/mjs/types/Interface/api/3cx/Update3cxMeeting.js +41 -0
  77. package/dist/mjs/types/Interface/api/3cx/Update3cxMeeting.js.map +1 -0
  78. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts +1 -0
  79. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.d.ts.map +1 -1
  80. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.js +5 -0
  81. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -1
  82. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +24 -3
  83. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  84. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js +136 -0
  85. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  86. package/dist/mjs/types/Interface/models/ICalendarEvent.d.ts +1 -0
  87. package/dist/mjs/types/Interface/models/ICalendarEvent.d.ts.map +1 -1
  88. package/dist/mjs/types/Interface/models/ICalendarEvent.js.map +1 -1
  89. package/dist/mjs/types/index.d.ts +3 -0
  90. package/dist/mjs/types/index.d.ts.map +1 -1
  91. package/dist/mjs/types/index.js +3 -0
  92. package/dist/mjs/types/index.js.map +1 -1
  93. package/package.json +1 -1
  94. package/ts/api/resources/3cx.ts +9 -0
  95. package/ts/api/resources/TerminationList.ts +2 -2
  96. package/ts/types/Enum/BalanceSheetQuestionWording.ts +1 -1
  97. package/ts/types/Enum/ReasonTerminationType.ts +6 -0
  98. package/ts/types/Enum/RegistrationSource.ts +1 -0
  99. package/ts/types/Interface/api/3cx/Query3cxMeeting.ts +19 -0
  100. package/ts/types/Interface/api/3cx/Read3cxMeeting.ts +16 -0
  101. package/ts/types/Interface/api/3cx/Update3cxMeeting.ts +26 -0
  102. package/ts/types/Interface/api/calendarEvent/createCalendarEvent.ts +3 -0
  103. package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +101 -3
  104. package/ts/types/Interface/models/ICalendarEvent.ts +1 -0
  105. package/ts/types/index.ts +3 -0
@@ -19,6 +19,7 @@ export enum ReasonTerminationType {
19
19
  BRAND_CHANGE = 18,
20
20
  SERVICE_DELAYS = 19,
21
21
  LACK_OF_ADVICE = 20,
22
+ NA = 21,
22
23
  }
23
24
 
24
25
  export const ReasonTerminationTypeDetail = [
@@ -122,4 +123,9 @@ export const ReasonTerminationTypeDetail = [
122
123
  label: 'Manque de conseil',
123
124
  active: true,
124
125
  },
126
+ {
127
+ id:ReasonTerminationType.NA,
128
+ label: 'Non précisé',
129
+ active: true,
130
+ },
125
131
  ];
@@ -3,5 +3,6 @@ export enum RegistrationSource {
3
3
  CHAT = 29,
4
4
  COMPANEO = 32,
5
5
  ONLINE_SUBSCRIPTION = 70,
6
+ NEWSLETTER = 76,
6
7
  PARTNERED_ACCOUNTANT = 90,
7
8
  }
@@ -0,0 +1,19 @@
1
+ import { IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class Query3cxMeeting {
5
+ @ApiPropertyOptional()
6
+ @IsString()
7
+ @IsOptional()
8
+ subjectContains?: string;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsInt()
12
+ @IsOptional()
13
+ daysLimit?: number;
14
+
15
+ @ApiPropertyOptional()
16
+ @IsInt()
17
+ @IsOptional()
18
+ extension?: number;
19
+ }
@@ -0,0 +1,16 @@
1
+
2
+ export class ReadData3cxMeeting {
3
+ extension: number | null;
4
+ name: string | null;
5
+ meetingid: string | null;
6
+ subject: string | null;
7
+ datetime: string | null;
8
+ duration: number | null;
9
+ participants: number | null;
10
+ type: string | null;
11
+ }
12
+
13
+
14
+ export class Read3cxMeeting {
15
+ scheduledMeetings: ReadData3cxMeeting[];
16
+ }
@@ -0,0 +1,26 @@
1
+ import { IsArray, IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class Update3cxContactMeeting {
5
+ @ApiProperty()
6
+ @IsString()
7
+ declare name: string;
8
+
9
+ @ApiProperty()
10
+ @IsString()
11
+ declare email: string;
12
+
13
+ @ApiProperty()
14
+ @IsString()
15
+ declare role: 'Participant' | 'CoHost';
16
+ }
17
+
18
+ export class Update3cxMeeting {
19
+ @ApiProperty()
20
+ @IsArray()
21
+ declare contact: JSON;
22
+
23
+ @ApiProperty()
24
+ @IsString()
25
+ declare meetingId: string;
26
+ }
@@ -34,6 +34,9 @@ export class createCalendarEvent {
34
34
  @ApiPropertyOptional()
35
35
  idTimeCounterType?: number;
36
36
 
37
+ @ApiPropertyOptional()
38
+ idTimeSlot?: number;
39
+
37
40
  @ApiPropertyOptional()
38
41
  typeComptable?: number;
39
42
 
@@ -17,6 +17,11 @@ export class CreateTerminationList {
17
17
  @IsInt()
18
18
  idTerminationState?: number;
19
19
 
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ @IsInt()
23
+ idTerminationConclusion?: number;
24
+
20
25
  @ApiPropertyOptional()
21
26
  @IsOptional()
22
27
  @IsString()
@@ -62,17 +67,17 @@ export class CreateTerminationList {
62
67
  @ApiPropertyOptional()
63
68
  @IsOptional()
64
69
  @IsNumber()
65
- monthlyPrice: number;
70
+ monthlyPrice?: number;
66
71
 
67
72
  @ApiPropertyOptional()
68
73
  @IsOptional()
69
74
  @IsInt()
70
- monthNumber: number;
75
+ monthNumber?: number;
71
76
 
72
77
  @ApiPropertyOptional()
73
78
  @IsOptional()
74
79
  @IsInt()
75
- monthOffer: number;
80
+ monthOffer?: number;
76
81
 
77
82
  @ApiPropertyOptional()
78
83
  @IsOptional()
@@ -98,6 +103,99 @@ export class CreateTerminationList {
98
103
  @ToBoolean()
99
104
  needPaymentLink?: boolean;
100
105
 
106
+ @ApiPropertyOptional()
107
+ @IsOptional()
108
+ @IsNumber()
109
+ totalAmount?: number;
110
+ }
111
+
112
+ export class UpdateTerminationList {
113
+ @ApiPropertyOptional()
114
+ @IsOptional()
115
+ @IsInt()
116
+ idTerminationType?: number;
117
+
118
+ @ApiPropertyOptional()
119
+ @IsOptional()
120
+ @IsInt()
121
+ idTerminationState?: number;
122
+
123
+ @ApiPropertyOptional()
124
+ @IsOptional()
125
+ @IsInt()
126
+ idTerminationConclusion?: number;
127
+
128
+ @ApiPropertyOptional()
129
+ @IsOptional()
130
+ @IsString()
131
+ comment?: string;
132
+
133
+ @ApiPropertyOptional()
134
+ @IsOptional()
135
+ @IsDate()
136
+ effectiveDate?: Date;
137
+
138
+ @ApiPropertyOptional()
139
+ @IsOptional()
140
+ @IsInt()
141
+ idExercice?: number | null;
142
+
143
+ @ApiPropertyOptional()
144
+ @IsOptional()
145
+ @IsDate()
146
+ endContractDate?: Date;
147
+
148
+ @ApiPropertyOptional()
149
+ @IsOptional()
150
+ @IsBoolean()
151
+ @ToBoolean()
152
+ refund?: boolean;
153
+
154
+ @ApiPropertyOptional()
155
+ @IsOptional()
156
+ @IsInt()
157
+ refundAmount?: number;
158
+
159
+ @ApiPropertyOptional()
160
+ @IsOptional()
161
+ @IsInt()
162
+ idRefund?: number;
163
+
164
+ @ApiPropertyOptional()
165
+ @IsOptional()
166
+ @IsNumber()
167
+ monthlyPrice?: number;
168
+
169
+ @ApiPropertyOptional()
170
+ @IsOptional()
171
+ @IsInt()
172
+ monthNumber?: number;
173
+
174
+ @ApiPropertyOptional()
175
+ @IsOptional()
176
+ @IsInt()
177
+ monthOffer?: number;
178
+
179
+ @ApiPropertyOptional()
180
+ @IsOptional()
181
+ @IsInt({ each: true })
182
+ idReasonTermination?: number[];
183
+
184
+ @ApiPropertyOptional()
185
+ @IsOptional()
186
+ @IsInt()
187
+ idSociety?: number;
188
+
189
+ @ApiPropertyOptional()
190
+ @IsOptional()
191
+ @IsInt()
192
+ idPrestation?: number;
193
+
194
+ @ApiPropertyOptional()
195
+ @IsOptional()
196
+ @IsInt()
197
+ idCollaborateur?: number;
198
+
101
199
  @ApiPropertyOptional()
102
200
  @IsOptional()
103
201
  @IsNumber()
@@ -19,6 +19,7 @@ export interface ICalendarEvent {
19
19
  idSociety: number | null;
20
20
  idExercice: number | null;
21
21
  idTimeCounterType: number | null;
22
+ idTimeSlot: number | null;
22
23
  typeComptable: number | null;
23
24
  isDone: boolean;
24
25
  callState: number | null;
package/ts/types/index.ts CHANGED
@@ -967,7 +967,10 @@ export * from './Interface/api/task/QueryStatsByTaskTypeInCsv';
967
967
  export * from './Interface/api/societyConfigBalanceSheet/QueryPaginatedSocietyConfigBalanceSheet';
968
968
  export * from './Interface/api/societyConfigBalanceSheet/QueryGetAllSocietyConfigBalanceSheet';
969
969
  export * from './Interface/api/3cx/Query3cxSearch';
970
+ export * from './Interface/api/3cx/Query3cxMeeting';
971
+ export * from './Interface/api/3cx/Update3cxMeeting';
970
972
  export * from './Interface/api/3cx/Read3cxSearch';
973
+ export * from './Interface/api/3cx/Read3cxMeeting';
971
974
  export * from './Interface/api/3cx/Create3cxLog';
972
975
  export * from './Interface/api/amount/FormattedAmount';
973
976
  export * from './Interface/api/customerActivity/CreateCustomerActivityReport';