@silexpert/core 1.1.151 → 1.1.153

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 (152) hide show
  1. package/dist/cjs/api/resources/Facturation.d.ts +3 -1
  2. package/dist/cjs/api/resources/Facturation.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Facturation.js +8 -0
  4. package/dist/cjs/api/resources/Facturation.js.map +1 -1
  5. package/dist/cjs/api/resources/KilometricAllowance.d.ts +2 -1
  6. package/dist/cjs/api/resources/KilometricAllowance.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/KilometricAllowance.js +3 -0
  8. package/dist/cjs/api/resources/KilometricAllowance.js.map +1 -1
  9. package/dist/cjs/api/resources/SalesContract.d.ts +6 -5
  10. package/dist/cjs/api/resources/SalesContract.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/SalesContract.js +32 -16
  12. package/dist/cjs/api/resources/SalesContract.js.map +1 -1
  13. package/dist/cjs/api/resources/ThirdParty.d.ts +1 -0
  14. package/dist/cjs/api/resources/ThirdParty.d.ts.map +1 -1
  15. package/dist/cjs/api/resources/ThirdParty.js +4 -0
  16. package/dist/cjs/api/resources/ThirdParty.js.map +1 -1
  17. package/dist/cjs/types/Enum/BrandClementine.d.ts +4 -18
  18. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/BrandClementine.js +79 -91
  20. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  21. package/dist/cjs/types/Enum/BrandComptalib.d.ts +3 -0
  22. package/dist/cjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/BrandComptalib.js +1 -0
  24. package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
  25. package/dist/cjs/types/Enum/BrandLegalstart.d.ts +1 -0
  26. package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  27. package/dist/cjs/types/Enum/BrandLegalstart.js +1 -0
  28. package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
  29. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +214 -0
  30. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  31. package/dist/cjs/types/Enum/BrandPourcentage.js +162 -0
  32. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  33. package/dist/cjs/types/Enum/Ged.d.ts +3 -1
  34. package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
  35. package/dist/cjs/types/Enum/Ged.js +4 -0
  36. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  37. package/dist/cjs/types/Enum/PrestationType.d.ts +4 -1
  38. package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
  39. package/dist/cjs/types/Enum/PrestationType.js +54 -0
  40. package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
  41. package/dist/cjs/types/Enum/SalesContractConfig.d.ts +13 -4
  42. package/dist/cjs/types/Enum/SalesContractConfig.d.ts.map +1 -1
  43. package/dist/cjs/types/Enum/SalesContractConfig.js +64 -0
  44. package/dist/cjs/types/Enum/SalesContractConfig.js.map +1 -1
  45. package/dist/cjs/types/Interface/api/cashAndExpense/Query.d.ts +7 -0
  46. package/dist/cjs/types/Interface/api/cashAndExpense/Query.d.ts.map +1 -0
  47. package/dist/cjs/types/Interface/api/cashAndExpense/Query.js +42 -0
  48. package/dist/cjs/types/Interface/api/cashAndExpense/Query.js.map +1 -0
  49. package/dist/cjs/types/Interface/api/facturation/Query.d.ts +6 -0
  50. package/dist/cjs/types/Interface/api/facturation/Query.d.ts.map +1 -1
  51. package/dist/cjs/types/Interface/api/facturation/Query.js +22 -1
  52. package/dist/cjs/types/Interface/api/facturation/Query.js.map +1 -1
  53. package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts +6 -0
  54. package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts.map +1 -1
  55. package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.js +23 -1
  56. package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.js.map +1 -1
  57. package/dist/cjs/types/Interface/models/IAccountingTransaction.d.ts +2 -0
  58. package/dist/cjs/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  59. package/dist/cjs/types/Interface/models/IAccountingTransaction.js.map +1 -1
  60. package/dist/cjs/types/index.d.ts +1 -0
  61. package/dist/cjs/types/index.d.ts.map +1 -1
  62. package/dist/cjs/types/index.js +1 -0
  63. package/dist/cjs/types/index.js.map +1 -1
  64. package/dist/cjs/utils/brands.d.ts +3 -2
  65. package/dist/cjs/utils/brands.d.ts.map +1 -1
  66. package/dist/cjs/utils/brands.js +15 -4
  67. package/dist/cjs/utils/brands.js.map +1 -1
  68. package/dist/mjs/api/resources/Facturation.d.ts +3 -1
  69. package/dist/mjs/api/resources/Facturation.d.ts.map +1 -1
  70. package/dist/mjs/api/resources/Facturation.js +8 -0
  71. package/dist/mjs/api/resources/Facturation.js.map +1 -1
  72. package/dist/mjs/api/resources/KilometricAllowance.d.ts +2 -1
  73. package/dist/mjs/api/resources/KilometricAllowance.d.ts.map +1 -1
  74. package/dist/mjs/api/resources/KilometricAllowance.js +6 -0
  75. package/dist/mjs/api/resources/KilometricAllowance.js.map +1 -1
  76. package/dist/mjs/api/resources/SalesContract.d.ts +6 -5
  77. package/dist/mjs/api/resources/SalesContract.d.ts.map +1 -1
  78. package/dist/mjs/api/resources/SalesContract.js +32 -15
  79. package/dist/mjs/api/resources/SalesContract.js.map +1 -1
  80. package/dist/mjs/api/resources/ThirdParty.d.ts +1 -0
  81. package/dist/mjs/api/resources/ThirdParty.d.ts.map +1 -1
  82. package/dist/mjs/api/resources/ThirdParty.js +4 -0
  83. package/dist/mjs/api/resources/ThirdParty.js.map +1 -1
  84. package/dist/mjs/types/Enum/BrandClementine.d.ts +4 -18
  85. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  86. package/dist/mjs/types/Enum/BrandClementine.js +79 -91
  87. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  88. package/dist/mjs/types/Enum/BrandComptalib.d.ts +3 -0
  89. package/dist/mjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  90. package/dist/mjs/types/Enum/BrandComptalib.js +1 -0
  91. package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
  92. package/dist/mjs/types/Enum/BrandLegalstart.d.ts +1 -0
  93. package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  94. package/dist/mjs/types/Enum/BrandLegalstart.js +1 -0
  95. package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
  96. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +214 -0
  97. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  98. package/dist/mjs/types/Enum/BrandPourcentage.js +162 -0
  99. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  100. package/dist/mjs/types/Enum/Ged.d.ts +3 -1
  101. package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
  102. package/dist/mjs/types/Enum/Ged.js +4 -0
  103. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  104. package/dist/mjs/types/Enum/PrestationType.d.ts +4 -1
  105. package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
  106. package/dist/mjs/types/Enum/PrestationType.js +54 -0
  107. package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
  108. package/dist/mjs/types/Enum/SalesContractConfig.d.ts +13 -4
  109. package/dist/mjs/types/Enum/SalesContractConfig.d.ts.map +1 -1
  110. package/dist/mjs/types/Enum/SalesContractConfig.js +68 -1
  111. package/dist/mjs/types/Enum/SalesContractConfig.js.map +1 -1
  112. package/dist/mjs/types/Interface/api/cashAndExpense/Query.d.ts +7 -0
  113. package/dist/mjs/types/Interface/api/cashAndExpense/Query.d.ts.map +1 -0
  114. package/dist/mjs/types/Interface/api/cashAndExpense/Query.js +42 -0
  115. package/dist/mjs/types/Interface/api/cashAndExpense/Query.js.map +1 -0
  116. package/dist/mjs/types/Interface/api/facturation/Query.d.ts +6 -0
  117. package/dist/mjs/types/Interface/api/facturation/Query.d.ts.map +1 -1
  118. package/dist/mjs/types/Interface/api/facturation/Query.js +26 -2
  119. package/dist/mjs/types/Interface/api/facturation/Query.js.map +1 -1
  120. package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts +6 -0
  121. package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts.map +1 -1
  122. package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.js +25 -0
  123. package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.js.map +1 -1
  124. package/dist/mjs/types/Interface/models/IAccountingTransaction.d.ts +2 -0
  125. package/dist/mjs/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  126. package/dist/mjs/types/Interface/models/IAccountingTransaction.js.map +1 -1
  127. package/dist/mjs/types/index.d.ts +1 -0
  128. package/dist/mjs/types/index.d.ts.map +1 -1
  129. package/dist/mjs/types/index.js +1 -0
  130. package/dist/mjs/types/index.js.map +1 -1
  131. package/dist/mjs/utils/brands.d.ts +3 -2
  132. package/dist/mjs/utils/brands.d.ts.map +1 -1
  133. package/dist/mjs/utils/brands.js +14 -4
  134. package/dist/mjs/utils/brands.js.map +1 -1
  135. package/package.json +1 -1
  136. package/ts/api/resources/Facturation.ts +10 -1
  137. package/ts/api/resources/KilometricAllowance.ts +8 -1
  138. package/ts/api/resources/SalesContract.ts +33 -17
  139. package/ts/api/resources/ThirdParty.ts +5 -0
  140. package/ts/types/Enum/BrandClementine.ts +79 -91
  141. package/ts/types/Enum/BrandComptalib.ts +1 -0
  142. package/ts/types/Enum/BrandLegalstart.ts +1 -0
  143. package/ts/types/Enum/BrandPourcentage.ts +162 -0
  144. package/ts/types/Enum/Ged.ts +4 -0
  145. package/ts/types/Enum/PrestationType.ts +54 -0
  146. package/ts/types/Enum/SalesContractConfig.ts +41 -6
  147. package/ts/types/Interface/api/cashAndExpense/Query.ts +24 -0
  148. package/ts/types/Interface/api/facturation/Query.ts +19 -2
  149. package/ts/types/Interface/api/salesContract/SendSalesContractParams.ts +17 -0
  150. package/ts/types/Interface/models/IAccountingTransaction.ts +2 -0
  151. package/ts/types/index.ts +1 -0
  152. package/ts/utils/brands.ts +16 -4
