@silexpert/core 1.2.63 → 1.2.65

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/Commercial.d.ts +2 -1
  2. package/dist/cjs/api/resources/Commercial.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Commercial.js +3 -0
  4. package/dist/cjs/api/resources/Commercial.js.map +1 -1
  5. package/dist/cjs/api/resources/Transaction.d.ts +2 -1
  6. package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Transaction.js +3 -0
  8. package/dist/cjs/api/resources/Transaction.js.map +1 -1
  9. package/dist/cjs/types/Enum/PrestationState.d.ts +5 -1
  10. package/dist/cjs/types/Enum/PrestationState.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/PrestationState.js +28 -0
  12. package/dist/cjs/types/Enum/PrestationState.js.map +1 -1
  13. package/dist/cjs/types/Interface/api/SocietyTransaction/Query.d.ts +4 -0
  14. package/dist/cjs/types/Interface/api/SocietyTransaction/Query.d.ts.map +1 -0
  15. package/dist/cjs/types/Interface/api/SocietyTransaction/Query.js +23 -0
  16. package/dist/cjs/types/Interface/api/SocietyTransaction/Query.js.map +1 -0
  17. package/dist/cjs/types/Interface/api/SocietyTransaction/Read.d.ts +5 -0
  18. package/dist/cjs/types/Interface/api/SocietyTransaction/Read.d.ts.map +1 -0
  19. package/dist/cjs/types/Interface/api/SocietyTransaction/Read.js +7 -0
  20. package/dist/cjs/types/Interface/api/SocietyTransaction/Read.js.map +1 -0
  21. package/dist/cjs/types/Interface/api/commercial/Query.d.ts +5 -0
  22. package/dist/cjs/types/Interface/api/commercial/Query.d.ts.map +1 -0
  23. package/dist/cjs/types/Interface/api/commercial/Query.js +30 -0
  24. package/dist/cjs/types/Interface/api/commercial/Query.js.map +1 -0
  25. package/dist/cjs/types/Interface/api/jeDeclare/Util.d.ts +2 -0
  26. package/dist/cjs/types/Interface/api/jeDeclare/Util.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/api/jeDeclare/Util.js.map +1 -1
  28. package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
  29. package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
  30. package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.js +6 -0
  31. package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  32. package/dist/cjs/types/index.d.ts +3 -0
  33. package/dist/cjs/types/index.d.ts.map +1 -1
  34. package/dist/cjs/types/index.js +3 -0
  35. package/dist/cjs/types/index.js.map +1 -1
  36. package/dist/mjs/api/resources/Commercial.d.ts +2 -1
  37. package/dist/mjs/api/resources/Commercial.d.ts.map +1 -1
  38. package/dist/mjs/api/resources/Commercial.js +6 -0
  39. package/dist/mjs/api/resources/Commercial.js.map +1 -1
  40. package/dist/mjs/api/resources/Transaction.d.ts +2 -1
  41. package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
  42. package/dist/mjs/api/resources/Transaction.js +6 -0
  43. package/dist/mjs/api/resources/Transaction.js.map +1 -1
  44. package/dist/mjs/types/Enum/PrestationState.d.ts +5 -1
  45. package/dist/mjs/types/Enum/PrestationState.d.ts.map +1 -1
  46. package/dist/mjs/types/Enum/PrestationState.js +28 -0
  47. package/dist/mjs/types/Enum/PrestationState.js.map +1 -1
  48. package/dist/mjs/types/Interface/api/SocietyTransaction/Query.d.ts +4 -0
  49. package/dist/mjs/types/Interface/api/SocietyTransaction/Query.d.ts.map +1 -0
  50. package/dist/mjs/types/Interface/api/SocietyTransaction/Query.js +20 -0
  51. package/dist/mjs/types/Interface/api/SocietyTransaction/Query.js.map +1 -0
  52. package/dist/mjs/types/Interface/api/SocietyTransaction/Read.d.ts +5 -0
  53. package/dist/mjs/types/Interface/api/SocietyTransaction/Read.d.ts.map +1 -0
  54. package/dist/mjs/types/Interface/api/SocietyTransaction/Read.js +5 -0
  55. package/dist/mjs/types/Interface/api/SocietyTransaction/Read.js.map +1 -0
  56. package/dist/mjs/types/Interface/api/commercial/Query.d.ts +5 -0
  57. package/dist/mjs/types/Interface/api/commercial/Query.d.ts.map +1 -0
  58. package/dist/mjs/types/Interface/api/commercial/Query.js +28 -0
  59. package/dist/mjs/types/Interface/api/commercial/Query.js.map +1 -0
  60. package/dist/mjs/types/Interface/api/jeDeclare/Util.d.ts +2 -0
  61. package/dist/mjs/types/Interface/api/jeDeclare/Util.d.ts.map +1 -1
  62. package/dist/mjs/types/Interface/api/jeDeclare/Util.js.map +1 -1
  63. package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
  64. package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
  65. package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.js +7 -0
  66. package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
  67. package/dist/mjs/types/index.d.ts +3 -0
  68. package/dist/mjs/types/index.d.ts.map +1 -1
  69. package/dist/mjs/types/index.js +3 -0
  70. package/dist/mjs/types/index.js.map +1 -1
  71. package/package.json +1 -1
  72. package/ts/api/resources/Commercial.ts +7 -0
  73. package/ts/api/resources/Transaction.ts +12 -0
  74. package/ts/types/Enum/PrestationState.ts +28 -0
  75. package/ts/types/Interface/api/SocietyTransaction/Query.ts +8 -0
  76. package/ts/types/Interface/api/SocietyTransaction/Read.ts +4 -0
  77. package/ts/types/Interface/api/commercial/Query.ts +14 -0
  78. package/ts/types/Interface/api/jeDeclare/Util.ts +2 -0
  79. package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +5 -0
  80. package/ts/types/index.ts +3 -0
