@silexpert/core 1.1.179 → 1.1.181

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 (69) hide show
  1. package/dist/cjs/api/resources/BalanceSheet.d.ts +2 -0
  2. package/dist/cjs/api/resources/BalanceSheet.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/BalanceSheet.js +3 -0
  4. package/dist/cjs/api/resources/BalanceSheet.js.map +1 -1
  5. package/dist/cjs/api/resources/ThirdParty.d.ts +0 -1
  6. package/dist/cjs/api/resources/ThirdParty.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/ThirdParty.js +0 -4
  8. package/dist/cjs/api/resources/ThirdParty.js.map +1 -1
  9. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +46 -46
  10. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/BrandPourcentage.js +272 -272
  12. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  13. package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
  14. package/dist/cjs/types/Interface/api/library/QueryLibrary.js +0 -1
  15. package/dist/cjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
  16. package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts +1 -0
  17. package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/models/IBalanceSheet.js.map +1 -1
  19. package/dist/cjs/utils/index.d.ts +1 -0
  20. package/dist/cjs/utils/index.d.ts.map +1 -1
  21. package/dist/cjs/utils/index.js +1 -0
  22. package/dist/cjs/utils/index.js.map +1 -1
  23. package/dist/cjs/utils/noLodash.d.ts +2 -0
  24. package/dist/cjs/utils/noLodash.d.ts.map +1 -1
  25. package/dist/cjs/utils/noLodash.js +9 -1
  26. package/dist/cjs/utils/noLodash.js.map +1 -1
  27. package/dist/cjs/utils/statutsGeneration.d.ts +177 -0
  28. package/dist/cjs/utils/statutsGeneration.d.ts.map +1 -0
  29. package/dist/cjs/utils/statutsGeneration.js +115 -0
  30. package/dist/cjs/utils/statutsGeneration.js.map +1 -0
  31. package/dist/mjs/api/resources/BalanceSheet.d.ts +2 -0
  32. package/dist/mjs/api/resources/BalanceSheet.d.ts.map +1 -1
  33. package/dist/mjs/api/resources/BalanceSheet.js +3 -0
  34. package/dist/mjs/api/resources/BalanceSheet.js.map +1 -1
  35. package/dist/mjs/api/resources/ThirdParty.d.ts +0 -1
  36. package/dist/mjs/api/resources/ThirdParty.d.ts.map +1 -1
  37. package/dist/mjs/api/resources/ThirdParty.js +0 -4
  38. package/dist/mjs/api/resources/ThirdParty.js.map +1 -1
  39. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +46 -46
  40. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  41. package/dist/mjs/types/Enum/BrandPourcentage.js +272 -272
  42. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  43. package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
  44. package/dist/mjs/types/Interface/api/library/QueryLibrary.js +2 -3
  45. package/dist/mjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
  46. package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts +1 -0
  47. package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
  48. package/dist/mjs/types/Interface/models/IBalanceSheet.js.map +1 -1
  49. package/dist/mjs/utils/index.d.ts +1 -0
  50. package/dist/mjs/utils/index.d.ts.map +1 -1
  51. package/dist/mjs/utils/index.js +1 -0
  52. package/dist/mjs/utils/index.js.map +1 -1
  53. package/dist/mjs/utils/noLodash.d.ts +2 -0
  54. package/dist/mjs/utils/noLodash.d.ts.map +1 -1
  55. package/dist/mjs/utils/noLodash.js +7 -0
  56. package/dist/mjs/utils/noLodash.js.map +1 -1
  57. package/dist/mjs/utils/statutsGeneration.d.ts +177 -0
  58. package/dist/mjs/utils/statutsGeneration.d.ts.map +1 -0
  59. package/dist/mjs/utils/statutsGeneration.js +111 -0
  60. package/dist/mjs/utils/statutsGeneration.js.map +1 -0
  61. package/package.json +1 -1
  62. package/ts/api/resources/BalanceSheet.ts +6 -0
  63. package/ts/api/resources/ThirdParty.ts +0 -5
  64. package/ts/types/Enum/BrandPourcentage.ts +272 -272
  65. package/ts/types/Interface/api/library/QueryLibrary.ts +1 -2
  66. package/ts/types/Interface/models/IBalanceSheet.ts +1 -0
  67. package/ts/utils/index.ts +1 -0
  68. package/ts/utils/noLodash.ts +29 -1
  69. package/ts/utils/statutsGeneration.ts +123 -0
