@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.
- package/dist/cjs/api/resources/BalanceSheet.d.ts +2 -0
- package/dist/cjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/api/resources/BalanceSheet.js +3 -0
- package/dist/cjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts +0 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.js +0 -4
- package/dist/cjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.d.ts +46 -46
- package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +272 -272
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js +0 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.d.ts.map +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/noLodash.d.ts +2 -0
- package/dist/cjs/utils/noLodash.d.ts.map +1 -1
- package/dist/cjs/utils/noLodash.js +9 -1
- package/dist/cjs/utils/noLodash.js.map +1 -1
- package/dist/cjs/utils/statutsGeneration.d.ts +177 -0
- package/dist/cjs/utils/statutsGeneration.d.ts.map +1 -0
- package/dist/cjs/utils/statutsGeneration.js +115 -0
- package/dist/cjs/utils/statutsGeneration.js.map +1 -0
- package/dist/mjs/api/resources/BalanceSheet.d.ts +2 -0
- package/dist/mjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/api/resources/BalanceSheet.js +3 -0
- package/dist/mjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts +0 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.js +0 -4
- package/dist/mjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.d.ts +46 -46
- package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +272 -272
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js +2 -3
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/mjs/utils/index.d.ts +1 -0
- package/dist/mjs/utils/index.d.ts.map +1 -1
- package/dist/mjs/utils/index.js +1 -0
- package/dist/mjs/utils/index.js.map +1 -1
- package/dist/mjs/utils/noLodash.d.ts +2 -0
- package/dist/mjs/utils/noLodash.d.ts.map +1 -1
- package/dist/mjs/utils/noLodash.js +7 -0
- package/dist/mjs/utils/noLodash.js.map +1 -1
- package/dist/mjs/utils/statutsGeneration.d.ts +177 -0
- package/dist/mjs/utils/statutsGeneration.d.ts.map +1 -0
- package/dist/mjs/utils/statutsGeneration.js +111 -0
- package/dist/mjs/utils/statutsGeneration.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/BalanceSheet.ts +6 -0
- package/ts/api/resources/ThirdParty.ts +0 -5
- package/ts/types/Enum/BrandPourcentage.ts +272 -272
- package/ts/types/Interface/api/library/QueryLibrary.ts +1 -2
- package/ts/types/Interface/models/IBalanceSheet.ts +1 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/noLodash.ts +29 -1
- 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,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStatutsAmount = exports.offers = exports.creaEIMicro = exports.creaSociete = exports.justStatuts = exports.justCreation = exports.features = exports.courtCosts = exports.legalNoticesCosts = void 0;
|
|
4
|
+
const LegalForm_1 = require("../types/Enum/LegalForm");
|
|
5
|
+
const PrestationType_1 = require("../types/Enum/PrestationType");
|
|
6
|
+
exports.legalNoticesCosts = {
|
|
7
|
+
[LegalForm_1.LegalFormTypeEnum.SASU]: 138,
|
|
8
|
+
[LegalForm_1.LegalFormTypeEnum.SAS]: 193,
|
|
9
|
+
[LegalForm_1.LegalFormTypeEnum.EURL]: 121,
|
|
10
|
+
[LegalForm_1.LegalFormTypeEnum.SARL]: 144,
|
|
11
|
+
[LegalForm_1.LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 0,
|
|
12
|
+
[LegalForm_1.LegalFormTypeEnum.EI]: 0,
|
|
13
|
+
};
|
|
14
|
+
exports.courtCosts = {
|
|
15
|
+
[LegalForm_1.LegalFormTypeEnum.SASU]: 77.23,
|
|
16
|
+
[LegalForm_1.LegalFormTypeEnum.SAS]: 77.23,
|
|
17
|
+
[LegalForm_1.LegalFormTypeEnum.EURL]: 77.23,
|
|
18
|
+
[LegalForm_1.LegalFormTypeEnum.SARL]: 77.23,
|
|
19
|
+
[LegalForm_1.LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 39,
|
|
20
|
+
[LegalForm_1.LegalFormTypeEnum.EI]: 39,
|
|
21
|
+
};
|
|
22
|
+
exports.features = [
|
|
23
|
+
{
|
|
24
|
+
text: 'Statuts + dossier complet',
|
|
25
|
+
detail: null,
|
|
26
|
+
offers: [PrestationType_1.PrestationType.STATUTS_OPTION_1, PrestationType_1.PrestationType.STATUTS_OPTION_2],
|
|
27
|
+
hidden: [PrestationType_1.PrestationType.STATUTS_FREE, PrestationType_1.PrestationType.STATUTS_OPTION_AE],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
text: 'Dossier complet',
|
|
31
|
+
detail: null,
|
|
32
|
+
offers: [PrestationType_1.PrestationType.STATUTS_OPTION_AE],
|
|
33
|
+
hidden: [PrestationType_1.PrestationType.STATUTS_FREE, PrestationType_1.PrestationType.STATUTS_OPTION_1, PrestationType_1.PrestationType.STATUTS_OPTION_2],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
text: 'Statuts',
|
|
37
|
+
detail: null,
|
|
38
|
+
offers: [PrestationType_1.PrestationType.STATUTS_FREE],
|
|
39
|
+
hidden: [PrestationType_1.PrestationType.STATUTS_OPTION_1, PrestationType_1.PrestationType.STATUTS_OPTION_2, PrestationType_1.PrestationType.STATUTS_OPTION_AE],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
text: 'Assistance mail et téléphonique',
|
|
43
|
+
detail: null,
|
|
44
|
+
offers: [PrestationType_1.PrestationType.STATUTS_FREE, PrestationType_1.PrestationType.STATUTS_OPTION_1, PrestationType_1.PrestationType.STATUTS_OPTION_2, PrestationType_1.PrestationType.STATUTS_OPTION_AE],
|
|
45
|
+
},
|
|
46
|
+
{ text: 'Suivi par nos formalistes', detail: null, offers: [PrestationType_1.PrestationType.STATUTS_OPTION_2, PrestationType_1.PrestationType.STATUTS_OPTION_AE] },
|
|
47
|
+
{
|
|
48
|
+
text: 'Immatriculation',
|
|
49
|
+
detail: '(sous réserve du guichet unique)',
|
|
50
|
+
offers: [PrestationType_1.PrestationType.STATUTS_OPTION_2, PrestationType_1.PrestationType.STATUTS_OPTION_AE],
|
|
51
|
+
},
|
|
52
|
+
{ text: 'Assurance anti-rejet', detail: null, offers: [PrestationType_1.PrestationType.STATUTS_OPTION_2] },
|
|
53
|
+
{ text: 'Vérification du dossier', detail: null, offers: [PrestationType_1.PrestationType.STATUTS_OPTION_2] },
|
|
54
|
+
];
|
|
55
|
+
exports.justCreation = {
|
|
56
|
+
id: PrestationType_1.PrestationType.STATUTS_OPTION_1,
|
|
57
|
+
tag: null,
|
|
58
|
+
title: 'Just’ Création',
|
|
59
|
+
description: 'Une création en quelques clics',
|
|
60
|
+
price: 0,
|
|
61
|
+
priceInformation: 'HT',
|
|
62
|
+
additionalCosts: '+ Frais de greffe + frais d’annonce légale',
|
|
63
|
+
features: exports.features.filter((f) => f.offers.includes(PrestationType_1.PrestationType.STATUTS_FREE)),
|
|
64
|
+
legalForms: [LegalForm_1.LegalFormTypeEnum.SASU, LegalForm_1.LegalFormTypeEnum.SAS, LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SARL],
|
|
65
|
+
};
|
|
66
|
+
exports.justStatuts = {
|
|
67
|
+
id: PrestationType_1.PrestationType.STATUTS_FREE,
|
|
68
|
+
tag: null,
|
|
69
|
+
title: 'Just’ Statuts',
|
|
70
|
+
description: 'Editer vos statuts n’a jamais été aussi simple et rapide.',
|
|
71
|
+
price: 79,
|
|
72
|
+
priceInformation: 'HT',
|
|
73
|
+
additionalCosts: 'Annonce légale et frais de greffe non inclus',
|
|
74
|
+
features: exports.features.filter((f) => f.offers.includes(PrestationType_1.PrestationType.STATUTS_FREE)),
|
|
75
|
+
legalForms: [LegalForm_1.LegalFormTypeEnum.SASU, LegalForm_1.LegalFormTypeEnum.SAS, LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SARL],
|
|
76
|
+
};
|
|
77
|
+
exports.creaSociete = {
|
|
78
|
+
id: PrestationType_1.PrestationType.STATUTS_OPTION_2,
|
|
79
|
+
tag: 'Populaire',
|
|
80
|
+
title: 'Full\'Créa',
|
|
81
|
+
description: 'Création de société de A à Z, réalisée en toute conformité.',
|
|
82
|
+
price: {
|
|
83
|
+
[LegalForm_1.LegalFormTypeEnum.SASU]: 179,
|
|
84
|
+
[LegalForm_1.LegalFormTypeEnum.SAS]: 219,
|
|
85
|
+
[LegalForm_1.LegalFormTypeEnum.EURL]: 179,
|
|
86
|
+
[LegalForm_1.LegalFormTypeEnum.SARL]: 219,
|
|
87
|
+
},
|
|
88
|
+
priceInformation: 'HT',
|
|
89
|
+
additionalCosts: '+ frais de greffe + frais d’annonce légale',
|
|
90
|
+
features: exports.features.filter((f) => f.offers.includes(PrestationType_1.PrestationType.STATUTS_OPTION_2)),
|
|
91
|
+
legalForms: [LegalForm_1.LegalFormTypeEnum.SASU, LegalForm_1.LegalFormTypeEnum.SAS, LegalForm_1.LegalFormTypeEnum.EURL, LegalForm_1.LegalFormTypeEnum.SARL],
|
|
92
|
+
};
|
|
93
|
+
exports.creaEIMicro = {
|
|
94
|
+
id: PrestationType_1.PrestationType.STATUTS_OPTION_AE,
|
|
95
|
+
tag: null,
|
|
96
|
+
title: 'Créa EI et Micro',
|
|
97
|
+
description: 'Créer votre entreprise individuelle ou votre micro-entreprise en quelques clics.',
|
|
98
|
+
price: 60,
|
|
99
|
+
priceInformation: 'HT',
|
|
100
|
+
additionalCosts: '+ 39€ HT de frais de greffe',
|
|
101
|
+
features: exports.features.filter((f) => f.offers.includes(PrestationType_1.PrestationType.STATUTS_OPTION_AE)),
|
|
102
|
+
legalForms: [LegalForm_1.LegalFormTypeEnum.AUTO_ENTREPRENEUR, LegalForm_1.LegalFormTypeEnum.EI],
|
|
103
|
+
};
|
|
104
|
+
exports.offers = [exports.justCreation, exports.creaEIMicro, exports.justStatuts, exports.creaSociete];
|
|
105
|
+
const getStatutsAmount = (idLegalForm, idPrestationList) => {
|
|
106
|
+
const offer = exports.offers.find((e) => e.id === idPrestationList);
|
|
107
|
+
const price = typeof offer.price === 'object'
|
|
108
|
+
? offer.price[idLegalForm]
|
|
109
|
+
: offer.price;
|
|
110
|
+
return price +
|
|
111
|
+
exports.legalNoticesCosts[idLegalForm] +
|
|
112
|
+
exports.courtCosts[idLegalForm];
|
|
113
|
+
};
|
|
114
|
+
exports.getStatutsAmount = getStatutsAmount;
|
|
115
|
+
//# sourceMappingURL=statutsGeneration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statutsGeneration.js","sourceRoot":"","sources":["../../../ts/utils/statutsGeneration.ts"],"names":[],"mappings":";;;AAAA,uDAA4D;AAC5D,iEAA8D;AAEjD,QAAA,iBAAiB,GAA2B;IACvD,CAAC,6BAAiB,CAAC,IAAI,CAAC,EAAE,GAAG;IAC7B,CAAC,6BAAiB,CAAC,GAAG,CAAC,EAAE,GAAG;IAC5B,CAAC,6BAAiB,CAAC,IAAI,CAAC,EAAE,GAAG;IAC7B,CAAC,6BAAiB,CAAC,IAAI,CAAC,EAAE,GAAG;IAC7B,CAAC,6BAAiB,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACxC,CAAC,6BAAiB,CAAC,EAAE,CAAC,EAAE,CAAC;CAC1B,CAAC;AAEW,QAAA,UAAU,GAA2B;IAChD,CAAC,6BAAiB,CAAC,IAAI,CAAC,EAAE,KAAK;IAC/B,CAAC,6BAAiB,CAAC,GAAG,CAAC,EAAE,KAAK;IAC9B,CAAC,6BAAiB,CAAC,IAAI,CAAC,EAAE,KAAK;IAC/B,CAAC,6BAAiB,CAAC,IAAI,CAAC,EAAE,KAAK;IAC/B,CAAC,6BAAiB,CAAC,iBAAiB,CAAC,EAAE,EAAE;IACzC,CAAC,6BAAiB,CAAC,EAAE,CAAC,EAAE,EAAE;CAC3B,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB;QACE,IAAI,EAAE,2BAA2B;QACjC,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,CAAC,+BAAc,CAAC,gBAAgB,EAAE,+BAAc,CAAC,gBAAgB,CAAC;QAC1E,MAAM,EAAE,CAAC,+BAAc,CAAC,YAAY,EAAE,+BAAc,CAAC,iBAAiB,CAAC;KACxE;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,CAAC,+BAAc,CAAC,iBA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BAAiB,CAAC,WAAW,CAAC;QAC9B,kBAAU,CAAC,WAAW,CAAC,CAAC;AAC9B,CAAC,CAAC;AAXW,QAAA,gBAAgB,oBAW3B","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};"]}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, QueryBalanceSheetAttestation, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation } from '../..';
|
|
3
3
|
import { Resource } from '../Resource';
|
|
4
|
+
import { AxiosResponse } from 'axios';
|
|
4
5
|
export declare class BalanceSheet extends Resource {
|
|
5
6
|
getStatistics(params: QueryBalanceSheetStatistic): Promise<ReadBalanceSheetStatistic>;
|
|
6
7
|
getMonthlyStatistics(params: QueryBalanceSheetMonthlyStatistic): Promise<ReadBalanceSheetMonthlyStatistic>;
|
|
8
|
+
getMonthlyStatisticsCsv(params: QueryBalanceSheetMonthlyStatistic): Promise<AxiosResponse>;
|
|
7
9
|
createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer>;
|
|
8
10
|
getAttestation(params: QueryBalanceSheetAttestation): Promise<string>;
|
|
9
11
|
getPdf(params: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheet.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,iCAAiC,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,OAAO,CAAC;AAC1Q,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"BalanceSheet.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,iCAAiC,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,OAAO,CAAC;AAC1Q,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,qBAAa,YAAa,SAAQ,QAAQ;IACxC,aAAa,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAIrF,oBAAoB,CAAC,MAAM,EAAE,iCAAiC,GAAG,OAAO,CAAC,gCAAgC,CAAC;IAI1G,uBAAuB,CAAC,MAAM,EAAE,iCAAiC,GAAG,OAAO,CAAC,aAAa,CAAC;IAI1F,iBAAiB,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,MAAM,CAAC;IASjG,cAAc,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrE,MAAM,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IASvD,oBAAoB,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIpF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAItE,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;CAGjE"}
|
|
@@ -6,6 +6,9 @@ export class BalanceSheet extends Resource {
|
|
|
6
6
|
getMonthlyStatistics(params) {
|
|
7
7
|
return this.axios.$get('/exercice/balanceSheet/monthly-statistics', { params });
|
|
8
8
|
}
|
|
9
|
+
getMonthlyStatisticsCsv(params) {
|
|
10
|
+
return this.axios.$get('/exercice/balanceSheet/monthly-statistics-csv', { params });
|
|
11
|
+
}
|
|
9
12
|
createAttestation(idBalanceSheet, params) {
|
|
10
13
|
return this.axios.$post(`/exercice/balanceSheet/${idBalanceSheet}/attestations`, params, {
|
|
11
14
|
responseType: 'arraybuffer',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceSheet.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"BalanceSheet.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,aAAa,CAAC,MAAkC;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,oBAAoB,CAAC,MAAyC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,2CAA2C,EAAE,EA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adBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation } from '../..';\nimport { Resource } from '../Resource';\nimport { AxiosResponse } from 'axios';\n\n\nexport class BalanceSheet extends Resource {\n getStatistics(params: QueryBalanceSheetStatistic): Promise<ReadBalanceSheetStatistic> {\n return this.axios.$get('/exercice/balanceSheet/statistics', { params });\n }\n\n getMonthlyStatistics(params: QueryBalanceSheetMonthlyStatistic): Promise<ReadBalanceSheetMonthlyStatistic> {\n return this.axios.$get('/exercice/balanceSheet/monthly-statistics', { params });\n }\n\n getMonthlyStatisticsCsv(params: QueryBalanceSheetMonthlyStatistic): Promise<AxiosResponse> {\n return this.axios.$get('/exercice/balanceSheet/monthly-statistics-csv', { params });\n }\n\n createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer> {\n return this.axios.$post(`/exercice/balanceSheet/${idBalanceSheet}/attestations`, params, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAttestation(params: QueryBalanceSheetAttestation): Promise<string> {\n return this.axios.$get('/exercice/balanceSheet/attestations', { params });\n }\n\n getPdf(params: { idExercice: number }): Promise<Buffer> {\n return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/pdf`, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getFreelanceTurnover(params: { idExercice: number }): Promise<ReadFreelanceTurnover> {\n return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/freelanceTurnover`);\n }\n\n update(id: number, params: UpdateBalanceSheet): Promise<IBalanceSheet> {\n return this.axios.$put(`/exercice/balanceSheet/${id}`, params);\n }\n\n getByExercice(idExercice: number): Promise<IBalanceSheet | null> {\n return this.axios.$get(`/exercice/${idExercice}/balance-sheets`);\n }\n}\n"]}
|
|
@@ -5,7 +5,6 @@ export declare class ThirdParty extends Resource {
|
|
|
5
5
|
getAll(): Promise<Array<IThirdParty>>;
|
|
6
6
|
getPaginated(pagination: QueryPaginate, query?: QueryThirdParty, cancelToken?: CancelToken, signal?: AbortSignal): Promise<BasePaginate<IThirdParty>>;
|
|
7
7
|
update(idThirdParty: number, payload: UpdateThirdPartyForm): Promise<IThirdParty>;
|
|
8
|
-
create(payload: CreateThirdPartyForm): Promise<IThirdParty>;
|
|
9
8
|
createForSociety(idSociety: number, payload: CreateThirdPartyForm): Promise<IThirdParty>;
|
|
10
9
|
delete(idThirdParty: number): Promise<true>;
|
|
11
10
|
}
|
|
@@ -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;
|
|
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,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,10 +16,6 @@ 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
|
|
20
|
-
create(payload) {
|
|
21
|
-
return this.axios.$post('/third-parties', payload);
|
|
22
|
-
}
|
|
23
19
|
createForSociety(idSociety, payload) {
|
|
24
20
|
return this.axios.$post(`/societies/${idSociety}/third-parties`, payload);
|
|
25
21
|
}
|
|
@@ -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,CAA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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,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 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"]}
|
|
@@ -298,13 +298,13 @@ export declare const BrandPourcentage: ({
|
|
|
298
298
|
nomRaisonSociale: string;
|
|
299
299
|
ECName: string;
|
|
300
300
|
ECOrderCity: string;
|
|
301
|
+
ECDepartment: string;
|
|
301
302
|
ECPosition: string;
|
|
302
303
|
phone: string;
|
|
303
304
|
postalAddress: string;
|
|
304
305
|
rcs: string;
|
|
305
306
|
statut: string;
|
|
306
307
|
zipCode: string;
|
|
307
|
-
ECDepartment?: undefined;
|
|
308
308
|
};
|
|
309
309
|
idPrestationsListAuthorized: number[];
|
|
310
310
|
logoUrl: string;
|
|
@@ -321,12 +321,13 @@ export declare const BrandPourcentage: ({
|
|
|
321
321
|
BIC: string;
|
|
322
322
|
Name: string;
|
|
323
323
|
Id: string;
|
|
324
|
-
codeEtablissement
|
|
325
|
-
codeGuichet
|
|
326
|
-
numeroCompte
|
|
327
|
-
cleRib
|
|
324
|
+
codeEtablissement: string;
|
|
325
|
+
codeGuichet: string;
|
|
326
|
+
numeroCompte: string;
|
|
327
|
+
cleRib: string;
|
|
328
328
|
};
|
|
329
329
|
internalInvoicing: {
|
|
330
|
+
lastUsedNumber: number;
|
|
330
331
|
statut: string;
|
|
331
332
|
name: string;
|
|
332
333
|
address: string;
|
|
@@ -340,13 +341,44 @@ export declare const BrandPourcentage: ({
|
|
|
340
341
|
phone: string;
|
|
341
342
|
vatIntracom: string;
|
|
342
343
|
email: string;
|
|
343
|
-
lastUsedNumber?: undefined;
|
|
344
344
|
};
|
|
345
345
|
webmail: {
|
|
346
346
|
domain: string;
|
|
347
347
|
};
|
|
348
|
+
salesContractConfig: ({
|
|
349
|
+
label: string;
|
|
350
|
+
name: string;
|
|
351
|
+
needBgImage: boolean;
|
|
352
|
+
versionable: boolean;
|
|
353
|
+
idPrestationType: (number | undefined)[];
|
|
354
|
+
condition?: undefined;
|
|
355
|
+
keyName?: undefined;
|
|
356
|
+
} | {
|
|
357
|
+
label: string;
|
|
358
|
+
name: string;
|
|
359
|
+
needBgImage: boolean;
|
|
360
|
+
versionable: boolean;
|
|
361
|
+
idPrestationType: PrestationType[];
|
|
362
|
+
condition: (turnover: number) => boolean;
|
|
363
|
+
keyName?: undefined;
|
|
364
|
+
} | {
|
|
365
|
+
label: string;
|
|
366
|
+
name: string;
|
|
367
|
+
needBgImage: boolean;
|
|
368
|
+
versionable: boolean;
|
|
369
|
+
idPrestationType: PrestationType[];
|
|
370
|
+
keyName: string;
|
|
371
|
+
condition?: undefined;
|
|
372
|
+
} | {
|
|
373
|
+
label: string;
|
|
374
|
+
name: string;
|
|
375
|
+
idPrestationType: PrestationType[];
|
|
376
|
+
needBgImage: boolean;
|
|
377
|
+
versionable: boolean;
|
|
378
|
+
keyName: string;
|
|
379
|
+
condition: (price: number) => boolean;
|
|
380
|
+
})[];
|
|
348
381
|
offices?: undefined;
|
|
349
|
-
salesContractConfig?: undefined;
|
|
350
382
|
} | {
|
|
351
383
|
idTypeBrand: number;
|
|
352
384
|
urlS3: string;
|
|
@@ -395,13 +427,13 @@ export declare const BrandPourcentage: ({
|
|
|
395
427
|
nomRaisonSociale: string;
|
|
396
428
|
ECName: string;
|
|
397
429
|
ECOrderCity: string;
|
|
398
|
-
ECDepartment: string;
|
|
399
430
|
ECPosition: string;
|
|
400
431
|
phone: string;
|
|
401
432
|
postalAddress: string;
|
|
402
433
|
rcs: string;
|
|
403
434
|
statut: string;
|
|
404
435
|
zipCode: string;
|
|
436
|
+
ECDepartment?: undefined;
|
|
405
437
|
};
|
|
406
438
|
idPrestationsListAuthorized: number[];
|
|
407
439
|
logoUrl: string;
|
|
@@ -418,13 +450,12 @@ export declare const BrandPourcentage: ({
|
|
|
418
450
|
BIC: string;
|
|
419
451
|
Name: string;
|
|
420
452
|
Id: string;
|
|
421
|
-
codeEtablissement
|
|
422
|
-
codeGuichet
|
|
423
|
-
numeroCompte
|
|
424
|
-
cleRib
|
|
453
|
+
codeEtablissement?: undefined;
|
|
454
|
+
codeGuichet?: undefined;
|
|
455
|
+
numeroCompte?: undefined;
|
|
456
|
+
cleRib?: undefined;
|
|
425
457
|
};
|
|
426
458
|
internalInvoicing: {
|
|
427
|
-
lastUsedNumber: number;
|
|
428
459
|
statut: string;
|
|
429
460
|
name: string;
|
|
430
461
|
address: string;
|
|
@@ -438,43 +469,12 @@ export declare const BrandPourcentage: ({
|
|
|
438
469
|
phone: string;
|
|
439
470
|
vatIntracom: string;
|
|
440
471
|
email: string;
|
|
472
|
+
lastUsedNumber?: undefined;
|
|
441
473
|
};
|
|
442
474
|
webmail: {
|
|
443
475
|
domain: string;
|
|
444
476
|
};
|
|
445
|
-
salesContractConfig: ({
|
|
446
|
-
label: string;
|
|
447
|
-
name: string;
|
|
448
|
-
needBgImage: boolean;
|
|
449
|
-
versionable: boolean;
|
|
450
|
-
idPrestationType: (number | undefined)[];
|
|
451
|
-
condition?: undefined;
|
|
452
|
-
keyName?: undefined;
|
|
453
|
-
} | {
|
|
454
|
-
label: string;
|
|
455
|
-
name: string;
|
|
456
|
-
needBgImage: boolean;
|
|
457
|
-
versionable: boolean;
|
|
458
|
-
idPrestationType: PrestationType[];
|
|
459
|
-
condition: (turnover: number) => boolean;
|
|
460
|
-
keyName?: undefined;
|
|
461
|
-
} | {
|
|
462
|
-
label: string;
|
|
463
|
-
name: string;
|
|
464
|
-
needBgImage: boolean;
|
|
465
|
-
versionable: boolean;
|
|
466
|
-
idPrestationType: PrestationType[];
|
|
467
|
-
keyName: string;
|
|
468
|
-
condition?: undefined;
|
|
469
|
-
} | {
|
|
470
|
-
label: string;
|
|
471
|
-
name: string;
|
|
472
|
-
idPrestationType: PrestationType[];
|
|
473
|
-
needBgImage: boolean;
|
|
474
|
-
versionable: boolean;
|
|
475
|
-
keyName: string;
|
|
476
|
-
condition: (price: number) => boolean;
|
|
477
|
-
})[];
|
|
478
477
|
offices?: undefined;
|
|
478
|
+
salesContractConfig?: undefined;
|
|
479
479
|
})[];
|
|
480
480
|
//# sourceMappingURL=BrandPourcentage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrandPourcentage.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/Br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