@silexpert/core 0.4.137 → 0.4.139
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/KilometricAllowance.d.ts +6 -0
- package/es/api/resources/KilometricAllowance.d.ts.map +1 -0
- package/es/api/resources/KilometricAllowance.js +7 -0
- package/es/api/resources/KilometricAllowance.js.map +1 -0
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/Account.d.ts +8 -0
- package/es/types/Enum/Account.d.ts.map +1 -1
- package/es/types/Enum/Account.js +8 -0
- package/es/types/Enum/Account.js.map +1 -1
- package/es/types/Enum/BrandClementine.d.ts +10 -0
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +10 -0
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandComptalib.d.ts +4 -0
- package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/es/types/Enum/BrandComptalib.js +2 -0
- package/es/types/Enum/BrandComptalib.js.map +1 -1
- package/es/types/Enum/BrandLegalstart.d.ts +2 -0
- package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/es/types/Enum/BrandLegalstart.js +2 -0
- package/es/types/Enum/BrandLegalstart.js.map +1 -1
- package/es/types/Enum/KilometricAllowanceScale.d.ts +20 -0
- package/es/types/Enum/KilometricAllowanceScale.d.ts.map +1 -0
- package/es/types/Enum/KilometricAllowanceScale.js +120 -0
- package/es/types/Enum/KilometricAllowanceScale.js.map +1 -0
- package/es/types/Enum/ThirdPartyType.d.ts +3 -0
- package/es/types/Enum/ThirdPartyType.d.ts.map +1 -1
- package/es/types/Enum/ThirdPartyType.js +4 -0
- package/es/types/Enum/ThirdPartyType.js.map +1 -1
- package/es/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.d.ts +10 -0
- package/es/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.d.ts.map +1 -0
- package/es/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js +36 -0
- package/es/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js.map +1 -0
- package/es/types/index.d.ts +2 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +2 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/KilometricAllowance.js +18 -0
- package/js/api/resources/KilometricAllowance.js.map +1 -0
- package/js/api/resources.js +4 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/Account.js +8 -0
- package/js/types/Enum/Account.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +12 -2
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandComptalib.js +2 -0
- package/js/types/Enum/BrandComptalib.js.map +1 -1
- package/js/types/Enum/BrandLegalstart.js +2 -0
- package/js/types/Enum/BrandLegalstart.js.map +1 -1
- package/js/types/Enum/KilometricAllowanceScale.js +245 -0
- package/js/types/Enum/KilometricAllowanceScale.js.map +1 -0
- package/js/types/Enum/ThirdPartyType.js +6 -0
- package/js/types/Enum/ThirdPartyType.js.map +1 -1
- package/js/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js +39 -0
- package/js/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.js.map +1 -0
- package/js/types/index.js +24 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/KilometricAllowance.ts +8 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Account.ts +8 -0
- package/ts/types/Enum/BrandClementine.ts +10 -0
- package/ts/types/Enum/BrandComptalib.ts +2 -0
- package/ts/types/Enum/BrandLegalstart.ts +2 -0
- package/ts/types/Enum/KilometricAllowanceScale.ts +141 -0
- package/ts/types/Enum/ThirdPartyType.ts +4 -0
- package/ts/types/Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation.ts +26 -0
- package/ts/types/index.ts +2 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArrayUnique,
|
|
3
|
+
IsArray,
|
|
4
|
+
ValidateNested,
|
|
5
|
+
} from 'class-validator';
|
|
6
|
+
import { ApiProperty } from '../../../..';
|
|
7
|
+
|
|
8
|
+
class KilometricAllowanceValidation {
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
idVehicle!: number;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
idSocietyPartner!: number;
|
|
14
|
+
|
|
15
|
+
@ApiProperty()
|
|
16
|
+
amount!: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class CreateKilometricAllowanceValidation {
|
|
20
|
+
@IsArray()
|
|
21
|
+
@ArrayUnique((q) => q.idVehicle)
|
|
22
|
+
@ValidateNested({
|
|
23
|
+
each: true,
|
|
24
|
+
})
|
|
25
|
+
kilometricAllowances: Array<KilometricAllowanceValidation>;
|
|
26
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -391,6 +391,7 @@ export * from './Enum/Currency';
|
|
|
391
391
|
export * from './Enum/BalanceSheetModule';
|
|
392
392
|
export * from './Enum/BalanceSheetStatus';
|
|
393
393
|
export * from './Enum/FuelType';
|
|
394
|
+
export * from './Enum/KilometricAllowanceScale';
|
|
394
395
|
|
|
395
396
|
// Interfaces API
|
|
396
397
|
export * from './Interface/api/aspone/ReadInterchange';
|
|
@@ -622,5 +623,6 @@ export * from './Interface/api/jeDeclare/Util';
|
|
|
622
623
|
export * from './Interface/api/jeDeclare/CreateDocumentsParams';
|
|
623
624
|
export * from './Interface/api/jeDeclare/UtilCFONB';
|
|
624
625
|
export * from './Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion';
|
|
626
|
+
export * from './Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation';
|
|
625
627
|
|
|
626
628
|
export * from '../utils/cerfa';
|