@@ -0,0 +1,177 @@
1
+ import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
2
+ import { PrestationType } from '../types/Enum/PrestationType';
3
+ export declare const legalNoticesCosts: Record<number, number>;
4
+ export declare const courtCosts: Record<number, number>;
5
+ export declare const features: ({
6
+ text: string;
7
+ detail: null;
8
+ offers: PrestationType[];
9
+ hidden: PrestationType[];
10
+ } | {
11
+ text: string;
12
+ detail: null;
13
+ offers: PrestationType[];
14
+ hidden?: undefined;
15
+ } | {
16
+ text: string;
17
+ detail: string;
18
+ offers: PrestationType[];
19
+ hidden?: undefined;
20
+ })[];
21
+ export declare const justCreation: {
22
+ id: PrestationType;
23
+ tag: null;
24
+ title: string;
25
+ description: string;
26
+ price: number;
27
+ priceInformation: string;
28
+ additionalCosts: string;
29
+ features: ({
30
+ text: string;
31
+ detail: null;
32
+ offers: PrestationType[];
33
+ hidden: PrestationType[];
34
+ } | {
35
+ text: string;
36
+ detail: null;
37
+ offers: PrestationType[];
38
+ hidden?: undefined;
39
+ } | {
40
+ text: string;
41
+ detail: string;
42
+ offers: PrestationType[];
43
+ hidden?: undefined;
44
+ })[];
45
+ legalForms: LegalFormTypeEnum[];
46
+ };
47
+ export declare const justStatuts: {
48
+ id: PrestationType;
49
+ tag: null;
50
+ title: string;
51
+ description: string;
52
+ price: number;
53
+ priceInformation: string;
54
+ additionalCosts: string;
55
+ features: ({
56
+ text: string;
57
+ detail: null;
58
+ offers: PrestationType[];
59
+ hidden: PrestationType[];
60
+ } | {
61
+ text: string;
62
+ detail: null;
63
+ offers: PrestationType[];
64
+ hidden?: undefined;
65
+ } | {
66
+ text: string;
67
+ detail: string;
68
+ offers: PrestationType[];
69
+ hidden?: undefined;
70
+ })[];
71
+ legalForms: LegalFormTypeEnum[];
72
+ };
73
+ export declare const creaSociete: {
74
+ id: PrestationType;
75
+ tag: string;
76
+ title: string;
77
+ description: string;
78
+ price: Record<number, number>;
79
+ priceInformation: string;
80
+ additionalCosts: string;
81
+ features: ({
82
+ text: string;
83
+ detail: null;
84
+ offers: PrestationType[];
85
+ hidden: PrestationType[];
86
+ } | {
87
+ text: string;
88
+ detail: null;
89
+ offers: PrestationType[];
90
+ hidden?: undefined;
91
+ } | {
92
+ text: string;
93
+ detail: string;
94
+ offers: PrestationType[];
95
+ hidden?: undefined;
96
+ })[];
97
+ legalForms: LegalFormTypeEnum[];
98
+ };
99
+ export declare const creaEIMicro: {
100
+ id: PrestationType;
101
+ tag: null;
102
+ title: string;
103
+ description: string;
104
+ price: number;
105
+ priceInformation: string;
106
+ additionalCosts: string;
107
+ features: ({
108
+ text: string;
109
+ detail: null;
110
+ offers: PrestationType[];
111
+ hidden: PrestationType[];
112
+ } | {
113
+ text: string;
114
+ detail: null;
115
+ offers: PrestationType[];
116
+ hidden?: undefined;
117
+ } | {
118
+ text: string;
119
+ detail: string;
120
+ offers: PrestationType[];
121
+ hidden?: undefined;
122
+ })[];
123
+ legalForms: LegalFormTypeEnum[];
124
+ };
125
+ export declare const offers: ({
126
+ id: PrestationType;
127
+ tag: null;
128
+ title: string;
129
+ description: string;
130
+ price: number;
131
+ priceInformation: string;
132
+ additionalCosts: string;
133
+ features: ({
134
+ text: string;
135
+ detail: null;
136
+ offers: PrestationType[];
137
+ hidden: PrestationType[];
138
+ } | {
139
+ text: string;
140
+ detail: null;
141
+ offers: PrestationType[];
142
+ hidden?: undefined;
143
+ } | {
144
+ text: string;
145
+ detail: string;
146
+ offers: PrestationType[];
147
+ hidden?: undefined;
148
+ })[];
149
+ legalForms: LegalFormTypeEnum[];
150
+ } | {
151
+ id: PrestationType;
152
+ tag: string;
153
+ title: string;
154
+ description: string;
155
+ price: Record<number, number>;
156
+ priceInformation: string;
157
+ additionalCosts: string;
158
+ features: ({
159
+ text: string;
160
+ detail: null;
161
+ offers: PrestationType[];
162
+ hidden: PrestationType[];
163
+ } | {
164
+ text: string;
165
+ detail: null;
166
+ offers: PrestationType[];
167
+ hidden?: undefined;
168
+ } | {
169
+ text: string;
170
+ detail: string;
171
+ offers: PrestationType[];
172
+ hidden?: undefined;
173
+ })[];
174
+ legalForms: LegalFormTypeEnum[];
175
+ })[];
176
+ export declare const getStatutsAmount: (idLegalForm: LegalFormTypeEnum, idPrestationList: PrestationType) => number;
177
+ //# sourceMappingURL=statutsGeneration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statutsGeneration.d.ts","sourceRoot":"","sources":["../../../ts/utils/statutsGeneration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOpD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAO7C,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;IAgCpB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAUvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAevB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAWvB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAwD,CAAC;AAE5E,eAAO,MAAM,gBAAgB,gBAAiB,iBAAiB,oBAAoB,cAAc,KAAG,MAWnG,CAAC"}
@@ -0,0 +1,111 @@
1
+ import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
2
+ import { PrestationType } from '../types/Enum/PrestationType';
3
+ export const legalNoticesCosts = {
4
+ [LegalFormTypeEnum.SASU]: 138,
5
+ [LegalFormTypeEnum.SAS]: 193,
6
+ [LegalFormTypeEnum.EURL]: 121,
7
+ [LegalFormTypeEnum.SARL]: 144,
8
+ [LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 0,
9
+ [LegalFormTypeEnum.EI]: 0,
10
+ };
11
+ export const courtCosts = {
12
+ [LegalFormTypeEnum.SASU]: 77.23,
13
+ [LegalFormTypeEnum.SAS]: 77.23,
14
+ [LegalFormTypeEnum.EURL]: 77.23,
15
+ [LegalFormTypeEnum.SARL]: 77.23,
16
+ [LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 39,
17
+ [LegalFormTypeEnum.EI]: 39,
18
+ };
19
+ export const features = [
20
+ {
21
+ text: 'Statuts + dossier complet',
22
+ detail: null,
23
+ offers: [PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2],
24
+ hidden: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_AE],
25
+ },
26
+ {
27
+ text: 'Dossier complet',
28
+ detail: null,
29
+ offers: [PrestationType.STATUTS_OPTION_AE],
30
+ hidden: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2],
31
+ },
32
+ {
33
+ text: 'Statuts',
34
+ detail: null,
35
+ offers: [PrestationType.STATUTS_FREE],
36
+ hidden: [PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],
37
+ },
38
+ {
39
+ text: 'Assistance mail et téléphonique',
40
+ detail: null,
41
+ offers: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],
42
+ },
43
+ { text: 'Suivi par nos formalistes', detail: null, offers: [PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE] },
44
+ {
45
+ text: 'Immatriculation',
46
+ detail: '(sous réserve du guichet unique)',
47
+ offers: [PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],
48
+ },
49
+ { text: 'Assurance anti-rejet', detail: null, offers: [PrestationType.STATUTS_OPTION_2] },
50
+ { text: 'Vérification du dossier', detail: null, offers: [PrestationType.STATUTS_OPTION_2] },
51
+ ];
52
+ export const justCreation = {
53
+ id: PrestationType.STATUTS_OPTION_1,
54
+ tag: null,
55
+ title: 'Just’ Création',
56
+ description: 'Une création en quelques clics',
57
+ price: 0,
58
+ priceInformation: 'HT',
59
+ additionalCosts: '+ Frais de greffe + frais d’annonce légale',
60
+ features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_FREE)),
61
+ legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],
62
+ };
63
+ export const justStatuts = {
64
+ id: PrestationType.STATUTS_FREE,
65
+ tag: null,
66
+ title: 'Just’ Statuts',
67
+ description: 'Editer vos statuts n’a jamais été aussi simple et rapide.',
68
+ price: 79,
69
+ priceInformation: 'HT',
70
+ additionalCosts: 'Annonce légale et frais de greffe non inclus',
71
+ features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_FREE)),
72
+ legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],
73
+ };
74
+ export const creaSociete = {
75
+ id: PrestationType.STATUTS_OPTION_2,
76
+ tag: 'Populaire',
77
+ title: 'Full\'Créa',
78
+ description: 'Création de société de A à Z, réalisée en toute conformité.',
79
+ price: {
80
+ [LegalFormTypeEnum.SASU]: 179,
81
+ [LegalFormTypeEnum.SAS]: 219,
82
+ [LegalFormTypeEnum.EURL]: 179,
83
+ [LegalFormTypeEnum.SARL]: 219,
84
+ },
85
+ priceInformation: 'HT',
86
+ additionalCosts: '+ frais de greffe + frais d’annonce légale',
87
+ features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_OPTION_2)),
88
+ legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],
89
+ };
90
+ export const creaEIMicro = {
91
+ id: PrestationType.STATUTS_OPTION_AE,
92
+ tag: null,
93
+ title: 'Créa EI et Micro',
94
+ description: 'Créer votre entreprise individuelle ou votre micro-entreprise en quelques clics.',
95
+ price: 60,
96
+ priceInformation: 'HT',
97
+ additionalCosts: '+ 39€ HT de frais de greffe',
98
+ features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_OPTION_AE)),
99
+ legalForms: [LegalFormTypeEnum.AUTO_ENTREPRENEUR, LegalFormTypeEnum.EI],
100
+ };
101
+ export const offers = [justCreation, creaEIMicro, justStatuts, creaSociete];
102
+ export const getStatutsAmount = (idLegalForm, idPrestationList) => {
103
+ const offer = offers.find((e) => e.id === idPrestationList);
104
+ const price = typeof offer.price === 'object'
105
+ ? offer.price[idLegalForm]
106
+ : offer.price;
107
+ return price +
108
+ legalNoticesCosts[idLegalForm] +
109
+ courtCosts[idLegalForm];
110
+ };
111
+ //# sourceMappingURL=statutsGeneration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statutsGeneration.js","sourceRoot":"","sources":["../../../ts/utils/statutsGeneration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,CAAC,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IAAI,EAAE,iBAAiB,CAAC,GAAG,EAAE,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC;CAC5G,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,EAAE,EAAE,cAAc,CAAC,iBAAiB;IACpC,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACP,kFAAkF;IACtF,KAAK,EAAE,EAAE;IACT,gBAAgB,EAAE,IAAI;IACtB,eAAe,EAAE,6BAA6B;IAC9C,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;IACrF,UAAU,EAAE,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,EAAE,CAAC;CACxE,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,WAA8B,EAAE,gBAAgC,EAAU,EAAE;IAC3G,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,gBAAgB,CAAE,CAAC;IAE7D,MAAM,KAAK,GACP,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ;QAC7B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC;QAC1B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;IAEpB,OAAO,KAAK;QACR,iBAAiB,CAAC,WAAW,CAAC;QAC9B,UAAU,CAAC,WAAW,CAAC,CAAC;AAC9B,CAAC,CAAC","sourcesContent":["import { LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport { PrestationType } from '../types/Enum/PrestationType';\n\nexport const legalNoticesCosts: Record<number, number> = {\n [LegalFormTypeEnum.SASU]: 138,\n [LegalFormTypeEnum.SAS]: 193,\n [LegalFormTypeEnum.EURL]: 121,\n [LegalFormTypeEnum.SARL]: 144,\n [LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 0,\n [LegalFormTypeEnum.EI]: 0,\n};\n\nexport const courtCosts: Record<number, number> = {\n [LegalFormTypeEnum.SASU]: 77.23,\n [LegalFormTypeEnum.SAS]: 77.23,\n [LegalFormTypeEnum.EURL]: 77.23,\n [LegalFormTypeEnum.SARL]: 77.23,\n [LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 39,\n [LegalFormTypeEnum.EI]: 39,\n};\n\nexport const features = [\n {\n text: 'Statuts + dossier complet',\n detail: null,\n offers: [PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2],\n hidden: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_AE],\n },\n {\n text: 'Dossier complet',\n detail: null,\n offers: [PrestationType.STATUTS_OPTION_AE],\n hidden: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2],\n },\n {\n text: 'Statuts',\n detail: null,\n offers: [PrestationType.STATUTS_FREE],\n hidden: [PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],\n },\n {\n text: 'Assistance mail et téléphonique',\n detail: null,\n offers: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],\n },\n { text: 'Suivi par nos formalistes', detail: null, offers: [PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE] },\n {\n text: 'Immatriculation',\n detail: '(sous réserve du guichet unique)',\n offers: [PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],\n },\n { text: 'Assurance anti-rejet', detail: null, offers: [PrestationType.STATUTS_OPTION_2] },\n { text: 'Vérification du dossier', detail: null, offers: [PrestationType.STATUTS_OPTION_2] },\n];\n\nexport const justCreation = {\n id: PrestationType.STATUTS_OPTION_1,\n tag: null,\n title: 'Just’ Création',\n description: 'Une création en quelques clics',\n price: 0,\n priceInformation: 'HT',\n additionalCosts: '+ Frais de greffe + frais d’annonce légale',\n features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_FREE)),\n legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],\n};\n \nexport const justStatuts = {\n id: PrestationType.STATUTS_FREE,\n tag: null,\n title: 'Just’ Statuts',\n description: 'Editer vos statuts n’a jamais été aussi simple et rapide.',\n price: 79,\n priceInformation: 'HT',\n additionalCosts: 'Annonce légale et frais de greffe non inclus',\n features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_FREE)),\n legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],\n};\n \nexport const creaSociete = {\n id: PrestationType.STATUTS_OPTION_2,\n tag: 'Populaire',\n title: 'Full\\'Créa',\n description: 'Création de société de A à Z, réalisée en toute conformité.',\n price: {\n [LegalFormTypeEnum.SASU]: 179,\n [LegalFormTypeEnum.SAS]: 219,\n [LegalFormTypeEnum.EURL]: 179,\n [LegalFormTypeEnum.SARL]: 219,\n } as Record<number, number>,\n priceInformation: 'HT',\n additionalCosts: '+ frais de greffe + frais d’annonce légale',\n features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_OPTION_2)),\n legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],\n};\n \nexport const creaEIMicro = {\n id: PrestationType.STATUTS_OPTION_AE,\n tag: null,\n title: 'Créa EI et Micro',\n description:\n 'Créer votre entreprise individuelle ou votre micro-entreprise en quelques clics.',\n price: 60,\n priceInformation: 'HT',\n additionalCosts: '+ 39€ HT de frais de greffe',\n features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_OPTION_AE)),\n legalForms: [LegalFormTypeEnum.AUTO_ENTREPRENEUR, LegalFormTypeEnum.EI],\n};\n \nexport const offers = [justCreation, creaEIMicro, justStatuts, creaSociete];\n\nexport const getStatutsAmount = (idLegalForm: LegalFormTypeEnum, idPrestationList: PrestationType): number => {\n const offer = offers.find((e) => e.id === idPrestationList)!;\n \n const price =\n typeof offer.price === 'object'\n ? offer.price[idLegalForm]\n : offer.price;\n\n return price +\n legalNoticesCosts[idLegalForm] +\n courtCosts[idLegalForm];\n};"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.179",
3
+ "version": "1.1.181",
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": "dist/cjs/index.js",
@@ -1,5 +1,7 @@
1
1
  import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, QueryBalanceSheetAttestation, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation } from '../..';
