@silexpert/core 1.0.181 → 1.0.183

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 (151) hide show
  1. package/es/api/resources/Notification.d.ts +3 -0
  2. package/es/api/resources/Notification.d.ts.map +1 -1
  3. package/es/api/resources/Notification.js +7 -1
  4. package/es/api/resources/Notification.js.map +1 -1
  5. package/es/api/resources/Team.d.ts +30 -0
  6. package/es/api/resources/Team.d.ts.map +1 -0
  7. package/es/api/resources/Team.js +37 -0
  8. package/es/api/resources/Team.js.map +1 -0
  9. package/es/api/resources.d.ts +2 -0
  10. package/es/api/resources.d.ts.map +1 -1
  11. package/es/api/resources.js +2 -0
  12. package/es/api/resources.js.map +1 -1
  13. package/es/types/Enum/BrandClementine.d.ts +0 -126
  14. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  15. package/es/types/Enum/BrandClementine.js +0 -109
  16. package/es/types/Enum/BrandClementine.js.map +1 -1
  17. package/es/types/Enum/BrandComptalib.d.ts +0 -83
  18. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  19. package/es/types/Enum/BrandComptalib.js +0 -77
  20. package/es/types/Enum/BrandComptalib.js.map +1 -1
  21. package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
  22. package/es/types/Enum/BrandPourcentage.js +436 -1
  23. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  24. package/es/types/Enum/NotificationType.d.ts +14 -2
  25. package/es/types/Enum/NotificationType.d.ts.map +1 -1
  26. package/es/types/Enum/NotificationType.js +35 -5
  27. package/es/types/Enum/NotificationType.js.map +1 -1
  28. package/es/types/Enum/RemoteType.d.ts +10 -0
  29. package/es/types/Enum/RemoteType.d.ts.map +1 -0
  30. package/es/types/Enum/RemoteType.js +21 -0
  31. package/es/types/Enum/RemoteType.js.map +1 -0
  32. package/es/types/Enum/TaxSystem.d.ts +2 -0
  33. package/es/types/Enum/TaxSystem.d.ts.map +1 -1
  34. package/es/types/Enum/TaxSystem.js +14 -0
  35. package/es/types/Enum/TaxSystem.js.map +1 -1
  36. package/es/types/Interface/api/appNotification/Update.d.ts +5 -0
  37. package/es/types/Interface/api/appNotification/Update.d.ts.map +1 -0
  38. package/es/types/Interface/api/appNotification/Update.js +25 -0
  39. package/es/types/Interface/api/appNotification/Update.js.map +1 -0
  40. package/es/types/Interface/api/notification/CreateNotification.d.ts +2 -2
  41. package/es/types/Interface/api/notification/CreateNotification.d.ts.map +1 -1
  42. package/es/types/Interface/api/notification/CreateNotification.js +2 -2
  43. package/es/types/Interface/api/notification/CreateNotification.js.map +1 -1
  44. package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.d.ts +2 -2
  45. package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.d.ts.map +1 -1
  46. package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.js +2 -2
  47. package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.js.map +1 -1
  48. package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.d.ts +2 -2
  49. package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.d.ts.map +1 -1
  50. package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.js +2 -2
  51. package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.js.map +1 -1
  52. package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +2 -0
  53. package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
  54. package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
  55. package/es/types/Interface/api/team/QueryCreate.d.ts +5 -0
  56. package/es/types/Interface/api/team/QueryCreate.d.ts.map +1 -0
  57. package/es/types/Interface/api/team/QueryCreate.js +25 -0
  58. package/es/types/Interface/api/team/QueryCreate.js.map +1 -0
  59. package/es/types/Interface/api/team/QueryGetAllWithIncludes.d.ts +5 -0
  60. package/es/types/Interface/api/team/QueryGetAllWithIncludes.d.ts.map +1 -0
  61. package/es/types/Interface/api/team/QueryGetAllWithIncludes.js +28 -0
  62. package/es/types/Interface/api/team/QueryGetAllWithIncludes.js.map +1 -0
  63. package/es/types/Interface/api/team/QueryUpdate.d.ts +7 -0
  64. package/es/types/Interface/api/team/QueryUpdate.d.ts.map +1 -0
  65. package/es/types/Interface/api/team/QueryUpdate.js +38 -0
  66. package/es/types/Interface/api/team/QueryUpdate.js.map +1 -0
  67. package/es/types/Interface/models/IAppNotification.d.ts +19 -0
  68. package/es/types/Interface/models/IAppNotification.d.ts.map +1 -0
  69. package/es/types/Interface/models/IAppNotification.js +2 -0
  70. package/es/types/Interface/models/IAppNotification.js.map +1 -0
  71. package/es/types/Interface/models/IMobileNotificationLog.d.ts +2 -2
  72. package/es/types/Interface/models/IMobileNotificationLog.d.ts.map +1 -1
  73. package/es/types/Interface/models/IMobileNotificationLog.js.map +1 -1
  74. package/es/types/Interface/models/IMobileNotificationSetting.d.ts +2 -2
  75. package/es/types/Interface/models/IMobileNotificationSetting.d.ts.map +1 -1
  76. package/es/types/Interface/models/IMobileNotificationSetting.js.map +1 -1
  77. package/es/types/Interface/models/IUser.d.ts +2 -0
  78. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  79. package/es/types/Interface/models/IUser.js.map +1 -1
  80. package/es/types/Interface/models/IWorkingSchedule.d.ts +2 -0
  81. package/es/types/Interface/models/IWorkingSchedule.d.ts.map +1 -1
  82. package/es/types/Interface/models/IWorkingSchedule.js.map +1 -1
  83. package/es/types/index.d.ts +6 -0
  84. package/es/types/index.d.ts.map +1 -1
  85. package/es/types/index.js +6 -0
  86. package/es/types/index.js.map +1 -1
  87. package/js/api/resources/Notification.js +7 -1
  88. package/js/api/resources/Notification.js.map +1 -1
  89. package/js/api/resources/Team.js +46 -0
  90. package/js/api/resources/Team.js.map +1 -0
  91. package/js/api/resources.js +3 -1
  92. package/js/api/resources.js.map +1 -1
  93. package/js/types/Enum/BrandClementine.js +0 -107
  94. package/js/types/Enum/BrandClementine.js.map +1 -1
  95. package/js/types/Enum/BrandComptalib.js +0 -76
  96. package/js/types/Enum/BrandComptalib.js.map +1 -1
  97. package/js/types/Enum/BrandPourcentage.js +431 -1
  98. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  99. package/js/types/Enum/NotificationType.js +35 -5
  100. package/js/types/Enum/NotificationType.js.map +1 -1
  101. package/js/types/Enum/RemoteType.js +22 -0
  102. package/js/types/Enum/RemoteType.js.map +1 -0
  103. package/js/types/Enum/TaxSystem.js +10 -0
  104. package/js/types/Enum/TaxSystem.js.map +1 -1
  105. package/js/types/Interface/api/appNotification/Update.js +24 -0
  106. package/js/types/Interface/api/appNotification/Update.js.map +1 -0
  107. package/js/types/Interface/api/notification/CreateNotification.js +1 -1
  108. package/js/types/Interface/api/notification/CreateNotification.js.map +1 -1
  109. package/js/types/Interface/api/notificationSetting/CreateNotificationSetting.js +1 -1
  110. package/js/types/Interface/api/notificationSetting/CreateNotificationSetting.js.map +1 -1
  111. package/js/types/Interface/api/notificationSetting/UpdateNotificationSetting.js +1 -1
  112. package/js/types/Interface/api/notificationSetting/UpdateNotificationSetting.js.map +1 -1
  113. package/js/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
  114. package/js/types/Interface/api/team/QueryCreate.js +23 -0
  115. package/js/types/Interface/api/team/QueryCreate.js.map +1 -0
  116. package/js/types/Interface/api/team/QueryGetAllWithIncludes.js +24 -0
  117. package/js/types/Interface/api/team/QueryGetAllWithIncludes.js.map +1 -0
  118. package/js/types/Interface/api/team/QueryUpdate.js +25 -0
  119. package/js/types/Interface/api/team/QueryUpdate.js.map +1 -0
  120. package/js/types/Interface/models/IAppNotification.js +6 -0
  121. package/js/types/Interface/models/IAppNotification.js.map +1 -0
  122. package/js/types/Interface/models/IMobileNotificationLog.js.map +1 -1
  123. package/js/types/Interface/models/IMobileNotificationSetting.js.map +1 -1
  124. package/js/types/Interface/models/IUser.js.map +1 -1
  125. package/js/types/Interface/models/IWorkingSchedule.js.map +1 -1
  126. package/js/types/index.js +66 -6
  127. package/js/types/index.js.map +1 -1
  128. package/package.json +1 -1
  129. package/ts/api/resources/Notification.ts +10 -1
  130. package/ts/api/resources/Team.ts +43 -0
  131. package/ts/api/resources.ts +2 -0
  132. package/ts/types/Enum/BrandClementine.ts +0 -109
  133. package/ts/types/Enum/BrandComptalib.ts +0 -77
  134. package/ts/types/Enum/BrandPourcentage.ts +436 -1
  135. package/ts/types/Enum/NotificationType.ts +43 -2
  136. package/ts/types/Enum/RemoteType.ts +20 -0
  137. package/ts/types/Enum/TaxSystem.ts +18 -1
  138. package/ts/types/Interface/api/appNotification/Update.ts +13 -0
  139. package/ts/types/Interface/api/notification/CreateNotification.ts +3 -3
  140. package/ts/types/Interface/api/notificationSetting/CreateNotificationSetting.ts +3 -3
  141. package/ts/types/Interface/api/notificationSetting/UpdateNotificationSetting.ts +3 -3
  142. package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +2 -0
  143. package/ts/types/Interface/api/team/QueryCreate.ts +13 -0
  144. package/ts/types/Interface/api/team/QueryGetAllWithIncludes.ts +16 -0
  145. package/ts/types/Interface/api/team/QueryUpdate.ts +26 -0
  146. package/ts/types/Interface/models/IAppNotification.ts +21 -0
  147. package/ts/types/Interface/models/IMobileNotificationLog.ts +2 -2
  148. package/ts/types/Interface/models/IMobileNotificationSetting.ts +2 -2
  149. package/ts/types/Interface/models/IUser.ts +2 -0
  150. package/ts/types/Interface/models/IWorkingSchedule.ts +2 -0
  151. package/ts/types/index.ts +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.0.181",
