@silexpert/core 1.1.152 → 1.1.154

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 (121) hide show
  1. package/dist/cjs/api/resources/KilometricAllowance.d.ts +2 -1
  2. package/dist/cjs/api/resources/KilometricAllowance.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/KilometricAllowance.js +3 -0
  4. package/dist/cjs/api/resources/KilometricAllowance.js.map +1 -1
  5. package/dist/cjs/api/resources/SalesContract.d.ts +6 -5
  6. package/dist/cjs/api/resources/SalesContract.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/SalesContract.js +32 -16
  8. package/dist/cjs/api/resources/SalesContract.js.map +1 -1
  9. package/dist/cjs/api/resources/ThirdParty.d.ts +1 -0
  10. package/dist/cjs/api/resources/ThirdParty.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/ThirdParty.js +4 -0
  12. package/dist/cjs/api/resources/ThirdParty.js.map +1 -1
  13. package/dist/cjs/types/Enum/BrandClementine.d.ts +2 -18
  14. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/BrandClementine.js +78 -91
  16. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  17. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +138 -0
  18. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/BrandPourcentage.js +176 -3
  20. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  21. package/dist/cjs/types/Enum/Ged.d.ts +3 -1
  22. package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/Ged.js +4 -0
  24. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  25. package/dist/cjs/types/Enum/PrestationType.d.ts +4 -1
  26. package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
  27. package/dist/cjs/types/Enum/PrestationType.js +54 -0
  28. package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
  29. package/dist/cjs/types/Enum/SalesContractConfig.d.ts +13 -4
  30. package/dist/cjs/types/Enum/SalesContractConfig.d.ts.map +1 -1
  31. package/dist/cjs/types/Enum/SalesContractConfig.js +64 -0
  32. package/dist/cjs/types/Enum/SalesContractConfig.js.map +1 -1
  33. package/dist/cjs/types/Interface/api/cashAndExpense/Query.d.ts +7 -0
  34. package/dist/cjs/types/Interface/api/cashAndExpense/Query.d.ts.map +1 -0
  35. package/dist/cjs/types/Interface/api/cashAndExpense/Query.js +42 -0
  36. package/dist/cjs/types/Interface/api/cashAndExpense/Query.js.map +1 -0
  37. package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts +6 -0
  38. package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts.map +1 -1
  39. package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.js +23 -1
  40. package/dist/cjs/types/Interface/api/salesContract/SendSalesContractParams.js.map +1 -1
  41. package/dist/cjs/types/Interface/models/IAccountingTransaction.d.ts +2 -0
  42. package/dist/cjs/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  43. package/dist/cjs/types/Interface/models/IAccountingTransaction.js.map +1 -1
  44. package/dist/cjs/types/index.d.ts +1 -0
  45. package/dist/cjs/types/index.d.ts.map +1 -1
  46. package/dist/cjs/types/index.js +1 -0
  47. package/dist/cjs/types/index.js.map +1 -1
  48. package/dist/cjs/utils/brands.d.ts +3 -2
  49. package/dist/cjs/utils/brands.d.ts.map +1 -1
  50. package/dist/cjs/utils/brands.js +15 -4
  51. package/dist/cjs/utils/brands.js.map +1 -1
  52. package/dist/cjs/utils/vat/3310/century23.js +58 -58
  53. package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
  54. package/dist/mjs/api/resources/KilometricAllowance.d.ts +2 -1
  55. package/dist/mjs/api/resources/KilometricAllowance.d.ts.map +1 -1
  56. package/dist/mjs/api/resources/KilometricAllowance.js +6 -0
  57. package/dist/mjs/api/resources/KilometricAllowance.js.map +1 -1
  58. package/dist/mjs/api/resources/SalesContract.d.ts +6 -5
  59. package/dist/mjs/api/resources/SalesContract.d.ts.map +1 -1
  60. package/dist/mjs/api/resources/SalesContract.js +32 -15
  61. package/dist/mjs/api/resources/SalesContract.js.map +1 -1
  62. package/dist/mjs/api/resources/ThirdParty.d.ts +1 -0
  63. package/dist/mjs/api/resources/ThirdParty.d.ts.map +1 -1
  64. package/dist/mjs/api/resources/ThirdParty.js +4 -0
  65. package/dist/mjs/api/resources/ThirdParty.js.map +1 -1
  66. package/dist/mjs/types/Enum/BrandClementine.d.ts +2 -18
  67. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  68. package/dist/mjs/types/Enum/BrandClementine.js +78 -91
  69. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  70. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +138 -0
  71. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  72. package/dist/mjs/types/Enum/BrandPourcentage.js +176 -3
  73. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  74. package/dist/mjs/types/Enum/Ged.d.ts +3 -1
  75. package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
  76. package/dist/mjs/types/Enum/Ged.js +4 -0
  77. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  78. package/dist/mjs/types/Enum/PrestationType.d.ts +4 -1
  79. package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
  80. package/dist/mjs/types/Enum/PrestationType.js +54 -0
  81. package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
  82. package/dist/mjs/types/Enum/SalesContractConfig.d.ts +13 -4
  83. package/dist/mjs/types/Enum/SalesContractConfig.d.ts.map +1 -1
  84. package/dist/mjs/types/Enum/SalesContractConfig.js +68 -1
  85. package/dist/mjs/types/Enum/SalesContractConfig.js.map +1 -1
  86. package/dist/mjs/types/Interface/api/cashAndExpense/Query.d.ts +7 -0
  87. package/dist/mjs/types/Interface/api/cashAndExpense/Query.d.ts.map +1 -0
  88. package/dist/mjs/types/Interface/api/cashAndExpense/Query.js +42 -0
  89. package/dist/mjs/types/Interface/api/cashAndExpense/Query.js.map +1 -0
  90. package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts +6 -0
  91. package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.d.ts.map +1 -1
  92. package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.js +25 -0
  93. package/dist/mjs/types/Interface/api/salesContract/SendSalesContractParams.js.map +1 -1
  94. package/dist/mjs/types/Interface/models/IAccountingTransaction.d.ts +2 -0
  95. package/dist/mjs/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  96. package/dist/mjs/types/Interface/models/IAccountingTransaction.js.map +1 -1
  97. package/dist/mjs/types/index.d.ts +1 -0
  98. package/dist/mjs/types/index.d.ts.map +1 -1
  99. package/dist/mjs/types/index.js +1 -0
  100. package/dist/mjs/types/index.js.map +1 -1
  101. package/dist/mjs/utils/brands.d.ts +3 -2
  102. package/dist/mjs/utils/brands.d.ts.map +1 -1
  103. package/dist/mjs/utils/brands.js +14 -4
  104. package/dist/mjs/utils/brands.js.map +1 -1
  105. package/dist/mjs/utils/vat/3310/century23.js +5 -5
  106. package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
  107. package/package.json +1 -1
  108. package/ts/api/resources/KilometricAllowance.ts +8 -1
  109. package/ts/api/resources/SalesContract.ts +33 -17
  110. package/ts/api/resources/ThirdParty.ts +5 -0
  111. package/ts/types/Enum/BrandClementine.ts +78 -91
  112. package/ts/types/Enum/BrandPourcentage.ts +176 -3
  113. package/ts/types/Enum/Ged.ts +4 -0
  114. package/ts/types/Enum/PrestationType.ts +54 -0
  115. package/ts/types/Enum/SalesContractConfig.ts +41 -6
  116. package/ts/types/Interface/api/cashAndExpense/Query.ts +24 -0
  117. package/ts/types/Interface/api/salesContract/SendSalesContractParams.ts +17 -0
  118. package/ts/types/Interface/models/IAccountingTransaction.ts +2 -0
  119. package/ts/types/index.ts +1 -0
  120. package/ts/utils/brands.ts +16 -4
  121. package/ts/utils/vat/3310/century23.ts +5 -5
