@silexpert/core 1.1.385 → 1.1.386

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 (73) hide show
  1. package/dist/cjs/api/resources/JuridicalMission.d.ts +6 -0
  2. package/dist/cjs/api/resources/JuridicalMission.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/JuridicalMission.js +11 -0
  4. package/dist/cjs/api/resources/JuridicalMission.js.map +1 -0
  5. package/dist/cjs/api/resources/PrestationComplementary.d.ts +7 -0
  6. package/dist/cjs/api/resources/PrestationComplementary.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/PrestationComplementary.js +14 -0
  8. package/dist/cjs/api/resources/PrestationComplementary.js.map +1 -0
  9. package/dist/cjs/api/resources.d.ts +4 -0
  10. package/dist/cjs/api/resources.d.ts.map +1 -1
  11. package/dist/cjs/api/resources.js +4 -0
  12. package/dist/cjs/api/resources.js.map +1 -1
  13. package/dist/cjs/types/Enum/PrestationState.d.ts +15 -0
  14. package/dist/cjs/types/Enum/PrestationState.d.ts.map +1 -0
  15. package/dist/cjs/types/Enum/PrestationState.js +51 -0
  16. package/dist/cjs/types/Enum/PrestationState.js.map +1 -0
  17. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.d.ts +0 -1
  18. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.js +0 -6
  20. package/dist/cjs/types/Interface/api/3cx/Query3cxMeeting.js.map +1 -1
  21. package/dist/cjs/types/Interface/api/juridicalMission/Query.d.ts +13 -0
  22. package/dist/cjs/types/Interface/api/juridicalMission/Query.d.ts.map +1 -0
  23. package/dist/cjs/types/Interface/api/juridicalMission/Query.js +73 -0
  24. package/dist/cjs/types/Interface/api/juridicalMission/Query.js.map +1 -0
  25. package/dist/cjs/types/Interface/models/IPrestationComplementaryHistory.d.ts +13 -0
  26. package/dist/cjs/types/Interface/models/IPrestationComplementaryHistory.d.ts.map +1 -0
  27. package/dist/cjs/types/Interface/models/IPrestationComplementaryHistory.js +3 -0
  28. package/dist/cjs/types/Interface/models/IPrestationComplementaryHistory.js.map +1 -0
  29. package/dist/cjs/types/index.d.ts +3 -0
  30. package/dist/cjs/types/index.d.ts.map +1 -1
  31. package/dist/cjs/types/index.js +3 -0
  32. package/dist/cjs/types/index.js.map +1 -1
  33. package/dist/mjs/api/resources/JuridicalMission.d.ts +6 -0
  34. package/dist/mjs/api/resources/JuridicalMission.d.ts.map +1 -0
  35. package/dist/mjs/api/resources/JuridicalMission.js +7 -0
  36. package/dist/mjs/api/resources/JuridicalMission.js.map +1 -0
  37. package/dist/mjs/api/resources/PrestationComplementary.d.ts +7 -0
  38. package/dist/mjs/api/resources/PrestationComplementary.d.ts.map +1 -0
  39. package/dist/mjs/api/resources/PrestationComplementary.js +10 -0
  40. package/dist/mjs/api/resources/PrestationComplementary.js.map +1 -0
  41. package/dist/mjs/api/resources.d.ts +4 -0
  42. package/dist/mjs/api/resources.d.ts.map +1 -1
  43. package/dist/mjs/api/resources.js +4 -0
  44. package/dist/mjs/api/resources.js.map +1 -1
  45. package/dist/mjs/types/Enum/PrestationState.d.ts +15 -0
  46. package/dist/mjs/types/Enum/PrestationState.d.ts.map +1 -0
  47. package/dist/mjs/types/Enum/PrestationState.js +48 -0
  48. package/dist/mjs/types/Enum/PrestationState.js.map +1 -0
  49. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.d.ts +0 -1
  50. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.d.ts.map +1 -1
  51. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.js +0 -7
  52. package/dist/mjs/types/Interface/api/3cx/Query3cxMeeting.js.map +1 -1
  53. package/dist/mjs/types/Interface/api/juridicalMission/Query.d.ts +13 -0
  54. package/dist/mjs/types/Interface/api/juridicalMission/Query.d.ts.map +1 -0
  55. package/dist/mjs/types/Interface/api/juridicalMission/Query.js +78 -0
  56. package/dist/mjs/types/Interface/api/juridicalMission/Query.js.map +1 -0
  57. package/dist/mjs/types/Interface/models/IPrestationComplementaryHistory.d.ts +13 -0
  58. package/dist/mjs/types/Interface/models/IPrestationComplementaryHistory.d.ts.map +1 -0
  59. package/dist/mjs/types/Interface/models/IPrestationComplementaryHistory.js +2 -0
  60. package/dist/mjs/types/Interface/models/IPrestationComplementaryHistory.js.map +1 -0
  61. package/dist/mjs/types/index.d.ts +3 -0
  62. package/dist/mjs/types/index.d.ts.map +1 -1
  63. package/dist/mjs/types/index.js +3 -0
  64. package/dist/mjs/types/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/ts/api/resources/JuridicalMission.ts +14 -0
  67. package/ts/api/resources/PrestationComplementary.ts +17 -0
  68. package/ts/api/resources.ts +4 -0
  69. package/ts/types/Enum/PrestationState.ts +47 -0
  70. package/ts/types/Interface/api/3cx/Query3cxMeeting.ts +0 -5
  71. package/ts/types/Interface/api/juridicalMission/Query.ts +51 -0
  72. package/ts/types/Interface/models/IPrestationComplementaryHistory.ts +16 -0
  73. package/ts/types/index.ts +3 -0
