@silexpert/core 0.4.170 → 0.4.174
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/GeneralLedger.d.ts +3 -1
- package/es/api/resources/GeneralLedger.d.ts.map +1 -1
- package/es/api/resources/GeneralLedger.js +5 -0
- package/es/api/resources/GeneralLedger.js.map +1 -1
- package/es/api/resources/MachineLearning.js +1 -1
- package/es/api/resources/MachineLearning.js.map +1 -1
- package/es/api/resources/Tax.js.map +1 -1
- package/es/api/resources/Transaction.d.ts +1 -0
- package/es/api/resources/Transaction.d.ts.map +1 -1
- package/es/api/resources/Transaction.js +3 -0
- package/es/api/resources/Transaction.js.map +1 -1
- package/es/api/resources/VatDeclaration.js +1 -1
- package/es/api/resources/VatDeclaration.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheet.js +9 -5
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/BrandClementine.js +1 -1
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandComptalib.js +3 -3
- package/es/types/Enum/BrandComptalib.js.map +1 -1
- package/es/types/Enum/Prestation.d.ts +2 -1
- package/es/types/Enum/Prestation.d.ts.map +1 -1
- package/es/types/Enum/Prestation.js +1 -0
- package/es/types/Enum/Prestation.js.map +1 -1
- package/es/types/Enum/VatRegime.js +1 -1
- package/es/types/Enum/VatRegime.js.map +1 -1
- package/es/types/Interface/api/BasePaginate.d.ts +6 -0
- package/es/types/Interface/api/BasePaginate.d.ts.map +1 -1
- package/es/types/Interface/api/BasePaginate.js.map +1 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +2 -0
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts +4 -0
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js +28 -1
- package/es/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +2 -0
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +5 -0
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/es/types/Interface/api/transactions/QueryUnexport.d.ts +2 -2
- package/es/types/Interface/api/transactions/QueryUnexport.d.ts.map +1 -1
- package/es/types/Interface/api/transactions/QueryUnexport.js.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +4 -2
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +2 -2
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
- package/es/types/Interface/models/IVatDeclaration.d.ts +1 -1
- package/es/types/Interface/models/IVatDeclaration.js.map +1 -1
- package/js/api/resources/GeneralLedger.js +6 -0
- package/js/api/resources/GeneralLedger.js.map +1 -1
- package/js/api/resources/MachineLearning.js +1 -1
- package/js/api/resources/MachineLearning.js.map +1 -1
- package/js/api/resources/Tax.js.map +1 -1
- package/js/api/resources/Transaction.js +4 -0
- package/js/api/resources/Transaction.js.map +1 -1
- package/js/api/resources/VatDeclaration.js +1 -3
- package/js/api/resources/VatDeclaration.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +9 -5
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +1 -1
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandComptalib.js +3 -3
- package/js/types/Enum/BrandComptalib.js.map +1 -1
- package/js/types/Enum/Prestation.js +1 -0
- package/js/types/Enum/Prestation.js.map +1 -1
- package/js/types/Enum/VatRegime.js +1 -1
- package/js/types/Enum/VatRegime.js.map +1 -1
- package/js/types/Interface/api/BasePaginate.js.map +1 -1
- package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js +14 -0
- package/js/types/Interface/api/generalLedger/QueryGeneralLedger.js.map +1 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +7 -0
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/js/types/Interface/api/transactions/QueryUnexport.js.map +1 -1
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +4 -2
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +1 -1
- package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/GeneralLedger.ts +8 -1
- package/ts/api/resources/MachineLearning.ts +1 -1
- package/ts/api/resources/Tax.ts +1 -1
- package/ts/api/resources/Transaction.ts +4 -0
- package/ts/api/resources/VatDeclaration.ts +1 -1
- package/ts/types/Enum/BalanceSheet.ts +9 -5
- package/ts/types/Enum/BrandClementine.ts +1 -1
- package/ts/types/Enum/BrandComptalib.ts +3 -3
- package/ts/types/Enum/Prestation.ts +1 -0
- package/ts/types/Enum/VatRegime.ts +2 -2
- package/ts/types/Interface/api/BasePaginate.ts +7 -0
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +2 -0
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedger.ts +26 -1
- package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +4 -0
- package/ts/types/Interface/api/transactions/QueryUnexport.ts +2 -2
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +5 -3
- package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +2 -2
- package/ts/types/Interface/models/IVatDeclaration.ts +1 -1
package/ts/api/resources/Tax.ts
CHANGED
|
@@ -62,4 +62,8 @@ export class Transaction extends Resource {
|
|
|
62
62
|
getBankAccountSum(query: QueryBankAccountSum): Promise<ReadBankAccountSum> {
|
|
63
63
|
return this.axios.$get('/society/transactions/bank-account-sum', { params: query });
|
|
64
64
|
}
|
|
65
|
+
|
|
66
|
+
get(id: number): Promise<ReadFormattedAccountingTransaction> {
|
|
67
|
+
return this.axios.$get(`/transactions/${id}`);
|
|
68
|
+
}
|
|
65
69
|
}
|
|
@@ -6,7 +6,7 @@ export class VatDeclaration extends Resource {
|
|
|
6
6
|
const params: QueryVatDeclaration = {
|
|
7
7
|
idUser, isComplete: true, declarationDate: new Date(), payload: null, idDeposit: null,
|
|
8
8
|
};
|
|
9
|
-
return this.axios.$put(`/vat-declarations/${id}`,
|
|
9
|
+
return this.axios.$put(`/vat-declarations/${id}`, params);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
getVariousOperations(id: number): Promise<ReadVatVariousOperations[]> {
|
|
@@ -184,7 +184,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
|
|
|
184
184
|
total: 0,
|
|
185
185
|
totalDeducted: 0,
|
|
186
186
|
calculation: true,
|
|
187
|
-
calculationAdd: ['fixedAsset'
|
|
187
|
+
calculationAdd: ['fixedAsset'],
|
|
188
188
|
isTotal: true,
|
|
189
189
|
},
|
|
190
190
|
{
|
|
@@ -231,12 +231,14 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
|
|
|
231
231
|
isSubcategory: true,
|
|
232
232
|
fields: [
|
|
233
233
|
{
|
|
234
|
+
// créance client = lorsque les clients te doivent de l'argent = somme débit > crédit
|
|
234
235
|
name: 'Créances clients et comptes rattachés',
|
|
235
236
|
accounts: ['411', '413', '416', '418'],
|
|
236
237
|
idThirdPartyTypeToAdd: [ThirdPartyType.CUSTOMER, MathematicalSign.PLUS],
|
|
237
238
|
accountsDeducted: ['491'],
|
|
238
239
|
},
|
|
239
240
|
{
|
|
241
|
+
// autres = lorsque les fournisseurs te doivent de l'argent = somme débit > crédit
|
|
240
242
|
name: 'Autres',
|
|
241
243
|
accounts: ['401', '4096', '4097', '4098', '42', '43', '44', '45', '46', '48'],
|
|
242
244
|
idThirdPartyTypeToAdd: [ThirdPartyType.PROVIDER, MathematicalSign.PLUS],
|
|
@@ -275,7 +277,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
|
|
|
275
277
|
{
|
|
276
278
|
name: 'Disponibilités',
|
|
277
279
|
key: 'availabilities',
|
|
278
|
-
accounts: ['511', '512', '514', '515', '516', '517', '5187', '53', '54'],
|
|
280
|
+
accounts: ['511', '512', '514', '515', '516', '517', '5187', '53', '54', '58'],
|
|
279
281
|
type: 'active',
|
|
280
282
|
},
|
|
281
283
|
{
|
|
@@ -387,7 +389,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
|
|
|
387
389
|
{
|
|
388
390
|
name: 'Report à nouveau',
|
|
389
391
|
key: 'postponement',
|
|
390
|
-
accounts: ['11'],
|
|
392
|
+
accounts: ['11', '120'],
|
|
391
393
|
isSubcategory: true,
|
|
392
394
|
total: 0,
|
|
393
395
|
},
|
|
@@ -469,7 +471,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
|
|
|
469
471
|
{
|
|
470
472
|
name: 'Emprunts et dettes auprès établissements de crédits (1)',
|
|
471
473
|
key: 'loansCredits',
|
|
472
|
-
accounts: ['164', '16884', '512', '514', '517', '5186', '519'],
|
|
474
|
+
accounts: ['164', '16884', '512', '514', '517', '5186', '519', '53'],
|
|
473
475
|
isSubcategory: true,
|
|
474
476
|
total: 0,
|
|
475
477
|
type: 'passive',
|
|
@@ -494,6 +496,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
|
|
|
494
496
|
name: 'Dettes Fournisseurs et Comptes rattachés',
|
|
495
497
|
key: 'payables',
|
|
496
498
|
accounts: ['401', '403', '4081', '4088'],
|
|
499
|
+
// PASSIF dette fournisseurs = lorsque l'entreprise doit de l'argent au fournisseurs = somme crédit > débit
|
|
497
500
|
idThirdPartyTypeToAdd: [ThirdPartyType.PROVIDER, MathematicalSign.LESS],
|
|
498
501
|
isSubcategory: true,
|
|
499
502
|
total: 0,
|
|
@@ -518,7 +521,8 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
|
|
|
518
521
|
{
|
|
519
522
|
name: 'Autres dettes',
|
|
520
523
|
key: 'OtherDebts',
|
|
521
|
-
accounts: ['411', '4196', '4197', '4198', '464', '467', '4686', '478', '509'],
|
|
524
|
+
accounts: ['411', '4196', '4197', '4198', '464', '467', '4686', '471', '478', '509'],
|
|
525
|
+
// PASSIF Autres = lorsque l'entreprise doit de l'argent au client = somme débit > crédit (modifié)
|
|
522
526
|
idThirdPartyTypeToAdd: [ThirdPartyType.CUSTOMER, MathematicalSign.LESS],
|
|
523
527
|
isSubcategory: true,
|
|
524
528
|
total: 0,
|
|
@@ -104,7 +104,7 @@ export const BrandClementine = [
|
|
|
104
104
|
miniLogoUrl: 'logo-legalstart.svg',
|
|
105
105
|
hiddenPages: [],
|
|
106
106
|
recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
|
|
107
|
-
urlApp: 'https://
|
|
107
|
+
urlApp: 'https://app.compta-clementine.fr',
|
|
108
108
|
urlApi1: 'https://api-legalstart.compta-clementine.fr',
|
|
109
109
|
urlApi2: 'https://api-next-legalstart.compta-clementine.fr',
|
|
110
110
|
urlExpert: 'https://pro.comptalib.com',
|
|
@@ -98,7 +98,7 @@ export const BrandComptalib = [
|
|
|
98
98
|
miniLogoUrl: 'logo-pourcentage-mini.svg',
|
|
99
99
|
hiddenPages: [],
|
|
100
100
|
recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
|
|
101
|
-
urlApp: 'https://app.
|
|
101
|
+
urlApp: 'https://app.pourcentage.fr/',
|
|
102
102
|
urlApi1: 'https://api.comptalib.com',
|
|
103
103
|
urlApi2: 'https://api-next.comptalib.com',
|
|
104
104
|
urlExpert: 'https://pro.comptalib.com',
|
|
@@ -172,7 +172,7 @@ export const BrandComptalib = [
|
|
|
172
172
|
miniLogoUrl: 'logo-lcf.svg',
|
|
173
173
|
hiddenPages: [],
|
|
174
174
|
recaptchaSecretKey: '6LdZneUUAAAAAKfiwC_JFWOlzc_0YYKHQJgSveRP',
|
|
175
|
-
urlApp: 'https://app.
|
|
175
|
+
urlApp: 'https://app.lecomptablefrancais.fr/',
|
|
176
176
|
urlExpert: 'https://pro.comptalib.com',
|
|
177
177
|
urlClient: '',
|
|
178
178
|
bank: {
|
|
@@ -183,7 +183,7 @@ export const BrandComptalib = [
|
|
|
183
183
|
},
|
|
184
184
|
internalInvoicing: {
|
|
185
185
|
statut: 'SASU',
|
|
186
|
-
name: '
|
|
186
|
+
name: 'POURCENTAGE',
|
|
187
187
|
address: '9, avenue du Rhin',
|
|
188
188
|
zipCode: '54520',
|
|
189
189
|
city: 'LAXOU',
|
|
@@ -8,6 +8,13 @@ export interface BasePaginate<T> {
|
|
|
8
8
|
data: T[];
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
export interface BasePaginateInterface<T> {
|
|
12
|
+
maxPages: number;
|
|
13
|
+
currentPage: number;
|
|
14
|
+
totalItems: number;
|
|
15
|
+
data: T;
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
export interface QueryPaginate {
|
|
12
19
|
page: number,
|
|
13
20
|
limit: number,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IsBoolean, IsOptional } from 'class-validator';
|
|
2
2
|
import { IAccountingTransaction, IImmobilization } from '../../..';
|
|
3
|
+
import { IThirdParty } from '../../models/IThirdParty';
|
|
3
4
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
4
5
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
5
6
|
|
|
@@ -58,4 +59,5 @@ export interface ReadFormattedAccountingTransaction extends IAccountingTransacti
|
|
|
58
59
|
credit: number;
|
|
59
60
|
autoAnnotateWithML: boolean;
|
|
60
61
|
entries?: AnnotateAccountingTransaction;
|
|
62
|
+
thirdPartySuggestions?: IThirdParty[];
|
|
61
63
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean, IsInt, IsOptional, Min,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
2
6
|
|
|
3
7
|
export class QueryGeneralLedger {
|
|
4
8
|
@ApiProperty()
|
|
@@ -6,4 +10,25 @@ export class QueryGeneralLedger {
|
|
|
6
10
|
|
|
7
11
|
@ApiProperty()
|
|
8
12
|
dateEnd: string;
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsInt()
|
|
16
|
+
@Min(1)
|
|
17
|
+
@IsOptional()
|
|
18
|
+
limit?: number;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
@IsInt()
|
|
22
|
+
@Min(1)
|
|
23
|
+
@IsOptional()
|
|
24
|
+
page?: number;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional({ default: true })
|
|
27
|
+
@IsBoolean()
|
|
28
|
+
@ToBoolean()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
descending?: boolean;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
search?: string;
|
|
9
34
|
}
|
|
@@ -3,6 +3,7 @@ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
|
3
3
|
import { VatRegime, ToDoOrDone } from '../../..';
|
|
4
4
|
import { ComptaType } from '../../../Enum/ComptaType';
|
|
5
5
|
import { TaxSystem } from '../../../Enum/TaxSystem';
|
|
6
|
+
import { Supervision } from '../../../Enum/Supervision';
|
|
6
7
|
import { BalanceSheetState } from '../../../Enum/BalanceSheet';
|
|
7
8
|
|
|
8
9
|
export class QueryTaxDeadline {
|
|
@@ -45,6 +46,9 @@ export class QueryTaxDeadline {
|
|
|
45
46
|
@ApiPropertyOptional({ description: 'Date de clôture inférieure ou égale à (format YYYY-MM-DD)' })
|
|
46
47
|
maximalEndDate?: string;
|
|
47
48
|
|
|
49
|
+
@ApiPropertyOptional({ description: 'État de la supervision', enum: Supervision })
|
|
50
|
+
idSupervisionState?: Supervision;
|
|
51
|
+
|
|
48
52
|
@ApiPropertyOptional({ description: 'Statuts de l\'IS/IR' })
|
|
49
53
|
@IsOptional()
|
|
50
54
|
@IsEnum(ToDoOrDone)
|
|
@@ -17,11 +17,11 @@ export class QueryUnexport {
|
|
|
17
17
|
@ApiPropertyOptional()
|
|
18
18
|
@IsOptional()
|
|
19
19
|
@IsArray()
|
|
20
|
-
idBankAccount
|
|
20
|
+
idBankAccount?: Array<number>;
|
|
21
21
|
|
|
22
22
|
@ApiPropertyOptional()
|
|
23
23
|
@IsOptional()
|
|
24
24
|
@IsNumber()
|
|
25
25
|
@IsIn([AccountingJournal.AC, AccountingJournal.VE])
|
|
26
|
-
idAccountingJournal
|
|
26
|
+
idAccountingJournal?: number;
|
|
27
27
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IsBoolean,
|
|
3
|
-
IsDate, IsInt, IsOptional,
|
|
3
|
+
IsDate, IsInt, IsOptional, IsString,
|
|
4
4
|
} from 'class-validator';
|
|
5
5
|
import { ApiPropertyOptional } from '../../../..';
|
|
6
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
7
|
|
|
7
8
|
export class QueryVatDeclaration {
|
|
8
9
|
@ApiPropertyOptional()
|
|
@@ -23,6 +24,7 @@ export class QueryVatDeclaration {
|
|
|
23
24
|
@ApiPropertyOptional()
|
|
24
25
|
@IsBoolean()
|
|
25
26
|
@IsOptional()
|
|
27
|
+
@ToBoolean()
|
|
26
28
|
isComplete?: boolean;
|
|
27
29
|
|
|
28
30
|
@ApiPropertyOptional()
|
|
@@ -31,9 +33,9 @@ export class QueryVatDeclaration {
|
|
|
31
33
|
idUser?: number;
|
|
32
34
|
|
|
33
35
|
@ApiPropertyOptional()
|
|
34
|
-
@
|
|
36
|
+
@IsString()
|
|
35
37
|
@IsOptional()
|
|
36
|
-
idDeposit?:
|
|
38
|
+
idDeposit?: string | null ;
|
|
37
39
|
|
|
38
40
|
@ApiPropertyOptional()
|
|
39
41
|
@IsOptional()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsMimeType,
|
|
2
|
+
/* IsMimeType, */IsNumber, IsOptional, IsString,
|
|
3
3
|
} from 'class-validator';
|
|
4
4
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ export class PostAttachmentEmailFromLambdaParams {
|
|
|
10
10
|
|
|
11
11
|
@ApiProperty()
|
|
12
12
|
@IsString()
|
|
13
|
-
@IsMimeType()
|
|
13
|
+
// @IsMimeType() -> désactivé car pose pb avec certaines PJ ayant un mimetype comme 'image/*'
|
|
14
14
|
mime: string;
|
|
15
15
|
|
|
16
16
|
@ApiPropertyOptional()
|
|
@@ -13,7 +13,7 @@ export interface IVatDeclaration {
|
|
|
13
13
|
idUser: number | null;
|
|
14
14
|
idExercice: number | null;
|
|
15
15
|
idCerfaType: number | null;
|
|
16
|
-
|
|
16
|
+
idDeposit: string | null;
|
|
17
17
|
isComplete: boolean;
|
|
18
18
|
payload: string | null;
|
|
19
19
|
declarationDate: Date | null;
|