@@ -1,6 +1,7 @@
1
1
  import { Resource } from '../Resource';
2
- import { CreateKilometricAllowanceValidation } from '../../types';
2
+ import { BasePaginate, CreateKilometricAllowanceValidation, IAccountingTransaction, QueryKilometricAllowance } from '../../types';
3
3
  export declare class KilometricAllowance extends Resource {
4
4
  validate(idExercice: number, payload: CreateKilometricAllowanceValidation): Promise<boolean>;
5
+ getPaginated(idSociety: number, params: QueryKilometricAllowance, signal?: AbortSignal): Promise<BasePaginate<IAccountingTransaction>>;
5
6
  }
6
7
  //# sourceMappingURL=KilometricAllowance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KilometricAllowance.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/KilometricAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAC;AAElE,qBAAa,mBAAoB,SAAQ,QAAQ;IAC/C,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,mCAAmC,GAAG,OAAO,CAAC,OAAO,CAAC;CAG7F"}
1
+ {"version":3,"file":"KilometricAllowance.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/KilometricAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,mCAAmC,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAElI,qBAAa,mBAAoB,SAAQ,QAAQ;IAC/C,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,mCAAmC,GAAG,OAAO,CAAC,OAAO,CAAC;IAI5F,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC;CAMvI"}
@@ -3,5 +3,11 @@ export class KilometricAllowance extends Resource {
3
3
  validate(idExercice, payload) {
4
4
  return this.axios.$post(`/exercice/${idExercice}/kilometric-allowance/validate`, payload);
5
5
  }
6
+ getPaginated(idSociety, params, signal) {
7
+ return this.axios.$get(`/societies/${idSociety}/kilometric-allowances`, {
8
+ params,
9
+ ...(signal ? { signal } : {}),
10
+ });
11
+ }
6
12
  }
