@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.
- package/dist/cjs/api/resources/Commercial.d.ts +2 -1
- package/dist/cjs/api/resources/Commercial.d.ts.map +1 -1
- package/dist/cjs/api/resources/Commercial.js +3 -0
- package/dist/cjs/api/resources/Commercial.js.map +1 -1
- package/dist/cjs/api/resources/Transaction.d.ts +2 -1
- package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/cjs/api/resources/Transaction.js +3 -0
- package/dist/cjs/api/resources/Transaction.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationState.d.ts +5 -1
- package/dist/cjs/types/Enum/PrestationState.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationState.js +28 -0
- package/dist/cjs/types/Enum/PrestationState.js.map +1 -1
- package/dist/cjs/types/Interface/api/SocietyTransaction/Query.d.ts +4 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Query.js +23 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Read.d.ts +5 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Read.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Read.js +7 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Read.js.map +1 -0
- package/dist/cjs/types/Interface/api/commercial/Query.d.ts +5 -0
- package/dist/cjs/types/Interface/api/commercial/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/commercial/Query.js +30 -0
- package/dist/cjs/types/Interface/api/commercial/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/jeDeclare/Util.d.ts +2 -0
- package/dist/cjs/types/Interface/api/jeDeclare/Util.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/jeDeclare/Util.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
- package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.js +6 -0
- package/dist/cjs/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Commercial.d.ts +2 -1
- package/dist/mjs/api/resources/Commercial.d.ts.map +1 -1
- package/dist/mjs/api/resources/Commercial.js +6 -0
- package/dist/mjs/api/resources/Commercial.js.map +1 -1
- package/dist/mjs/api/resources/Transaction.d.ts +2 -1
- package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/mjs/api/resources/Transaction.js +6 -0
- package/dist/mjs/api/resources/Transaction.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationState.d.ts +5 -1
- package/dist/mjs/types/Enum/PrestationState.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationState.js +28 -0
- package/dist/mjs/types/Enum/PrestationState.js.map +1 -1
- package/dist/mjs/types/Interface/api/SocietyTransaction/Query.d.ts +4 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Query.js +20 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Read.d.ts +5 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Read.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Read.js +5 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Read.js.map +1 -0
- package/dist/mjs/types/Interface/api/commercial/Query.d.ts +5 -0
- package/dist/mjs/types/Interface/api/commercial/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/commercial/Query.js +28 -0
- package/dist/mjs/types/Interface/api/commercial/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/jeDeclare/Util.d.ts +2 -0
- package/dist/mjs/types/Interface/api/jeDeclare/Util.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/jeDeclare/Util.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
- package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.js +7 -0
- package/dist/mjs/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/dist/mjs/types/index.d.ts +3 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +3 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Commercial.ts +7 -0
- package/ts/api/resources/Transaction.ts +12 -0
- package/ts/types/Enum/PrestationState.ts +28 -0
- package/ts/types/Interface/api/SocietyTransaction/Query.ts +8 -0
- package/ts/types/Interface/api/SocietyTransaction/Read.ts +4 -0
- package/ts/types/Interface/api/commercial/Query.ts +14 -0
- package/ts/types/Interface/api/jeDeclare/Util.ts +2 -0
- package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +5 -0
- 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,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
|
+
}
|
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';
|