@@ -24,6 +24,8 @@ import {
24
24
  QueryAutomaticAnnotation,
25
25
  IAnnotation,
26
26
  ProcessVatTransaction,
27
+ QuerySocietyTransactionGetBalance,
28
+ ReadSocietyTransactionGetBalance,
27
29
  } from '../../types';
28
30
 
29
31
  export class Transaction extends Resource {
@@ -55,6 +57,16 @@ export class Transaction extends Resource {
55
57
  params: query,
56
58
  });
57
59
  }
60
+ getBalance(
61
+ idSociety: number,
62
+ params: QuerySocietyTransactionGetBalance,
63
+ signal?: AbortSignal,
64
+ ): Promise<ReadSocietyTransactionGetBalance> {
65
+ return this.axios.$get(`/society/${idSociety}/balance`, {
66
+ ...(signal ? { signal } : {}),
67
+ params,
68
+ });
69
+ }
58
70
  unexport(idSociety: number, params: QueryUnexport): Promise<number> {
59
71
  return this.axios.$put(`/society/${idSociety}/transactions/unexport`, params);
60
72
  }
@@ -5,7 +5,10 @@ export enum JuridicalPrestationState {
5
5
  WAITING_INFO_BILLING = 4,
6
6
  WAITING_SIGNED_DOCUMENTS_AND_BILLING = 5,
7
7
  WAITING_REGISTRATION = 6,
8
+ WAITING_PAYMENT_OF_COURT_FEES = 7,
8
9
  WAITING_KBIS = 8,
10
+ SENDING_KBIS = 9,
11
+ DISCONTINUED = 10,
9
12
  }
10
13
 
