@silexpert/core 0.4.283 → 0.4.290

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 (159) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/es/api/resources/SlowDetection.d.ts +11 -0
  3. package/es/api/resources/SlowDetection.d.ts.map +1 -0
  4. package/es/api/resources/SlowDetection.js +12 -0
  5. package/es/api/resources/SlowDetection.js.map +1 -0
  6. package/es/api/resources/Source.d.ts +6 -0
  7. package/es/api/resources/Source.d.ts.map +1 -0
  8. package/es/api/resources/Source.js +7 -0
  9. package/es/api/resources/Source.js.map +1 -0
  10. package/es/api/resources/User.d.ts +4 -2
  11. package/es/api/resources/User.d.ts.map +1 -1
  12. package/es/api/resources/User.js +25 -16
  13. package/es/api/resources/User.js.map +1 -1
  14. package/es/api/resources.d.ts +2 -0
  15. package/es/api/resources.d.ts.map +1 -1
  16. package/es/api/resources.js +2 -0
  17. package/es/api/resources.js.map +1 -1
  18. package/es/types/Enum/BalanceSheet.js +1 -1
  19. package/es/types/Enum/BalanceSheet.js.map +1 -1
  20. package/es/types/Enum/BudgetInsight.js.map +1 -1
  21. package/es/types/Enum/Ged.d.ts +101 -1
  22. package/es/types/Enum/Ged.d.ts.map +1 -1
  23. package/es/types/Enum/Ged.js +100 -14
  24. package/es/types/Enum/Ged.js.map +1 -1
  25. package/es/types/Enum/Lab.d.ts +25 -0
  26. package/es/types/Enum/Lab.d.ts.map +1 -0
  27. package/es/types/Enum/Lab.js +26 -0
  28. package/es/types/Enum/Lab.js.map +1 -0
  29. package/es/types/Enum/PrestationType.d.ts +2761 -1
  30. package/es/types/Enum/PrestationType.d.ts.map +1 -1
  31. package/es/types/Enum/PrestationType.js +2762 -1
  32. package/es/types/Enum/PrestationType.js.map +1 -1
  33. package/es/types/Enum/RegistrationSourceDetail.d.ts +195 -0
  34. package/es/types/Enum/RegistrationSourceDetail.d.ts.map +1 -0
  35. package/es/types/Enum/RegistrationSourceDetail.js +99 -0
  36. package/es/types/Enum/RegistrationSourceDetail.js.map +1 -0
  37. package/es/types/Enum/ReportService.d.ts +10 -0
  38. package/es/types/Enum/ReportService.d.ts.map +1 -0
  39. package/es/types/Enum/ReportService.js +31 -0
  40. package/es/types/Enum/ReportService.js.map +1 -0
  41. package/es/types/Enum/StatsCaStateDetail.d.ts +28 -0
  42. package/es/types/Enum/StatsCaStateDetail.d.ts.map +1 -0
  43. package/es/types/Enum/StatsCaStateDetail.js +28 -0
  44. package/es/types/Enum/StatsCaStateDetail.js.map +1 -0
  45. package/es/types/Enum/VatDeclarationType.d.ts.map +1 -1
  46. package/es/types/Enum/VatDeclarationType.js +6 -0
  47. package/es/types/Enum/VatDeclarationType.js.map +1 -1
  48. package/es/types/Interface/api/report/QueryReports.d.ts +1 -0
  49. package/es/types/Interface/api/report/QueryReports.d.ts.map +1 -1
  50. package/es/types/Interface/api/report/QueryReports.js +4 -0
  51. package/es/types/Interface/api/report/QueryReports.js.map +1 -1
  52. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts +13 -0
  53. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.d.ts.map +1 -0
  54. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +74 -0
  55. package/es/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +1 -0
  56. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts +11 -0
  57. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts.map +1 -0
  58. package/es/types/Interface/api/society/SocietyWithStatsCaParams.js +2 -0
  59. package/es/types/Interface/api/society/SocietyWithStatsCaParams.js.map +1 -0
  60. package/es/types/Interface/api/statistic/ExitRequest.d.ts +1 -0
  61. package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -1
  62. package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -1
  63. package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
  64. package/es/types/Interface/api/user/QueryGetAllCollaborators.js +1 -1
  65. package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  66. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts +1 -0
  67. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.d.ts.map +1 -1
  68. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +8 -1
  69. package/es/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -1
  70. package/es/types/Interface/models/IPrestation.d.ts +3 -0
  71. package/es/types/Interface/models/IPrestation.d.ts.map +1 -1
  72. package/es/types/Interface/models/IPrestation.js.map +1 -1
  73. package/es/types/Interface/models/ISlowDetection.d.ts +9 -0
  74. package/es/types/Interface/models/ISlowDetection.d.ts.map +1 -0
  75. package/es/types/Interface/models/ISlowDetection.js +2 -0
  76. package/es/types/Interface/models/ISlowDetection.js.map +1 -0
  77. package/es/types/Interface/models/ISociety.d.ts +4 -2
  78. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  79. package/es/types/Interface/models/ISociety.js.map +1 -1
  80. package/es/types/index.d.ts +7 -0
  81. package/es/types/index.d.ts.map +1 -1
  82. package/es/types/index.js +7 -0
  83. package/es/types/index.js.map +1 -1
  84. package/es/utils/index.d.ts +1 -0
  85. package/es/utils/index.d.ts.map +1 -1
  86. package/es/utils/index.js +1 -0
  87. package/es/utils/index.js.map +1 -1
  88. package/es/utils/prestation.d.ts +11 -0
  89. package/es/utils/prestation.d.ts.map +1 -0
  90. package/es/utils/prestation.js +62 -0
  91. package/es/utils/prestation.js.map +1 -0
  92. package/js/api/resources/SlowDetection.js +23 -0
  93. package/js/api/resources/SlowDetection.js.map +1 -0
  94. package/js/api/resources/Source.js +18 -0
  95. package/js/api/resources/Source.js.map +1 -0
  96. package/js/api/resources/User.js +27 -6
  97. package/js/api/resources/User.js.map +1 -1
  98. package/js/api/resources.js +4 -1
  99. package/js/api/resources.js.map +1 -1
  100. package/js/types/Enum/BalanceSheet.js +1 -1
  101. package/js/types/Enum/BalanceSheet.js.map +1 -1
  102. package/js/types/Enum/BudgetInsight.js.map +1 -1
  103. package/js/types/Enum/Ged.js +104 -17
  104. package/js/types/Enum/Ged.js.map +1 -1
  105. package/js/types/Enum/Lab.js +33 -0
  106. package/js/types/Enum/Lab.js.map +1 -0
  107. package/js/types/Enum/PrestationType.js +2763 -1
  108. package/js/types/Enum/PrestationType.js.map +1 -1
  109. package/js/types/Enum/RegistrationSourceDetail.js +200 -0
  110. package/js/types/Enum/RegistrationSourceDetail.js.map +1 -0
  111. package/js/types/Enum/ReportService.js +32 -0
  112. package/js/types/Enum/ReportService.js.map +1 -0
  113. package/js/types/Enum/StatsCaStateDetail.js +33 -0
  114. package/js/types/Enum/StatsCaStateDetail.js.map +1 -0
  115. package/js/types/Enum/VatDeclarationType.js +5 -0
  116. package/js/types/Enum/VatDeclarationType.js.map +1 -1
  117. package/js/types/Interface/api/report/QueryReports.js +2 -0
  118. package/js/types/Interface/api/report/QueryReports.js.map +1 -1
  119. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js +53 -0
  120. package/js/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.js.map +1 -0
  121. package/js/types/Interface/api/society/SocietyWithStatsCaParams.js +6 -0
  122. package/js/types/Interface/api/society/SocietyWithStatsCaParams.js.map +1 -0
  123. package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  124. package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js +4 -0
  125. package/js/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.js.map +1 -1
  126. package/js/types/Interface/models/ISlowDetection.js +6 -0
  127. package/js/types/Interface/models/ISlowDetection.js.map +1 -0
  128. package/js/types/index.js +84 -0
  129. package/js/types/index.js.map +1 -1
  130. package/js/utils/index.js +12 -0
  131. package/js/utils/index.js.map +1 -1
  132. package/js/utils/prestation.js +41 -0
  133. package/js/utils/prestation.js.map +1 -0
  134. package/package.json +1 -1
  135. package/ts/api/resources/SlowDetection.ts +13 -0
  136. package/ts/api/resources/Source.ts +8 -0
  137. package/ts/api/resources/User.ts +27 -17
  138. package/ts/api/resources.ts +2 -0
  139. package/ts/types/Enum/BalanceSheet.ts +1 -1
  140. package/ts/types/Enum/BudgetInsight.ts +1 -1
  141. package/ts/types/Enum/Ged.ts +102 -15
  142. package/ts/types/Enum/Lab.ts +25 -0
  143. package/ts/types/Enum/PrestationType.ts +2765 -3
  144. package/ts/types/Enum/RegistrationSourceDetail.ts +98 -0
  145. package/ts/types/Enum/ReportService.ts +32 -0
  146. package/ts/types/Enum/StatsCaStateDetail.ts +27 -0
  147. package/ts/types/Enum/VatDeclarationType.ts +6 -0
  148. package/ts/types/Interface/api/report/QueryReports.ts +3 -0
  149. package/ts/types/Interface/api/society/QueryPaginatedSocietyWithStatsCa.ts +56 -0
  150. package/ts/types/Interface/api/society/SocietyWithStatsCaParams.ts +11 -0
  151. package/ts/types/Interface/api/statistic/ExitRequest.ts +1 -0
  152. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +3 -1
  153. package/ts/types/Interface/api/user/QueryGetAllCollaboratorsByRoles.ts +7 -1
  154. package/ts/types/Interface/models/IPrestation.ts +3 -0
  155. package/ts/types/Interface/models/ISlowDetection.ts +11 -0
  156. package/ts/types/Interface/models/ISociety.ts +5 -3
  157. package/ts/types/index.ts +7 -0
  158. package/ts/utils/index.ts +1 -0
  159. package/ts/utils/prestation.ts +71 -0
