@trii/types 2.10.188 → 2.10.189
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/Calendar/Event.d.ts +59 -0
- package/dist/Calendar/Event.js +13 -0
- package/dist/Calendar/index.d.ts +1 -0
- package/dist/Calendar/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { IContactInfo } from "../Contacts/contacts";
|
|
2
|
+
import { UserInfo } from "../Users/UserTrii";
|
|
3
|
+
export interface IEventType {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
color: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IEvent {
|
|
10
|
+
id: string;
|
|
11
|
+
spaceId: string;
|
|
12
|
+
isPrivate: boolean;
|
|
13
|
+
relatedWith: IRelatedInfo[];
|
|
14
|
+
date: Date;
|
|
15
|
+
startAt: Date;
|
|
16
|
+
endAt: Date;
|
|
17
|
+
allDay: boolean;
|
|
18
|
+
title: string;
|
|
19
|
+
details: string;
|
|
20
|
+
location: string;
|
|
21
|
+
color?: string;
|
|
22
|
+
eventType?: IEventType;
|
|
23
|
+
calendarId?: string;
|
|
24
|
+
repeatId?: string;
|
|
25
|
+
notifications: IEventNotification[];
|
|
26
|
+
sharedWith: UserInfo[];
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
createdBy: UserInfo;
|
|
29
|
+
finalized: boolean;
|
|
30
|
+
finalizedAt?: Date;
|
|
31
|
+
finalizedBy?: string;
|
|
32
|
+
deletedAt?: Date;
|
|
33
|
+
deletedBy?: UserInfo;
|
|
34
|
+
}
|
|
35
|
+
export interface IRelatedInfo {
|
|
36
|
+
type: relatedType;
|
|
37
|
+
id: string;
|
|
38
|
+
contact: IContactInfo;
|
|
39
|
+
ticket: any;
|
|
40
|
+
debt: any;
|
|
41
|
+
}
|
|
42
|
+
export declare enum relatedType {
|
|
43
|
+
CONTACT = 1,
|
|
44
|
+
DEBT = 2,
|
|
45
|
+
TICKET = 3
|
|
46
|
+
}
|
|
47
|
+
export interface IEventNotification {
|
|
48
|
+
id: string;
|
|
49
|
+
notificacionDateTime: Date;
|
|
50
|
+
timeValue: number;
|
|
51
|
+
timePeriod: EventNotificationPeriod;
|
|
52
|
+
sendToContact: boolean;
|
|
53
|
+
}
|
|
54
|
+
export declare enum EventNotificationPeriod {
|
|
55
|
+
MINUTE = 1,
|
|
56
|
+
HOUR = 2,
|
|
57
|
+
DAY = 3,
|
|
58
|
+
WEEK = 4
|
|
59
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var relatedType;
|
|
2
|
+
(function (relatedType) {
|
|
3
|
+
relatedType[relatedType["CONTACT"] = 1] = "CONTACT";
|
|
4
|
+
relatedType[relatedType["DEBT"] = 2] = "DEBT";
|
|
5
|
+
relatedType[relatedType["TICKET"] = 3] = "TICKET";
|
|
6
|
+
})(relatedType || (relatedType = {}));
|
|
7
|
+
export var EventNotificationPeriod;
|
|
8
|
+
(function (EventNotificationPeriod) {
|
|
9
|
+
EventNotificationPeriod[EventNotificationPeriod["MINUTE"] = 1] = "MINUTE";
|
|
10
|
+
EventNotificationPeriod[EventNotificationPeriod["HOUR"] = 2] = "HOUR";
|
|
11
|
+
EventNotificationPeriod[EventNotificationPeriod["DAY"] = 3] = "DAY";
|
|
12
|
+
EventNotificationPeriod[EventNotificationPeriod["WEEK"] = 4] = "WEEK";
|
|
13
|
+
})(EventNotificationPeriod || (EventNotificationPeriod = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Event';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Event';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * as Accounts from './Accounts/index';
|
|
|
2
2
|
export * as AuditLogs from './AuditLogs/index';
|
|
3
3
|
export * as Common from './Common/index';
|
|
4
4
|
export * as Contacts from './Contacts/index';
|
|
5
|
+
export * as Calendar from './Calendar/index';
|
|
5
6
|
export * as Conversations from './Conversations/index';
|
|
6
7
|
export * as Security from './Security/index';
|
|
7
8
|
export * as Spaces from './Spaces/index';
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,8 @@ import * as Common_1 from './Common/index';
|
|
|
6
6
|
export { Common_1 as Common };
|
|
7
7
|
import * as Contacts_1 from './Contacts/index';
|
|
8
8
|
export { Contacts_1 as Contacts };
|
|
9
|
+
import * as Calendar_1 from './Calendar/index';
|
|
10
|
+
export { Calendar_1 as Calendar };
|
|
9
11
|
import * as Conversations_1 from './Conversations/index';
|
|
10
12
|
export { Conversations_1 as Conversations };
|
|
11
13
|
import * as Security_1 from './Security/index';
|