@silexpert/core 1.3.30-5 → 1.3.30-7
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/Society.d.ts +2 -1
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js +3 -0
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +13 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +183 -1
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +2 -0
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/State.d.ts +7 -0
- package/dist/cjs/types/Interface/api/society/State.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/State.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +2 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +11 -0
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +2 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +9 -1
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts +2 -1
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js +3 -0
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +13 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +182 -0
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +2 -0
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/State.d.ts +7 -0
- package/dist/mjs/types/Interface/api/society/State.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/State.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +2 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +13 -0
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +2 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +9 -2
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Society.ts +5 -0
- package/ts/types/Enum/PrestationType.ts +186 -0
- package/ts/types/Interface/api/cerfa/2031.ts +2 -0
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +1 -1
- package/ts/types/Interface/api/society/State.ts +8 -0
- package/ts/types/Interface/api/stripe/Create.ts +9 -0
- package/ts/utils/prestation.ts +13 -1
|
@@ -179,6 +179,14 @@ export enum PrestationType {
|
|
|
179
179
|
ENVOIE_LRAR = 222,
|
|
180
180
|
FORECAST_BALANCE_SHEET_AT_0 = 226,
|
|
181
181
|
CONSULTING_HOUR = 227,
|
|
182
|
+
BILLING = 228,
|
|
183
|
+
STEERING = 229,
|
|
184
|
+
VAT = 230,
|
|
185
|
+
BALANCESHEET = 231,
|
|
186
|
+
EXPERTISE = 232,
|
|
187
|
+
SUPPORT = 233,
|
|
188
|
+
PREMIUM = 234,
|
|
189
|
+
CUSTOM_MADE = 235,
|
|
182
190
|
}
|
|
183
191
|
|
|
184
192
|
// Liste des prestations avec une lettre de mission à signer
|
|
@@ -208,6 +216,32 @@ export const allPrestationsWithBrochure = [
|
|
|
208
216
|
PrestationType.DECLARATION_IR,
|
|
209
217
|
];
|
|
210
218
|
|
|
219
|
+
export const allPrestations2025WithBrochure = [
|
|
220
|
+
PrestationType.EXPERTISE,
|
|
221
|
+
PrestationType.SUPPORT,
|
|
222
|
+
PrestationType.PREMIUM,
|
|
223
|
+
PrestationType.CUSTOM_MADE,
|
|
224
|
+
];
|
|
225
|
+
|
|
226
|
+
export const ClementineSubscriptionAccountancyExpertPrestations: PrestationType[] = [
|
|
227
|
+
PrestationType.EXPERTISE,
|
|
228
|
+
PrestationType.SUPPORT,
|
|
229
|
+
PrestationType.PREMIUM,
|
|
230
|
+
PrestationType.CUSTOM_MADE,
|
|
231
|
+
];
|
|
232
|
+
|
|
233
|
+
export const ClementineSubscriptionAccountancySoftwarePrestations: PrestationType[] = [
|
|
234
|
+
PrestationType.BILLING,
|
|
235
|
+
PrestationType.STEERING,
|
|
236
|
+
PrestationType.VAT,
|
|
237
|
+
PrestationType.BALANCESHEET,
|
|
238
|
+
];
|
|
239
|
+
|
|
240
|
+
export const ClementineSubscriptionAccountancyPrestations: PrestationType[] = [
|
|
241
|
+
...ClementineSubscriptionAccountancyExpertPrestations,
|
|
242
|
+
...ClementineSubscriptionAccountancySoftwarePrestations,
|
|
243
|
+
];
|
|
244
|
+
|
|
211
245
|
export interface PrestationDetailEnum {
|
|
212
246
|
[key: string]: IPrestationList;
|
|
213
247
|
}
|
|
@@ -3599,4 +3633,156 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3599
3633
|
signaturePage: null,
|
|
3600
3634
|
point: 0,
|
|
3601
3635
|
},
|
|
3636
|
+
BILLING: {
|
|
3637
|
+
id: PrestationType.BILLING,
|
|
3638
|
+
name: 'Facturation',
|
|
3639
|
+
isComptable: true,
|
|
3640
|
+
isJuridique: false,
|
|
3641
|
+
isSocial: false,
|
|
3642
|
+
isAttestation: false,
|
|
3643
|
+
inAverageCart: true,
|
|
3644
|
+
isBack: false,
|
|
3645
|
+
minimumPrice: null,
|
|
3646
|
+
price: null,
|
|
3647
|
+
isCatalog: false,
|
|
3648
|
+
isPlannable: false,
|
|
3649
|
+
hidden: false,
|
|
3650
|
+
isComplementary: false,
|
|
3651
|
+
signaturePosition: '400,54,569,90',
|
|
3652
|
+
signaturePage: 7, //???
|
|
3653
|
+
point: 200, //???
|
|
3654
|
+
},
|
|
3655
|
+
STEERING: {
|
|
3656
|
+
id: PrestationType.STEERING,
|
|
3657
|
+
name: 'Pilotage',
|
|
3658
|
+
isComptable: true,
|
|
3659
|
+
isJuridique: false,
|
|
3660
|
+
isSocial: false,
|
|
3661
|
+
isAttestation: false,
|
|
3662
|
+
inAverageCart: true,
|
|
3663
|
+
isBack: false,
|
|
3664
|
+
minimumPrice: null,
|
|
3665
|
+
price: null,
|
|
3666
|
+
isCatalog: false,
|
|
3667
|
+
isPlannable: false,
|
|
3668
|
+
hidden: false,
|
|
3669
|
+
isComplementary: false,
|
|
3670
|
+
signaturePosition: '400,54,569,90',
|
|
3671
|
+
signaturePage: 7, //???
|
|
3672
|
+
point: 200, //???
|
|
3673
|
+
},
|
|
3674
|
+
VAT: {
|
|
3675
|
+
id: PrestationType.VAT,
|
|
3676
|
+
name: 'TVA',
|
|
3677
|
+
isComptable: true,
|
|
3678
|
+
isJuridique: false,
|
|
3679
|
+
isSocial: false,
|
|
3680
|
+
isAttestation: false,
|
|
3681
|
+
inAverageCart: true,
|
|
3682
|
+
isBack: false,
|
|
3683
|
+
minimumPrice: null,
|
|
3684
|
+
price: null,
|
|
3685
|
+
isCatalog: false,
|
|
3686
|
+
isPlannable: false,
|
|
3687
|
+
hidden: false,
|
|
3688
|
+
isComplementary: false,
|
|
3689
|
+
signaturePosition: '400,54,569,90',
|
|
3690
|
+
signaturePage: 7, //???
|
|
3691
|
+
point: 200, //???
|
|
3692
|
+
},
|
|
3693
|
+
BALANCESHEET: {
|
|
3694
|
+
id: PrestationType.BALANCESHEET,
|
|
3695
|
+
name: 'Bilan',
|
|
3696
|
+
isComptable: true,
|
|
3697
|
+
isJuridique: false,
|
|
3698
|
+
isSocial: false,
|
|
3699
|
+
isAttestation: false,
|
|
3700
|
+
inAverageCart: true,
|
|
3701
|
+
isBack: false,
|
|
3702
|
+
minimumPrice: null,
|
|
3703
|
+
price: null,
|
|
3704
|
+
isCatalog: false,
|
|
3705
|
+
isPlannable: false,
|
|
3706
|
+
hidden: false,
|
|
3707
|
+
isComplementary: false,
|
|
3708
|
+
signaturePosition: '400,54,569,90',
|
|
3709
|
+
signaturePage: 7, //???
|
|
3710
|
+
point: 200, //???
|
|
3711
|
+
},
|
|
3712
|
+
EXPERTISE: {
|
|
3713
|
+
id: PrestationType.EXPERTISE,
|
|
3714
|
+
name: 'Expertise',
|
|
3715
|
+
isComptable: true,
|
|
3716
|
+
isJuridique: false,
|
|
3717
|
+
isSocial: false,
|
|
3718
|
+
isAttestation: false,
|
|
3719
|
+
inAverageCart: true,
|
|
3720
|
+
isBack: false,
|
|
3721
|
+
minimumPrice: null,
|
|
3722
|
+
price: null,
|
|
3723
|
+
isCatalog: false,
|
|
3724
|
+
isPlannable: false,
|
|
3725
|
+
hidden: false,
|
|
3726
|
+
isComplementary: false,
|
|
3727
|
+
signaturePosition: '400,54,569,90',
|
|
3728
|
+
signaturePage: 7, //???
|
|
3729
|
+
point: 200, //???
|
|
3730
|
+
},
|
|
3731
|
+
SUPPORT: {
|
|
3732
|
+
id: PrestationType.SUPPORT,
|
|
3733
|
+
name: 'Accompagnement',
|
|
3734
|
+
isComptable: true,
|
|
3735
|
+
isJuridique: false,
|
|
3736
|
+
isSocial: false,
|
|
3737
|
+
isAttestation: false,
|
|
3738
|
+
inAverageCart: true,
|
|
3739
|
+
isBack: false,
|
|
3740
|
+
minimumPrice: null,
|
|
3741
|
+
price: null,
|
|
3742
|
+
isCatalog: false,
|
|
3743
|
+
isPlannable: false,
|
|
3744
|
+
hidden: false,
|
|
3745
|
+
isComplementary: false,
|
|
3746
|
+
signaturePosition: '400,54,569,90',
|
|
3747
|
+
signaturePage: 7, //???
|
|
3748
|
+
point: 200, //???
|
|
3749
|
+
},
|
|
3750
|
+
PREMIUM: {
|
|
3751
|
+
id: PrestationType.PREMIUM,
|
|
3752
|
+
name: 'Premium',
|
|
3753
|
+
isComptable: true,
|
|
3754
|
+
isJuridique: false,
|
|
3755
|
+
isSocial: false,
|
|
3756
|
+
isAttestation: false,
|
|
3757
|
+
inAverageCart: true,
|
|
3758
|
+
isBack: false,
|
|
3759
|
+
minimumPrice: null,
|
|
3760
|
+
price: null,
|
|
3761
|
+
isCatalog: false,
|
|
3762
|
+
isPlannable: false,
|
|
3763
|
+
hidden: false,
|
|
3764
|
+
isComplementary: false,
|
|
3765
|
+
signaturePosition: '400,54,569,90',
|
|
3766
|
+
signaturePage: 7, //???
|
|
3767
|
+
point: 200, //???
|
|
3768
|
+
},
|
|
3769
|
+
CUSTOM_MADE: {
|
|
3770
|
+
id: PrestationType.CUSTOM_MADE,
|
|
3771
|
+
name: 'Sur-mesure',
|
|
3772
|
+
isComptable: true,
|
|
3773
|
+
isJuridique: false,
|
|
3774
|
+
isSocial: false,
|
|
3775
|
+
isAttestation: false,
|
|
3776
|
+
inAverageCart: true,
|
|
3777
|
+
isBack: false,
|
|
3778
|
+
minimumPrice: null,
|
|
3779
|
+
price: null,
|
|
3780
|
+
isCatalog: false,
|
|
3781
|
+
isPlannable: false,
|
|
3782
|
+
hidden: false,
|
|
3783
|
+
isComplementary: false,
|
|
3784
|
+
signaturePosition: '400,54,569,90',
|
|
3785
|
+
signaturePage: 7, //???
|
|
3786
|
+
point: 200, //???
|
|
3787
|
+
},
|
|
3602
3788
|
};
|
|
@@ -203,6 +203,7 @@ export interface Cerfa2031_2024 {
|
|
|
203
203
|
siren: string;
|
|
204
204
|
declarantEmail: string;
|
|
205
205
|
declarantAddress: string;
|
|
206
|
+
declarantAddressObject: CerfaAddress;
|
|
206
207
|
declarantZipCode: string;
|
|
207
208
|
declarantCity: string;
|
|
208
209
|
declarantCountryCode: string;
|
|
@@ -380,6 +381,7 @@ export interface Cerfa2031_2025 {
|
|
|
380
381
|
siren: string;
|
|
381
382
|
declarantEmail: string;
|
|
382
383
|
declarantAddress: string;
|
|
384
|
+
declarantAddressObject: CerfaAddress;
|
|
383
385
|
declarantZipCode: string;
|
|
384
386
|
declarantCity: string;
|
|
385
387
|
declarantCountryCode: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TerminationListState, TerminationListType } from '../../../Enum/TerminationList';
|
|
2
|
+
import { IPrestation } from '../../models/IPrestation';
|
|
2
3
|
import { ITerminationList } from '../../models/ITerminationList';
|
|
3
4
|
|
|
4
5
|
interface SocietyStateTerminationInfo {
|
|
@@ -13,3 +14,10 @@ export interface GetSocietyState {
|
|
|
13
14
|
terminations: ITerminationList[];
|
|
14
15
|
isCorporatePartner: number;
|
|
15
16
|
}
|
|
17
|
+
|
|
18
|
+
export type ReadCurrentPrestations = {
|
|
19
|
+
/** Accountancy subscription prestation (does not contains balancesheets prestations...) */
|
|
20
|
+
accountancySubscription: Partial<IPrestation> | null;
|
|
21
|
+
social: Partial<IPrestation>[];
|
|
22
|
+
juridical: Partial<IPrestation>[];
|
|
23
|
+
};
|
|
@@ -53,6 +53,15 @@ export class CreateSubscriptionSessionOff {
|
|
|
53
53
|
@ApiProperty()
|
|
54
54
|
@IsString()
|
|
55
55
|
stripeCustomerId: string;
|
|
56
|
+
|
|
57
|
+
@ApiProperty()
|
|
58
|
+
@IsString()
|
|
59
|
+
ref: string;
|
|
60
|
+
|
|
61
|
+
@ApiPropertyOptional()
|
|
62
|
+
@IsOptional()
|
|
63
|
+
@IsString()
|
|
64
|
+
returnUrl?: string;
|
|
56
65
|
}
|
|
57
66
|
|
|
58
67
|
export class CreatePaymentIntent {
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -2,7 +2,12 @@ import { IExercice, IPrestation, IPrestationList } from '../types';
|
|
|
2
2
|
import { Vat } from '../types/Enum/Vat';
|
|
3
3
|
import { getTaxesIncludedAmount } from './vat/utils';
|
|
4
4
|
import { intersection } from './noLodash';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
ClementineSubscriptionAccountancyExpertPrestations,
|
|
7
|
+
ClementineSubscriptionAccountancySoftwarePrestations,
|
|
8
|
+
PrestationDetail,
|
|
9
|
+
PrestationType,
|
|
10
|
+
} from '../types/Enum/PrestationType';
|
|
6
11
|
import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
|
|
7
12
|
import { PrestationOptionType, PrestationOption } from '../types/Enum/PrestationOption';
|
|
8
13
|
import { PriceGridClementine } from '../types/Enum/PriceGridClementine';
|
|
@@ -567,6 +572,12 @@ const isAbleToUpdatePrice = (
|
|
|
567
572
|
return false;
|
|
568
573
|
};
|
|
569
574
|
|
|
575
|
+
const idPrestationListToOfferType = (idPrestationList: number): 'software' | 'expertise' | 'freemium' => {
|
|
576
|
+
if (ClementineSubscriptionAccountancySoftwarePrestations.includes(idPrestationList)) return 'software';
|
|
577
|
+
if (ClementineSubscriptionAccountancyExpertPrestations.includes(idPrestationList)) return 'expertise';
|
|
578
|
+
return 'freemium';
|
|
579
|
+
};
|
|
580
|
+
|
|
570
581
|
export {
|
|
571
582
|
isOtherAccountingMissions,
|
|
572
583
|
isOtherJuridicalMissions,
|
|
@@ -585,4 +596,5 @@ export {
|
|
|
585
596
|
isAbleToUpdatePrice,
|
|
586
597
|
calculatePrestationPriceWithPriceGrid,
|
|
587
598
|
getApplicationFeesAmount,
|
|
599
|
+
idPrestationListToOfferType,
|
|
588
600
|
};
|