sea-platform-helpers 1.5.2 → 1.5.4
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/constants/application/index.d.ts +2 -1
- package/dist/constants/application/index.d.ts.map +1 -1
- package/dist/constants/application/index.js +7 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -1
- package/dist/constants/permission/index.d.ts +9 -1
- package/dist/constants/permission/index.d.ts.map +1 -1
- package/dist/constants/permission/index.js +65 -0
- package/dist/constants/thesis/index.d.ts +31 -0
- package/dist/constants/thesis/index.d.ts.map +1 -0
- package/dist/constants/thesis/index.js +45 -0
- package/dist/dto/index.d.ts +1 -0
- package/dist/dto/index.d.ts.map +1 -1
- package/dist/dto/index.js +2 -1
- package/dist/dto/task/index.d.ts +5 -0
- package/dist/dto/task/index.d.ts.map +1 -1
- package/dist/dto/thesis/index.d.ts +69 -0
- package/dist/dto/thesis/index.d.ts.map +1 -0
- package/dist/dto/thesis/index.js +55 -0
- package/dist/utils/moment/index.d.ts +1 -0
- package/dist/utils/moment/index.d.ts.map +1 -1
- package/dist/utils/moment/index.js +3 -1
- package/dist/utils/numbers/index.d.ts +1 -0
- package/dist/utils/numbers/index.d.ts.map +1 -1
- package/dist/utils/numbers/index.js +16 -1
- package/dist/utils/pdf/index.d.ts +2 -0
- package/dist/utils/pdf/index.d.ts.map +1 -0
- package/dist/utils/pdf/index.js +60 -0
- package/package.json +1 -1
|
@@ -6,7 +6,8 @@ export declare enum ApplicationStatuses {
|
|
|
6
6
|
export declare enum ApplicationKeys {
|
|
7
7
|
PlatformAdministrationApplication = "Platform-Administration-Application",
|
|
8
8
|
PublicCalendarApplication = "Public-Calendar-Application",
|
|
9
|
-
StrategyApplication = "Strategy-Application"
|
|
9
|
+
StrategyApplication = "Strategy-Application",
|
|
10
|
+
FacultyOperationApplication = "Faculty-Operation-Application"
|
|
10
11
|
}
|
|
11
12
|
export declare const Applications: {
|
|
12
13
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/application/index.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,WAAW,gBAAgB;IAC3B,WAAW,iBAAiB;IAC5B,SAAS,cAAc;CACxB;AAED,oBAAY,eAAe;IACzB,iCAAiC,wCAAwC;IACzE,yBAAyB,gCAAgC;IACzD,mBAAmB,yBAAyB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/application/index.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,WAAW,gBAAgB;IAC3B,WAAW,iBAAiB;IAC5B,SAAS,cAAc;CACxB;AAED,oBAAY,eAAe;IACzB,iCAAiC,wCAAwC;IACzE,yBAAyB,gCAAgC;IACzD,mBAAmB,yBAAyB;IAC5C,2BAA2B,kCAAkC;CAC9D;AAED,eAAO,MAAM,YAAY;;;;;GA6BxB,CAAC"}
|
|
@@ -12,6 +12,7 @@ var ApplicationKeys;
|
|
|
12
12
|
ApplicationKeys["PlatformAdministrationApplication"] = "Platform-Administration-Application";
|
|
13
13
|
ApplicationKeys["PublicCalendarApplication"] = "Public-Calendar-Application";
|
|
14
14
|
ApplicationKeys["StrategyApplication"] = "Strategy-Application";
|
|
15
|
+
ApplicationKeys["FacultyOperationApplication"] = "Faculty-Operation-Application";
|
|
15
16
|
})(ApplicationKeys || (exports.ApplicationKeys = ApplicationKeys = {}));
|
|
16
17
|
exports.Applications = [
|
|
17
18
|
{
|
|
@@ -32,4 +33,10 @@ exports.Applications = [
|
|
|
32
33
|
status: ApplicationStatuses.Unavailable,
|
|
33
34
|
description: "An application for managing and executing strategies within the platform.",
|
|
34
35
|
},
|
|
36
|
+
{
|
|
37
|
+
name: "Faculty Operation Application",
|
|
38
|
+
key: ApplicationKeys.FacultyOperationApplication,
|
|
39
|
+
status: ApplicationStatuses.Unavailable,
|
|
40
|
+
description: "An application for managing faculty operations within the platform.",
|
|
41
|
+
},
|
|
35
42
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"}
|
package/dist/constants/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.Activity = exports.Notification = exports.Global = exports.JWT = exports.Event = exports.StrategySocket = exports.Task = exports.Project = exports.KPI = exports.OTP = exports.Application = exports.Account = exports.Server = exports.Permission = void 0;
|
|
36
|
+
exports.Thesis = exports.Activity = exports.Notification = exports.Global = exports.JWT = exports.Event = exports.StrategySocket = exports.Task = exports.Project = exports.KPI = exports.OTP = exports.Application = exports.Account = exports.Server = exports.Permission = void 0;
|
|
37
37
|
exports.Permission = __importStar(require("./permission"));
|
|
38
38
|
exports.Server = __importStar(require("./server"));
|
|
39
39
|
exports.Account = __importStar(require("./account"));
|
|
@@ -48,3 +48,4 @@ exports.JWT = __importStar(require("./jwt"));
|
|
|
48
48
|
exports.Global = __importStar(require("./global"));
|
|
49
49
|
exports.Notification = __importStar(require("./notification"));
|
|
50
50
|
exports.Activity = __importStar(require("./activity"));
|
|
51
|
+
exports.Thesis = __importStar(require("./thesis"));
|
|
@@ -70,7 +70,15 @@ export declare enum PermissionKeys {
|
|
|
70
70
|
ManageEvent = "manage-event",
|
|
71
71
|
ManageEventRead = "manage-event-read",
|
|
72
72
|
ManageEventUpdateDetails = "manage-event-update-details",
|
|
73
|
-
ViewPublicCalendar = "view-public-calendar"
|
|
73
|
+
ViewPublicCalendar = "view-public-calendar",
|
|
74
|
+
FacultyOperation = "faculty-operation-app",
|
|
75
|
+
FacultyOperationThesis = "faculty-operation-thesis",
|
|
76
|
+
FacultyOperationThesisFaculty = "faculty-operation-thesis-faculty",
|
|
77
|
+
FacultyOperationThesisChair = "faculty-operation-thesis-chair",
|
|
78
|
+
FacultyOperationThesisStudent = "faculty-operation-thesis-student",
|
|
79
|
+
FacultyOperationCourseLifecycle = "faculty-operation-course-lifecycle",
|
|
80
|
+
FacultyOperationCourseLifecycleSubmitNewProposal = "faculty-operation-course-lifecycle-submit-new-proposal",
|
|
81
|
+
FacultyOperationCourseLifecycleReviewProposal = "faculty-operation-course-lifecycle-review-proposal"
|
|
74
82
|
}
|
|
75
83
|
export declare const PERMISSIONS: IPermission[];
|
|
76
84
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/permission/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;AAExD,oBAAY,cAAc;IAExB,sBAAsB,4BAA4B;IAClD,cAAc,oBAAoB;IAClC,kBAAkB,yBAAyB;IAC3C,oBAAoB,2BAA2B;IAC/C,4BAA4B,oCAAoC;IAChE,2BAA2B,mCAAmC;IAC9D,oBAAoB,2BAA2B;IAC/C,wBAAwB,gCAAgC;IACxD,yBAAyB,iCAAiC;IAC1D,qBAAqB,4BAA4B;IACjD,WAAW,iBAAiB;IAC5B,eAAe,sBAAsB;IACrC,iBAAiB,wBAAwB;IACzC,wBAAwB,gCAAgC;IACxD,iBAAiB,wBAAwB;IACzC,iBAAiB,wBAAwB;IACzC,qBAAqB,6BAA6B;IAClD,8BAA8B,uCAAuC;IACrE,kBAAkB,wBAAwB;IAC1C,wBAAwB,+BAA+B;IACvD,sBAAsB,6BAA6B;IACnD,+BAA+B,uCAAuC;IACtE,wBAAw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B,oCAAoC;IAC/D,cAAc,oBAAoB;IAClC,oBAAoB,2BAA2B;IAC/C,kBAAkB,yBAAyB;IAC3C,2BAA2B,mCAAmC;IAC9D,oBAAoB,2BAA2B;IAC/C,oBAAoB,2BAA2B;IAC/C,uBAAuB,8BAA8B;IACrD,qBAAqB,4BAA4B;IAGjD,iBAAiB,wBAAwB;IACzC,wBAAwB,+BAA+B;IACvD,cAAc,oBAAoB;IAClC,oBAAoB,2BAA2B;IAC/C,kBAAkB,yBAAyB;IAC3C,2BAA2B,mCAAmC;IAC9D,oBAAoB,2BAA2B;IAC/C,WAAW,iBAAiB;IAC5B,eAAe,sBAAsB;IACrC,wBAAwB,gCAAgC;IACxD,kBAAkB,yBAAyB;IAG3C,gBAAgB,0BAA0B;IAC1C,sBAAsB,6BAA6B;IACnD,6BAA6B,qCAAqC;IAClE,2BAA2B,mCAAmC;IAC9D,6BAA6B,qCAAqC;IAElE,+BAA+B,uCAAuC;IACtE,gDAAgD,2DAA2D;IAC3G,6CAA6C,uDAAuD;CACrG;AAED,eAAO,MAAM,WAAW,EAAE,WAAW,EAwgBpC,CAAC"}
|
|
@@ -77,6 +77,15 @@ var PermissionKeys;
|
|
|
77
77
|
PermissionKeys["ManageEventRead"] = "manage-event-read";
|
|
78
78
|
PermissionKeys["ManageEventUpdateDetails"] = "manage-event-update-details";
|
|
79
79
|
PermissionKeys["ViewPublicCalendar"] = "view-public-calendar";
|
|
80
|
+
// Faculty Operation Application
|
|
81
|
+
PermissionKeys["FacultyOperation"] = "faculty-operation-app";
|
|
82
|
+
PermissionKeys["FacultyOperationThesis"] = "faculty-operation-thesis";
|
|
83
|
+
PermissionKeys["FacultyOperationThesisFaculty"] = "faculty-operation-thesis-faculty";
|
|
84
|
+
PermissionKeys["FacultyOperationThesisChair"] = "faculty-operation-thesis-chair";
|
|
85
|
+
PermissionKeys["FacultyOperationThesisStudent"] = "faculty-operation-thesis-student";
|
|
86
|
+
PermissionKeys["FacultyOperationCourseLifecycle"] = "faculty-operation-course-lifecycle";
|
|
87
|
+
PermissionKeys["FacultyOperationCourseLifecycleSubmitNewProposal"] = "faculty-operation-course-lifecycle-submit-new-proposal";
|
|
88
|
+
PermissionKeys["FacultyOperationCourseLifecycleReviewProposal"] = "faculty-operation-course-lifecycle-review-proposal";
|
|
80
89
|
})(PermissionKeys || (exports.PermissionKeys = PermissionKeys = {}));
|
|
81
90
|
exports.PERMISSIONS = [
|
|
82
91
|
// Administration Application
|
|
@@ -461,6 +470,7 @@ exports.PERMISSIONS = [
|
|
|
461
470
|
},
|
|
462
471
|
],
|
|
463
472
|
},
|
|
473
|
+
// Public Calendar
|
|
464
474
|
{
|
|
465
475
|
applicationKey: application_1.ApplicationKeys.PublicCalendarApplication,
|
|
466
476
|
key: PermissionKeys.PublicCalendarApp,
|
|
@@ -535,4 +545,59 @@ exports.PERMISSIONS = [
|
|
|
535
545
|
},
|
|
536
546
|
],
|
|
537
547
|
},
|
|
548
|
+
// Faculty Operation Application
|
|
549
|
+
{
|
|
550
|
+
applicationKey: application_1.ApplicationKeys.FacultyOperationApplication,
|
|
551
|
+
key: PermissionKeys.FacultyOperation,
|
|
552
|
+
name: "Faculty Operation",
|
|
553
|
+
isLeaf: false,
|
|
554
|
+
children: [
|
|
555
|
+
{
|
|
556
|
+
applicationKey: application_1.ApplicationKeys.FacultyOperationApplication,
|
|
557
|
+
key: PermissionKeys.FacultyOperationThesis,
|
|
558
|
+
name: "Thesis Workflow Management",
|
|
559
|
+
isLeaf: false,
|
|
560
|
+
children: [
|
|
561
|
+
{
|
|
562
|
+
applicationKey: application_1.ApplicationKeys.FacultyOperationApplication,
|
|
563
|
+
key: PermissionKeys.FacultyOperationThesisStudent,
|
|
564
|
+
name: "Student",
|
|
565
|
+
isLeaf: true,
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
applicationKey: application_1.ApplicationKeys.FacultyOperationApplication,
|
|
569
|
+
key: PermissionKeys.FacultyOperationThesisFaculty,
|
|
570
|
+
name: "Faculty",
|
|
571
|
+
isLeaf: true,
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
applicationKey: application_1.ApplicationKeys.FacultyOperationApplication,
|
|
575
|
+
key: PermissionKeys.FacultyOperationThesisChair,
|
|
576
|
+
name: "Chair",
|
|
577
|
+
isLeaf: true,
|
|
578
|
+
},
|
|
579
|
+
],
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
applicationKey: application_1.ApplicationKeys.FacultyOperationApplication,
|
|
583
|
+
key: PermissionKeys.FacultyOperationCourseLifecycle,
|
|
584
|
+
name: "Course Lifecycle Management",
|
|
585
|
+
isLeaf: false,
|
|
586
|
+
children: [
|
|
587
|
+
{
|
|
588
|
+
applicationKey: application_1.ApplicationKeys.FacultyOperationApplication,
|
|
589
|
+
key: PermissionKeys.FacultyOperationCourseLifecycleSubmitNewProposal,
|
|
590
|
+
name: "Submit New Proposal",
|
|
591
|
+
isLeaf: true,
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
applicationKey: application_1.ApplicationKeys.FacultyOperationApplication,
|
|
595
|
+
key: PermissionKeys.FacultyOperationCourseLifecycleReviewProposal,
|
|
596
|
+
name: "Review Proposal",
|
|
597
|
+
isLeaf: true,
|
|
598
|
+
},
|
|
599
|
+
],
|
|
600
|
+
},
|
|
601
|
+
],
|
|
602
|
+
},
|
|
538
603
|
];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const REQUIRED_NUMBER_OF_ASSIGNING = 2;
|
|
2
|
+
export declare const REQUIRED_RANG_TO_HAS_DISCREPANCY = 5;
|
|
3
|
+
export declare const REQUIRED_SUM_TO_HAS_DISCREPANCY = 30;
|
|
4
|
+
export declare enum ThesisStatuses {
|
|
5
|
+
Draft = "Draft",
|
|
6
|
+
UnderReview = "Under-Review",
|
|
7
|
+
AdditionalReviewerCheck = "Additional-Reviewer-Check",
|
|
8
|
+
EvaluationDone = "Evaluation-Done",
|
|
9
|
+
Published = "Published"
|
|
10
|
+
}
|
|
11
|
+
export declare enum ThesisAssigningStatuses {
|
|
12
|
+
Assigned = "Assigned",
|
|
13
|
+
Done = "Done"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ThesisActions {
|
|
16
|
+
EvaluateAndFeedback = "Evaluate-And-Feedback",
|
|
17
|
+
Publish = "Publish",
|
|
18
|
+
AssignReviewer = "Assign-Reviewer",
|
|
19
|
+
FinishEvaluation = "Finish-Evaluation",
|
|
20
|
+
ViewEvaluations = "View-Evaluations",
|
|
21
|
+
ViewMyEvaluation = "View-My-Evaluations",
|
|
22
|
+
GetResultReport = "Get-Result-Report"
|
|
23
|
+
}
|
|
24
|
+
export declare const ScoreLabels: {
|
|
25
|
+
'1': string;
|
|
26
|
+
'2': string;
|
|
27
|
+
'3': string;
|
|
28
|
+
'4': string;
|
|
29
|
+
'5': string;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/thesis/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAClD,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD,oBAAY,cAAc;IACxB,KAAK,UAAU;IAGf,WAAW,iBAAiB;IAC5B,uBAAuB,8BAA8B;IAErD,cAAc,oBAAoB;IAClC,SAAS,cAAc;CACxB;AAED,oBAAY,uBAAuB;IACjC,QAAQ,aAAa;IACrB,IAAI,SAAS;CACd;AAED,oBAAY,aAAa;IAEvB,mBAAmB,0BAA0B;IAC7C,OAAO,YAAY;IACnB,cAAc,oBAAoB;IAClC,gBAAgB,sBAAsB;IACtC,eAAe,qBAAqB;IACpC,gBAAgB,wBAAwB;IACxC,eAAe,sBAAsB;CACtC;AAED,eAAO,MAAM,WAAW;;;;;;CAavB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScoreLabels = exports.ThesisActions = exports.ThesisAssigningStatuses = exports.ThesisStatuses = exports.REQUIRED_SUM_TO_HAS_DISCREPANCY = exports.REQUIRED_RANG_TO_HAS_DISCREPANCY = exports.REQUIRED_NUMBER_OF_ASSIGNING = void 0;
|
|
4
|
+
exports.REQUIRED_NUMBER_OF_ASSIGNING = 2;
|
|
5
|
+
exports.REQUIRED_RANG_TO_HAS_DISCREPANCY = 5;
|
|
6
|
+
exports.REQUIRED_SUM_TO_HAS_DISCREPANCY = 30;
|
|
7
|
+
var ThesisStatuses;
|
|
8
|
+
(function (ThesisStatuses) {
|
|
9
|
+
ThesisStatuses["Draft"] = "Draft";
|
|
10
|
+
// New = 'New',
|
|
11
|
+
// AwaitingAssignReviewer = 'Awaiting-Assign-Reviewer',
|
|
12
|
+
ThesisStatuses["UnderReview"] = "Under-Review";
|
|
13
|
+
ThesisStatuses["AdditionalReviewerCheck"] = "Additional-Reviewer-Check";
|
|
14
|
+
// UnderEvaluation = 'Under-Evaluation',
|
|
15
|
+
ThesisStatuses["EvaluationDone"] = "Evaluation-Done";
|
|
16
|
+
ThesisStatuses["Published"] = "Published";
|
|
17
|
+
})(ThesisStatuses || (exports.ThesisStatuses = ThesisStatuses = {}));
|
|
18
|
+
var ThesisAssigningStatuses;
|
|
19
|
+
(function (ThesisAssigningStatuses) {
|
|
20
|
+
ThesisAssigningStatuses["Assigned"] = "Assigned";
|
|
21
|
+
ThesisAssigningStatuses["Done"] = "Done";
|
|
22
|
+
})(ThesisAssigningStatuses || (exports.ThesisAssigningStatuses = ThesisAssigningStatuses = {}));
|
|
23
|
+
var ThesisActions;
|
|
24
|
+
(function (ThesisActions) {
|
|
25
|
+
// Evaluate = 'Evaluate',
|
|
26
|
+
ThesisActions["EvaluateAndFeedback"] = "Evaluate-And-Feedback";
|
|
27
|
+
ThesisActions["Publish"] = "Publish";
|
|
28
|
+
ThesisActions["AssignReviewer"] = "Assign-Reviewer";
|
|
29
|
+
ThesisActions["FinishEvaluation"] = "Finish-Evaluation";
|
|
30
|
+
ThesisActions["ViewEvaluations"] = "View-Evaluations";
|
|
31
|
+
ThesisActions["ViewMyEvaluation"] = "View-My-Evaluations";
|
|
32
|
+
ThesisActions["GetResultReport"] = "Get-Result-Report";
|
|
33
|
+
})(ThesisActions || (exports.ThesisActions = ThesisActions = {}));
|
|
34
|
+
exports.ScoreLabels = new Proxy({
|
|
35
|
+
'1': 'Unsatisfactory',
|
|
36
|
+
'2': 'Fair',
|
|
37
|
+
'3': 'Satisfactory',
|
|
38
|
+
'4': 'Very Good',
|
|
39
|
+
'5': 'Excellent',
|
|
40
|
+
}, {
|
|
41
|
+
get(target, prop) {
|
|
42
|
+
var _a;
|
|
43
|
+
return (_a = target[prop]) !== null && _a !== void 0 ? _a : 'N/A';
|
|
44
|
+
},
|
|
45
|
+
});
|
package/dist/dto/index.d.ts
CHANGED
package/dist/dto/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,IA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AC;AAC/C,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"}
|
package/dist/dto/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.Activity = exports.EmailTemplate = exports.Notification = exports.KPI = exports.Comment = exports.Task = exports.Project = exports.Initiative = exports.Goal = exports.Event = exports.EventCategory = exports.Calendar = exports.Department = exports.Organization = exports.Role = exports.Request = exports.Permission = exports.File = exports.Application = exports.Account = void 0;
|
|
36
|
+
exports.Thesis = exports.Activity = exports.EmailTemplate = exports.Notification = exports.KPI = exports.Comment = exports.Task = exports.Project = exports.Initiative = exports.Goal = exports.Event = exports.EventCategory = exports.Calendar = exports.Department = exports.Organization = exports.Role = exports.Request = exports.Permission = exports.File = exports.Application = exports.Account = void 0;
|
|
37
37
|
exports.Account = __importStar(require("./account"));
|
|
38
38
|
exports.Application = __importStar(require("./application"));
|
|
39
39
|
exports.File = __importStar(require("./file"));
|
|
@@ -54,3 +54,4 @@ exports.KPI = __importStar(require("./kpi"));
|
|
|
54
54
|
exports.Notification = __importStar(require("./notification"));
|
|
55
55
|
exports.EmailTemplate = __importStar(require("./email-template"));
|
|
56
56
|
exports.Activity = __importStar(require("./activity"));
|
|
57
|
+
exports.Thesis = __importStar(require("./thesis"));
|
package/dist/dto/task/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DTO } from "../..";
|
|
1
2
|
import { IAccount } from "../account";
|
|
2
3
|
import { IArrayDataResponse } from "../global";
|
|
3
4
|
export declare enum TaskPriorities {
|
|
@@ -7,7 +8,9 @@ export declare enum TaskPriorities {
|
|
|
7
8
|
}
|
|
8
9
|
export interface ITask {
|
|
9
10
|
id: string;
|
|
11
|
+
parentTaskId?: string;
|
|
10
12
|
projectId: string;
|
|
13
|
+
project?: DTO.Project.IProject;
|
|
11
14
|
milestoneId: string;
|
|
12
15
|
sectionId: string;
|
|
13
16
|
title: string;
|
|
@@ -20,6 +23,8 @@ export interface ITask {
|
|
|
20
23
|
completedAt?: string;
|
|
21
24
|
assignedAccount?: IAccount;
|
|
22
25
|
dependOnTask?: ITask;
|
|
26
|
+
totalSubTasks: number;
|
|
27
|
+
completedSubTasks: number;
|
|
23
28
|
}
|
|
24
29
|
export interface ITaskArrayDataResponse extends IArrayDataResponse<ITask> {
|
|
25
30
|
data: ITask[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/task/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,cAAc,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,YAAY,CAAC,EAAE,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/task/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,cAAc,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;CAE3B;AAED,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB,CAAC,KAAK,CAAC;IACvE,IAAI,EAAE,KAAK,EAAE,CAAC;CACf"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { IAccount } from "../account";
|
|
2
|
+
import { IFile } from "../file";
|
|
3
|
+
import { IArrayDataResponse } from "../global";
|
|
4
|
+
export declare enum ThesisStatuses {
|
|
5
|
+
Draft = "Draft",
|
|
6
|
+
New = "New",
|
|
7
|
+
AwaitingAssignReviewer = "Awaiting-Assign-Reviewer",
|
|
8
|
+
UnderReview = "Under-Review",
|
|
9
|
+
AdditionalReviewerCheck = "Additional-Reviewer-Check",
|
|
10
|
+
UnderEvaluation = "Under-Evaluation",
|
|
11
|
+
EvaluationDone = "Evaluation-Done",
|
|
12
|
+
Published = "Published"
|
|
13
|
+
}
|
|
14
|
+
export declare enum ThesisActions {
|
|
15
|
+
Evaluate = "Evaluate",
|
|
16
|
+
EvaluateAndFeedback = "Evaluate-And-Feedback",
|
|
17
|
+
AssignReviewer = "Assign-Reviewer",
|
|
18
|
+
FinishEvaluation = "Finish-Evaluation",
|
|
19
|
+
Publish = "Publish",
|
|
20
|
+
ViewEvaluations = "View-Evaluations",
|
|
21
|
+
ViewMyEvaluation = "View-My-Evaluations",
|
|
22
|
+
GetResultReport = "Get-Result-Report"
|
|
23
|
+
}
|
|
24
|
+
export interface IThesis {
|
|
25
|
+
id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
expectedGraduateSemester: string;
|
|
28
|
+
student: IAccount;
|
|
29
|
+
supervisor?: IAccount;
|
|
30
|
+
file: IFile;
|
|
31
|
+
status: ThesisStatuses;
|
|
32
|
+
actions: ThesisActions[];
|
|
33
|
+
requireAdditionalEvaluation: boolean;
|
|
34
|
+
hasDiscrepancy: boolean;
|
|
35
|
+
submittedAt: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IThesisArrayDataResponse extends IArrayDataResponse<IThesis> {
|
|
38
|
+
data: IThesis[];
|
|
39
|
+
}
|
|
40
|
+
export declare enum ThesisAssigningStatuses {
|
|
41
|
+
Assigned = "Assigned",
|
|
42
|
+
Done = "Done"
|
|
43
|
+
}
|
|
44
|
+
export interface IThesisAssigningCriteriaScore {
|
|
45
|
+
scoreLabel: string;
|
|
46
|
+
score: number | undefined;
|
|
47
|
+
comment: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
export interface IThesisAssigning {
|
|
50
|
+
id: string;
|
|
51
|
+
assignedAccount: IAccount | undefined;
|
|
52
|
+
IB: IThesisAssigningCriteriaScore;
|
|
53
|
+
LR: IThesisAssigningCriteriaScore;
|
|
54
|
+
M: IThesisAssigningCriteriaScore;
|
|
55
|
+
RA: IThesisAssigningCriteriaScore;
|
|
56
|
+
D: IThesisAssigningCriteriaScore;
|
|
57
|
+
CR: IThesisAssigningCriteriaScore;
|
|
58
|
+
OO: IThesisAssigningCriteriaScore;
|
|
59
|
+
WC: IThesisAssigningCriteriaScore;
|
|
60
|
+
generalComment: string | undefined;
|
|
61
|
+
sumScore: number | undefined;
|
|
62
|
+
totalScore: number | undefined;
|
|
63
|
+
order: number;
|
|
64
|
+
status: ThesisAssigningStatuses;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
evaluatedAt: string;
|
|
67
|
+
}
|
|
68
|
+
export declare const getAllFeedbacksString: (evaluation: IThesisAssigning | undefined) => string;
|
|
69
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/thesis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,sBAAsB,6BAA6B;IACnD,WAAW,iBAAiB;IAC5B,uBAAuB,8BAA8B;IACrD,eAAe,qBAAqB;IACpC,cAAc,oBAAoB;IAClC,SAAS,cAAc;CACxB;AAED,oBAAY,aAAa;IACvB,QAAQ,aAAa;IACrB,mBAAmB,0BAA0B;IAC7C,cAAc,oBAAoB;IAClC,gBAAgB,sBAAsB;IACtC,OAAO,YAAY;IACnB,eAAe,qBAAqB;IACpC,gBAAgB,wBAAwB;IACxC,eAAe,sBAAsB;CACtC;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,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AAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,eACpB,gBAAgB,GAAG,SAAS,WAgBzC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAllFeedbacksString = exports.ThesisAssigningStatuses = exports.ThesisActions = exports.ThesisStatuses = void 0;
|
|
4
|
+
var ThesisStatuses;
|
|
5
|
+
(function (ThesisStatuses) {
|
|
6
|
+
ThesisStatuses["Draft"] = "Draft";
|
|
7
|
+
ThesisStatuses["New"] = "New";
|
|
8
|
+
ThesisStatuses["AwaitingAssignReviewer"] = "Awaiting-Assign-Reviewer";
|
|
9
|
+
ThesisStatuses["UnderReview"] = "Under-Review";
|
|
10
|
+
ThesisStatuses["AdditionalReviewerCheck"] = "Additional-Reviewer-Check";
|
|
11
|
+
ThesisStatuses["UnderEvaluation"] = "Under-Evaluation";
|
|
12
|
+
ThesisStatuses["EvaluationDone"] = "Evaluation-Done";
|
|
13
|
+
ThesisStatuses["Published"] = "Published";
|
|
14
|
+
})(ThesisStatuses || (exports.ThesisStatuses = ThesisStatuses = {}));
|
|
15
|
+
var ThesisActions;
|
|
16
|
+
(function (ThesisActions) {
|
|
17
|
+
ThesisActions["Evaluate"] = "Evaluate";
|
|
18
|
+
ThesisActions["EvaluateAndFeedback"] = "Evaluate-And-Feedback";
|
|
19
|
+
ThesisActions["AssignReviewer"] = "Assign-Reviewer";
|
|
20
|
+
ThesisActions["FinishEvaluation"] = "Finish-Evaluation";
|
|
21
|
+
ThesisActions["Publish"] = "Publish";
|
|
22
|
+
ThesisActions["ViewEvaluations"] = "View-Evaluations";
|
|
23
|
+
ThesisActions["ViewMyEvaluation"] = "View-My-Evaluations";
|
|
24
|
+
ThesisActions["GetResultReport"] = "Get-Result-Report";
|
|
25
|
+
})(ThesisActions || (exports.ThesisActions = ThesisActions = {}));
|
|
26
|
+
var ThesisAssigningStatuses;
|
|
27
|
+
(function (ThesisAssigningStatuses) {
|
|
28
|
+
ThesisAssigningStatuses["Assigned"] = "Assigned";
|
|
29
|
+
ThesisAssigningStatuses["Done"] = "Done";
|
|
30
|
+
})(ThesisAssigningStatuses || (exports.ThesisAssigningStatuses = ThesisAssigningStatuses = {}));
|
|
31
|
+
const getAllFeedbacksString = (evaluation) => {
|
|
32
|
+
let feedback = "";
|
|
33
|
+
if (evaluation) {
|
|
34
|
+
if (evaluation.IB.comment)
|
|
35
|
+
feedback += evaluation.IB.comment + "\n";
|
|
36
|
+
if (evaluation.LR.comment)
|
|
37
|
+
feedback += evaluation.LR.comment + "\n";
|
|
38
|
+
if (evaluation.M.comment)
|
|
39
|
+
feedback += evaluation.M.comment + "\n";
|
|
40
|
+
if (evaluation.RA.comment)
|
|
41
|
+
feedback += evaluation.RA.comment + "\n";
|
|
42
|
+
if (evaluation.D.comment)
|
|
43
|
+
feedback += evaluation.D.comment + "\n";
|
|
44
|
+
if (evaluation.CR.comment)
|
|
45
|
+
feedback += evaluation.CR.comment + "\n";
|
|
46
|
+
if (evaluation.OO.comment)
|
|
47
|
+
feedback += evaluation.OO.comment + "\n";
|
|
48
|
+
if (evaluation.WC.comment)
|
|
49
|
+
feedback += evaluation.WC.comment + "\n";
|
|
50
|
+
if (evaluation.generalComment)
|
|
51
|
+
feedback += evaluation.generalComment + "\n";
|
|
52
|
+
}
|
|
53
|
+
return feedback;
|
|
54
|
+
};
|
|
55
|
+
exports.getAllFeedbacksString = getAllFeedbacksString;
|
|
@@ -14,4 +14,5 @@ export declare const getPreviousPeriod: (date: string | Date, period: "day" | "w
|
|
|
14
14
|
export default moment;
|
|
15
15
|
export declare const isDateInQuarterAndYear: (date: Date, quarter: number, year: number) => boolean;
|
|
16
16
|
export declare const getEndOfQuarter: (year: number, quarter: number) => Date;
|
|
17
|
+
export declare const changeTimezone: (date: Date | string, timezone: string) => moment.Moment;
|
|
17
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/moment/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,eAAO,MAAM,UAAU,SAAU,IAAI,GAAG,MAAM,4BAE7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAAU,MAAM,GAAG,IAAI,WAgBpD,CAAC;AAEF,eAAO,MAAM,cAAc,cAA2C,CAAC;AAEvE,eAAO,MAAM,0BAA0B,UAAW,MAAM,SAAS,MAAM,WAC5B,CAAC;AAE5C,eAAO,MAAM,mBAAmB,aAAc,MAAM,WACqB,CAAC;AAE1E,eAAO,MAAM,MAAM,cAAe,MAAM,WACG,CAAC;AAE5C,eAAO,MAAM,aAAa,UAAW,IAAI,GAAG,MAAM,KAAG,IAEpD,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,IAAI,GAAG,MAAM,KAAG,IAElD,CAAC;AAEF,eAAO,MAAM,aAAa,SAClB,MAAM,GAAG,IAAI,UACX,KAAK,GAAG,MAAM,GAAG,OAAO,SACO,CAAC;AAE1C,eAAO,MAAM,iBAAiB,SACtB,MAAM,GAAG,IAAI,UACX,KAAK,GAAG,MAAM,GAAG,OAAO,SACY,CAAC;AAE/C,eAAe,MAAM,CAAC;AAEtB,eAAO,MAAM,sBAAsB,SAC3B,IAAI,WACD,MAAM,QACT,MAAM,KACX,OAKF,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,WAAW,MAAM,KAAG,IAK/D,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/moment/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,eAAO,MAAM,UAAU,SAAU,IAAI,GAAG,MAAM,4BAE7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAAU,MAAM,GAAG,IAAI,WAgBpD,CAAC;AAEF,eAAO,MAAM,cAAc,cAA2C,CAAC;AAEvE,eAAO,MAAM,0BAA0B,UAAW,MAAM,SAAS,MAAM,WAC5B,CAAC;AAE5C,eAAO,MAAM,mBAAmB,aAAc,MAAM,WACqB,CAAC;AAE1E,eAAO,MAAM,MAAM,cAAe,MAAM,WACG,CAAC;AAE5C,eAAO,MAAM,aAAa,UAAW,IAAI,GAAG,MAAM,KAAG,IAEpD,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,IAAI,GAAG,MAAM,KAAG,IAElD,CAAC;AAEF,eAAO,MAAM,aAAa,SAClB,MAAM,GAAG,IAAI,UACX,KAAK,GAAG,MAAM,GAAG,OAAO,SACO,CAAC;AAE1C,eAAO,MAAM,iBAAiB,SACtB,MAAM,GAAG,IAAI,UACX,KAAK,GAAG,MAAM,GAAG,OAAO,SACY,CAAC;AAE/C,eAAe,MAAM,CAAC;AAEtB,eAAO,MAAM,sBAAsB,SAC3B,IAAI,WACD,MAAM,QACT,MAAM,KACX,OAKF,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,WAAW,MAAM,KAAG,IAK/D,CAAC;AAEF,eAAO,MAAM,cAAc,SAAU,IAAI,GAAG,MAAM,YAAY,MAAM,kBACnC,CAAC"}
|
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getEndOfQuarter = exports.isDateInQuarterAndYear = exports.getPreviousPeriod = exports.getNextPeriod = exports.getEndOfDay = exports.getStartOfDay = exports.getAge = exports.getDaysCountTillNow = exports.getDaysCountBetweenTwoDays = exports.getCurrentYear = exports.formatDateAsLabel = exports.formatDate = exports.momentTZ = void 0;
|
|
39
|
+
exports.changeTimezone = exports.getEndOfQuarter = exports.isDateInQuarterAndYear = exports.getPreviousPeriod = exports.getNextPeriod = exports.getEndOfDay = exports.getStartOfDay = exports.getAge = exports.getDaysCountTillNow = exports.getDaysCountBetweenTwoDays = exports.getCurrentYear = exports.formatDateAsLabel = exports.formatDate = exports.momentTZ = void 0;
|
|
40
40
|
const moment_1 = __importDefault(require("moment"));
|
|
41
41
|
const momentTZ = __importStar(require("moment-timezone"));
|
|
42
42
|
exports.momentTZ = momentTZ;
|
|
@@ -99,3 +99,5 @@ const getEndOfQuarter = (year, quarter) => {
|
|
|
99
99
|
return date;
|
|
100
100
|
};
|
|
101
101
|
exports.getEndOfQuarter = getEndOfQuarter;
|
|
102
|
+
const changeTimezone = (date, timezone) => momentTZ.utc(date).tz(timezone);
|
|
103
|
+
exports.changeTimezone = changeTimezone;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/numbers/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,0BAAkB,CAAC;AAE5C,eAAO,MAAM,YAAY,QAAS,MAAM,OAAO,MAAM,KAAG,MAIvD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/numbers/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,0BAAkB,CAAC;AAE5C,eAAO,MAAM,YAAY,QAAS,MAAM,OAAO,MAAM,KAAG,MAIvD,CAAC;AAEF,eAAO,MAAM,cAAc,QAAS,MAAM,EAAE,WAa3C,CAAC"}
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.getRandomInt = exports.numeralUtils = void 0;
|
|
36
|
+
exports.calculateRange = exports.getRandomInt = exports.numeralUtils = void 0;
|
|
37
37
|
const numeral = __importStar(require("numeral"));
|
|
38
38
|
exports.numeralUtils = numeral.default;
|
|
39
39
|
const getRandomInt = (min, max) => {
|
|
@@ -42,3 +42,18 @@ const getRandomInt = (min, max) => {
|
|
|
42
42
|
return Math.floor(Math.random() * (upper - lower + 1)) + lower;
|
|
43
43
|
};
|
|
44
44
|
exports.getRandomInt = getRandomInt;
|
|
45
|
+
const calculateRange = (arr) => {
|
|
46
|
+
if (arr.length === 0)
|
|
47
|
+
return 0;
|
|
48
|
+
let min = arr[0];
|
|
49
|
+
let max = arr[0];
|
|
50
|
+
for (let i = 1; i < arr.length; i++) {
|
|
51
|
+
const num = arr[i];
|
|
52
|
+
if (num < min)
|
|
53
|
+
min = num;
|
|
54
|
+
else if (num > max)
|
|
55
|
+
max = num;
|
|
56
|
+
}
|
|
57
|
+
return max - min;
|
|
58
|
+
};
|
|
59
|
+
exports.calculateRange = calculateRange;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/pdf/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,SAAgB,GAAG,gBAAgB,MAAM,yCAchE,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.generatePDF = void 0;
|
|
46
|
+
const ejs = __importStar(require("ejs"));
|
|
47
|
+
const puppeteer = __importStar(require("puppeteer"));
|
|
48
|
+
const generatePDF = (data, templatePath) => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
|
+
const html = (yield ejs.renderFile(templatePath, data));
|
|
50
|
+
const browser = yield puppeteer.launch({
|
|
51
|
+
headless: "shell",
|
|
52
|
+
args: ["--no-sandbox", "--disable-setuid-sandbox"],
|
|
53
|
+
});
|
|
54
|
+
const page = yield browser.newPage();
|
|
55
|
+
yield page.setContent(html, { waitUntil: "networkidle0" });
|
|
56
|
+
const pdfBuffer = yield page.pdf({ format: "A4" });
|
|
57
|
+
yield browser.close();
|
|
58
|
+
return pdfBuffer;
|
|
59
|
+
});
|
|
60
|
+
exports.generatePDF = generatePDF;
|