@silexpert/core 1.3.191 → 1.3.192-0
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/Comment.d.ts +2 -2
- package/dist/cjs/api/resources/Comment.d.ts.map +1 -1
- package/dist/cjs/api/resources/Comment.js.map +1 -1
- package/dist/cjs/api/resources/Report.d.ts +4 -3
- package/dist/cjs/api/resources/Report.d.ts.map +1 -1
- package/dist/cjs/api/resources/Report.js +15 -1
- package/dist/cjs/api/resources/Report.js.map +1 -1
- package/dist/cjs/api/resources/ReportHistory.d.ts +13 -0
- package/dist/cjs/api/resources/ReportHistory.d.ts.map +1 -0
- package/dist/cjs/api/resources/ReportHistory.js +18 -0
- package/dist/cjs/api/resources/ReportHistory.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +4 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +4 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/ReportService.d.ts +4 -1
- package/dist/cjs/types/Enum/ReportService.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReportService.js +39 -18
- package/dist/cjs/types/Enum/ReportService.js.map +1 -1
- package/dist/cjs/types/Enum/ReportSource.d.ts +13 -0
- package/dist/cjs/types/Enum/ReportSource.d.ts.map +1 -0
- package/dist/cjs/types/Enum/ReportSource.js +29 -0
- package/dist/cjs/types/Enum/ReportSource.js.map +1 -0
- package/dist/cjs/types/Enum/ReportType.d.ts +9 -1
- package/dist/cjs/types/Enum/ReportType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReportType.js +41 -1
- package/dist/cjs/types/Enum/ReportType.js.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.js +33 -0
- package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/CreateReport.d.ts +3 -1
- package/dist/cjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/CreateReport.js +11 -2
- package/dist/cjs/types/Interface/api/report/CreateReport.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReports.d.ts +5 -1
- package/dist/cjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReports.js +21 -1
- package/dist/cjs/types/Interface/api/report/QueryReports.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReportsForLetter.d.ts +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReportsForLetter.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReportsForLetter.js +4 -3
- package/dist/cjs/types/Interface/api/report/QueryReportsForLetter.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/UpdateReport.d.ts +13 -6
- package/dist/cjs/types/Interface/api/report/UpdateReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/UpdateReport.js +120 -0
- package/dist/cjs/types/Interface/api/report/UpdateReport.js.map +1 -1
- package/dist/cjs/types/Interface/api/reportHistory/Query.d.ts +4 -0
- package/dist/cjs/types/Interface/api/reportHistory/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/reportHistory/Query.js +23 -0
- package/dist/cjs/types/Interface/api/reportHistory/Query.js.map +1 -0
- package/dist/cjs/types/Interface/models/IReport.d.ts +10 -1
- package/dist/cjs/types/Interface/models/IReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IReport.js.map +1 -1
- package/dist/cjs/types/Interface/models/IReportHistory.d.ts +19 -0
- package/dist/cjs/types/Interface/models/IReportHistory.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IReportHistory.js +3 -0
- package/dist/cjs/types/Interface/models/IReportHistory.js.map +1 -0
- 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/Comment.d.ts +2 -2
- package/dist/mjs/api/resources/Comment.d.ts.map +1 -1
- package/dist/mjs/api/resources/Comment.js.map +1 -1
- package/dist/mjs/api/resources/Report.d.ts +4 -3
- package/dist/mjs/api/resources/Report.d.ts.map +1 -1
- package/dist/mjs/api/resources/Report.js +17 -1
- package/dist/mjs/api/resources/Report.js.map +1 -1
- package/dist/mjs/api/resources/ReportHistory.d.ts +13 -0
- package/dist/mjs/api/resources/ReportHistory.d.ts.map +1 -0
- package/dist/mjs/api/resources/ReportHistory.js +17 -0
- package/dist/mjs/api/resources/ReportHistory.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +4 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +4 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/ReportService.d.ts +4 -1
- package/dist/mjs/types/Enum/ReportService.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReportService.js +39 -18
- package/dist/mjs/types/Enum/ReportService.js.map +1 -1
- package/dist/mjs/types/Enum/ReportSource.d.ts +13 -0
- package/dist/mjs/types/Enum/ReportSource.d.ts.map +1 -0
- package/dist/mjs/types/Enum/ReportSource.js +26 -0
- package/dist/mjs/types/Enum/ReportSource.js.map +1 -0
- package/dist/mjs/types/Enum/ReportType.d.ts +9 -1
- package/dist/mjs/types/Enum/ReportType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReportType.js +41 -1
- package/dist/mjs/types/Enum/ReportType.js.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.js +33 -0
- package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/CreateReport.d.ts +3 -1
- package/dist/mjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/CreateReport.js +13 -2
- package/dist/mjs/types/Interface/api/report/CreateReport.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReports.d.ts +5 -1
- package/dist/mjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReports.js +24 -2
- package/dist/mjs/types/Interface/api/report/QueryReports.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReportsForLetter.d.ts +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReportsForLetter.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReportsForLetter.js +5 -3
- package/dist/mjs/types/Interface/api/report/QueryReportsForLetter.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/UpdateReport.d.ts +13 -6
- package/dist/mjs/types/Interface/api/report/UpdateReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/UpdateReport.js +135 -1
- package/dist/mjs/types/Interface/api/report/UpdateReport.js.map +1 -1
- package/dist/mjs/types/Interface/api/reportHistory/Query.d.ts +4 -0
- package/dist/mjs/types/Interface/api/reportHistory/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/reportHistory/Query.js +20 -0
- package/dist/mjs/types/Interface/api/reportHistory/Query.js.map +1 -0
- package/dist/mjs/types/Interface/models/IReport.d.ts +10 -1
- package/dist/mjs/types/Interface/models/IReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IReport.js.map +1 -1
- package/dist/mjs/types/Interface/models/IReportHistory.d.ts +19 -0
- package/dist/mjs/types/Interface/models/IReportHistory.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IReportHistory.js +2 -0
- package/dist/mjs/types/Interface/models/IReportHistory.js.map +1 -0
- 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/Comment.ts +2 -2
- package/ts/api/resources/Report.ts +19 -4
- package/ts/api/resources/ReportHistory.ts +18 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/ReportService.ts +24 -3
- package/ts/types/Enum/ReportSource.ts +30 -0
- package/ts/types/Enum/ReportType.ts +41 -1
- package/ts/types/Enum/TaskResponseType.ts +33 -0
- package/ts/types/Interface/api/report/CreateReport.ts +9 -2
- package/ts/types/Interface/api/report/QueryReports.ts +18 -2
- package/ts/types/Interface/api/report/QueryReportsForLetter.ts +2 -2
- package/ts/types/Interface/api/report/UpdateReport.ts +85 -6
- package/ts/types/Interface/api/reportHistory/Query.ts +8 -0
- package/ts/types/Interface/models/IReport.ts +10 -1
- package/ts/types/Interface/models/IReportHistory.ts +22 -0
- package/ts/types/index.ts +3 -0
|
@@ -2,7 +2,7 @@ import { Resource } from '../Resource';
|
|
|
2
2
|
import { IComment } from '../../types';
|
|
3
3
|
|
|
4
4
|
export class Comment extends Resource {
|
|
5
|
-
getAll(params: Partial<IComment>): Promise<
|
|
5
|
+
getAll(params: Partial<IComment>): Promise<IComment[]> {
|
|
6
6
|
return this.axios.$get('/comments', { params });
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ export class Comment extends Resource {
|
|
|
10
10
|
return this.axios.$post('/comments', payload);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
update(idComment: number, payload: Partial<IComment>): Promise<
|
|
13
|
+
update(idComment: number, payload: Partial<IComment>): Promise<IComment> {
|
|
14
14
|
return this.axios.$put(`/comments/${idComment}`, payload);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -45,11 +45,26 @@ export class Report extends Resource {
|
|
|
45
45
|
...(signal ? { signal } : {}),
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
update(params: UpdateReport): Promise<[number,
|
|
48
|
+
update(params: UpdateReport): Promise<[number, IReport[]]> {
|
|
49
49
|
return this.axios.$put('/reports', params);
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
return this.axios.$
|
|
51
|
+
updateV2(id: number, data: Partial<IReport>): Promise<IReport> {
|
|
52
|
+
return this.axios.$put(`/reports/${id}`, {
|
|
53
|
+
...data,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
create(params: CreateReport): Promise<IReport> {
|
|
57
|
+
const formData = new FormData();
|
|
58
|
+
|
|
59
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
60
|
+
if (value || value === false || value === 0) {
|
|
61
|
+
if (key === 'file') formData.append('file', value);
|
|
62
|
+
else if (key === 'metadata') formData.append('metadata', JSON.stringify(value));
|
|
63
|
+
else formData.append(key, value);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
return this.axios.$post('/reports', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
53
68
|
}
|
|
54
69
|
createExternal(params: CreateExternalReport): Promise<true> {
|
|
55
70
|
const formData = new FormData();
|
|
@@ -65,7 +80,7 @@ export class Report extends Resource {
|
|
|
65
80
|
return this.axios.$post('/reports/external', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
66
81
|
}
|
|
67
82
|
|
|
68
|
-
delete(params: DeleteReport): Promise<
|
|
83
|
+
delete(params: DeleteReport): Promise<IReport> {
|
|
69
84
|
return this.axios.$delete(`/reports/${params.id}`);
|
|
70
85
|
}
|
|
71
86
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IReportHistory, QueryAllReportHistory } from '../../types';
|
|
2
|
+
import { Resource } from '../Resource';
|
|
3
|
+
|
|
4
|
+
export class ReportHistory extends Resource {
|
|
5
|
+
/**
|
|
6
|
+
* Report Message Get All
|
|
7
|
+
* @param { QueryAllReportHistory } params
|
|
8
|
+
* @param { CancelToken } cancelToken
|
|
9
|
+
* @param { AbortSignal } signal
|
|
10
|
+
* @returns { Promise<IReportHistory[]> }
|
|
11
|
+
*/
|
|
12
|
+
getAll(params: QueryAllReportHistory, signal?: AbortSignal): Promise<IReportHistory[]> {
|
|
13
|
+
return this.axios.$get('/report-history/all', {
|
|
14
|
+
params,
|
|
15
|
+
...(signal ? { signal } : {}),
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -188,7 +188,9 @@ import { BalanceSheetReport } from './resources/BalanceSheetReport';
|
|
|
188
188
|
import { Revenue } from './resources/Revenue';
|
|
189
189
|
import { InformationRequest } from './resources/InformationRequest';
|
|
190
190
|
import { AutomaticRegistration } from './resources/AutomaticRegistration';
|
|
191
|
+
import { LoginApproval } from './resources/LoginApproval';
|
|
191
192
|
import { SocietyApproval } from './resources/SocietyApproval';
|
|
193
|
+
import { ReportHistory } from './resources/ReportHistory';
|
|
192
194
|
|
|
193
195
|
export const resources = {
|
|
194
196
|
budgetInsight: BudgetInsight,
|
|
@@ -381,5 +383,7 @@ export const resources = {
|
|
|
381
383
|
revenue: Revenue,
|
|
382
384
|
informationRequest: InformationRequest,
|
|
383
385
|
automaticRegistration: AutomaticRegistration,
|
|
386
|
+
loginApproval: LoginApproval,
|
|
384
387
|
societyApproval: SocietyApproval,
|
|
388
|
+
reportHistory: ReportHistory,
|
|
385
389
|
};
|
|
@@ -8,10 +8,13 @@ export enum ReportService {
|
|
|
8
8
|
CUSTOMER_SUCCESS = 3,
|
|
9
9
|
EXPERT_ACCOUNTANT = 4,
|
|
10
10
|
REFERENT_CLIENT = 5,
|
|
11
|
+
SOCIAL = 6,
|
|
12
|
+
JURIDICAL = 7,
|
|
13
|
+
INVOICING = 8,
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
export const ReportServiceList: ListReport = [
|
|
14
|
-
{
|
|
17
|
+
/* {
|
|
15
18
|
id: ReportService.REFERENT_LITIGE,
|
|
16
19
|
label: 'Référent litige',
|
|
17
20
|
idRole: RoleDetail.REFERENT_LITIGE.id,
|
|
@@ -22,6 +25,24 @@ export const ReportServiceList: ListReport = [
|
|
|
22
25
|
label: 'Comptable',
|
|
23
26
|
idRole: RoleDetail.FRONT_OFFICE.id,
|
|
24
27
|
idTaskType: 16,
|
|
28
|
+
}, */
|
|
29
|
+
{
|
|
30
|
+
id: ReportService.SOCIAL,
|
|
31
|
+
label: 'Social',
|
|
32
|
+
idRole: RoleDetail.SOCIAL.id,
|
|
33
|
+
idTaskType: 28,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: ReportService.JURIDICAL,
|
|
37
|
+
label: 'Juridique',
|
|
38
|
+
idRole: RoleDetail.JURIDIC.id,
|
|
39
|
+
idTaskType: 29,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: ReportService.INVOICING,
|
|
43
|
+
label: 'Facturation',
|
|
44
|
+
idRole: RoleDetail.FACTURATION.id,
|
|
45
|
+
idTaskType: 30,
|
|
25
46
|
},
|
|
26
47
|
{
|
|
27
48
|
id: ReportService.CUSTOMER_SUCCESS,
|
|
@@ -29,7 +50,7 @@ export const ReportServiceList: ListReport = [
|
|
|
29
50
|
idRole: RoleDetail.CUSTOMER_SUCCESS.id,
|
|
30
51
|
idTaskType: 14,
|
|
31
52
|
},
|
|
32
|
-
{
|
|
53
|
+
/* {
|
|
33
54
|
id: ReportService.EXPERT_ACCOUNTANT,
|
|
34
55
|
label: 'Expert Comptable',
|
|
35
56
|
idRole: RoleDetail.EXPERT_ACCOUNTANT.id,
|
|
@@ -40,5 +61,5 @@ export const ReportServiceList: ListReport = [
|
|
|
40
61
|
label: 'Référent client',
|
|
41
62
|
idRole: RoleDetail.REFERENT_CLIENT.id,
|
|
42
63
|
idTaskType: 13,
|
|
43
|
-
},
|
|
64
|
+
}, */
|
|
44
65
|
];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export enum ReportSource {
|
|
2
|
+
LETTER = 1,
|
|
3
|
+
MAIL = 2,
|
|
4
|
+
INTERNAL = 3,
|
|
5
|
+
CLIENT = 4,
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface ReportSourceInterface {
|
|
9
|
+
id: ReportSource;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const ReportSourceDetails: ReportSourceInterface[] = [
|
|
14
|
+
{
|
|
15
|
+
id: ReportSource.LETTER,
|
|
16
|
+
name: 'Courrier',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: ReportSource.MAIL,
|
|
20
|
+
name: 'Mail',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: ReportSource.INTERNAL,
|
|
24
|
+
name: 'Interne',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: ReportSource.CLIENT,
|
|
28
|
+
name: 'Client',
|
|
29
|
+
},
|
|
30
|
+
];
|
|
@@ -22,6 +22,14 @@ export enum ReportTypeEnum {
|
|
|
22
22
|
VOLONTARY_UNPAID = 19,
|
|
23
23
|
LACK_OF_COMMUNICATION = 20,
|
|
24
24
|
LACK_OF_ADVICE = 21,
|
|
25
|
+
LAWYER = 22,
|
|
26
|
+
JURIDICAL_PROTECTION = 23,
|
|
27
|
+
TAXES = 24,
|
|
28
|
+
VAT = 25,
|
|
29
|
+
VAT_DELAYS = 26,
|
|
30
|
+
BALANCE_SHEET = 27,
|
|
31
|
+
THREAT = 28,
|
|
32
|
+
LOGICIEL = 29,
|
|
25
33
|
}
|
|
26
34
|
|
|
27
35
|
interface ReportTypeInterface {
|
|
@@ -32,7 +40,7 @@ interface ReportTypeInterface {
|
|
|
32
40
|
export const ReportType: { [key: string]: ReportTypeInterface } = {
|
|
33
41
|
LETTER: {
|
|
34
42
|
id: ReportTypeEnum.LETTER,
|
|
35
|
-
name:
|
|
43
|
+
name: "Lettre à l'ordre",
|
|
36
44
|
},
|
|
37
45
|
FRAUD: {
|
|
38
46
|
id: ReportTypeEnum.FRAUD,
|
|
@@ -114,6 +122,38 @@ export const ReportType: { [key: string]: ReportTypeInterface } = {
|
|
|
114
122
|
id: ReportTypeEnum.LACK_OF_ADVICE,
|
|
115
123
|
name: 'Manque de conseil',
|
|
116
124
|
},
|
|
125
|
+
LAWYER: {
|
|
126
|
+
id: ReportTypeEnum.LAWYER,
|
|
127
|
+
name: 'Avocat',
|
|
128
|
+
},
|
|
129
|
+
JURIDICAL_PROTECTION: {
|
|
130
|
+
id: ReportTypeEnum.JURIDICAL_PROTECTION,
|
|
131
|
+
name: 'Protection juridique',
|
|
132
|
+
},
|
|
133
|
+
TAXES: {
|
|
134
|
+
id: ReportTypeEnum.TAXES,
|
|
135
|
+
name: 'Impôts',
|
|
136
|
+
},
|
|
137
|
+
VAT: {
|
|
138
|
+
id: ReportTypeEnum.VAT,
|
|
139
|
+
name: 'TVA',
|
|
140
|
+
},
|
|
141
|
+
VAT_DELAYS: {
|
|
142
|
+
id: ReportTypeEnum.VAT_DELAYS,
|
|
143
|
+
name: 'Retard de TVA',
|
|
144
|
+
},
|
|
145
|
+
BALANCE_SHEET: {
|
|
146
|
+
id: ReportTypeEnum.BALANCE_SHEET,
|
|
147
|
+
name: 'Bilan',
|
|
148
|
+
},
|
|
149
|
+
THREAT: {
|
|
150
|
+
id: ReportTypeEnum.THREAT,
|
|
151
|
+
name: 'Menace de poursuite (Ordre, Avocats, etc...)',
|
|
152
|
+
},
|
|
153
|
+
LOGICIEL: {
|
|
154
|
+
id: ReportTypeEnum.LOGICIEL,
|
|
155
|
+
name: 'Logiciel',
|
|
156
|
+
},
|
|
117
157
|
} as const;
|
|
118
158
|
|
|
119
159
|
export interface ReportExternalCategoryInterface {
|
|
@@ -342,6 +342,39 @@ export const TaskResponseType = {
|
|
|
342
342
|
responseType: null,
|
|
343
343
|
description: "la société à été mise à jour sur l'INPI",
|
|
344
344
|
},
|
|
345
|
+
{
|
|
346
|
+
id: 28,
|
|
347
|
+
label: 'Social',
|
|
348
|
+
role: Role.SOCIAL,
|
|
349
|
+
deadline: Deadline,
|
|
350
|
+
isForWholeRole: true,
|
|
351
|
+
backToClient: false,
|
|
352
|
+
goToCalendar: false,
|
|
353
|
+
responseType: null,
|
|
354
|
+
description: 'Signalement pour Social',
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
id: 29,
|
|
358
|
+
label: 'Juridique',
|
|
359
|
+
role: Role.JURIDIC,
|
|
360
|
+
deadline: Deadline,
|
|
361
|
+
isForWholeRole: true,
|
|
362
|
+
backToClient: false,
|
|
363
|
+
goToCalendar: false,
|
|
364
|
+
responseType: null,
|
|
365
|
+
description: 'Signalement pour Juridique',
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
id: 30,
|
|
369
|
+
label: 'Facturation',
|
|
370
|
+
role: Role.FACTURATION,
|
|
371
|
+
deadline: Deadline,
|
|
372
|
+
isForWholeRole: true,
|
|
373
|
+
backToClient: false,
|
|
374
|
+
goToCalendar: false,
|
|
375
|
+
responseType: null,
|
|
376
|
+
description: 'Signalement pour facturation',
|
|
377
|
+
},
|
|
345
378
|
],
|
|
346
379
|
},
|
|
347
380
|
EXTERN: {
|
|
@@ -4,10 +4,13 @@ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
|
4
4
|
import { TFile } from '../file/TFile';
|
|
5
5
|
|
|
6
6
|
export class CreateReport implements IReport {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
@IsInt()
|
|
9
|
+
idSource: number;
|
|
10
|
+
|
|
7
11
|
@ApiPropertyOptional()
|
|
8
12
|
@IsOptional()
|
|
9
|
-
|
|
10
|
-
idReportType?: number;
|
|
13
|
+
idReportType?: number[];
|
|
11
14
|
|
|
12
15
|
@ApiPropertyOptional()
|
|
13
16
|
@IsOptional()
|
|
@@ -68,6 +71,10 @@ export class CreateReport implements IReport {
|
|
|
68
71
|
@IsOptional()
|
|
69
72
|
letterDate?: Date;
|
|
70
73
|
|
|
74
|
+
@ApiPropertyOptional()
|
|
75
|
+
@IsOptional()
|
|
76
|
+
receivedAt?: Date;
|
|
77
|
+
|
|
71
78
|
@ApiPropertyOptional()
|
|
72
79
|
@IsOptional()
|
|
73
80
|
receivedFile?: TFile;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { IsBoolean, IsOptional } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsDateString, IsOptional } from 'class-validator';
|
|
2
2
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
5
5
|
export class QueryReports {
|
|
6
6
|
@ApiPropertyOptional()
|
|
7
|
-
|
|
7
|
+
idSource?: number[];
|
|
8
|
+
|
|
9
|
+
@ApiPropertyOptional()
|
|
10
|
+
idReportType?: number[];
|
|
8
11
|
|
|
9
12
|
@ApiPropertyOptional()
|
|
10
13
|
idSociety?: number;
|
|
@@ -12,6 +15,9 @@ export class QueryReports {
|
|
|
12
15
|
@ApiPropertyOptional()
|
|
13
16
|
idService?: number;
|
|
14
17
|
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
idUserConcerned?: number;
|
|
20
|
+
|
|
15
21
|
@ApiPropertyOptional()
|
|
16
22
|
idServiceConcerned?: number;
|
|
17
23
|
|
|
@@ -35,4 +41,14 @@ export class QueryReports {
|
|
|
35
41
|
@IsBoolean()
|
|
36
42
|
@ToBoolean()
|
|
37
43
|
onlyClient?: boolean;
|
|
44
|
+
|
|
45
|
+
@ApiPropertyOptional()
|
|
46
|
+
@IsOptional()
|
|
47
|
+
@IsDateString()
|
|
48
|
+
declare startDate?: string;
|
|
49
|
+
|
|
50
|
+
@ApiPropertyOptional()
|
|
51
|
+
@IsOptional()
|
|
52
|
+
@IsDateString()
|
|
53
|
+
declare endDate?: string;
|
|
38
54
|
}
|
|
@@ -1,14 +1,93 @@
|
|
|
1
|
-
import { IReport
|
|
1
|
+
import { IReport } from '../../..';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { IsBoolean, IsDateString, IsInt, IsOptional, IsString } from 'class-validator';
|
|
4
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
2
5
|
|
|
3
|
-
export
|
|
6
|
+
export class UpdateReport implements IReport {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsInt()
|
|
10
|
+
idSource: number;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
idReportType?: number[];
|
|
15
|
+
|
|
16
|
+
@ApiPropertyOptional()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
@IsInt()
|
|
19
|
+
idSociety?: number;
|
|
20
|
+
|
|
21
|
+
@ApiPropertyOptional()
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsInt()
|
|
24
|
+
idFile?: number;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsInt()
|
|
4
29
|
idUser: number;
|
|
5
|
-
|
|
6
|
-
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
@IsOptional()
|
|
33
|
+
@IsInt()
|
|
34
|
+
idServiceConcerned?: number;
|
|
35
|
+
|
|
36
|
+
@ApiPropertyOptional()
|
|
37
|
+
@IsOptional()
|
|
38
|
+
@IsString()
|
|
39
|
+
comment: string;
|
|
40
|
+
|
|
41
|
+
@ApiPropertyOptional()
|
|
42
|
+
@IsOptional()
|
|
43
|
+
@IsString()
|
|
44
|
+
search?: string;
|
|
45
|
+
|
|
46
|
+
@ApiPropertyOptional()
|
|
47
|
+
@IsOptional()
|
|
48
|
+
@IsBoolean()
|
|
49
|
+
@ToBoolean()
|
|
7
50
|
declareSoupcons?: boolean;
|
|
51
|
+
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
@IsOptional()
|
|
54
|
+
@IsInt()
|
|
8
55
|
state?: number;
|
|
56
|
+
|
|
57
|
+
@ApiPropertyOptional()
|
|
58
|
+
@IsOptional()
|
|
59
|
+
@IsBoolean()
|
|
60
|
+
@ToBoolean()
|
|
9
61
|
informerjlb?: boolean;
|
|
62
|
+
|
|
63
|
+
@ApiPropertyOptional()
|
|
64
|
+
@IsOptional()
|
|
65
|
+
@IsInt()
|
|
10
66
|
ressenti?: number;
|
|
67
|
+
|
|
68
|
+
@ApiPropertyOptional()
|
|
69
|
+
@IsOptional()
|
|
70
|
+
@IsInt()
|
|
11
71
|
action?: number;
|
|
12
|
-
|
|
13
|
-
|
|
72
|
+
|
|
73
|
+
@ApiPropertyOptional()
|
|
74
|
+
@IsOptional()
|
|
75
|
+
@IsBoolean()
|
|
76
|
+
@ToBoolean()
|
|
77
|
+
processed?: boolean;
|
|
78
|
+
|
|
79
|
+
@ApiPropertyOptional()
|
|
80
|
+
@IsOptional()
|
|
81
|
+
@IsDateString()
|
|
82
|
+
letterDate?: Date;
|
|
83
|
+
|
|
84
|
+
@ApiPropertyOptional()
|
|
85
|
+
@IsOptional()
|
|
86
|
+
@IsDateString()
|
|
87
|
+
receivedAt?: Date;
|
|
88
|
+
|
|
89
|
+
@ApiPropertyOptional()
|
|
90
|
+
@IsOptional()
|
|
91
|
+
@IsString()
|
|
92
|
+
token?: string;
|
|
14
93
|
}
|
|
@@ -4,18 +4,23 @@ import { IComment } from './IComment';
|
|
|
4
4
|
import { ICustomerAcceptance } from './ICustomerAcceptance';
|
|
5
5
|
import { IFile } from './IFile';
|
|
6
6
|
import { ILetter } from './ILetter';
|
|
7
|
+
import { IReportHistory } from './IReportHistory';
|
|
7
8
|
import { IReportMessage } from './IReportMessage';
|
|
8
9
|
import { ISociety } from './ISociety';
|
|
10
|
+
import { IUser } from './IUser';
|
|
9
11
|
|
|
10
12
|
// report
|
|
11
13
|
export interface IReport {
|
|
12
14
|
id?: number;
|
|
13
15
|
idSociety?: number | null;
|
|
14
|
-
|
|
16
|
+
idSource?: number | null;
|
|
17
|
+
idReportType?: ReportTypeEnum[] | null;
|
|
15
18
|
idCalendarEvent?: number;
|
|
19
|
+
idUserConcerned?: number | null;
|
|
16
20
|
idServiceConcerned?: number | null;
|
|
17
21
|
idService?: number | null;
|
|
18
22
|
idFile?: number | null;
|
|
23
|
+
fileLink?: string;
|
|
19
24
|
idLetterType?: number | null;
|
|
20
25
|
declareSoupcons?: boolean | null;
|
|
21
26
|
token?: string | null;
|
|
@@ -27,15 +32,19 @@ export interface IReport {
|
|
|
27
32
|
ressenti?: number | null;
|
|
28
33
|
action?: number | null;
|
|
29
34
|
processed?: boolean | null;
|
|
35
|
+
receivedAt?: Date | null;
|
|
30
36
|
createdAt?: Date | null;
|
|
31
37
|
updatedAt?: Date | null;
|
|
38
|
+
deletedAt?: Date | null;
|
|
32
39
|
|
|
33
40
|
// Associations
|
|
34
41
|
society?: ISociety;
|
|
35
42
|
file?: IFile;
|
|
36
43
|
calendarEvent?: ICalendarEvent;
|
|
44
|
+
userConcerned?: IUser;
|
|
37
45
|
comments?: IComment[];
|
|
38
46
|
messages?: IReportMessage[];
|
|
39
47
|
customerAcceptance?: ICustomerAcceptance;
|
|
40
48
|
letter?: ILetter;
|
|
49
|
+
history?: IReportHistory[];
|
|
41
50
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReportTypeEnum } from '../../Enum/ReportType';
|
|
2
|
+
import { IReport } from './IReport';
|
|
3
|
+
import { IUser } from './IUser';
|
|
4
|
+
|
|
5
|
+
// reportHistory
|
|
6
|
+
export interface IReportHistory {
|
|
7
|
+
id?: number;
|
|
8
|
+
idSource?: number | null;
|
|
9
|
+
idReportType?: ReportTypeEnum[] | null;
|
|
10
|
+
state?: number | null;
|
|
11
|
+
idUserConcerned?: number | null;
|
|
12
|
+
idServiceConcerned?: number | null;
|
|
13
|
+
idReport?: number;
|
|
14
|
+
idUser?: number | null;
|
|
15
|
+
createdAt?: Date | null;
|
|
16
|
+
updatedAt?: Date | null;
|
|
17
|
+
|
|
18
|
+
// Associations
|
|
19
|
+
userConcerned?: IUser;
|
|
20
|
+
report?: IReport;
|
|
21
|
+
user?: IUser;
|
|
22
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -147,6 +147,7 @@ export * from './Interface/models/IRegisterCategory';
|
|
|
147
147
|
export * from './Interface/models/IRegulate';
|
|
148
148
|
export * from './Interface/models/IRegulation';
|
|
149
149
|
export * from './Interface/models/IReport';
|
|
150
|
+
export * from './Interface/models/IReportHistory';
|
|
150
151
|
export * from './Interface/models/IReportMessage';
|
|
151
152
|
export * from './Interface/models/IRole';
|
|
152
153
|
export * from './Interface/models/IRoleUser';
|
|
@@ -393,6 +394,7 @@ export * from './Enum/SurveyType';
|
|
|
393
394
|
export * from './Enum/SurveyTypeDatas';
|
|
394
395
|
export * from './Enum/PaymentMethod';
|
|
395
396
|
export * from './Enum/ReportType';
|
|
397
|
+
export * from './Enum/ReportSource';
|
|
396
398
|
export * from './Enum/IssueType';
|
|
397
399
|
export * from './Enum/AdjustmentType';
|
|
398
400
|
export * from './Enum/ReportState';
|
|
@@ -803,6 +805,7 @@ export * from './Interface/api/report/DeleteReport';
|
|
|
803
805
|
export * from './Interface/api/report/QueryReports';
|
|
804
806
|
export * from './Interface/api/report/QueryReportsStats';
|
|
805
807
|
export * from './Interface/api/report/QueryReportsForLetter';
|
|
808
|
+
export * from './Interface/api/reportHistory/Query';
|
|
806
809
|
export * from './Interface/api/reportMessage/Query';
|
|
807
810
|
export * from './Interface/api/letter/CreateLetter';
|
|
808
811
|
export * from './Interface/api/mailInvoice/CreateInvoiceMail';
|