@silexpert/core 1.3.158-3 → 1.3.158-5
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/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/Interface/api/report/ExternalReport.js +4 -4
- 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 +1 -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/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/Interface/api/report/ExternalReport.js +4 -6
- 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 +1 -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/types/Enum/ReportSource.ts +5 -0
- package/ts/types/Interface/api/report/ExternalReport.ts +3 -3
- package/ts/types/Interface/api/report/QueryReports.ts +17 -1
- package/ts/types/Interface/models/IReport.ts +1 -0
|
@@ -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"]}
|
|
@@ -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,10 +26,9 @@ __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
|
-
,
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsInt)(),
|
|
31
|
+
(0, class_validator_1.IsEnum)(ReportType_1.ReportTypeEnum),
|
|
32
32
|
__metadata("design:type", Number)
|
|
33
33
|
], CreateExternalReport.prototype, "idReportType", void 0);
|
|
34
34
|
__decorate([
|
|
@@ -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"]}
|
|
@@ -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,MAAM,SAAS,CAAC;AAGhC,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;IACvC,e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AC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;CAC5B"}
|
|
@@ -1 +1 @@
|
|
|
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 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 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 +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"}
|
|
@@ -3,6 +3,7 @@ export var ReportSource;
|
|
|
3
3
|
ReportSource[ReportSource["LETTER"] = 1] = "LETTER";
|
|
4
4
|
ReportSource[ReportSource["MAIL"] = 2] = "MAIL";
|
|
5
5
|
ReportSource[ReportSource["INTERNAL"] = 3] = "INTERNAL";
|
|
6
|
+
ReportSource[ReportSource["CLIENT"] = 4] = "CLIENT";
|
|
6
7
|
})(ReportSource || (ReportSource = {}));
|
|
7
8
|
export const ReportSourceDetails = [
|
|
8
9
|
{
|
|
@@ -17,5 +18,9 @@ export const ReportSourceDetails = [
|
|
|
17
18
|
id: ReportSource.INTERNAL,
|
|
18
19
|
name: 'Interne',
|
|
19
20
|
},
|
|
21
|
+
{
|
|
22
|
+
id: ReportSource.CLIENT,
|
|
23
|
+
name: 'Client',
|
|
24
|
+
},
|
|
20
25
|
];
|
|
21
26
|
//# sourceMappingURL=ReportSource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportSource.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportSource.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"ReportSource.js","sourceRoot":"","sources":["../../../../ts/types/Enum/ReportSource.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,mDAAU,CAAA;IACV,+CAAQ,CAAA;IACR,uDAAY,CAAA;IACZ,mDAAU,CAAA;AACZ,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAOD,MAAM,CAAC,MAAM,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"]}
|
|
@@ -10,10 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { IsEnum, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
import { IssueTypeEnum } from '../../../Enum/IssueType';
|
|
13
|
+
import { ReportTypeEnum } from '../../../Enum/ReportType';
|
|
13
14
|
export class CreateExternalReport {
|
|
14
15
|
idIssueType;
|
|
15
|
-
//@IsInt({ each: true })
|
|
16
|
-
//@IsEnum(ReportTypeEnum)
|
|
17
16
|
idReportType;
|
|
18
17
|
idSociety;
|
|
19
18
|
comment;
|
|
@@ -30,10 +29,9 @@ __decorate([
|
|
|
30
29
|
], CreateExternalReport.prototype, "idIssueType", void 0);
|
|
31
30
|
__decorate([
|
|
32
31
|
ApiPropertyOptional(),
|
|
33
|
-
IsOptional()
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
,
|
|
32
|
+
IsOptional(),
|
|
33
|
+
IsInt(),
|
|
34
|
+
IsEnum(ReportTypeEnum),
|
|
37
35
|
__metadata("design:type", Number)
|
|
38
36
|
], CreateExternalReport.prototype, "idReportType", void 0);
|
|
39
37
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalReport.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/ExternalReport.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ExternalReport.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/ExternalReport.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,MAAM,OAAO,oBAAoB;IAK/B,WAAW,CAAU;IAMrB,YAAY,CAAU;IAItB,SAAS,CAAS;IAIlB,OAAO,CAAS;IAIhB,QAAQ,CAA2B;IAGnC,IAAI,CAAS;IAIb,QAAQ,CAAW;CACpB;AA1BC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,MAAM,CAAC,aAAa,CAAC;;yDACD;AAMrB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;IACP,MAAM,CAAC,cAAc,CAAC;;0DACD;AAItB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACO;AAIlB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;qDACK;AAIhB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;sDACsB;AAGnC;IADC,mBAAmB,EAAE;;kDACT;AAIb;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;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"}
|
|
@@ -7,13 +7,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsBoolean, IsOptional } from 'class-validator';
|
|
10
|
+
import { IsBoolean, IsDateString, IsOptional } from 'class-validator';
|
|
11
11
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
13
13
|
export class QueryReports {
|
|
14
|
+
idSource;
|
|
14
15
|
idReportType;
|
|
15
16
|
idSociety;
|
|
16
17
|
idService;
|
|
18
|
+
idUserConcerned;
|
|
17
19
|
idServiceConcerned;
|
|
18
20
|
id;
|
|
19
21
|
search;
|
|
@@ -22,6 +24,10 @@ export class QueryReports {
|
|
|
22
24
|
idUser;
|
|
23
25
|
onlyClient;
|
|
24
26
|
}
|
|
27
|
+
__decorate([
|
|
28
|
+
ApiPropertyOptional(),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], QueryReports.prototype, "idSource", void 0);
|
|
25
31
|
__decorate([
|
|
26
32
|
ApiPropertyOptional(),
|
|
27
33
|
__metadata("design:type", Array)
|
|
@@ -34,6 +40,10 @@ __decorate([
|
|
|
34
40
|
ApiPropertyOptional(),
|
|
35
41
|
__metadata("design:type", Number)
|
|
36
42
|
], QueryReports.prototype, "idService", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
ApiPropertyOptional(),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], QueryReports.prototype, "idUserConcerned", void 0);
|
|
37
47
|
__decorate([
|
|
38
48
|
ApiPropertyOptional(),
|
|
39
49
|
__metadata("design:type", Number)
|
|
@@ -65,4 +75,16 @@ __decorate([
|
|
|
65
75
|
ToBoolean(),
|
|
66
76
|
__metadata("design:type", Boolean)
|
|
67
77
|
], QueryReports.prototype, "onlyClient", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
ApiPropertyOptional(),
|
|
80
|
+
IsOptional(),
|
|
81
|
+
IsDateString(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], QueryReports.prototype, "startDate", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
ApiPropertyOptional(),
|
|
86
|
+
IsOptional(),
|
|
87
|
+
IsDateString(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], QueryReports.prototype, "endDate", void 0);
|
|
68
90
|
//# sourceMappingURL=QueryReports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryReports.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/QueryReports.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"QueryReports.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/report/QueryReports.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,YAAY;IAEvB,QAAQ,CAAY;IAGpB,YAAY,CAAY;IAGxB,SAAS,CAAU;IAGnB,SAAS,CAAU;IAGnB,eAAe,CAAU;IAGzB,kBAAkB,CAAU;IAG5B,EAAE,CAAU;IAGZ,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,MAAM,CAAqB;IAM3B,UAAU,CAAW;CAWtB;AA/CC;IADC,mBAAmB,EAAE;;8CACF;AAGpB;IADC,mBAAmB,EAAE;;kDACE;AAGxB;IADC,mBAAmB,EAAE;;+CACH;AAGnB;IADC,mBAAmB,EAAE;;+CACH;AAGnB;IADC,mBAAmB,EAAE;;qDACG;AAGzB;IADC,mBAAmB,EAAE;;wDACM;AAG5B;IADC,mBAAmB,EAAE;;wCACV;AAGZ;IADC,mBAAmB,EAAE;;4CACN;AAGhB;IADC,mBAAmB,EAAE;;0CACR;AAGd;IADC,mBAAmB,EAAE;;2CACP;AAGf;IADC,mBAAmB,EAAE;;4CACK;AAM3B;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;gDACS;AAKb;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;+CACY;AAKnB;IAHP,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;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"]}
|
|
@@ -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,MAAM,SAAS,CAAC;AAGhC,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC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I,CAAC;IACnC,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;CAC5B"}
|
|
@@ -1 +1 @@
|
|
|
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 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 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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.158-
|
|
3
|
+
"version": "1.3.158-5",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -2,6 +2,7 @@ export enum ReportSource {
|
|
|
2
2
|
LETTER = 1,
|
|
3
3
|
MAIL = 2,
|
|
4
4
|
INTERNAL = 3,
|
|
5
|
+
CLIENT = 4,
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
interface ReportSourceInterface {
|
|
@@ -22,4 +23,8 @@ export const ReportSourceDetails: ReportSourceInterface[] = [
|
|
|
22
23
|
id: ReportSource.INTERNAL,
|
|
23
24
|
name: 'Interne',
|
|
24
25
|
},
|
|
26
|
+
{
|
|
27
|
+
id: ReportSource.CLIENT,
|
|
28
|
+
name: 'Client',
|
|
29
|
+
},
|
|
25
30
|
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IsEnum, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { IssueTypeEnum } from '../../../Enum/IssueType';
|
|
4
|
-
|
|
4
|
+
import { ReportTypeEnum } from '../../../Enum/ReportType';
|
|
5
5
|
import { TFile } from '../file/TFile';
|
|
6
6
|
|
|
7
7
|
export class CreateExternalReport {
|
|
@@ -13,8 +13,8 @@ export class CreateExternalReport {
|
|
|
13
13
|
|
|
14
14
|
@ApiPropertyOptional()
|
|
15
15
|
@IsOptional()
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
@IsInt()
|
|
17
|
+
@IsEnum(ReportTypeEnum)
|
|
18
18
|
idReportType?: number;
|
|
19
19
|
|
|
20
20
|
@ApiProperty()
|
|
@@ -1,8 +1,11 @@
|
|
|
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
|
+
@ApiPropertyOptional()
|
|
7
|
+
idSource?: number[];
|
|
8
|
+
|
|
6
9
|
@ApiPropertyOptional()
|
|
7
10
|
idReportType?: number[];
|
|
8
11
|
|
|
@@ -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
|
}
|