@silexpert/core 1.3.144 → 1.3.145-features-1

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 (74) hide show
  1. package/dist/cjs/api/resources/InternalInvoicing.d.ts.map +1 -1
  2. package/dist/cjs/api/resources/InternalInvoicing.js +12 -0
  3. package/dist/cjs/api/resources/InternalInvoicing.js.map +1 -1
  4. package/dist/cjs/api/resources/Recurrence.d.ts +2 -1
  5. package/dist/cjs/api/resources/Recurrence.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/Recurrence.js +5 -0
  7. package/dist/cjs/api/resources/Recurrence.js.map +1 -1
  8. package/dist/cjs/api/resources/Society.d.ts +2 -1
  9. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/Society.js +3 -0
  11. package/dist/cjs/api/resources/Society.js.map +1 -1
  12. package/dist/cjs/api/resources/prestation.d.ts +7 -0
  13. package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
  14. package/dist/cjs/api/resources/prestation.js +9 -0
  15. package/dist/cjs/api/resources/prestation.js.map +1 -1
  16. package/dist/cjs/types/Enum/AIPrompt.js +1 -1
  17. package/dist/cjs/types/Enum/AIPrompt.js.map +1 -1
  18. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +15 -0
  19. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  20. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +4 -1
  21. package/dist/cjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  22. package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts +4 -0
  23. package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  24. package/dist/cjs/types/Interface/api/commercialManagement/Query.js +14 -1
  25. package/dist/cjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts +11 -0
  27. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  30. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +8 -0
  32. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  33. package/dist/mjs/api/resources/InternalInvoicing.d.ts.map +1 -1
  34. package/dist/mjs/api/resources/InternalInvoicing.js +12 -0
  35. package/dist/mjs/api/resources/InternalInvoicing.js.map +1 -1
  36. package/dist/mjs/api/resources/Recurrence.d.ts +2 -1
  37. package/dist/mjs/api/resources/Recurrence.d.ts.map +1 -1
  38. package/dist/mjs/api/resources/Recurrence.js +5 -0
  39. package/dist/mjs/api/resources/Recurrence.js.map +1 -1
  40. package/dist/mjs/api/resources/Society.d.ts +2 -1
  41. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  42. package/dist/mjs/api/resources/Society.js +3 -0
  43. package/dist/mjs/api/resources/Society.js.map +1 -1
  44. package/dist/mjs/api/resources/prestation.d.ts +7 -0
  45. package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
  46. package/dist/mjs/api/resources/prestation.js +9 -0
  47. package/dist/mjs/api/resources/prestation.js.map +1 -1
  48. package/dist/mjs/types/Enum/AIPrompt.js +1 -1
  49. package/dist/mjs/types/Enum/AIPrompt.js.map +1 -1
  50. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +15 -0
  51. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -1
  52. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +7 -0
  53. package/dist/mjs/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -1
  54. package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts +4 -0
  55. package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  56. package/dist/mjs/types/Interface/api/commercialManagement/Query.js +14 -0
  57. package/dist/mjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
  58. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts +11 -0
  59. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  60. package/dist/mjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  61. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  62. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  63. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +11 -2
  64. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  65. package/package.json +1 -1
  66. package/ts/api/resources/InternalInvoicing.ts +12 -0
  67. package/ts/api/resources/Recurrence.ts +8 -0
  68. package/ts/api/resources/Society.ts +5 -0
  69. package/ts/api/resources/prestation.ts +10 -0
  70. package/ts/types/Enum/AIPrompt.ts +1 -1
  71. package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +16 -0
  72. package/ts/types/Interface/api/commercialManagement/Query.ts +10 -0
  73. package/ts/types/Interface/api/commercialManagement/Read.ts +12 -0
  74. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +9 -2
@@ -30,6 +30,18 @@ export class InternalInvoicing extends Resource {
30
30
  return this.axios.$post('/internalInvoicing/cutOff/FAE', {});
31
31
  case 3:
32
32
  return this.axios.$post('/internalInvoicing/cutOff/AAE', {});
33
+ case 4:
34
+ return this.axios.$post('/internalInvoicing/cutOff/PCA2', {});
35
+ case 5:
36
+ return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package', {});
37
+ case 6:
38
+ return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-package-2', {});
39
+ case 7:
40
+ return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package', {});
41
+ case 8:
42
+ return this.axios.$post('/internalInvoicing/cutOff/PCA-accounting-out-package-2', {});
43
+ case 9:
44
+ return this.axios.$post('/internalInvoicing/cutOff/AAE-detail', {});
33
45
  default:
34
46
  return this.axios.$post('/internalInvoicing/cutOff/PCA', {});
35
47
  }
@@ -3,7 +3,9 @@ import { IInvoiceRecurrence } from '../../types/Interface/models/IInvoiceRecurre
3
3
  import {
4
4
  CreateRecurrence,
5
5
  QueryGetAllRecurrences,
6
+ QueryRecurrenceRevenueStatistics,
6
7
  ReadRecurrencePaginated,
8
+ ReadStatisticRecurrentRevenue,
7
9
  UpdateRecurrence,
8
10
  } from '../../types';