@@ -1,7 +1,7 @@
1
1
  import { CancelToken } from 'axios';
2
2
  import { Resource } from '../Resource';
3
3
  import {
4
- BasePaginate, CreateRebilling, IBillingHistory, QueryPaginatedBillingHistory, QueryPaginatedRebilling, QueryPaginatedSocietyWithFacturation,
4
+ BasePaginate, CreateRebilling, CreateRecommanded, IBillingHistory, QueryPaginatedBillingHistory, QueryPaginatedRebilling, QueryPaginatedSocietyWithFacturation,
5
5
  } from '../../types';
6
6
  import { Society } from './Society';
7
7
 
@@ -30,4 +30,13 @@ export class Facturation extends Resource {
30
30
  createRebilling(payload: CreateRebilling): Promise<IBillingHistory> {
31
31
  return this.axios.$post('/facturation/rebilling', payload);
32
32
  }
33
+
34
+ createRecommanded(params: CreateRecommanded): Promise<Buffer> {
35
+ return this.axios.$post('/facturation/recommanded', params, {
36
+ responseType: 'arraybuffer',
37
+ headers: {
38
+ Accept: 'application/pdf',
39
+ },
40
+ });
41
+ }
33
42
  }
@@ -1,8 +1,15 @@
1
1
  import { Resource } from '../Resource';
