@silexpert/core 1.3.164 → 1.3.166

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 (80) hide show
  1. package/dist/cjs/api/resources/AutomaticRegistration.d.ts +6 -0
  2. package/dist/cjs/api/resources/AutomaticRegistration.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/AutomaticRegistration.js +22 -0
  4. package/dist/cjs/api/resources/AutomaticRegistration.js.map +1 -0
  5. package/dist/cjs/api/resources/Revenue.d.ts +8 -0
  6. package/dist/cjs/api/resources/Revenue.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Revenue.js +6 -0
  8. package/dist/cjs/api/resources/Revenue.js.map +1 -1
  9. package/dist/cjs/api/resources.d.ts +2 -0
  10. package/dist/cjs/api/resources.d.ts.map +1 -1
  11. package/dist/cjs/api/resources.js +2 -0
  12. package/dist/cjs/api/resources.js.map +1 -1
  13. package/dist/cjs/types/Enum/AutomaticRegistration.d.ts +7 -0
  14. package/dist/cjs/types/Enum/AutomaticRegistration.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/AutomaticRegistration.js +39 -1
  16. package/dist/cjs/types/Enum/AutomaticRegistration.js.map +1 -1
  17. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/BrandClementine.js +6 -0
  19. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/automaticRegistration/Query.d.ts +6 -0
  21. package/dist/cjs/types/Interface/api/automaticRegistration/Query.d.ts.map +1 -0
  22. package/dist/cjs/types/Interface/api/automaticRegistration/Query.js +36 -0
  23. package/dist/cjs/types/Interface/api/automaticRegistration/Query.js.map +1 -0
  24. package/dist/cjs/types/Interface/api/automaticRegistration/Read.d.ts +9 -0
  25. package/dist/cjs/types/Interface/api/automaticRegistration/Read.d.ts.map +1 -0
  26. package/dist/cjs/types/Interface/api/automaticRegistration/Read.js +3 -0
  27. package/dist/cjs/types/Interface/api/automaticRegistration/Read.js.map +1 -0
  28. package/dist/cjs/types/Interface/api/cashAndExpense/Create.d.ts +1 -1
  29. package/dist/cjs/types/Interface/api/cashAndExpense/Create.d.ts.map +1 -1
  30. package/dist/cjs/types/Interface/api/cashAndExpense/Create.js +1 -1
  31. package/dist/cjs/types/Interface/api/cashAndExpense/Create.js.map +1 -1
  32. package/dist/cjs/types/index.d.ts +2 -0
  33. package/dist/cjs/types/index.d.ts.map +1 -1
  34. package/dist/cjs/types/index.js +2 -0
  35. package/dist/cjs/types/index.js.map +1 -1
  36. package/dist/mjs/api/resources/AutomaticRegistration.d.ts +6 -0
  37. package/dist/mjs/api/resources/AutomaticRegistration.d.ts.map +1 -0
  38. package/dist/mjs/api/resources/AutomaticRegistration.js +7 -0
  39. package/dist/mjs/api/resources/AutomaticRegistration.js.map +1 -0
  40. package/dist/mjs/api/resources/Revenue.d.ts +8 -0
  41. package/dist/mjs/api/resources/Revenue.d.ts.map +1 -1
  42. package/dist/mjs/api/resources/Revenue.js +6 -0
  43. package/dist/mjs/api/resources/Revenue.js.map +1 -1
  44. package/dist/mjs/api/resources.d.ts +2 -0
  45. package/dist/mjs/api/resources.d.ts.map +1 -1
  46. package/dist/mjs/api/resources.js +2 -0
  47. package/dist/mjs/api/resources.js.map +1 -1
  48. package/dist/mjs/types/Enum/AutomaticRegistration.d.ts +7 -0
  49. package/dist/mjs/types/Enum/AutomaticRegistration.d.ts.map +1 -1
  50. package/dist/mjs/types/Enum/AutomaticRegistration.js +38 -0
  51. package/dist/mjs/types/Enum/AutomaticRegistration.js.map +1 -1
  52. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  53. package/dist/mjs/types/Enum/BrandClementine.js +6 -0
  54. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  55. package/dist/mjs/types/Interface/api/automaticRegistration/Query.d.ts +6 -0
  56. package/dist/mjs/types/Interface/api/automaticRegistration/Query.d.ts.map +1 -0
  57. package/dist/mjs/types/Interface/api/automaticRegistration/Query.js +35 -0
  58. package/dist/mjs/types/Interface/api/automaticRegistration/Query.js.map +1 -0
  59. package/dist/mjs/types/Interface/api/automaticRegistration/Read.d.ts +9 -0
  60. package/dist/mjs/types/Interface/api/automaticRegistration/Read.d.ts.map +1 -0
  61. package/dist/mjs/types/Interface/api/automaticRegistration/Read.js +2 -0
  62. package/dist/mjs/types/Interface/api/automaticRegistration/Read.js.map +1 -0
  63. package/dist/mjs/types/Interface/api/cashAndExpense/Create.d.ts +1 -1
  64. package/dist/mjs/types/Interface/api/cashAndExpense/Create.d.ts.map +1 -1
  65. package/dist/mjs/types/Interface/api/cashAndExpense/Create.js +1 -1
  66. package/dist/mjs/types/Interface/api/cashAndExpense/Create.js.map +1 -1
  67. package/dist/mjs/types/index.d.ts +2 -0
  68. package/dist/mjs/types/index.d.ts.map +1 -1
  69. package/dist/mjs/types/index.js +2 -0
  70. package/dist/mjs/types/index.js.map +1 -1
  71. package/package.json +1 -1
  72. package/ts/api/resources/AutomaticRegistration.ts +8 -0
  73. package/ts/api/resources/Revenue.ts +8 -0
  74. package/ts/api/resources.ts +2 -0
  75. package/ts/types/Enum/AutomaticRegistration.ts +45 -0
  76. package/ts/types/Enum/BrandClementine.ts +6 -0
  77. package/ts/types/Interface/api/automaticRegistration/Query.ts +19 -0
  78. package/ts/types/Interface/api/automaticRegistration/Read.ts +8 -0
  79. package/ts/types/Interface/api/cashAndExpense/Create.ts +2 -2
  80. package/ts/types/index.ts +2 -1