7
13
  //# sourceMappingURL=KilometricAllowance.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"KilometricAllowance.js","sourceRoot":"","sources":["../../../../ts/api/resources/KilometricAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,mBAAoB,SAAQ,QAAQ;IAC/C,QAAQ,CAAC,UAAkB,EAAE,OAA4C;QACvE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,UAAU,gCAAgC,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateKilometricAllowanceValidation } from '../../types';\n\nexport class KilometricAllowance extends Resource {\n validate(idExercice: number, payload: CreateKilometricAllowanceValidation): Promise<boolean> {\n return this.axios.$post(`/exercice/${idExercice}/kilometric-allowance/validate`, payload);\n }\n}"]}
1
+ {"version":3,"file":"KilometricAllowance.js","sourceRoot":"","sources":["../../../../ts/api/resources/KilometricAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,mBAAoB,SAAQ,QAAQ;IAC/C,QAAQ,CAAC,UAAkB,EAAE,OAA4C;QACvE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,UAAU,gCAAgC,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAED,YAAY,CAAC,SAAiB,EAAE,MAAgC,EAAE,MAAoB;QACpF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,wBAAwB,EAAE;YACtE,MAAM;YACN,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9B,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { BasePaginate, CreateKilometricAllowanceValidation, IAccountingTransaction, QueryKilometricAllowance } from '../../types';\n\nexport class KilometricAllowance extends Resource {\n validate(idExercice: number, payload: CreateKilometricAllowanceValidation): Promise<boolean> {\n return this.axios.$post(`/exercice/${idExercice}/kilometric-allowance/validate`, payload);\n }\n\n getPaginated(idSociety: number, params: QueryKilometricAllowance, signal?: AbortSignal): Promise<BasePaginate<IAccountingTransaction>> {\n return this.axios.$get(`/societies/${idSociety}/kilometric-allowances`, { \n params,\n ...(signal ? { signal } : {}),\n });\n }\n}"]}
@@ -1,13 +1,14 @@
1
1
  import { Resource } from '../Resource';
2
- import { SalesContractContent, SalesContractConfigVersion, SendSalesContractParams } from '../../types';
2
+ import { SalesContractContent, SalesContractConfigVersion, SendSalesContractParams, ParamsPreviewContract, SendMandateParams } from '../../types';
3
3
  export declare class SalesContract extends Resource {
4
- getConfigFile(): Promise<SalesContractContent[]>;
5
- getConfigVersions(): Promise<SalesContractConfigVersion[]>;
6
- preview(idPrestationList: number, versionId: string): Promise<string>;
7
- downloadPreview(idPrestationList: number, versionId: string): Promise<void>;
4
+ getConfigFile(idTypeBrand?: number): Promise<SalesContractContent[]>;
5
+ getConfigVersions(idTypeBrand?: number): Promise<SalesContractConfigVersion[]>;
6
+ preview(params: ParamsPreviewContract): Promise<string>;
7
+ downloadPreview(params: ParamsPreviewContract): Promise<void>;
8
8
  generateConfigFile(formData: FormData): Promise<void>;
9
9
  uploadBackgroundImage(formData: FormData): Promise<void>;
10
10
  generateSalesContract(idPrestation: number): Promise<true>;
11
11
  sendByEmailWithSignature(params: SendSalesContractParams): Promise<true>;
12
+ sendMandateByEmail(params: SendMandateParams): Promise<true>;
12
13
  }
13
14
  //# sourceMappingURL=SalesContract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SalesContract.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/SalesContract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAExG,qBAAa,aAAc,SAAQ,QAAQ;IACzC,aAAa,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAIhD,iBAAiB,IAAK,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAI3D,OAAO,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrE,eAAe,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU3E,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrD,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D,wBAAwB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAezE"}
1
+ {"version":3,"file":"SalesContract.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/SalesContract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAElJ,qBAAa,aAAc,SAAQ,QAAQ;IACzC,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAIpE,iBAAiB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAI,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAI/E,OAAO,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvD,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IAU7D,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrD,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D,wBAAwB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBxE,kBAAkB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAe7D"}
@@ -1,17 +1,17 @@
1
1
  import { Resource } from '../Resource';