3
+ "version": "1.0.183",
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",
@@ -1,7 +1,16 @@
1
+ import { IAppNotification, UpdateAppNotificationStatus } from '../../types';
1
2
  import { Resource } from '../Resource';
2
3
 
3
4
  export class Notification extends Resource {
4
5
  createTestNotification(idUser: number): Promise<string> {
5
- return this.axios.$post(`/notifications/${idUser}`);
6
+ return this.axios.$post(`/mobile/notifications/${idUser}`);
7
+ }
8
+
9
+ getAllBySociety(id: number): Promise<IAppNotification[]> {
10
+ return this.axios.$get(`societies/${id}/notifications`);
11
+ }
12
+
13
+ updateStatus(params: UpdateAppNotificationStatus): Promise<number> {
14
+ return this.axios.$put('/notifications/status', params);
6
15
  }
7
16
  }
@@ -0,0 +1,43 @@
1
+ import { Resource } from '../Resource';
2
+ import {
3
+ ITeam,
4
+ QueryCreateTeam,
5
+ QueryGetAllTeamsWithIncludes,
6
+ QueryUpdateTeam,
7
+ } from '../../types';
8
+
9
+ export class Team extends Resource {
10
+ /**
11
+ * Should Create a new record in Team table
12
+ * @param { QueryCreateTeam } payload
13
+ * @returns { ITeam }
14
+ */
15
+ create(payload: QueryCreateTeam): Promise<ITeam> {
16
+ return this.axios.$post('/teams', payload);
17
+ }
18
+ /**
19
+ * Should update a record in Team table and in UserTeam table
20
+ * @param { number } id
21
+ * @param { QueryUpdateTeam } payload
22
+ * @returns { ITeam }
23
+ */
24
+ update(id: number, payload: QueryUpdateTeam): Promise<ITeam> {
25
+ return this.axios.$put(`/teams/${id}`, payload);
26
+ }
27
+ /**
28
+ * Should delete a record in Team table
29
+ * @param { number } id
30
+ * @returns { number }
31
+ */
32
+ delete(id: number): Promise<number> {
33
+ return this.axios.$delete(`/teams/${id}`);
34
+ }
35
+ /**
36
+ * Should return all records in Team table with includes
37
+ * @param { QueryGetAllTeamsWithIncludes } params
38
+ * @returns { ITeam[] }
39
+ */
40
+ getAll(params: QueryGetAllTeamsWithIncludes): Promise<ITeam[]> {
41
+ return this.axios.$get('/teams/all', { params });
42
+ }
43
+ }
@@ -123,6 +123,7 @@ import { Prestations } from './resources/Prestations';
123
123
  import { StatisticCustomerSuccess } from './resources/statistic/CustomerSuccess';
