@silexpert/core 1.0.188 → 1.0.189

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 (102) hide show
  1. package/es/types/Enum/BalanceSheet.d.ts +1 -1
  2. package/es/types/Enum/BalanceSheet.js +1 -1
  3. package/es/types/Enum/BalanceSheet.js.map +1 -1
  4. package/es/types/Enum/Compensation.d.ts +15 -0
  5. package/es/types/Enum/Compensation.d.ts.map +1 -0
  6. package/es/types/Enum/Compensation.js +15 -0
  7. package/es/types/Enum/Compensation.js.map +1 -0
  8. package/es/types/Enum/ConstitutionState.d.ts +0 -2
  9. package/es/types/Enum/ConstitutionState.d.ts.map +1 -1
  10. package/es/types/Enum/ConstitutionState.js +10 -10
  11. package/es/types/Enum/ConstitutionState.js.map +1 -1
  12. package/es/types/Enum/InternalService.d.ts +12 -0
  13. package/es/types/Enum/InternalService.d.ts.map +1 -1
  14. package/es/types/Enum/InternalService.js +12 -0
  15. package/es/types/Enum/InternalService.js.map +1 -1
  16. package/es/types/Enum/JobTitle.d.ts +7 -1
  17. package/es/types/Enum/JobTitle.d.ts.map +1 -1
  18. package/es/types/Enum/JobTitle.js +36 -0
  19. package/es/types/Enum/JobTitle.js.map +1 -1
  20. package/es/types/Enum/ReportService.d.ts +9 -4
  21. package/es/types/Enum/ReportService.d.ts.map +1 -1
  22. package/es/types/Enum/ReportService.js +17 -6
  23. package/es/types/Enum/ReportService.js.map +1 -1
  24. package/es/types/Enum/Role.d.ts +3 -1
  25. package/es/types/Enum/Role.d.ts.map +1 -1
  26. package/es/types/Enum/Role.js +2 -0
  27. package/es/types/Enum/Role.js.map +1 -1
  28. package/es/types/Enum/RoleDetail.d.ts +14 -0
  29. package/es/types/Enum/RoleDetail.d.ts.map +1 -1
  30. package/es/types/Enum/RoleDetail.js +14 -0
  31. package/es/types/Enum/RoleDetail.js.map +1 -1
  32. package/es/types/Enum/TaskResponseType.d.ts +3 -1
  33. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  34. package/es/types/Enum/TaskResponseType.js +57 -0
  35. package/es/types/Enum/TaskResponseType.js.map +1 -1
  36. package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts +7 -0
  37. package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts.map +1 -0
  38. package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js +39 -0
  39. package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +1 -0
  40. package/es/types/Interface/api/report/ReadReportStats.d.ts +1 -0
  41. package/es/types/Interface/api/report/ReadReportStats.d.ts.map +1 -1
  42. package/es/types/Interface/api/report/ReadReportStats.js.map +1 -1
  43. package/es/types/Interface/models/IAccountingTransaction.d.ts +2 -0
  44. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  45. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  46. package/es/types/Interface/models/IImmobilization.d.ts +2 -0
  47. package/es/types/Interface/models/IImmobilization.d.ts.map +1 -1
  48. package/es/types/Interface/models/IImmobilization.js.map +1 -1
  49. package/es/types/Interface/models/IReport.d.ts +3 -0
  50. package/es/types/Interface/models/IReport.d.ts.map +1 -1
  51. package/es/types/Interface/models/IReport.js.map +1 -1
  52. package/es/types/Interface/models/ISociety.d.ts +2 -1
  53. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  54. package/es/types/Interface/models/ISociety.js.map +1 -1
  55. package/es/types/index.d.ts +2 -0
  56. package/es/types/index.d.ts.map +1 -1
  57. package/es/types/index.js +2 -0
  58. package/es/types/index.js.map +1 -1
  59. package/js/types/Enum/BalanceSheet.js +1 -1
  60. package/js/types/Enum/BalanceSheet.js.map +1 -1
  61. package/js/types/Enum/Compensation.js +20 -0
  62. package/js/types/Enum/Compensation.js.map +1 -0
  63. package/js/types/Enum/ConstitutionState.js +6 -6
  64. package/js/types/Enum/ConstitutionState.js.map +1 -1
  65. package/js/types/Enum/InternalService.js +12 -0
  66. package/js/types/Enum/InternalService.js.map +1 -1
  67. package/js/types/Enum/JobTitle.js +30 -0
  68. package/js/types/Enum/JobTitle.js.map +1 -1
  69. package/js/types/Enum/ReportService.js +21 -9
  70. package/js/types/Enum/ReportService.js.map +1 -1
  71. package/js/types/Enum/Role.js +2 -0
  72. package/js/types/Enum/Role.js.map +1 -1
  73. package/js/types/Enum/RoleDetail.js +14 -0
  74. package/js/types/Enum/RoleDetail.js.map +1 -1
  75. package/js/types/Enum/TaskResponseType.js +52 -0
  76. package/js/types/Enum/TaskResponseType.js.map +1 -1
  77. package/js/types/Interface/api/prestation/QueryCreatePrestationSocieties.js +30 -0
  78. package/js/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +1 -0
  79. package/js/types/Interface/api/report/ReadReportStats.js.map +1 -1
  80. package/js/types/Interface/models/IAccountingTransaction.js.map +1 -1
  81. package/js/types/Interface/models/IImmobilization.js.map +1 -1
  82. package/js/types/Interface/models/IReport.js.map +1 -1
  83. package/js/types/Interface/models/ISociety.js.map +1 -1
  84. package/js/types/index.js +20 -0
  85. package/js/types/index.js.map +1 -1
  86. package/package.json +1 -1
  87. package/ts/types/Enum/BalanceSheet.ts +1 -1
  88. package/ts/types/Enum/Compensation.ts +14 -0
  89. package/ts/types/Enum/ConstitutionState.ts +4 -4
  90. package/ts/types/Enum/InternalService.ts +12 -0
  91. package/ts/types/Enum/JobTitle.ts +36 -0
  92. package/ts/types/Enum/ReportService.ts +20 -8
  93. package/ts/types/Enum/Role.ts +2 -0
  94. package/ts/types/Enum/RoleDetail.ts +14 -0
  95. package/ts/types/Enum/TaskResponseType.ts +57 -0
  96. package/ts/types/Interface/api/prestation/QueryCreatePrestationSocieties.ts +27 -0
  97. package/ts/types/Interface/api/report/ReadReportStats.ts +2 -1
  98. package/ts/types/Interface/models/IAccountingTransaction.ts +2 -0
  99. package/ts/types/Interface/models/IImmobilization.ts +2 -0
  100. package/ts/types/Interface/models/IReport.ts +3 -0
  101. package/ts/types/Interface/models/ISociety.ts +2 -0
  102. package/ts/types/index.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.0.188",
