evo360-types 1.3.4 → 1.3.6
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/package.json +1 -1
- package/dist/apps/evo-activity/zod-schemas.d.ts +0 -93
- package/dist/apps/evo-activity/zod-schemas.js +0 -40
- package/dist/apps/evo-activity/zod-schemas.ts +0 -43
- package/dist/apps/evo-cake/zod-schemas.d.ts +0 -783
- package/dist/apps/evo-cake/zod-schemas.js +0 -110
- package/dist/apps/evo-cake/zod-schemas.ts +0 -121
- package/dist/apps/evo-calendar/zod-schemas.d.ts +0 -71
- package/dist/apps/evo-calendar/zod-schemas.js +0 -32
- package/dist/apps/evo-calendar/zod-schemas.ts +0 -33
- package/dist/apps/evo-core/zod-schemas.d.ts +0 -14
- package/dist/apps/evo-core/zod-schemas.js +0 -9
- package/dist/apps/evo-core/zod-schemas.ts +0 -7
- package/dist/apps/evo-crm/dic/zod-schemas.d.ts +0 -233
- package/dist/apps/evo-crm/dic/zod-schemas.js +0 -45
- package/dist/apps/evo-crm/dic/zod-schemas.ts +0 -46
- package/dist/apps/evo-crm/lead/zod-schemas.d.ts +0 -347
- package/dist/apps/evo-crm/lead/zod-schemas.js +0 -30
- package/dist/apps/evo-crm/lead/zod-schemas.ts +0 -35
- package/dist/apps/evo-med/dic/zod-schemas.d.ts +0 -501
- package/dist/apps/evo-med/dic/zod-schemas.js +0 -116
- package/dist/apps/evo-med/dic/zod-schemas.ts +0 -127
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +0 -421
- package/dist/apps/evo-med/insurance/zod-schemas.js +0 -33
- package/dist/apps/evo-med/insurance/zod-schemas.ts +0 -39
- package/dist/apps/evo-med/people/zod-schemas.d.ts +0 -955
- package/dist/apps/evo-med/people/zod-schemas.js +0 -100
- package/dist/apps/evo-med/people/zod-schemas.ts +0 -117
- package/dist/apps/evo-med/procedure/zod-schemas.d.ts +0 -141
- package/dist/apps/evo-med/procedure/zod-schemas.js +0 -26
- package/dist/apps/evo-med/procedure/zod-schemas.ts +0 -26
- package/dist/apps/evo-meeting/zod-schemas.d.ts +0 -429
- package/dist/apps/evo-meeting/zod-schemas.js +0 -56
- package/dist/apps/evo-meeting/zod-schemas.ts +0 -62
- package/dist/apps/evo-people/zod-schemas.d.ts +0 -476
- package/dist/apps/evo-people/zod-schemas.js +0 -120
- package/dist/apps/evo-people/zod-schemas.ts +0 -124
- package/dist/apps/evo-survey/zod-schemas.d.ts +0 -1579
- package/dist/apps/evo-survey/zod-schemas.js +0 -191
- package/dist/apps/evo-survey/zod-schemas.ts +0 -209
- package/dist/apps/evo-task/zod-schemas.d.ts +0 -4
- package/dist/apps/evo-task/zod-schemas.js +0 -17
- package/dist/apps/evo-task/zod-schemas.ts +0 -17
- package/dist/apps/evo-tenant/zod-schemas.d.ts +0 -51
- package/dist/apps/evo-tenant/zod-schemas.js +0 -22
- package/dist/apps/evo-tenant/zod-schemas.ts +0 -23
- package/dist/apps/shared/zod-schemas.d.ts +0 -84
- package/dist/apps/shared/zod-schemas.js +0 -49
- package/dist/apps/shared/zod-schemas.ts +0 -51
- package/dist/index.d.ts +0 -35
- package/dist/index.js +0 -50
- package/dist/index.ts +0 -35
- package/dist/types/evo-activity/fb_collections.d.ts +0 -4
- package/dist/types/evo-activity/fb_collections.js +0 -9
- package/dist/types/evo-activity/fb_collections.ts +0 -7
- package/dist/types/evo-activity/index.d.ts +0 -28
- package/dist/types/evo-activity/index.js +0 -27
- package/dist/types/evo-activity/index.ts +0 -45
- package/dist/types/evo-cake/fb_collections.d.ts +0 -4
- package/dist/types/evo-cake/fb_collections.js +0 -9
- package/dist/types/evo-cake/fb_collections.ts +0 -7
- package/dist/types/evo-cake/index.d.ts +0 -111
- package/dist/types/evo-cake/index.js +0 -79
- package/dist/types/evo-cake/index.ts +0 -186
- package/dist/types/evo-calendar/fb_collections.d.ts +0 -2
- package/dist/types/evo-calendar/fb_collections.js +0 -7
- package/dist/types/evo-calendar/fb_collections.ts +0 -5
- package/dist/types/evo-calendar/index.d.ts +0 -56
- package/dist/types/evo-calendar/index.js +0 -37
- package/dist/types/evo-calendar/index.ts +0 -69
- package/dist/types/evo-core/index.d.ts +0 -41
- package/dist/types/evo-core/index.js +0 -2
- package/dist/types/evo-core/index.ts +0 -48
- package/dist/types/evo-crm/dic/index.d.ts +0 -50
- package/dist/types/evo-crm/dic/index.js +0 -31
- package/dist/types/evo-crm/dic/index.ts +0 -84
- package/dist/types/evo-crm/fb_collections.d.ts +0 -7
- package/dist/types/evo-crm/fb_collections.js +0 -13
- package/dist/types/evo-crm/fb_collections.ts +0 -13
- package/dist/types/evo-crm/lead/index.d.ts +0 -30
- package/dist/types/evo-crm/lead/index.js +0 -9
- package/dist/types/evo-crm/lead/index.ts +0 -40
- package/dist/types/evo-med/dic/index.d.ts +0 -99
- package/dist/types/evo-med/dic/index.js +0 -52
- package/dist/types/evo-med/dic/index.ts +0 -131
- package/dist/types/evo-med/fb_collections.d.ts +0 -20
- package/dist/types/evo-med/fb_collections.js +0 -28
- package/dist/types/evo-med/fb_collections.ts +0 -31
- package/dist/types/evo-med/insurance/index.d.ts +0 -34
- package/dist/types/evo-med/insurance/index.js +0 -24
- package/dist/types/evo-med/insurance/index.ts +0 -45
- package/dist/types/evo-med/people/index.d.ts +0 -125
- package/dist/types/evo-med/people/index.js +0 -66
- package/dist/types/evo-med/people/index.ts +0 -188
- package/dist/types/evo-med/procedure/index.d.ts +0 -36
- package/dist/types/evo-med/procedure/index.js +0 -30
- package/dist/types/evo-med/procedure/index.ts +0 -48
- package/dist/types/evo-meeting/fb_collections.d.ts +0 -2
- package/dist/types/evo-meeting/fb_collections.js +0 -7
- package/dist/types/evo-meeting/fb_collections.ts +0 -5
- package/dist/types/evo-meeting/index.d.ts +0 -58
- package/dist/types/evo-meeting/index.js +0 -32
- package/dist/types/evo-meeting/index.ts +0 -80
- package/dist/types/evo-messages/fb_collections.d.ts +0 -1
- package/dist/types/evo-messages/fb_collections.js +0 -2
- package/dist/types/evo-messages/fb_collections.ts +0 -0
- package/dist/types/evo-people/fb_collections.d.ts +0 -5
- package/dist/types/evo-people/fb_collections.js +0 -10
- package/dist/types/evo-people/fb_collections.ts +0 -8
- package/dist/types/evo-people/index.d.ts +0 -117
- package/dist/types/evo-people/index.js +0 -59
- package/dist/types/evo-people/index.ts +0 -167
- package/dist/types/evo-survey/fb_collections.d.ts +0 -7
- package/dist/types/evo-survey/fb_collections.js +0 -13
- package/dist/types/evo-survey/fb_collections.ts +0 -12
- package/dist/types/evo-survey/index.d.ts +0 -172
- package/dist/types/evo-survey/index.js +0 -70
- package/dist/types/evo-survey/index.ts +0 -224
- package/dist/types/evo-task/fb_collections.d.ts +0 -2
- package/dist/types/evo-task/fb_collections.js +0 -7
- package/dist/types/evo-task/fb_collections.ts +0 -5
- package/dist/types/evo-task/index.d.ts +0 -35
- package/dist/types/evo-task/index.js +0 -38
- package/dist/types/evo-task/index.ts +0 -51
- package/dist/types/evo-tenant/fb_collections.d.ts +0 -1
- package/dist/types/evo-tenant/fb_collections.js +0 -5
- package/dist/types/evo-tenant/fb_collections.ts +0 -2
- package/dist/types/evo-tenant/index.d.ts +0 -28
- package/dist/types/evo-tenant/index.js +0 -35
- package/dist/types/evo-tenant/index.ts +0 -35
- package/dist/types/shared/fb_collections.d.ts +0 -5
- package/dist/types/shared/fb_collections.js +0 -13
- package/dist/types/shared/fb_collections.ts +0 -14
- package/dist/types/shared/index.d.ts +0 -52
- package/dist/types/shared/index.js +0 -30
- package/dist/types/shared/index.ts +0 -74
- package/dist/types/shared/maska.d.ts +0 -23
- package/dist/types/shared/maska.js +0 -2
- package/dist/types/shared/maska.ts +0 -26
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
export * from "./fb_collections";
|
|
2
|
-
import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
|
|
3
|
-
import type { TaskPriority, TaskStatus } from "../evo-task";
|
|
4
|
-
|
|
5
|
-
// ----- MeetingTypes
|
|
6
|
-
// Enum for Meeting Action - used in Activities tracking
|
|
7
|
-
export type MeetingAction =
|
|
8
|
-
| "CREATE_MEETING"
|
|
9
|
-
| "DELETE_MEETING"
|
|
10
|
-
| "UPDATE_MEETING";
|
|
11
|
-
export enum IMeetingAction {
|
|
12
|
-
Create_meeting = "CREATE_MEETING",
|
|
13
|
-
Delete_meeting = "DELETE_MEETING",
|
|
14
|
-
Update_meeting = "UPDATE_MEETING",
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type MeetingType =
|
|
18
|
-
| "regular"
|
|
19
|
-
| "oneonone"
|
|
20
|
-
| "feedback"
|
|
21
|
-
| "presentation"
|
|
22
|
-
| "other";
|
|
23
|
-
export enum IMeetingType {
|
|
24
|
-
Regular = "regular", // A regular meeting
|
|
25
|
-
OneOnOne = "oneonone", // A one-on-one meeting
|
|
26
|
-
Feedback = "feedback", // A feedback session
|
|
27
|
-
Presentation = "presentation", // A presentation meeting
|
|
28
|
-
Other = "other", // Any other type of meeting
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Interface for Event within a Meeting (meetingEvent)
|
|
32
|
-
export interface IMeetingEvent {
|
|
33
|
-
eventRef?: FirestoreDocumentReference; // Reference to the original event
|
|
34
|
-
participantNames: string[]; // List of participant names
|
|
35
|
-
participantRefs?: FirestoreDocumentReference[]; // List of participant references
|
|
36
|
-
startDate: Date; // Start date and time of the event
|
|
37
|
-
endDate?: Date; // Optional end date and time of the event
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Interface for Tasks within a Meeting (meetingTasks)
|
|
41
|
-
export interface IMeetingTask {
|
|
42
|
-
taskRef?: FirestoreDocumentReference; // Reference to the original task
|
|
43
|
-
title: string; // Title (copied from the original task)
|
|
44
|
-
status: TaskStatus; // Status (can be updated independently from the original task)
|
|
45
|
-
priority?: TaskPriority; // Priority (copied from the original task)
|
|
46
|
-
assigneeName?: string; // Name of the assignee (copied from the original task)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// Interface for Talking Point Templates (talkingPointTemplates)
|
|
50
|
-
export interface ITalkingPointTemplate extends IFireDoc {
|
|
51
|
-
title: string; // Title of the talking point
|
|
52
|
-
description?: string; // Optional detailed description
|
|
53
|
-
tags?: ITag[] | null; // Optional tags for categorization
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Interface for Talking Points within a Meeting (meetingTalkingPoints)
|
|
57
|
-
export interface IMeetingTalkingPoint {
|
|
58
|
-
templateRef?: FirestoreDocumentReference; // Reference to the original template
|
|
59
|
-
title: string; // Title (can be copied from the template or edited)
|
|
60
|
-
description?: string; // Description (can be copied from the template or edited)
|
|
61
|
-
tags?: ITag[] | null; // Tags (can be copied from the template or edited)
|
|
62
|
-
discussed: boolean; // Flag to indicate if the talking point was discussed
|
|
63
|
-
notes?: string; // Optional field for notes taken during the discussion
|
|
64
|
-
assigneeName?: string; // Name of the assignee (optional)
|
|
65
|
-
assigneeRef?: FirestoreDocumentReference; // Reference to the assignee (optional)
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Interface for Meeting Instances (meetingInstances)
|
|
69
|
-
export interface IMeeting extends IFireDoc {
|
|
70
|
-
title: string; // Title of the meeting
|
|
71
|
-
description?: string; // Optional description of the meeting
|
|
72
|
-
creatorName: string; // Name of the user who created the meeting
|
|
73
|
-
creatorRef?: FirestoreDocumentReference; // reference to the user who created the meeting
|
|
74
|
-
event: IMeetingEvent;
|
|
75
|
-
type: MeetingType; // Type of meeting
|
|
76
|
-
tasks?: IMeetingTask[];
|
|
77
|
-
talkingPoints?: IMeetingTalkingPoint[];
|
|
78
|
-
tags?: ITag[] | null;
|
|
79
|
-
[key: string]: unknown; // index signature
|
|
80
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
@@ -1,5 +0,0 @@
|
|
|
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";
|
|
@@ -1,10 +0,0 @@
|
|
|
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,8 +0,0 @@
|
|
|
1
|
-
//EVO People Application Doc
|
|
2
|
-
export const EVO_PEOPLE_APP = "evo-people";
|
|
3
|
-
|
|
4
|
-
//people
|
|
5
|
-
export const COMPANIES_COLLECTION = "companies";
|
|
6
|
-
export const DEPARTMENTS_COLLECTION = "departments";
|
|
7
|
-
export const OFFICES_COLLECTION = "offices";
|
|
8
|
-
export const EMPLOYEES_COLLECTION = "employees";
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
export * from "../evo-people/fb_collections";
|
|
2
|
-
import type { FirestoreDocumentReference, IFireDoc, IGeoPoint, ITag } from "../shared";
|
|
3
|
-
export type PeopleAction = "CREATE_COMPANY" | "DELETE_COMPANY" | "UPDATE_COMPANY" | "UPDATE_COMPANY_LEAD" | "UPDATE_COMPANY_NAME" | "CREATE_OFFICE" | "DELETE_OFFICE" | "UPDATE_OFFICE" | "UPDATE_OFFICE_NAME" | "UPDATE_OFFICE_TIMEZONE" | "UPDATE_OFFICE_COMPANY" | "UPDATE_OFFICE_LEAD" | "CREATE_DEPARTMENT" | "DELETE_DEPARTMENT" | "UPDATE_DEPARTMENT" | "UPDATE_DEPARTMENT_PARENT_DEPARTMENT" | "UPDATE_DEPARTMENT_LEAD" | "UPDATE_DEPARTMENT_NAME" | "CREATE_EMPLOYEE" | "DELETE_EMPLOYEE" | "UPDATE_EMPLOYEE" | "UPDATE_EMPLOYEE_PHOTO" | "UPDATE_PROFILE" | "UPDATE_PHOTO" | "UPDATE_PASSWORD" | "UPDATE_EMPLOYEE_REPORT_TO" | "UPDATE_EMPLOYEE_DEPARTMENT" | "UPDATE_EMPLOYEE_OFFICE" | "UPDATE_EMPLOYEE_COMPANY" | "UPDATE_EMPLOYEE_JOB_TITLE" | "UPDATE_EMPLOYEE_WORK_EMAIL" | "UPDATE_EMPLOYEE_STATUS";
|
|
4
|
-
export declare enum IPeopleAction {
|
|
5
|
-
Create_company = "CREATE_COMPANY",
|
|
6
|
-
Delete_company = "DELETE_COMPANY",
|
|
7
|
-
Update_company = "UPDATE_COMPANY",
|
|
8
|
-
Update_company_lead = "UPDATE_COMPANY_LEAD",
|
|
9
|
-
Update_company_name = "UPDATE_COMPANY_NAME",
|
|
10
|
-
Create_office = "CREATE_OFFICE",
|
|
11
|
-
Delete_office = "DELETE_OFFICE",
|
|
12
|
-
Update_office = "UPDATE_OFFICE",
|
|
13
|
-
Update_office_name = "UPDATE_OFFICE_NAME",
|
|
14
|
-
Update_office_timezone = "UPDATE_OFFICE_TIMEZONE",
|
|
15
|
-
Update_office_company = "UPDATE_OFFICE_COMPANY",
|
|
16
|
-
Update_office_lead = "UPDATE_OFFICE_LEAD",
|
|
17
|
-
Create_department = "CREATE_DEPARTMENT",
|
|
18
|
-
Delete_department = "DELETE_DEPARTMENT",
|
|
19
|
-
Update_department = "UPDATE_DEPARTMENT",
|
|
20
|
-
Update_department_parent_department = "UPDATE_DEPARTMENT_PARENT_DEPARTMENT",
|
|
21
|
-
Update_department_lead = "UPDATE_DEPARTMENT_LEAD",
|
|
22
|
-
Update_department_name = "UPDATE_DEPARTMENT_NAME",
|
|
23
|
-
Create_employee = "CREATE_EMPLOYEE",
|
|
24
|
-
Delete_employee = "DELETE_EMPLOYEE",
|
|
25
|
-
Update_employee = "UPDATE_EMPLOYEE",
|
|
26
|
-
Update_employee_photo = "UPDATE_EMPLOYEE_PHOTO",
|
|
27
|
-
Update_profile = "UPDATE_PROFILE",
|
|
28
|
-
Update_photo = "UPDATE_PHOTO",
|
|
29
|
-
Update_password = "UPDATE_PASSWORD",
|
|
30
|
-
Update_employee_report_to = "UPDATE_EMPLOYEE_REPORT_TO",
|
|
31
|
-
Update_employee_department = "UPDATE_EMPLOYEE_DEPARTMENT",
|
|
32
|
-
Update_employee_office = "UPDATE_EMPLOYEE_OFFICE",
|
|
33
|
-
Update_employee_company = "UPDATE_EMPLOYEE_COMPANY",
|
|
34
|
-
Update_employee_job_title = "UPDATE_EMPLOYEE_JOB_TITLE",
|
|
35
|
-
Update_employee_work_email = "UPDATE_EMPLOYEE_WORK_EMAIL",
|
|
36
|
-
Update_employee_status = "UPDATE_EMPLOYEE_STATUS"
|
|
37
|
-
}
|
|
38
|
-
export type EmployeeStatus = "active" | "inactive" | "draft";
|
|
39
|
-
export declare enum IEmployeeStatus {
|
|
40
|
-
Active = "active",
|
|
41
|
-
Inactive = "inactive",
|
|
42
|
-
Draft = "draft"
|
|
43
|
-
}
|
|
44
|
-
export interface IEmployeeCounters {
|
|
45
|
-
active: number;
|
|
46
|
-
inactive: number;
|
|
47
|
-
draft: number;
|
|
48
|
-
deleted: number;
|
|
49
|
-
total: number;
|
|
50
|
-
}
|
|
51
|
-
export interface IProfile extends IFireDoc {
|
|
52
|
-
display_name: string;
|
|
53
|
-
last_name?: string | null;
|
|
54
|
-
first_name?: string | null;
|
|
55
|
-
gender?: string | null;
|
|
56
|
-
birthdate?: Date | null;
|
|
57
|
-
photo_ref?: string | null;
|
|
58
|
-
photo_url?: string | null;
|
|
59
|
-
}
|
|
60
|
-
export interface IEmployee extends IProfile {
|
|
61
|
-
employeeId?: string | null;
|
|
62
|
-
type?: string | null;
|
|
63
|
-
job_title?: string | null;
|
|
64
|
-
status?: EmployeeStatus;
|
|
65
|
-
company_name?: string | null;
|
|
66
|
-
companyRef?: FirestoreDocumentReference;
|
|
67
|
-
date_joining?: Date | null;
|
|
68
|
-
reporting_to_name?: string | null;
|
|
69
|
-
reporting_toRef?: FirestoreDocumentReference;
|
|
70
|
-
department_name?: string | null;
|
|
71
|
-
departmentRef?: FirestoreDocumentReference;
|
|
72
|
-
office_name?: string | null;
|
|
73
|
-
officeRef?: FirestoreDocumentReference;
|
|
74
|
-
work_email?: string | null;
|
|
75
|
-
work_phone?: string | null;
|
|
76
|
-
work_mobile?: string | null;
|
|
77
|
-
tags?: ITag[] | null;
|
|
78
|
-
userRef?: FirestoreDocumentReference;
|
|
79
|
-
[key: string]: unknown;
|
|
80
|
-
}
|
|
81
|
-
export interface IDepartment extends IFireDoc {
|
|
82
|
-
code: string;
|
|
83
|
-
name: string;
|
|
84
|
-
lead_name?: string | null;
|
|
85
|
-
leadRef?: FirestoreDocumentReference;
|
|
86
|
-
parent_department_name?: string | null;
|
|
87
|
-
parent_departmentRef?: FirestoreDocumentReference | null;
|
|
88
|
-
readonly employee_counters?: IEmployeeCounters;
|
|
89
|
-
tags?: ITag[] | null;
|
|
90
|
-
}
|
|
91
|
-
export interface IOffice extends IFireDoc {
|
|
92
|
-
code: string;
|
|
93
|
-
name: string;
|
|
94
|
-
timezone?: string | null;
|
|
95
|
-
company_name?: string | null;
|
|
96
|
-
companyRef?: FirestoreDocumentReference;
|
|
97
|
-
lead_name?: string | null;
|
|
98
|
-
leadRef?: FirestoreDocumentReference;
|
|
99
|
-
address_line1?: string;
|
|
100
|
-
address_line2?: string;
|
|
101
|
-
address_city?: string;
|
|
102
|
-
address_state?: string;
|
|
103
|
-
address_zip?: string;
|
|
104
|
-
address_country?: string;
|
|
105
|
-
address_geo?: IGeoPoint;
|
|
106
|
-
readonly employee_counters?: IEmployeeCounters;
|
|
107
|
-
tags?: ITag[] | null;
|
|
108
|
-
}
|
|
109
|
-
export interface ICompany extends IFireDoc {
|
|
110
|
-
code: string;
|
|
111
|
-
name: string;
|
|
112
|
-
lead_name?: string | null;
|
|
113
|
-
leadRef?: FirestoreDocumentReference;
|
|
114
|
-
readonly employee_counters?: IEmployeeCounters;
|
|
115
|
-
tags?: ITag[] | null;
|
|
116
|
-
[key: string]: unknown;
|
|
117
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
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 = exports.IPeopleAction = void 0;
|
|
18
|
-
__exportStar(require("../evo-people/fb_collections"), exports);
|
|
19
|
-
var IPeopleAction;
|
|
20
|
-
(function (IPeopleAction) {
|
|
21
|
-
IPeopleAction["Create_company"] = "CREATE_COMPANY";
|
|
22
|
-
IPeopleAction["Delete_company"] = "DELETE_COMPANY";
|
|
23
|
-
IPeopleAction["Update_company"] = "UPDATE_COMPANY";
|
|
24
|
-
IPeopleAction["Update_company_lead"] = "UPDATE_COMPANY_LEAD";
|
|
25
|
-
IPeopleAction["Update_company_name"] = "UPDATE_COMPANY_NAME";
|
|
26
|
-
IPeopleAction["Create_office"] = "CREATE_OFFICE";
|
|
27
|
-
IPeopleAction["Delete_office"] = "DELETE_OFFICE";
|
|
28
|
-
IPeopleAction["Update_office"] = "UPDATE_OFFICE";
|
|
29
|
-
IPeopleAction["Update_office_name"] = "UPDATE_OFFICE_NAME";
|
|
30
|
-
IPeopleAction["Update_office_timezone"] = "UPDATE_OFFICE_TIMEZONE";
|
|
31
|
-
IPeopleAction["Update_office_company"] = "UPDATE_OFFICE_COMPANY";
|
|
32
|
-
IPeopleAction["Update_office_lead"] = "UPDATE_OFFICE_LEAD";
|
|
33
|
-
IPeopleAction["Create_department"] = "CREATE_DEPARTMENT";
|
|
34
|
-
IPeopleAction["Delete_department"] = "DELETE_DEPARTMENT";
|
|
35
|
-
IPeopleAction["Update_department"] = "UPDATE_DEPARTMENT";
|
|
36
|
-
IPeopleAction["Update_department_parent_department"] = "UPDATE_DEPARTMENT_PARENT_DEPARTMENT";
|
|
37
|
-
IPeopleAction["Update_department_lead"] = "UPDATE_DEPARTMENT_LEAD";
|
|
38
|
-
IPeopleAction["Update_department_name"] = "UPDATE_DEPARTMENT_NAME";
|
|
39
|
-
IPeopleAction["Create_employee"] = "CREATE_EMPLOYEE";
|
|
40
|
-
IPeopleAction["Delete_employee"] = "DELETE_EMPLOYEE";
|
|
41
|
-
IPeopleAction["Update_employee"] = "UPDATE_EMPLOYEE";
|
|
42
|
-
IPeopleAction["Update_employee_photo"] = "UPDATE_EMPLOYEE_PHOTO";
|
|
43
|
-
IPeopleAction["Update_profile"] = "UPDATE_PROFILE";
|
|
44
|
-
IPeopleAction["Update_photo"] = "UPDATE_PHOTO";
|
|
45
|
-
IPeopleAction["Update_password"] = "UPDATE_PASSWORD";
|
|
46
|
-
IPeopleAction["Update_employee_report_to"] = "UPDATE_EMPLOYEE_REPORT_TO";
|
|
47
|
-
IPeopleAction["Update_employee_department"] = "UPDATE_EMPLOYEE_DEPARTMENT";
|
|
48
|
-
IPeopleAction["Update_employee_office"] = "UPDATE_EMPLOYEE_OFFICE";
|
|
49
|
-
IPeopleAction["Update_employee_company"] = "UPDATE_EMPLOYEE_COMPANY";
|
|
50
|
-
IPeopleAction["Update_employee_job_title"] = "UPDATE_EMPLOYEE_JOB_TITLE";
|
|
51
|
-
IPeopleAction["Update_employee_work_email"] = "UPDATE_EMPLOYEE_WORK_EMAIL";
|
|
52
|
-
IPeopleAction["Update_employee_status"] = "UPDATE_EMPLOYEE_STATUS";
|
|
53
|
-
})(IPeopleAction || (exports.IPeopleAction = IPeopleAction = {}));
|
|
54
|
-
var IEmployeeStatus;
|
|
55
|
-
(function (IEmployeeStatus) {
|
|
56
|
-
IEmployeeStatus["Active"] = "active";
|
|
57
|
-
IEmployeeStatus["Inactive"] = "inactive";
|
|
58
|
-
IEmployeeStatus["Draft"] = "draft";
|
|
59
|
-
})(IEmployeeStatus || (exports.IEmployeeStatus = IEmployeeStatus = {}));
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
export * from "../evo-people/fb_collections";
|
|
2
|
-
import type {
|
|
3
|
-
FirestoreDocumentReference,
|
|
4
|
-
IFireDoc,
|
|
5
|
-
IGeoPoint,
|
|
6
|
-
ITag,
|
|
7
|
-
} from "../shared";
|
|
8
|
-
|
|
9
|
-
// ----- PeopleTypes
|
|
10
|
-
|
|
11
|
-
// Enum for EvoPeople Action - used in Activities tracking
|
|
12
|
-
export type PeopleAction =
|
|
13
|
-
| "CREATE_COMPANY"
|
|
14
|
-
| "DELETE_COMPANY"
|
|
15
|
-
| "UPDATE_COMPANY"
|
|
16
|
-
| "UPDATE_COMPANY_LEAD"
|
|
17
|
-
| "UPDATE_COMPANY_NAME"
|
|
18
|
-
| "CREATE_OFFICE"
|
|
19
|
-
| "DELETE_OFFICE"
|
|
20
|
-
| "UPDATE_OFFICE"
|
|
21
|
-
| "UPDATE_OFFICE_NAME"
|
|
22
|
-
| "UPDATE_OFFICE_TIMEZONE"
|
|
23
|
-
| "UPDATE_OFFICE_COMPANY"
|
|
24
|
-
| "UPDATE_OFFICE_LEAD"
|
|
25
|
-
| "CREATE_DEPARTMENT"
|
|
26
|
-
| "DELETE_DEPARTMENT"
|
|
27
|
-
| "UPDATE_DEPARTMENT"
|
|
28
|
-
| "UPDATE_DEPARTMENT_PARENT_DEPARTMENT"
|
|
29
|
-
| "UPDATE_DEPARTMENT_LEAD"
|
|
30
|
-
| "UPDATE_DEPARTMENT_NAME"
|
|
31
|
-
| "CREATE_EMPLOYEE"
|
|
32
|
-
| "DELETE_EMPLOYEE"
|
|
33
|
-
| "UPDATE_EMPLOYEE"
|
|
34
|
-
| "UPDATE_EMPLOYEE_PHOTO"
|
|
35
|
-
| "UPDATE_PROFILE"
|
|
36
|
-
| "UPDATE_PHOTO"
|
|
37
|
-
| "UPDATE_PASSWORD"
|
|
38
|
-
| "UPDATE_EMPLOYEE_REPORT_TO"
|
|
39
|
-
| "UPDATE_EMPLOYEE_DEPARTMENT"
|
|
40
|
-
| "UPDATE_EMPLOYEE_OFFICE"
|
|
41
|
-
| "UPDATE_EMPLOYEE_COMPANY"
|
|
42
|
-
| "UPDATE_EMPLOYEE_JOB_TITLE"
|
|
43
|
-
| "UPDATE_EMPLOYEE_WORK_EMAIL"
|
|
44
|
-
| "UPDATE_EMPLOYEE_STATUS";
|
|
45
|
-
|
|
46
|
-
export enum IPeopleAction {
|
|
47
|
-
Create_company = "CREATE_COMPANY",
|
|
48
|
-
Delete_company = "DELETE_COMPANY",
|
|
49
|
-
Update_company = "UPDATE_COMPANY",
|
|
50
|
-
Update_company_lead = "UPDATE_COMPANY_LEAD",
|
|
51
|
-
Update_company_name = "UPDATE_COMPANY_NAME",
|
|
52
|
-
Create_office = "CREATE_OFFICE",
|
|
53
|
-
Delete_office = "DELETE_OFFICE",
|
|
54
|
-
Update_office = "UPDATE_OFFICE",
|
|
55
|
-
Update_office_name = "UPDATE_OFFICE_NAME",
|
|
56
|
-
Update_office_timezone = "UPDATE_OFFICE_TIMEZONE",
|
|
57
|
-
Update_office_company = "UPDATE_OFFICE_COMPANY",
|
|
58
|
-
Update_office_lead = "UPDATE_OFFICE_LEAD",
|
|
59
|
-
Create_department = "CREATE_DEPARTMENT",
|
|
60
|
-
Delete_department = "DELETE_DEPARTMENT",
|
|
61
|
-
Update_department = "UPDATE_DEPARTMENT",
|
|
62
|
-
Update_department_parent_department = "UPDATE_DEPARTMENT_PARENT_DEPARTMENT",
|
|
63
|
-
Update_department_lead = "UPDATE_DEPARTMENT_LEAD",
|
|
64
|
-
Update_department_name = "UPDATE_DEPARTMENT_NAME",
|
|
65
|
-
Create_employee = "CREATE_EMPLOYEE",
|
|
66
|
-
Delete_employee = "DELETE_EMPLOYEE",
|
|
67
|
-
Update_employee = "UPDATE_EMPLOYEE",
|
|
68
|
-
Update_employee_photo = "UPDATE_EMPLOYEE_PHOTO",
|
|
69
|
-
Update_profile = "UPDATE_PROFILE",
|
|
70
|
-
Update_photo = "UPDATE_PHOTO",
|
|
71
|
-
Update_password = "UPDATE_PASSWORD",
|
|
72
|
-
Update_employee_report_to = "UPDATE_EMPLOYEE_REPORT_TO",
|
|
73
|
-
Update_employee_department = "UPDATE_EMPLOYEE_DEPARTMENT",
|
|
74
|
-
Update_employee_office = "UPDATE_EMPLOYEE_OFFICE",
|
|
75
|
-
Update_employee_company = "UPDATE_EMPLOYEE_COMPANY",
|
|
76
|
-
Update_employee_job_title = "UPDATE_EMPLOYEE_JOB_TITLE",
|
|
77
|
-
Update_employee_work_email = "UPDATE_EMPLOYEE_WORK_EMAIL",
|
|
78
|
-
Update_employee_status = "UPDATE_EMPLOYEE_STATUS",
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// PeopleTypes
|
|
82
|
-
export type EmployeeStatus = "active" | "inactive" | "draft";
|
|
83
|
-
export enum IEmployeeStatus {
|
|
84
|
-
Active = "active",
|
|
85
|
-
Inactive = "inactive",
|
|
86
|
-
Draft = "draft",
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface IEmployeeCounters {
|
|
90
|
-
active: number;
|
|
91
|
-
inactive: number;
|
|
92
|
-
draft: number;
|
|
93
|
-
deleted: number;
|
|
94
|
-
total: number;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface IProfile extends IFireDoc {
|
|
98
|
-
display_name: string;
|
|
99
|
-
last_name?: string | null;
|
|
100
|
-
first_name?: string | null;
|
|
101
|
-
gender?: string | null;
|
|
102
|
-
birthdate?: Date | null;
|
|
103
|
-
photo_ref?: string | null;
|
|
104
|
-
photo_url?: string | null;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface IEmployee extends IProfile {
|
|
108
|
-
employeeId?: string | null;
|
|
109
|
-
type?: string | null;
|
|
110
|
-
job_title?: string | null;
|
|
111
|
-
status?: EmployeeStatus;
|
|
112
|
-
company_name?: string | null;
|
|
113
|
-
companyRef?: FirestoreDocumentReference;
|
|
114
|
-
date_joining?: Date | null;
|
|
115
|
-
reporting_to_name?: string | null;
|
|
116
|
-
reporting_toRef?: FirestoreDocumentReference;
|
|
117
|
-
department_name?: string | null;
|
|
118
|
-
departmentRef?: FirestoreDocumentReference;
|
|
119
|
-
office_name?: string | null;
|
|
120
|
-
officeRef?: FirestoreDocumentReference;
|
|
121
|
-
work_email?: string | null;
|
|
122
|
-
work_phone?: string | null;
|
|
123
|
-
work_mobile?: string | null;
|
|
124
|
-
tags?: ITag[] | null;
|
|
125
|
-
userRef?: FirestoreDocumentReference;
|
|
126
|
-
[key: string]: unknown; // index signature
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface IDepartment extends IFireDoc {
|
|
130
|
-
code: string;
|
|
131
|
-
name: string;
|
|
132
|
-
lead_name?: string | null;
|
|
133
|
-
leadRef?: FirestoreDocumentReference;
|
|
134
|
-
parent_department_name?: string | null;
|
|
135
|
-
parent_departmentRef?: FirestoreDocumentReference | null;
|
|
136
|
-
readonly employee_counters?: IEmployeeCounters;
|
|
137
|
-
tags?: ITag[] | null;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface IOffice extends IFireDoc {
|
|
141
|
-
code: string;
|
|
142
|
-
name: string;
|
|
143
|
-
timezone?: string | null;
|
|
144
|
-
company_name?: string | null;
|
|
145
|
-
companyRef?: FirestoreDocumentReference;
|
|
146
|
-
lead_name?: string | null;
|
|
147
|
-
leadRef?: FirestoreDocumentReference;
|
|
148
|
-
address_line1?: string;
|
|
149
|
-
address_line2?: string;
|
|
150
|
-
address_city?: string;
|
|
151
|
-
address_state?: string;
|
|
152
|
-
address_zip?: string;
|
|
153
|
-
address_country?: string;
|
|
154
|
-
address_geo?: IGeoPoint;
|
|
155
|
-
readonly employee_counters?: IEmployeeCounters;
|
|
156
|
-
tags?: ITag[] | null;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface ICompany extends IFireDoc {
|
|
160
|
-
code: string;
|
|
161
|
-
name: string;
|
|
162
|
-
lead_name?: string | null;
|
|
163
|
-
leadRef?: FirestoreDocumentReference;
|
|
164
|
-
readonly employee_counters?: IEmployeeCounters;
|
|
165
|
-
tags?: ITag[] | null;
|
|
166
|
-
[key: string]: unknown; // index signature
|
|
167
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const EVO_SURVEY_APP = "evo-survey";
|
|
2
|
-
export declare const SURVEYS_COLLECTION = "surveys";
|
|
3
|
-
export declare const SURVEY_SECTIONS_COLLECTION = "sections";
|
|
4
|
-
export declare const SURVEY_QUESTIONS_COLLECTION = "questions";
|
|
5
|
-
export declare const SURVEY_DEPLOYMENTS_COLLECTION = "deployments";
|
|
6
|
-
export declare const SURVEY_DEPLOYMENTS_INVITATIONS_COLLECTION = "invitations";
|
|
7
|
-
export declare const SURVEY_DEPLOYMENTS_SUBMISSIONS_COLLECTION = "submissions";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SURVEY_DEPLOYMENTS_SUBMISSIONS_COLLECTION = exports.SURVEY_DEPLOYMENTS_INVITATIONS_COLLECTION = exports.SURVEY_DEPLOYMENTS_COLLECTION = exports.SURVEY_QUESTIONS_COLLECTION = exports.SURVEY_SECTIONS_COLLECTION = exports.SURVEYS_COLLECTION = exports.EVO_SURVEY_APP = void 0;
|
|
4
|
-
//EVO Surveys Application Doc
|
|
5
|
-
exports.EVO_SURVEY_APP = "evo-survey";
|
|
6
|
-
//surveys
|
|
7
|
-
exports.SURVEYS_COLLECTION = "surveys";
|
|
8
|
-
exports.SURVEY_SECTIONS_COLLECTION = "sections";
|
|
9
|
-
exports.SURVEY_QUESTIONS_COLLECTION = "questions";
|
|
10
|
-
//deployments
|
|
11
|
-
exports.SURVEY_DEPLOYMENTS_COLLECTION = "deployments";
|
|
12
|
-
exports.SURVEY_DEPLOYMENTS_INVITATIONS_COLLECTION = "invitations";
|
|
13
|
-
exports.SURVEY_DEPLOYMENTS_SUBMISSIONS_COLLECTION = "submissions";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//EVO Surveys Application Doc
|
|
2
|
-
export const EVO_SURVEY_APP = "evo-survey";
|
|
3
|
-
|
|
4
|
-
//surveys
|
|
5
|
-
export const SURVEYS_COLLECTION = "surveys";
|
|
6
|
-
export const SURVEY_SECTIONS_COLLECTION = "sections";
|
|
7
|
-
export const SURVEY_QUESTIONS_COLLECTION = "questions";
|
|
8
|
-
|
|
9
|
-
//deployments
|
|
10
|
-
export const SURVEY_DEPLOYMENTS_COLLECTION = "deployments";
|
|
11
|
-
export const SURVEY_DEPLOYMENTS_INVITATIONS_COLLECTION = "invitations";
|
|
12
|
-
export const SURVEY_DEPLOYMENTS_SUBMISSIONS_COLLECTION = "submissions";
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
export * from "./fb_collections";
|
|
2
|
-
import type { IFireDoc, ITag } from "../shared";
|
|
3
|
-
import type { MaskOptions } from "../shared/maska";
|
|
4
|
-
export type SurveyAction = "CREATE_SURVEY" | "DELETE_SURVEY" | "UPDATE_SURVEY";
|
|
5
|
-
export declare enum ISurveyAction {
|
|
6
|
-
Create_survey = "CREATE_SURVEY",
|
|
7
|
-
Delete_survey = "DELETE_SURVEY",
|
|
8
|
-
Update_survey = "UPDATE_SURVEY"
|
|
9
|
-
}
|
|
10
|
-
export type SurveyDeploymentAction = "CREATE_SURVEY_DEPLOYMENT" | "DELETE_SURVEY_DEPLOYMENT" | "UPDATE_SURVEY_DEPLOYMENT";
|
|
11
|
-
export declare enum ISurveyDeploymentAction {
|
|
12
|
-
Create_survey_deployment = "CREATE_SURVEY_DEPLOYMENT",
|
|
13
|
-
Delete_survey_deployment = "DELETE_SURVEY_DEPLOYMENT",
|
|
14
|
-
Update_survey_deployment = "UPDATE_SURVEY_DEPLOYMENT"
|
|
15
|
-
}
|
|
16
|
-
export type SurveyPermission = "private" | "tenant" | "public";
|
|
17
|
-
export declare enum ISurveyPermission {
|
|
18
|
-
Private = "private",
|
|
19
|
-
Tenant = "tenant",
|
|
20
|
-
Public = "public"
|
|
21
|
-
}
|
|
22
|
-
export type SurveyType = "360" | "general";
|
|
23
|
-
export declare enum ISurveyType {
|
|
24
|
-
Review360 = "360",
|
|
25
|
-
General = "general"
|
|
26
|
-
}
|
|
27
|
-
export type SurveyStatus = "draft" | "ready" | "archived";
|
|
28
|
-
export declare enum ISurveyStatus {
|
|
29
|
-
Draft = "draft",
|
|
30
|
-
Ready = "ready",
|
|
31
|
-
Archived = "archived"
|
|
32
|
-
}
|
|
33
|
-
export type SurveyQuestionType = "scale" | "essay" | "options" | "date" | "phone" | "mask";
|
|
34
|
-
export declare enum ISurveyQuestionType {
|
|
35
|
-
Scale = "scale",
|
|
36
|
-
Essay = "essay",
|
|
37
|
-
Options = "options",
|
|
38
|
-
Date = "date",
|
|
39
|
-
Phone = "phone",
|
|
40
|
-
Mask = "mask"
|
|
41
|
-
}
|
|
42
|
-
export interface ISectionCounters {
|
|
43
|
-
deleted: number;
|
|
44
|
-
total: number;
|
|
45
|
-
}
|
|
46
|
-
export interface IQuestionCounters {
|
|
47
|
-
deleted: number;
|
|
48
|
-
total: number;
|
|
49
|
-
}
|
|
50
|
-
export interface ISurveyQuestion extends IFireDoc {
|
|
51
|
-
surveyId: string;
|
|
52
|
-
sectionId: string;
|
|
53
|
-
statement?: string;
|
|
54
|
-
description?: string;
|
|
55
|
-
description_text?: string;
|
|
56
|
-
order?: number;
|
|
57
|
-
required?: boolean;
|
|
58
|
-
tags?: ITag[] | null;
|
|
59
|
-
}
|
|
60
|
-
export interface ISurveyQuestionScale extends ISurveyQuestion {
|
|
61
|
-
type: "scale";
|
|
62
|
-
template?: string;
|
|
63
|
-
scale_min?: number;
|
|
64
|
-
scale_max?: number;
|
|
65
|
-
}
|
|
66
|
-
export interface ISurveyQuestionEssay extends ISurveyQuestion {
|
|
67
|
-
type: "essay";
|
|
68
|
-
multiple_lines?: boolean;
|
|
69
|
-
length_min?: number;
|
|
70
|
-
length_max?: number;
|
|
71
|
-
}
|
|
72
|
-
export interface ISurveyQuestionMultipleChoice extends ISurveyQuestion {
|
|
73
|
-
type: "options";
|
|
74
|
-
options: string[];
|
|
75
|
-
allow_multiple_selections?: boolean;
|
|
76
|
-
}
|
|
77
|
-
export interface ISurveyQuestionDate extends ISurveyQuestion {
|
|
78
|
-
type: "date";
|
|
79
|
-
date_min?: Date | null;
|
|
80
|
-
date_max?: Date | null;
|
|
81
|
-
}
|
|
82
|
-
export interface ISurveyQuestionPhone extends ISurveyQuestion {
|
|
83
|
-
type: "phone";
|
|
84
|
-
maska?: MaskOptions;
|
|
85
|
-
}
|
|
86
|
-
export interface ISurveyQuestionMask extends ISurveyQuestion {
|
|
87
|
-
type: "mask";
|
|
88
|
-
maska?: MaskOptions;
|
|
89
|
-
}
|
|
90
|
-
export interface ISurveySection extends IFireDoc {
|
|
91
|
-
surveyId: string;
|
|
92
|
-
name: string;
|
|
93
|
-
description?: string;
|
|
94
|
-
order?: number;
|
|
95
|
-
questions?: (ISurveyQuestionEssay | ISurveyQuestionScale | ISurveyQuestionMultipleChoice | ISurveyQuestionDate | ISurveyQuestionPhone | ISurveyQuestionMask)[];
|
|
96
|
-
readonly question_counters?: IQuestionCounters;
|
|
97
|
-
}
|
|
98
|
-
export interface ISurvey extends IFireDoc {
|
|
99
|
-
name: string;
|
|
100
|
-
description?: string;
|
|
101
|
-
status?: SurveyStatus;
|
|
102
|
-
permission?: SurveyPermission;
|
|
103
|
-
type: SurveyType;
|
|
104
|
-
sections?: ISurveySection[];
|
|
105
|
-
tags?: ITag[] | null;
|
|
106
|
-
readonly section_counters?: ISectionCounters;
|
|
107
|
-
readonly question_counters?: IQuestionCounters;
|
|
108
|
-
}
|
|
109
|
-
export type SurveyDeploymentStatus = "draft" | "open" | "closed" | "in_progress" | "paused";
|
|
110
|
-
export declare enum ISurveyDeploymentStatus {
|
|
111
|
-
Draft = "draft",//A aplicação está sendo criada e ainda não foi aberta.
|
|
112
|
-
Open = "open",//A aplicação está aberta e disponível para submissões.
|
|
113
|
-
Closed = "closed",//A aplicação está fechada e não aceita mais submissões.
|
|
114
|
-
InProgress = "in_progress",// A aplicação está em andamento, mas ainda não foi fechada para novas
|
|
115
|
-
Paused = "paused"
|
|
116
|
-
}
|
|
117
|
-
export type SurveySubmissionStatus = "not_started" | "in_progress" | "completed";
|
|
118
|
-
export declare enum ISurveySubmissionStatus {
|
|
119
|
-
NotStarted = "not_started",//A submissão ainda não foi iniciada.
|
|
120
|
-
InProgress = "in_progress",//A submissão está em andamento.
|
|
121
|
-
Completed = "completed"
|
|
122
|
-
}
|
|
123
|
-
export interface ISurveyResponse extends IFireDoc {
|
|
124
|
-
surveyId: string;
|
|
125
|
-
responses?: IQuestionResponse[];
|
|
126
|
-
}
|
|
127
|
-
export interface IQuestionResponse {
|
|
128
|
-
questionId: string;
|
|
129
|
-
answer: string | string[] | null;
|
|
130
|
-
date?: Date;
|
|
131
|
-
}
|
|
132
|
-
export interface ISurveySubmission extends IFireDoc {
|
|
133
|
-
deploymentId?: string;
|
|
134
|
-
submission_date?: Date;
|
|
135
|
-
status: SurveySubmissionStatus;
|
|
136
|
-
inviteeId?: string;
|
|
137
|
-
user_name?: string;
|
|
138
|
-
survey_responses?: ISurveyResponse[];
|
|
139
|
-
readonly modified_after_completion?: boolean;
|
|
140
|
-
readonly answer_count?: number;
|
|
141
|
-
readonly submission_count?: number;
|
|
142
|
-
}
|
|
143
|
-
export interface ISurveyInvitee extends IFireDoc {
|
|
144
|
-
invitedUserId?: string;
|
|
145
|
-
name: string;
|
|
146
|
-
email?: string;
|
|
147
|
-
phone?: string;
|
|
148
|
-
photo_url?: string | null;
|
|
149
|
-
description?: string;
|
|
150
|
-
isAnonymous?: boolean;
|
|
151
|
-
submissionId?: string;
|
|
152
|
-
submission_status?: SurveySubmissionStatus;
|
|
153
|
-
}
|
|
154
|
-
export interface ISurveyDeployment extends IFireDoc {
|
|
155
|
-
name: string;
|
|
156
|
-
description?: string;
|
|
157
|
-
surveys?: ISurvey[] | null;
|
|
158
|
-
start_date: Date | null;
|
|
159
|
-
end_date: Date | null;
|
|
160
|
-
status: SurveyDeploymentStatus;
|
|
161
|
-
allow_edit_answers: boolean;
|
|
162
|
-
allow_partial_submission: boolean;
|
|
163
|
-
readonly section_count?: number;
|
|
164
|
-
readonly question_count?: number;
|
|
165
|
-
invitees?: ISurveyInvitee[] | null;
|
|
166
|
-
readonly invitee_count?: number;
|
|
167
|
-
submissions?: ISurveySubmission[] | null;
|
|
168
|
-
readonly submission_count?: number;
|
|
169
|
-
readonly submission_not_started_count?: number;
|
|
170
|
-
readonly submission_in_progress_count?: number;
|
|
171
|
-
readonly submission_completed_count?: number;
|
|
172
|
-
}
|