@@ -31,6 +31,10 @@ export class Revenue extends Resource {
31
31
  delete: (id: number) => {
32
32
  return this.axios.$delete(`/revenue/movements/${id}`);
33
33
  },
34
+
35
+ generateRetroactive: (idSociety: number, params: { startDate?: string; endDate?: string }) => {
36
+ return this.axios.$post(`/revenue/societies/${idSociety}/retroactivity`, params);
37
+ },
34
38
  };
35
39
 
36
40
  /**
@@ -52,6 +56,10 @@ export class Revenue extends Resource {
52
56
  generateAll: (data: { date?: string }) => {
53
57
  return this.axios.$post('/revenue/snapshots/generate-all', data);
54
58
  },
59
+
60
+ generateRetroactiveSnapshots: (idSociety: number) => {
61
+ return this.axios.$post(`/revenue/societies/${idSociety}/snapshots/generate-retroactive`);
62
+ },
55
63
  };
56
64
 
57
65
  /**
@@ -186,6 +186,7 @@ import { DashboardLayout } from './resources/DashboardLayout';
186
186
  import { DocumentRequest } from './resources/DocumentRequest';
187
187
  import { BalanceSheetReport } from './resources/BalanceSheetReport';
188
188
  import { Revenue } from './resources/Revenue';
189
+ import { AutomaticRegistration } from './resources/AutomaticRegistration';
189
190
 
190
191
  export const resources = {
191
192
  budgetInsight: BudgetInsight,
@@ -376,4 +377,5 @@ export const resources = {
376
377
  documentRequest: DocumentRequest,
377
378
  balanceSheetReport: BalanceSheetReport,
378
379
  revenue: Revenue,
380
+ automaticRegistration: AutomaticRegistration,
379
381
  };
@@ -6,3 +6,48 @@ export enum AutomaticRegistrationType {
6
6
  SEND_TO_SIE = 5,
7
7
  FAILED_TO_SEND_TO_SIE = 6,
8
8
  }
9
+
10
+ export const AutomaticRegistrationTypeStatistics: Array<{
11
+ label: string;
12
+ /** types included for this statistic (automatic registration state is updated at every step so we need to include more) */
13
+ types: AutomaticRegistrationType[];
14
+ /** specific state type (last state) */
15
+ type: AutomaticRegistrationType;
16
+ }> = [
17
+ { label: 'Non généré', types: [AutomaticRegistrationType.INVALID], type: AutomaticRegistrationType.INVALID },
18
+ {
19
+ label: 'Généré',
20
+ types: [
21
+ AutomaticRegistrationType.GENERATED,
22
+ AutomaticRegistrationType.EMAIL_SEND,
23
+ AutomaticRegistrationType.EMAIL_ERROR,
24
+ AutomaticRegistrationType.SEND_TO_SIE,
25
+ AutomaticRegistrationType.FAILED_TO_SEND_TO_SIE,
26
+ ],
27
+ type: AutomaticRegistrationType.GENERATED,
28
+ },
29
+ {
30
+ label: 'Envoyé par e-mail',
31
+ types: [
32
+ AutomaticRegistrationType.EMAIL_SEND,
33
+ AutomaticRegistrationType.SEND_TO_SIE,
34
+ AutomaticRegistrationType.FAILED_TO_SEND_TO_SIE,
35
+ ],
36
+ type: AutomaticRegistrationType.EMAIL_SEND,
37
+ },
38
+ {
39
+ label: 'Échec envoi e-mail',
40
+ types: [AutomaticRegistrationType.EMAIL_ERROR],
41
+ type: AutomaticRegistrationType.EMAIL_ERROR,
42
+ },
43
+ {
44
+ label: 'Envoyé au SIE',
45
+ types: [AutomaticRegistrationType.SEND_TO_SIE],
46
+ type: AutomaticRegistrationType.SEND_TO_SIE,
47
+ },
48
+ {
49
+ label: 'Échec envoi au SIE',
50
+ types: [AutomaticRegistrationType.FAILED_TO_SEND_TO_SIE],
51
+ type: AutomaticRegistrationType.FAILED_TO_SEND_TO_SIE,
52
+ },
53
+ ];
@@ -278,6 +278,12 @@ export const BrandClementine: Brand[] = [
278
278
  statut: 'SAS',
279
279
  zipCode: '54 521',
280
280
  },
