@silexpert/core 0.4.97 → 0.4.100
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/Report.d.ts +6 -16
- package/es/api/resources/Report.d.ts.map +1 -1
- package/es/api/resources/Report.js +4 -4
- package/es/api/resources/Report.js.map +1 -1
- package/es/api/resources/Tax.d.ts +7 -0
- package/es/api/resources/Tax.d.ts.map +1 -0
- package/es/api/resources/Tax.js +10 -0
- package/es/api/resources/Tax.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/Comment.d.ts +1 -1
- package/es/types/Enum/Comment.js +19 -19
- package/es/types/Enum/Comment.js.map +1 -1
- package/es/types/Enum/Log.d.ts +35 -0
- package/es/types/Enum/Log.d.ts.map +1 -0
- package/es/types/Enum/Log.js +38 -0
- package/es/types/Enum/Log.js.map +1 -0
- package/es/types/Enum/Tax.d.ts +31 -0
- package/es/types/Enum/Tax.d.ts.map +1 -0
- package/es/types/Enum/Tax.js +34 -0
- package/es/types/Enum/Tax.js.map +1 -0
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +1 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +6 -1
- package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/es/types/Interface/api/log/CreateLog.d.ts +14 -0
- package/es/types/Interface/api/log/CreateLog.d.ts.map +1 -0
- package/es/types/Interface/api/log/CreateLog.js +2 -0
- package/es/types/Interface/api/log/CreateLog.js.map +1 -0
- package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantService.d.ts +2 -0
- package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantService.d.ts.map +1 -1
- package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantService.js.map +1 -1
- package/es/types/Interface/api/report/CreateReport.d.ts +2 -2
- package/es/types/Interface/api/report/CreateReport.d.ts.map +1 -1
- package/es/types/Interface/api/report/CreateReport.js +2 -2
- package/es/types/Interface/api/report/CreateReport.js.map +1 -1
- package/es/types/Interface/api/report/QueryReportsStats.d.ts +5 -0
- package/es/types/Interface/api/report/QueryReportsStats.d.ts.map +1 -0
- package/es/types/Interface/api/report/QueryReportsStats.js +21 -0
- package/es/types/Interface/api/report/QueryReportsStats.js.map +1 -0
- package/es/types/Interface/api/report/ReadReport.d.ts +1 -2
- package/es/types/Interface/api/report/ReadReport.d.ts.map +1 -1
- package/es/types/Interface/api/report/ReadReport.js.map +1 -1
- package/es/types/Interface/api/report/ReadReportStats.d.ts +6 -0
- package/es/types/Interface/api/report/ReadReportStats.d.ts.map +1 -0
- package/es/types/Interface/api/report/ReadReportStats.js +2 -0
- package/es/types/Interface/api/report/ReadReportStats.js.map +1 -0
- package/es/types/Interface/api/report/UpdateReport.d.ts +8 -0
- package/es/types/Interface/api/report/UpdateReport.d.ts.map +1 -0
- package/es/types/Interface/api/report/UpdateReport.js +2 -0
- package/es/types/Interface/api/report/UpdateReport.js.map +1 -0
- package/es/types/Interface/api/tax/CreateTax.d.ts +12 -0
- package/es/types/Interface/api/tax/CreateTax.d.ts.map +1 -0
- package/es/types/Interface/api/tax/CreateTax.js +52 -0
- package/es/types/Interface/api/tax/CreateTax.js.map +1 -0
- package/es/types/Interface/api/tax/ReadTax.d.ts +20 -0
- package/es/types/Interface/api/tax/ReadTax.d.ts.map +1 -0
- package/es/types/Interface/api/tax/ReadTax.js +2 -0
- package/es/types/Interface/api/tax/ReadTax.js.map +1 -0
- package/es/types/Interface/models/IComment.d.ts +10 -9
- package/es/types/Interface/models/IComment.d.ts.map +1 -1
- package/es/types/Interface/models/IComment.js.map +1 -1
- package/es/types/Interface/models/ICustomerIsRegime.d.ts +5 -4
- package/es/types/Interface/models/ICustomerIsRegime.d.ts.map +1 -1
- package/es/types/Interface/models/ICustomerIsRegime.js.map +1 -1
- package/es/types/Interface/models/IPartneredAccountantService.d.ts +3 -0
- package/es/types/Interface/models/IPartneredAccountantService.d.ts.map +1 -1
- package/es/types/Interface/models/IPartneredAccountantService.js.map +1 -1
- package/es/types/Interface/models/IPartneredAccountantServiceIcon.d.ts +10 -0
- package/es/types/Interface/models/IPartneredAccountantServiceIcon.d.ts.map +1 -0
- package/es/types/Interface/models/IPartneredAccountantServiceIcon.js +2 -0
- package/es/types/Interface/models/IPartneredAccountantServiceIcon.js.map +1 -0
- package/es/types/Interface/models/IReport.d.ts +0 -2
- package/es/types/Interface/models/IReport.d.ts.map +1 -1
- package/es/types/Interface/models/IReport.js.map +1 -1
- package/es/types/index.d.ts +9 -1
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +9 -1
- package/es/types/index.js.map +1 -1
- package/es/utils/transforms/boolean.transform.d.ts.map +1 -1
- package/es/utils/transforms/boolean.transform.js +1 -1
- package/es/utils/transforms/boolean.transform.js.map +1 -1
- package/js/api/resources/Report.js +10 -6
- package/js/api/resources/Report.js.map +1 -1
- package/js/api/resources/Tax.js +22 -0
- package/js/api/resources/Tax.js.map +1 -0
- package/js/api/resources.js +3 -0
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/Comment.js +19 -19
- package/js/types/Enum/Comment.js.map +1 -1
- package/js/types/Enum/Log.js +48 -0
- package/js/types/Enum/Log.js.map +1 -0
- package/js/types/Enum/Tax.js +44 -0
- package/js/types/Enum/Tax.js.map +1 -0
- package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +6 -2
- package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/js/types/Interface/{models/IReportMessage.js → api/log/CreateLog.js} +1 -1
- package/js/types/Interface/{models/IReportMessage.js.map → api/log/CreateLog.js.map} +1 -1
- package/js/types/Interface/api/partneredAccountant/ReadPartneredAccountantService.js.map +1 -1
- package/js/types/Interface/api/report/CreateReport.js +2 -2
- package/js/types/Interface/api/report/CreateReport.js.map +1 -1
- package/js/types/Interface/api/report/QueryReportsStats.js +29 -0
- package/js/types/Interface/api/report/QueryReportsStats.js.map +1 -0
- package/js/types/Interface/api/report/ReadReportStats.js +6 -0
- package/js/types/Interface/api/report/ReadReportStats.js.map +1 -0
- package/js/types/Interface/api/report/UpdateReport.js +6 -0
- package/js/types/Interface/api/report/UpdateReport.js.map +1 -0
- package/js/types/Interface/api/tax/CreateTax.js +66 -0
- package/js/types/Interface/api/tax/CreateTax.js.map +1 -0
- package/js/types/Interface/api/tax/ReadTax.js +6 -0
- package/js/types/Interface/api/tax/ReadTax.js.map +1 -0
- package/js/types/Interface/models/IPartneredAccountantServiceIcon.js +6 -0
- package/js/types/Interface/models/IPartneredAccountantServiceIcon.js.map +1 -0
- package/js/types/index.js +108 -12
- package/js/types/index.js.map +1 -1
- package/js/utils/transforms/boolean.transform.js +1 -1
- package/js/utils/transforms/boolean.transform.js.map +1 -1
- package/package.json +2 -2
- package/ts/api/resources/Report.ts +8 -15
- package/ts/api/resources/Tax.ts +13 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Comment.ts +1 -1
- package/ts/types/Enum/Log.ts +36 -0
- package/ts/types/Enum/Tax.ts +32 -0
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +6 -1
- package/ts/types/Interface/api/log/CreateLog.ts +11 -0
- package/ts/types/Interface/api/partneredAccountant/ReadPartneredAccountantService.ts +3 -0
- package/ts/types/Interface/api/report/CreateReport.ts +3 -3
- package/ts/types/Interface/api/report/QueryReportsStats.ts +9 -0
- package/ts/types/Interface/api/report/ReadReport.ts +1 -2
- package/ts/types/Interface/api/report/ReadReportStats.ts +6 -0
- package/ts/types/Interface/api/report/UpdateReport.ts +8 -0
- package/ts/types/Interface/api/tax/CreateTax.ts +34 -0
- package/ts/types/Interface/api/tax/ReadTax.ts +22 -0
- package/ts/types/Interface/models/IComment.ts +10 -9
- package/ts/types/Interface/models/ICustomerIsRegime.ts +5 -4
- package/ts/types/Interface/models/IPartneredAccountantService.ts +3 -0
- package/ts/types/Interface/models/IPartneredAccountantServiceIcon.ts +13 -0
- package/ts/types/Interface/models/IReport.ts +0 -2
- package/ts/types/index.ts +9 -1
- package/ts/utils/transforms/boolean.transform.ts +1 -1
- package/es/types/Interface/models/IReportMessage.d.ts +0 -11
- package/es/types/Interface/models/IReportMessage.d.ts.map +0 -1
- package/es/types/Interface/models/IReportMessage.js +0 -2
- package/es/types/Interface/models/IReportMessage.js.map +0 -1
- package/ts/types/Interface/models/IReportMessage.ts +0 -14
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IsBoolean } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { TaxType, TaxState, TaxCredit } from '../../../Enum/Tax';
|
|
4
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
5
|
+
|
|
6
|
+
export class CreateTax {
|
|
7
|
+
@ApiProperty({ description: 'Montant de l\'impôt' })
|
|
8
|
+
amount: number;
|
|
9
|
+
|
|
10
|
+
@ApiProperty({ description: 'Date de l\'impôt' })
|
|
11
|
+
dateIs: string;
|
|
12
|
+
|
|
13
|
+
@ApiProperty({ description: 'Type d\'impôt', enum: TaxType })
|
|
14
|
+
type: TaxType;
|
|
15
|
+
|
|
16
|
+
@ApiProperty({ description: 'État', enum: TaxState })
|
|
17
|
+
state: TaxState;
|
|
18
|
+
|
|
19
|
+
@ApiProperty({ description: 'Défini l\'acompte comme un solde' })
|
|
20
|
+
@IsBoolean()
|
|
21
|
+
@ToBoolean()
|
|
22
|
+
solde: boolean;
|
|
23
|
+
|
|
24
|
+
@ApiProperty({ description: 'Montant du crédit d\'impôt' })
|
|
25
|
+
balance: number | null;
|
|
26
|
+
|
|
27
|
+
@ApiProperty({ description: 'État du crédit d\'impôt', enum: TaxCredit })
|
|
28
|
+
creditRefunded: TaxCredit;
|
|
29
|
+
|
|
30
|
+
@ApiPropertyOptional({ description: 'Défini l\'acompte en tant qu\'orphelin' })
|
|
31
|
+
@IsBoolean()
|
|
32
|
+
@ToBoolean()
|
|
33
|
+
isOrphan?: boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ICustomerIsRegime } from '../../models/ICustomerIsRegime';
|
|
2
|
+
|
|
3
|
+
export interface ReadAmountBase {
|
|
4
|
+
amount: number;
|
|
5
|
+
isFirstExercice: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface Tax extends TaxDate {
|
|
9
|
+
tax: ICustomerIsRegime | null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ReadTax {
|
|
13
|
+
amountBase: ReadAmountBase | null;
|
|
14
|
+
taxes: Tax[],
|
|
15
|
+
others: ICustomerIsRegime[]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TaxDate {
|
|
19
|
+
date: string;
|
|
20
|
+
required: boolean;
|
|
21
|
+
isBalance: boolean;
|
|
22
|
+
}
|
|
@@ -7,18 +7,19 @@ import { ISupervision } from './ISupervision';
|
|
|
7
7
|
export interface IComment {
|
|
8
8
|
id?: number;
|
|
9
9
|
comment: string;
|
|
10
|
-
|
|
10
|
+
idChannelType: number;
|
|
11
11
|
idCommentType: number;
|
|
12
|
-
idSociety
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
idSociety?: number | null;
|
|
13
|
+
idReport?: number | null;
|
|
14
|
+
idUser?: number | null;
|
|
15
|
+
isPing?: boolean;
|
|
15
16
|
createdAt?: Date | null;
|
|
16
17
|
updatedAt?: Date | null;
|
|
17
|
-
idSupervision
|
|
18
|
+
idSupervision?: number | null;
|
|
18
19
|
|
|
19
20
|
// Associations
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
user
|
|
23
|
-
supervision
|
|
21
|
+
commentType?: ICommentType;
|
|
22
|
+
channelType?: IChannelType;
|
|
23
|
+
user?: IUser;
|
|
24
|
+
supervision?: ISupervision;
|
|
24
25
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { IExercice } from './IExercice';
|
|
2
|
+
import { TaxState, TaxType } from '../..';
|
|
2
3
|
|
|
3
4
|
// customersIsRegimes
|
|
4
5
|
export interface ICustomerIsRegime {
|
|
5
6
|
id?: number;
|
|
6
7
|
amount: number;
|
|
7
|
-
stateAmount
|
|
8
|
-
state:
|
|
9
|
-
type:
|
|
8
|
+
stateAmount?: number; // Encore utilisé ?
|
|
9
|
+
state: TaxState;
|
|
10
|
+
type: TaxType;
|
|
10
11
|
balance: number | null;
|
|
11
12
|
creditRefunded: number;
|
|
12
13
|
solde: number;
|
|
@@ -17,5 +18,5 @@ export interface ICustomerIsRegime {
|
|
|
17
18
|
updatedAt?: Date | null;
|
|
18
19
|
|
|
19
20
|
// Associations
|
|
20
|
-
exercice
|
|
21
|
+
exercice?: IExercice;
|
|
21
22
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IPartneredAccountant } from './IPartneredAccountant';
|
|
2
|
+
import { IPartneredAccountantServiceIcon } from './IPartneredAccountantServiceIcon';
|
|
2
3
|
|
|
3
4
|
export interface IPartneredAccountantService {
|
|
4
5
|
id?: number;
|
|
@@ -6,6 +7,7 @@ export interface IPartneredAccountantService {
|
|
|
6
7
|
description?: string;
|
|
7
8
|
preTaxPrice: number;
|
|
8
9
|
idPartneredAccountant: number;
|
|
10
|
+
idIcon?: number;
|
|
9
11
|
|
|
10
12
|
createdAt?: Date;
|
|
11
13
|
updatedAt?: Date;
|
|
@@ -13,4 +15,5 @@ export interface IPartneredAccountantService {
|
|
|
13
15
|
|
|
14
16
|
// Associations
|
|
15
17
|
partneredAccountant?: IPartneredAccountant;
|
|
18
|
+
icon?: IPartneredAccountantServiceIcon;
|
|
16
19
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IReportMessage } from './IReportMessage';
|
|
2
1
|
import { IReportType } from './IReportType';
|
|
3
2
|
import { ISociety } from './ISociety';
|
|
4
3
|
|
|
@@ -18,7 +17,6 @@ export interface IReport {
|
|
|
18
17
|
updatedAt?: Date | null;
|
|
19
18
|
|
|
20
19
|
// Associations
|
|
21
|
-
reportComment?: IReportMessage[];
|
|
22
20
|
reportType?: IReportType;
|
|
23
21
|
society?: ISociety;
|
|
24
22
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -124,6 +124,7 @@ export * from './Interface/models/IPartneredAccountant';
|
|
|
124
124
|
export * from './Interface/models/IPartneredAccountantCompanyService';
|
|
125
125
|
export * from './Interface/models/IPartneredAccountantPicture';
|
|
126
126
|
export * from './Interface/models/IPartneredAccountantService';
|
|
127
|
+
export * from './Interface/models/IPartneredAccountantServiceIcon';
|
|
127
128
|
export * from './Interface/models/IPartneredAccountantTag';
|
|
128
129
|
export * from './Interface/models/IPartneredAccountantToTag';
|
|
129
130
|
export * from './Interface/models/IPayPlan';
|
|
@@ -160,7 +161,6 @@ export * from './Interface/models/IRegisterCategory';
|
|
|
160
161
|
export * from './Interface/models/IRegulate';
|
|
161
162
|
export * from './Interface/models/IRegulation';
|
|
162
163
|
export * from './Interface/models/IReport';
|
|
163
|
-
export * from './Interface/models/IReportMessage';
|
|
164
164
|
export * from './Interface/models/IRole';
|
|
165
165
|
export * from './Interface/models/IRoleUser';
|
|
166
166
|
export * from './Interface/models/IRoom';
|
|
@@ -298,6 +298,8 @@ export * from './Form/FormAuthenticate';
|
|
|
298
298
|
export * from './Form/FormConnector';
|
|
299
299
|
|
|
300
300
|
// Enums
|
|
301
|
+
export * from './Enum/Tax';
|
|
302
|
+
export * from './Enum/Log';
|
|
301
303
|
export * from './Enum/Quality';
|
|
302
304
|
export * from './Enum/Role';
|
|
303
305
|
export * from './Enum/Simulation';
|
|
@@ -432,10 +434,13 @@ export * from './Interface/api/account/ReadQuoteAccount';
|
|
|
432
434
|
export * from './Interface/api/survey/ReadSurvey';
|
|
433
435
|
export * from './Interface/api/survey/UpdateSurvey';
|
|
434
436
|
export * from './Interface/api/survey/CreateSurvey';
|
|
437
|
+
export * from './Interface/api/report/UpdateReport';
|
|
435
438
|
export * from './Interface/api/report/ReadReport';
|
|
439
|
+
export * from './Interface/api/report/ReadReportStats';
|
|
436
440
|
export * from './Interface/api/report/CreateReport';
|
|
437
441
|
export * from './Interface/api/report/DeleteReport';
|
|
438
442
|
export * from './Interface/api/report/QueryReports';
|
|
443
|
+
export * from './Interface/api/report/QueryReportsStats';
|
|
439
444
|
export * from './Interface/api/letter/CreateLetter';
|
|
440
445
|
export * from './Interface/api/mailInvoice/CreateInvoiceMail';
|
|
441
446
|
export * from './Interface/api/mailInvoice/UpdateInvoiceMail';
|
|
@@ -500,6 +505,8 @@ export * from './Interface/api/revisionGuide/CreateRevisionGuide';
|
|
|
500
505
|
export * from './Interface/api/library/QueryLibrary';
|
|
501
506
|
export * from './Interface/api/taxDeadline/QueryTaxDeadline';
|
|
502
507
|
export * from './Interface/api/taxDeadline/ReadTaxDeadline';
|
|
508
|
+
export * from './Interface/api/tax/ReadTax';
|
|
509
|
+
export * from './Interface/api/tax/CreateTax';
|
|
503
510
|
export * from './Interface/api/society/ReadSociety';
|
|
504
511
|
export * from './Interface/api/exerciceNote/QueryExerciceNote';
|
|
505
512
|
export * from './Interface/api/exerciceNote/CreateExerciceNote';
|
|
@@ -515,3 +522,4 @@ export * from './Interface/api/partneredAccountant/UpdatePartneredAccountantSold
|
|
|
515
522
|
export * from './Interface/api/partneredAccountant/ReadPartneredAccountantSoldServiceStatistics';
|
|
516
523
|
export * from './Interface/api/partneredAccountant/UpdatePartneredAccountantAccess';
|
|
517
524
|
export * from './Interface/api/partneredAccountant/InvitePartneredAccountant';
|
|
525
|
+
export * from './Interface/api/log/CreateLog';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IUser } from './IUser';
|
|
2
|
-
export interface IReportMessage {
|
|
3
|
-
id?: number;
|
|
4
|
-
idReport: number;
|
|
5
|
-
idUser: number;
|
|
6
|
-
message: string | null;
|
|
7
|
-
createdAt?: Date | null;
|
|
8
|
-
updatedAt?: Date | null;
|
|
9
|
-
reportUser?: IUser;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=IReportMessage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IReportMessage.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IReportMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,UAAU,CAAC,EAAE,KAAK,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IReportMessage.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IReportMessage.ts"],"names":[],"mappings":"","sourcesContent":["import { IUser } from './IUser';\n\n// reportMessage\nexport interface IReportMessage {\n id?: number;\n idReport: number;\n idUser: number;\n message: string | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n reportUser?: IUser;\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IUser } from './IUser';
|
|
2
|
-
|
|
3
|
-
// reportMessage
|
|
4
|
-
export interface IReportMessage {
|
|
5
|
-
id?: number;
|
|
6
|
-
idReport: number;
|
|
7
|
-
idUser: number;
|
|
8
|
-
message: string | null;
|
|
9
|
-
createdAt?: Date | null;
|
|
10
|
-
updatedAt?: Date | null;
|
|
11
|
-
|
|
12
|
-
// Associations
|
|
13
|
-
reportUser?: IUser;
|
|
14
|
-
}
|