@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.
Files changed (97) hide show
  1. package/dist/api/resources/User.d.ts +1 -0
  2. package/dist/api/resources/User.d.ts.map +1 -1
  3. package/dist/api/resources/User.js +8 -0
  4. package/dist/api/resources/User.js.map +1 -1
  5. package/dist/api/resources.d.ts +0 -2
  6. package/dist/api/resources.d.ts.map +1 -1
  7. package/dist/api/resources.js +0 -2
  8. package/dist/api/resources.js.map +1 -1
  9. package/dist/types/Enum/AccountingTransactionTracking.d.ts +4 -0
  10. package/dist/types/Enum/AccountingTransactionTracking.d.ts.map +1 -0
  11. package/dist/types/Enum/AccountingTransactionTracking.js +5 -0
  12. package/dist/types/Enum/AccountingTransactionTracking.js.map +1 -0
  13. package/dist/types/Enum/DocumentForHumanResourceType.d.ts +2 -1
  14. package/dist/types/Enum/DocumentForHumanResourceType.d.ts.map +1 -1
  15. package/dist/types/Enum/DocumentForHumanResourceType.js +2 -0
  16. package/dist/types/Enum/DocumentForHumanResourceType.js.map +1 -1
  17. package/dist/types/Enum/EstimateInvoice.d.ts +0 -3
  18. package/dist/types/Enum/EstimateInvoice.d.ts.map +1 -1
  19. package/dist/types/Enum/EstimateInvoice.js +0 -4
  20. package/dist/types/Enum/EstimateInvoice.js.map +1 -1
  21. package/dist/types/Enum/Ged.d.ts +8 -1
  22. package/dist/types/Enum/Ged.d.ts.map +1 -1
  23. package/dist/types/Enum/Ged.js +7 -0
  24. package/dist/types/Enum/Ged.js.map +1 -1
  25. package/dist/types/Enum/MaritalStatus.d.ts +4 -4
  26. package/dist/types/Enum/MaritalStatus.d.ts.map +1 -1
  27. package/dist/types/Enum/MaritalStatus.js +6 -3
  28. package/dist/types/Enum/MaritalStatus.js.map +1 -1
  29. package/dist/types/Enum/PrestationType.js +148 -148
  30. package/dist/types/Enum/PrestationType.js.map +1 -1
  31. package/dist/types/Enum/Role.d.ts.map +1 -1
  32. package/dist/types/Enum/Role.js +1 -0
  33. package/dist/types/Enum/Role.js.map +1 -1
  34. package/dist/types/Interface/api/accountingTransaction/Create.d.ts +5 -0
  35. package/dist/types/Interface/api/accountingTransaction/Create.d.ts.map +1 -0
  36. package/dist/types/Interface/api/accountingTransaction/Create.js +21 -0
  37. package/dist/types/Interface/api/accountingTransaction/Create.js.map +1 -0
  38. package/dist/types/Interface/api/commercial/ReadStatsProspect.d.ts +1 -0
  39. package/dist/types/Interface/api/commercial/ReadStatsProspect.d.ts.map +1 -1
  40. package/dist/types/Interface/api/commercial/ReadStatsProspect.js.map +1 -1
  41. package/dist/types/Interface/api/commercialManagement/Create.d.ts +1 -4
  42. package/dist/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  43. package/dist/types/Interface/api/commercialManagement/Create.js +1 -9
  44. package/dist/types/Interface/api/commercialManagement/Create.js.map +1 -1
  45. package/dist/types/Interface/models/IAccountingTransaction.d.ts +1 -0
  46. package/dist/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  47. package/dist/types/Interface/models/IAccountingTransaction.js +1 -0
  48. package/dist/types/Interface/models/IAccountingTransaction.js.map +1 -1
  49. package/dist/types/Interface/models/IAccountingTransactionTracking.d.ts +15 -0
  50. package/dist/types/Interface/models/IAccountingTransactionTracking.d.ts.map +1 -0
  51. package/dist/types/Interface/models/IAccountingTransactionTracking.js +2 -0
  52. package/dist/types/Interface/models/IAccountingTransactionTracking.js.map +1 -0
  53. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts +1 -0
  54. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts.map +1 -1
  55. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js +1 -0
  56. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js.map +1 -1
  57. package/dist/types/index.d.ts +3 -1
  58. package/dist/types/index.d.ts.map +1 -1
  59. package/dist/types/index.js +3 -1
  60. package/dist/types/index.js.map +1 -1
  61. package/dist/utils/prestation.d.ts +9 -2
  62. package/dist/utils/prestation.d.ts.map +1 -1
  63. package/dist/utils/prestation.js +9 -2
  64. package/dist/utils/prestation.js.map +1 -1
  65. package/dist/utils/vat/3517/century25.js +1 -1
  66. package/dist/utils/vat/3517/century25.js.map +1 -1
  67. package/dist/utils/vat/3517/century26.js +1 -1
  68. package/dist/utils/vat/3517/century26.js.map +1 -1
  69. package/package.json +1 -1
  70. package/ts/api/resources/User.ts +9 -0
  71. package/ts/api/resources.ts +0 -2
  72. package/ts/types/Enum/AccountingTransactionTracking.ts +3 -0
  73. package/ts/types/Enum/DocumentForHumanResourceType.ts +2 -0
  74. package/ts/types/Enum/EstimateInvoice.ts +0 -4
  75. package/ts/types/Enum/Ged.ts +7 -0
  76. package/ts/types/Enum/MaritalStatus.ts +6 -3
  77. package/ts/types/Enum/PrestationType.ts +148 -148
  78. package/ts/types/Enum/Role.ts +1 -0
  79. package/ts/types/Interface/api/accountingTransaction/Create.ts +9 -0
  80. package/ts/types/Interface/api/commercial/ReadStatsProspect.ts +1 -0
  81. package/ts/types/Interface/api/commercialManagement/Create.ts +1 -7
  82. package/ts/types/Interface/models/IAccountingTransaction.ts +1 -0
  83. package/ts/types/Interface/models/{IEstimateInvoiceTracking.ts → IAccountingTransactionTracking.ts} +4 -4
  84. package/ts/types/Interface/models/IEInvoicingKycAndMandate.ts +1 -0
  85. package/ts/types/index.ts +3 -1
  86. package/ts/utils/prestation.ts +14 -2
  87. package/ts/utils/vat/3517/century25.ts +1 -1
  88. package/ts/utils/vat/3517/century26.ts +1 -1
  89. package/dist/api/resources/EstimateInvoiceTracking.d.ts +0 -6
  90. package/dist/api/resources/EstimateInvoiceTracking.d.ts.map +0 -1
  91. package/dist/api/resources/EstimateInvoiceTracking.js +0 -7
  92. package/dist/api/resources/EstimateInvoiceTracking.js.map +0 -1
  93. package/dist/types/Interface/models/IEstimateInvoiceTracking.d.ts +0 -15
  94. package/dist/types/Interface/models/IEstimateInvoiceTracking.d.ts.map +0 -1
  95. package/dist/types/Interface/models/IEstimateInvoiceTracking.js +0 -2
  96. package/dist/types/Interface/models/IEstimateInvoiceTracking.js.map +0 -1
  97. package/ts/api/resources/EstimateInvoiceTracking.ts +0 -8
