@silexpert/core 1.3.158-1 → 1.3.158-11
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/Report.d.ts.map +1 -1
- package/dist/cjs/api/resources/Report.js +12 -1
- package/dist/cjs/api/resources/Report.js.map +1 -1
- package/dist/cjs/types/Enum/ReportService.js +20 -20
- package/dist/cjs/types/Enum/ReportService.js.map +1 -1
- package/dist/cjs/types/Enum/ReportSource.d.ts +2 -1
- package/dist/cjs/types/Enum/ReportSource.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReportSource.js +5 -0
- package/dist/cjs/types/Enum/ReportSource.js.map +1 -1
- 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/Interface/api/report/CreateReport.d.ts +2 -0
- package/dist/cjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/CreateReport.js +18 -0
- package/dist/cjs/types/Interface/api/report/CreateReport.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/ExternalReport.d.ts +1 -1
- package/dist/cjs/types/Interface/api/report/ExternalReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/ExternalReport.js +5 -5
- package/dist/cjs/types/Interface/api/report/ExternalReport.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReports.d.ts +4 -0
- package/dist/cjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/QueryReports.js +20 -0
- package/dist/cjs/types/Interface/api/report/QueryReports.js.map +1 -1
- package/dist/cjs/types/Interface/models/IReport.d.ts +3 -0
- 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/mjs/api/resources/Report.d.ts.map +1 -1
- package/dist/mjs/api/resources/Report.js +12 -1
- package/dist/mjs/api/resources/Report.js.map +1 -1
- package/dist/mjs/types/Enum/ReportService.js +20 -20
- package/dist/mjs/types/Enum/ReportService.js.map +1 -1
- package/dist/mjs/types/Enum/ReportSource.d.ts +2 -1
- package/dist/mjs/types/Enum/ReportSource.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReportSource.js +5 -0
- package/dist/mjs/types/Enum/ReportSource.js.map +1 -1
- 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/Interface/api/report/CreateReport.d.ts +2 -0
- package/dist/mjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/CreateReport.js +20 -0
- package/dist/mjs/types/Interface/api/report/CreateReport.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/ExternalReport.d.ts +1 -1
- package/dist/mjs/types/Interface/api/report/ExternalReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/ExternalReport.js +5 -7
- package/dist/mjs/types/Interface/api/report/ExternalReport.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReports.d.ts +4 -0
- package/dist/mjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/QueryReports.js +23 -1
- package/dist/mjs/types/Interface/api/report/QueryReports.js.map +1 -1
- package/dist/mjs/types/Interface/models/IReport.d.ts +3 -0
- package/dist/mjs/types/Interface/models/IReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IReport.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Report.ts +11 -1
- package/ts/types/Enum/ReportService.ts +4 -4
- package/ts/types/Enum/ReportSource.ts +5 -0
- package/ts/types/Enum/ReportType.ts +41 -1
- package/ts/types/Interface/api/report/CreateReport.ts +16 -0
- package/ts/types/Interface/api/report/ExternalReport.ts +4 -4
- package/ts/types/Interface/api/report/QueryReports.ts +17 -1
- package/ts/types/Interface/models/IReport.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,YAAY,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,MAAO,SAAQ,QAAQ;IAClC,WAAW,CACT,MAAM,EAAE,YAAY,GAAG,aAAa,EACpC,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IAOpC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAOhH,mBAAmB,CACjB,MAAM,EAAE,qBAAqB,EAC7B,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,EAAE,CAAC;IAOrB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAGzD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAK7D,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,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GAAG,OAAO,CAAC,MAAM,CAAC;CAG9C"}
|
|
@@ -19,7 +19,18 @@ class Report extends Resource_1.Resource {
|
|
|
19
19
|
return this.axios.$put(`/reports/${id}`, Object.assign({}, data));
|
|
20
20
|
}
|
|
21
21
|
create(params) {
|
|
22
|
-
|
|
22
|
+
const formData = new FormData();
|
|
23
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
24
|
+
if (value || value === false || value === 0) {
|
|
25
|
+
if (key === 'file')
|
|
26
|
+
formData.append('file', value);
|
|
27
|
+
else if (key === 'metadata')
|
|
28
|
+
formData.append('metadata', JSON.stringify(value));
|
|
29
|
+
else
|
|
30
|
+
formData.append(key, value);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
return this.axios.$post('/reports', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
23
34
|
}
|
|
24
35
|
createExternal(params) {
|
|
25
36
|
const formData = new FormData();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Report.js","sourceRoot":"","sources":["../../../../ts/api/resources/Report.ts"],"names":[],"mappings":";;;AAeA,0CAAuC;AAEvC,MAAa,MAAO,SAAQ,mBAAQ;IAClC,WAAW,CACT,MAAoC,EACpC,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,gCAC/B,MAAM,IACH,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GACpC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAC7B,CAAC;IACL,CAAC;IACD,QAAQ,CAAC,MAAyB,EAAE,WAAyB,EAAE,MAAoB;QACjF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,gCACrC,MAAM,IACH,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,E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AAC,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;CACF;AApED,wBAoEC","sourcesContent":["import { CancelToken } from 'axios';\nimport {\n BasePaginate,\n CreateExternalReport,\n CreateReport,\n DeleteReport,\n IReport,\n QueryPaginate,\n QueryReports,\n QueryReportsForLetter,\n QueryReportsStats,\n ReadReport,\n ReadReportStats,\n UpdateReport,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Report extends Resource {\n getPaginate(\n params: QueryReports & QueryPaginate,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<ReadReport>> {\n return this.axios.$get('/reports', {\n params,\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n });\n }\n getStats(params: QueryReportsStats, cancelToken?: CancelToken, signal?: AbortSignal): Promise<ReadReportStats[]> {\n return this.axios.$get('/reports/stats', {\n params,\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n });\n }\n getReportsForLetter(\n params: QueryReportsForLetter,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<IReport[]> {\n return this.axios.$get('/reports/letter', {\n params,\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n });\n }\n update(params: UpdateReport): Promise<[number, Report[]]> {\n return this.axios.$put('/reports', params);\n }\n updateV2(id: number, data: Partial<IReport>): Promise<Report> {\n return this.axios.$put(`/reports/${id}`, {\n ...data,\n });\n }\n create(params: CreateReport): Promise<Report> {\n const formData = new FormData();\n\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'file') formData.append('file', value);\n else if (key === 'metadata') formData.append('metadata', JSON.stringify(value));\n else formData.append(key, value);\n }\n });\n\n return this.axios.$post('/reports', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n createExternal(params: CreateExternalReport): Promise<true> {\n const formData = new FormData();\n\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'file') formData.append('file', value);\n else if (key === 'metadata') formData.append('metadata', JSON.stringify(value));\n else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post('/reports/external', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n delete(params: DeleteReport): Promise<Report> {\n return this.axios.$delete(`/reports/${params.id}`);\n }\n}\n"]}
|
|
@@ -11,35 +11,35 @@ var ReportService;
|
|
|
11
11
|
ReportService[ReportService["REFERENT_CLIENT"] = 5] = "REFERENT_CLIENT";
|
|
12
12
|
})(ReportService || (exports.ReportService = ReportService = {}));
|
|
13
13
|
exports.ReportServiceList = [
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
/* {
|
|
15
|
+
id: ReportService.REFERENT_LITIGE,
|
|
16
|
+
label: 'Référent litige',
|
|
17
|
+
idRole: RoleDetail.REFERENT_LITIGE.id,
|
|
18
|
+
idTaskType: 12,
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
21
|
+
id: ReportService.COMPTABLE,
|
|
22
|
+
label: 'Comptable',
|
|
23
|
+
idRole: RoleDetail.FRONT_OFFICE.id,
|
|
24
|
+
idTaskType: 16,
|
|
25
|
+
}, */
|
|
26
26
|
{
|
|
27
27
|
id: ReportService.CUSTOMER_SUCCESS,
|
|
28
28
|
label: 'Customer Success',
|
|
29
29
|
idRole: RoleDetail_1.RoleDetail.CUSTOMER_SUCCESS.id,
|
|
30
30
|
idTaskType: 14,
|
|
31
31
|
},
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
/* {
|
|
33
|
+
id: ReportService.EXPERT_ACCOUNTANT,
|
|
34
|
+
label: 'Expert Comptable',
|
|
35
|
+
idRole: RoleDetail.EXPERT_ACCOUNTANT.id,
|
|
36
|
+
idTaskType: 15,
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
},
|
|
39
|
+
id: ReportService.REFERENT_CLIENT,
|
|
40
|
+
label: 'Référent client',
|
|
41
|
+
idRole: RoleDetail.REFERENT_CLIENT.id,
|
|
42
|
+
idTaskType: 13,
|
|
43
|
+
}, */
|
|
44
44
|
];
|
|
45
45
|
//# sourceMappingURL=ReportService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportService.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportService.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAI1C,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,uEAAmB,CAAA;IACnB,2DAAa,CAAA;IACb,yEAAoB,CAAA;IACpB,2EAAqB,CAAA;IACrB,uEAAmB,CAAA;AACrB,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAEY,QAAA,iBAAiB,GAAe;IAC3C;
|
|
1
|
+
{"version":3,"file":"ReportService.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportService.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAI1C,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,uEAAmB,CAAA;IACnB,2DAAa,CAAA;IACb,yEAAoB,CAAA;IACpB,2EAAqB,CAAA;IACrB,uEAAmB,CAAA;AACrB,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAEY,QAAA,iBAAiB,GAAe;IAC3C;;;;;;;;;;;SAWK;IACL;QACE,EAAE,EAAE,aAAa,CAAC,gBAAgB;QAClC,KAAK,EAAE,kBAAkB;QACzB,MAAM,EAAE,uBAAU,CAAC,gBAAgB,CAAC,EAAE;QACtC,UAAU,EAAE,EAAE;KACf;IACD;;;;;;;;;;;SAWK;CACN,CAAC","sourcesContent":["import { RoleDetail } from './RoleDetail';\n\nexport type ListReport = Array<{ label: string; id: number; idRole: number; idTaskType: number }>;\n\nexport enum ReportService {\n REFERENT_LITIGE = 1,\n COMPTABLE = 2,\n CUSTOMER_SUCCESS = 3,\n EXPERT_ACCOUNTANT = 4,\n REFERENT_CLIENT = 5,\n}\n\nexport const ReportServiceList: ListReport = [\n /* {\n id: ReportService.REFERENT_LITIGE,\n label: 'Référent litige',\n idRole: RoleDetail.REFERENT_LITIGE.id,\n idTaskType: 12,\n },\n {\n id: ReportService.COMPTABLE,\n label: 'Comptable',\n idRole: RoleDetail.FRONT_OFFICE.id,\n idTaskType: 16,\n }, */\n {\n id: ReportService.CUSTOMER_SUCCESS,\n label: 'Customer Success',\n idRole: RoleDetail.CUSTOMER_SUCCESS.id,\n idTaskType: 14,\n },\n /* {\n id: ReportService.EXPERT_ACCOUNTANT,\n label: 'Expert Comptable',\n idRole: RoleDetail.EXPERT_ACCOUNTANT.id,\n idTaskType: 15,\n },\n {\n id: ReportService.REFERENT_CLIENT,\n label: 'Référent client',\n idRole: RoleDetail.REFERENT_CLIENT.id,\n idTaskType: 13,\n }, */\n];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportSource.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportSource.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,MAAM,IAAI;IACV,IAAI,IAAI;IACR,QAAQ,IAAI;
|
|
1
|
+
{"version":3,"file":"ReportSource.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportSource.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,MAAM,IAAI;IACV,IAAI,IAAI;IACR,QAAQ,IAAI;IACZ,MAAM,IAAI;CACX;AAED,UAAU,qBAAqB;IAC7B,EAAE,EAAE,YAAY,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,mBAAmB,EAAE,qBAAqB,EAiBtD,CAAC"}
|
|
@@ -6,6 +6,7 @@ var ReportSource;
|
|
|
6
6
|
ReportSource[ReportSource["LETTER"] = 1] = "LETTER";
|
|
7
7
|
ReportSource[ReportSource["MAIL"] = 2] = "MAIL";
|
|
8
8
|
ReportSource[ReportSource["INTERNAL"] = 3] = "INTERNAL";
|
|
9
|
+
ReportSource[ReportSource["CLIENT"] = 4] = "CLIENT";
|
|
9
10
|
})(ReportSource || (exports.ReportSource = ReportSource = {}));
|
|
10
11
|
exports.ReportSourceDetails = [
|
|
11
12
|
{
|
|
@@ -20,5 +21,9 @@ exports.ReportSourceDetails = [
|
|
|
20
21
|
id: ReportSource.INTERNAL,
|
|
21
22
|
name: 'Interne',
|
|
22
23
|
},
|
|
24
|
+
{
|
|
25
|
+
id: ReportSource.CLIENT,
|
|
26
|
+
name: 'Client',
|
|
27
|
+
},
|
|
23
28
|
];
|
|
24
29
|
//# sourceMappingURL=ReportSource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportSource.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportSource.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"ReportSource.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportSource.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,mDAAU,CAAA;IACV,+CAAQ,CAAA;IACR,uDAAY,CAAA;IACZ,mDAAU,CAAA;AACZ,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAOY,QAAA,mBAAmB,GAA4B;IAC1D;QACE,EAAE,EAAE,YAAY,CAAC,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,EAAE,EAAE,YAAY,CAAC,IAAI;QACrB,IAAI,EAAE,MAAM;KACb;IACD;QACE,EAAE,EAAE,YAAY,CAAC,QAAQ;QACzB,IAAI,EAAE,SAAS;KAChB;IACD;QACE,EAAE,EAAE,YAAY,CAAC,MAAM;QACvB,IAAI,EAAE,QAAQ;KACf;CACF,CAAC","sourcesContent":["export enum ReportSource {\n LETTER = 1,\n MAIL = 2,\n INTERNAL = 3,\n CLIENT = 4,\n}\n\ninterface ReportSourceInterface {\n id: ReportSource;\n name: string;\n}\n\nexport const ReportSourceDetails: ReportSourceInterface[] = [\n {\n id: ReportSource.LETTER,\n name: 'Courrier',\n },\n {\n id: ReportSource.MAIL,\n name: 'Mail',\n },\n {\n id: ReportSource.INTERNAL,\n name: 'Interne',\n },\n {\n id: ReportSource.CLIENT,\n name: 'Client',\n },\n];\n"]}
|
|
@@ -20,7 +20,15 @@ export declare enum ReportTypeEnum {
|
|
|
20
20
|
ACCOUNTANT_CHANGE = 18,
|
|
21
21
|
VOLONTARY_UNPAID = 19,
|
|
22
22
|
LACK_OF_COMMUNICATION = 20,
|
|
23
|
-
LACK_OF_ADVICE = 21
|
|
23
|
+
LACK_OF_ADVICE = 21,
|
|
24
|
+
LAWYER = 22,
|
|
25
|
+
JURIDICAL_PROTECTION = 23,
|
|
26
|
+
TAXES = 24,
|
|
27
|
+
VAT = 25,
|
|
28
|
+
VAT_DELAYS = 26,
|
|
29
|
+
BALANCE_SHEET = 27,
|
|
30
|
+
THREAT = 28,
|
|
31
|
+
LOGICIEL = 29
|
|
24
32
|
}
|
|
25
33
|
interface ReportTypeInterface {
|
|
26
34
|
id: ReportTypeEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportType.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA6B,MAAM,aAAa,CAAC;AAEnE,oBAAY,cAAc;IACxB,MAAM,IAAI;IACV,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,WAAW,IAAI;IACf,gBAAgB,IAAI;IACpB,WAAW,IAAI;IACf,gBAAgB,IAAI;IACpB,cAAc,IAAI;IAClB,YAAY,KAAK;IACjB,oBAAoB,KAAK;IACzB,wBAAwB,KAAK;IAC7B,iBAAiB,KAAK;IACtB,WAAW,KAAK;IAChB,kBAAkB,KAAK;IACvB,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,iBAAiB,KAAK;IACtB,gBAAgB,KAAK;IACrB,qBAAqB,KAAK;IAC1B,cAAc,KAAK;
|
|
1
|
+
{"version":3,"file":"ReportType.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA6B,MAAM,aAAa,CAAC;AAEnE,oBAAY,cAAc;IACxB,MAAM,IAAI;IACV,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,WAAW,IAAI;IACf,gBAAgB,IAAI;IACpB,WAAW,IAAI;IACf,gBAAgB,IAAI;IACpB,cAAc,IAAI;IAClB,YAAY,KAAK;IACjB,oBAAoB,KAAK;IACzB,wBAAwB,KAAK;IAC7B,iBAAiB,KAAK;IACtB,WAAW,KAAK;IAChB,kBAAkB,KAAK;IACvB,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,iBAAiB,KAAK;IACtB,gBAAgB,KAAK;IACrB,qBAAqB,KAAK;IAC1B,cAAc,KAAK;IACnB,MAAM,KAAK;IACX,oBAAoB,KAAK;IACzB,KAAK,KAAK;IACV,GAAG,KAAK;IACR,UAAU,KAAK;IACf,aAAa,KAAK;IAClB,MAAM,KAAK;IACX,QAAQ,KAAK;CACd;AAED,UAAU,mBAAmB;IAC3B,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;CAqHnD,CAAC;AAEX,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,mBAAmB,EAAE,GAAG,SAAS,EAAE,CAAC;CAC9C;AAID,eAAO,MAAM,sBAAsB,EAAE,+BAA+B,EAuB1D,CAAC"}
|
|
@@ -25,11 +25,19 @@ var ReportTypeEnum;
|
|
|
25
25
|
ReportTypeEnum[ReportTypeEnum["VOLONTARY_UNPAID"] = 19] = "VOLONTARY_UNPAID";
|
|
26
26
|
ReportTypeEnum[ReportTypeEnum["LACK_OF_COMMUNICATION"] = 20] = "LACK_OF_COMMUNICATION";
|
|
27
27
|
ReportTypeEnum[ReportTypeEnum["LACK_OF_ADVICE"] = 21] = "LACK_OF_ADVICE";
|
|
28
|
+
ReportTypeEnum[ReportTypeEnum["LAWYER"] = 22] = "LAWYER";
|
|
29
|
+
ReportTypeEnum[ReportTypeEnum["JURIDICAL_PROTECTION"] = 23] = "JURIDICAL_PROTECTION";
|
|
30
|
+
ReportTypeEnum[ReportTypeEnum["TAXES"] = 24] = "TAXES";
|
|
31
|
+
ReportTypeEnum[ReportTypeEnum["VAT"] = 25] = "VAT";
|
|
32
|
+
ReportTypeEnum[ReportTypeEnum["VAT_DELAYS"] = 26] = "VAT_DELAYS";
|
|
33
|
+
ReportTypeEnum[ReportTypeEnum["BALANCE_SHEET"] = 27] = "BALANCE_SHEET";
|
|
34
|
+
ReportTypeEnum[ReportTypeEnum["THREAT"] = 28] = "THREAT";
|
|
35
|
+
ReportTypeEnum[ReportTypeEnum["LOGICIEL"] = 29] = "LOGICIEL";
|
|
28
36
|
})(ReportTypeEnum || (exports.ReportTypeEnum = ReportTypeEnum = {}));
|
|
29
37
|
exports.ReportType = {
|
|
30
38
|
LETTER: {
|
|
31
39
|
id: ReportTypeEnum.LETTER,
|
|
32
|
-
name:
|
|
40
|
+
name: "Lettre à l'ordre",
|
|
33
41
|
},
|
|
34
42
|
FRAUD: {
|
|
35
43
|
id: ReportTypeEnum.FRAUD,
|
|
@@ -111,6 +119,38 @@ exports.ReportType = {
|
|
|
111
119
|
id: ReportTypeEnum.LACK_OF_ADVICE,
|
|
112
120
|
name: 'Manque de conseil',
|
|
113
121
|
},
|
|
122
|
+
LAWYER: {
|
|
123
|
+
id: ReportTypeEnum.LAWYER,
|
|
124
|
+
name: 'Avocat',
|
|
125
|
+
},
|
|
126
|
+
JURIDICAL_PROTECTION: {
|
|
127
|
+
id: ReportTypeEnum.JURIDICAL_PROTECTION,
|
|
128
|
+
name: 'Protection juridique',
|
|
129
|
+
},
|
|
130
|
+
TAXES: {
|
|
131
|
+
id: ReportTypeEnum.TAXES,
|
|
132
|
+
name: 'Impôts',
|
|
133
|
+
},
|
|
134
|
+
VAT: {
|
|
135
|
+
id: ReportTypeEnum.VAT,
|
|
136
|
+
name: 'TVA',
|
|
137
|
+
},
|
|
138
|
+
VAT_DELAYS: {
|
|
139
|
+
id: ReportTypeEnum.VAT_DELAYS,
|
|
140
|
+
name: 'Retard de TVA',
|
|
141
|
+
},
|
|
142
|
+
BALANCE_SHEET: {
|
|
143
|
+
id: ReportTypeEnum.BALANCE_SHEET,
|
|
144
|
+
name: 'Bilan',
|
|
145
|
+
},
|
|
146
|
+
THREAT: {
|
|
147
|
+
id: ReportTypeEnum.THREAT,
|
|
148
|
+
name: 'Menace de poursuite (Ordre, Avocats, etc...)',
|
|
149
|
+
},
|
|
150
|
+
LOGICIEL: {
|
|
151
|
+
id: ReportTypeEnum.LOGICIEL,
|
|
152
|
+
name: 'Logiciel',
|
|
153
|
+
},
|
|
114
154
|
};
|
|
115
155
|
const ReportTypeValues = Object.values(exports.ReportType);
|
|
116
156
|
exports.reportExternalCategory = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportType.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":";;;AAAA,2CAAmE;AAEnE,IAAY,
|
|
1
|
+
{"version":3,"file":"ReportType.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportType.ts"],"names":[],"mappings":";;;AAAA,2CAAmE;AAEnE,IAAY,cA8BX;AA9BD,WAAY,cAAc;IACxB,uDAAU,CAAA;IACV,qDAAS,CAAA;IACT,2DAAY,CAAA;IACZ,yDAAW,CAAA;IACX,iEAAe,CAAA;IACf,2EAAoB,CAAA;IACpB,iEAAe,CAAA;IACf,2EAAoB,CAAA;IACpB,uEAA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AAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;KACtG;IACD;QACE,KAAK,EAAE,uBAAuB;QAC9B,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAC1C,CAAC,cAAc,CAAC,qBAAqB,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAC1F;KACF;CACO,CAAC","sourcesContent":["import { IssueType, IssueTypeEnum, issueTypes } from './IssueType';\n\nexport enum ReportTypeEnum {\n LETTER = 1,\n FRAUD = 2,\n ATTITUDE = 3,\n BLOCKED = 4,\n NO_RESPONSE = 5,\n NEGATIVE_OPINION = 6,\n LATE_ANSWER = 7,\n UNHAPPY_CUSTOMER = 8,\n FISCAL_CONTROL = 9,\n REDRESSEMENT = 10,\n BALANCE_SHEET_DELAYS = 11,\n OTHER_DECLARATION_DELAYS = 12,\n CUSTOMER_PLATFORM = 13,\n REVALUATION = 14,\n INVOICING_AND_FEES = 15,\n APPOINTMENT = 16,\n CLAIM_MAIL = 17,\n ACCOUNTANT_CHANGE = 18,\n VOLONTARY_UNPAID = 19,\n LACK_OF_COMMUNICATION = 20,\n LACK_OF_ADVICE = 21,\n LAWYER = 22,\n JURIDICAL_PROTECTION = 23,\n TAXES = 24,\n VAT = 25,\n VAT_DELAYS = 26,\n BALANCE_SHEET = 27,\n THREAT = 28,\n LOGICIEL = 29,\n}\n\ninterface ReportTypeInterface {\n id: ReportTypeEnum;\n name: string;\n}\n\nexport const ReportType: { [key: string]: ReportTypeInterface } = {\n LETTER: {\n id: ReportTypeEnum.LETTER,\n name: \"Lettre à l'ordre\",\n },\n FRAUD: {\n id: ReportTypeEnum.FRAUD,\n name: 'Suspicion de fraude',\n },\n ATTITUDE: {\n id: ReportTypeEnum.ATTITUDE,\n name: 'Attitude déplacée',\n },\n BLOCKED: {\n id: ReportTypeEnum.BLOCKED,\n name: 'Dossier bloqué',\n },\n NO_RESPONSE: {\n id: ReportTypeEnum.NO_RESPONSE,\n name: 'Pas de réponse',\n },\n NEGATIVE_OPINION: {\n id: ReportTypeEnum.NEGATIVE_OPINION,\n name: 'Avis négatif',\n },\n LATE_ANSWER: {\n id: ReportTypeEnum.LATE_ANSWER,\n name: 'Réponse de + de 3 mois',\n },\n UNHAPPY_CUSTOMER: {\n id: ReportTypeEnum.UNHAPPY_CUSTOMER,\n name: 'Client mécontent',\n },\n FISCAL_CONTROL: {\n id: ReportTypeEnum.FISCAL_CONTROL,\n name: 'Contrôle fiscal en cours',\n },\n REDRESSEMENT: {\n id: ReportTypeEnum.REDRESSEMENT,\n name: 'Redressement',\n },\n BALANCE_SHEET_DELAYS: {\n id: ReportTypeEnum.BALANCE_SHEET_DELAYS,\n name: 'Retard de production bilan',\n },\n OTHER_DECLARATION_DELAYS: {\n id: ReportTypeEnum.OTHER_DECLARATION_DELAYS,\n name: 'Retard de production autre déclaration',\n },\n CUSTOMER_PLATFORM: {\n id: ReportTypeEnum.CUSTOMER_PLATFORM,\n name: 'Plateforme client',\n },\n REVALUATION: {\n id: ReportTypeEnum.REVALUATION,\n name: 'Revalorisation',\n },\n INVOICING_AND_FEES: {\n id: ReportTypeEnum.INVOICING_AND_FEES,\n name: 'Facturation et honoraires',\n },\n APPOINTMENT: {\n id: ReportTypeEnum.APPOINTMENT,\n name: 'Rendez-vous non honorés',\n },\n CLAIM_MAIL: {\n id: ReportTypeEnum.CLAIM_MAIL,\n name: 'Réclamation courrier reçu',\n },\n ACCOUNTANT_CHANGE: {\n id: ReportTypeEnum.ACCOUNTANT_CHANGE,\n name: 'Demande de changement de comptable',\n },\n VOLONTARY_UNPAID: {\n id: ReportTypeEnum.VOLONTARY_UNPAID,\n name: 'Impayé volontaire',\n },\n LACK_OF_COMMUNICATION: {\n id: ReportTypeEnum.LACK_OF_COMMUNICATION,\n name: 'Manque de communication',\n },\n LACK_OF_ADVICE: {\n id: ReportTypeEnum.LACK_OF_ADVICE,\n name: 'Manque de conseil',\n },\n LAWYER: {\n id: ReportTypeEnum.LAWYER,\n name: 'Avocat',\n },\n JURIDICAL_PROTECTION: {\n id: ReportTypeEnum.JURIDICAL_PROTECTION,\n name: 'Protection juridique',\n },\n TAXES: {\n id: ReportTypeEnum.TAXES,\n name: 'Impôts',\n },\n VAT: {\n id: ReportTypeEnum.VAT,\n name: 'TVA',\n },\n VAT_DELAYS: {\n id: ReportTypeEnum.VAT_DELAYS,\n name: 'Retard de TVA',\n },\n BALANCE_SHEET: {\n id: ReportTypeEnum.BALANCE_SHEET,\n name: 'Bilan',\n },\n THREAT: {\n id: ReportTypeEnum.THREAT,\n name: 'Menace de poursuite (Ordre, Avocats, etc...)',\n },\n LOGICIEL: {\n id: ReportTypeEnum.LOGICIEL,\n name: 'Logiciel',\n },\n} as const;\n\nexport interface ReportExternalCategoryInterface {\n label: string;\n options: ReportTypeInterface[] | IssueType[];\n}\n\nconst ReportTypeValues = Object.values(ReportType);\n\nexport const reportExternalCategory: ReportExternalCategoryInterface[] = [\n {\n label: 'Retards de prestations',\n options: ReportTypeValues.filter((report) =>\n [ReportTypeEnum.BALANCE_SHEET_DELAYS, ReportTypeEnum.OTHER_DECLARATION_DELAYS].includes(report.id),\n ),\n },\n {\n label: 'Logiciel / Application client',\n options: issueTypes.filter((issue) =>\n [IssueTypeEnum.ANNOTATIONS, IssueTypeEnum.SYNCHRONIZATIONS, IssueTypeEnum.OTHER].includes(issue.id),\n ),\n },\n {\n label: 'Facturation et honoraires',\n options: ReportTypeValues.filter((report) => [ReportTypeEnum.INVOICING_AND_FEES].includes(report.id)),\n },\n {\n label: 'Accompagnement client',\n options: ReportTypeValues.filter((report) =>\n [ReportTypeEnum.LACK_OF_COMMUNICATION, ReportTypeEnum.LACK_OF_ADVICE].includes(report.id),\n ),\n },\n] as const;\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IReport } from '../../..';
|
|
2
2
|
import { TFile } from '../file/TFile';
|
|
3
3
|
export declare class CreateReport implements IReport {
|
|
4
|
+
idSource: number;
|
|
4
5
|
idReportType?: number[];
|
|
5
6
|
idSociety?: number;
|
|
6
7
|
idFile?: number;
|
|
@@ -15,6 +16,7 @@ export declare class CreateReport implements IReport {
|
|
|
15
16
|
action?: number;
|
|
16
17
|
processed?: boolean;
|
|
17
18
|
letterDate?: Date;
|
|
19
|
+
receivedAt?: Date;
|
|
18
20
|
receivedFile?: TFile;
|
|
19
21
|
responseFile?: TFile;
|
|
20
22
|
token?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateReport.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"CreateReport.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGtC,qBAAa,YAAa,YAAW,OAAO;IAG1C,QAAQ,EAAE,MAAM,CAAC;IAYjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAKxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;IAKf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAI5B,OAAO,EAAE,MAAM,CAAC;IAKhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,eAAe,CAAC,EAAE,OAAO,CAAC;IAK1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,WAAW,CAAC,EAAE,OAAO,CAAC;IAKtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAIpB,UAAU,CAAC,EAAE,IAAI,CAAC;IAIlB,UAAU,CAAC,EAAE,IAAI,CAAC;IAIlB,YAAY,CAAC,EAAE,KAAK,CAAC;IAIrB,YAAY,CAAC,EAAE,KAAK,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -12,12 +12,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateReport = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
16
|
class CreateReport {
|
|
16
17
|
}
|
|
17
18
|
exports.CreateReport = CreateReport;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, utils_1.ApiProperty)(),
|
|
21
|
+
(0, class_validator_1.IsInt)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], CreateReport.prototype, "idSource", void 0);
|
|
18
24
|
__decorate([
|
|
19
25
|
(0, utils_1.ApiPropertyOptional)(),
|
|
20
26
|
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
28
|
+
if (typeof value === 'string') {
|
|
29
|
+
return value.split(',').map((v) => Number(v.trim()));
|
|
30
|
+
}
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
32
|
+
return value;
|
|
33
|
+
}),
|
|
21
34
|
(0, class_validator_1.IsInt)({ each: true }),
|
|
22
35
|
__metadata("design:type", Array)
|
|
23
36
|
], CreateReport.prototype, "idReportType", void 0);
|
|
@@ -93,6 +106,11 @@ __decorate([
|
|
|
93
106
|
(0, class_validator_1.IsOptional)(),
|
|
94
107
|
__metadata("design:type", Date)
|
|
95
108
|
], CreateReport.prototype, "letterDate", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
111
|
+
(0, class_validator_1.IsOptional)(),
|
|
112
|
+
__metadata("design:type", Date)
|
|
113
|
+
], CreateReport.prototype, "receivedAt", void 0);
|
|
96
114
|
__decorate([
|
|
97
115
|
(0, utils_1.ApiPropertyOptional)(),
|
|
98
116
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateReport.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,6CAAqE;
|
|
1
|
+
{"version":3,"file":"CreateReport.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/CreateReport.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,6CAAqE;AAErE,yDAA8C;AAE9C,MAAa,YAAY;CA4FxB;AA5FD,oCA4FC;AAzFC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;8CACS;AAYjB;IAVC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACvB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC;QACD,+DAA+D;QAC/D,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IACD,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACE;AAKxB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;+CACW;AAKnB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IAC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 'class-validator';\nimport { IReport } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TFile } from '../file/TFile';\nimport { Transform } from 'class-transformer';\n\nexport class CreateReport implements IReport {\n @ApiProperty()\n @IsInt()\n idSource: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @Transform(({ value }) => {\n if (typeof value === 'string') {\n return value.split(',').map((v) => Number(v.trim()));\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return value;\n })\n @IsInt({ each: true })\n idReportType?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idFile?: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idServiceConcerned?: number;\n\n @ApiProperty()\n @IsString()\n comment: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n declareSoupcons?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n state?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n informerjlb?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n ressenti?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n action?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n processed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n letterDate?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n receivedAt?: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n receivedFile?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n responseFile?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalReport.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/ExternalReport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,qBAAa,oBAAoB;IAK/B,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,YAAY,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ExternalReport.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/ExternalReport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,qBAAa,oBAAoB;IAK/B,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAIhB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGnC,IAAI,CAAC,EAAE,KAAK,CAAC;IAIb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -13,6 +13,7 @@ exports.CreateExternalReport = void 0;
|
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
const IssueType_1 = require("../../../Enum/IssueType");
|
|
16
|
+
const ReportType_1 = require("../../../Enum/ReportType");
|
|
16
17
|
class CreateExternalReport {
|
|
17
18
|
}
|
|
18
19
|
exports.CreateExternalReport = CreateExternalReport;
|
|
@@ -25,11 +26,10 @@ __decorate([
|
|
|
25
26
|
], CreateExternalReport.prototype, "idIssueType", void 0);
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, utils_1.ApiPropertyOptional)(),
|
|
28
|
-
(0, class_validator_1.IsOptional)()
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
,
|
|
32
|
-
__metadata("design:type", Array)
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsInt)(),
|
|
31
|
+
(0, class_validator_1.IsEnum)(ReportType_1.ReportTypeEnum),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
33
|
], CreateExternalReport.prototype, "idReportType", void 0);
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, utils_1.ApiProperty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalReport.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/ExternalReport.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,6CAAqE;AACrE,uDAAwD;
|
|
1
|
+
{"version":3,"file":"ExternalReport.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/ExternalReport.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,6CAAqE;AACrE,uDAAwD;AACxD,yDAA0D;AAG1D,MAAa,oBAAoB;CA+BhC;AA/BD,oDA+BC;AA1BC;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,yBAAa,CAAC;;yDACD;AAMrB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,wBAAM,EAAC,2BAAc,CAAC;;0DACD;AAItB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;uDACO;AAIlB;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;qDACK;AAIhB;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;sDACsB;AAGnC;IADC,IAAA,2BAAmB,GAAE;;kDACT;AAIb;IAFC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;;sDACM","sourcesContent":["import { IsEnum, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IssueTypeEnum } from '../../../Enum/IssueType';\nimport { ReportTypeEnum } from '../../../Enum/ReportType';\nimport { TFile } from '../file/TFile';\n\nexport class CreateExternalReport {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(IssueTypeEnum)\n idIssueType?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @IsEnum(ReportTypeEnum)\n idReportType?: number;\n\n @ApiProperty()\n @IsNumber()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n comment: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n metadata?: Record<string, unknown>;\n\n @ApiPropertyOptional()\n file?: TFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n isMobile?: boolean;\n}\n"]}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare class QueryReports {
|
|
2
|
+
idSource?: number[];
|
|
2
3
|
idReportType?: number[];
|
|
3
4
|
idSociety?: number;
|
|
4
5
|
idService?: number;
|
|
6
|
+
idUserConcerned?: number;
|
|
5
7
|
idServiceConcerned?: number;
|
|
6
8
|
id?: number;
|
|
7
9
|
search?: string;
|
|
@@ -9,5 +11,7 @@ export declare class QueryReports {
|
|
|
9
11
|
state?: number;
|
|
10
12
|
idUser?: number | number[];
|
|
11
13
|
onlyClient?: boolean;
|
|
14
|
+
startDate?: string;
|
|
15
|
+
endDate?: string;
|
|
12
16
|
}
|
|
13
17
|
//# sourceMappingURL=QueryReports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryReports.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/QueryReports.ts"],"names":[],"mappings":"AAIA,qBAAa,YAAY;IAEvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAGxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAM3B,UAAU,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"QueryReports.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/QueryReports.ts"],"names":[],"mappings":"AAIA,qBAAa,YAAY;IAEvB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAGpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAGxB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAM3B,UAAU,CAAC,EAAE,OAAO,CAAC;IAKb,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -16,6 +16,10 @@ const boolean_transform_1 = require("../../../../utils/transforms/boolean.transf
|
|
|
16
16
|
class QueryReports {
|
|
17
17
|
}
|
|
18
18
|
exports.QueryReports = QueryReports;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
21
|
+
__metadata("design:type", Array)
|
|
22
|
+
], QueryReports.prototype, "idSource", void 0);
|
|
19
23
|
__decorate([
|
|
20
24
|
(0, utils_1.ApiPropertyOptional)(),
|
|
21
25
|
__metadata("design:type", Array)
|
|
@@ -28,6 +32,10 @@ __decorate([
|
|
|
28
32
|
(0, utils_1.ApiPropertyOptional)(),
|
|
29
33
|
__metadata("design:type", Number)
|
|
30
34
|
], QueryReports.prototype, "idService", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], QueryReports.prototype, "idUserConcerned", void 0);
|
|
31
39
|
__decorate([
|
|
32
40
|
(0, utils_1.ApiPropertyOptional)(),
|
|
33
41
|
__metadata("design:type", Number)
|
|
@@ -59,4 +67,16 @@ __decorate([
|
|
|
59
67
|
(0, boolean_transform_1.ToBoolean)(),
|
|
60
68
|
__metadata("design:type", Boolean)
|
|
61
69
|
], QueryReports.prototype, "onlyClient", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
|
+
(0, class_validator_1.IsDateString)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], QueryReports.prototype, "startDate", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, utils_1.ApiPropertyOptional)(),
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsDateString)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], QueryReports.prototype, "endDate", void 0);
|
|
62
82
|
//# sourceMappingURL=QueryReports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryReports.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/QueryReports.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"QueryReports.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/QueryReports.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsE;AACtE,6CAAwD;AACxD,sFAA2E;AAE3E,MAAa,YAAY;CAiDxB;AAjDD,oCAiDC;AA/CC;IADC,IAAA,2BAAmB,GAAE;;8CACF;AAGpB;IADC,IAAA,2BAAmB,GAAE;;kDACE;AAGxB;IADC,IAAA,2BAAmB,GAAE;;+CACH;AAGnB;IADC,IAAA,2BAAmB,GAAE;;+CACH;AAGnB;IADC,IAAA,2BAAmB,GAAE;;qDACG;AAGzB;IADC,IAAA,2BAAmB,GAAE;;wDACM;AAG5B;IADC,IAAA,2BAAmB,GAAE;;wCACV;AAGZ;IADC,IAAA,2BAAmB,GAAE;;4CACN;AAGhB;IADC,IAAA,2BAAmB,GAAE;;0CACR;AAGd;IADC,IAAA,2BAAmB,GAAE;;2CACP;AAGf;IADC,IAAA,2BAAmB,GAAE;;4CACK;AAM3B;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;gDACS;AAKb;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;+CACY;AAKnB;IAHP,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,8BAAY,GAAE;;6CACU","sourcesContent":["import { IsBoolean, IsDateString, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryReports {\n @ApiPropertyOptional()\n idSource?: number[];\n\n @ApiPropertyOptional()\n idReportType?: number[];\n\n @ApiPropertyOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n idService?: number;\n\n @ApiPropertyOptional()\n idUserConcerned?: number;\n\n @ApiPropertyOptional()\n idServiceConcerned?: number;\n\n @ApiPropertyOptional()\n id?: number;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n year?: number;\n\n @ApiPropertyOptional()\n state?: number;\n\n @ApiPropertyOptional()\n idUser?: number | number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n onlyClient?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n declare startDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n declare endDate?: string;\n}\n"]}
|
|
@@ -18,6 +18,7 @@ export interface IReport {
|
|
|
18
18
|
idServiceConcerned?: number | null;
|
|
19
19
|
idService?: number | null;
|
|
20
20
|
idFile?: number | null;
|
|
21
|
+
fileLink?: string;
|
|
21
22
|
idLetterType?: number | null;
|
|
22
23
|
declareSoupcons?: boolean | null;
|
|
23
24
|
token?: string | null;
|
|
@@ -29,8 +30,10 @@ export interface IReport {
|
|
|
29
30
|
ressenti?: number | null;
|
|
30
31
|
action?: number | null;
|
|
31
32
|
processed?: boolean | null;
|
|
33
|
+
receivedAt?: Date | null;
|
|
32
34
|
createdAt?: Date | null;
|
|
33
35
|
updatedAt?: Date | null;
|
|
36
|
+
deletedAt?: Date | null;
|
|
34
37
|
society?: ISociety;
|
|
35
38
|
file?: IFile;
|
|
36
39
|
calendarEvent?: ICalendarEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IReport.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,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sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReport.ts"],"names":[],"mappings":"","sourcesContent":["import { ReportTypeEnum } from '../../Enum/ReportType';\nimport { ICalendarEvent } from './ICalendarEvent';\nimport { IComment } from './IComment';\nimport { ICustomerAcceptance } from './ICustomerAcceptance';\nimport { IFile } from './IFile';\nimport { ILetter } from './ILetter';\nimport { IReportHistory } from './IReportHistory';\nimport { IReportMessage } from './IReportMessage';\nimport { ISociety } from './ISociety';\nimport { IUser } from './IUser';\n\n// report\nexport interface IReport {\n id?: number;\n idSociety?: number | null;\n idSource?: number | null;\n idReportType?: ReportTypeEnum[] | null;\n idCalendarEvent?: number;\n idUserConcerned?: number | null;\n idServiceConcerned?: number | null;\n idService?: number | null;\n idFile?: number | null;\n idLetterType?: number | null;\n declareSoupcons?: boolean | null;\n token?: string | null;\n state?: number | null;\n compensationAmount?: number | null;\n compensationDate?: Date | null;\n compensationType?: number | null;\n informerjlb?: boolean | null;\n ressenti?: number | null;\n action?: number | null;\n processed?: boolean | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n file?: IFile;\n calendarEvent?: ICalendarEvent;\n userConcerned?: IUser;\n comments?: IComment[];\n messages?: IReportMessage[];\n customerAcceptance?: ICustomerAcceptance;\n letter?: ILetter;\n history?: IReportHistory[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IReport.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReport.ts"],"names":[],"mappings":"","sourcesContent":["import { ReportTypeEnum } from '../../Enum/ReportType';\nimport { ICalendarEvent } from './ICalendarEvent';\nimport { IComment } from './IComment';\nimport { ICustomerAcceptance } from './ICustomerAcceptance';\nimport { IFile } from './IFile';\nimport { ILetter } from './ILetter';\nimport { IReportHistory } from './IReportHistory';\nimport { IReportMessage } from './IReportMessage';\nimport { ISociety } from './ISociety';\nimport { IUser } from './IUser';\n\n// report\nexport interface IReport {\n id?: number;\n idSociety?: number | null;\n idSource?: number | null;\n idReportType?: ReportTypeEnum[] | null;\n idCalendarEvent?: number;\n idUserConcerned?: number | null;\n idServiceConcerned?: number | null;\n idService?: number | null;\n idFile?: number | null;\n fileLink?: string;\n idLetterType?: number | null;\n declareSoupcons?: boolean | null;\n token?: string | null;\n state?: number | null;\n compensationAmount?: number | null;\n compensationDate?: Date | null;\n compensationType?: number | null;\n informerjlb?: boolean | null;\n ressenti?: number | null;\n action?: number | null;\n processed?: boolean | null;\n receivedAt?: Date | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n file?: IFile;\n calendarEvent?: ICalendarEvent;\n userConcerned?: IUser;\n comments?: IComment[];\n messages?: IReportMessage[];\n customerAcceptance?: ICustomerAcceptance;\n letter?: ILetter;\n history?: IReportHistory[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,YAAY,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,MAAO,SAAQ,QAAQ;IAClC,WAAW,CACT,MAAM,EAAE,YAAY,GAAG,aAAa,EACpC,WAAW,CAAC,EAAE,WAAW,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IAOpC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAOhH,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,CAAC;IAOrB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAGzD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAK7D,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAa7C,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAc3D,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;CAG9C"}
|
|
@@ -30,7 +30,18 @@ export class Report extends Resource {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
create(params) {
|
|
33
|
-
|
|
33
|
+
const formData = new FormData();
|
|
34
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
35
|
+
if (value || value === false || value === 0) {
|
|
36
|
+
if (key === 'file')
|
|
37
|
+
formData.append('file', value);
|
|
38
|
+
else if (key === 'metadata')
|
|
39
|
+
formData.append('metadata', JSON.stringify(value));
|
|
40
|
+
else
|
|
41
|
+
formData.append(key, value);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return this.axios.$post('/reports', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
34
45
|
}
|
|
35
46
|
createExternal(params) {
|
|
36
47
|
const formData = new FormData();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Report.js","sourceRoot":"","sources":["../../../../ts/api/resources/Report.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,MAAO,SAAQ,QAAQ;IAClC,WAAW,CACT,MAAoC,EACpC,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE;YACjC,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,CAAC,EAAE,CAAC;gBAC5C,IAAI,GAAG,KAAK,MAAM;oBAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;qBAC9C,IAAI,GAAG,KAAK,UAAU;oBAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;;oBAC3E,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;YACxC,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACjH,CAAC;IAED,MAAM,CAAC,MAAoB;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;IACrD,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport {\n BasePaginate,\n CreateExternalReport,\n CreateReport,\n DeleteReport,\n IReport,\n QueryPaginate,\n QueryReports,\n QueryReportsForLetter,\n QueryReportsStats,\n ReadReport,\n ReadReportStats,\n UpdateReport,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Report extends Resource {\n getPaginate(\n params: QueryReports & QueryPaginate,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<ReadReport>> {\n return this.axios.$get('/reports', {\n params,\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n });\n }\n getStats(params: QueryReportsStats, cancelToken?: CancelToken, signal?: AbortSignal): Promise<ReadReportStats[]> {\n return this.axios.$get('/reports/stats', {\n params,\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n });\n }\n getReportsForLetter(\n params: QueryReportsForLetter,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<IReport[]> {\n return this.axios.$get('/reports/letter', {\n params,\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n });\n }\n update(params: UpdateReport): Promise<[number, Report[]]> {\n return this.axios.$put('/reports', params);\n }\n updateV2(id: number, data: Partial<IReport>): Promise<Report> {\n return this.axios.$put(`/reports/${id}`, {\n ...data,\n });\n }\n create(params: CreateReport): Promise<Report> {\n const formData = new FormData();\n\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'file') formData.append('file', value);\n else if (key === 'metadata') formData.append('metadata', JSON.stringify(value));\n else formData.append(key, value);\n }\n });\n\n return this.axios.$post('/reports', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n createExternal(params: CreateExternalReport): Promise<true> {\n const formData = new FormData();\n\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'file') formData.append('file', value);\n else if (key === 'metadata') formData.append('metadata', JSON.stringify(value));\n else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post('/reports/external', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n delete(params: DeleteReport): Promise<Report> {\n return this.axios.$delete(`/reports/${params.id}`);\n }\n}\n"]}
|