3
+ "version": "1.0.189",
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": "js/index.js",
@@ -29,7 +29,7 @@ export const BalanceSheetDetails = [
29
29
  text: 'À faire',
30
30
  color: 'grey',
31
31
  textColor: 'grey--text',
32
- forRoles: [['front_office'], ['front_office_express'], ['expert'], ['customer_success']],
32
+ forRoles: [['front_office'], ['front_office_express'], ['expert'], ['customer_success'], ['facturation']],
33
33
  },
34
34
  {
35
35
  text: 'En cours de prod.',
@@ -0,0 +1,14 @@
1
+ export const typeCompensation = {
2
+ NON: {
3
+ id: 1,
4
+ name: 'Non',
5
+ },
6
+ PRISE_CHARGE_PENALITE: {
7
+ id: 2,
8
+ name: 'Prise en charge des pénalités',
9
+ },
10
+ OFFRE_COMMERCIALE: {
11
+ id: 3,
12
+ name: 'Offre commerciale',
13
+ },
14
+ };
@@ -8,8 +8,8 @@ export enum ConstitutionState {
8
8
  // TODO : A delete une fois plus utilisé
9
9
  // ========================
10
10
  WAITING_KBIS = 7,
11
- WAITING_RIB_OR_SEPA = 8,
12
- INVOICING_TO_D0 = 9,
11
+ /* WAITING_RIB_OR_SEPA = 8,
12
+ INVOICING_TO_D0 = 9, */
13
13
  // ========================
14
14
  ABANDONED_CASE = 10,
15
15
  }
@@ -50,7 +50,7 @@ export const ConstitutionStateDetail: ConstitutionStateType = {
50
50
  text: 'Attente KBIS greffe',
51
51
  color: 'purple lighten-4',
52
52
  },
53
- WAITING_RIB_OR_SEPA: {
53
+ /* WAITING_RIB_OR_SEPA: {
54
54
  value: ConstitutionState.WAITING_RIB_OR_SEPA,
55
55
  text: 'Envoi de KBIS',
56
56
  color: 'yellow lighten-4',
@@ -59,7 +59,7 @@ export const ConstitutionStateDetail: ConstitutionStateType = {
59
59
  value: ConstitutionState.INVOICING_TO_D0,
60
60
  text: 'Facturation à faire',
61
61
  color: 'primary lighten-2',
62
- },
62
+ }, */
63
63
  // ========================================
64
64
  ABANDONED_CASE: {
65
65
  value: ConstitutionState.ABANDONED_CASE,
@@ -21,4 +21,16 @@ export const InternalService = {
21
21
  idRole: Role.FACTURATION,
22
22
  name: 'Facturation',
23
23
  },
24
+ REFERENT_LITIGE: {
25
+ idRole: Role.REFERENT_LITIGE,
26
+ name: 'Référent litige',
27
+ },
28
+ REFERENT_CLIENT: {
29
+ idRole: Role.REFERENT_CLIENT,
30
+ name: 'Référent client',
31
+ },
32
+ EXPERT_ACCOUNTANT: {
33
+ idRole: Role.EXPERT_ACCOUNTANT,
34
+ name: 'Expert Comptable',
35
+ },
24
36
  };
@@ -18,6 +18,12 @@ export enum JobTitle {
18
18
  BILLING_ASSISTANT = 17,
19
19
  COMMERCIAL = 18,
20
20
  ACCOUNTING_CONSULTANT = 19,
21
+ COMMUNICATION_MANAGER = 20,
22
+ INTERNAL_CONTROL_REFERENT = 21,
23
+ TRAFIC_MANAGER = 22,
24
+ EXECUTIVE_ASSISTANT = 23,
25
+ INTERNAL_CONTROL_MANAGER = 24,
26
+ HUMAN_RESOURCES_MANAGER = 25,
21
27
  }
22
28
 
23
29
  export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: string }> = [
@@ -116,4 +122,34 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: str
116
122
  menText: 'Conseiller comptable',
117
123
  womenText: 'Conseillère comptable',
118
124
  },
125
+ {
126
+ id: JobTitle.COMMUNICATION_MANAGER,
127
+ menText: 'Chargé de communication',
128
+ womenText: 'Chargée de communication',
129
+ },
130
+ {
131
+ id: JobTitle.INTERNAL_CONTROL_REFERENT,
132
+ menText: 'Référent du contrôle interne',
133
+ womenText: 'Référente du contrôle interne',
134
+ },
135
+ {
136
+ id: JobTitle.TRAFIC_MANAGER,
137
+ menText: 'Trafic Manager',
138
+ womenText: 'Trafic Manager',
139
+ },
140
+ {
141
+ id: JobTitle.EXECUTIVE_ASSISTANT,
142
+ menText: 'Assistant de Direction',
143
+ womenText: 'Assistante de Direction',
144
+ },
145
+ {
146
+ id: JobTitle.INTERNAL_CONTROL_MANAGER,
147
+ menText: 'Chargé du contrôle interne',
148
+ womenText: 'Chargée du contrôle interne',
149
+ },
150
+ {
151
+ id: JobTitle.HUMAN_RESOURCES_MANAGER,
152
+ menText: 'Chargé des ressources humaines',
153
+ womenText: 'Chargée des ressources humaines',
154
+ },
119
155
  ];