124
124
  import { UnpaidCallHistory } from './resources/UnpaidCallHistory';
125
125
  import { CommercialImport } from './resources/CommercialImport';
126
+ import { Team } from './resources/Team';
126
127
 
127
128
  export const resources = {
128
129
  simulation: Simulation,
@@ -250,4 +251,5 @@ export const resources = {
250
251
  prestations: Prestations,
251
252
  unpaidCallHistory: UnpaidCallHistory,
252
253
  commercialImport: CommercialImport,
254
+ team: Team,
253
255
  };
@@ -101,19 +101,6 @@ export const BrandClementine = [
101
101
  listMails: {
102
102
  contact: 'comptastart@legalstart.fr',
103
103
  },
104
- // companyInformation: {
105
- // ape: '5829C',
106
- // bp: '',
107
- // city: 'Paris',
108
- // montantCapital: '11 051,85',
109
- // nomRaisonSociale: 'Yolaw',
110
- // ECOrderCity: 'Nancy',
111
- // phone: '01 76 39 00 60',
112
- // postalAddress: '50, rue d\'Hauteville',
113
- // rcs: '753 892 926',
114
- // statut: 'SAS',
115
- // zipCode: '75 010',
116
- // },
117
104
  companyInformation: {
118
105
  ape: '6920Z',
119
106
  bp: 'BP 31029',
@@ -160,102 +147,6 @@ export const BrandClementine = [
160
147
  email: 'facturation@compta-clementine.fr',
161
148
  },
162
149
  },
163
- {
164
- idTypeBrand: 3,
165
- name: 'BRED',
166
- colors: {
167
- primary: '#24315e',
168
- },
169
- urlApp: 'https://app.compta-clementine.fr',
170
- urlApi1: 'https://api.compta-clementine.fr',
171
- urlApi2: 'https://api-next.compta-clementine.fr',
172
- bank: {
173
- IBAN: 'FR7616106840138646838239863',
174
- BIC: 'AGRIFRPP861',
175
- Name: 'Expertise Choix B',
176
- Id: 'FR91ZZZ617135',
177
- },
178
- },
179
- {
180
- idTypeBrand: 4,
181
- name: 'Pourcentage',
182
- urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-clementine/',
183
- logoS3: 'config/pourcentage-logo.png',
184
- colors: {
185
- primary: '#1e6f5c',
186
- },
187
- listPhones: {
188
- contact: '01 86 90 82 15',
189
- qualite: '01 86 90 82 15',
190
- juridique: '01 86 90 82 15',
191
- },
192
- listMails: {
193
- administratif: 'administratif@pourcentage.fr',
194
- app: 'app@pourcentage.fr',
195
- bonjour: 'bonjour@pourcentage.fr',
196
- contact: 'contact@pourcentage.fr',
197
- facturation: 'facturation@pourcentage.fr',
198
- feedback: 'feedback@pourcentage.fr',
199
- juridique: 'juridique@pourcentage.fr',
200
- informatique: 'informatique@pourcentage.fr',
201
- msd: 'msd@pourcentage.fr',
202
- noreply: 'noreply@pourcentage.fr',
203
- qualite: 'qualite@pourcentage.fr',
204
- paiement: 'paiement@pourcentage.fr',
205
- social: 'social@pourcentage.fr',
206
- support: 'support@pourcentage.fr',
207
- tva: 'tva@pourcentage.fr',
208
- wb: 'wb@pourcentage.fr',
209
- },
210
- companyInformation: {
211
- ape: '6920Z',
212
- bp: '',
213
- city: 'Paris',
214
- montantCapital: '10 000',
215
- nomRaisonSociale: 'POURCENTAGE',
216
- ECName: 'M. Jean-Louis BOICHÉ',
217
- ECOrderCity: 'Nancy',
218
- phone: '01 86 90 82 15',
219
- postalAddress: '30, rue des Mathurins',
220
- rcs: '891 501 181',
221
- statut: 'SAS',
222
- zipCode: '75 008',
223
- },
224
- idPrestationsListAuthorized: [197, 205, 12, 207, 208, 189],
225
- logoUrl: 'logo-pourcentage.svg',
226
- miniLogoUrl: 'logo-pourcentage-mini.svg',
227
- hiddenPages: [],
228
- recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG', // TODO:
229
- urlApp: 'https://app.comptalib.com',
230
- urlApi1: 'https://api.comptalib.com',
231
- urlApi2: 'https://api-next.comptalib.com',
232
- urlExpert: 'https://pro.comptalib.com',
233
- urlClient: 'https://www.pourcentage.fr',
234
- bank: {
235
- IBAN: 'FR7616106840138646838239863',
236
- BIC: 'AGRIFRPP861',
237
- Name: 'Expertise Choix B',
238
- Id: 'FR91ZZZ617135',
239
- },
240
- internalInvoicing: {
241
- statut: 'SASU',
242
- name: 'POURCENTAGE',
243
- address: '9, avenue du Rhin',
244
- zipCode: '54520',
245
- city: 'LAXOU',
246
- country: 'FRANCE',
247
- montantCapital: '10 000',
248
- siret: '89150118100020',
249
- ape: '6920Z',
250
- rcs: '891 501 181',
251
- phone: '03 83 93 14 14',
252
- vatIntracom: 'FR58891501181',
253
- email: 'facturation@pourcentage.fr',
254
- },
255
- webmail: {
256
- domain: '@pourcentage.fr',
257
- },
258
- },
259
150
  {
260
151
  idTypeBrand: 5,
261
152
  name: 'Kandbaz',
@@ -218,81 +218,4 @@ export const BrandComptalib = [
218
218
  domain: '@lecomptablefrancais.fr',
219
219
  },
220
220
  },
221
- {
222
- idTypeBrand: 4,
223
- name: 'AEC54',
224
- urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-comptalib/',
225
- logoS3: 'config/logo-aec.png',
226
- colors: {
227
- primary: '#6900AE',
228
- },
229
- listPhones: {
230
- contact: '03 83 25 82 20',
231
- qualite: '03 83 25 82 20',
232
- juridique: '03 83 25 82 20',
233
- },
234
- listMails: {
235
- administratif: 'bonjour@aec54.com',
236
- app: 'bonjour@aec54.com',
237
- bonjour: 'bonjour@aec54.com',
238
- contact: 'bonjour@aec54.com',
239
- facturation: 'bonjour@aec54.com',
240
- feedback: 'bonjour@aec54.com',
241
- juridique: 'bonjour@aec54.com',
242
- informatique: 'bonjour@aec54.com',
243
- msd: 'bonjour@aec54.com',
244
- noreply: 'bonjour@aec54.com',
245
- qualite: 'bonjour@aec54.com',
246
- paiement: 'bonjour@aec54.com',
247
- social: 'bonjour@aec54.com',
248
- support: 'bonjour@aec54.com',
249
- tva: 'bonjour@aec54.com',
250
- wb: 'bonjour@aec54.com',
251
- },
252
- companyInformation: {
253
- ape: '6920Z',
254
- bp: '',
255
- city: 'Laxou',
256
- montantCapital: '7 622',
257
- nomRaisonSociale: 'AEC',
258
- ECName: 'M. Jean-Louis BOICHÉ',
259
- ECOrderCity: 'Nancy',
260
- phone: '03 83 25 82 20',
261
- postalAddress: '9 avenue du Rhin 54520 LAXOU',
262
- rcs: '315 519 587',
263
- statut: 'SARL',
264
- zipCode: '54 520',
265
- },
266
- idPrestationsListAuthorized: [197, 205],
267
- logoUrl: 'logo-aec.png',
268
- miniLogoUrl: 'logo-aec.png',
269
- hiddenPages: [],
270
- recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
271
- urlApp: 'https://app.aec54.com',
272
- urlApi1: 'https://api.comptalib.com',
273
- urlApi2: 'https://api-next.comptalib.com',
274
- urlExpert: 'https://pro.comptalib.com',
275
- urlClient: 'https://www.aec54.com/',
276
- bank: {
277
- IBAN: '',
278
- BIC: '',
279
- Name: '',
280
- Id: '',
281
- },
282
- internalInvoicing: {
283
- statut: 'SARL',
284
- name: 'AEC',
285
- address: '9, avenue du Rhin',
286
- zipCode: '54520',
287
- city: 'LAXOU',
288
- country: 'FRANCE',
289
- montantCapital: '7 622',
290
- siret: '31551958700069',
291
- ape: '6920Z',
292
- rcs: '315 519 587',
293
- phone: '03 83 25 82 20',
294
- vatIntracom: 'FR84315519587',
295
- email: 'bonjour@aec54.com',
296
- },
297
- },
298
221
  ];