2
- import { CreateKilometricAllowanceValidation } from '../../types';
2
+ import { BasePaginate, CreateKilometricAllowanceValidation, IAccountingTransaction, QueryKilometricAllowance } from '../../types';
3
3
 
4
4
  export class KilometricAllowance extends Resource {
5
5
  validate(idExercice: number, payload: CreateKilometricAllowanceValidation): Promise<boolean> {
6
6
  return this.axios.$post(`/exercice/${idExercice}/kilometric-allowance/validate`, payload);
7
7
  }
8
+
9
+ getPaginated(idSociety: number, params: QueryKilometricAllowance, signal?: AbortSignal): Promise<BasePaginate<IAccountingTransaction>> {
10
+ return this.axios.$get(`/societies/${idSociety}/kilometric-allowances`, {
11
+ params,
12
+ ...(signal ? { signal } : {}),
13
+ });
14
+ }
8
15
  }
@@ -1,22 +1,22 @@
1
1
  import { Resource } from '../Resource';
2
- import { SalesContractContent, SalesContractConfigVersion, SendSalesContractParams } from '../../types';
2
+ import { SalesContractContent, SalesContractConfigVersion, SendSalesContractParams, ParamsPreviewContract, SendMandateParams } from '../../types';
3
3
 
4
4
  export class SalesContract extends Resource {
5
- getConfigFile(): Promise<SalesContractContent[]> {
6
- return this.axios.$get('sales-contracts/config');
5
+ getConfigFile(idTypeBrand?: number): Promise<SalesContractContent[]> {
6
+ return this.axios.$get('sales-contracts/config', { params: { idTypeBrand } });
7
7
  }
8
8
 
9
- getConfigVersions() : Promise<SalesContractConfigVersion[]> {
10
- return this.axios.$get('sales-contracts/config/versions');
9
+ getConfigVersions(idTypeBrand?: number) : Promise<SalesContractConfigVersion[]> {
10
+ return this.axios.$get('sales-contracts/config/versions', { params: { idTypeBrand } });
11
11
  }
12
12
 
13
- preview(idPrestationList: number, versionId: string): Promise<string> {
14
- return this.axios.$get('sales-contracts/preview', { params: { idPrestationList, versionId } });
13
+ preview(params: ParamsPreviewContract): Promise<string> {
14
+ return this.axios.$get('sales-contracts/preview', { params });
15
15
  }
16
16
 
17
- downloadPreview(idPrestationList: number, versionId: string): Promise<void> {
17
+ downloadPreview(params: ParamsPreviewContract): Promise<void> {
18
18
  return this.axios.$get('sales-contracts/preview/pdf', {
19
- params: { idPrestationList, versionId },
19
+ params,
20
20
  responseType: 'arraybuffer',
21
21
  headers: {
22
22
  Accept: 'application/pdf',
@@ -38,17 +38,33 @@ export class SalesContract extends Resource {
38
38
 
39
39
  sendByEmailWithSignature(params: SendSalesContractParams): Promise<true> {
40
40
  const formData = new FormData();
41
- Object.entries(params).forEach(entry => {
42
- const [key, value] = entry;
43
- if (value || value === 0) {
44
- formData.append(key, `${value}`);
41
+ Object.entries(params).forEach(([key, value]) => {
42
+ if (value || value === false || value === 0) {
43
+ if (key === 'files') {
44
+ value.forEach((file: File) => {
45
+ formData.append('files', file);
46
+ });
47
+ } else
48
+ formData.append(key, `${value}`);
45
49
  }
46
50
  });
47
51
 
48
- params.files?.forEach((file) => {
49
- formData.append('files', file);
50
- });
51
-
52
52
  return this.axios.$post('sales-contracts/send', formData);
53
53
  }
54
+
55
+ sendMandateByEmail(params: SendMandateParams): Promise<true> {
56
+ const formData = new FormData();
57
+ Object.entries(params).forEach(([key, value]) => {
58
+ if (value || value === false || value === 0) {
59
+ if (key === 'files') {
60
+ value.forEach((file: File) => {
61
+ formData.append('files', file);
62
+ });
63
+ } else
64
+ formData.append(key, `${value}`);
65
+ }
66
+ });
67
+
68
+ return this.axios.$post('sales-contracts/send/mandate', formData);
69
+ }
54
70
  }
@@ -37,10 +37,15 @@ export class ThirdParty extends Resource {
37
37
  return this.axios.$put(`/third-parties/${idThirdParty}`, payload);
38
38
  }
39
39
 
40
+ // FIXME: Endpoint à ne plus utiliser, à supprimer une fois app mobile + app mise à jour
40
41
  create(payload: CreateThirdPartyForm): Promise<IThirdParty> {
41
42
  return this.axios.$post('/third-parties', payload);
42
43
  }
43
44
 
45
+ createForSociety(idSociety: number, payload: CreateThirdPartyForm): Promise<IThirdParty> {
46
+ return this.axios.$post(`/societies/${idSociety}/third-parties`, payload);
47
+ }
48
+
44
49
  delete(idThirdParty: number): Promise<true> {
45
50
  return this.axios.$delete(`/third-parties/${idThirdParty}`);
46
51
  }
@@ -48,6 +48,7 @@ export const BrandClementine = [
48
48
  nomRaisonSociale: 'EXPERTISE CHOIX B',
49
49
  ECName: 'M. Jean-Louis BOICHÉ',
50
50
  ECOrderCity: 'Nancy',
51
+ ECPosition: 'Président',
51
52
  phone: '03 83 93 14 14',
52
53
  postalAddress: '9, avenue du Rhin',
53
54
  rcs: '752 566 687',
@@ -358,22 +359,6 @@ export const BrandClementine = [
358
359
  vatIntracom: 'FR47752566687',
359
360
  email: 'facturation@compta-clementine.fr',
360
361
  },
361
- salesContractConfig: [
362
- {
363
- label: 'Page d\'introduction',
364
- name: 'page_intro',
365
- needBgImage: true,
366
- versionable: false,
367
- idPrestationType: allPrestationsWithBrochure,
368
- },
369
- {
370
- label: 'Page chiffres',
371
- name: 'page_numbers',
372
- needBgImage: true,
373
- versionable: false,
374
- idPrestationType: allPrestationsWithBrochure,
375
- },
376
- ],
377
362
  },
378
363
  {
379
364
  idTypeBrand: 4,
@@ -438,6 +423,39 @@ export const BrandClementine = [
438
423
  vatIntracom: 'FR47752566687',
439
424
  email: 'facturation@compta-clementine.fr',
440
425
  },
426
+ },
427
+ {
428
+ idTypeBrand: 6,
429
+ name: 'Klems',
430
+ commercialName: 'Klems',
431
+ urlApp: 'https://klems.fr',
432
+ urlApi1: 'https://api.compta-clementine.fr',
433
+ urlApi2: 'https://api-next.compta-clementine.fr',
434
+ urlClient: 'https://www.klems.fr',
435
+ bank: {
436
+ IBAN: 'FR7616106840138646838239863',
437
+ BIC: 'AGRIFRPP861',
438
+ Name: 'Expertise Choix B',
439
+ Id: 'FR91ZZZ617135',
440
+ },
441
+ colors: {
442
+ primary: '#38A1FF',
443
+ },
444
+ internalInvoicing: {
445
+ statut: 'SAS',
446
+ name: 'EXPERTISE CHOIX B',
447
+ address: '9, avenue du Rhin',
448
+ zipCode: '54520',
449
+ city: 'LAXOU',
450
+ country: 'FRANCE',
451
+ montantCapital: '500 000',
452
+ siret: '752566687',
453
+ ape: '6920Z',
454
+ rcs: '752 566 687',
455
+ phone: '03 83 93 14 14',
456
+ vatIntracom: 'FR47752566687',
457
+ email: 'facturation@compta-clementine.fr',
458
+ },
441
459
  salesContractConfig: [
442
460
  // pour les pages statiques
443
461
  {
@@ -445,168 +463,138 @@ export const BrandClementine = [
445
463
  name: 'page_intro',
446
464
  needBgImage: true,
447
465
  versionable: false,
448
- idPrestationType: allPrestationsWithBrochure,
466
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
449
467
  },
450
468
  {
451
469
  label: 'Page chiffres',
452
470
  name: 'page_numbers',
453
471
  needBgImage: true,
454
472
  versionable: false,
455
- idPrestationType: allPrestationsWithBrochure,
473
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
456
474
  },
457
475
  {
458
476
  label: 'Page simplifié',
459
477
  name: 'page_simplified',
460
478
  needBgImage: true,
461
479
  versionable: false,
462
- idPrestationType: allPrestationsWithBrochure,
480
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
463
481
  },
464
482
  {
465
483
  label: 'Détail de la lettre de mission',
466
484
  name: 'page_detail_ldm',
467
485
  needBgImage: false,
468
486
  versionable: false,
469
- idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations non express
487
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS].includes(p.id!)).map(({ id }) => id), // Prestations non express
470
488
  },
471
489
  {
472
490
  label: 'Détail de la lettre de mission (express)',
473
491
  name: 'page_detail_ldm_back',
474
492
  needBgImage: false,
475
493
  versionable: false,
476
- idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack === true && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations express
477
- },
478
- // pour les pages dynamiques
479
- {
480
- label: 'Compta Pro',
481
- name: 'bloc_compta_pro',
482
- needBgImage: false,
483
- versionable: true,
484
- idPrestationType: [PrestationType.COMPTA_PRO, PrestationType.COMPTA_PRO_EXPRESS],
485
- keyName: 'isWithApplicationFees',
486
- },
487
- {
488
- label: 'Compta Entreprise',
489
- name: 'bloc_compta_entreprise',
490
- needBgImage: false,
491
- versionable: true,
492
- keyName: 'isWithApplicationFees',
493
- idPrestationType: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS, PrestationType.COMPTA_STARTER_ENTREPRISE],
494
- condition: (turnover: number): boolean => turnover < 900000,
495
- },
496
- {
497
- label: 'Compta Entreprise sur mesure',
498
- name: 'bloc_compta_entreprise_sm',
499
- needBgImage: false,
500
- versionable: true,
501
- keyName: 'isWithApplicationFees',
502
- idPrestationType: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS, PrestationType.COMPTA_STARTER_ENTREPRISE],
503
- condition: (turnover: number): boolean => turnover >= 900000,
494
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS].includes(p.id!)).map(({ id }) => id), // Prestations express
504
495
  },
505
496
  {
506
- label: 'Compta Micro',
497
+ label: 'Forfait Expertise Micro',
507
498
  name: 'bloc_compta_micro',
508
499
  needBgImage: false,
509
- versionable: true,
510
- idPrestationType: [PrestationType.COMPTA_MICRO, PrestationType.COMPTA_MICRO_EXPRESS],
511
- keyName: 'isWithApplicationFees',
500
+ versionable: false,
501
+ idPrestationType: [PrestationType.COMPTA_MICRO_KLEMS],
512
502
  },
513
503
  {
514
- label: 'Compta SCI',
515
- name: 'bloc_compta_sci',
504
+ label: 'Forfait Expertise Entreprise individuelle',
505
+ name: 'bloc_entreprise_individuelle',
516
506
  needBgImage: false,
517
- versionable: true,
518
- idPrestationType: [PrestationType.COMPTA_SCI, PrestationType.COMPTA_SCI_EXPRESS],
519
- keyName: 'isWithApplicationFees',
507
+ versionable: false,
508
+ idPrestationType: [PrestationType.COMPTA_EI_KLEMS],
520
509
  },
521
510
  {
522
- label: 'Forfait social',
523
- name: 'bloc_social',
511
+ label: 'Forfait Expertise Loueur meublé non pro',
512
+ name: 'bloc_compta_loueur_meuble_non_pro',
524
513
  needBgImage: false,
525
- versionable: true,
526
- idPrestationType: allPrestationsWithBrochure,
527
- keyName: 'idPrestationSocial',
514
+ versionable: false,
515
+ idPrestationType: [PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
528
516
  },
529
517
  {
530
- label: 'Forfait création société',
531
- name: 'bloc_creation',
532
- idPrestationType: allPrestationsWithBrochure,
518
+ label: 'Forfait social (TTC)',
519
+ name: 'bloc_social_ttc',
533
520
  needBgImage: false,
534
521
  versionable: true,
535
- keyName: 'idPrestationCreation',
522
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
523
+ keyName: 'idPrestationSocial',
536
524
  },
537
525
  {
538
- label: 'Forfait création société (Création d\'entreprise gratuite)',
539
- name: 'bloc_creation_free',
540
- idPrestationType: allPrestationsWithBrochure,
526
+ label: 'Forfait social (HT)',
527
+ name: 'bloc_social_ht',
541
528
  needBgImage: false,
542
529
  versionable: true,
543
- keyName: 'idPrestationCreation',
530
+ idPrestationType: [PrestationType.COMPTA_EI_KLEMS],
531
+ keyName: 'idPrestationSocial',
544
532
  },
545
533
  {
546
- label: 'Forfait approbation des comptes annuels',
547
- name: 'bloc_annual_accounts',
534
+ label: 'Forfait Création d\'entreprise (TTC)',
535
+ name: 'bloc_creation_entreprise_ttc',
536
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
548
537
  needBgImage: false,
549
- idPrestationType: allPrestationsWithBrochure,
550
538
  versionable: true,
551
- keyName: 'idPrestationJuridique',
539
+ keyName: 'isWithApplicationFees',
552
540
  },
553
541
  {
554
- label: 'Prise en charge de votre déclaration d\'impôts sur le revenu 249€ HT/an',
555
- name: 'bloc_tax_return',
542
+ label: 'Forfait Création d\'entreprise (HT)',
543
+ name: 'bloc_creation_entreprise_ht',
544
+ idPrestationType:[PrestationType.COMPTA_EI_KLEMS],
556
545
  needBgImage: false,
557
- idPrestationType: allPrestationsWithBrochure,
558
546
  versionable: true,
559
- keyName: 'idPrestationSocial',
547
+ keyName: 'isWithApplicationFees',
560
548
  },
561
549
  {
562
- label: 'Accompagnement contrôle fiscal à 149€ HT/ exercice',
563
- name: 'bloc_tax_audit',
550
+ label: 'Accompagnement contrôle fiscal (TTC)',
551
+ name: 'bloc_tax_audit_ttc',
564
552
  needBgImage: false,
565
- idPrestationType: allPrestationsWithBrochure,
566
553
  versionable: true,
567
- keyName: 'idPrestationSocial',
554
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
555
+ keyName: 'idPrestationControleFiscal',
568
556
  },
569
557
  {
570
- label: 'Bilan Prévisionnel',
571
- name: 'bloc_bilan_previsionnel',
558
+ label: 'Accompagnement contrôle fiscal (HT)',
559
+ name: 'bloc_tax_audit_ht',
572
560
  needBgImage: false,
573
- idPrestationType: [PrestationType.CREATION_SOCIETE, PrestationType.BILAN_PREVISIONNEL],
561
+ idPrestationType: [PrestationType.COMPTA_EI_KLEMS],
574
562
  versionable: true,
575
- keyName: 'prestationOptions',
563
+ keyName: 'idPrestationControleFiscal',
576
564
  },
577
565
  {
578
566
  label: 'Signature',
579
567
  name: 'bloc_sign',
580
568
  needBgImage: false,
581
- idPrestationType: allPrestationsWithBrochure,
569
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
582
570
  versionable: false,
583
571
  },
584
572
  {
585
573
  label: 'Conditions Générals de Vente (CGV) 1/2',
586
574
  name: 'bloc_cgv_first',
587
575
  needBgImage: false,
588
- idPrestationType: allPrestationsWithBrochure,
576
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
589
577
  versionable: false,
590
578
  },
591
579
  {
592
580
  label: 'Conditions Générals de Vente (CGV) 2/2',
593
581
  name: 'bloc_cgv_second',
594
582
  needBgImage: false,
595
- idPrestationType: allPrestationsWithBrochure,
583
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
596
584
  versionable: false,
597
585
  },
598
586
  {
599
587
  label: 'Mandat de prélèvement SEPA',
600
588
  name: 'bloc_sepa',
601
589
  needBgImage: false,
602
- idPrestationType: allPrestationsWithBrochure,
590
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
603
591
  versionable: false,
604
592
  },
605
593
  {
606
594
  label: 'Pièces à nous envoyer',
607
595
  name: 'bloc_send_files',
608
596
  needBgImage: false,
609
- idPrestationType: allPrestationsWithBrochure,
597
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
610
598
  versionable: false,
611
599
  },
612
600
  ],
@@ -117,6 +117,7 @@ export const BrandComptalib = [
117
117
  nomRaisonSociale: 'POURCENTAGE',
118
118
  ECName: 'M. Jean-Louis BOICHÉ',
119
119
  ECOrderCity: 'Nancy',
120
+ ECPosition: 'Président',
120
121
  phone: '01 86 90 82 15',
121
122
  postalAddress: '30, rue des Mathurins',
122
123
  rcs: '891 501 181',
@@ -42,6 +42,7 @@ export const BrandLegalstart = [
42
42
  nomRaisonSociale: 'EXPERTISE CHOIX B',
43
43
  ECName: 'M. Jean-Louis BOICHÉ',
44
44
  ECOrderCity: 'Nancy',
45
+ ECPosition: 'Président',
45
46
  phone: '03 83 93 14 14',
46
47
  postalAddress: '9, avenue du Rhin',
47
48
  rcs: '752 566 687',
@@ -323,6 +323,7 @@ export const BrandPourcentage = [
323
323
  nomRaisonSociale: 'SOFRAGECO',
324
324
  ECName: 'M. Jean-Louis BOICHÉ',
325
325
  ECOrderCity: 'Nancy',
326
+ ECPosition: 'Président',
326
327
  phone: '01 48 58 29 45',
327
328
  postalAddress: '72 AVENUE PASTEUR',
328
329
  rcs: '345 081 996 R.C.S. Bobigny',
@@ -627,6 +628,167 @@ export const BrandPourcentage = [
627
628
  webmail: {
628
629
  domain: '@pourcentage.fr',
629
630
  },
631
+ salesContractConfig: [
632
+ // pour les pages statiques
633
+ {
634
+ label: 'Page d\'introduction',
635
+ name: 'page_intro',
636
+ needBgImage: true,
637
+ versionable: false,
638
+ idPrestationType: allPrestationsWithBrochure,
639
+ },
640
+ {
641
+ label: 'Page chiffres',
642
+ name: 'page_numbers',
643
+ needBgImage: true,
644
+ versionable: false,
645
+ idPrestationType: allPrestationsWithBrochure,
646
+ },
647
+ {
648
+ label: 'Page simplifié',
649
+ name: 'page_simplified',
650
+ needBgImage: true,
651
+ versionable: false,
652
+ idPrestationType: allPrestationsWithBrochure,
653
+ },
654
+ {
655
+ label: 'Détail de la lettre de mission',
656
+ name: 'page_detail_ldm',
657
+ needBgImage: false,
658
+ versionable: false,
659
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations non express
660
+ },
661
+ {
662
+ label: 'Détail de la lettre de mission (express)',
663
+ name: 'page_detail_ldm_back',
664
+ needBgImage: false,
665
+ versionable: false,
666
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations express
667
+ },
668
+ {
669
+ label: 'Compta Pourcentage',
670
+ name: 'bloc_compta_pourcentage',
671
+ needBgImage: false,
672
+ versionable: false,
673
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS],
674
+ },
675
+ {
676
+ label: 'Compta Pourcentage sur mesure',
677
+ name: 'bloc_compta_pourcentage_sur_mesure',
678
+ needBgImage: false,
679
+ versionable: false,
680
+ idPrestationType: [],
681
+ },
682
+ {
683
+ label: 'Compta Pourcentage Premium',
684
+ name: 'bloc_compta_pourcentage_premium',
685
+ needBgImage: false,
686
+ versionable: false,
687
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
688
+ condition: (turnover: number): boolean => turnover < 1500000,
689
+ },
690
+ {
691
+ label: 'Compta Pourcentage Premium sur mesure',
692
+ name: 'bloc_compta_pourcentage_premium_sur_mesure',
693
+ needBgImage: false,
694
+ versionable: false,
695
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
696
+ condition: (turnover: number): boolean => turnover >= 1500000,
697
+ },
698
+ {
699
+ label: 'Forfait social',
700
+ name: 'bloc_social',
701
+ needBgImage: false,
702
+ versionable: true,
703
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
704
+ keyName: 'idPrestationSocial',
705
+ },
706
+ {
707
+ label: 'Forfait création société',
708
+ name: 'bloc_creation',
709
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
710
+ needBgImage: false,
711
+ versionable: true,
712
+ keyName: 'idPrestationCreation',
713
+ condition: (price: number): boolean => price === 500,
714
+ },
715
+ {
716
+ label: 'Forfait création société premium',
717
+ name: 'bloc_creation_premium',
718
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
719
+ needBgImage: false,
720
+ versionable: true,
721
+ keyName: 'idPrestationCreation',
722
+ condition: (price: number): boolean => price === 1000,
723
+ },
724
+ {
725
+ label: 'Forfait approbation des comptes annuels',
726
+ name: 'bloc_annual_accounts',
727
+ needBgImage: false,
728
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
729
+ versionable: true,
730
+ keyName: 'idPrestationJuridique',
731
+ },
732
+ {
733
+ label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
734
+ name: 'bloc_tax_return',
735
+ needBgImage: false,
736
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
737
+ versionable: true,
738
+ keyName: 'idPrestationDeclarationIR',
739
+ },
740
+ {
741
+ label: 'Accompagnement contrôle fiscal',
742
+ name: 'bloc_tax_audit',
743
+ needBgImage: false,
744
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
745
+ versionable: true,
746
+ keyName: 'idPrestationControleFiscal',
747
+ },
748
+ {
749
+ label: 'Bilan Prévisionnel',
750
+ name: 'bloc_bilan_previsionnel',
751
+ needBgImage: false,
752
+ idPrestationType: [PrestationType.CREATION_SOCIETE, PrestationType.BILAN_PREVISIONNEL],
753
+ versionable: true,
754
+ keyName: 'prestationOptions',
755
+ },
756
+ {
757
+ label: 'Signature',
758
+ name: 'bloc_sign',
759
+ needBgImage: false,
760
+ idPrestationType: allPrestationsWithBrochure,
761
+ versionable: false,
762
+ },
763
+ {
764
+ label: 'Conditions Générals de Vente (CGV) 1/2',
765
+ name: 'bloc_cgv_first',
766
+ needBgImage: false,
767
+ idPrestationType: allPrestationsWithBrochure,
768
+ versionable: false,
769
+ },
770
+ {
771
+ label: 'Conditions Générals de Vente (CGV) 2/2',
772
+ name: 'bloc_cgv_second',
773
+ needBgImage: false,
774
+ idPrestationType: allPrestationsWithBrochure,
775
+ versionable: false,
776
+ },
777
+ {
778
+ label: 'Mandat de prélèvement SEPA',
779
+ name: 'bloc_sepa',
780
+ needBgImage: false,
781
+ idPrestationType: allPrestationsWithBrochure,
782
+ versionable: false,
783
+ },
784
+ {
785
+ label: 'Pièces à nous envoyer',
786
+ name: 'bloc_send_files',
787
+ needBgImage: false,
788
+ idPrestationType: allPrestationsWithBrochure,
789
+ versionable: false,
790
+ },
791
+ ],
630
792
  },
631
793
  {
632
794
  idTypeBrand: 6,
@@ -46,6 +46,8 @@ export enum GedFolder {
46
46
  BALANCE_GL_JOURNALS_YEAR = 40,
47
47
  JURIDICAL = 41,
48
48
  SUBVENTION = 42,
49
+ EMPLOYEMENT_CONTRACT = 43,
50
+ EXIT_DOCUMENT = 44,
49
51
  }
50
52
 
51
53
  export enum TypeFile {
@@ -295,4 +297,6 @@ export const GedFolderList: Array<{ id: GedFolder, isVisibleForClient: boolean;
295
297
  { id: GedFolder.BALANCE_GL_JOURNALS_YEAR, name: 'Balance-GL Journaux Année N-1', isVisibleForClient: true, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
296
298
  { id: GedFolder.JURIDICAL, name: 'Juridique', isVisibleForClient: true, idGedCategory: GedCategory.JURIDIC },
297
299
  { id: GedFolder.SUBVENTION, name: 'Subvention', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
300
+ { id: GedFolder.EMPLOYEMENT_CONTRACT, name: 'Contrats de travail & avenants', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
301
+ { id: GedFolder.EXIT_DOCUMENT, name: 'Documents de sorties', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
298
302
  ];