@@ -1,32 +1,44 @@
1
- import { List } from '../Interface/enum/Util';
1
+ import { RoleDetail } from './RoleDetail';
2
+
3
+ export type ListReport = Array<{ label: string; id: number; idRole: number; idTaskType: number; }>;
2
4
 
3
5
  export enum ReportService {
4
- BENJAMIN = 1,
6
+ REFERENT_LITIGE = 1,
5
7
  COMPTABLE = 2,
6
8
  CUSTOMER_SUCCESS = 3,
7
9
  EXPERT_ACCOUNTANT = 4,
8
- YLANA = 5,
10
+ REFERENT_CLIENT = 5,
9
11
  }
10
12
 
11
- export const ReportServiceList: List = [
13
+ export const ReportServiceList: ListReport = [
12
14
  {
13
- id: ReportService.BENJAMIN,
14
- label: 'Benjamin',
15
+ id: ReportService.REFERENT_LITIGE,
16
+ label: 'Référent litige',
17
+ idRole: RoleDetail.REFERENT_LITIGE.id,
18
+ idTaskType: 12,
15
19
  },
16
20
  {
17
21
  id: ReportService.COMPTABLE,
18
22
  label: 'Comptable',
23
+ idRole: RoleDetail.FRONT_OFFICE.id,
24
+ idTaskType: 16,
19
25
  },
20
26
  {
21
27
  id: ReportService.CUSTOMER_SUCCESS,
22
28
  label: 'Customer Success',
29
+ idRole: RoleDetail.CUSTOMER_SUCCESS.id,
30
+ idTaskType: 14,
23
31
  },
24
32
  {
25
33
  id: ReportService.EXPERT_ACCOUNTANT,
26
34
  label: 'Expert Comptable',
35
+ idRole: RoleDetail.EXPERT_ACCOUNTANT.id,
36
+ idTaskType: 15,
27
37
  },
28
38
  {
29
- id: ReportService.YLANA,
30
- label: 'Ylana',
39
+ id: ReportService.REFERENT_CLIENT,
40
+ label: 'Référent client',
41
+ idRole: RoleDetail.REFERENT_CLIENT.id,
42
+ idTaskType: 13,
31
43
  },
32
44
  ];
@@ -39,4 +39,6 @@ export enum Role {
39
39
  INTERN = 44,
40
40
  ALTERNATE = 45,
41
41
  DIRECTOR = 46,
42
+ REFERENT_LITIGE = 47,
43
+ REFERENT_CLIENT = 48,
42
44
  }
@@ -292,4 +292,18 @@ export const RoleDetail = {
292
292
  colorSecondary: '#FFF',
293
293
  subRole: true,
294
294
  },
295
+ REFERENT_LITIGE: {
296
+ id: 47,
297
+ name: 'Référent litige',
298
+ colorPrimary: '#FFF',
299
+ colorSecondary: '#FFF',
300
+ subRole: true,
301
+ },
302
+ REFERENT_CLIENT: {
303
+ id: 48,
304
+ name: 'Référent client',
305
+ colorPrimary: '#FFF',
306
+ colorSecondary: '#FFF',
307
+ subRole: true,
308
+ },
295
309
  };