2
2
  export class SalesContract extends Resource {
3
- getConfigFile() {
4
- return this.axios.$get('sales-contracts/config');
3
+ getConfigFile(idTypeBrand) {
4
+ return this.axios.$get('sales-contracts/config', { params: { idTypeBrand } });
5
5
  }
6
- getConfigVersions() {
7
- return this.axios.$get('sales-contracts/config/versions');
6
+ getConfigVersions(idTypeBrand) {
7
+ return this.axios.$get('sales-contracts/config/versions', { params: { idTypeBrand } });
8
8
  }
9
- preview(idPrestationList, versionId) {
10
- return this.axios.$get('sales-contracts/preview', { params: { idPrestationList, versionId } });
9
+ preview(params) {
10
+ return this.axios.$get('sales-contracts/preview', { params });
11
11
  }
12
- downloadPreview(idPrestationList, versionId) {
12
+ downloadPreview(params) {
13
13
  return this.axios.$get('sales-contracts/preview/pdf', {
14
- params: { idPrestationList, versionId },
14
+ params,
15
15
  responseType: 'arraybuffer',
16
16
  headers: {
17
17
  Accept: 'application/pdf',
@@ -29,16 +29,33 @@ export class SalesContract extends Resource {
29
29
  }
30
30
  sendByEmailWithSignature(params) {
31
31
  const formData = new FormData();
32
- Object.entries(params).forEach(entry => {
33
- const [key, value] = entry;
34
- if (value || value === 0) {
35
- formData.append(key, `${value}`);
32
+ Object.entries(params).forEach(([key, value]) => {
33
+ if (value || value === false || value === 0) {
34
+ if (key === 'files') {
35
+ value.forEach((file) => {
36
+ formData.append('files', file);
37
+ });
38
+ }
39
+ else
40
+ formData.append(key, `${value}`);
36
41
  }
37
42
  });
38
- params.files?.forEach((file) => {
39
- formData.append('files', file);
40
- });
41
43
  return this.axios.$post('sales-contracts/send', formData);
42
44
  }
45
+ sendMandateByEmail(params) {
46
+ const formData = new FormData();
47
+ Object.entries(params).forEach(([key, value]) => {
48
+ if (value || value === false || value === 0) {
49
+ if (key === 'files') {
50
+ value.forEach((file) => {
51
+ formData.append('files', file);
52
+ });
53
+ }
54
+ else
55
+ formData.append(key, `${value}`);
56
+ }
57
+ });
58
+ return this.axios.$post('sales-contracts/send/mandate', formData);
59
+ }
43
60
  }
44
61
  //# sourceMappingURL=SalesContract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SalesContract.js","sourceRoot":"","sources":["../../../../ts/api/resources/SalesContract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,aAAa;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IACnD,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,CAAC,gBAAwB,EAAE,SAAiB;QACjD,OAAO,IAAI,CAAC,K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C,CAAC;QAEH,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC7B,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { SalesContractContent, SalesContractConfigVersion, SendSalesContractParams } from '../../types';\n\nexport class SalesContract extends Resource {\n getConfigFile(): Promise<SalesContractContent[]> {\n return this.axios.$get('sales-contracts/config');\n }\n\n getConfigVersions() : Promise<SalesContractConfigVersion[]> {\n return this.axios.$get('sales-contracts/config/versions');\n }\n\n preview(idPrestationList: number, versionId: string): Promise<string> {\n return this.axios.$get('sales-contracts/preview', { params: { idPrestationList, versionId } });\n }\n\n downloadPreview(idPrestationList: number, versionId: string): Promise<void> {\n return this.axios.$get('sales-contracts/preview/pdf', { \n params: { idPrestationList, versionId },\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n generateConfigFile(formData: FormData): Promise<void> {\n return this.axios.$post('sales-contracts/config', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n uploadBackgroundImage(formData: FormData): Promise<void> {\n return this.axios.$post('sales-contracts/config/background', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n generateSalesContract(idPrestation: number): Promise<true> {\n return this.axios.$post('sales-contracts', { idPrestation });\n }\n\n sendByEmailWithSignature(params: SendSalesContractParams): Promise<true> {\n const formData = new FormData();\n Object.entries(params).forEach(entry => {\n const [key, value] = entry;\n if (value || value === 0) {\n formData.append(key, `${value}`);\n }\n });\n\n params.files?.forEach((file) => {\n formData.append('files', file);\n });\n\n return this.axios.$post('sales-contracts/send', formData);\n }\n}"]}
1
+ {"version":3,"file":"SalesContract.js","sourceRoot":"","sources":["../../../../ts/api/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OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,8BAA8B,EAAE,QAAQ,CAAC,CAAC;IACpE,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { SalesContractContent, SalesContractConfigVersion, SendSalesContractParams, ParamsPreviewContract, SendMandateParams } from '../../types';\n\nexport class SalesContract extends Resource {\n getConfigFile(idTypeBrand?: number): Promise<SalesContractContent[]> {\n return this.axios.$get('sales-contracts/config', { params: { idTypeBrand } });\n }\n\n getConfigVersions(idTypeBrand?: number) : Promise<SalesContractConfigVersion[]> {\n return this.axios.$get('sales-contracts/config/versions', { params: { idTypeBrand } });\n }\n\n preview(params: ParamsPreviewContract): Promise<string> {\n return this.axios.$get('sales-contracts/preview', { params });\n }\n\n downloadPreview(params: ParamsPreviewContract): Promise<void> {\n return this.axios.$get('sales-contracts/preview/pdf', { \n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n generateConfigFile(formData: FormData): Promise<void> {\n return this.axios.$post('sales-contracts/config', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n uploadBackgroundImage(formData: FormData): Promise<void> {\n return this.axios.$post('sales-contracts/config/background', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n generateSalesContract(idPrestation: number): Promise<true> {\n return this.axios.$post('sales-contracts', { idPrestation });\n }\n\n sendByEmailWithSignature(params: SendSalesContractParams): Promise<true> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else \n formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post('sales-contracts/send', formData);\n }\n\n sendMandateByEmail(params: SendMandateParams): Promise<true> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else \n formData.append(key, `${value}`);\n }\n });\n \n return this.axios.$post('sales-contracts/send/mandate', formData);\n }\n}"]}
@@ -6,6 +6,7 @@ export declare class ThirdParty extends Resource {
6
6
  getPaginated(pagination: QueryPaginate, query?: QueryThirdParty, cancelToken?: CancelToken, signal?: AbortSignal): Promise<BasePaginate<IThirdParty>>;
7
7
  update(idThirdParty: number, payload: UpdateThirdPartyForm): Promise<IThirdParty>;
8
8
  create(payload: CreateThirdPartyForm): Promise<IThirdParty>;
9
+ createForSociety(idSociety: number, payload: CreateThirdPartyForm): Promise<IThirdParty>;
9
10
  delete(idThirdParty: number): Promise<true>;
10
11
  }
11
12
  //# sourceMappingURL=ThirdParty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThirdParty.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,aAAa,EACb,YAAY,EACZ,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAIrC,YAAY,CACV,UAAU,EAAE,aAAa,EACzB,KAAK,CAAC,EAAE,eAAe,EACvB,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAWrC,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,WAAW,CAAC;IAIvB,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAI3D,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG5C"}
1
+ {"version":3,"file":"ThirdParty.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,aAAa,EACb,YAAY,EACZ,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAIrC,YAAY,CACV,UAAU,EAAE,aAAa,EACzB,KAAK,CAAC,EAAE,eAAe,EACvB,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAWrC,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,WAAW,CAAC;IAKvB,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAI3D,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxF,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG5C"}
@@ -16,9 +16,13 @@ export class ThirdParty extends Resource {
16
16
  update(idThirdParty, payload) {
17
17
  return this.axios.$put(`/third-parties/${idThirdParty}`, payload);
18
18
  }
19
+ // FIXME: Endpoint à ne plus utiliser, à supprimer une fois app mobile + app mise à jour
19
20
  create(payload) {
20
21
  return this.axios.$post('/third-parties', payload);
21
22
  }
23
+ createForSociety(idSociety, payload) {
24
+ return this.axios.$post(`/societies/${idSociety}/third-parties`, payload);
25
+ }
22
26
  delete(idThirdParty) {
23
27
  return this.axios.$delete(`/third-parties/${idThirdParty}`);
24
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ThirdParty.js","sourceRoot":"","sources":["../../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvC,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC;IAED,YAAY,CACV,UAAyB,EACzB,KAAuB,EACvB,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAAE;YAChD,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,MAAM,EAAE;gBACN,GAAG,UAAU;gBACb,GAAG,KAAK;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CACJ,YAAoB,EACpB,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,MAAM,CAAC,YAAoB;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryPaginate,\n BasePaginate,\n IThirdParty,\n QueryThirdParty,\n UpdateThirdPartyForm,\n CreateThirdPartyForm,\n} from '../../types';\n\nexport class ThirdParty extends Resource {\n getAll(): Promise<Array<IThirdParty>> {\n return this.axios.$get('/third-parties');\n }\n\n getPaginated(\n pagination: QueryPaginate,\n query?: QueryThirdParty,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IThirdParty>> {\n return this.axios.$get('/third-parties/paginate', {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n ...pagination,\n ...query,\n },\n });\n }\n\n update(\n idThirdParty: number,\n payload: UpdateThirdPartyForm,\n ): Promise<IThirdParty> {\n return this.axios.$put(`/third-parties/${idThirdParty}`, payload);\n }\n\n create(payload: CreateThirdPartyForm): Promise<IThirdParty> {\n return this.axios.$post('/third-parties', payload);\n }\n\n delete(idThirdParty: number): Promise<true> {\n return this.axios.$delete(`/third-parties/${idThirdParty}`);\n }\n}\n"]}
1
+ {"version":3,"file":"ThirdParty.js","sourceRoot":"","sources":["../../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvC,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC;IAED,YAAY,CACV,UAAyB,EACzB,KAAuB,EACvB,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAAE;YAChD,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7B,MAAM,EAAE;gBACN,GAAG,UAAU;gBACb,GAAG,KAAK;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CACJ,YAAoB,EACpB,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED,wFAAwF;IACxF,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,gBAAgB,CAAC,SAAiB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED,MAAM,CAAC,YAAoB;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryPaginate,\n BasePaginate,\n IThirdParty,\n QueryThirdParty,\n UpdateThirdPartyForm,\n CreateThirdPartyForm,\n} from '../../types';\n\nexport class ThirdParty extends Resource {\n getAll(): Promise<Array<IThirdParty>> {\n return this.axios.$get('/third-parties');\n }\n\n getPaginated(\n pagination: QueryPaginate,\n query?: QueryThirdParty,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IThirdParty>> {\n return this.axios.$get('/third-parties/paginate', {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n ...pagination,\n ...query,\n },\n });\n }\n\n update(\n idThirdParty: number,\n payload: UpdateThirdPartyForm,\n ): Promise<IThirdParty> {\n return this.axios.$put(`/third-parties/${idThirdParty}`, payload);\n }\n\n // FIXME: Endpoint à ne plus utiliser, à supprimer une fois app mobile + app mise à jour\n create(payload: CreateThirdPartyForm): Promise<IThirdParty> {\n return this.axios.$post('/third-parties', payload);\n }\n\n createForSociety(idSociety: number, payload: CreateThirdPartyForm): Promise<IThirdParty> {\n return this.axios.$post(`/societies/${idSociety}/third-parties`, payload);\n }\n\n delete(idThirdParty: number): Promise<true> {\n return this.axios.$delete(`/third-parties/${idThirdParty}`);\n }\n}\n"]}
@@ -219,16 +219,10 @@ export declare const BrandClementine: ({
219
219
  vatIntracom: string;
220
220
  email: string;
221
221
  };
222
- salesContractConfig: {
223
- label: string;
224
- name: string;
225
- needBgImage: boolean;
226
- versionable: boolean;
227
- idPrestationType: PrestationType[];
228
- }[];
229
222
  logoS3?: undefined;
230
223
  webmail?: undefined;
231
224
  offices?: undefined;
225
+ salesContractConfig?: undefined;
232
226
  } | {
233
227
  idTypeBrand: number;
234
228
  name: string;
@@ -287,6 +281,7 @@ export declare const BrandClementine: ({
287
281
  urlApp: string;
288
282
  urlApi1: string;
289
283
  urlApi2: string;
284
+ urlClient: string;
290
285
  bank: {
291
286
  IBAN: string;
292
287
  BIC: string;
@@ -323,7 +318,6 @@ export declare const BrandClementine: ({
323
318
  versionable: boolean;
324
319
  idPrestationType: (number | undefined)[];
325
320
  keyName?: undefined;
326
- condition?: undefined;
327
321
  } | {
328
322
  label: string;
329
323
  name: string;
@@ -331,15 +325,6 @@ export declare const BrandClementine: ({
331
325
  versionable: boolean;
332
326
  idPrestationType: PrestationType[];
333
327
  keyName: string;
334
- condition?: undefined;
335
- } | {
336
- label: string;
337
- name: string;
338
- needBgImage: boolean;
339
- versionable: boolean;
340
- keyName: string;
341
- idPrestationType: PrestationType[];
342
- condition: (turnover: number) => boolean;
343
328
  })[];
344
329
  urlS3?: undefined;
345
330
  logoS3?: undefined;
@@ -351,7 +336,6 @@ export declare const BrandClementine: ({
351
336
  miniLogoUrl?: undefined;
352
337
  hiddenPages?: undefined;
353
338
  urlExpert?: undefined;
354
- urlClient?: undefined;
355
339
  webmail?: undefined;
356
340
  offices?: undefined;
357
341
  recaptchaSecretKey?: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BrandClementine.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/BrandClementine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAgD,MAAM,kBAAkB,CAAC;AAEhG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAoKE,MAAM,KAAG,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAwUhB,MAAM,KAAG,OAAO;;;;;;;;;;;;;;;;IAwH7C,CAAC"}
1
+ {"version":3,"file":"BrandClementine.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/BrandClementine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAgD,MAAM,kBAAkB,CAAC;AAEhG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAoKE,MAAM,KAAG,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmb7C,CAAC"}
@@ -358,22 +358,6 @@ export const BrandClementine = [
358
358
  vatIntracom: 'FR47752566687',
359
359
  email: 'facturation@compta-clementine.fr',
360
360
  },
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
361
  },
378
362
  {
379
363
  idTypeBrand: 4,
@@ -438,6 +422,39 @@ export const BrandClementine = [
438
422
  vatIntracom: 'FR47752566687',
439
423
  email: 'facturation@compta-clementine.fr',
440
424
  },
425
+ },
426
+ {
427
+ idTypeBrand: 6,
428
+ name: 'Klems',
429
+ commercialName: 'Klems',
430
+ urlApp: 'https://klems.fr',
431
+ urlApi1: 'https://api.compta-clementine.fr',
432
+ urlApi2: 'https://api-next.compta-clementine.fr',
433
+ urlClient: 'https://www.klems.fr',
434
+ bank: {
435
+ IBAN: 'FR7616106840138646838239863',
436
+ BIC: 'AGRIFRPP861',
437
+ Name: 'Expertise Choix B',
438
+ Id: 'FR91ZZZ617135',
439
+ },
440
+ colors: {
441
+ primary: '#38A1FF',
442
+ },
443
+ internalInvoicing: {
444
+ statut: 'SAS',
445
+ name: 'EXPERTISE CHOIX B',
446
+ address: '9, avenue du Rhin',
447
+ zipCode: '54520',
448
+ city: 'LAXOU',
449
+ country: 'FRANCE',
450
+ montantCapital: '500 000',
451
+ siret: '752566687',
452
+ ape: '6920Z',
453
+ rcs: '752 566 687',
454
+ phone: '03 83 93 14 14',
455
+ vatIntracom: 'FR47752566687',
456
+ email: 'facturation@compta-clementine.fr',
457
+ },
441
458
  salesContractConfig: [
442
459
  // pour les pages statiques
443
460
  {
@@ -445,168 +462,138 @@ export const BrandClementine = [
445
462
  name: 'page_intro',
446
463
  needBgImage: true,
447
464
  versionable: false,
448
- idPrestationType: allPrestationsWithBrochure,
465
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
449
466
  },
450
467
  {
451
468
  label: 'Page chiffres',
452
469
  name: 'page_numbers',
453
470
  needBgImage: true,
454
471
  versionable: false,
455
- idPrestationType: allPrestationsWithBrochure,
472
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
456
473
  },
457
474
  {
458
475
  label: 'Page simplifié',
459
476
  name: 'page_simplified',
460
477
  needBgImage: true,
461
478
  versionable: false,
462
- idPrestationType: allPrestationsWithBrochure,
479
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
463
480
  },
464
481
  {
465
482
  label: 'Détail de la lettre de mission',
466
483
  name: 'page_detail_ldm',
467
484
  needBgImage: false,
468
485
  versionable: false,
469
- idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id)).map(({ id }) => id), // Prestations non express
486
+ 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
487
  },
471
488
  {
472
489
  label: 'Détail de la lettre de mission (express)',
473
490
  name: 'page_detail_ldm_back',
474
491
  needBgImage: false,
475
492
  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) => 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) => turnover >= 900000,
493
+ 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
494
  },
505
495
  {
506
- label: 'Compta Micro',
496
+ label: 'Forfait Expertise Micro',
507
497
  name: 'bloc_compta_micro',
508
498
  needBgImage: false,
509
- versionable: true,
510
- idPrestationType: [PrestationType.COMPTA_MICRO, PrestationType.COMPTA_MICRO_EXPRESS],
511
- keyName: 'isWithApplicationFees',
499
+ versionable: false,
500
+ idPrestationType: [PrestationType.COMPTA_MICRO_KLEMS],
512
501
  },
513
502
  {
514
- label: 'Compta SCI',
515
- name: 'bloc_compta_sci',
503
+ label: 'Forfait Expertise Entreprise individuelle',
504
+ name: 'bloc_entreprise_individuelle',
516
505
  needBgImage: false,
517
- versionable: true,
518
- idPrestationType: [PrestationType.COMPTA_SCI, PrestationType.COMPTA_SCI_EXPRESS],
519
- keyName: 'isWithApplicationFees',
506
+ versionable: false,
507
+ idPrestationType: [PrestationType.COMPTA_EI_KLEMS],
520
508
  },
521
509
  {
522
- label: 'Forfait social',
523
- name: 'bloc_social',
510
+ label: 'Forfait Expertise Loueur meublé non pro',
511
+ name: 'bloc_compta_loueur_meuble_non_pro',
524
512
  needBgImage: false,
525
- versionable: true,
526
- idPrestationType: allPrestationsWithBrochure,
527
- keyName: 'idPrestationSocial',
513
+ versionable: false,
514
+ idPrestationType: [PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
528
515
  },
529
516
  {
530
- label: 'Forfait création société',
531
- name: 'bloc_creation',
532
- idPrestationType: allPrestationsWithBrochure,
517
+ label: 'Forfait social (TTC)',
518
+ name: 'bloc_social_ttc',
533
519
  needBgImage: false,
534
520
  versionable: true,
535
- keyName: 'idPrestationCreation',
521
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
522
+ keyName: 'idPrestationSocial',
536
523
  },
537
524
  {
538
- label: 'Forfait création société (Création d\'entreprise gratuite)',
539
- name: 'bloc_creation_free',
540
- idPrestationType: allPrestationsWithBrochure,
525
+ label: 'Forfait social (HT)',
526
+ name: 'bloc_social_ht',
541
527
  needBgImage: false,
542
528
  versionable: true,
543
- keyName: 'idPrestationCreation',
529
+ idPrestationType: [PrestationType.COMPTA_EI_KLEMS],
530
+ keyName: 'idPrestationSocial',
544
531
  },
545
532
  {
546
- label: 'Forfait approbation des comptes annuels',
547
- name: 'bloc_annual_accounts',
533
+ label: 'Forfait Création d\'entreprise (TTC)',
534
+ name: 'bloc_creation_entreprise_ttc',
535
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
548
536
  needBgImage: false,
549
- idPrestationType: allPrestationsWithBrochure,
550
537
  versionable: true,
551
- keyName: 'idPrestationJuridique',
538
+ keyName: 'isWithApplicationFees',
552
539
  },
553
540
  {
554
- label: 'Prise en charge de votre déclaration d\'impôts sur le revenu 249€ HT/an',
555
- name: 'bloc_tax_return',
541
+ label: 'Forfait Création d\'entreprise (HT)',
542
+ name: 'bloc_creation_entreprise_ht',
543
+ idPrestationType: [PrestationType.COMPTA_EI_KLEMS],
556
544
  needBgImage: false,
557
- idPrestationType: allPrestationsWithBrochure,
558
545
  versionable: true,
559
- keyName: 'idPrestationSocial',
546
+ keyName: 'isWithApplicationFees',
560
547
  },
561
548
  {
562
- label: 'Accompagnement contrôle fiscal à 149€ HT/ exercice',
563
- name: 'bloc_tax_audit',
549
+ label: 'Accompagnement contrôle fiscal (TTC)',
550
+ name: 'bloc_tax_audit_ttc',
564
551
  needBgImage: false,
565
- idPrestationType: allPrestationsWithBrochure,
566
552
  versionable: true,
567
- keyName: 'idPrestationSocial',
553
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
554
+ keyName: 'idPrestationControleFiscal',
568
555
  },
569
556
  {
570
- label: 'Bilan Prévisionnel',
571
- name: 'bloc_bilan_previsionnel',
557
+ label: 'Accompagnement contrôle fiscal (HT)',
558
+ name: 'bloc_tax_audit_ht',
572
559
  needBgImage: false,
573
- idPrestationType: [PrestationType.CREATION_SOCIETE, PrestationType.BILAN_PREVISIONNEL],
560
+ idPrestationType: [PrestationType.COMPTA_EI_KLEMS],
574
561
  versionable: true,
575
- keyName: 'prestationOptions',
562
+ keyName: 'idPrestationControleFiscal',
576
563
  },
577
564
  {
578
565
  label: 'Signature',
579
566
  name: 'bloc_sign',
580
567
  needBgImage: false,
581
- idPrestationType: allPrestationsWithBrochure,
568
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
582
569
  versionable: false,
583
570
  },
584
571
  {
585
572
  label: 'Conditions Générals de Vente (CGV) 1/2',
586
573
  name: 'bloc_cgv_first',
587
574
  needBgImage: false,
588
- idPrestationType: allPrestationsWithBrochure,
575
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
589
576
  versionable: false,
590
577
  },
591
578
  {
592
579
  label: 'Conditions Générals de Vente (CGV) 2/2',
593
580
  name: 'bloc_cgv_second',
594
581
  needBgImage: false,
595
- idPrestationType: allPrestationsWithBrochure,
582
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
596
583
  versionable: false,
597
584
  },
598
585
  {
599
586
  label: 'Mandat de prélèvement SEPA',
600
587
  name: 'bloc_sepa',
601
588
  needBgImage: false,
602
- idPrestationType: allPrestationsWithBrochure,
589
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
603
590
  versionable: false,
604
591
  },
605
592
  {
606
593
  label: 'Pièces à nous envoyer',
607
594
  name: 'bloc_send_files',
608
595
  needBgImage: false,
609
- idPrestationType: allPrestationsWithBrochure,
596
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS],
610
597
  versionable: false,
611
598
  },
612
599
  ],