@silexpert/core 2.0.47 → 2.0.48
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/api/resources/User.d.ts +1 -0
- package/dist/api/resources/User.d.ts.map +1 -1
- package/dist/api/resources/User.js +8 -0
- package/dist/api/resources/User.js.map +1 -1
- package/dist/api/resources.d.ts +0 -2
- package/dist/api/resources.d.ts.map +1 -1
- package/dist/api/resources.js +0 -2
- package/dist/api/resources.js.map +1 -1
- package/dist/types/Enum/AccountingTransactionTracking.d.ts +4 -0
- package/dist/types/Enum/AccountingTransactionTracking.d.ts.map +1 -0
- package/dist/types/Enum/AccountingTransactionTracking.js +5 -0
- package/dist/types/Enum/AccountingTransactionTracking.js.map +1 -0
- package/dist/types/Enum/DocumentForHumanResourceType.d.ts +2 -1
- package/dist/types/Enum/DocumentForHumanResourceType.d.ts.map +1 -1
- package/dist/types/Enum/DocumentForHumanResourceType.js +2 -0
- package/dist/types/Enum/DocumentForHumanResourceType.js.map +1 -1
- package/dist/types/Enum/EstimateInvoice.d.ts +0 -3
- package/dist/types/Enum/EstimateInvoice.d.ts.map +1 -1
- package/dist/types/Enum/EstimateInvoice.js +0 -4
- package/dist/types/Enum/EstimateInvoice.js.map +1 -1
- package/dist/types/Enum/Ged.d.ts +8 -1
- package/dist/types/Enum/Ged.d.ts.map +1 -1
- package/dist/types/Enum/Ged.js +7 -0
- package/dist/types/Enum/Ged.js.map +1 -1
- package/dist/types/Enum/MaritalStatus.d.ts +4 -4
- package/dist/types/Enum/MaritalStatus.d.ts.map +1 -1
- package/dist/types/Enum/MaritalStatus.js +6 -3
- package/dist/types/Enum/MaritalStatus.js.map +1 -1
- package/dist/types/Enum/PrestationType.js +148 -148
- package/dist/types/Enum/PrestationType.js.map +1 -1
- package/dist/types/Enum/Role.d.ts.map +1 -1
- package/dist/types/Enum/Role.js +1 -0
- package/dist/types/Enum/Role.js.map +1 -1
- package/dist/types/Interface/api/accountingTransaction/Create.d.ts +5 -0
- package/dist/types/Interface/api/accountingTransaction/Create.d.ts.map +1 -0
- package/dist/types/Interface/api/accountingTransaction/Create.js +21 -0
- package/dist/types/Interface/api/accountingTransaction/Create.js.map +1 -0
- package/dist/types/Interface/api/commercial/ReadStatsProspect.d.ts +1 -0
- package/dist/types/Interface/api/commercial/ReadStatsProspect.d.ts.map +1 -1
- package/dist/types/Interface/api/commercial/ReadStatsProspect.js.map +1 -1
- package/dist/types/Interface/api/commercialManagement/Create.d.ts +1 -4
- package/dist/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/types/Interface/api/commercialManagement/Create.js +1 -9
- package/dist/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/types/Interface/models/IAccountingTransaction.d.ts +1 -0
- package/dist/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/dist/types/Interface/models/IAccountingTransaction.js +1 -0
- package/dist/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/dist/types/Interface/models/IAccountingTransactionTracking.d.ts +15 -0
- package/dist/types/Interface/models/IAccountingTransactionTracking.d.ts.map +1 -0
- package/dist/types/Interface/models/IAccountingTransactionTracking.js +2 -0
- package/dist/types/Interface/models/IAccountingTransactionTracking.js.map +1 -0
- package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts +1 -0
- package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts.map +1 -1
- package/dist/types/Interface/models/IEInvoicingKycAndMandate.js +1 -0
- package/dist/types/Interface/models/IEInvoicingKycAndMandate.js.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -1
- package/dist/types/index.js.map +1 -1
- package/dist/utils/prestation.d.ts +9 -2
- package/dist/utils/prestation.d.ts.map +1 -1
- package/dist/utils/prestation.js +9 -2
- package/dist/utils/prestation.js.map +1 -1
- package/dist/utils/vat/3517/century25.js +1 -1
- package/dist/utils/vat/3517/century25.js.map +1 -1
- package/dist/utils/vat/3517/century26.js +1 -1
- package/dist/utils/vat/3517/century26.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/User.ts +9 -0
- package/ts/api/resources.ts +0 -2
- package/ts/types/Enum/AccountingTransactionTracking.ts +3 -0
- package/ts/types/Enum/DocumentForHumanResourceType.ts +2 -0
- package/ts/types/Enum/EstimateInvoice.ts +0 -4
- package/ts/types/Enum/Ged.ts +7 -0
- package/ts/types/Enum/MaritalStatus.ts +6 -3
- package/ts/types/Enum/PrestationType.ts +148 -148
- package/ts/types/Enum/Role.ts +1 -0
- package/ts/types/Interface/api/accountingTransaction/Create.ts +9 -0
- package/ts/types/Interface/api/commercial/ReadStatsProspect.ts +1 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +1 -7
- package/ts/types/Interface/models/IAccountingTransaction.ts +1 -0
- package/ts/types/Interface/models/{IEstimateInvoiceTracking.ts → IAccountingTransactionTracking.ts} +4 -4
- package/ts/types/Interface/models/IEInvoicingKycAndMandate.ts +1 -0
- package/ts/types/index.ts +3 -1
- package/ts/utils/prestation.ts +14 -2
- package/ts/utils/vat/3517/century25.ts +1 -1
- package/ts/utils/vat/3517/century26.ts +1 -1
- package/dist/api/resources/EstimateInvoiceTracking.d.ts +0 -6
- package/dist/api/resources/EstimateInvoiceTracking.d.ts.map +0 -1
- package/dist/api/resources/EstimateInvoiceTracking.js +0 -7
- package/dist/api/resources/EstimateInvoiceTracking.js.map +0 -1
- package/dist/types/Interface/models/IEstimateInvoiceTracking.d.ts +0 -15
- package/dist/types/Interface/models/IEstimateInvoiceTracking.d.ts.map +0 -1
- package/dist/types/Interface/models/IEstimateInvoiceTracking.js +0 -2
- package/dist/types/Interface/models/IEstimateInvoiceTracking.js.map +0 -1
- package/ts/api/resources/EstimateInvoiceTracking.ts +0 -8
package/ts/types/Enum/Role.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AccountingTransactionTrackingType } from '#types/index.js';
|
|
2
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
3
|
+
import { IsEnum } from 'class-validator';
|
|
4
|
+
|
|
5
|
+
export class ProcessTrackingPayload {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsEnum(AccountingTransactionTrackingType)
|
|
8
|
+
type: AccountingTransactionTrackingType;
|
|
9
|
+
}
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
InvoiceLanguage,
|
|
23
23
|
LogoAlignment,
|
|
24
24
|
} from '../../../Enum/CommercialManagement.js';
|
|
25
|
-
import {
|
|
25
|
+
import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice.js';
|
|
26
26
|
import { RecurrenceType } from '../../../Enum/RecurrenceType.js';
|
|
27
27
|
import { IProductInvoice } from '../../models/IProductInvoice.js';
|
|
28
28
|
import { ISocietyGescom } from '../../models/ISocietyGescom.js';
|
|
@@ -774,9 +774,3 @@ export class CreateScheduleReminder {
|
|
|
774
774
|
@IsInt()
|
|
775
775
|
day: number;
|
|
776
776
|
}
|
|
777
|
-
|
|
778
|
-
export class ProcessTrackingPayload {
|
|
779
|
-
@ApiProperty({ description: `Process only the tracking with the given type` })
|
|
780
|
-
@IsEnum(EstimateInvoiceTrackingType)
|
|
781
|
-
type: EstimateInvoiceTrackingType;
|
|
782
|
-
}
|
|
@@ -51,6 +51,7 @@ export class IAccountingTransaction {
|
|
|
51
51
|
idEstimateInvoice?: number | null;
|
|
52
52
|
idRegistration?: number | null;
|
|
53
53
|
idFile?: number | null;
|
|
54
|
+
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
|
|
54
55
|
createdAt?: Date | null;
|
|
55
56
|
updatedAt?: Date | null;
|
|
56
57
|
deletedAt?: Date | null;
|
package/ts/types/Interface/models/{IEstimateInvoiceTracking.ts → IAccountingTransactionTracking.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAccountingTransaction } from './IAccountingTransaction.js';
|
|
2
2
|
|
|
3
|
-
export interface
|
|
3
|
+
export interface IAccountingTransactionTracking {
|
|
4
4
|
id?: number;
|
|
5
5
|
method: string | null;
|
|
6
6
|
url: string | null;
|
|
@@ -8,9 +8,9 @@ export interface IEstimateInvoiceTracking {
|
|
|
8
8
|
status: number;
|
|
9
9
|
response: Record<string, unknown> | null;
|
|
10
10
|
type: string;
|
|
11
|
-
|
|
11
|
+
idAccountingTransaction: number;
|
|
12
12
|
createdAt?: Date;
|
|
13
13
|
updatedAt?: Date;
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
accountingTransaction?: IAccountingTransaction;
|
|
16
16
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -287,7 +287,7 @@ export * from './Interface/models/IRevenueSnapshot.js';
|
|
|
287
287
|
export * from './Interface/models/IEInvoicingEligibilityRequest.js';
|
|
288
288
|
export * from './Interface/models/IUsersHistory.js';
|
|
289
289
|
export * from './Interface/models/IEInvoicingKycAndMandate.js';
|
|
290
|
-
export * from './Interface/models/
|
|
290
|
+
export * from './Interface/models/IAccountingTransactionTracking.js';
|
|
291
291
|
|
|
292
292
|
// Schemas
|
|
293
293
|
export * from './Interface/schemas/IRegistrationDetail.js';
|
|
@@ -298,6 +298,7 @@ export * from './Form/FormAuthenticate.js';
|
|
|
298
298
|
export * from './Form/FormConnector.js';
|
|
299
299
|
|
|
300
300
|
// Enums
|
|
301
|
+
export * from './Enum/AccountingTransactionTracking.js';
|
|
301
302
|
export * from './Enum/Feature.js';
|
|
302
303
|
export * from './Enum/JuridicalSocietyEnum.js';
|
|
303
304
|
export * from './Enum/Template.js';
|
|
@@ -531,6 +532,7 @@ export * from './Enum/UrgencyLevel.js';
|
|
|
531
532
|
export * from './Enum/Formalism.js';
|
|
532
533
|
|
|
533
534
|
// Interfaces API
|
|
535
|
+
export * from './Interface/api/accountingTransaction/Create.js';
|
|
534
536
|
export * from './Interface/api/acd/Create.js';
|
|
535
537
|
export * from './Interface/api/authentification/AuthenticationResponse.js';
|
|
536
538
|
export * from './Interface/api/exercice/ReadExercice.js';
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -167,14 +167,25 @@ const getComptableNotCatalogPrestation = (
|
|
|
167
167
|
): Partial<IPrestationList> | undefined =>
|
|
168
168
|
prestationsList.find((prestation) => !!prestation.isComptable && !prestation.isCatalog);
|
|
169
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Retourne true si une prestation comptable (isPlannable) est trouvée dans la liste.
|
|
172
|
+
*
|
|
173
|
+
* @param prestationsList Liste de prestations de référence.
|
|
174
|
+
* @returns true si une prestation comptable est trouvée, sinon false.
|
|
175
|
+
*/
|
|
176
|
+
const hasAccountingPrestation = (prestationsList: Array<Partial<IPrestationList>>): boolean =>
|
|
177
|
+
!!prestationsList.find((prestation) => !!prestation.isPlannable && !!prestation.isComptable);
|
|
178
|
+
|
|
170
179
|
/**
|
|
171
180
|
* Retourne la première prestation comptable (isPlannable) trouvée dans la liste.
|
|
172
181
|
*
|
|
173
182
|
* @param prestationsList Liste de prestations de référence.
|
|
174
183
|
* @returns La prestation comptable, ou undefined si aucune n'est trouvée.
|
|
175
184
|
*/
|
|
176
|
-
const getAccountingPrestation = (
|
|
177
|
-
|
|
185
|
+
const getAccountingPrestation = (
|
|
186
|
+
prestationsList: Array<Partial<IPrestationList>>,
|
|
187
|
+
): Partial<IPrestationList> | undefined =>
|
|
188
|
+
prestationsList.find((prestation) => !!prestation.isPlannable && !!prestation.isComptable);
|
|
178
189
|
|
|
179
190
|
const calculateScoringOfPrestation = (
|
|
180
191
|
idPrestationType: PrestationType,
|
|
@@ -659,6 +670,7 @@ export {
|
|
|
659
670
|
isConsultingHour,
|
|
660
671
|
isSoftwarePrestation,
|
|
661
672
|
getComptableNotCatalogPrestation,
|
|
673
|
+
hasAccountingPrestation,
|
|
662
674
|
getAccountingPrestation,
|
|
663
675
|
calculateScoringOfPrestation,
|
|
664
676
|
calculatePrestationPrice,
|
|
@@ -1080,7 +1080,7 @@ export function getCerfa3517Century25RegistrationField(data: Cerfa3517_2025): As
|
|
|
1080
1080
|
tag: 'Valeur',
|
|
1081
1081
|
description:
|
|
1082
1082
|
"Pourcentage de déduction applicable pour la période s'il est différent de 100% Valeur entière et au plus 2 décimales 100094 25A",
|
|
1083
|
-
value: data.deductible.rate !== 100 ? data.deductible.rate :
|
|
1083
|
+
value: data.isNil ? null : data.deductible.rate !== 100 ? data.deductible.rate : null,
|
|
1084
1084
|
},
|
|
1085
1085
|
{
|
|
1086
1086
|
key: 'JE',
|
|
@@ -1048,7 +1048,7 @@ export function getCerfa3517Century26RegistrationField(data: Cerfa3517_2026): As
|
|
|
1048
1048
|
tag: 'Valeur',
|
|
1049
1049
|
description:
|
|
1050
1050
|
"Pourcentage de déduction applicable pour la période s'il est différent de 100% Valeur entière et au plus 2 décimales 100094 25A",
|
|
1051
|
-
value: data.deductible.rate !== 100 ? data.deductible.rate :
|
|
1051
|
+
value: data.isNil ? null : data.deductible.rate !== 100 ? data.deductible.rate : null,
|
|
1052
1052
|
},
|
|
1053
1053
|
{
|
|
1054
1054
|
key: 'JE',
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ProcessTrackingPayload } from '#types/index.js';
|
|
2
|
-
import { Resource } from '../Resource.js';
|
|
3
|
-
export declare class EstimateInvoiceTracking extends Resource {
|
|
4
|
-
process(idEstimateInvoice: number, payload?: ProcessTrackingPayload): Promise<true>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=EstimateInvoiceTracking.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EstimateInvoiceTracking.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/EstimateInvoiceTracking.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,qBAAa,uBAAwB,SAAQ,QAAQ;IAC5C,OAAO,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3F"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource.js';
|
|
2
|
-
export class EstimateInvoiceTracking extends Resource {
|
|
3
|
-
process(idEstimateInvoice, payload) {
|
|
4
|
-
return this.axios.$post(`/commercial-management/tracking/process/${idEstimateInvoice}`, payload);
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=EstimateInvoiceTracking.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EstimateInvoiceTracking.js","sourceRoot":"","sources":["../../../ts/api/resources/EstimateInvoiceTracking.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,OAAO,uBAAwB,SAAQ,QAAQ;IAC5C,OAAO,CAAC,iBAAyB,EAAE,OAAgC;QACxE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2CAA2C,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;CACF","sourcesContent":["import { ProcessTrackingPayload } from '#types/index.js';\nimport { Resource } from '../Resource.js';\n\nexport class EstimateInvoiceTracking extends Resource {\n public process(idEstimateInvoice: number, payload?: ProcessTrackingPayload): Promise<true> {\n return this.axios.$post(`/commercial-management/tracking/process/${idEstimateInvoice}`, payload);\n }\n}\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IEstimateInvoice } from './IEstimateInvoice.js';
|
|
2
|
-
export interface IEstimateInvoiceTracking {
|
|
3
|
-
id?: number;
|
|
4
|
-
method: string | null;
|
|
5
|
-
url: string | null;
|
|
6
|
-
payload: Record<string, unknown> | null;
|
|
7
|
-
status: number;
|
|
8
|
-
response: Record<string, unknown> | null;
|
|
9
|
-
type: string;
|
|
10
|
-
idEstimateInvoice: number;
|
|
11
|
-
createdAt?: Date;
|
|
12
|
-
updatedAt?: Date;
|
|
13
|
-
estimateInvoice?: IEstimateInvoice;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=IEstimateInvoiceTracking.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IEstimateInvoiceTracking.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEstimateInvoiceTracking.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,WAAW,wBAAwB;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB,eAAe,CAAC,EAAE,gBAAgB,CAAC;CACpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IEstimateInvoiceTracking.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEstimateInvoiceTracking.ts"],"names":[],"mappings":"","sourcesContent":["import { IEstimateInvoice } from './IEstimateInvoice.js';\n\nexport interface IEstimateInvoiceTracking {\n id?: number;\n method: string | null;\n url: string | null;\n payload: Record<string, unknown> | null;\n status: number;\n response: Record<string, unknown> | null;\n type: string;\n idEstimateInvoice: number;\n createdAt?: Date;\n updatedAt?: Date;\n\n estimateInvoice?: IEstimateInvoice;\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ProcessTrackingPayload } from '#types/index.js';
|
|
2
|
-
import { Resource } from '../Resource.js';
|
|
3
|
-
|
|
4
|
-
export class EstimateInvoiceTracking extends Resource {
|
|
5
|
-
public process(idEstimateInvoice: number, payload?: ProcessTrackingPayload): Promise<true> {
|
|
6
|
-
return this.axios.$post(`/commercial-management/tracking/process/${idEstimateInvoice}`, payload);
|
|
7
|
-
}
|
|
8
|
-
}
|