@silexpert/core 1.1.382 → 1.1.384
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/AccountingFiles.d.ts +2 -2
- package/dist/cjs/api/resources/AccountingFiles.d.ts.map +1 -1
- package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
- package/dist/cjs/api/resources/BankAccount.d.ts +2 -1
- package/dist/cjs/api/resources/BankAccount.d.ts.map +1 -1
- package/dist/cjs/api/resources/BankAccount.js +3 -0
- package/dist/cjs/api/resources/BankAccount.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +0 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -2
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/Aspone.d.ts +6 -0
- package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Aspone.js +8 -1
- package/dist/cjs/types/Enum/Aspone.js.map +1 -1
- package/dist/cjs/types/Enum/ConstitutionState.d.ts +2 -1
- package/dist/cjs/types/Enum/ConstitutionState.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ConstitutionState.js +7 -0
- package/dist/cjs/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/cjs/types/Enum/FuelType.d.ts +2 -0
- package/dist/cjs/types/Enum/FuelType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/FuelType.js +15 -14
- package/dist/cjs/types/Enum/FuelType.js.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.js +11 -0
- package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +10 -0
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +49 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts +2 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +9 -1
- 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/cerfa/2035.d.ts +5 -0
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +9 -0
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +1 -3
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2572.d.ts +1 -3
- package/dist/cjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2572.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +23 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +1 -0
- package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js +7 -0
- package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
- package/dist/cjs/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +2 -1
- package/dist/cjs/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/thirdParty/CreateThirdPartyForm.js +5 -0
- package/dist/cjs/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
- package/dist/cjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +2 -1
- package/dist/cjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +5 -0
- package/dist/cjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklist.d.ts +3 -0
- package/dist/cjs/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklist.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +7 -0
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +11 -1
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/AccountingFiles.d.ts +2 -2
- package/dist/mjs/api/resources/AccountingFiles.d.ts.map +1 -1
- package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
- package/dist/mjs/api/resources/BankAccount.d.ts +2 -1
- package/dist/mjs/api/resources/BankAccount.d.ts.map +1 -1
- package/dist/mjs/api/resources/BankAccount.js +3 -0
- package/dist/mjs/api/resources/BankAccount.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +0 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -2
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/Aspone.d.ts +6 -0
- package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Aspone.js +7 -0
- package/dist/mjs/types/Enum/Aspone.js.map +1 -1
- package/dist/mjs/types/Enum/ConstitutionState.d.ts +2 -1
- package/dist/mjs/types/Enum/ConstitutionState.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ConstitutionState.js +7 -0
- package/dist/mjs/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/mjs/types/Enum/FuelType.d.ts +2 -0
- package/dist/mjs/types/Enum/FuelType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/FuelType.js +15 -14
- package/dist/mjs/types/Enum/FuelType.js.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.js +11 -0
- package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +10 -0
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +56 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts +2 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +9 -1
- 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/cerfa/2035.d.ts +5 -0
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +9 -0
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +1 -3
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2572.d.ts +1 -3
- package/dist/mjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2572.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +23 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +1 -0
- package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js +8 -0
- package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
- package/dist/mjs/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +2 -1
- package/dist/mjs/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/thirdParty/CreateThirdPartyForm.js +6 -0
- package/dist/mjs/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
- package/dist/mjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +2 -1
- package/dist/mjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +6 -0
- package/dist/mjs/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklist.d.ts +3 -0
- package/dist/mjs/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklist.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +7 -0
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +9 -0
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +2 -2
- package/ts/api/resources/BankAccount.ts +5 -1
- package/ts/api/resources.ts +0 -2
- package/ts/types/Enum/Aspone.ts +7 -0
- package/ts/types/Enum/ConstitutionState.ts +7 -1
- package/ts/types/Enum/FuelType.ts +18 -15
- package/ts/types/Enum/TaskResponseType.ts +11 -0
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +42 -0
- package/ts/types/Interface/api/aspone/ReadInterchange.ts +2 -1
- package/ts/types/Interface/api/cerfa/2031.ts +3 -1
- package/ts/types/Interface/api/cerfa/2035.ts +2 -0
- package/ts/types/Interface/api/cerfa/2065.ts +4 -2
- package/ts/types/Interface/api/cerfa/2571.ts +1 -3
- package/ts/types/Interface/api/cerfa/2572.ts +5 -2
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +30 -1
- package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +6 -0
- package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +5 -1
- package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +5 -1
- package/ts/types/Interface/models/IChecklist.ts +3 -0
- package/ts/utils/prestation.ts +11 -0
- package/dist/cjs/api/resources/Cerfa.d.ts +0 -25
- package/dist/cjs/api/resources/Cerfa.d.ts.map +0 -1
- package/dist/cjs/api/resources/Cerfa.js +0 -37
- package/dist/cjs/api/resources/Cerfa.js.map +0 -1
- package/dist/mjs/api/resources/Cerfa.d.ts +0 -25
- package/dist/mjs/api/resources/Cerfa.d.ts.map +0 -1
- package/dist/mjs/api/resources/Cerfa.js +0 -33
- package/dist/mjs/api/resources/Cerfa.js.map +0 -1
- package/ts/api/resources/Cerfa.ts +0 -39
|
@@ -196,6 +196,12 @@ export class UpdateTerminationList {
|
|
|
196
196
|
@IsInt()
|
|
197
197
|
idCollaborateur?: number;
|
|
198
198
|
|
|
199
|
+
@ApiPropertyOptional()
|
|
200
|
+
@IsOptional()
|
|
201
|
+
@IsBoolean()
|
|
202
|
+
@ToBoolean()
|
|
203
|
+
needPaymentLink?: boolean;
|
|
204
|
+
|
|
199
205
|
@ApiPropertyOptional()
|
|
200
206
|
@IsOptional()
|
|
201
207
|
@IsNumber()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsEnum, IsOptional } from 'class-validator';
|
|
2
|
-
import { TFile, ThirdPartyType } from '../../..';
|
|
2
|
+
import { TFile, TermOfPayment, ThirdPartyType } from '../../..';
|
|
3
3
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
4
4
|
|
|
5
5
|
export class CreateThirdPartyForm {
|
|
@@ -82,6 +82,10 @@ export class CreateThirdPartyForm {
|
|
|
82
82
|
@ApiPropertyOptional()
|
|
83
83
|
@IsOptional()
|
|
84
84
|
deliveryIdCountry?: number | null;
|
|
85
|
+
|
|
86
|
+
@ApiPropertyOptional()
|
|
87
|
+
@IsOptional()
|
|
88
|
+
termOfPayment?: TermOfPayment | null;
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
export class ImportThirdParty {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsEnum, IsOptional } from 'class-validator';
|
|
2
|
-
import { ThirdPartyType } from '../../..';
|
|
2
|
+
import { TermOfPayment, ThirdPartyType } from '../../..';
|
|
3
3
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
4
4
|
|
|
5
5
|
export class UpdateThirdPartyForm {
|
|
@@ -98,4 +98,8 @@ export class UpdateThirdPartyForm {
|
|
|
98
98
|
@ApiPropertyOptional()
|
|
99
99
|
@IsOptional()
|
|
100
100
|
deliveryZipCode?: string | null;
|
|
101
|
+
|
|
102
|
+
@ApiPropertyOptional()
|
|
103
|
+
@IsOptional()
|
|
104
|
+
termOfPayment?: TermOfPayment | null;
|
|
101
105
|
}
|
|
@@ -10,6 +10,8 @@ export interface IChecklist {
|
|
|
10
10
|
id?: number;
|
|
11
11
|
idUserFront: number | null;
|
|
12
12
|
revisionDate?: Date | null;
|
|
13
|
+
idUserWhoValidate: number | null;
|
|
14
|
+
validateDate?: Date | null;
|
|
13
15
|
isConfirmed: boolean;
|
|
14
16
|
date: Date | null;
|
|
15
17
|
type: ChecklistTypeEnum;
|
|
@@ -28,4 +30,5 @@ export interface IChecklist {
|
|
|
28
30
|
exercice?: IExercice;
|
|
29
31
|
checklistHasOneCustomerVat?: ICustomerVat;
|
|
30
32
|
mailRelation?: IMailRelation[];
|
|
33
|
+
userWhoValidate: IUser;
|
|
31
34
|
}
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IExercice, IPrestation, IPrestationList } from '../types';
|
|
2
|
+
import { Vat } from '../types/Enum/Vat';
|
|
2
3
|
import { getTaxesIncludedAmount } from './vat/utils';
|
|
3
4
|
import { intersection } from './noLodash';
|
|
4
5
|
import { PrestationDetail, PrestationType } from '../types/Enum/PrestationType';
|
|
@@ -139,6 +140,16 @@ const calculateScoringOfPrestation = (idPrestationType: PrestationType, prestati
|
|
|
139
140
|
return numberPoint;
|
|
140
141
|
};
|
|
141
142
|
|
|
143
|
+
export const calculateMonthlyAmount = (params: { monthlyPrice: number, monthNumber: number, monthOffer: number, idVatForInternalInvoicing?: number | null, returnTaxesIncludedValue?: boolean }): number =>{
|
|
144
|
+
const { monthlyPrice, monthNumber, monthOffer, idVatForInternalInvoicing, returnTaxesIncludedValue = true } = params;
|
|
145
|
+
|
|
146
|
+
if (!idVatForInternalInvoicing && returnTaxesIncludedValue) throw new Error('Taux de TVA manquant pour calculer le montant TTC');
|
|
147
|
+
|
|
148
|
+
if (!idVatForInternalInvoicing || !returnTaxesIncludedValue) return monthlyPrice * (monthNumber - monthOffer);
|
|
149
|
+
|
|
150
|
+
return monthlyPrice * (monthNumber - monthOffer) * (1 + (Object.values(Vat).find(el => el.id === idVatForInternalInvoicing).value / 100));
|
|
151
|
+
};
|
|
152
|
+
|
|
142
153
|
export const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid | undefined => {
|
|
143
154
|
let currentBrandPriceGrid: priceGridBrand | undefined;
|
|
144
155
|
let currentPriceGrid: priceGrid | undefined;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Resource } from '../Resource';
|
|
3
|
-
import { ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete } from '../..';
|
|
4
|
-
import { TaxSystem, FiscalRegime, ProfitsType } from '../../types';
|
|
5
|
-
export declare class Cerfa extends Resource {
|
|
6
|
-
get2035Pdf(params: {
|
|
7
|
-
idExercice: number;
|
|
8
|
-
data: ParamsGenerate2035FullDocument;
|
|
9
|
-
}): Promise<Buffer>;
|
|
10
|
-
get2033Pdf(params: {
|
|
11
|
-
idExercice: number;
|
|
12
|
-
data: ParamsGenerate2033;
|
|
13
|
-
}): Promise<Buffer>;
|
|
14
|
-
get2065Pdf(params: {
|
|
15
|
-
idExercice: number;
|
|
16
|
-
data: ParamsGenerate2065;
|
|
17
|
-
}): Promise<Buffer>;
|
|
18
|
-
getCerfaToComplete(payload: {
|
|
19
|
-
idLegalForm: number;
|
|
20
|
-
idTaxSystem: TaxSystem;
|
|
21
|
-
idFiscalRegime: FiscalRegime;
|
|
22
|
-
profitsType: ProfitsType;
|
|
23
|
-
}): ReadCerfaToComplete;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=Cerfa.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cerfa.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Cerfa.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,8BAA8B,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAC5F,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEnE,qBAAa,KAAM,SAAQ,QAAQ;IACjC,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,8BAA8B,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQjG,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQrF,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQrF,kBAAkB,CAAC,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,SAAS,CAAC;QAAC,cAAc,EAAE,YAAY,CAAC;QAAC,WAAW,EAAE,WAAW,CAAA;KAAE,GAAG,mBAAmB;CAM1J"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Cerfa = void 0;
|
|
4
|
-
const Resource_1 = require("../Resource");
|
|
5
|
-
const cerfa_1 = require("../../utils/cerfa");
|
|
6
|
-
class Cerfa extends Resource_1.Resource {
|
|
7
|
-
get2035Pdf(params) {
|
|
8
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {
|
|
9
|
-
responseType: 'arraybuffer',
|
|
10
|
-
headers: {
|
|
11
|
-
Accept: 'application/pdf',
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
get2033Pdf(params) {
|
|
16
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {
|
|
17
|
-
responseType: 'arraybuffer',
|
|
18
|
-
headers: {
|
|
19
|
-
Accept: 'application/pdf',
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
get2065Pdf(params) {
|
|
24
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {
|
|
25
|
-
responseType: 'arraybuffer',
|
|
26
|
-
headers: {
|
|
27
|
-
Accept: 'application/pdf',
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
getCerfaToComplete(payload) {
|
|
32
|
-
const { idLegalForm, idTaxSystem, idFiscalRegime, profitsType, } = payload;
|
|
33
|
-
return (0, cerfa_1.retrieveCerfaFromSocietyInformations)(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.Cerfa = Cerfa;
|
|
37
|
-
//# sourceMappingURL=Cerfa.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cerfa.js","sourceRoot":"","sources":["../../../../ts/api/resources/Cerfa.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAIvC,6CAAyE;AAGzE,MAAa,KAAM,SAAQ,mBAAQ;IACjC,UAAU,CAAC,MAAoE;QAC7E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAwD;QACjE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAwD;QACjE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,kBAAkB,CAAC,OAAgH;QACjI,MAAM,EACJ,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,GACtD,GAAG,OAAO,CAAC;QACZ,OAAO,IAAA,4CAAoC,EAAC,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;IACrG,CAAC;CACF;AA/BD,sBA+BC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete,\n} from '../..';\nimport { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';\nimport { TaxSystem, FiscalRegime, ProfitsType } from '../../types';\n\nexport class Cerfa extends Resource {\n get2035Pdf(params: { idExercice: number, data: ParamsGenerate2035FullDocument }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2033Pdf(params: { idExercice: number, data: ParamsGenerate2033 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2065Pdf(params: { idExercice: number, data: ParamsGenerate2065 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n getCerfaToComplete(payload: { idLegalForm: number; idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime; profitsType: ProfitsType }): ReadCerfaToComplete {\n const {\n idLegalForm, idTaxSystem, idFiscalRegime, profitsType,\n } = payload;\n return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);\n }\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Resource } from '../Resource';
|
|
3
|
-
import { ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete } from '../..';
|
|
4
|
-
import { TaxSystem, FiscalRegime, ProfitsType } from '../../types';
|
|
5
|
-
export declare class Cerfa extends Resource {
|
|
6
|
-
get2035Pdf(params: {
|
|
7
|
-
idExercice: number;
|
|
8
|
-
data: ParamsGenerate2035FullDocument;
|
|
9
|
-
}): Promise<Buffer>;
|
|
10
|
-
get2033Pdf(params: {
|
|
11
|
-
idExercice: number;
|
|
12
|
-
data: ParamsGenerate2033;
|
|
13
|
-
}): Promise<Buffer>;
|
|
14
|
-
get2065Pdf(params: {
|
|
15
|
-
idExercice: number;
|
|
16
|
-
data: ParamsGenerate2065;
|
|
17
|
-
}): Promise<Buffer>;
|
|
18
|
-
getCerfaToComplete(payload: {
|
|
19
|
-
idLegalForm: number;
|
|
20
|
-
idTaxSystem: TaxSystem;
|
|
21
|
-
idFiscalRegime: FiscalRegime;
|
|
22
|
-
profitsType: ProfitsType;
|
|
23
|
-
}): ReadCerfaToComplete;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=Cerfa.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cerfa.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Cerfa.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,8BAA8B,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAC5F,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEnE,qBAAa,KAAM,SAAQ,QAAQ;IACjC,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,8BAA8B,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQjG,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQrF,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQrF,kBAAkB,CAAC,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,SAAS,CAAC;QAAC,cAAc,EAAE,YAAY,CAAC;QAAC,WAAW,EAAE,WAAW,CAAA;KAAE,GAAG,mBAAmB;CAM1J"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';
|
|
3
|
-
export class Cerfa extends Resource {
|
|
4
|
-
get2035Pdf(params) {
|
|
5
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {
|
|
6
|
-
responseType: 'arraybuffer',
|
|
7
|
-
headers: {
|
|
8
|
-
Accept: 'application/pdf',
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
get2033Pdf(params) {
|
|
13
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {
|
|
14
|
-
responseType: 'arraybuffer',
|
|
15
|
-
headers: {
|
|
16
|
-
Accept: 'application/pdf',
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
get2065Pdf(params) {
|
|
21
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {
|
|
22
|
-
responseType: 'arraybuffer',
|
|
23
|
-
headers: {
|
|
24
|
-
Accept: 'application/pdf',
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
getCerfaToComplete(payload) {
|
|
29
|
-
const { idLegalForm, idTaxSystem, idFiscalRegime, profitsType, } = payload;
|
|
30
|
-
return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=Cerfa.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cerfa.js","sourceRoot":"","sources":["../../../../ts/api/resources/Cerfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,OAAO,EAAE,oCAAoC,EAAE,MAAM,mBAAmB,CAAC;AAGzE,MAAM,OAAO,KAAM,SAAQ,QAAQ;IACjC,UAAU,CAAC,MAAoE;QAC7E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAwD;QACjE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAwD;QACjE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,kBAAkB,CAAC,OAAgH;QACjI,MAAM,EACJ,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,GACtD,GAAG,OAAO,CAAC;QACZ,OAAO,oCAAoC,CAAC,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;IACrG,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete,\n} from '../..';\nimport { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';\nimport { TaxSystem, FiscalRegime, ProfitsType } from '../../types';\n\nexport class Cerfa extends Resource {\n get2035Pdf(params: { idExercice: number, data: ParamsGenerate2035FullDocument }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2033Pdf(params: { idExercice: number, data: ParamsGenerate2033 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2065Pdf(params: { idExercice: number, data: ParamsGenerate2065 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n getCerfaToComplete(payload: { idLegalForm: number; idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime; profitsType: ProfitsType }): ReadCerfaToComplete {\n const {\n idLegalForm, idTaxSystem, idFiscalRegime, profitsType,\n } = payload;\n return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);\n }\n}\n"]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import {
|
|
3
|
-
ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete,
|
|
4
|
-
} from '../..';
|
|
5
|
-
import { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';
|
|
6
|
-
import { TaxSystem, FiscalRegime, ProfitsType } from '../../types';
|
|
7
|
-
|
|
8
|
-
export class Cerfa extends Resource {
|
|
9
|
-
get2035Pdf(params: { idExercice: number, data: ParamsGenerate2035FullDocument }): Promise<Buffer> {
|
|
10
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {
|
|
11
|
-
responseType: 'arraybuffer',
|
|
12
|
-
headers: {
|
|
13
|
-
Accept: 'application/pdf',
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
get2033Pdf(params: { idExercice: number, data: ParamsGenerate2033 }): Promise<Buffer> {
|
|
18
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {
|
|
19
|
-
responseType: 'arraybuffer',
|
|
20
|
-
headers: {
|
|
21
|
-
Accept: 'application/pdf',
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
get2065Pdf(params: { idExercice: number, data: ParamsGenerate2065 }): Promise<Buffer> {
|
|
26
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {
|
|
27
|
-
responseType: 'arraybuffer',
|
|
28
|
-
headers: {
|
|
29
|
-
Accept: 'application/pdf',
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
getCerfaToComplete(payload: { idLegalForm: number; idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime; profitsType: ProfitsType }): ReadCerfaToComplete {
|
|
34
|
-
const {
|
|
35
|
-
idLegalForm, idTaxSystem, idFiscalRegime, profitsType,
|
|
36
|
-
} = payload;
|
|
37
|
-
return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);
|
|
38
|
-
}
|
|
39
|
-
}
|