@silexpert/core 0.4.130 → 0.4.131
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/es/api/resources/BalanceSheetCompletion.d.ts +19 -0
- package/es/api/resources/BalanceSheetCompletion.d.ts.map +1 -0
- package/es/api/resources/BalanceSheetCompletion.js +22 -0
- package/es/api/resources/BalanceSheetCompletion.js.map +1 -0
- package/es/api/resources/WorkingSchedule.d.ts +1 -1
- package/es/api/resources/WorkingSchedule.d.ts.map +1 -1
- package/es/api/resources/WorkingSchedule.js +2 -1
- package/es/api/resources/WorkingSchedule.js.map +1 -1
- package/es/types/Enum/BalanceSheetModule.d.ts +31 -0
- package/es/types/Enum/BalanceSheetModule.d.ts.map +1 -0
- package/es/types/Enum/BalanceSheetModule.js +63 -0
- package/es/types/Enum/BalanceSheetModule.js.map +1 -0
- package/es/types/Enum/BalanceSheetStatus.d.ts +6 -0
- package/es/types/Enum/BalanceSheetStatus.d.ts.map +1 -0
- package/es/types/Enum/BalanceSheetStatus.js +7 -0
- package/es/types/Enum/BalanceSheetStatus.js.map +1 -0
- package/es/types/Enum/FuelType.d.ts +42 -0
- package/es/types/Enum/FuelType.d.ts.map +1 -0
- package/es/types/Enum/FuelType.js +74 -0
- package/es/types/Enum/FuelType.js.map +1 -0
- package/es/types/Enum/TypeCustomerProviderOperation.d.ts +1 -1
- package/es/types/Enum/TypeCustomerProviderOperation.d.ts.map +1 -1
- package/es/types/Enum/TypeCustomerProviderOperation.js +1 -1
- package/es/types/Enum/TypeCustomerProviderOperation.js.map +1 -1
- package/es/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.d.ts +4 -0
- package/es/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.d.ts.map +1 -0
- package/es/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.js +20 -0
- package/es/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.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/financialCharge/CreatedNonDeductibleInterests.d.ts +2 -1
- package/es/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.d.ts.map +1 -1
- package/es/types/Interface/api/financialCharge/CreatedNonDeductibleInterests.js.map +1 -1
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts +2 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts.map +1 -1
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +16 -1
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -1
- package/es/types/Interface/api/society/UpdateSociety.d.ts +2 -1
- package/es/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
- package/es/types/Interface/api/society/UpdateSociety.js +11 -2
- package/es/types/Interface/api/society/UpdateSociety.js.map +1 -1
- package/es/types/Interface/api/vehicle/CreateSocietyVehicle.d.ts.map +1 -1
- package/es/types/Interface/api/vehicle/CreateSocietyVehicle.js +8 -0
- package/es/types/Interface/api/vehicle/CreateSocietyVehicle.js.map +1 -1
- package/es/types/Interface/api/vehicle/UpdateSocietyVehicle.d.ts.map +1 -1
- package/es/types/Interface/api/vehicle/UpdateSocietyVehicle.js +8 -0
- package/es/types/Interface/api/vehicle/UpdateSocietyVehicle.js.map +1 -1
- package/es/types/Interface/models/IBalanceSheetCompletion.d.ts +12 -0
- package/es/types/Interface/models/IBalanceSheetCompletion.d.ts.map +1 -0
- package/es/types/Interface/models/IBalanceSheetCompletion.js +2 -0
- package/es/types/Interface/models/IBalanceSheetCompletion.js.map +1 -0
- 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/IBalanceSheetModule2.d.ts +7 -0
- package/es/types/Interface/models/IBalanceSheetModule2.d.ts.map +1 -0
- package/es/types/Interface/models/IBalanceSheetModule2.js +2 -0
- package/es/types/Interface/models/IBalanceSheetModule2.js.map +1 -0
- package/es/types/Interface/models/IBalanceSheetStatus.d.ts +7 -0
- package/es/types/Interface/models/IBalanceSheetStatus.d.ts.map +1 -0
- package/es/types/Interface/models/IBalanceSheetStatus.js +2 -0
- package/es/types/Interface/models/IBalanceSheetStatus.js.map +1 -0
- package/es/types/index.d.ts +7 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +7 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/balanceSheetModule.d.ts +3 -0
- package/es/utils/balanceSheetModule.d.ts.map +1 -0
- package/es/utils/balanceSheetModule.js +12 -0
- package/es/utils/balanceSheetModule.js.map +1 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.d.ts.map +1 -1
- package/es/utils/index.js +1 -0
- package/es/utils/index.js.map +1 -1
- package/js/api/resources/BalanceSheetCompletion.js +37 -0
- package/js/api/resources/BalanceSheetCompletion.js.map +1 -0
- package/js/api/resources/WorkingSchedule.js +4 -1
- package/js/api/resources/WorkingSchedule.js.map +1 -1
- package/js/types/Enum/BalanceSheetModule.js +48 -0
- package/js/types/Enum/BalanceSheetModule.js.map +1 -0
- package/js/types/Enum/BalanceSheetStatus.js +13 -0
- package/js/types/Enum/BalanceSheetStatus.js.map +1 -0
- package/js/types/Enum/FuelType.js +148 -0
- package/js/types/Enum/FuelType.js.map +1 -0
- package/js/types/Enum/TypeCustomerProviderOperation.js +1 -1
- package/js/types/Enum/TypeCustomerProviderOperation.js.map +1 -1
- package/js/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.js +31 -0
- package/js/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.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/financialCharge/CreatedNonDeductibleInterests.js.map +1 -1
- package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +8 -2
- package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -1
- package/js/types/Interface/api/society/UpdateSociety.js +7 -1
- package/js/types/Interface/api/society/UpdateSociety.js.map +1 -1
- package/js/types/Interface/api/vehicle/CreateSocietyVehicle.js +6 -2
- package/js/types/Interface/api/vehicle/CreateSocietyVehicle.js.map +1 -1
- package/js/types/Interface/api/vehicle/UpdateSocietyVehicle.js +6 -2
- package/js/types/Interface/api/vehicle/UpdateSocietyVehicle.js.map +1 -1
- package/js/types/Interface/models/IBalanceSheetCompletion.js +6 -0
- package/js/types/Interface/models/IBalanceSheetCompletion.js.map +1 -0
- package/js/types/Interface/models/IBalanceSheetModule2.js +6 -0
- package/js/types/Interface/models/IBalanceSheetModule2.js.map +1 -0
- package/js/types/Interface/models/IBalanceSheetStatus.js +6 -0
- package/js/types/Interface/models/IBalanceSheetStatus.js.map +1 -0
- package/js/types/index.js +84 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/balanceSheetModule.js +21 -0
- package/js/utils/balanceSheetModule.js.map +1 -0
- package/js/utils/index.js +12 -0
- package/js/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BalanceSheetCompletion.ts +26 -0
- package/ts/api/resources/WorkingSchedule.ts +2 -1
- package/ts/types/Enum/BalanceSheetModule.ts +71 -0
- package/ts/types/Enum/BalanceSheetStatus.ts +5 -0
- package/ts/types/Enum/FuelType.ts +75 -0
- package/ts/types/Enum/TypeCustomerProviderOperation.ts +1 -1
- package/ts/types/Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion.ts +9 -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/financialCharge/CreatedNonDeductibleInterests.ts +2 -1
- package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +16 -1
- package/ts/types/Interface/api/society/UpdateSociety.ts +11 -3
- package/ts/types/Interface/api/vehicle/CreateSocietyVehicle.ts +8 -0
- package/ts/types/Interface/api/vehicle/UpdateSocietyVehicle.ts +8 -0
- package/ts/types/Interface/models/IBalanceSheetCompletion.ts +14 -0
- package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -0
- package/ts/types/Interface/models/IBalanceSheetModule2.ts +7 -0
- package/ts/types/Interface/models/IBalanceSheetStatus.ts +7 -0
- package/ts/types/index.ts +8 -0
- package/ts/utils/balanceSheetModule.ts +21 -0
- package/ts/utils/index.ts +1 -0
|
@@ -108,6 +108,12 @@ export class CreateBalanceSheetModuleForm {
|
|
|
108
108
|
@IsOptional()
|
|
109
109
|
hasCheckedCompanyTax?: boolean | null;
|
|
110
110
|
|
|
111
|
+
@ApiPropertyOptional()
|
|
112
|
+
@IsBoolean()
|
|
113
|
+
@ToBoolean()
|
|
114
|
+
@IsOptional()
|
|
115
|
+
hasValidateKilometricAllowance?: boolean | null;
|
|
116
|
+
|
|
111
117
|
@ApiProperty()
|
|
112
118
|
idExercice: number;
|
|
113
119
|
}
|
|
@@ -108,6 +108,12 @@ export class UpdateBalanceSheetModuleForm {
|
|
|
108
108
|
@IsOptional()
|
|
109
109
|
hasCheckedCompanyTax?: boolean | null;
|
|
110
110
|
|
|
111
|
+
@ApiPropertyOptional()
|
|
112
|
+
@IsBoolean()
|
|
113
|
+
@ToBoolean()
|
|
114
|
+
@IsOptional()
|
|
115
|
+
hasValidateKilometricAllowance?: boolean | null;
|
|
116
|
+
|
|
111
117
|
@ApiPropertyOptional()
|
|
112
118
|
idExercice?: number;
|
|
113
119
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IExerciceQuestion } from '../../..';
|
|
1
|
+
import { IBalanceSheetCompletion, IExerciceQuestion } from '../../..';
|
|
2
2
|
|
|
3
3
|
export class CreatedNonDeductibleInterests {
|
|
4
4
|
hasNonDeductibleInterests: boolean;
|
|
5
|
+
completion: IBalanceSheetCompletion;
|
|
5
6
|
question?: IExerciceQuestion;
|
|
6
7
|
}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ArrayNotEmpty, IsArray, IsNumber, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
5
|
|
|
3
6
|
export class CreateInternalInvoicing {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsArray()
|
|
10
|
+
idSociety: Array<number>;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsArray()
|
|
14
|
+
@ArrayNotEmpty()
|
|
15
|
+
types: Array<string>;
|
|
16
|
+
|
|
4
17
|
@ApiProperty()
|
|
18
|
+
@IsNumber()
|
|
5
19
|
month: number;
|
|
6
20
|
|
|
7
21
|
@ApiProperty()
|
|
22
|
+
@IsNumber()
|
|
8
23
|
year: number;
|
|
9
24
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsBoolean, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
2
3
|
import { ISociety } from '../../models/ISociety';
|
|
4
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
3
5
|
|
|
4
6
|
export class UpdateSociety {
|
|
5
|
-
@
|
|
6
|
-
idTypeCompta
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
idTypeCompta?: number;
|
|
7
9
|
|
|
8
10
|
@ApiPropertyOptional()
|
|
9
11
|
idUser?: number;
|
|
@@ -46,6 +48,12 @@ export class UpdateSociety {
|
|
|
46
48
|
|
|
47
49
|
@ApiPropertyOptional()
|
|
48
50
|
socialCapital?: string;
|
|
51
|
+
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
@IsBoolean()
|
|
54
|
+
@ToBoolean()
|
|
55
|
+
@IsOptional()
|
|
56
|
+
showPopUpVehicleInformation?: boolean;
|
|
49
57
|
}
|
|
50
58
|
|
|
51
59
|
export class UpdateSocietyPayload {
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import { IsBoolean, IsOptional } from 'class-validator';
|
|
1
2
|
import { ApiPropertyOptional } from '../../../..';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
2
4
|
|
|
3
5
|
export class CreateSocietyVehicle {
|
|
4
6
|
@ApiPropertyOptional()
|
|
5
7
|
name?: string;
|
|
6
8
|
|
|
7
9
|
@ApiPropertyOptional()
|
|
10
|
+
@IsBoolean()
|
|
11
|
+
@ToBoolean()
|
|
12
|
+
@IsOptional()
|
|
8
13
|
isPerso?: boolean;
|
|
9
14
|
|
|
10
15
|
@ApiPropertyOptional()
|
|
@@ -41,5 +46,8 @@ export class CreateSocietyVehicle {
|
|
|
41
46
|
dateOfFirstRegistration?: Date | null;
|
|
42
47
|
|
|
43
48
|
@ApiPropertyOptional()
|
|
49
|
+
@IsBoolean()
|
|
50
|
+
@ToBoolean()
|
|
51
|
+
@IsOptional()
|
|
44
52
|
isLeasing?: boolean | null;
|
|
45
53
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import { IsBoolean, IsOptional } from 'class-validator';
|
|
1
2
|
import { ApiPropertyOptional } from '../../../..';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
2
4
|
|
|
3
5
|
export class UpdateSocietyVehicle {
|
|
4
6
|
@ApiPropertyOptional()
|
|
5
7
|
name?: string;
|
|
6
8
|
|
|
7
9
|
@ApiPropertyOptional()
|
|
10
|
+
@IsBoolean()
|
|
11
|
+
@ToBoolean()
|
|
12
|
+
@IsOptional()
|
|
8
13
|
isPerso?: boolean;
|
|
9
14
|
|
|
10
15
|
@ApiPropertyOptional()
|
|
@@ -41,5 +46,8 @@ export class UpdateSocietyVehicle {
|
|
|
41
46
|
dateOfFirstRegistration?: Date | null;
|
|
42
47
|
|
|
43
48
|
@ApiPropertyOptional()
|
|
49
|
+
@IsBoolean()
|
|
50
|
+
@ToBoolean()
|
|
51
|
+
@IsOptional()
|
|
44
52
|
isLeasing?: boolean | null;
|
|
45
53
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IBalanceSheetModule, IBalanceSheetStatus, IExercice } from '../..';
|
|
2
|
+
|
|
3
|
+
export interface IBalanceSheetCompletion {
|
|
4
|
+
idExercice: number;
|
|
5
|
+
idModule: number;
|
|
6
|
+
idStatus: number;
|
|
7
|
+
|
|
8
|
+
createdAt?: Date | null;
|
|
9
|
+
updatedAt?: Date | null;
|
|
10
|
+
|
|
11
|
+
exercice?: IExercice;
|
|
12
|
+
status?: IBalanceSheetStatus;
|
|
13
|
+
module?: IBalanceSheetModule;
|
|
14
|
+
}
|
|
@@ -22,6 +22,7 @@ export interface IBalanceSheetModule {
|
|
|
22
22
|
hasFinancialCharges?: boolean | null;
|
|
23
23
|
hasCheckedVAT?: boolean | null;
|
|
24
24
|
hasCheckedCompanyTax?: boolean | null;
|
|
25
|
+
hasValidateKilometricAllowance?: boolean | null
|
|
25
26
|
idSociety: number;
|
|
26
27
|
idExercice: number;
|
|
27
28
|
createdAt?: Date | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -294,6 +294,9 @@ export * from './Interface/models/IBalanceSheetQuestion';
|
|
|
294
294
|
export * from './Interface/models/IExerciceQuestion';
|
|
295
295
|
export * from './Interface/models/IRelatedAccountingTransaction';
|
|
296
296
|
export * from './Interface/models/IMachineLearningResult';
|
|
297
|
+
export * from './Interface/models/IBalanceSheetModule2';
|
|
298
|
+
export * from './Interface/models/IBalanceSheetStatus';
|
|
299
|
+
export * from './Interface/models/IBalanceSheetCompletion';
|
|
297
300
|
|
|
298
301
|
// Forms
|
|
299
302
|
export * from './Form/FormAuthenticate';
|
|
@@ -385,6 +388,9 @@ export * from './Enum/Ocr';
|
|
|
385
388
|
export * from './Enum/MachineLearning';
|
|
386
389
|
export * from './Enum/JeDeclare';
|
|
387
390
|
export * from './Enum/Currency';
|
|
391
|
+
export * from './Enum/BalanceSheetModule';
|
|
392
|
+
export * from './Enum/BalanceSheetStatus';
|
|
393
|
+
export * from './Enum/FuelType';
|
|
388
394
|
|
|
389
395
|
// Interfaces API
|
|
390
396
|
export * from './Interface/api/aspone/ReadInterchange';
|
|
@@ -610,4 +616,6 @@ export * from './Interface/api/machineLearning/ResultCreateMachineLearningAnnota
|
|
|
610
616
|
export * from './Interface/api/jeDeclare/Util';
|
|
611
617
|
export * from './Interface/api/jeDeclare/CreateDocumentsParams';
|
|
612
618
|
export * from './Interface/api/jeDeclare/UtilCFONB';
|
|
619
|
+
export * from './Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion';
|
|
620
|
+
|
|
613
621
|
export * from '../utils/cerfa';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { forEach } from 'lodash';
|
|
2
|
+
import {
|
|
3
|
+
BalanceSheetModule, BalanceSheetModuleByCompanyType, DEFAULT_MODULES, FiscalRegime, ProfitsType, TaxSystem,
|
|
4
|
+
} from '..';
|
|
5
|
+
|
|
6
|
+
export function getModulesByCompanyType(
|
|
7
|
+
idLegalForm: number,
|
|
8
|
+
idTaxSystem: TaxSystem,
|
|
9
|
+
idFiscalRegime: FiscalRegime,
|
|
10
|
+
profitsType: ProfitsType,
|
|
11
|
+
): Array<BalanceSheetModule> {
|
|
12
|
+
const modules = [...DEFAULT_MODULES];
|
|
13
|
+
|
|
14
|
+
forEach(BalanceSheetModuleByCompanyType, (value, key) => {
|
|
15
|
+
if (!value?.excluded.legalFormIds.includes(idLegalForm)) {
|
|
16
|
+
modules.push(Number(key));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
return modules;
|
|
21
|
+
}
|
package/ts/utils/index.ts
CHANGED