@silexpert/core 0.4.108 → 0.4.110
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/CHANGELOG.md +68 -0
- package/es/api/resources/AccountingFiles.d.ts +6 -0
- package/es/api/resources/AccountingFiles.d.ts.map +1 -0
- package/es/api/resources/AccountingFiles.js +14 -0
- package/es/api/resources/AccountingFiles.js.map +1 -0
- package/es/api/resources/InternalInvoicing.d.ts +6 -0
- package/es/api/resources/InternalInvoicing.d.ts.map +1 -0
- package/es/api/resources/InternalInvoicing.js +7 -0
- package/es/api/resources/InternalInvoicing.js.map +1 -0
- package/es/api/resources/Journal.d.ts +7 -0
- package/es/api/resources/Journal.d.ts.map +1 -0
- package/es/api/resources/Journal.js +10 -0
- package/es/api/resources/Journal.js.map +1 -0
- package/es/api/resources/MealExpense.d.ts +33 -0
- package/es/api/resources/MealExpense.d.ts.map +1 -0
- package/es/api/resources/MealExpense.js +37 -0
- package/es/api/resources/MealExpense.js.map +1 -0
- package/es/api/resources/Product.d.ts +3 -0
- package/es/api/resources/Product.d.ts.map +1 -1
- package/es/api/resources/Product.js +10 -0
- package/es/api/resources/Product.js.map +1 -1
- package/es/api/resources/Registration.d.ts +6 -0
- package/es/api/resources/Registration.d.ts.map +1 -0
- package/es/api/resources/Registration.js +7 -0
- package/es/api/resources/Registration.js.map +1 -0
- package/es/api/resources.d.ts +8 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +8 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/AccountingFileType.d.ts +2 -1
- package/es/types/Enum/AccountingFileType.d.ts.map +1 -1
- package/es/types/Enum/AccountingFileType.js +1 -0
- package/es/types/Enum/AccountingFileType.js.map +1 -1
- package/es/types/Enum/CerfaType.d.ts +14 -14
- package/es/types/Enum/CerfaType.d.ts.map +1 -1
- package/es/types/Enum/CerfaType.js +15 -14
- package/es/types/Enum/CerfaType.js.map +1 -1
- package/es/types/Enum/Ged.d.ts +1 -0
- package/es/types/Enum/Ged.d.ts.map +1 -1
- package/es/types/Enum/Ged.js +1 -1
- package/es/types/Enum/Ged.js.map +1 -1
- package/es/types/Enum/GlobalRegime.js +61 -61
- package/es/types/Enum/GlobalRegime.js.map +1 -1
- package/es/types/Enum/MealExpenseTresholds.d.ts +8 -0
- package/es/types/Enum/MealExpenseTresholds.d.ts.map +1 -0
- package/es/types/Enum/MealExpenseTresholds.js +11 -0
- package/es/types/Enum/MealExpenseTresholds.js.map +1 -0
- package/es/types/Enum/MimeType.d.ts +24 -0
- package/es/types/Enum/MimeType.d.ts.map +1 -0
- package/es/types/Enum/MimeType.js +24 -0
- package/es/types/Enum/MimeType.js.map +1 -0
- package/es/types/Enum/PaymentMethod.d.ts +63 -0
- package/es/types/Enum/PaymentMethod.d.ts.map +1 -0
- package/es/types/Enum/PaymentMethod.js +63 -0
- package/es/types/Enum/PaymentMethod.js.map +1 -0
- package/es/types/Enum/ProductType.d.ts +6 -4
- package/es/types/Enum/ProductType.d.ts.map +1 -1
- package/es/types/Enum/ProductType.js +14 -6
- package/es/types/Enum/ProductType.js.map +1 -1
- package/es/types/Enum/Vat.d.ts +9 -0
- package/es/types/Enum/Vat.d.ts.map +1 -1
- package/es/types/Enum/Vat.js +9 -0
- package/es/types/Enum/Vat.js.map +1 -1
- package/es/types/Interface/api/accountingFiles/Ocr.d.ts +14 -0
- package/es/types/Interface/api/accountingFiles/Ocr.d.ts.map +1 -0
- package/es/types/Interface/api/accountingFiles/Ocr.js +2 -0
- package/es/types/Interface/api/accountingFiles/Ocr.js.map +1 -0
- package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts +15 -0
- package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts.map +1 -0
- package/es/types/Interface/api/accountingFiles/OcrPayload.js +2 -0
- package/es/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -0
- package/es/types/Interface/api/accountingFiles/OcrValue.d.ts +14 -0
- package/es/types/Interface/api/accountingFiles/OcrValue.d.ts.map +1 -0
- package/es/types/Interface/api/accountingFiles/OcrValue.js +2 -0
- package/es/types/Interface/api/accountingFiles/OcrValue.js.map +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +7 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +32 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.d.ts +7 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.d.ts.map +1 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js +3 -0
- package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js.map +1 -0
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +1 -0
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +7 -0
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +1 -0
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +7 -0
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
- package/es/types/Interface/api/exercice/CreateExercice.d.ts +16 -0
- package/es/types/Interface/api/exercice/CreateExercice.d.ts.map +1 -0
- package/es/types/Interface/api/exercice/CreateExercice.js +101 -0
- package/es/types/Interface/api/exercice/CreateExercice.js.map +1 -0
- package/es/types/Interface/api/exercice/QueryExercice.d.ts +7 -0
- package/es/types/Interface/api/exercice/QueryExercice.d.ts.map +1 -0
- package/es/types/Interface/api/exercice/QueryExercice.js +39 -0
- package/es/types/Interface/api/exercice/QueryExercice.js.map +1 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts +5 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts.map +1 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +21 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
- package/es/types/Interface/api/journal/Journals.d.ts +44 -0
- package/es/types/Interface/api/journal/Journals.d.ts.map +1 -0
- package/es/types/Interface/api/journal/Journals.js +13 -0
- package/es/types/Interface/api/journal/Journals.js.map +1 -0
- package/es/types/Interface/api/journal/QueryJournal.d.ts +6 -0
- package/es/types/Interface/api/journal/QueryJournal.d.ts.map +1 -0
- package/es/types/Interface/api/journal/QueryJournal.js +28 -0
- package/es/types/Interface/api/journal/QueryJournal.js.map +1 -0
- package/es/types/Interface/api/mealExpense/CreateMealExpense.d.ts +4 -0
- package/es/types/Interface/api/mealExpense/CreateMealExpense.d.ts.map +1 -0
- package/es/types/Interface/api/mealExpense/CreateMealExpense.js +25 -0
- package/es/types/Interface/api/mealExpense/CreateMealExpense.js.map +1 -0
- package/es/types/Interface/api/mealExpense/ReadMealExpense.d.ts +8 -0
- package/es/types/Interface/api/mealExpense/ReadMealExpense.d.ts.map +1 -0
- package/es/types/Interface/api/mealExpense/ReadMealExpense.js +3 -0
- package/es/types/Interface/api/mealExpense/ReadMealExpense.js.map +1 -0
- package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.js +3 -2
- package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/QueryProduct.js +4 -2
- package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
- package/es/types/Interface/api/registration/CreateRegistration.d.ts +6 -0
- package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -0
- package/es/types/Interface/api/registration/CreateRegistration.js +25 -0
- package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -0
- package/es/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
- package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -0
- package/es/types/Interface/api/registration/ReadRegistration.js +2 -0
- package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -0
- package/es/types/Interface/models/IApiError.d.ts +2 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +2 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IBalanceSheetModule.d.ts +1 -0
- package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/es/types/Interface/models/IExercice.d.ts +8 -8
- package/es/types/Interface/models/IExercice.d.ts.map +1 -1
- package/es/types/Interface/models/IExercice.js.map +1 -1
- package/es/types/Interface/models/IGedFile.d.ts +10 -10
- package/es/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/es/types/Interface/models/IGedFile.js.map +1 -1
- package/es/types/Interface/models/IPayment.d.ts +19 -15
- package/es/types/Interface/models/IPayment.d.ts.map +1 -1
- package/es/types/Interface/models/IPayment.js.map +1 -1
- package/es/types/Interface/models/IRegistration.d.ts +21 -0
- package/es/types/Interface/models/IRegistration.d.ts.map +1 -0
- package/es/types/Interface/models/IRegistration.js +2 -0
- package/es/types/Interface/models/IRegistration.js.map +1 -0
- package/es/types/Interface/models/ISociety.d.ts +1 -0
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/index.d.ts +17 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +17 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/validators/formattedDateString.validator.d.ts +3 -0
- package/es/utils/validators/formattedDateString.validator.d.ts.map +1 -0
- package/es/utils/validators/formattedDateString.validator.js +19 -0
- package/es/utils/validators/formattedDateString.validator.js.map +1 -0
- package/js/api/resources/AccountingFiles.js +29 -0
- package/js/api/resources/AccountingFiles.js.map +1 -0
- package/js/api/resources/InternalInvoicing.js +18 -0
- package/js/api/resources/InternalInvoicing.js.map +1 -0
- package/js/api/resources/Journal.js +21 -0
- package/js/api/resources/Journal.js.map +1 -0
- package/js/api/resources/MealExpense.js +52 -0
- package/js/api/resources/MealExpense.js.map +1 -0
- package/js/api/resources/Product.js +12 -0
- package/js/api/resources/Product.js.map +1 -1
- package/js/api/resources/Registration.js +18 -0
- package/js/api/resources/Registration.js.map +1 -0
- package/js/api/resources.js +13 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/AccountingFileType.js +1 -0
- package/js/types/Enum/AccountingFileType.js.map +1 -1
- package/js/types/Enum/CerfaType.js +16 -14
- package/js/types/Enum/CerfaType.js.map +1 -1
- package/js/types/Enum/Ged.js +2 -2
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Enum/GlobalRegime.js +61 -61
- package/js/types/Enum/GlobalRegime.js.map +1 -1
- package/js/types/Enum/MealExpenseTresholds.js +16 -0
- package/js/types/Enum/MealExpenseTresholds.js.map +1 -0
- package/js/types/Enum/MimeType.js +29 -0
- package/js/types/Enum/MimeType.js.map +1 -0
- package/js/types/Enum/PaymentMethod.js +68 -0
- package/js/types/Enum/PaymentMethod.js.map +1 -0
- package/js/types/Enum/ProductType.js +14 -7
- package/js/types/Enum/ProductType.js.map +1 -1
- package/js/types/Enum/Vat.js +18 -9
- package/js/types/Enum/Vat.js.map +1 -1
- package/js/types/Interface/api/accountingFiles/Ocr.js +6 -0
- package/js/types/Interface/api/accountingFiles/Ocr.js.map +1 -0
- package/js/types/Interface/api/accountingFiles/OcrPayload.js +6 -0
- package/js/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -0
- package/js/types/Interface/api/accountingFiles/OcrValue.js +6 -0
- package/js/types/Interface/api/accountingFiles/OcrValue.js.map +1 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +35 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -0
- package/js/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js +10 -0
- package/js/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js.map +1 -0
- package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +2 -0
- package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
- package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +2 -0
- package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
- package/js/types/Interface/api/exercice/CreateExercice.js +55 -0
- package/js/types/Interface/api/exercice/CreateExercice.js.map +1 -0
- package/js/types/Interface/api/exercice/QueryExercice.js +37 -0
- package/js/types/Interface/api/exercice/QueryExercice.js.map +1 -0
- package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +29 -0
- package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
- package/js/types/Interface/api/journal/Journals.js +30 -0
- package/js/types/Interface/api/journal/Journals.js.map +1 -0
- package/js/types/Interface/api/journal/QueryJournal.js +33 -0
- package/js/types/Interface/api/journal/QueryJournal.js.map +1 -0
- package/js/types/Interface/api/mealExpense/CreateMealExpense.js +33 -0
- package/js/types/Interface/api/mealExpense/CreateMealExpense.js.map +1 -0
- package/js/types/Interface/api/mealExpense/ReadMealExpense.js +10 -0
- package/js/types/Interface/api/mealExpense/ReadMealExpense.js.map +1 -0
- package/js/types/Interface/api/product/CreateProduct.js +1 -1
- package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/js/types/Interface/api/product/QueryProduct.js +3 -1
- package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
- package/js/types/Interface/api/registration/CreateRegistration.js +35 -0
- package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -0
- package/js/types/Interface/api/registration/ReadRegistration.js +6 -0
- package/js/types/Interface/api/registration/ReadRegistration.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +3 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IRegistration.js +6 -0
- package/js/types/Interface/models/IRegistration.js.map +1 -0
- package/js/types/index.js +204 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/validators/formattedDateString.validator.js +29 -0
- package/js/utils/validators/formattedDateString.validator.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +18 -0
- package/ts/api/resources/InternalInvoicing.ts +10 -0
- package/ts/api/resources/Journal.ts +11 -0
- package/ts/api/resources/MealExpense.ts +41 -0
- package/ts/api/resources/Product.ts +12 -0
- package/ts/api/resources/Registration.ts +8 -0
- package/ts/api/resources.ts +8 -0
- package/ts/types/Enum/AccountingFileType.ts +1 -0
- package/ts/types/Enum/CerfaType.ts +14 -14
- package/ts/types/Enum/Ged.ts +1 -1
- package/ts/types/Enum/GlobalRegime.ts +61 -61
- package/ts/types/Enum/MealExpenseTresholds.ts +17 -0
- package/ts/types/Enum/MimeType.ts +23 -0
- package/ts/types/Enum/PaymentMethod.ts +62 -0
- package/ts/types/Enum/ProductType.ts +21 -5
- package/ts/types/Enum/Vat.ts +9 -0
- package/ts/types/Interface/api/accountingFiles/Ocr.ts +13 -0
- package/ts/types/Interface/api/accountingFiles/OcrPayload.ts +15 -0
- package/ts/types/Interface/api/accountingFiles/OcrValue.ts +13 -0
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +18 -0
- package/ts/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.ts +6 -0
- package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +6 -0
- package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +6 -0
- package/ts/types/Interface/api/exercice/CreateExercice.ts +80 -0
- package/ts/types/Interface/api/exercice/QueryExercice.ts +25 -0
- package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +9 -0
- package/ts/types/Interface/api/journal/Journals.ts +48 -0
- package/ts/types/Interface/api/journal/QueryJournal.ts +15 -0
- package/ts/types/Interface/api/mealExpense/CreateMealExpense.ts +16 -0
- package/ts/types/Interface/api/mealExpense/ReadMealExpense.ts +8 -0
- package/ts/types/Interface/api/product/CreateProduct.ts +2 -2
- package/ts/types/Interface/api/product/QueryProduct.ts +6 -2
- package/ts/types/Interface/api/registration/CreateRegistration.ts +13 -0
- package/ts/types/Interface/api/registration/ReadRegistration.ts +3 -0
- package/ts/types/Interface/models/IApiError.ts +2 -0
- package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -0
- package/ts/types/Interface/models/IExercice.ts +8 -8
- package/ts/types/Interface/models/IGedFile.ts +10 -10
- package/ts/types/Interface/models/IPayment.ts +19 -15
- package/ts/types/Interface/models/IRegistration.ts +23 -0
- package/ts/types/Interface/models/ISociety.ts +1 -0
- package/ts/types/index.ts +18 -1
- package/ts/utils/validators/formattedDateString.validator.ts +24 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean, IsDate, IsNumber, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
+
|
|
7
|
+
export class CreateExercice {
|
|
8
|
+
@ApiProperty()
|
|
9
|
+
@IsDate()
|
|
10
|
+
startDate: Date;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsDate()
|
|
14
|
+
endDate: Date;
|
|
15
|
+
|
|
16
|
+
@ApiPropertyOptional()
|
|
17
|
+
@IsBoolean()
|
|
18
|
+
@ToBoolean()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
isBack?: boolean;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsBoolean()
|
|
24
|
+
@ToBoolean()
|
|
25
|
+
@IsOptional()
|
|
26
|
+
close?: boolean;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
@IsBoolean()
|
|
30
|
+
@ToBoolean()
|
|
31
|
+
@IsOptional()
|
|
32
|
+
allAnnote?: boolean;
|
|
33
|
+
|
|
34
|
+
@ApiPropertyOptional()
|
|
35
|
+
@IsBoolean()
|
|
36
|
+
@ToBoolean()
|
|
37
|
+
@IsOptional()
|
|
38
|
+
current?: boolean;
|
|
39
|
+
|
|
40
|
+
@ApiPropertyOptional()
|
|
41
|
+
@IsBoolean()
|
|
42
|
+
@ToBoolean()
|
|
43
|
+
@IsOptional()
|
|
44
|
+
withApproval?: boolean;
|
|
45
|
+
|
|
46
|
+
@ApiPropertyOptional()
|
|
47
|
+
@IsBoolean()
|
|
48
|
+
@ToBoolean()
|
|
49
|
+
@IsOptional()
|
|
50
|
+
reviewGuide?: boolean;
|
|
51
|
+
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
@IsBoolean()
|
|
54
|
+
@ToBoolean()
|
|
55
|
+
@IsOptional()
|
|
56
|
+
summaryNote?: boolean;
|
|
57
|
+
|
|
58
|
+
@ApiPropertyOptional()
|
|
59
|
+
@IsBoolean()
|
|
60
|
+
@ToBoolean()
|
|
61
|
+
@IsOptional()
|
|
62
|
+
receiptJeDeclare?: boolean;
|
|
63
|
+
|
|
64
|
+
@ApiPropertyOptional()
|
|
65
|
+
@IsBoolean()
|
|
66
|
+
@ToBoolean()
|
|
67
|
+
@IsOptional()
|
|
68
|
+
annualFolderEdition?: boolean;
|
|
69
|
+
|
|
70
|
+
@ApiPropertyOptional()
|
|
71
|
+
@IsBoolean()
|
|
72
|
+
@ToBoolean()
|
|
73
|
+
@IsOptional()
|
|
74
|
+
processClossingExercice?: boolean;
|
|
75
|
+
|
|
76
|
+
@ApiPropertyOptional()
|
|
77
|
+
@IsNumber()
|
|
78
|
+
@IsOptional()
|
|
79
|
+
idSociety: number;
|
|
80
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IsBoolean, IsDate, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils/decorators';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
+
|
|
5
|
+
export class QueryExercice {
|
|
6
|
+
@ApiPropertyOptional()
|
|
7
|
+
@IsOptional()
|
|
8
|
+
id?: number | number[];
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsDate()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
startDate?: Date;
|
|
14
|
+
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsDate()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
endDate?: Date;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
@IsBoolean()
|
|
22
|
+
@ToBoolean()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
isBack?: boolean;
|
|
25
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export class JournalDebitCredit {
|
|
2
|
+
debit?: number;
|
|
3
|
+
credit?: number;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export class PeriodDatum extends JournalDebitCredit {
|
|
7
|
+
dateValue: string | Date;
|
|
8
|
+
invoiceNumber: string;
|
|
9
|
+
designation: string;
|
|
10
|
+
account: number;
|
|
11
|
+
accountName: string;
|
|
12
|
+
master: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class IPeriodsCentralisation {
|
|
16
|
+
[index: string]: {
|
|
17
|
+
account: number;
|
|
18
|
+
accountName: string;
|
|
19
|
+
} & JournalDebitCredit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class IPeriods {
|
|
23
|
+
[index: string]: {
|
|
24
|
+
monthYearPeriods: string;
|
|
25
|
+
data?: PeriodDatum[];
|
|
26
|
+
dataCentralisation?: IPeriodsCentralisation;
|
|
27
|
+
total: {
|
|
28
|
+
accumulated: JournalDebitCredit;
|
|
29
|
+
month: JournalDebitCredit;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export class Journals {
|
|
34
|
+
[index: string]: {
|
|
35
|
+
idJournal: number;
|
|
36
|
+
// eslint-disable-next-line no-restricted-globals
|
|
37
|
+
name: string;
|
|
38
|
+
fullName: string;
|
|
39
|
+
periods?: IPeriods;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class JsonExportJournal {
|
|
44
|
+
idSociety: number;
|
|
45
|
+
startDate: string;
|
|
46
|
+
endDate: string;
|
|
47
|
+
data: Journals;
|
|
48
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
import { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';
|
|
3
|
+
|
|
4
|
+
export class QueryJournal {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsFormattedDateString()
|
|
7
|
+
startDate: string;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsFormattedDateString()
|
|
11
|
+
endDate: string;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
accountingJournalIds?: number[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArrayUnique, IsInt, IsPositive,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty } from '../../../..';
|
|
5
|
+
|
|
6
|
+
export class CreateMealExpense {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
@ArrayUnique()
|
|
9
|
+
@IsInt({
|
|
10
|
+
each: true,
|
|
11
|
+
})
|
|
12
|
+
@IsPositive({
|
|
13
|
+
each: true,
|
|
14
|
+
})
|
|
15
|
+
transactionIds: Array<number>;
|
|
16
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsEnum,
|
|
3
2
|
IsNumber, IsOptional, IsString, Min,
|
|
4
3
|
} from 'class-validator';
|
|
5
4
|
import { ProductType, Unit, Vat } from '../../..';
|
|
@@ -33,7 +32,8 @@ export class CreateProduct {
|
|
|
33
32
|
unit: number;
|
|
34
33
|
|
|
35
34
|
@ApiProperty()
|
|
36
|
-
@
|
|
35
|
+
@IsNumber()
|
|
36
|
+
@IsObjectId(ProductType)
|
|
37
37
|
type: number;
|
|
38
38
|
|
|
39
39
|
@ApiPropertyOptional()
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IsNumber, IsOptional, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
2
4
|
import { ProductType } from '../../..';
|
|
3
5
|
import { ApiPropertyOptional } from '../../../..';
|
|
6
|
+
import { IsObjectId } from '../../../../utils/validators/objectId.validator';
|
|
4
7
|
|
|
5
8
|
export class QueryProduct {
|
|
6
9
|
@ApiPropertyOptional()
|
|
@@ -10,6 +13,7 @@ export class QueryProduct {
|
|
|
10
13
|
|
|
11
14
|
@ApiPropertyOptional()
|
|
12
15
|
@IsOptional()
|
|
13
|
-
@
|
|
16
|
+
@IsNumber()
|
|
17
|
+
@IsObjectId(ProductType)
|
|
14
18
|
type?: number;
|
|
15
19
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsEnum } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
import { CerfaType } from '../../../Enum/CerfaType';
|
|
4
|
+
import { ParamsGenerate2035 } from '../cerfa/CreateCerfa';
|
|
5
|
+
|
|
6
|
+
export class CreateRegistration {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
payload: ParamsGenerate2035;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsEnum(CerfaType)
|
|
12
|
+
idCerfaType: number;
|
|
13
|
+
}
|
|
@@ -13,6 +13,7 @@ export interface IBalanceSheetModule {
|
|
|
13
13
|
hasProviderInvoiceNotReceived?: boolean | null;
|
|
14
14
|
hasManualEntryToDeclare?: boolean | null;
|
|
15
15
|
hasLaundryFees?: boolean | null;
|
|
16
|
+
hasMealExpenses?: boolean | null;
|
|
16
17
|
idSociety: number;
|
|
17
18
|
idExercice: number;
|
|
18
19
|
createdAt?: Date | null;
|
|
@@ -16,16 +16,16 @@ export interface IExercice {
|
|
|
16
16
|
id?: number;
|
|
17
17
|
startDate: Date | null;
|
|
18
18
|
endDate: Date | null;
|
|
19
|
-
turnover
|
|
20
|
-
invoicePurchase
|
|
21
|
-
invoiceSales
|
|
19
|
+
turnover?: string | null;
|
|
20
|
+
invoicePurchase?: number | null;
|
|
21
|
+
invoiceSales?: number | null;
|
|
22
22
|
isBack: boolean;
|
|
23
23
|
close: boolean;
|
|
24
24
|
allAnnote: boolean;
|
|
25
25
|
current: boolean;
|
|
26
|
-
deliveryDate
|
|
27
|
-
employeesNumber
|
|
28
|
-
rentsNumber
|
|
26
|
+
deliveryDate?: Date | null;
|
|
27
|
+
employeesNumber?: number | null;
|
|
28
|
+
rentsNumber?: number | null;
|
|
29
29
|
withApproval: boolean;
|
|
30
30
|
reviewGuide: boolean;
|
|
31
31
|
summaryNote: boolean;
|
|
@@ -34,8 +34,8 @@ export interface IExercice {
|
|
|
34
34
|
annualFolderEdition: boolean;
|
|
35
35
|
turnoverDone: string;
|
|
36
36
|
processClossingExercice: boolean;
|
|
37
|
-
idFilePaymentSchedule
|
|
38
|
-
idSociety
|
|
37
|
+
idFilePaymentSchedule?: number | null;
|
|
38
|
+
idSociety?: number | null;
|
|
39
39
|
createdAt?: Date | null;
|
|
40
40
|
updatedAt?: Date | null;
|
|
41
41
|
deletedAt?: Date | null;
|
|
@@ -7,21 +7,21 @@ import { IGedFolder } from './IGedFolder';
|
|
|
7
7
|
// gedFile
|
|
8
8
|
export interface IGedFile {
|
|
9
9
|
id?: number;
|
|
10
|
-
emissionDate
|
|
11
|
-
statutFile
|
|
12
|
-
idTypeGedFile
|
|
13
|
-
idUser
|
|
10
|
+
emissionDate?: Date | null;
|
|
11
|
+
statutFile?: number | null;
|
|
12
|
+
idTypeGedFile?: number | null;
|
|
13
|
+
idUser?: number | null;
|
|
14
14
|
idGedFolder: number;
|
|
15
15
|
idSociety: number;
|
|
16
16
|
idFile: number;
|
|
17
|
-
idExercice
|
|
17
|
+
idExercice?: number | null;
|
|
18
18
|
createdAt?: Date | null;
|
|
19
19
|
updatedAt?: Date | null;
|
|
20
20
|
|
|
21
21
|
// Associations
|
|
22
|
-
fileFromGed
|
|
23
|
-
society
|
|
24
|
-
exercice
|
|
25
|
-
typeGedFile
|
|
26
|
-
gedFolder
|
|
22
|
+
fileFromGed?: IFile;
|
|
23
|
+
society?: ISociety;
|
|
24
|
+
exercice?: IExercice;
|
|
25
|
+
typeGedFile?: IGedFileType;
|
|
26
|
+
gedFolder?: IGedFolder;
|
|
27
27
|
}
|
|
@@ -2,32 +2,36 @@ import { IPrestation } from './IPrestation';
|
|
|
2
2
|
import { IPaymentMethod } from './IPaymentMethod';
|
|
3
3
|
import { IUser } from './IUser';
|
|
4
4
|
import { IExercice } from './IExercice';
|
|
5
|
+
import { IFile } from './IFile';
|
|
5
6
|
|
|
6
7
|
// payments
|
|
7
8
|
export interface IPayment {
|
|
8
9
|
id?: number;
|
|
9
10
|
amount: number;
|
|
10
|
-
amountPayed
|
|
11
|
-
isLate
|
|
12
|
-
isOverdue
|
|
11
|
+
amountPayed?: number;
|
|
12
|
+
isLate?: boolean;
|
|
13
|
+
isOverdue?: boolean;
|
|
13
14
|
isOverpaid?: boolean;
|
|
14
|
-
isFirst
|
|
15
|
-
toCollect
|
|
16
|
-
isAsset
|
|
17
|
-
isFree
|
|
18
|
-
dateOverdue
|
|
15
|
+
isFirst?: boolean;
|
|
16
|
+
toCollect?: boolean;
|
|
17
|
+
isAsset?: boolean;
|
|
18
|
+
isFree?: boolean;
|
|
19
|
+
dateOverdue?: Date | null;
|
|
19
20
|
datePayment: Date;
|
|
20
|
-
|
|
21
|
+
done?: boolean | null;
|
|
22
|
+
refInternalInvoicing?: number;
|
|
21
23
|
idPrestation: number;
|
|
22
|
-
idExercice
|
|
23
|
-
idUser
|
|
24
|
+
idExercice?: number | null;
|
|
25
|
+
idUser?: number | null;
|
|
24
26
|
idPaymentMethod: number;
|
|
27
|
+
idFile?: number | null;
|
|
25
28
|
createdAt?: Date | null;
|
|
26
29
|
updatedAt?: Date | null;
|
|
27
30
|
|
|
28
31
|
// Associations
|
|
29
|
-
paymentsPrestations
|
|
30
|
-
paymentsMethod
|
|
31
|
-
user
|
|
32
|
-
exercice
|
|
32
|
+
paymentsPrestations?: IPrestation;
|
|
33
|
+
paymentsMethod?: IPaymentMethod;
|
|
34
|
+
user?: IUser;
|
|
35
|
+
exercice?: IExercice;
|
|
36
|
+
files?: IFile;
|
|
33
37
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IExercice } from './IExercice';
|
|
2
|
+
import { ISociety } from './ISociety';
|
|
3
|
+
import { IFile } from './IFile';
|
|
4
|
+
|
|
5
|
+
export interface IRegistration {
|
|
6
|
+
id?: number;
|
|
7
|
+
payload: string;
|
|
8
|
+
response: string | null;
|
|
9
|
+
sendAt: Date | null;
|
|
10
|
+
isComplete: boolean;
|
|
11
|
+
idCerfaType: number;
|
|
12
|
+
idDeposit: string | null;
|
|
13
|
+
idExercice: number;
|
|
14
|
+
idFile: number | null;
|
|
15
|
+
idSociety: number;
|
|
16
|
+
updatedAt?: Date | null;
|
|
17
|
+
createdAt?: Date | null;
|
|
18
|
+
|
|
19
|
+
// Associations
|
|
20
|
+
exercice?: IExercice;
|
|
21
|
+
society?: ISociety;
|
|
22
|
+
file?: IFile;
|
|
23
|
+
}
|
|
@@ -116,6 +116,7 @@ export interface ISociety {
|
|
|
116
116
|
folderNote: string | null;
|
|
117
117
|
dateSendAdvise: Date | null;
|
|
118
118
|
idUserAdvise: number | null;
|
|
119
|
+
idVatForInternalInvoicing: number;
|
|
119
120
|
dateFirstSendUnpaid: Date | null;
|
|
120
121
|
reasonUnpaid: number | null;
|
|
121
122
|
stripeSubscriptionId: string | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -318,6 +318,7 @@ export * from './Enum/ImmobilizationType';
|
|
|
318
318
|
export * from './Enum/Nature';
|
|
319
319
|
export * from './Enum/SurveyType';
|
|
320
320
|
export * from './Enum/SurveyTypeDatas';
|
|
321
|
+
export * from './Enum/PaymentMethod';
|
|
321
322
|
export * from './Enum/ReportType';
|
|
322
323
|
export * from './Enum/ReportState';
|
|
323
324
|
export * from './Enum/Proceding';
|
|
@@ -367,6 +368,8 @@ export * from './Enum/PartneredAccountantServiceState';
|
|
|
367
368
|
export * from './Enum/AccountsSectors';
|
|
368
369
|
export * from './Enum/ProductType';
|
|
369
370
|
export * from './Enum/Unit';
|
|
371
|
+
export * from './Enum/MealExpenseTresholds';
|
|
372
|
+
export * from './Enum/MimeType';
|
|
370
373
|
|
|
371
374
|
// Interfaces API
|
|
372
375
|
export * from './Interface/api/businessPartner/ReadBusinessPartner';
|
|
@@ -412,6 +415,10 @@ export * from './Interface/api/BasePaginate';
|
|
|
412
415
|
export * from './Interface/api/BaseRequest';
|
|
413
416
|
export * from './Interface/api/generalLedger/IGeneralLedgerAccount';
|
|
414
417
|
export * from './Interface/api/generalLedger/IGeneralLedgerAccountingEntry';
|
|
418
|
+
export * from './Interface/api/accountingFiles/queryAccountingFiles';
|
|
419
|
+
export * from './Interface/api/accountingFiles/Ocr';
|
|
420
|
+
export * from './Interface/api/accountingFiles/OcrPayload';
|
|
421
|
+
export * from './Interface/api/accountingFiles/OcrValue';
|
|
415
422
|
// export * from './Interface/api/stock/stockEntries';
|
|
416
423
|
export * from './Interface/api/stock/StockEntries';
|
|
417
424
|
export * from './Interface/api/dashboard/QueryTurnoverProfitAndLoss';
|
|
@@ -433,6 +440,9 @@ export * from './Interface/api/accountant/ReadAccountantBalance';
|
|
|
433
440
|
export * from './Interface/api/quotes/QueryQuotesAccount';
|
|
434
441
|
export * from './Interface/api/quotes/CreateQuoteAccount';
|
|
435
442
|
export * from './Interface/api/account/ReadQuoteAccount';
|
|
443
|
+
export * from './Interface/api/internalInvoicing/CreateInternalInvoicing';
|
|
444
|
+
export * from './Interface/api/exercice/QueryExercice';
|
|
445
|
+
export * from './Interface/api/exercice/CreateExercice';
|
|
436
446
|
|
|
437
447
|
// export * from './Interface/api/survey/QuerySurvey';
|
|
438
448
|
export * from './Interface/api/survey/ReadSurvey';
|
|
@@ -537,4 +547,11 @@ export * from './Interface/api/vehicle/UpdateSocietyVehicle';
|
|
|
537
547
|
export * from './Interface/api/fecFile/QueryFecFile';
|
|
538
548
|
export * from './Interface/api/product/CreateProduct';
|
|
539
549
|
export * from './Interface/api/product/UpdateProduct';
|
|
540
|
-
export * from './Interface/api/product/QueryProduct';
|
|
550
|
+
export * from './Interface/api/product/QueryProduct';
|
|
551
|
+
export * from './Interface/api/registration/ReadRegistration';
|
|
552
|
+
export * from './Interface/api/registration/CreateRegistration';
|
|
553
|
+
export * from './Interface/api/journal/Journals';
|
|
554
|
+
export * from './Interface/api/journal/QueryJournal';
|
|
555
|
+
export * from './Interface/api/balanceSheet/ReadBalanceSheetTransaction';
|
|
556
|
+
export * from './Interface/api/mealExpense/CreateMealExpense';
|
|
557
|
+
export * from './Interface/api/mealExpense/ReadMealExpense';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
registerDecorator, ValidationArguments, ValidationOptions,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
|
|
5
|
+
export function IsFormattedDateString(validationOptions?: ValidationOptions) {
|
|
6
|
+
return function validator(object: any, propertyName: string) {
|
|
7
|
+
registerDecorator({
|
|
8
|
+
name: 'IsFormattedDateString',
|
|
9
|
+
target: object.constructor,
|
|
10
|
+
propertyName,
|
|
11
|
+
options: {
|
|
12
|
+
message: `${propertyName} should be a string date formatted in 'YYYY-MM-DD'`,
|
|
13
|
+
...validationOptions,
|
|
14
|
+
},
|
|
15
|
+
validator: {
|
|
16
|
+
validate(value: any, args: ValidationArguments) {
|
|
17
|
+
const dateRegex = /^((\d{4}-((0[13578]-|1[02]-)(0[1-9]|[12]\d|3[01])|(0[13456789]-|1[012]-)(0[1-9]|[12]\d|30)|02-(0[1-9]|1\d|2[0-8])))|((([02468][048]|[13579][26])00|\d{2}([13579][26]|0[48]|[2468][048])))-02-29)$/;
|
|
18
|
+
return typeof value === 'string'
|
|
19
|
+
&& dateRegex.test(value);
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
}
|