11
14
  export const JuridicalPrestationStateDetail = [
@@ -13,35 +16,60 @@ export const JuridicalPrestationStateDetail = [
13
16
  id: JuridicalPrestationState.TO_CONTACT_BILLING_TO_DO,
14
17
  name: 'A contacter / facturation à faire',
15
18
  color: 'grey lighten-4',
19
+ hidden: false,
16
20
  },
17
21
  {
18
22
  id: JuridicalPrestationState.WAITING_INFO_BILLING,
19
23
  name: 'En attente informations / paiement',
20
24
  color: 'blue lighten-4',
25
+ hidden: false,
21
26
  },
22
27
  {
23
28
  id: JuridicalPrestationState.WAITING_SIGNED_DOCUMENTS_AND_BILLING,
24
29
  name: 'En attente documents signés et paiements',
25
30
  color: 'blue',
31
+ hidden: false,
26
32
  },
27
33
  {
28
34
  id: JuridicalPrestationState.WAITING_REGISTRATION,
29
35
  name: 'En attente enregistrement',
30
36
  color: 'blue lighten-4',
37
+ hidden: false,
31
38
  },
32
39
  {
33
40
  id: JuridicalPrestationState.WAITING_BALANCE_SHEET_LIQUI,
34
41
  name: 'En attente bilan de liquidation',
35
42
  color: 'primary',
43
+ hidden: false,
44
+ },
45
+ {
46
+ id: JuridicalPrestationState.WAITING_PAYMENT_OF_COURT_FEES,
47
+ name: 'En attente paiement des frais de Greffe',
48
+ color: 'purple lighten-4',
49
+ hidden: true,
36
50
  },
37
51
  {
38
52
  id: JuridicalPrestationState.WAITING_KBIS,
39
53
  name: 'En attente KBIS',
40
54
  color: 'yellow lighten-4',
55
+ hidden: false,
56
+ },
57
+ {
58
+ id: JuridicalPrestationState.SENDING_KBIS,
59
+ name: 'Envoi de KBIS',
60
+ color: 'primary lighten-2',
61
+ hidden: true,
41
62
  },
42
63
  {
43
64
  id: JuridicalPrestationState.DONE,
44
65
  name: 'Dossier terminé',
45
66
  color: 'success',
67
+ hidden: false,
68
+ },
69
+ {
70
+ id: JuridicalPrestationState.DISCONTINUED,
71
+ name: 'Dossier abandon',
72
+ color: 'error',
73
+ hidden: true,
46
74
  },
47
75
  ];
@@ -0,0 +1,8 @@
1
+ import { IsDate } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QuerySocietyTransactionGetBalance {
5
+ @ApiProperty()
6
+ @IsDate()
7
+ endDate: Date;
8
+ }
@@ -0,0 +1,4 @@
1
+ export class ReadSocietyTransactionGetBalance {
2
+ dateValue?: Date;
3
+ state: boolean;
4
+ }
@@ -0,0 +1,14 @@
1
+ import { IsDate, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class QueryGetLeadByUser {
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ @IsDate()
8
+ startDate?: Date;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsOptional()
12
+ @IsDate()
13
+ endDate?: Date;
14
+ }
@@ -67,4 +67,6 @@ export type GetDocumentsParams = {
67
67
  listType: string;
68
68
  forceTestMode?: boolean;
69
69
  accessName: string;
70
+ startDate: string;
71
+ endDate: string;
70
72
  };
@@ -24,6 +24,11 @@ export class ParamsGetAllCollaborators {
24
24
  @IsNumber()
25
25
  idUser?: number[];
26
26
 
27
+ @ApiPropertyOptional()
28
+ @IsOptional()
29
+ @IsNumber()
30
+ idOffice?: number[];
31
+
27
32
  @ApiPropertyOptional()
28
33
  @IsOptional()
29
34
  @IsString({
package/ts/types/index.ts CHANGED
@@ -663,6 +663,7 @@ export * from './Interface/api/facturation/CreateRebilling';
663
663
  export * from './Interface/api/facturation/GoToFacturation';
664
664
  export * from './Interface/api/facturation/ReadRecommanded';
665
665
  export * from './Interface/api/OnBoarding';
666
+ export * from './Interface/api/commercial/Query';
666
667
  export * from './Interface/api/commercial/QueryGetStats';
667
668
  export * from './Interface/api/commercial/QueryGetStatsHistory';
668
669
  export * from './Interface/api/commercial/RequiredDocsTypeParams';
@@ -733,7 +734,9 @@ export * from './Interface/api/vatDeclaration/ReadVatVariousOperations';
733
734
  export * from './Interface/api/vatDeclaration/ResultFormatToEntries';
734
735
  export * from './Interface/api/promoCode/QueryDefaultPromotion';
735
736
  export * from './Interface/api/promoCode/ReadDefaultPromotion';
737
+ export * from './Interface/api/SocietyTransaction/Query';
736
738
  export * from './Interface/api/SocietyTransaction/QuerySocietyTransactionCount';
739
+ export * from './Interface/api/SocietyTransaction/Read';
737
740
  export * from './Interface/api/SocietyTransaction/ReadSocietyTransactionCount';
738
741
  export * from './Interface/api/salesContract/SendSalesContractParams';
739
742
  export * from './Interface/api/salesContract/GenerateSalesContractParams';