9
11
 
@@ -26,4 +28,10 @@ export class Recurrence extends Resource {
26
28
  params,
27
29
  });
28
30
  }
31
+
32
+ getRecurrentRevenues(query: QueryRecurrenceRevenueStatistics): Promise<ReadStatisticRecurrentRevenue[]> {
33
+ return this.axios.$get('/commercial-management/statistics/recurrent-revenues', {
34
+ params: query,
35
+ });
36
+ }
29
37
  }
@@ -30,6 +30,7 @@ import {
30
30
  DataCustomersCsv,
31
31
  ReadCurrentPrestations,
32
32
  QueryToArchivedSociety,
33
+ ReadFeatureAccess,
33
34
  } from '../../types';
34
35
  import { CancelToken } from 'axios';
35
36
 
@@ -205,4 +206,8 @@ export class Society extends Resource {
205
206
  },
206
207
  });
207
208
  }
209
+
210
+ getAllFeatures(idSociety: number): Promise<ReadFeatureAccess> {
211
+ return this.axios.$get(`/societies/${idSociety}/features`);
212
+ }
208
213
  }
@@ -32,6 +32,16 @@ export class Prestation extends Resource {
32
32
  return this.axios.$put(`/prestation/${idPrestation}`, params);
33
33
  }
34
34
 
35
+ /**
36
+ * Supprime une prestation et met à jour les références parentes
37
+ * et supprime les revenuesMovements liés
38
+ * @param { number } idPrestation
39
+ * @returns { true }
40
+ */
41
+ public delete(idPrestation: number): Promise<true> {
42
+ return this.axios.$delete(`/prestations/${idPrestation}`);
43
+ }
44
+
35
45
  /**
36
46
  * retourne toutes les prestations juridique d'une société
37
47
  * @param { number } id
@@ -55,7 +55,7 @@ export const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {
55
55
  "startDate": string (format : YYYY-MM-DD correspondant a la date de début du relevé),
56
56
  "endDate": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),
57
57
  },
58
- formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf, si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
58
+ formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf (l'extension pdf ici est un exemple, il faut reprender la même extension que celle du fichier), si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
59
59
  Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,
60
60
  },
61
61
  [AIPromptKey.BANK_STATEMENT_PERIOD]: {
@@ -1,3 +1,4 @@
1
+ import { Feature } from '../../../Enum/Feature';
1
2
  import { IUser } from '../../models/IUser';
2
3
 
3
4
  export class ReadAuthenticateCollaborater {
@@ -16,3 +17,18 @@ export class ReadByExternalId {
16
17
  idTypeBrand: number;
17
18
  token: string;
18
19
  }
20
+
21
+ export type ExerciceFeatures = {
22
+ id: number;
23
+ startDate: Date | string;
24
+ endDate: Date | string;
25
+ isDefault: boolean;
26
+ features: Feature[];
27
+ };
28
+ export class ReadFeatureAccess {
29
+ isOwner: boolean;
30
+ /** @returns default features */
31
+ features: Feature[];
32
+ exercices: ExerciceFeatures[];
33
+ isInTrialPeriod: boolean;
34
+ }
@@ -198,3 +198,13 @@ export class QueryRecentActivity {
198
198
  @IsString()
199
199
  search?: string;
200
200
  }
201
+
202
+ export class QueryRecurrenceRevenueStatistics {
203
+ @ApiProperty()
204
+ @IsDateString()
205
+ startDate: string;
206
+
207
+ @ApiProperty()
208
+ @IsDateString()
209
+ endDate: string;
210
+ }
@@ -116,3 +116,15 @@ export type ReadRecentActivity = {
116
116
  // i don't know if needed, it is in the type but not return from service for now
117
117
  item?: IEstimateInvoice | IProductInvoice | IThirdParty;
118
118
  };
119
+
120
+ export type ReadStatisticRecurrentRevenue = {
121
+ period: string;
122
+ done: {
123
+ totalTaxExcluded: number;
124
+ totalTaxIncluded: number;
125
+ };
126
+ projection: {
127
+ totalTaxExcluded: number;
128
+ totalTaxIncluded: number;
129
+ } | null;
130
+ };
@@ -1,7 +1,8 @@
1
- import { IsDateString, IsNumber, IsOptional } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils';
1
+ import { IsBoolean, IsDateString, IsNumber, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';
4
4
  import { BasePaginate } from '../BasePaginate';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
6
 
6
7
  export interface IGeneralLedgerThirdParty {
7
8
  idThirdParty: number;
@@ -57,4 +58,10 @@ export class QueryGeneralLedgerThirdParty {
57
58
  @IsOptional()
58
59
  @IsNumber()
59
60
  limit: number = 100;
61
+
62
+ @ApiPropertyOptional()
63
+ @IsBoolean()
64
+ @ToBoolean()
65
+ @IsOptional()
66
+ omitLettering?: boolean;
60
67
  }