@silexpert/core 1.1.195 → 1.1.197
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/Authenticate.d.ts +3 -1
- package/dist/cjs/api/resources/Authenticate.d.ts.map +1 -1
- package/dist/cjs/api/resources/Authenticate.js +10 -0
- package/dist/cjs/api/resources/Authenticate.js.map +1 -1
- package/dist/cjs/api/resources/Exercice.d.ts +2 -1
- package/dist/cjs/api/resources/Exercice.d.ts.map +1 -1
- package/dist/cjs/api/resources/Exercice.js +3 -0
- package/dist/cjs/api/resources/Exercice.js.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts +2 -2
- package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.d.ts +5 -0
- package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +1 -0
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/BrandComptalib.d.ts +3 -0
- package/dist/cjs/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandComptalib.js +1 -0
- package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.d.ts +1 -0
- package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.js +1 -0
- package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridPourcentage.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridPourcentage.js +132 -12
- package/dist/cjs/types/Enum/PriceGridPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridStatutsExpress.d.ts +13 -0
- package/dist/cjs/types/Enum/PriceGridStatutsExpress.d.ts.map +1 -0
- package/dist/cjs/types/Enum/PriceGridStatutsExpress.js +36 -0
- package/dist/cjs/types/Enum/PriceGridStatutsExpress.js.map +1 -0
- package/dist/cjs/types/Interface/api/authentification/ForgotPassword.d.ts +4 -0
- package/dist/cjs/types/Interface/api/authentification/ForgotPassword.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/authentification/ForgotPassword.js +23 -0
- package/dist/cjs/types/Interface/api/authentification/ForgotPassword.js.map +1 -0
- package/dist/cjs/types/Interface/api/authentification/ResetPassword.d.ts +5 -0
- package/dist/cjs/types/Interface/api/authentification/ResetPassword.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/authentification/ResetPassword.js +28 -0
- package/dist/cjs/types/Interface/api/authentification/ResetPassword.js.map +1 -0
- package/dist/cjs/types/Interface/api/exercice/{CreateExercice.d.ts → Create.d.ts} +12 -1
- package/dist/cjs/types/Interface/api/exercice/Create.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/exercice/{CreateExercice.js → Create.js} +57 -2
- package/dist/cjs/types/Interface/api/exercice/Create.js.map +1 -0
- package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.d.ts +1 -0
- package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.js +6 -0
- package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.js.map +1 -1
- package/dist/cjs/types/index.d.ts +3 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +2 -2
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +16 -8
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/Authenticate.d.ts +3 -1
- package/dist/mjs/api/resources/Authenticate.d.ts.map +1 -1
- package/dist/mjs/api/resources/Authenticate.js +6 -0
- package/dist/mjs/api/resources/Authenticate.js.map +1 -1
- package/dist/mjs/api/resources/Exercice.d.ts +2 -1
- package/dist/mjs/api/resources/Exercice.d.ts.map +1 -1
- package/dist/mjs/api/resources/Exercice.js +3 -0
- package/dist/mjs/api/resources/Exercice.js.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts +2 -2
- package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.d.ts +5 -0
- package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +1 -0
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/BrandComptalib.d.ts +3 -0
- package/dist/mjs/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandComptalib.js +1 -0
- package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.d.ts +1 -0
- package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.js +1 -0
- package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridPourcentage.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridPourcentage.js +132 -12
- package/dist/mjs/types/Enum/PriceGridPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridStatutsExpress.d.ts +13 -0
- package/dist/mjs/types/Enum/PriceGridStatutsExpress.d.ts.map +1 -0
- package/dist/mjs/types/Enum/PriceGridStatutsExpress.js +33 -0
- package/dist/mjs/types/Enum/PriceGridStatutsExpress.js.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/ForgotPassword.d.ts +4 -0
- package/dist/mjs/types/Interface/api/authentification/ForgotPassword.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/ForgotPassword.js +20 -0
- package/dist/mjs/types/Interface/api/authentification/ForgotPassword.js.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/ResetPassword.d.ts +5 -0
- package/dist/mjs/types/Interface/api/authentification/ResetPassword.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/authentification/ResetPassword.js +26 -0
- package/dist/mjs/types/Interface/api/authentification/ResetPassword.js.map +1 -0
- package/dist/mjs/types/Interface/api/exercice/{CreateExercice.d.ts → Create.d.ts} +12 -1
- package/dist/mjs/types/Interface/api/exercice/Create.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/exercice/{CreateExercice.js → Create.js} +65 -2
- package/dist/mjs/types/Interface/api/exercice/Create.js.map +1 -0
- package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.d.ts +1 -0
- package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.js +8 -1
- package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.js.map +1 -1
- package/dist/mjs/types/index.d.ts +3 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +3 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +2 -2
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +13 -5
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Authenticate.ts +9 -1
- package/ts/api/resources/Exercice.ts +5 -1
- package/ts/api/resources/PaymentExpectationCustomer.ts +2 -1
- package/ts/types/Enum/BrandClementine.ts +1 -0
- package/ts/types/Enum/BrandComptalib.ts +1 -0
- package/ts/types/Enum/BrandLegalstart.ts +1 -0
- package/ts/types/Enum/PriceGridPourcentage.ts +132 -12
- package/ts/types/Enum/PriceGridStatutsExpress.ts +34 -0
- package/ts/types/Interface/api/authentification/ForgotPassword.ts +8 -0
- package/ts/types/Interface/api/authentification/ResetPassword.ts +12 -0
- package/ts/types/Interface/api/exercice/{CreateExercice.ts → Create.ts} +46 -1
- package/ts/types/Interface/api/society/QueryPaginatedSociety.ts +6 -1
- package/ts/types/index.ts +3 -1
- package/ts/utils/prestation.ts +18 -6
- package/dist/cjs/types/Interface/api/exercice/CreateExercice.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/exercice/CreateExercice.js.map +0 -1
- package/dist/mjs/types/Interface/api/exercice/CreateExercice.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/exercice/CreateExercice.js.map +0 -1
package/ts/utils/prestation.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { PrestationOptionType, PrestationOption } from '../types/Enum/Prestation
|
|
|
5
5
|
import { PriceGridClementine } from '../types/Enum/PriceGridClementine';
|
|
6
6
|
import { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';
|
|
7
7
|
import { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';
|
|
8
|
+
import { PriceGridStatutsExpress } from '../types/Enum/PriceGridStatutsExpress';
|
|
8
9
|
import { ClosingType } from '../types/Enum/ClosingType';
|
|
9
10
|
import { getBrandNameByNodeEnv } from './brands';
|
|
10
11
|
import * as dayjs from 'dayjs';
|
|
@@ -28,6 +29,7 @@ type priceGrid = {
|
|
|
28
29
|
vatRegimeMonthly?: vatRegime[],
|
|
29
30
|
vatRegimeYearly?: vatRegime[],
|
|
30
31
|
taxSystem?: taxSystem[],
|
|
32
|
+
legalForm?: legalForm[],
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
type monthlyPayment = {
|
|
@@ -40,6 +42,11 @@ type turnover = {
|
|
|
40
42
|
price: number,
|
|
41
43
|
};
|
|
42
44
|
|
|
45
|
+
type legalForm = {
|
|
46
|
+
idLegalForm: number,
|
|
47
|
+
price: number,
|
|
48
|
+
};
|
|
49
|
+
|
|
43
50
|
type employee = {
|
|
44
51
|
amountMinimum: number,
|
|
45
52
|
amountMaximum: number,
|
|
@@ -119,7 +126,7 @@ const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid
|
|
|
119
126
|
|
|
120
127
|
const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);
|
|
121
128
|
const listEnvEnum = {
|
|
122
|
-
PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart,
|
|
129
|
+
PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart, PriceGridStatutsExpress,
|
|
123
130
|
};
|
|
124
131
|
// @ts-ignore
|
|
125
132
|
const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];
|
|
@@ -128,7 +135,7 @@ const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid
|
|
|
128
135
|
return currentPriceGrid;
|
|
129
136
|
};
|
|
130
137
|
|
|
131
|
-
const calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number, idTaxSystem: number): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } => {
|
|
138
|
+
const calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number, idTaxSystem: number, idLegalForm: number): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } => {
|
|
132
139
|
let totalPrestation: number = 0;
|
|
133
140
|
let reduceMonth: number = 0;
|
|
134
141
|
let monthNbr: number = NbrMonth;
|
|
@@ -155,11 +162,14 @@ const calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate
|
|
|
155
162
|
/* Gestion des montants */
|
|
156
163
|
if (currentPriceGrid.turnoverMonthly && !isYearly) monthlyPrice = currentPriceGrid.turnoverMonthly?.find(turn => turnover < turn.turnoverValue)?.price;
|
|
157
164
|
else if (currentPriceGrid.properties) monthlyPrice = currentPriceGrid.properties?.find(property => property.amount === rentsNumber)?.price;
|
|
158
|
-
else if (currentPriceGrid.employee)
|
|
159
|
-
|
|
165
|
+
else if (currentPriceGrid.employee) {
|
|
166
|
+
monthlyPrice = currentPriceGrid.employee?.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)?.price;
|
|
167
|
+
monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;
|
|
168
|
+
} else if (currentPriceGrid.turnoverYearly && isYearly) yearlyPrice = currentPriceGrid.turnoverYearly?.find(turn => turnover < turn.turnoverValue)?.price;
|
|
160
169
|
else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear) yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find(turn => turnover < turn.turnoverValue)?.price;
|
|
161
170
|
else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear) yearlyPrice = currentPriceGrid.turnoverPastYear?.find(turn => turnover < turn.turnoverValue)?.price;
|
|
162
171
|
else if (currentPriceGrid.partner) yearlyPrice = currentPriceGrid.partner?.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)?.price;
|
|
172
|
+
else if (currentPriceGrid.legalForm) yearlyPrice = currentPriceGrid.legalForm?.find(form => form.idLegalForm === idLegalForm)?.price;
|
|
163
173
|
finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);
|
|
164
174
|
|
|
165
175
|
/* Gestion des mois */
|
|
@@ -195,7 +205,7 @@ const calculatePrestationPriceWithPrestationList = (prestationList: IPrestationL
|
|
|
195
205
|
return totalPrestation;
|
|
196
206
|
};
|
|
197
207
|
|
|
198
|
-
const calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, isYearly: boolean = false): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, monthlyPrice: string, price: number } => {
|
|
208
|
+
const calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, idLegalForm: number, isYearly: boolean = false): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, monthlyPrice: string, price: number } => {
|
|
199
209
|
let totalPrestation: number = 0;
|
|
200
210
|
let reduceMonth: number = 0;
|
|
201
211
|
let canBeCreated: boolean = true;
|
|
@@ -228,9 +238,10 @@ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPre
|
|
|
228
238
|
PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,
|
|
229
239
|
PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,
|
|
230
240
|
PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,
|
|
241
|
+
PrestationType.STATUTS_OPTION_2,
|
|
231
242
|
].includes(idPrestationList)
|
|
232
243
|
) {
|
|
233
|
-
totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem);
|
|
244
|
+
totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem, idLegalForm);
|
|
234
245
|
totalPrestation = totalWithReduce.totalPrestation;
|
|
235
246
|
reduceMonth = totalWithReduce.reduceMonth;
|
|
236
247
|
canBeCreated = totalWithReduce.canBeCreated;
|
|
@@ -238,6 +249,7 @@ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPre
|
|
|
238
249
|
price = totalWithReduce.price;
|
|
239
250
|
} else {
|
|
240
251
|
totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);
|
|
252
|
+
if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList)) totalPrestation += 50;
|
|
241
253
|
}
|
|
242
254
|
if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;
|
|
243
255
|
if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateExercice.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":"AAMA,qBAAa,cAAc;IAGvB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAM9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAKlC,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateExercice.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts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6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;2DACmB;AAEhC;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACuB;AAEpC;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACO;AAEpB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;iDACS;AA9ExB,wCA+EC","sourcesContent":["import {\n IsBoolean, IsDate, IsNumber, IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateExercice.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":"AAMA,qBAAa,cAAc;IAGvB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAM9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAKlC,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateExercice.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GACxC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,cAAc;I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AAS,EAAE;IACX,UAAU,EAAE;;+DACuB;AAEpC;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;iDACO;AAEpB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;iDACS","sourcesContent":["import {\n IsBoolean, IsDate, IsNumber, IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n}"]}
|