@@ -67,6 +67,7 @@ export const RoleAllowedToLogInAsClient = [
67
67
  Role.JURIDIC,
68
68
  Role.DEVELOPER,
69
69
  Role.PARTNERED_ACCOUNTANT,
70
+ Role.SDR,
70
71
  Role.CONTROL_INTERN,
71
72
  Role.ON_BOARDER,
72
73
  Role.SATISFACTION,
@@ -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
+ }
@@ -11,6 +11,7 @@ export class ReadStatsProspect {
11
11
  export interface StatsProspectResponse {
12
12
  totalItems: number;
13
13
  totalSocieties: number;
14
+ totalItemsPassive: number;
14
15
  nbFait: number;
15
16
  nbDevis: number;
16
17
  souscrisMoisEnCours: number;
@@ -22,7 +22,7 @@ import {
22
22
  InvoiceLanguage,
23
23
  LogoAlignment,
24
24
  } from '../../../Enum/CommercialManagement.js';
25
- import { EstimateInvoiceTrackingType, EstimateInvoiceType } from '../../../Enum/EstimateInvoice.js';
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;
@@ -1,6 +1,6 @@
1
- import { IEstimateInvoice } from './IEstimateInvoice.js';
1
+ import { IAccountingTransaction } from './IAccountingTransaction.js';
2
2
 
3
- export interface IEstimateInvoiceTracking {
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
- idEstimateInvoice: number;
11
+ idAccountingTransaction: number;
12
12
  createdAt?: Date;
13
13
  updatedAt?: Date;
14
14
 
15
- estimateInvoice?: IEstimateInvoice;
15
+ accountingTransaction?: IAccountingTransaction;
16
16
  }
@@ -6,6 +6,7 @@ export class IEInvoicingKycAndMandate {
6
6
  onboardingFolderId: string;
7
7
  publicFolderUrl: string;
8
8
  eInvoiceAddress: string;
9
+ effectiveDate: string;
9
10
  isReceptionAddress: boolean;
10
11
  mandateRef: string;
11
12
  mandateStatus?: string | null; // COMPLETED | REJECTED
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/IEstimateInvoiceTracking.js';
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';
@@ -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 = (prestationsList: Array<Partial<IPrestationList>>): boolean =>
177
- !!prestationsList.find((prestation) => !!prestation.isPlannable);
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 : data.isNil ? 100 : null,
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 : data.isNil ? 100 : null,
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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IEstimateInvoiceTracking.js.map
@@ -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
- }