sea-platform-helpers 1.3.3 → 1.4.1
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/dto/comment/index.d.ts +18 -0
- package/dist/dto/comment/index.d.ts.map +1 -0
- package/dist/dto/comment/index.js +9 -0
- package/dist/dto/goal/index.d.ts +14 -0
- package/dist/dto/goal/index.d.ts.map +1 -0
- package/dist/dto/index.d.ts +5 -0
- package/dist/dto/index.d.ts.map +1 -1
- package/dist/dto/index.js +6 -1
- package/dist/dto/initiative/index.d.ts +14 -0
- package/dist/dto/initiative/index.d.ts.map +1 -0
- package/dist/dto/project/index.d.ts +40 -0
- package/dist/dto/project/index.d.ts.map +1 -0
- package/dist/dto/project/index.js +8 -0
- package/dist/dto/project copy/index.d.ts +40 -0
- package/dist/dto/project copy/index.d.ts.map +1 -0
- package/dist/dto/project copy/index.js +8 -0
- package/dist/dto/task/index.d.ts +27 -0
- package/dist/dto/task/index.d.ts.map +1 -0
- package/dist/dto/task/index.js +9 -0
- package/dist/utils/moment/index.d.ts +2 -0
- package/dist/utils/moment/index.d.ts.map +1 -1
- package/dist/utils/moment/index.js +16 -1
- package/dist/utils/string/index.d.ts +1 -0
- package/dist/utils/string/index.d.ts.map +1 -1
- package/dist/utils/string/index.js +9 -1
- package/package.json +1 -1
- package/dist/dto/application copy/index.d.ts +0 -15
- package/dist/dto/application copy/index.d.ts.map +0 -1
- package/dist/dto/category/index.d.ts +0 -1
- package/dist/dto/category/index.d.ts.map +0 -1
- package/dist/dto/category/index.js +0 -1
- package/dist/dto/organization copy/index.d.ts +0 -9
- package/dist/dto/organization copy/index.d.ts.map +0 -1
- /package/dist/dto/{application copy → goal}/index.js +0 -0
- /package/dist/dto/{organization copy → initiative}/index.js +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IAccount } from "../account";
|
|
2
|
+
import { IArrayDataResponse } from "../global";
|
|
3
|
+
export declare enum CommentSupportedModels {
|
|
4
|
+
Task = "Task",
|
|
5
|
+
Comment = "Comment",
|
|
6
|
+
Initiative = "Initiative"
|
|
7
|
+
}
|
|
8
|
+
export interface IComment {
|
|
9
|
+
id: string;
|
|
10
|
+
description: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
edited: boolean;
|
|
13
|
+
account?: IAccount;
|
|
14
|
+
}
|
|
15
|
+
export interface ICommentArrayDataResponse extends IArrayDataResponse<IComment> {
|
|
16
|
+
data: IComment[];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/comment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,oBAAY,sBAAsB;IAChC,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,yBACf,SAAQ,kBAAkB,CAAC,QAAQ,CAAC;IACpC,IAAI,EAAE,QAAQ,EAAE,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommentSupportedModels = void 0;
|
|
4
|
+
var CommentSupportedModels;
|
|
5
|
+
(function (CommentSupportedModels) {
|
|
6
|
+
CommentSupportedModels["Task"] = "Task";
|
|
7
|
+
CommentSupportedModels["Comment"] = "Comment";
|
|
8
|
+
CommentSupportedModels["Initiative"] = "Initiative";
|
|
9
|
+
})(CommentSupportedModels || (exports.CommentSupportedModels = CommentSupportedModels = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Organization } from "..";
|
|
2
|
+
import { IArrayDataResponse } from "../global";
|
|
3
|
+
export interface IGoal {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
organization?: Organization.IOrganization;
|
|
8
|
+
startYear: number;
|
|
9
|
+
endYear: number;
|
|
10
|
+
}
|
|
11
|
+
export interface IGoalArrayDataResponse extends IArrayDataResponse<IGoal> {
|
|
12
|
+
data: IGoal[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/goal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB,CAAC,KAAK,CAAC;IACvE,IAAI,EAAE,KAAK,EAAE,CAAC;CACf"}
|
package/dist/dto/index.d.ts
CHANGED
|
@@ -9,4 +9,9 @@ export * as Department from "./department";
|
|
|
9
9
|
export * as Calendar from "./calendar";
|
|
10
10
|
export * as EventCategory from "./event-category";
|
|
11
11
|
export * as Event from "./event";
|
|
12
|
+
export * as Goal from "./goal";
|
|
13
|
+
export * as Initiative from "./initiative";
|
|
14
|
+
export * as Project from "./project";
|
|
15
|
+
export * as Task from "./task";
|
|
16
|
+
export * as Comment from "./comment";
|
|
12
17
|
//# sourceMappingURL=index.d.ts.map
|
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"}
|
|
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,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,OAAO,MAAM,WAAW,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.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.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"));
|
|
@@ -45,3 +45,8 @@ exports.Department = __importStar(require("./department"));
|
|
|
45
45
|
exports.Calendar = __importStar(require("./calendar"));
|
|
46
46
|
exports.EventCategory = __importStar(require("./event-category"));
|
|
47
47
|
exports.Event = __importStar(require("./event"));
|
|
48
|
+
exports.Goal = __importStar(require("./goal"));
|
|
49
|
+
exports.Initiative = __importStar(require("./initiative"));
|
|
50
|
+
exports.Project = __importStar(require("./project"));
|
|
51
|
+
exports.Task = __importStar(require("./task"));
|
|
52
|
+
exports.Comment = __importStar(require("./comment"));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IAccount } from "../account";
|
|
2
|
+
import { IArrayDataResponse } from "../global";
|
|
3
|
+
export type IInitiative = {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
startYear: number;
|
|
8
|
+
endYear: number;
|
|
9
|
+
owner: IAccount;
|
|
10
|
+
};
|
|
11
|
+
export interface IInitiativeArrayDataResponse extends IArrayDataResponse<IInitiative> {
|
|
12
|
+
data: IInitiative[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/initiative/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,4BAA6B,SAAQ,kBAAkB,CAAC,WAAW,CAAC;IACnF,IAAI,EAAE,WAAW,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IAccount } from "../account";
|
|
2
|
+
import { IArrayDataResponse } from "../global";
|
|
3
|
+
export declare enum ProjectMemberTypes {
|
|
4
|
+
Stakeholder = "Stakeholder",
|
|
5
|
+
Member = "Member"
|
|
6
|
+
}
|
|
7
|
+
export interface IProjectMember {
|
|
8
|
+
account?: IAccount;
|
|
9
|
+
type: ProjectMemberTypes;
|
|
10
|
+
}
|
|
11
|
+
export interface IProjectMilestone {
|
|
12
|
+
id: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
order: number;
|
|
17
|
+
completionPercentage: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IProjectSection {
|
|
20
|
+
id: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
name: string;
|
|
23
|
+
order: number;
|
|
24
|
+
}
|
|
25
|
+
export interface IProject {
|
|
26
|
+
id: string;
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
owner?: IAccount;
|
|
30
|
+
members: IProjectMember[];
|
|
31
|
+
milestones: IProjectMilestone[];
|
|
32
|
+
sections: IProjectSection[];
|
|
33
|
+
totalTasksCount: number;
|
|
34
|
+
completedTasksCount: number;
|
|
35
|
+
completionPercentage: number;
|
|
36
|
+
}
|
|
37
|
+
export interface IProjectArrayDataResponse extends IArrayDataResponse<IProject> {
|
|
38
|
+
data: IProject[];
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,oBAAY,kBAAkB;IAC5B,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,yBACf,SAAQ,kBAAkB,CAAC,QAAQ,CAAC;IACpC,IAAI,EAAE,QAAQ,EAAE,CAAC;CAClB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectMemberTypes = void 0;
|
|
4
|
+
var ProjectMemberTypes;
|
|
5
|
+
(function (ProjectMemberTypes) {
|
|
6
|
+
ProjectMemberTypes["Stakeholder"] = "Stakeholder";
|
|
7
|
+
ProjectMemberTypes["Member"] = "Member";
|
|
8
|
+
})(ProjectMemberTypes || (exports.ProjectMemberTypes = ProjectMemberTypes = {}));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IAccount } from "../account";
|
|
2
|
+
import { IArrayDataResponse } from "../global";
|
|
3
|
+
export declare enum ProjectMemberTypes {
|
|
4
|
+
Stakeholder = "Stakeholder",
|
|
5
|
+
Member = "Member"
|
|
6
|
+
}
|
|
7
|
+
export interface IProjectMember {
|
|
8
|
+
account?: IAccount;
|
|
9
|
+
type: ProjectMemberTypes;
|
|
10
|
+
}
|
|
11
|
+
export interface IProjectMilestone {
|
|
12
|
+
id: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
order: number;
|
|
17
|
+
completionPercentage: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IProjectSection {
|
|
20
|
+
id: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
name: string;
|
|
23
|
+
order: number;
|
|
24
|
+
}
|
|
25
|
+
export interface IProject {
|
|
26
|
+
id: string;
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
owner?: IAccount;
|
|
30
|
+
members: IProjectMember[];
|
|
31
|
+
milestones: IProjectMilestone[];
|
|
32
|
+
sections: IProjectSection[];
|
|
33
|
+
totalTasksCount: number;
|
|
34
|
+
completedTasksCount: number;
|
|
35
|
+
completionPercentage: number;
|
|
36
|
+
}
|
|
37
|
+
export interface IProjectArrayDataResponse extends IArrayDataResponse<IProject> {
|
|
38
|
+
data: IProject[];
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/project copy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,oBAAY,kBAAkB;IAC5B,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,yBACf,SAAQ,kBAAkB,CAAC,QAAQ,CAAC;IACpC,IAAI,EAAE,QAAQ,EAAE,CAAC;CAClB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectMemberTypes = void 0;
|
|
4
|
+
var ProjectMemberTypes;
|
|
5
|
+
(function (ProjectMemberTypes) {
|
|
6
|
+
ProjectMemberTypes["Stakeholder"] = "Stakeholder";
|
|
7
|
+
ProjectMemberTypes["Member"] = "Member";
|
|
8
|
+
})(ProjectMemberTypes || (exports.ProjectMemberTypes = ProjectMemberTypes = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IAccount } from "../account";
|
|
2
|
+
import { IArrayDataResponse } from "../global";
|
|
3
|
+
export declare enum TaskPriorities {
|
|
4
|
+
Low = "Low",
|
|
5
|
+
Medium = "Medium",
|
|
6
|
+
High = "High"
|
|
7
|
+
}
|
|
8
|
+
export interface ITask {
|
|
9
|
+
id: string;
|
|
10
|
+
projectId: string;
|
|
11
|
+
milestoneId: string;
|
|
12
|
+
sectionId: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
dueDate?: string;
|
|
16
|
+
priority: TaskPriorities;
|
|
17
|
+
completionPercentage: number;
|
|
18
|
+
remainingDays?: number;
|
|
19
|
+
isCompleted?: boolean;
|
|
20
|
+
completedAt?: string;
|
|
21
|
+
assignedAccount?: IAccount;
|
|
22
|
+
dependOnTask?: ITask;
|
|
23
|
+
}
|
|
24
|
+
export interface ITaskArrayDataResponse extends IArrayDataResponse<ITask> {
|
|
25
|
+
data: ITask[];
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;CACtB;AAED,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB,CAAC,KAAK,CAAC;IACvE,IAAI,EAAE,KAAK,EAAE,CAAC;CACf"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaskPriorities = void 0;
|
|
4
|
+
var TaskPriorities;
|
|
5
|
+
(function (TaskPriorities) {
|
|
6
|
+
TaskPriorities["Low"] = "Low";
|
|
7
|
+
TaskPriorities["Medium"] = "Medium";
|
|
8
|
+
TaskPriorities["High"] = "High";
|
|
9
|
+
})(TaskPriorities || (exports.TaskPriorities = TaskPriorities = {}));
|
|
@@ -12,4 +12,6 @@ export declare const getEndOfDay: (date?: Date | string) => Date;
|
|
|
12
12
|
export declare const getNextPeriod: (date: string | Date, period: "day" | "week" | "month") => Date;
|
|
13
13
|
export declare const getPreviousPeriod: (date: string | Date, period: "day" | "week" | "month") => Date;
|
|
14
14
|
export default moment;
|
|
15
|
+
export declare const isDateInQuarterAndYear: (date: Date, quarter: number, year: number) => boolean;
|
|
16
|
+
export declare const getEndOfQuarter: (year: number, quarter: number) => Date;
|
|
15
17
|
//# 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"}
|
|
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"}
|
|
@@ -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.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.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;
|
|
@@ -84,3 +84,18 @@ exports.getNextPeriod = getNextPeriod;
|
|
|
84
84
|
const getPreviousPeriod = (date, period) => (0, moment_1.default)(date).subtract(1, period).toDate();
|
|
85
85
|
exports.getPreviousPeriod = getPreviousPeriod;
|
|
86
86
|
exports.default = moment_1.default;
|
|
87
|
+
const isDateInQuarterAndYear = (date, quarter, year) => {
|
|
88
|
+
if (!date)
|
|
89
|
+
return false;
|
|
90
|
+
const d = new Date(date);
|
|
91
|
+
const q = Math.floor(d.getMonth() / 3) + 1;
|
|
92
|
+
return d.getFullYear() === year && q === quarter;
|
|
93
|
+
};
|
|
94
|
+
exports.isDateInQuarterAndYear = isDateInQuarterAndYear;
|
|
95
|
+
const getEndOfQuarter = (year, quarter) => {
|
|
96
|
+
const endMonth = quarter * 3 - 1; // Q1: Feb, Q2: May, Q3: Aug, Q4: Nov
|
|
97
|
+
const date = new Date(year, endMonth + 1, 0); // Last day of that month
|
|
98
|
+
date.setHours(23, 59, 59, 999); // End of day
|
|
99
|
+
return date;
|
|
100
|
+
};
|
|
101
|
+
exports.getEndOfQuarter = getEndOfQuarter;
|
|
@@ -6,4 +6,5 @@ export declare const colorRegex: RegExp;
|
|
|
6
6
|
export declare const isPhoneNumber: (str: string) => boolean;
|
|
7
7
|
export declare const isEmail: (str: string) => boolean;
|
|
8
8
|
export declare const isColor: (str: string) => boolean;
|
|
9
|
+
export declare const getInitials: (name: string) => string;
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/string/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,QAAS,MAAM,GAAG,SAAS,GAAG,IAAI,kBAG7D,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAAY,MAAM,WASlD,CAAC;AAEF,eAAO,MAAM,WAAW,QAA8B,CAAC;AAEvD,eAAO,MAAM,UAAU,QAAoD,CAAC;AAE5E,eAAO,MAAM,UAAU,QAA+B,CAAC;AAEvD,eAAO,MAAM,aAAa,QAAS,MAAM,YAExC,CAAC;AACF,eAAO,MAAM,OAAO,QAAS,MAAM,YAElC,CAAC;AAEF,eAAO,MAAM,OAAO,QAAS,MAAM,YAElC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/string/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,QAAS,MAAM,GAAG,SAAS,GAAG,IAAI,kBAG7D,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAAY,MAAM,WASlD,CAAC;AAEF,eAAO,MAAM,WAAW,QAA8B,CAAC;AAEvD,eAAO,MAAM,UAAU,QAAoD,CAAC;AAE5E,eAAO,MAAM,UAAU,QAA+B,CAAC;AAEvD,eAAO,MAAM,aAAa,QAAS,MAAM,YAExC,CAAC;AACF,eAAO,MAAM,OAAO,QAAS,MAAM,YAElC,CAAC;AAEF,eAAO,MAAM,OAAO,QAAS,MAAM,YAElC,CAAC;AAEF,eAAO,MAAM,WAAW,SAAU,MAAM,WAOvC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isColor = exports.isEmail = exports.isPhoneNumber = exports.colorRegex = exports.emailRegex = exports.phoneRegExp = exports.generateRandomString = exports.normalizeString = void 0;
|
|
3
|
+
exports.getInitials = exports.isColor = exports.isEmail = exports.isPhoneNumber = exports.colorRegex = exports.emailRegex = exports.phoneRegExp = exports.generateRandomString = exports.normalizeString = void 0;
|
|
4
4
|
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
5
5
|
const normalizeString = (str) => {
|
|
6
6
|
if (str)
|
|
@@ -32,3 +32,11 @@ const isColor = (str) => {
|
|
|
32
32
|
return exports.colorRegex.test(str);
|
|
33
33
|
};
|
|
34
34
|
exports.isColor = isColor;
|
|
35
|
+
const getInitials = (name) => {
|
|
36
|
+
if (!name)
|
|
37
|
+
return "";
|
|
38
|
+
const words = name.trim().split(/\s+/); // split by spaces
|
|
39
|
+
const initials = words.map((word) => { var _a; return (_a = word[0]) === null || _a === void 0 ? void 0 : _a.toUpperCase(); }).filter(Boolean);
|
|
40
|
+
return (initials[0] || "") + (initials[1] || "");
|
|
41
|
+
};
|
|
42
|
+
exports.getInitials = getInitials;
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ApplicationStatuses } from "../../constants/application";
|
|
2
|
-
import { IFile } from "../file";
|
|
3
|
-
import { IArrayDataResponse } from "../global";
|
|
4
|
-
export interface IApplication {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
description: string | undefined;
|
|
8
|
-
status: ApplicationStatuses;
|
|
9
|
-
iconFile: IFile | undefined;
|
|
10
|
-
URL: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IApplicationArrayDataResponse extends IArrayDataResponse<IApplication> {
|
|
13
|
-
data: IApplication[];
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/application copy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,QAAQ,EAAE,KAAK,GAAG,SAAS,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,6BACf,SAAQ,kBAAkB,CAAC,YAAY,CAAC;IACxC,IAAI,EAAE,YAAY,EAAE,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/category/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IArrayDataResponse } from "../global";
|
|
2
|
-
export interface IOrganization {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IOrganizationArrayDataResponse extends IArrayDataResponse<IOrganization> {
|
|
7
|
-
data: IOrganization[];
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/organization copy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BACf,SAAQ,kBAAkB,CAAC,aAAa,CAAC;IACzC,IAAI,EAAE,aAAa,EAAE,CAAC;CACvB"}
|
|
File without changes
|
|
File without changes
|