@silexpert/core 2.0.56 → 2.0.57
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/dist/types/Enum/Annotation.d.ts +4 -0
- package/dist/types/Enum/Annotation.d.ts.map +1 -1
- package/dist/types/Enum/Annotation.js +2 -0
- package/dist/types/Enum/Annotation.js.map +1 -1
- package/dist/types/Enum/BalanceSheet.d.ts +1 -1
- package/dist/types/Enum/BalanceSheet.js +1 -1
- package/dist/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/types/Enum/CustomerSignature.d.ts +2 -1
- package/dist/types/Enum/CustomerSignature.d.ts.map +1 -1
- package/dist/types/Enum/CustomerSignature.js +1 -0
- package/dist/types/Enum/CustomerSignature.js.map +1 -1
- package/dist/types/Enum/EInvoicingDirection.d.ts +5 -0
- package/dist/types/Enum/EInvoicingDirection.d.ts.map +1 -0
- package/dist/types/Enum/EInvoicingDirection.js +6 -0
- package/dist/types/Enum/EInvoicingDirection.js.map +1 -0
- package/dist/types/Enum/EInvoicingStatusCode.d.ts +15 -0
- package/dist/types/Enum/EInvoicingStatusCode.d.ts.map +1 -0
- package/dist/types/Enum/EInvoicingStatusCode.js +19 -0
- package/dist/types/Enum/EInvoicingStatusCode.js.map +1 -0
- package/dist/types/Enum/SalesContractBrandClementine.js +1 -1
- package/dist/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +1 -0
- package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
- package/dist/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
- package/dist/types/Interface/api/commercialManagement/Read.d.ts +87 -0
- package/dist/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/dist/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts +183 -0
- package/dist/types/Interface/api/docoon/DocoonInvoice.d.ts.map +1 -0
- package/dist/types/Interface/api/docoon/DocoonInvoice.js +2 -0
- package/dist/types/Interface/api/docoon/DocoonInvoice.js.map +1 -0
- package/dist/types/Interface/api/docoon/Query.js +1 -1
- package/dist/types/Interface/api/docoon/Query.js.map +1 -1
- package/dist/types/Interface/api/society/QueryUnpaid.d.ts +4 -0
- package/dist/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -1
- package/dist/types/Interface/api/society/QueryUnpaid.js +27 -0
- package/dist/types/Interface/api/society/QueryUnpaid.js.map +1 -1
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +2 -0
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -1
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.js +10 -0
- package/dist/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -1
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +2 -0
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -1
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +12 -0
- package/dist/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -1
- package/dist/types/Interface/models/IAccountingFile.d.ts +6 -0
- package/dist/types/Interface/models/IAccountingFile.d.ts.map +1 -1
- package/dist/types/Interface/models/IAccountingFile.js +5 -0
- package/dist/types/Interface/models/IAccountingFile.js.map +1 -1
- package/dist/types/Interface/models/IAccountingTransaction.d.ts +3 -0
- package/dist/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/dist/types/Interface/models/IAccountingTransaction.js +2 -0
- package/dist/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/dist/types/Interface/models/IEInvoicing.d.ts +12 -0
- package/dist/types/Interface/models/IEInvoicing.d.ts.map +1 -0
- package/dist/types/Interface/models/IEInvoicing.js +10 -0
- package/dist/types/Interface/models/IEInvoicing.js.map +1 -0
- package/dist/types/Interface/models/IEInvoicingStatus.d.ts +15 -0
- package/dist/types/Interface/models/IEInvoicingStatus.d.ts.map +1 -0
- package/dist/types/Interface/models/IEInvoicingStatus.js +12 -0
- package/dist/types/Interface/models/IEInvoicingStatus.js.map +1 -0
- package/dist/types/Interface/models/IPayment.d.ts +3 -0
- package/dist/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/types/Interface/models/IPayment.js +2 -0
- package/dist/types/Interface/models/IPayment.js.map +1 -1
- package/dist/types/Interface/models/ISocietyDetail.d.ts +1 -0
- package/dist/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/dist/types/Interface/models/ISocietyDetail.js +1 -0
- package/dist/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/dist/types/Interface/models/IThirdParty.d.ts +2 -0
- package/dist/types/Interface/models/IThirdParty.d.ts.map +1 -1
- package/dist/types/Interface/models/IThirdParty.js +2 -0
- package/dist/types/Interface/models/IThirdParty.js.map +1 -1
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +9 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/prestation.d.ts.map +1 -1
- package/dist/utils/prestation.js +7 -3
- package/dist/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/Annotation.ts +3 -0
- package/ts/types/Enum/BalanceSheet.ts +1 -1
- package/ts/types/Enum/CustomerSignature.ts +2 -1
- package/ts/types/Enum/EInvoicingDirection.ts +4 -0
- package/ts/types/Enum/EInvoicingStatusCode.ts +17 -0
- package/ts/types/Enum/SalesContractBrandClementine.ts +1 -1
- package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +1 -0
- package/ts/types/Interface/api/commercialManagement/Read.ts +85 -0
- package/ts/types/Interface/api/docoon/DocoonInvoice.ts +188 -0
- package/ts/types/Interface/api/docoon/Query.ts +1 -1
- package/ts/types/Interface/api/society/QueryUnpaid.ts +19 -0
- package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +6 -0
- package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +8 -0
- package/ts/types/Interface/models/IAccountingFile.ts +6 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +3 -0
- package/ts/types/Interface/models/IEInvoicing.ts +15 -0
- package/ts/types/Interface/models/IEInvoicingStatus.ts +16 -0
- package/ts/types/Interface/models/IPayment.ts +3 -0
- package/ts/types/Interface/models/ISocietyDetail.ts +1 -0
- package/ts/types/Interface/models/IThirdParty.ts +2 -0
- package/ts/types/index.ts +9 -0
- package/ts/utils/prestation.ts +9 -3
|
@@ -47,6 +47,25 @@ export class QueryUnpaidSociety {
|
|
|
47
47
|
@IsInt({ each: true })
|
|
48
48
|
listIdPrestationList?: number[];
|
|
49
49
|
|
|
50
|
+
@ApiPropertyOptional()
|
|
51
|
+
@IsOptional()
|
|
52
|
+
@IsInt()
|
|
53
|
+
month?: number;
|
|
54
|
+
|
|
55
|
+
@ApiPropertyOptional()
|
|
56
|
+
@IsOptional()
|
|
57
|
+
@IsInt()
|
|
58
|
+
year?: number;
|
|
59
|
+
|
|
60
|
+
@ApiPropertyOptional()
|
|
61
|
+
@IsOptional()
|
|
62
|
+
@IsInt()
|
|
63
|
+
idPaymentMethod?: number;
|
|
64
|
+
|
|
65
|
+
@ApiPropertyOptional()
|
|
66
|
+
@IsOptional()
|
|
67
|
+
order?: [string, 'ASC' | 'DESC'];
|
|
68
|
+
|
|
50
69
|
@ApiPropertyOptional({ default: 25 })
|
|
51
70
|
@IsOptional()
|
|
52
71
|
@IsInt()
|
|
@@ -33,6 +33,12 @@ export class CreateThirdPartyForm {
|
|
|
33
33
|
@ApiPropertyOptional()
|
|
34
34
|
nSiret?: string | null;
|
|
35
35
|
|
|
36
|
+
@ApiPropertyOptional()
|
|
37
|
+
isPrivateIndividual?: boolean | null;
|
|
38
|
+
|
|
39
|
+
@ApiPropertyOptional()
|
|
40
|
+
addressingIdentifier?: string | null;
|
|
41
|
+
|
|
36
42
|
@ApiPropertyOptional()
|
|
37
43
|
nTva?: string | null;
|
|
38
44
|
|
|
@@ -43,6 +43,14 @@ export class UpdateThirdPartyForm {
|
|
|
43
43
|
@IsOptional()
|
|
44
44
|
nSiret?: string | null;
|
|
45
45
|
|
|
46
|
+
@ApiPropertyOptional()
|
|
47
|
+
@IsOptional()
|
|
48
|
+
isPrivateIndividual?: boolean | null;
|
|
49
|
+
|
|
50
|
+
@ApiPropertyOptional()
|
|
51
|
+
@IsOptional()
|
|
52
|
+
addressingIdentifier?: string | null;
|
|
53
|
+
|
|
46
54
|
@ApiPropertyOptional()
|
|
47
55
|
@IsOptional()
|
|
48
56
|
nTva?: string | null;
|
|
@@ -4,6 +4,7 @@ import { IFileType } from './IFileType.js';
|
|
|
4
4
|
import { IFile } from './IFile.js';
|
|
5
5
|
import { ISociety } from './ISociety.js';
|
|
6
6
|
import { IAccountingFileType } from './IAccountingFileType.js';
|
|
7
|
+
import { IEInvoicing } from './IEInvoicing.js';
|
|
7
8
|
|
|
8
9
|
// accountingFile
|
|
9
10
|
export class IAccountingFile {
|
|
@@ -13,16 +14,20 @@ export class IAccountingFile {
|
|
|
13
14
|
budgeaDocumentId?: number | null;
|
|
14
15
|
bankFileId?: string | null;
|
|
15
16
|
emissionDate?: Date | null;
|
|
17
|
+
totalTaxIncluded?: number | null;
|
|
18
|
+
totalTaxExcluded?: number | null;
|
|
16
19
|
isMobile: boolean;
|
|
17
20
|
idAccountingTransaction?: number | null;
|
|
18
21
|
idEstimateInvoice?: number | null;
|
|
19
22
|
idAccountingFileType: number;
|
|
20
23
|
idSociety: number;
|
|
21
24
|
idFile: number;
|
|
25
|
+
idEInvoicing?: number | null;
|
|
22
26
|
createdAt?: Date | null;
|
|
23
27
|
updatedAt?: Date | null;
|
|
24
28
|
deletedAt?: Date | null;
|
|
25
29
|
idFileType?: number | null;
|
|
30
|
+
isVerified?: boolean;
|
|
26
31
|
|
|
27
32
|
// Associations
|
|
28
33
|
accountingTransaction?: IAccountingTransaction;
|
|
@@ -31,4 +36,5 @@ export class IAccountingFile {
|
|
|
31
36
|
fileType?: IFileType;
|
|
32
37
|
file?: IFile;
|
|
33
38
|
society?: ISociety;
|
|
39
|
+
eInvoicing?: IEInvoicing | null;
|
|
34
40
|
}
|
|
@@ -14,6 +14,7 @@ import { IMachineLearningResult } from './IMachineLearningResult.js';
|
|
|
14
14
|
import { ISocietyPartner } from './ISocietyPartner.js';
|
|
15
15
|
import { ISocietyVehicle } from './ISocietyVehicle.js';
|
|
16
16
|
import { IAccountingTransactionTracking } from './IAccountingTransactionTracking.js';
|
|
17
|
+
import { IEInvoicing } from './IEInvoicing.js';
|
|
17
18
|
|
|
18
19
|
// accountingTransactions
|
|
19
20
|
export class IAccountingTransaction {
|
|
@@ -53,6 +54,7 @@ export class IAccountingTransaction {
|
|
|
53
54
|
idRegistration?: number | null;
|
|
54
55
|
idFile?: number | null;
|
|
55
56
|
classificationId?: string | null; // Id returned by the team system for the predictions of an accounting transaction, can be null if the transaction has not been classified by the team system
|
|
57
|
+
idEInvoicing?: number | null;
|
|
56
58
|
createdAt?: Date | null;
|
|
57
59
|
updatedAt?: Date | null;
|
|
58
60
|
deletedAt?: Date | null;
|
|
@@ -76,4 +78,5 @@ export class IAccountingTransaction {
|
|
|
76
78
|
societyPartner?: ISocietyPartner;
|
|
77
79
|
vehicle?: ISocietyVehicle | null;
|
|
78
80
|
trackings?: IAccountingTransactionTracking[];
|
|
81
|
+
eInvoicing?: IEInvoicing | null;
|
|
79
82
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IFile } from './IFile.js';
|
|
2
|
+
import { EInvoicingDirection } from '../../Enum/EInvoicingDirection.js';
|
|
3
|
+
|
|
4
|
+
export class IEInvoicing {
|
|
5
|
+
id?: number;
|
|
6
|
+
|
|
7
|
+
direction: EInvoicingDirection;
|
|
8
|
+
externalId: string;
|
|
9
|
+
idXmlFile: number;
|
|
10
|
+
|
|
11
|
+
createdAt?: Date | null;
|
|
12
|
+
updatedAt?: Date | null;
|
|
13
|
+
|
|
14
|
+
xmlFile?: IFile;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IUser } from './IUser.js';
|
|
2
|
+
import { EInvoicingStatusCode } from '../../Enum/EInvoicingStatusCode.js';
|
|
3
|
+
import { IEInvoicing } from './IEInvoicing.js';
|
|
4
|
+
|
|
5
|
+
export class IEInvoicingStatus {
|
|
6
|
+
id?: number;
|
|
7
|
+
status: EInvoicingStatusCode;
|
|
8
|
+
message: string | null;
|
|
9
|
+
idUser: number;
|
|
10
|
+
idEInvoicing: number;
|
|
11
|
+
createdAt?: Date | null;
|
|
12
|
+
updatedAt?: Date | null;
|
|
13
|
+
|
|
14
|
+
user?: IUser;
|
|
15
|
+
eInvoicing?: IEInvoicing;
|
|
16
|
+
}
|
|
@@ -3,6 +3,7 @@ import { IPaymentMethod } from './IPaymentMethod.js';
|
|
|
3
3
|
import { IUser } from './IUser.js';
|
|
4
4
|
import { IExercice } from './IExercice.js';
|
|
5
5
|
import { IFile } from './IFile.js';
|
|
6
|
+
import { IEInvoicing } from './IEInvoicing.js';
|
|
6
7
|
import { IPaymentExpectation } from './IPaymentExpectation.js';
|
|
7
8
|
import { IPaymentAttempt } from './IPaymentAttempt.js';
|
|
8
9
|
|
|
@@ -37,6 +38,7 @@ export class IPayment {
|
|
|
37
38
|
idUser?: number | null;
|
|
38
39
|
idPaymentMethod: number;
|
|
39
40
|
idFile?: number | null;
|
|
41
|
+
idEInvoicing?: number | null;
|
|
40
42
|
createdAt?: Date | null;
|
|
41
43
|
updatedAt?: Date | null;
|
|
42
44
|
deletedAt?: Date | null;
|
|
@@ -48,5 +50,6 @@ export class IPayment {
|
|
|
48
50
|
user?: IUser;
|
|
49
51
|
exercice?: IExercice;
|
|
50
52
|
files?: IFile;
|
|
53
|
+
eInvoicing?: IEInvoicing;
|
|
51
54
|
paymentAttempts?: IPaymentAttempt[];
|
|
52
55
|
}
|
|
@@ -18,6 +18,8 @@ export class IThirdParty {
|
|
|
18
18
|
phone?: string | null;
|
|
19
19
|
email?: string | null;
|
|
20
20
|
nSiret?: string | null;
|
|
21
|
+
isPrivateIndividual?: boolean | null;
|
|
22
|
+
addressingIdentifier?: string | null;
|
|
21
23
|
legalForm?: number | null;
|
|
22
24
|
termOfPayment?: TermOfPayment | null;
|
|
23
25
|
nTva?: string | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -288,6 +288,8 @@ export * from './Interface/models/IEInvoicingEligibilityRequest.js';
|
|
|
288
288
|
export * from './Interface/models/IUsersHistory.js';
|
|
289
289
|
export * from './Interface/models/IEInvoicingKycAndMandate.js';
|
|
290
290
|
export * from './Interface/models/IAccountingTransactionTracking.js';
|
|
291
|
+
export * from './Interface/models/IEInvoicing.js';
|
|
292
|
+
export * from './Interface/models/IEInvoicingStatus.js';
|
|
291
293
|
|
|
292
294
|
// Schemas
|
|
293
295
|
export * from './Interface/schemas/IRegistrationDetail.js';
|
|
@@ -299,6 +301,8 @@ export * from './Form/FormConnector.js';
|
|
|
299
301
|
|
|
300
302
|
// Enums
|
|
301
303
|
export * from './Enum/AccountingTransactionTracking.js';
|
|
304
|
+
export * from './Enum/EInvoicingDirection.js';
|
|
305
|
+
export * from './Enum/EInvoicingStatusCode.js';
|
|
302
306
|
export * from './Enum/Feature.js';
|
|
303
307
|
export * from './Enum/JuridicalSocietyEnum.js';
|
|
304
308
|
export * from './Enum/Template.js';
|
|
@@ -1127,10 +1131,15 @@ export * from './Interface/api/automaticRegistration/Query.js';
|
|
|
1127
1131
|
export * from './Interface/api/automaticRegistration/Read.js';
|
|
1128
1132
|
export * from './Interface/api/mail/EmailStatus.js';
|
|
1129
1133
|
export * from './Interface/api/mailSociety/QueryMailSociety.js';
|
|
1134
|
+
export * from './Interface/api/docoon/DocoonInvoice.js';
|
|
1135
|
+
export * from './Interface/api/docoon/Query.js';
|
|
1136
|
+
export * from './Interface/api/docoon/Read.js';
|
|
1130
1137
|
|
|
1131
1138
|
// Enums types
|
|
1132
1139
|
export * from './Interface/enum/Util.js';
|
|
1133
1140
|
export * from './Interface/enum/Date.js';
|
|
1141
|
+
export * from './Interface/enum/Date.js';
|
|
1142
|
+
export * from './Interface/enum/Date.js';
|
|
1134
1143
|
export * from './Interface/api/connector/Sirene.js';
|
|
1135
1144
|
export * from '../utils/cerfa.js';
|
|
1136
1145
|
export * from '../utils/phone.js';
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -152,8 +152,12 @@ const isConsultingHour = (idPrestationList: number[]): boolean =>
|
|
|
152
152
|
!!intersection(idPrestationList, [PrestationType.CONSULTING_HOUR]).length;
|
|
153
153
|
|
|
154
154
|
const isSoftwarePrestation = (idPrestationList: number[]): boolean =>
|
|
155
|
-
!!intersection(idPrestationList, [
|
|
156
|
-
.
|
|
155
|
+
!!intersection(idPrestationList, [
|
|
156
|
+
PrestationType.STEERING,
|
|
157
|
+
PrestationType.VAT,
|
|
158
|
+
PrestationType.BALANCESHEET,
|
|
159
|
+
PrestationType.BILLING,
|
|
160
|
+
]).length; /* &&
|
|
157
161
|
idPrestationList.length === 1 */ // Commenté car si un client résilie un software pour un utre software, condition non prise en charge
|
|
158
162
|
|
|
159
163
|
/**
|
|
@@ -225,7 +229,9 @@ const calculateScoringOfPrestation = (
|
|
|
225
229
|
p.isComptable &&
|
|
226
230
|
!p.isCatalog &&
|
|
227
231
|
p.id &&
|
|
228
|
-
![PrestationType.BALANCESHEET, PrestationType.VAT, PrestationType.STEERING].includes(
|
|
232
|
+
![PrestationType.BALANCESHEET, PrestationType.VAT, PrestationType.STEERING, PrestationType.BILLING].includes(
|
|
233
|
+
p.id,
|
|
234
|
+
),
|
|
229
235
|
);
|
|
230
236
|
const prestationHalfPriceIds = prestationHalfPriceList.map((t) => t.id);
|
|
231
237
|
|