@silexpert/core 1.0.181 → 1.0.182

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/es/api/resources/Team.d.ts +30 -0
  2. package/es/api/resources/Team.d.ts.map +1 -0
  3. package/es/api/resources/Team.js +37 -0
  4. package/es/api/resources/Team.js.map +1 -0
  5. package/es/api/resources.d.ts +2 -0
  6. package/es/api/resources.d.ts.map +1 -1
  7. package/es/api/resources.js +2 -0
  8. package/es/api/resources.js.map +1 -1
  9. package/es/types/Enum/BrandClementine.d.ts +0 -126
  10. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  11. package/es/types/Enum/BrandClementine.js +0 -109
  12. package/es/types/Enum/BrandClementine.js.map +1 -1
  13. package/es/types/Enum/BrandComptalib.d.ts +0 -83
  14. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  15. package/es/types/Enum/BrandComptalib.js +0 -77
  16. package/es/types/Enum/BrandComptalib.js.map +1 -1
  17. package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
  18. package/es/types/Enum/BrandPourcentage.js +436 -1
  19. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  20. package/es/types/Enum/RemoteType.d.ts +10 -0
  21. package/es/types/Enum/RemoteType.d.ts.map +1 -0
  22. package/es/types/Enum/RemoteType.js +21 -0
  23. package/es/types/Enum/RemoteType.js.map +1 -0
  24. package/es/types/Enum/TaxSystem.d.ts +2 -0
  25. package/es/types/Enum/TaxSystem.d.ts.map +1 -1
  26. package/es/types/Enum/TaxSystem.js +14 -0
  27. package/es/types/Enum/TaxSystem.js.map +1 -1
  28. package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +2 -0
  29. package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
  30. package/es/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
  31. package/es/types/Interface/api/team/QueryCreate.d.ts +5 -0
  32. package/es/types/Interface/api/team/QueryCreate.d.ts.map +1 -0
  33. package/es/types/Interface/api/team/QueryCreate.js +25 -0
  34. package/es/types/Interface/api/team/QueryCreate.js.map +1 -0
  35. package/es/types/Interface/api/team/QueryGetAllWithIncludes.d.ts +5 -0
  36. package/es/types/Interface/api/team/QueryGetAllWithIncludes.d.ts.map +1 -0
  37. package/es/types/Interface/api/team/QueryGetAllWithIncludes.js +28 -0
  38. package/es/types/Interface/api/team/QueryGetAllWithIncludes.js.map +1 -0
  39. package/es/types/Interface/api/team/QueryUpdate.d.ts +7 -0
  40. package/es/types/Interface/api/team/QueryUpdate.d.ts.map +1 -0
  41. package/es/types/Interface/api/team/QueryUpdate.js +38 -0
  42. package/es/types/Interface/api/team/QueryUpdate.js.map +1 -0
  43. package/es/types/Interface/models/IUser.d.ts +2 -0
  44. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  45. package/es/types/Interface/models/IUser.js.map +1 -1
  46. package/es/types/Interface/models/IWorkingSchedule.d.ts +2 -0
  47. package/es/types/Interface/models/IWorkingSchedule.d.ts.map +1 -1
  48. package/es/types/Interface/models/IWorkingSchedule.js.map +1 -1
  49. package/es/types/index.d.ts +4 -0
  50. package/es/types/index.d.ts.map +1 -1
  51. package/es/types/index.js +4 -0
  52. package/es/types/index.js.map +1 -1
  53. package/js/api/resources/Team.js +46 -0
  54. package/js/api/resources/Team.js.map +1 -0
  55. package/js/api/resources.js +3 -1
  56. package/js/api/resources.js.map +1 -1
  57. package/js/types/Enum/BrandClementine.js +0 -107
  58. package/js/types/Enum/BrandClementine.js.map +1 -1
  59. package/js/types/Enum/BrandComptalib.js +0 -76
  60. package/js/types/Enum/BrandComptalib.js.map +1 -1
  61. package/js/types/Enum/BrandPourcentage.js +431 -1
  62. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  63. package/js/types/Enum/RemoteType.js +22 -0
  64. package/js/types/Enum/RemoteType.js.map +1 -0
  65. package/js/types/Enum/TaxSystem.js +10 -0
  66. package/js/types/Enum/TaxSystem.js.map +1 -1
  67. package/js/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
  68. package/js/types/Interface/api/team/QueryCreate.js +23 -0
  69. package/js/types/Interface/api/team/QueryCreate.js.map +1 -0
  70. package/js/types/Interface/api/team/QueryGetAllWithIncludes.js +24 -0
  71. package/js/types/Interface/api/team/QueryGetAllWithIncludes.js.map +1 -0
  72. package/js/types/Interface/api/team/QueryUpdate.js +25 -0
  73. package/js/types/Interface/api/team/QueryUpdate.js.map +1 -0
  74. package/js/types/Interface/models/IUser.js.map +1 -1
  75. package/js/types/Interface/models/IWorkingSchedule.js.map +1 -1
  76. package/js/types/index.js +46 -6
  77. package/js/types/index.js.map +1 -1
  78. package/package.json +1 -1
  79. package/ts/api/resources/Team.ts +43 -0
  80. package/ts/api/resources.ts +2 -0
  81. package/ts/types/Enum/BrandClementine.ts +0 -109
  82. package/ts/types/Enum/BrandComptalib.ts +0 -77
  83. package/ts/types/Enum/BrandPourcentage.ts +436 -1
  84. package/ts/types/Enum/RemoteType.ts +20 -0
  85. package/ts/types/Enum/TaxSystem.ts +18 -1
  86. package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +2 -0
  87. package/ts/types/Interface/api/team/QueryCreate.ts +13 -0
  88. package/ts/types/Interface/api/team/QueryGetAllWithIncludes.ts +16 -0
  89. package/ts/types/Interface/api/team/QueryUpdate.ts +26 -0
  90. package/ts/types/Interface/models/IUser.ts +2 -0
  91. package/ts/types/Interface/models/IWorkingSchedule.ts +2 -0
  92. package/ts/types/index.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.0.181",
3
+ "version": "1.0.182",
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",
@@ -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
  ];