@@ -33,6 +33,8 @@ export enum RoleAvailableForTask {
33
33
  COMMERCIAL = Role.COMMERCIAL,
34
34
  // BACK_MANAGER = Role.BACK_MANAGER,
35
35
  EXPERT_ACCOUNTANT = Role.EXPERT_ACCOUNTANT,
36
+ REFERENT_CLIENT = Role.EXPERT_ACCOUNTANT,
37
+ REFERENT_LITIGE = Role.EXPERT_ACCOUNTANT,
36
38
  }
37
39
 
38
40
  export const TaskResponseType = {
@@ -161,6 +163,61 @@ export const TaskResponseType = {
161
163
  responseType: null,
162
164
  description: 'Est-ce que nous pouvons réaliser le bilan 2020 de ce client ?',
163
165
  },
166
+ {
167
+ id: 12,
168
+ label: 'Référent litige',
169
+ role: Role.REFERENT_LITIGE,
170
+ deadline: Deadline,
171
+ isForWholeRole: false,
172
+ backToClient: false,
173
+ goToCalendar: false,
174
+ responseType: null,
175
+ description: 'Signalement pour référent litige',
176
+ },
177
+ {
178
+ id: 13,
179
+ label: 'Référent client',
180
+ role: Role.REFERENT_CLIENT,
181
+ deadline: Deadline,
182
+ isForWholeRole: false,
183
+ backToClient: false,
184
+ goToCalendar: false,
185
+ responseType: null,
186
+ description: 'Signalement pour référent client',
187
+ },
188
+ {
189
+ id: 14,
190
+ label: 'Administratif',
191
+ role: Role.ADMIN,
192
+ deadline: Deadline,
193
+ isForWholeRole: false,
194
+ backToClient: false,
195
+ goToCalendar: false,
196
+ responseType: null,
197
+ description: 'Signalement pour administratif',
198
+ },
199
+ {
200
+ id: 15,
201
+ label: 'Expert-Comptable',
202
+ role: Role.EXPERT_ACCOUNTANT,
203
+ deadline: Deadline,
204
+ isForWholeRole: false,
205
+ backToClient: false,
206
+ goToCalendar: false,
207
+ responseType: null,
208
+ description: 'Signalement pour expert-comptable',
209
+ },
210
+ {
211
+ id: 16,
212
+ label: 'Comptable',
213
+ role: Role.FRONT_OFFICE,
214
+ deadline: Deadline,
215
+ isForWholeRole: false,
216
+ backToClient: false,
217
+ goToCalendar: false,
218
+ responseType: null,
219
+ description: 'Signalement pour comptable',
220
+ },
164
221
  ],
165
222
  },