@@ -0,0 +1,17 @@
1
+ import { Resource } from '../Resource';
2
+ import {
3
+ IPrestationComplementary,
4
+ IPrestationComplementaryHistory,
5
+ } from '../../types';
6
+
7
+ export class PrestationComplementary extends Resource {
8
+
9
+ public getHistory(id: number): Promise<IPrestationComplementaryHistory[]> {
10
+ return this.axios.$get(`/prestation/complementary/${id}/history`);
11
+ }
12
+
13
+ public update(id: number, data: Partial<IPrestationComplementary>): Promise<[number, IPrestationComplementary[]]> {
14
+ return this.axios.$put(`/prestation/complementary/${id}`, data);
15
+ }
16
+
17
+ }
@@ -165,6 +165,8 @@ import { BalanceSheetSupervision } from './resources/BalanceSheetSupervision';
165
165
  import { CompanyCreationForm } from './resources/CompanyCreationForm';
166
166
  import { BankConnection } from './resources/BankConnection';
167
167
  import { ToDoExpress } from './resources/ToDoExpress';
168
+ import { JuridicalMission } from './resources/JuridicalMission';
169
+ import { PrestationComplementary } from './resources/PrestationComplementary';
168
170
 
169
171
  export const resources = {
170
172
  simulation: Simulation,
@@ -334,4 +336,6 @@ export const resources = {
334
336
  project: Project,
335
337
  bankConnection: BankConnection,
336
338
  toDoExpress: ToDoExpress,
339
+ juridicalMission: JuridicalMission,
340
+ prestationComplementary: PrestationComplementary,
337
341
  };
@@ -0,0 +1,47 @@
1
+ export enum JuridicalPrestationState {
2
+ TO_CONTACT_BILLING_TO_DO = 1,
3
+ WAITING_BALANCE_SHEET_LIQUI = 2,
4
+ DONE = 3,
5
+ WAITING_INFO_BILLING = 4,
6
+ WAITING_SIGNED_DOCUMENTS_AND_BILLING = 5,
7
+ WAITING_REGISTRATION = 6,
8
+ WAITING_KBIS = 8,
9
+ }
10
+
11
+ export const JuridicalPrestationStateDetail = [
12
+ {
13
+ id: JuridicalPrestationState.TO_CONTACT_BILLING_TO_DO,
14
+ name: 'A contacter / facturation à faire',
15
+ color: 'grey lighten-4',
16
+ },
17
+ {
18
+ id: JuridicalPrestationState.WAITING_BALANCE_SHEET_LIQUI,
19
+ name: 'En attente bilan de liquidation',
20
+ color: 'primary',
21
+ },
22
+ {
23
+ id: JuridicalPrestationState.DONE,
24
+ name: 'Dossier terminé',
25
+ color: 'success',
26
+ },
27
+ {
28
+ id: JuridicalPrestationState.WAITING_INFO_BILLING,
29
+ name: 'En attente informations / paiement',
30
+ color: 'blue lighten-4',
31
+ },
32
+ {
33
+ id: JuridicalPrestationState.WAITING_SIGNED_DOCUMENTS_AND_BILLING,
34
+ name: 'En attente documents signés et paiements',
35
+ color: 'blue',
36
+ },
37
+ {
38
+ id: JuridicalPrestationState.WAITING_REGISTRATION,
39
+ name: 'En attente enregistrement',
40
+ color: 'blue lighten-4',
41
+ },
42
+ {
43
+ id: JuridicalPrestationState.WAITING_KBIS,
44
+ name: 'En attente KBIS',
45
+ color: 'yellow lighten-4',
46
+ },
47
+ ];
@@ -11,9 +11,4 @@ export class Query3cxMeeting {
11
11
  @IsInt()
12
12
  @IsOptional()
13
13
  daysLimit?: number;
14
-
15
- @ApiPropertyOptional()
16
- @IsInt()
17
- @IsOptional()
18
- extension?: number;
19
14
  }
@@ -0,0 +1,51 @@
1
+ import { IsArray, IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { RequiredQueryPaginate } from '../BasePaginate';
4
+
5
+
6
+ export class QueryJuridicalMissionPaginated extends RequiredQueryPaginate {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsInt()
10
+ idPrestation?: number;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsString()
15
+ search?: string;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsArray()
20
+ idUser?: number[];
21
+
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
24
+ @IsArray()
25
+ idPrestationState?: number[];
26
+
27
+ @ApiPropertyOptional()
28
+ @IsOptional()
29
+ @IsInt()
30
+ idSocietyState?: number;
31
+
32
+ @ApiPropertyOptional()
33
+ @IsOptional()
34
+ @IsInt()
35
+ idBillingState?: number;
36
+
37
+ @ApiPropertyOptional()
38
+ @IsOptional()
39
+ @IsArray()
40
+ idPrestationList?: number[];
41
+
42
+ @ApiPropertyOptional()
43
+ @IsOptional()
44
+ @IsDate()
45
+ startDate?: Date;
46
+
47
+ @ApiPropertyOptional()
48
+ @IsOptional()
49
+ @IsDate()
50
+ endDate?: Date;
51
+ }
@@ -0,0 +1,16 @@
1
+ import { IPrestationComplementary } from './IPrestationComplementary';
2
+ import { IUser } from './IUser';
3
+
4
+ // prestationHistory
5
+ export interface IPrestationComplementaryHistory {
6
+ id?: number;
7
+ idStatePrestationJuridique: number;
8
+ idPrestationComplementary: number | null;
9
+ idUser: number | null;
10
+ createdAt?: Date | null;
11
+ updatedAt?: Date | null;
12
+
13
+ // Associations
14
+ prestationComplementary?: IPrestationComplementary;
15
+ user?: IUser;
16
+ }
package/ts/types/index.ts CHANGED
@@ -133,6 +133,7 @@ export * from './Interface/models/IPhoneNumber';
133
133
  export * from './Interface/models/IPhonePrefix';
134
134
  export * from './Interface/models/IPhonePrefixChild';
135
135
  export * from './Interface/models/IPrestationHistory';
136
+ export * from './Interface/models/IPrestationComplementaryHistory';
136
137
  export * from './Interface/models/IPrestation';
137
138
  export * from './Interface/models/IPrestationComplementary';
138
139
  export * from './Interface/models/IPrestationList';
@@ -374,6 +375,7 @@ export * from './Enum/CityOfGreffe';
374
375
  export * from './Enum/StatutsSection';
375
376
  export * from './Enum/Contribution';
376
377
  export * from './Enum/PrestationOption';
378
+ export * from './Enum/PrestationState';
377
379
  export * from './Enum/TimeCounterType';
378
380
  export * from './Enum/CustomerSignature';
379
381
  export * from './Enum/MailAuto';
@@ -903,6 +905,7 @@ export * from './Interface/api/registration/UpdateRegistration';
903
905
  export * from './Interface/api/registration/CreateRegistration';
904
906
  export * from './Interface/api/journal/Journals';
905
907
  export * from './Interface/api/journal/QueryJournal';
908
+ export * from './Interface/api/juridicalMission/Query';
906
909
  export * from './Interface/api/registration/DeclareRegistration';
907
910
  export * from './Interface/api/balanceSheet/ReadBalanceSheetTransaction';
908
911
  export * from './Interface/api/balanceSheet/VatControl';