281
+ caarl: {
282
+ subscriptionNumber: {
283
+ sandbox: 'S-2412-3945851',
284
+ production: 'S-2412-5088901',
285
+ },
286
+ },
281
287
  },
282
288
  {
283
289
  idTypeBrand: 6,
@@ -0,0 +1,19 @@
1
+ import { IsBoolean, IsDateString, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class QueryAutomaticRegistrationStatistics {
6
+ @ApiProperty()
7
+ @IsDateString()
8
+ startDate: string;
9
+
10
+ @ApiProperty()
11
+ @IsDateString()
12
+ endDate: string;
13
+
14
+ @ApiPropertyOptional()
15
+ @IsBoolean()
16
+ @ToBoolean()
17
+ @IsOptional()
18
+ withCauses?: boolean;
19
+ }
@@ -0,0 +1,8 @@
1
+ export type ReadAutomaticRegistrationStatistic = {
2
+ label: string;
3
+ count: number;
4
+ causes?: Array<{
5
+ label: string;
6
+ count: number;
7
+ }>;
8
+ };
@@ -62,6 +62,6 @@ export class CreateKilometricAllowance {
62
62
  @ApiProperty()
63
63
  arrivalCity: string;
64
64
 
65
- @ApiProperty()
66
- idSocietyPartner: number;
65
+ @ApiPropertyOptional()
66
+ idSocietyPartner?: number;
67
67
  }
package/ts/types/index.ts CHANGED
@@ -876,7 +876,6 @@ export * from './Interface/api/humanResourceLibrary/CreateHumanResourceLibrary';
876
876
  export * from './Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary';
877
877
  export * from './Interface/api/report/ExternalReport';
878
878
  export * from './Interface/api/collaboraterDetail/CreateCollaboraterDetail';
879
-
880
879
  export * from './Interface/api/library/QueryLibrary';
881
880
  export * from './Interface/api/library/ReadLibraryFile';
882
881
  export * from './Interface/api/taxDeadline/QueryTaxDeadline';
@@ -1141,6 +1140,8 @@ export * from './Interface/api/recurrence/Query';
1141
1140
  export * from './Interface/api/recurrence/Read';
1142
1141
  export * from './Interface/api/documentRequest/Query';
1143
1142
  export * from './Interface/api/documentRequest/Create';
1143
+ export * from './Interface/api/automaticRegistration/Query';
1144
+ export * from './Interface/api/automaticRegistration/Read';
1144
1145
 
1145
1146
  // Enums types
1146
1147
  export * from './Interface/enum/Util';