166
223
  EXTERN: {
@@ -0,0 +1,27 @@
1
+ import {
2
+ IsArray, IsDate, IsInt, IsNumber,
3
+ } from 'class-validator';
4
+ import { ApiProperty } from '../../../../utils';
5
+
6
+ export class QueryCreatePrestationSocieties {
7
+ @ApiProperty({
8
+ description: 'array of id society',
9
+ required: true,
10
+ type: [Number],
11
+ example: [1, 13],
12
+ })
13
+ @IsArray()
14
+ societiesIds: number[];
15
+
16
+ @ApiProperty()
17
+ @IsDate()
18
+ datePayment: Date;
19
+
20
+ @ApiProperty()
21
+ @IsInt()
22
+ idPrestationList: number;
23
+
24
+ @ApiProperty()
25
+ @IsNumber()
26
+ amount: number;
27
+ }
@@ -2,5 +2,6 @@ import { IReport } from '../../..';
2
2
 
3
3
  export interface ReadReportStats extends IReport {
4
4
  monthNumber: number,
5
- count: number
5
+ count: number,
6
+ compensationAmount: number
6
7
  }
@@ -11,6 +11,7 @@ import { IComptaType } from './IComptaType';
11
11
  import { IPartnerTransaction } from './IPartnerTransaction';
12
12
  import { ICurrency } from './ICurrency';
13
13
  import { IMachineLearningResult } from './IMachineLearningResult';
14
+ import { ISocietyPartner } from './ISocietyPartner';
14
15
 
15
16
  // accountingTransactions
16
17
  export interface IAccountingTransaction {
@@ -73,4 +74,5 @@ export interface IAccountingTransaction {
73
74
  parents?: IAccountingTransaction[];
74
75
  childs?: IAccountingTransaction[];
75
76
  machineLearningResults?: IMachineLearningResult[];
77
+ societyPartner?: ISocietyPartner;
76
78
  }
@@ -1,6 +1,7 @@
1
1
  import { IAccountingEntry } from './IAccountingEntry';
2
2
  import { ISociety } from './ISociety';
3
3
  import { DepreciationMethods } from '../../Enum/ImmobilizationType';
4
+ import { IAccount } from './IAccount';
4
5
 
5
6
  export interface IImmobilization {
6
7
  id?: number;
@@ -22,5 +23,6 @@ export interface IImmobilization {
22
23
 
23
24
  // Associations
24
25
  society?: ISociety;
26
+ account?: Partial<IAccount>;
25
27
  accountingEntries?: IAccountingEntry[];
26
28
  }
@@ -10,6 +10,9 @@ export interface IReport {
10
10
  idLetterType?: number | null;
11
11
  declareSoupcons?: boolean | null;
12
12
  state?: number | null;
13
+ compensationAmount?: number | null;
14
+ compensationDate?: Date | null;
15
+ compensationType?: number | null;
13
16
  informerjlb?: boolean | null;
14
17
  ressenti?: number | null;
15
18
  action?: number | null;
@@ -52,6 +52,7 @@ import {
52
52
  ISocietyConfigBalanceSheet,
53
53
  IAccountsSocieties,
54
54
  IUnpaidCallHistory,
55
+ IAccountingFile,
55
56
  } from '../..';
56
57
  import { IBrandType } from './IBrandType';
57
58
  import { IFile } from './IFile';
@@ -220,4 +221,5 @@ export interface ISociety {
220
221
  gedFiles: IGedFile[];
221
222
  files: IFile[];
222
223
  unpaidCallHistory: IUnpaidCallHistory[];
224
+ accountingFiles?: IAccountingFile[];
223
225
  }
package/ts/types/index.ts CHANGED
@@ -479,6 +479,7 @@ export * from './Enum/CommercialImportHeader';
479
479
  export * from './Enum/ReasonTerminationType';
480
480
  export * from './Enum/RemoteType';
481
481
  export * from './Enum/EntityType';
482
+ export * from './Enum/Compensation';
482
483
 
483
484
  // Interfaces API
484
485
  export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
@@ -875,6 +876,7 @@ export * from './Interface/api/societyConfig/update';
875
876
  export * from './Interface/api/wallet/UpdateAttribution';
876
877
  export * from './Interface/api/prestation/CreatePrestation';
877
878
  export * from './Interface/api/prestation/QueryPrestation';
879
+ export * from './Interface/api/prestation/QueryCreatePrestationSocieties';
878
880
  export * from './Interface/api/paymentExpectation/QueryPaymentExpectation';
879
881
  export * from './Interface/api/legalNotice/UpdateLegalNotice';
880
882
  export * from './Interface/api/wallet/QueryWallet';