evo360-types 1.1.13 → 1.1.15
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/index.d.ts +8 -8
- package/dist/index.js +8 -8
- package/dist/types/evo-calendar/fb_collections.d.ts +2 -5
- package/dist/types/evo-calendar/fb_collections.js +7 -0
- package/dist/types/evo-calendar/index.d.ts +37 -48
- package/dist/types/evo-calendar/index.js +31 -0
- package/dist/types/evo-core/index.d.ts +30 -37
- package/dist/types/evo-core/index.js +2 -0
- package/dist/types/evo-meeting/fb_collections.d.ts +2 -5
- package/dist/types/evo-meeting/fb_collections.js +7 -0
- package/dist/types/evo-meeting/index.d.ts +38 -55
- package/dist/types/evo-meeting/index.js +26 -0
- package/dist/types/evo-people/fb_collections.d.ts +5 -8
- package/dist/types/evo-people/fb_collections.js +10 -0
- package/dist/types/evo-people/index.d.ts +67 -81
- package/dist/types/evo-people/index.js +24 -0
- package/dist/types/evo-survey/fb_collections.d.ts +7 -12
- package/dist/types/evo-survey/fb_collections.js +13 -0
- package/dist/types/evo-survey/index.d.ts +102 -128
- package/dist/types/evo-survey/index.js +65 -0
- package/dist/types/evo-task/fb_collections.d.ts +2 -5
- package/dist/types/evo-task/fb_collections.js +7 -0
- package/dist/types/evo-task/index.d.ts +22 -35
- package/dist/types/evo-task/index.js +32 -0
- package/dist/types/evo-tenant/fb_collections.d.ts +1 -2
- package/dist/types/evo-tenant/fb_collections.js +5 -0
- package/dist/types/evo-tenant/index.d.ts +14 -19
- package/dist/types/evo-tenant/index.js +29 -0
- package/dist/types/shared/fb_collections.d.ts +5 -14
- package/dist/types/shared/fb_collections.js +13 -0
- package/dist/types/shared/index.d.ts +16 -40
- package/dist/types/shared/index.js +17 -0
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from "./types/shared";
|
|
2
|
-
export * from "./types/evo-core";
|
|
3
|
-
export * from "./types/evo-tenant";
|
|
4
|
-
export * from "./types/evo-people";
|
|
5
|
-
export * from "./types/evo-calendar";
|
|
6
|
-
export * from "./types/evo-task";
|
|
7
|
-
export * from "./types/evo-survey";
|
|
8
|
-
export * from "./types/evo-meeting";
|
|
1
|
+
export * from "./types/shared/index";
|
|
2
|
+
export * from "./types/evo-core/index";
|
|
3
|
+
export * from "./types/evo-tenant/index";
|
|
4
|
+
export * from "./types/evo-people/index";
|
|
5
|
+
export * from "./types/evo-calendar/index";
|
|
6
|
+
export * from "./types/evo-task/index";
|
|
7
|
+
export * from "./types/evo-survey/index";
|
|
8
|
+
export * from "./types/evo-meeting/index";
|
|
9
9
|
export * from "./apps/shared/zod-schemas";
|
|
10
10
|
export * from "./apps/evo-core/zod-schemas";
|
|
11
11
|
export * from "./apps/evo-tenant/zod-schemas";
|
package/dist/index.js
CHANGED
|
@@ -15,14 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// @evo360/types/index.ts
|
|
18
|
-
__exportStar(require("./types/shared"), exports);
|
|
19
|
-
__exportStar(require("./types/evo-core"), exports);
|
|
20
|
-
__exportStar(require("./types/evo-tenant"), exports);
|
|
21
|
-
__exportStar(require("./types/evo-people"), exports);
|
|
22
|
-
__exportStar(require("./types/evo-calendar"), exports);
|
|
23
|
-
__exportStar(require("./types/evo-task"), exports);
|
|
24
|
-
__exportStar(require("./types/evo-survey"), exports);
|
|
25
|
-
__exportStar(require("./types/evo-meeting"), exports);
|
|
18
|
+
__exportStar(require("./types/shared/index"), exports);
|
|
19
|
+
__exportStar(require("./types/evo-core/index"), exports);
|
|
20
|
+
__exportStar(require("./types/evo-tenant/index"), exports);
|
|
21
|
+
__exportStar(require("./types/evo-people/index"), exports);
|
|
22
|
+
__exportStar(require("./types/evo-calendar/index"), exports);
|
|
23
|
+
__exportStar(require("./types/evo-task/index"), exports);
|
|
24
|
+
__exportStar(require("./types/evo-survey/index"), exports);
|
|
25
|
+
__exportStar(require("./types/evo-meeting/index"), exports);
|
|
26
26
|
// zod schemas
|
|
27
27
|
__exportStar(require("./apps/shared/zod-schemas"), exports);
|
|
28
28
|
__exportStar(require("./apps/evo-core/zod-schemas"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EVENTS_COLLECTION = exports.EVO_CALENDAR_APP = void 0;
|
|
4
|
+
//EVO Calendar Application Doc
|
|
5
|
+
exports.EVO_CALENDAR_APP = "evo-calendar";
|
|
6
|
+
//Calendar collection
|
|
7
|
+
exports.EVENTS_COLLECTION = "events";
|
|
@@ -1,61 +1,50 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
|
|
3
3
|
import { MeetingType } from "../evo-meeting";
|
|
4
|
-
|
|
5
|
-
// ----- CalendarTypes
|
|
6
|
-
// Enum for Event Instance Status
|
|
7
4
|
export type EventStatus = "scheduled" | "completed" | "cancelled";
|
|
8
|
-
export enum IEventStatus {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
export declare enum IEventStatus {
|
|
6
|
+
Scheduled = "scheduled",
|
|
7
|
+
Completed = "completed",
|
|
8
|
+
Cancelled = "cancelled"
|
|
12
9
|
}
|
|
13
|
-
|
|
14
|
-
// Enum for Event Types
|
|
15
10
|
export type EventType = "event" | "meeting" | "workshop" | "other";
|
|
16
|
-
export enum IEventType {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
export declare enum IEventType {
|
|
12
|
+
Event = "event",
|
|
13
|
+
Meeting = "meeting",
|
|
14
|
+
Workshop = "workshop",
|
|
15
|
+
Other = "other"
|
|
21
16
|
}
|
|
22
|
-
|
|
23
|
-
// Interface for Meeting within a Event (meetingTasks)
|
|
24
17
|
export interface IEventMeeting {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
meetingRef?: FirestoreDocumentReference;
|
|
19
|
+
type: MeetingType;
|
|
20
|
+
readonly task_count?: number;
|
|
21
|
+
readonly talkingPoints_count?: number;
|
|
22
|
+
tags?: ITag[];
|
|
30
23
|
}
|
|
31
|
-
|
|
32
|
-
// Interface for Recurring Events (recurringEvents)
|
|
33
24
|
export interface IRecurringEvent extends IFireDoc {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
25
|
+
title: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
creatorName: string;
|
|
28
|
+
creatorRef?: FirestoreDocumentReference;
|
|
29
|
+
participants: string[];
|
|
30
|
+
startDate: Date;
|
|
31
|
+
endDate?: Date;
|
|
32
|
+
type: EventType;
|
|
33
|
+
rrule: string;
|
|
34
|
+
exceptions: string[];
|
|
44
35
|
}
|
|
45
|
-
|
|
46
|
-
// Interface for Event Instances (eventInstances)
|
|
47
36
|
export interface IEvent extends IFireDoc {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
37
|
+
recurringRef?: FirestoreDocumentReference;
|
|
38
|
+
title: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
creatorName: string;
|
|
41
|
+
creatorRef?: FirestoreDocumentReference;
|
|
42
|
+
participantNames?: string[];
|
|
43
|
+
participantRefs?: FirestoreDocumentReference[];
|
|
44
|
+
startDate: Date;
|
|
45
|
+
endDate?: Date;
|
|
46
|
+
type: EventType;
|
|
47
|
+
tags?: ITag[];
|
|
48
|
+
meeting?: IEventMeeting;
|
|
49
|
+
status: EventStatus;
|
|
61
50
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.IEventType = exports.IEventStatus = void 0;
|
|
18
|
+
__exportStar(require("./fb_collections"), exports);
|
|
19
|
+
var IEventStatus;
|
|
20
|
+
(function (IEventStatus) {
|
|
21
|
+
IEventStatus["Scheduled"] = "scheduled";
|
|
22
|
+
IEventStatus["Completed"] = "completed";
|
|
23
|
+
IEventStatus["Cancelled"] = "cancelled";
|
|
24
|
+
})(IEventStatus = exports.IEventStatus || (exports.IEventStatus = {}));
|
|
25
|
+
var IEventType;
|
|
26
|
+
(function (IEventType) {
|
|
27
|
+
IEventType["Event"] = "event";
|
|
28
|
+
IEventType["Meeting"] = "meeting";
|
|
29
|
+
IEventType["Workshop"] = "workshop";
|
|
30
|
+
IEventType["Other"] = "other";
|
|
31
|
+
})(IEventType = exports.IEventType || (exports.IEventType = {}));
|
|
@@ -1,48 +1,41 @@
|
|
|
1
1
|
import { FirestoreDocumentReference, IFireDoc } from "../shared";
|
|
2
|
-
|
|
3
|
-
//UserTypes
|
|
4
2
|
export interface IUserSpecialRoles {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
is_admin: boolean;
|
|
4
|
+
is_sys_admin: boolean;
|
|
7
5
|
}
|
|
8
|
-
|
|
9
6
|
export interface IUser extends IUserSpecialRoles, IFireDoc {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
7
|
+
display_name: string;
|
|
8
|
+
email: string;
|
|
9
|
+
email_verified?: string;
|
|
10
|
+
full_name: string;
|
|
11
|
+
last_access: Date;
|
|
12
|
+
member_since: Date;
|
|
13
|
+
mobile_number?: string;
|
|
14
|
+
mobile_number_verified?: boolean;
|
|
15
|
+
phone_number?: null | string;
|
|
16
|
+
picture_url?: null | string;
|
|
17
|
+
role: number;
|
|
18
|
+
tenantRef?: FirestoreDocumentReference | null;
|
|
19
|
+
tenants?: string[];
|
|
20
|
+
sid?: null | string;
|
|
24
21
|
}
|
|
25
|
-
|
|
26
|
-
//AuthTypes
|
|
27
22
|
export interface ILogin {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
id: string;
|
|
24
|
+
user?: FirestoreDocumentReference;
|
|
25
|
+
displayname?: string | null;
|
|
26
|
+
email?: string | null;
|
|
27
|
+
emailverif?: false | boolean;
|
|
28
|
+
providerId?: string | null;
|
|
34
29
|
}
|
|
35
|
-
|
|
36
30
|
export interface IAction {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
code: number;
|
|
32
|
+
action: string;
|
|
33
|
+
created_at: Date;
|
|
34
|
+
args?: IActionArgs | string | unknown | null;
|
|
35
|
+
user?: FirestoreDocumentReference;
|
|
42
36
|
}
|
|
43
|
-
|
|
44
37
|
export interface IActionArgs {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
old_values?: Record<string, any>;
|
|
39
|
+
new_values?: Record<string, any>;
|
|
40
|
+
deleted_at?: Date;
|
|
48
41
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MEETINGS_COLLECTION = exports.EVO_MEETING_APP = void 0;
|
|
4
|
+
//EVO Meeting Application Doc
|
|
5
|
+
exports.EVO_MEETING_APP = "evo-meeting";
|
|
6
|
+
//meetings collection
|
|
7
|
+
exports.MEETINGS_COLLECTION = "meetings";
|
|
@@ -1,69 +1,52 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
|
|
3
3
|
import { TaskPriority, TaskStatus } from "../evo-task";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
| "other";
|
|
12
|
-
export enum IMeetingType {
|
|
13
|
-
Regular = "regular", // A regular meeting
|
|
14
|
-
OneOnOne = "oneonone", // A one-on-one meeting
|
|
15
|
-
Feedback = "feedback", // A feedback session
|
|
16
|
-
Presentation = "presentation", // A presentation meeting
|
|
17
|
-
Other = "other", // Any other type of meeting
|
|
4
|
+
export type MeetingType = "regular" | "oneonone" | "feedback" | "presentation" | "other";
|
|
5
|
+
export declare enum IMeetingType {
|
|
6
|
+
Regular = "regular",
|
|
7
|
+
OneOnOne = "oneonone",
|
|
8
|
+
Feedback = "feedback",
|
|
9
|
+
Presentation = "presentation",
|
|
10
|
+
Other = "other"
|
|
18
11
|
}
|
|
19
|
-
|
|
20
|
-
// Interface for Event within a Meeting (meetingEvent)
|
|
21
12
|
export interface IMeetingEvent {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
eventRef?: FirestoreDocumentReference;
|
|
14
|
+
participantNames: string[];
|
|
15
|
+
participantRefs?: FirestoreDocumentReference[];
|
|
16
|
+
startDate: Date;
|
|
17
|
+
endDate?: Date;
|
|
27
18
|
}
|
|
28
|
-
|
|
29
|
-
// Interface for Tasks within a Meeting (meetingTasks)
|
|
30
19
|
export interface IMeetingTask {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
taskRef?: FirestoreDocumentReference;
|
|
21
|
+
title: string;
|
|
22
|
+
status: TaskStatus;
|
|
23
|
+
priority?: TaskPriority;
|
|
24
|
+
assigneeName?: string;
|
|
36
25
|
}
|
|
37
|
-
|
|
38
|
-
// Interface for Talking Point Templates (talkingPointTemplates)
|
|
39
26
|
export interface ITalkingPointTemplate extends IFireDoc {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
title: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
tags?: ITag[];
|
|
43
30
|
}
|
|
44
|
-
|
|
45
|
-
// Interface for Talking Points within a Meeting (meetingTalkingPoints)
|
|
46
31
|
export interface IMeetingTalkingPoint {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
32
|
+
templateRef?: FirestoreDocumentReference;
|
|
33
|
+
title: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
tags?: ITag[];
|
|
36
|
+
discussed: boolean;
|
|
37
|
+
notes?: string;
|
|
38
|
+
assigneeName?: string;
|
|
39
|
+
assigneeRef?: FirestoreDocumentReference;
|
|
55
40
|
}
|
|
56
|
-
|
|
57
|
-
// Interface for Meeting Instances (meetingInstances)
|
|
58
41
|
export interface IMeeting extends IFireDoc {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
42
|
+
title: string;
|
|
43
|
+
description?: string;
|
|
44
|
+
creatorName: string;
|
|
45
|
+
creatorRef?: FirestoreDocumentReference;
|
|
46
|
+
event: IMeetingEvent;
|
|
47
|
+
type: MeetingType;
|
|
48
|
+
tasks?: IMeetingTask[];
|
|
49
|
+
talkingPoints?: IMeetingTalkingPoint[];
|
|
50
|
+
tags?: ITag[];
|
|
51
|
+
[key: string]: unknown;
|
|
69
52
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.IMeetingType = void 0;
|
|
18
|
+
__exportStar(require("./fb_collections"), exports);
|
|
19
|
+
var IMeetingType;
|
|
20
|
+
(function (IMeetingType) {
|
|
21
|
+
IMeetingType["Regular"] = "regular";
|
|
22
|
+
IMeetingType["OneOnOne"] = "oneonone";
|
|
23
|
+
IMeetingType["Feedback"] = "feedback";
|
|
24
|
+
IMeetingType["Presentation"] = "presentation";
|
|
25
|
+
IMeetingType["Other"] = "other";
|
|
26
|
+
})(IMeetingType = exports.IMeetingType || (exports.IMeetingType = {}));
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export const
|
|
6
|
-
export const DEPARTMENTS_COLLECTION = "departments";
|
|
7
|
-
export const OFFICES_COLLECTION = "offices";
|
|
8
|
-
export const EMPLOYEES_COLLECTION = "employees";
|
|
1
|
+
export declare const EVO_PEOPLE_APP = "evo-people";
|
|
2
|
+
export declare const COMPANIES_COLLECTION = "companies";
|
|
3
|
+
export declare const DEPARTMENTS_COLLECTION = "departments";
|
|
4
|
+
export declare const OFFICES_COLLECTION = "offices";
|
|
5
|
+
export declare const EMPLOYEES_COLLECTION = "employees";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EMPLOYEES_COLLECTION = exports.OFFICES_COLLECTION = exports.DEPARTMENTS_COLLECTION = exports.COMPANIES_COLLECTION = exports.EVO_PEOPLE_APP = void 0;
|
|
4
|
+
//EVO People Application Doc
|
|
5
|
+
exports.EVO_PEOPLE_APP = "evo-people";
|
|
6
|
+
//people
|
|
7
|
+
exports.COMPANIES_COLLECTION = "companies";
|
|
8
|
+
exports.DEPARTMENTS_COLLECTION = "departments";
|
|
9
|
+
exports.OFFICES_COLLECTION = "offices";
|
|
10
|
+
exports.EMPLOYEES_COLLECTION = "employees";
|
|
@@ -1,96 +1,82 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
|
-
import {
|
|
3
|
-
FirestoreDocumentReference,
|
|
4
|
-
IFireDoc,
|
|
5
|
-
IGeoPoint,
|
|
6
|
-
ITag,
|
|
7
|
-
} from "../shared";
|
|
8
|
-
|
|
9
|
-
// ----- PeopleTypes
|
|
10
|
-
// PeopleTypes
|
|
2
|
+
import { FirestoreDocumentReference, IFireDoc, IGeoPoint, ITag } from "../shared";
|
|
11
3
|
export type EmployeeStatus = "active" | "inactive" | "draft";
|
|
12
|
-
export enum IEmployeeStatus {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
export declare enum IEmployeeStatus {
|
|
5
|
+
Active = "active",
|
|
6
|
+
Inactive = "inactive",
|
|
7
|
+
Draft = "draft"
|
|
16
8
|
}
|
|
17
|
-
|
|
18
9
|
export interface IEmployeeCounters {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
active: number;
|
|
11
|
+
inactive: number;
|
|
12
|
+
draft: number;
|
|
13
|
+
deleted: number;
|
|
14
|
+
total: number;
|
|
24
15
|
}
|
|
25
|
-
|
|
26
16
|
export interface IProfile extends IFireDoc {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
17
|
+
display_name: string;
|
|
18
|
+
last_name?: string | null;
|
|
19
|
+
first_name?: string | null;
|
|
20
|
+
gender?: string | null;
|
|
21
|
+
birthdate?: Date | null;
|
|
22
|
+
photo_ref?: string | null;
|
|
23
|
+
photo_url?: string | null;
|
|
34
24
|
}
|
|
35
|
-
|
|
36
25
|
export interface IEmployee extends IProfile {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
26
|
+
employee_id?: string | null;
|
|
27
|
+
type?: string | null;
|
|
28
|
+
job_title?: string | null;
|
|
29
|
+
status?: EmployeeStatus;
|
|
30
|
+
company_name?: string | null;
|
|
31
|
+
companyRef?: FirestoreDocumentReference;
|
|
32
|
+
date_joining?: Date | null;
|
|
33
|
+
reporting_to_name?: string | null;
|
|
34
|
+
reporting_toRef?: FirestoreDocumentReference;
|
|
35
|
+
department_name?: string | null;
|
|
36
|
+
departmentRef?: FirestoreDocumentReference;
|
|
37
|
+
office_name?: string | null;
|
|
38
|
+
officeRef?: FirestoreDocumentReference;
|
|
39
|
+
work_email?: string | null;
|
|
40
|
+
work_phone?: string | null;
|
|
41
|
+
work_mobile?: string | null;
|
|
42
|
+
tags?: ITag[];
|
|
43
|
+
userRef?: FirestoreDocumentReference;
|
|
44
|
+
[key: string]: unknown;
|
|
56
45
|
}
|
|
57
|
-
|
|
58
46
|
export interface IDepartment extends IFireDoc {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
47
|
+
code: string;
|
|
48
|
+
name: string;
|
|
49
|
+
lead_name?: string | null;
|
|
50
|
+
leadRef?: FirestoreDocumentReference;
|
|
51
|
+
parent_department_name?: string | null;
|
|
52
|
+
parent_departmentRef?: FirestoreDocumentReference | null;
|
|
53
|
+
readonly employee_counters?: IEmployeeCounters;
|
|
54
|
+
tags?: ITag[];
|
|
67
55
|
}
|
|
68
|
-
|
|
69
56
|
export interface IOffice extends IFireDoc {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
57
|
+
code: string;
|
|
58
|
+
name: string;
|
|
59
|
+
timezone?: string | null;
|
|
60
|
+
company_name?: string | null;
|
|
61
|
+
companyRef?: FirestoreDocumentReference;
|
|
62
|
+
lead_name?: string | null;
|
|
63
|
+
leadRef?: FirestoreDocumentReference;
|
|
64
|
+
address_line1?: string;
|
|
65
|
+
address_line2?: string;
|
|
66
|
+
address_city?: string;
|
|
67
|
+
address_state?: string;
|
|
68
|
+
address_zip?: string;
|
|
69
|
+
address_country?: string;
|
|
70
|
+
address_geo?: IGeoPoint;
|
|
71
|
+
readonly employee_counters?: IEmployeeCounters;
|
|
72
|
+
tags?: ITag[];
|
|
86
73
|
}
|
|
87
|
-
|
|
88
74
|
export interface ICompany extends IFireDoc {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
75
|
+
code: string;
|
|
76
|
+
name: string;
|
|
77
|
+
lead_name?: string | null;
|
|
78
|
+
leadRef?: FirestoreDocumentReference;
|
|
79
|
+
readonly employee_counters?: IEmployeeCounters;
|
|
80
|
+
tags?: ITag[];
|
|
81
|
+
[key: string]: unknown;
|
|
96
82
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.IEmployeeStatus = void 0;
|
|
18
|
+
__exportStar(require("./fb_collections"), exports);
|
|
19
|
+
var IEmployeeStatus;
|
|
20
|
+
(function (IEmployeeStatus) {
|
|
21
|
+
IEmployeeStatus["Active"] = "active";
|
|
22
|
+
IEmployeeStatus["Inactive"] = "inactive";
|
|
23
|
+
IEmployeeStatus["Draft"] = "draft";
|
|
24
|
+
})(IEmployeeStatus = exports.IEmployeeStatus || (exports.IEmployeeStatus = {}));
|