@@ -0,0 +1,8 @@
1
+ import { Resource } from '../Resource';
2
+ import { ISource } from '../../types';
3
+
4
+ export class Source extends Resource {
5
+ getAll(): Promise<ISource[]> {
6
+ return this.axios.$get('/sources');
7
+ }
8
+ }
@@ -1,6 +1,7 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { Resource } from '../Resource';
2
3
  import {
3
- IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, QuerySocieties, ISociety, Role, TimeCounterType, QueryGetAllCollaborators,
4
+ IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, QuerySocieties, ISociety, Role, TimeCounterType, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryPaginatedSocietyWithStatsCa, BasePaginate, SocietyWithStatsCaParams,
4
5
  } from '../../types';
5
6
 
6
7
  export class User extends Resource {
@@ -28,22 +29,27 @@ export class User extends Resource {
28
29
  allCollaborators(params: QueryGetAllCollaborators): Promise<IUser> {
29
30
  return this.axios.$get('user/all-collaborators', { params });
30
31
  }
31
- allCollaboratorsByRolesFromTimeCounterType(idTimeCounterType: number): Promise<IUser> {
32
- const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);
33
- const rolesByDefault = [
34
- Role.FRONT_OFFICE,
35
- Role.FRONT_OFFICE_EXPRESS,
36
- Role.SOCIAL,
37
- Role.JURIDIC,
38
- Role.HUMAN_RESSOURCES,
39
- Role.FACTURATION,
40
- Role.CUSTOMER_SUCCESS,
41
- Role.COMMERCIAL,
42
- Role.MANAGER,
43
- Role.EXPERT_ACCOUNTANT,
44
- Role.DEVELOPER,
45
- ];
46
- return this.axios.$get('user/all-collaborators-by-roles', { params: { idRoles: timeCounterType?.limitedRoles ?? rolesByDefault } });
32
+ allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<IUser> {
33
+ const { idTimeCounterType, idRoles } = data;
34
+ let params = { idRoles };
35
+ if (idTimeCounterType) {
36
+ const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);
37
+ const rolesByDefault = [
38
+ Role.FRONT_OFFICE,
39
+ Role.FRONT_OFFICE_EXPRESS,
40
+ Role.SOCIAL,
41
+ Role.JURIDIC,
42
+ Role.HUMAN_RESSOURCES,
43
+ Role.FACTURATION,
44
+ Role.CUSTOMER_SUCCESS,
45
+ Role.COMMERCIAL,
46
+ Role.MANAGER,
47
+ Role.EXPERT_ACCOUNTANT,
48
+ Role.DEVELOPER,
49
+ ];
50
+ params = { idRoles: timeCounterType?.limitedRoles ?? rolesByDefault };
51
+ }
52
+ return this.axios.$get('user/all-collaborators-by-roles', { params });
47
53
  }
48
54
  selectableTeammates(): Promise<IUser[]> {
49
55
  return this.axios.$get('user/selectable-teammates');
@@ -63,4 +69,8 @@ export class User extends Resource {
63
69
  getInfo(): Promise<IUser> {
64
70
  return this.axios.$get('user');
65
71
  }
72
+ // FIXME: CancelToken
73
+ getStatsCa(params: QueryPaginatedSocietyWithStatsCa, cancelToken?: CancelToken): Promise<BasePaginate<SocietyWithStatsCaParams>> {
74
+ return this.axios.$get('/user/paginated-with-stats-ca', { ...(cancelToken ? { cancelToken } : {}), params });
75
+ }
66
76
  }
@@ -96,6 +96,7 @@ import { Wallet } from './resources/Wallet';
96
96
  import { PaymentExpectation } from './resources/PaymentExpectation';
97
97
  import { StatisticDirection } from './resources/statistic/Direction';
98
98
  import { TerminationList } from './resources/TerminationList';
99
+ import { SlowDetection } from './resources/SlowDetection';
99
100
 
100
101
  export const resources = {
101
102
  simulation: Simulation,
@@ -196,4 +197,5 @@ export const resources = {
196
197
  statisticExpertAccountant: StatisticExpertAccountant,
197
198
  paymentExpectation: PaymentExpectation,
198
199
  terminationList: TerminationList,
200
+ slowDetection: SlowDetection,
199
201
  };
@@ -277,7 +277,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
277
277
  {
278
278
  name: 'Disponibilités',
279
279
  key: 'availabilities',
280
- accounts: ['511', '512', '514', '515', '516', '517', '5187', '53', '54', '58'],
280
+ accounts: ['511', '512', '514', '515', '516', '517', '5181', '5187', '53', '54', '58'],
281
281
  type: 'active',
282
282
  },
283
283
  {
@@ -25,5 +25,5 @@ export enum BudgetInsightConnectionState {
25
25
  RATE_LIMITING = 'rateLimiting', // The target website or API is temporarily blocking synchronizations due to rate limiting.
26
26
  WEBSITE_UNAVAILABLE = 'websiteUnavailable', // The connector website or API is unavailable.
27
27
  BUG = 'bug', // An internal error has occurred during the synchronization.
28
- NOT_SUPPORTED = 'notSupported', // The source is not supported on the connector
28
+ NOT_SUPPORTED = 'notSupported', // The source is not supported on the connector.
29
29
  }
@@ -48,24 +48,111 @@ export enum GedFolder {
48
48
 
49
49
  export enum GedFileType {
50
50
  STATUTES = 1,
51
- // 2,'Carte d\'identité'
51
+ IDENTITY_CARD = 2,
52
52
  KBIS = 3,
53
53
  RIB = 4,
54
- // 4,'RIB'
55
- // 5,'Mémento Fiscal'
56
- // 6,'SEPA'
57
- // 7,'Plaquette'
58
- // 8,'M0'
59
- // 9,'Dbe'
54
+ FISCAL_MEMENTO = 5,
55
+ SEPA = 6,
56
+ PLAQUETTE = 7,
57
+ M0 = 8,
58
+ DBE = 9,
60
59
  OTHER = 10,
61
- // 11,'Inscription au répertoire SIRENE / Répertoire des métiers'
62
- // 12,'Déclaration du patrimoine affectée'
63
- // 13,'Déclaration des bénéficiaires effectifs'
64
- // 14,'Liste des souscripteurs pour connaître la répartition des actions'
65
- // 15,'Récépissé d’inscription de l’association en préfecture'
66
- // 16,'Liste des représentants de l’association'
67
- // 17,'Règlement intérieur',
60
+ SIRENE = 11, // Inscription au répertoire SIRENE / Répertoire des métiers
61
+ PATRIMONY = 12, // Déclaration du patrimoine affectée
62
+ DBE2 = 13, // 13,'Déclaration des bénéficiaires effectifs'
63
+ DISTRIBUTION_OF_SHARE = 14, // 14,'Liste des souscripteurs pour connaître la répartition des actions'
64
+ REGISTRATION_OF_THE_ASSOCIATION_AT_THE_PREFECTURE = 15, // 15,'Récépissé d’inscription de l’association en préfecture'
65
+ REPRESENTATIVE_OF_THE_ASSOCIATION = 16, // 16,'Liste des représentants de l’association'
66
+ RULES_OF_PROCEDURE = 17, // 17,'Règlement intérieur',
68
67
  REVISION_GUIDE = 18,
69
68
  SUMMARY_NOTE = 19,
70
69
  BALANCESHEET_NOTE = 20,
71
- }
70
+ PERSONNAL_RIB = 21, // RIB PERSO
71
+ }
72
+
73
+ export const GedFileTypeDetail = {
74
+ STATUTES: {
75
+ id: GedFileType.STATUTES,
76
+ name: 'Statuts',
77
+ },
78
+ IDENTITY_CARD: {
79
+ id: GedFileType.IDENTITY_CARD,
80
+ name: 'Carte d\'identité',
81
+ },
82
+ KBIS: {
83
+ id: GedFileType.KBIS,
84
+ name: 'KBis',
85
+ },
86
+ RIB: {
87
+ id: 4,
88
+ name: 'RIB',
89
+ },
90
+ FISCAL_MEMENTO: {
91
+ id: GedFileType.FISCAL_MEMENTO,
92
+ name: 'Memento fiscal',
93
+ },
94
+ SEPA: {
95
+ id: GedFileType.SEPA,
96
+ name: 'SEPA',
97
+ },
98
+ PLAQUETTE: {
99
+ id: GedFileType.PLAQUETTE,
100
+ name: 'Plaquette',
101
+ },
102
+ M0: {
103
+ id: GedFileType.M0,
104
+ name: 'M0',
105
+ },
106
+ DBE: {
107
+ id: GedFileType.DBE,
108
+ name: 'DBE',
109
+ },
110
+ OTHER: {
111
+ id: GedFileType.OTHER,
112
+ name: 'Autres',
113
+ },
114
+ SIRENE: {
115
+ id: GedFileType.SIRENE,
116
+ name: 'Inscription au répertoire SIRENE / Répertoire des métiers',
117
+ },
118
+ PATRIMONY: {
119
+ id: GedFileType.PATRIMONY,
120
+ name: 'Déclaration du patrimoine affectée',
121
+ },
122
+ DBE2: {
123
+ id: GedFileType.DBE2,
124
+ name: 'Déclaration des bénéficiaires effectifs',
125
+ },
126
+ DISTRIBUTION_OF_SHARE: {
127
+ id: GedFileType.DISTRIBUTION_OF_SHARE,
128
+ name: 'Liste des souscripteurs pour connaître la répartition des actions',
129
+ },
130
+ REGISTRATION_OF_THE_ASSOCIATION_AT_THE_PREFECTURE: {
131
+ id: GedFileType.REGISTRATION_OF_THE_ASSOCIATION_AT_THE_PREFECTURE,
132
+ name: 'Récépissé d’inscription de l’association en préfecture',
133
+ },
134
+ REPRESENTATIVE_OF_THE_ASSOCIATION: {
135
+ id: GedFileType.REPRESENTATIVE_OF_THE_ASSOCIATION,
136
+ name: 'Liste des représentants de l’association',
137
+ },
138
+ RULES_OF_PROCEDURE: {
139
+ id: GedFileType.RULES_OF_PROCEDURE,
140
+ name: 'Règlement intérieur',
141
+ },
142
+ REVISION_GUIDE: {
143
+ id: GedFileType.REVISION_GUIDE,
144
+ name: 'Guide de révision',
145
+ },
146
+ SUMMARY_NOTE: {
147
+ id: GedFileType.SUMMARY_NOTE,
148
+ name: 'Notes de synthèse',
149
+ },
150
+ BALANCESHEET_NOTE: {
151
+ id: GedFileType.BALANCESHEET_NOTE,
152
+ name: 'Notes de bilan',
153
+ },
154
+ PERSONNAL_RIB: {
155
+ id: GedFileType.PERSONNAL_RIB,
156
+ name: 'RIB Personnel',
157
+ },
158
+ };
@@ -0,0 +1,25 @@
1
+ export enum Lab {
2
+ WAITING = '',
3
+ ACCEPTED = 1,
4
+ REFUSED = 0,
5
+ AWAITING_CONFORMITY = 2,
6
+ }
7
+
8
+ export const LabDetail = {
9
+ WAITING: {
10
+ id: Lab.WAITING,
11
+ color: '',
12
+ },
13
+ ACCEPTED: {
14
+ id: Lab.ACCEPTED,
15
+ color: 'success',
16
+ },
17
+ REFUSED: {
18
+ id: Lab.REFUSED,
19
+ color: 'error',
20
+ },
21
+ AWAITING_CONFORMITY: {
22
+ id: Lab.AWAITING_CONFORMITY,
23
+ color: 'primary',
24
+ },
25
+ };