2
2
  import { Resource } from '../Resource';
3
+ import { AxiosResponse } from 'axios';
4
+
3
5
 
4
6
  export class BalanceSheet extends Resource {
5
7
  getStatistics(params: QueryBalanceSheetStatistic): Promise<ReadBalanceSheetStatistic> {
@@ -10,6 +12,10 @@ export class BalanceSheet extends Resource {
10
12
  return this.axios.$get('/exercice/balanceSheet/monthly-statistics', { params });
11
13
  }
12
14
 
15
+ getMonthlyStatisticsCsv(params: QueryBalanceSheetMonthlyStatistic): Promise<AxiosResponse> {
16
+ return this.axios.$get('/exercice/balanceSheet/monthly-statistics-csv', { params });
17
+ }
18
+
13
19
  createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer> {
14
20
  return this.axios.$post(`/exercice/balanceSheet/${idBalanceSheet}/attestations`, params, {
15
21
  responseType: 'arraybuffer',
@@ -37,11 +37,6 @@ 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
41
- create(payload: CreateThirdPartyForm): Promise<IThirdParty> {
42
- return this.axios.$post('/third-parties', payload);
43
- }
44
-
45
40
  createForSociety(idSociety: number, payload: CreateThirdPartyForm): Promise<IThirdParty> {
46
41
  return this.axios.$post(`/societies/${idSociety}/third-parties`, payload);
47
42
  }