recal-sdk 0.1.0
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/LICENSE +21 -0
- package/dist/entities/organization.d.ts +21 -0
- package/dist/entities/organization.d.ts.map +1 -0
- package/dist/entities/user.d.ts +23 -0
- package/dist/entities/user.d.ts.map +1 -0
- package/dist/errors.d.ts +22 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/index.d.mts +55 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7046 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +99 -0
- package/dist/index.mjs.map +1 -0
- package/dist/services/calendar.service.d.ts +106 -0
- package/dist/services/calendar.service.d.ts.map +1 -0
- package/dist/services/oauth.service.d.ts +78 -0
- package/dist/services/oauth.service.d.ts.map +1 -0
- package/dist/services/organizations.service.d.ts +63 -0
- package/dist/services/organizations.service.d.ts.map +1 -0
- package/dist/services/scheduling.service.d.ts +48 -0
- package/dist/services/scheduling.service.d.ts.map +1 -0
- package/dist/services/users.service.d.ts +46 -0
- package/dist/services/users.service.d.ts.map +1 -0
- package/dist/typebox/calendar.tb.d.ts +112 -0
- package/dist/typebox/calendar.tb.d.ts.map +1 -0
- package/dist/typebox/oauth.tb.d.ts +14 -0
- package/dist/typebox/oauth.tb.d.ts.map +1 -0
- package/dist/typebox/organization.stripped.tb.d.ts +6 -0
- package/dist/typebox/organization.stripped.tb.d.ts.map +1 -0
- package/dist/typebox/organization.tb.d.ts +10 -0
- package/dist/typebox/organization.tb.d.ts.map +1 -0
- package/dist/typebox/scheduling.tb.d.ts +94 -0
- package/dist/typebox/scheduling.tb.d.ts.map +1 -0
- package/dist/typebox/timeString.tb.d.ts +3 -0
- package/dist/typebox/timeString.tb.d.ts.map +1 -0
- package/dist/typebox/user.stripped.tb.d.ts +5 -0
- package/dist/typebox/user.stripped.tb.d.ts.map +1 -0
- package/dist/typebox/user.tb.d.ts +19 -0
- package/dist/typebox/user.tb.d.ts.map +1 -0
- package/dist/typedi.d.ts +3 -0
- package/dist/typedi.d.ts.map +1 -0
- package/dist/types/calendar.types.d.mts +72 -0
- package/dist/types/calendar.types.d.ts +125 -0
- package/dist/types/calendar.types.d.ts.map +1 -0
- package/dist/types/calendar.types.js +56 -0
- package/dist/types/calendar.types.js.map +1 -0
- package/dist/types/calendar.types.mjs +22 -0
- package/dist/types/calendar.types.mjs.map +1 -0
- package/dist/types/entity.types.d.mts +11 -0
- package/dist/types/entity.types.d.ts +11 -0
- package/dist/types/entity.types.js +22 -0
- package/dist/types/entity.types.js.map +1 -0
- package/dist/types/entity.types.mjs +1 -0
- package/dist/types/entity.types.mjs.map +1 -0
- package/dist/types/index.d.mts +12 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.js +58 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +22 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/types/internal.types.d.ts +7 -0
- package/dist/types/internal.types.d.ts.map +1 -0
- package/dist/types/oauth.types.d.ts +15 -0
- package/dist/types/oauth.types.d.ts.map +1 -0
- package/dist/types/scheduling.types.d.ts +48 -0
- package/dist/types/scheduling.types.d.ts.map +1 -0
- package/dist/utils/fetch.helper.d.ts +59 -0
- package/dist/utils/fetch.helper.d.ts.map +1 -0
- package/dist/utils/fetchErrorHandler.d.ts +22 -0
- package/dist/utils/fetchErrorHandler.d.ts.map +1 -0
- package/dist/utils/functionize.d.ts +5 -0
- package/dist/utils/functionize.d.ts.map +1 -0
- package/dist/utils/includes.helper.d.ts +4 -0
- package/dist/utils/includes.helper.d.ts.map +1 -0
- package/dist/utils/omit.d.ts +2 -0
- package/dist/utils/omit.d.ts.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const strippedOrganizationSchema: import("@sinclair/typebox").TObject<{
|
|
2
|
+
slug: import("@sinclair/typebox").TString;
|
|
3
|
+
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
4
|
+
createdAt: import("@sinclair/typebox").TDate;
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=organization.stripped.tb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.stripped.tb.d.ts","sourceRoot":"","sources":["../../src/typebox/organization.stripped.tb.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B;;;;EAIrC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const organizationSchema: import("@sinclair/typebox").TObject<{
|
|
2
|
+
members: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
3
|
+
id: import("@sinclair/typebox").TString;
|
|
4
|
+
createdAt: import("@sinclair/typebox").TDate;
|
|
5
|
+
}>>>;
|
|
6
|
+
slug: import("@sinclair/typebox").TString;
|
|
7
|
+
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
8
|
+
createdAt: import("@sinclair/typebox").TDate;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=organization.tb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.tb.d.ts","sourceRoot":"","sources":["../../src/typebox/organization.tb.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;EAG7B,CAAA"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schema for scheduling
|
|
3
|
+
*/
|
|
4
|
+
export declare const schedulingSchema: import("@sinclair/typebox").TObject<{
|
|
5
|
+
days: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"monday">, import("@sinclair/typebox").TLiteral<"tuesday">, import("@sinclair/typebox").TLiteral<"wednesday">, import("@sinclair/typebox").TLiteral<"thursday">, import("@sinclair/typebox").TLiteral<"friday">, import("@sinclair/typebox").TLiteral<"saturday">, import("@sinclair/typebox").TLiteral<"sunday">]>>;
|
|
6
|
+
start: import("@sinclair/typebox").TString;
|
|
7
|
+
end: import("@sinclair/typebox").TString;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* Schema for scheduling options
|
|
11
|
+
*/
|
|
12
|
+
export declare const schedulingOptionsSchema: import("@sinclair/typebox").TObject<{
|
|
13
|
+
padding: import("@sinclair/typebox").TNumber;
|
|
14
|
+
slotDuration: import("@sinclair/typebox").TNumber;
|
|
15
|
+
startDate: import("@sinclair/typebox").TDate;
|
|
16
|
+
endDate: import("@sinclair/typebox").TDate;
|
|
17
|
+
earliestTimeEachDay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18
|
+
latestTimeEachDay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Schema for output scheduling options
|
|
22
|
+
*/
|
|
23
|
+
export declare const outputSchedulingOptionsSchema: import("@sinclair/typebox").TObject<{
|
|
24
|
+
padding: import("@sinclair/typebox").TNumber;
|
|
25
|
+
slotDuration: import("@sinclair/typebox").TNumber;
|
|
26
|
+
startDate: import("@sinclair/typebox").TDate;
|
|
27
|
+
endDate: import("@sinclair/typebox").TDate;
|
|
28
|
+
earliestTimeEachDay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
29
|
+
latestTimeEachDay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* Schema for time range with user information
|
|
33
|
+
*/
|
|
34
|
+
export declare const timeRangeWithUserSchema: import("@sinclair/typebox").TObject<{
|
|
35
|
+
start: import("@sinclair/typebox").TDate;
|
|
36
|
+
end: import("@sinclair/typebox").TDate;
|
|
37
|
+
userId: import("@sinclair/typebox").TString;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Schema for the response of the scheduling endpoint
|
|
41
|
+
*/
|
|
42
|
+
export declare const schedulingResponseSchema: import("@sinclair/typebox").TObject<{
|
|
43
|
+
availableSlots: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
44
|
+
start: import("@sinclair/typebox").TDate;
|
|
45
|
+
end: import("@sinclair/typebox").TDate;
|
|
46
|
+
}>>;
|
|
47
|
+
options: import("@sinclair/typebox").TObject<{
|
|
48
|
+
padding: import("@sinclair/typebox").TNumber;
|
|
49
|
+
slotDuration: import("@sinclair/typebox").TNumber;
|
|
50
|
+
startDate: import("@sinclair/typebox").TDate;
|
|
51
|
+
endDate: import("@sinclair/typebox").TDate;
|
|
52
|
+
earliestTimeEachDay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
53
|
+
latestTimeEachDay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
54
|
+
}>;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Schema for the response of the advanced scheduling endpoint
|
|
58
|
+
*/
|
|
59
|
+
export declare const advancedSchedulingResponseSchema: import("@sinclair/typebox").TObject<{
|
|
60
|
+
availableSlots: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
61
|
+
start: import("@sinclair/typebox").TDate;
|
|
62
|
+
end: import("@sinclair/typebox").TDate;
|
|
63
|
+
}>>;
|
|
64
|
+
options: import("@sinclair/typebox").TObject<{
|
|
65
|
+
schedules: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
66
|
+
days: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"monday">, import("@sinclair/typebox").TLiteral<"tuesday">, import("@sinclair/typebox").TLiteral<"wednesday">, import("@sinclair/typebox").TLiteral<"thursday">, import("@sinclair/typebox").TLiteral<"friday">, import("@sinclair/typebox").TLiteral<"saturday">, import("@sinclair/typebox").TLiteral<"sunday">]>>;
|
|
67
|
+
start: import("@sinclair/typebox").TString;
|
|
68
|
+
end: import("@sinclair/typebox").TString;
|
|
69
|
+
}>>;
|
|
70
|
+
padding: import("@sinclair/typebox").TNumber;
|
|
71
|
+
slotDuration: import("@sinclair/typebox").TNumber;
|
|
72
|
+
startDate: import("@sinclair/typebox").TDate;
|
|
73
|
+
endDate: import("@sinclair/typebox").TDate;
|
|
74
|
+
}>;
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* Schema for the response of the sub-organization scheduling endpoint
|
|
78
|
+
*/
|
|
79
|
+
export declare const subOrgSchedulingResponseSchema: import("@sinclair/typebox").TObject<{
|
|
80
|
+
availableSlots: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
81
|
+
start: import("@sinclair/typebox").TDate;
|
|
82
|
+
end: import("@sinclair/typebox").TDate;
|
|
83
|
+
userId: import("@sinclair/typebox").TString;
|
|
84
|
+
}>>;
|
|
85
|
+
options: import("@sinclair/typebox").TObject<{
|
|
86
|
+
padding: import("@sinclair/typebox").TNumber;
|
|
87
|
+
slotDuration: import("@sinclair/typebox").TNumber;
|
|
88
|
+
startDate: import("@sinclair/typebox").TDate;
|
|
89
|
+
endDate: import("@sinclair/typebox").TDate;
|
|
90
|
+
earliestTimeEachDay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
91
|
+
latestTimeEachDay: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
92
|
+
}>;
|
|
93
|
+
}>;
|
|
94
|
+
//# sourceMappingURL=scheduling.tb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduling.tb.d.ts","sourceRoot":"","sources":["../../src/typebox/scheduling.tb.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;EAmB3B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;EA2BlC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;EA2BxC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;EAUlC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;EAGnC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;EAM3C,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;EAGzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeString.tb.d.ts","sourceRoot":"","sources":["../../src/typebox/timeString.tb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGpD,eAAO,MAAM,UAAU,GAAI,UAAU,WAAW,wCAK1C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.stripped.tb.d.ts","sourceRoot":"","sources":["../../src/typebox/user.stripped.tb.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;EAG7B,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const userSchema: import("@sinclair/typebox").TObject<{
|
|
2
|
+
organizations: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
3
|
+
slug: import("@sinclair/typebox").TString;
|
|
4
|
+
name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
5
|
+
createdAt: import("@sinclair/typebox").TDate;
|
|
6
|
+
}>>>;
|
|
7
|
+
oauthConnections: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
8
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
9
|
+
provider: import("@sinclair/typebox").TEnum<typeof import("../types/calendar.types").Provider>;
|
|
10
|
+
accessToken: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
+
refreshToken: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
12
|
+
email: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
13
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
14
|
+
alive: import("@sinclair/typebox").TBoolean;
|
|
15
|
+
}>>>;
|
|
16
|
+
id: import("@sinclair/typebox").TString;
|
|
17
|
+
createdAt: import("@sinclair/typebox").TDate;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=user.tb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.tb.d.ts","sourceRoot":"","sources":["../../src/typebox/user.tb.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;EAIrB,CAAA"}
|
package/dist/typedi.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typedi.d.ts","sourceRoot":"","sources":["../src/typedi.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,WAA0C,CAAA;AAClE,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,QAAwC,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
declare enum Provider {
|
|
2
|
+
GOOGLE = 'google',
|
|
3
|
+
MICROSOFT = 'microsoft',
|
|
4
|
+
}
|
|
5
|
+
declare enum CalendarAccessRoles {
|
|
6
|
+
FreeBusyReader = 'freeBusyReader',
|
|
7
|
+
Reader = 'reader',
|
|
8
|
+
Writer = 'writer',
|
|
9
|
+
Owner = 'owner',
|
|
10
|
+
}
|
|
11
|
+
declare enum AttendeeResponseStatus {
|
|
12
|
+
NeedsAction = 'needsAction',
|
|
13
|
+
Accepted = 'accepted',
|
|
14
|
+
Tentative = 'tentative',
|
|
15
|
+
Declined = 'declined',
|
|
16
|
+
}
|
|
17
|
+
type Calendar = {
|
|
18
|
+
id: string
|
|
19
|
+
timeZone?: string
|
|
20
|
+
subject?: string
|
|
21
|
+
backgroundColor?: string
|
|
22
|
+
foregroundColor?: string
|
|
23
|
+
selected?: boolean
|
|
24
|
+
accessRole?: CalendarAccessRoles
|
|
25
|
+
original?: unknown
|
|
26
|
+
}
|
|
27
|
+
type Meeting = {
|
|
28
|
+
url: string
|
|
29
|
+
}
|
|
30
|
+
type Attendee = {
|
|
31
|
+
email: string
|
|
32
|
+
original: unknown
|
|
33
|
+
} & (
|
|
34
|
+
| {
|
|
35
|
+
responseStatus?: AttendeeResponseStatus
|
|
36
|
+
}
|
|
37
|
+
| {
|
|
38
|
+
self: true
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
type Event = {
|
|
42
|
+
id: string
|
|
43
|
+
metaId?: string
|
|
44
|
+
subject?: string
|
|
45
|
+
description?: string
|
|
46
|
+
start?: Date
|
|
47
|
+
end?: Date
|
|
48
|
+
location?: string
|
|
49
|
+
attendees: Attendee[]
|
|
50
|
+
meeting?: Meeting
|
|
51
|
+
original: unknown
|
|
52
|
+
}
|
|
53
|
+
type TimeRange = {
|
|
54
|
+
start: Date
|
|
55
|
+
end: Date
|
|
56
|
+
}
|
|
57
|
+
type FreeBusy = {
|
|
58
|
+
calendarId: string
|
|
59
|
+
busy: TimeRange[]
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export {
|
|
63
|
+
type Attendee,
|
|
64
|
+
AttendeeResponseStatus,
|
|
65
|
+
type Calendar,
|
|
66
|
+
CalendarAccessRoles,
|
|
67
|
+
type Event,
|
|
68
|
+
type FreeBusy,
|
|
69
|
+
type Meeting,
|
|
70
|
+
Provider,
|
|
71
|
+
type TimeRange,
|
|
72
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { Static } from '@sinclair/typebox';
|
|
2
|
+
import type { attendeeSchema, eventSchema, freeBusySchema, timeRangeSchema } from '../typebox/calendar.tb';
|
|
3
|
+
/**
|
|
4
|
+
* Provider enum
|
|
5
|
+
*/
|
|
6
|
+
export declare enum Provider {
|
|
7
|
+
GOOGLE = "google",
|
|
8
|
+
MICROSOFT = "microsoft"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Calendar access roles enum
|
|
12
|
+
*/
|
|
13
|
+
export declare enum CalendarAccessRoles {
|
|
14
|
+
FreeBusyReader = "freeBusyReader",
|
|
15
|
+
Reader = "reader",
|
|
16
|
+
Writer = "writer",
|
|
17
|
+
Owner = "owner"
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Attendee response status enum
|
|
21
|
+
*/
|
|
22
|
+
export declare enum AttendeeResponseStatus {
|
|
23
|
+
NeedsAction = "needsAction",
|
|
24
|
+
Accepted = "accepted",
|
|
25
|
+
Tentative = "tentative",
|
|
26
|
+
Declined = "declined"
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Calendar type
|
|
30
|
+
*/
|
|
31
|
+
export interface Calendar {
|
|
32
|
+
id: string;
|
|
33
|
+
timeZone?: string;
|
|
34
|
+
subject?: string;
|
|
35
|
+
backgroundColor?: string;
|
|
36
|
+
foregroundColor?: string;
|
|
37
|
+
selected?: boolean;
|
|
38
|
+
accessRole?: CalendarAccessRoles;
|
|
39
|
+
original?: unknown;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Meeting interface
|
|
43
|
+
*/
|
|
44
|
+
export interface Meeting {
|
|
45
|
+
url: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Attendee interface
|
|
49
|
+
*/
|
|
50
|
+
export type Attendee = Static<typeof attendeeSchema>;
|
|
51
|
+
/**
|
|
52
|
+
* Create attendee interface
|
|
53
|
+
*/
|
|
54
|
+
export interface CreateAttendee {
|
|
55
|
+
email: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Event interface
|
|
59
|
+
*/
|
|
60
|
+
export type Event = Static<typeof eventSchema>;
|
|
61
|
+
/**
|
|
62
|
+
* Create event interface
|
|
63
|
+
*/
|
|
64
|
+
export interface CreateEvent {
|
|
65
|
+
metaId?: string;
|
|
66
|
+
subject?: string;
|
|
67
|
+
description?: string;
|
|
68
|
+
start?: Date;
|
|
69
|
+
end?: Date;
|
|
70
|
+
location?: string;
|
|
71
|
+
attendees?: CreateAttendee[];
|
|
72
|
+
sendNotifications?: boolean;
|
|
73
|
+
meeting?: Meeting;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Create event across calendars interface
|
|
77
|
+
*/
|
|
78
|
+
export interface CreateEventAcrossCalendars {
|
|
79
|
+
id?: string;
|
|
80
|
+
subject?: string;
|
|
81
|
+
description?: string;
|
|
82
|
+
start?: Date;
|
|
83
|
+
end?: Date;
|
|
84
|
+
location?: string;
|
|
85
|
+
attendees?: CreateAttendee[];
|
|
86
|
+
sendNotifications?: boolean;
|
|
87
|
+
meeting?: Meeting;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Update event interface
|
|
91
|
+
*/
|
|
92
|
+
export interface UpdateEvent {
|
|
93
|
+
id?: string;
|
|
94
|
+
subject?: string;
|
|
95
|
+
description?: string;
|
|
96
|
+
start?: Date;
|
|
97
|
+
end?: Date;
|
|
98
|
+
location?: string;
|
|
99
|
+
attendees?: CreateAttendee[];
|
|
100
|
+
sendNotifications?: boolean;
|
|
101
|
+
meeting?: Meeting;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Update event across calendars interface
|
|
105
|
+
*/
|
|
106
|
+
export interface UpdateEventAcrossCalendars {
|
|
107
|
+
metaId: string;
|
|
108
|
+
subject?: string;
|
|
109
|
+
description?: string;
|
|
110
|
+
start?: Date;
|
|
111
|
+
end?: Date;
|
|
112
|
+
location?: string;
|
|
113
|
+
attendees?: CreateAttendee[];
|
|
114
|
+
sendNotificationsFor?: Provider[];
|
|
115
|
+
meeting?: Meeting;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Time range interface
|
|
119
|
+
*/
|
|
120
|
+
export type TimeRange = Static<typeof timeRangeSchema>;
|
|
121
|
+
/**
|
|
122
|
+
* FreeBusy response interface
|
|
123
|
+
*/
|
|
124
|
+
export type FreeBusy = Static<typeof freeBusySchema>;
|
|
125
|
+
//# sourceMappingURL=calendar.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.types.d.ts","sourceRoot":"","sources":["../../src/types/calendar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAI1G;;GAEG;AACH,oBAAY,QAAQ;IAChB,MAAM,WAAW;IACjB,SAAS,cAAc;CAC1B;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC3B,cAAc,mBAAmB;IACjC,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;CAClB;AAED;;GAEG;AACH,oBAAY,sBAAsB;IAC9B,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;CACxB;AAGD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB,GAAG,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAA;AAE9C;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,GAAG,CAAC,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,cAAc,EAAE,CAAA;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,GAAG,CAAC,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,cAAc,EAAE,CAAA;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,GAAG,CAAC,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,cAAc,EAAE,CAAA;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,IAAI,CAAA;IACZ,GAAG,CAAC,EAAE,IAAI,CAAA;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,cAAc,EAAE,CAAA;IAC5B,oBAAoB,CAAC,EAAE,QAAQ,EAAE,CAAA;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA;AAEtD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
var __defProp = Object.defineProperty
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
|
|
8
|
+
}
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if ((from && typeof from === 'object') || typeof from === 'function') {
|
|
11
|
+
for (const key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
return to
|
|
19
|
+
}
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, '__esModule', { value: true }), mod)
|
|
21
|
+
|
|
22
|
+
// src/types/calendar.types.ts
|
|
23
|
+
var calendar_types_exports = {}
|
|
24
|
+
__export(calendar_types_exports, {
|
|
25
|
+
AttendeeResponseStatus: () => AttendeeResponseStatus,
|
|
26
|
+
CalendarAccessRoles: () => CalendarAccessRoles,
|
|
27
|
+
Provider: () => Provider,
|
|
28
|
+
})
|
|
29
|
+
module.exports = __toCommonJS(calendar_types_exports)
|
|
30
|
+
var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
31
|
+
Provider2.GOOGLE = 'google'
|
|
32
|
+
Provider2.MICROSOFT = 'microsoft'
|
|
33
|
+
return Provider2
|
|
34
|
+
})(Provider || {})
|
|
35
|
+
var CalendarAccessRoles = /* @__PURE__ */ ((CalendarAccessRoles2) => {
|
|
36
|
+
CalendarAccessRoles2.FreeBusyReader = 'freeBusyReader'
|
|
37
|
+
CalendarAccessRoles2.Reader = 'reader'
|
|
38
|
+
CalendarAccessRoles2.Writer = 'writer'
|
|
39
|
+
CalendarAccessRoles2.Owner = 'owner'
|
|
40
|
+
return CalendarAccessRoles2
|
|
41
|
+
})(CalendarAccessRoles || {})
|
|
42
|
+
var AttendeeResponseStatus = /* @__PURE__ */ ((AttendeeResponseStatus2) => {
|
|
43
|
+
AttendeeResponseStatus2.NeedsAction = 'needsAction'
|
|
44
|
+
AttendeeResponseStatus2.Accepted = 'accepted'
|
|
45
|
+
AttendeeResponseStatus2.Tentative = 'tentative'
|
|
46
|
+
AttendeeResponseStatus2.Declined = 'declined'
|
|
47
|
+
return AttendeeResponseStatus2
|
|
48
|
+
})(AttendeeResponseStatus || {})
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 &&
|
|
51
|
+
(module.exports = {
|
|
52
|
+
AttendeeResponseStatus,
|
|
53
|
+
CalendarAccessRoles,
|
|
54
|
+
Provider,
|
|
55
|
+
})
|
|
56
|
+
//# sourceMappingURL=calendar.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/calendar.types.ts"],"sourcesContent":["// Enums\nexport enum Provider {\n GOOGLE = 'google',\n MICROSOFT = 'microsoft',\n}\n\nexport enum CalendarAccessRoles {\n FreeBusyReader = 'freeBusyReader',\n Reader = 'reader',\n Writer = 'writer',\n Owner = 'owner',\n}\n\nexport enum AttendeeResponseStatus {\n NeedsAction = 'needsAction',\n Accepted = 'accepted',\n Tentative = 'tentative',\n Declined = 'declined',\n}\n\n// Types\n\nexport type Calendar = {\n id: string\n timeZone?: string\n subject?: string\n backgroundColor?: string\n foregroundColor?: string\n selected?: boolean\n accessRole?: CalendarAccessRoles\n original?: unknown\n}\n\nexport type Meeting = {\n url: string\n}\n\nexport type Attendee = {\n email: string\n original: unknown\n} & (\n | {\n responseStatus?: AttendeeResponseStatus\n }\n | {\n self: true\n }\n)\n\nexport type Event = {\n id: string\n metaId?: string\n subject?: string\n description?: string\n start?: Date\n end?: Date\n location?: string\n attendees: Attendee[]\n meeting?: Meeting\n original: unknown\n}\n\nexport type TimeRange = {\n start: Date\n end: Date\n}\n\nexport type FreeBusy = {\n calendarId: string\n busy: TimeRange[]\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,IAAK,WAAL,kBAAKA,cAAL;AACH,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,eAAY;AAFJ,SAAAA;AAAA,GAAA;AAKL,IAAK,sBAAL,kBAAKC,yBAAL;AACH,EAAAA,qBAAA,oBAAiB;AACjB,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,WAAQ;AAJA,SAAAA;AAAA,GAAA;AAOL,IAAK,yBAAL,kBAAKC,4BAAL;AACH,EAAAA,wBAAA,iBAAc;AACd,EAAAA,wBAAA,cAAW;AACX,EAAAA,wBAAA,eAAY;AACZ,EAAAA,wBAAA,cAAW;AAJH,SAAAA;AAAA,GAAA;","names":["Provider","CalendarAccessRoles","AttendeeResponseStatus"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/types/calendar.types.ts
|
|
2
|
+
var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
3
|
+
Provider2.GOOGLE = 'google'
|
|
4
|
+
Provider2.MICROSOFT = 'microsoft'
|
|
5
|
+
return Provider2
|
|
6
|
+
})(Provider || {})
|
|
7
|
+
var CalendarAccessRoles = /* @__PURE__ */ ((CalendarAccessRoles2) => {
|
|
8
|
+
CalendarAccessRoles2.FreeBusyReader = 'freeBusyReader'
|
|
9
|
+
CalendarAccessRoles2.Reader = 'reader'
|
|
10
|
+
CalendarAccessRoles2.Writer = 'writer'
|
|
11
|
+
CalendarAccessRoles2.Owner = 'owner'
|
|
12
|
+
return CalendarAccessRoles2
|
|
13
|
+
})(CalendarAccessRoles || {})
|
|
14
|
+
var AttendeeResponseStatus = /* @__PURE__ */ ((AttendeeResponseStatus2) => {
|
|
15
|
+
AttendeeResponseStatus2.NeedsAction = 'needsAction'
|
|
16
|
+
AttendeeResponseStatus2.Accepted = 'accepted'
|
|
17
|
+
AttendeeResponseStatus2.Tentative = 'tentative'
|
|
18
|
+
AttendeeResponseStatus2.Declined = 'declined'
|
|
19
|
+
return AttendeeResponseStatus2
|
|
20
|
+
})(AttendeeResponseStatus || {})
|
|
21
|
+
export { AttendeeResponseStatus, CalendarAccessRoles, Provider }
|
|
22
|
+
//# sourceMappingURL=calendar.types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/calendar.types.ts"],"sourcesContent":["// Enums\nexport enum Provider {\n GOOGLE = 'google',\n MICROSOFT = 'microsoft',\n}\n\nexport enum CalendarAccessRoles {\n FreeBusyReader = 'freeBusyReader',\n Reader = 'reader',\n Writer = 'writer',\n Owner = 'owner',\n}\n\nexport enum AttendeeResponseStatus {\n NeedsAction = 'needsAction',\n Accepted = 'accepted',\n Tentative = 'tentative',\n Declined = 'declined',\n}\n\n// Types\n\nexport type Calendar = {\n id: string\n timeZone?: string\n subject?: string\n backgroundColor?: string\n foregroundColor?: string\n selected?: boolean\n accessRole?: CalendarAccessRoles\n original?: unknown\n}\n\nexport type Meeting = {\n url: string\n}\n\nexport type Attendee = {\n email: string\n original: unknown\n} & (\n | {\n responseStatus?: AttendeeResponseStatus\n }\n | {\n self: true\n }\n)\n\nexport type Event = {\n id: string\n metaId?: string\n subject?: string\n description?: string\n start?: Date\n end?: Date\n location?: string\n attendees: Attendee[]\n meeting?: Meeting\n original: unknown\n}\n\nexport type TimeRange = {\n start: Date\n end: Date\n}\n\nexport type FreeBusy = {\n calendarId: string\n busy: TimeRange[]\n}\n"],"mappings":";AACO,IAAK,WAAL,kBAAKA,cAAL;AACH,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,eAAY;AAFJ,SAAAA;AAAA,GAAA;AAKL,IAAK,sBAAL,kBAAKC,yBAAL;AACH,EAAAA,qBAAA,oBAAiB;AACjB,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,WAAQ;AAJA,SAAAA;AAAA,GAAA;AAOL,IAAK,yBAAL,kBAAKC,4BAAL;AACH,EAAAA,wBAAA,iBAAc;AACd,EAAAA,wBAAA,cAAW;AACX,EAAAA,wBAAA,eAAY;AACZ,EAAAA,wBAAA,cAAW;AAJH,SAAAA;AAAA,GAAA;","names":["Provider","CalendarAccessRoles","AttendeeResponseStatus"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
var __defProp = Object.defineProperty
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if ((from && typeof from === 'object') || typeof from === 'function') {
|
|
8
|
+
for (const key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
|
|
13
|
+
})
|
|
14
|
+
}
|
|
15
|
+
return to
|
|
16
|
+
}
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, '__esModule', { value: true }), mod)
|
|
18
|
+
|
|
19
|
+
// src/types/entity.types.ts
|
|
20
|
+
var entity_types_exports = {}
|
|
21
|
+
module.exports = __toCommonJS(entity_types_exports)
|
|
22
|
+
//# sourceMappingURL=entity.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/entity.types.ts"],"sourcesContent":["export type Organization = {\n name: string | null\n createdAt: Date\n slug: string\n}\n\nexport type OrganizationMember = {\n createdAt: Date\n userId: string\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=entity.types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
var __defProp = Object.defineProperty
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
|
|
8
|
+
}
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if ((from && typeof from === 'object') || typeof from === 'function') {
|
|
11
|
+
for (const key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
return to
|
|
19
|
+
}
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, '__esModule', { value: true }), mod)
|
|
21
|
+
|
|
22
|
+
// src/types/index.ts
|
|
23
|
+
var types_exports = {}
|
|
24
|
+
__export(types_exports, {
|
|
25
|
+
AttendeeResponseStatus: () => AttendeeResponseStatus,
|
|
26
|
+
CalendarAccessRoles: () => CalendarAccessRoles,
|
|
27
|
+
Provider: () => Provider,
|
|
28
|
+
})
|
|
29
|
+
module.exports = __toCommonJS(types_exports)
|
|
30
|
+
|
|
31
|
+
// src/types/calendar.types.ts
|
|
32
|
+
var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
33
|
+
Provider2.GOOGLE = 'google'
|
|
34
|
+
Provider2.MICROSOFT = 'microsoft'
|
|
35
|
+
return Provider2
|
|
36
|
+
})(Provider || {})
|
|
37
|
+
var CalendarAccessRoles = /* @__PURE__ */ ((CalendarAccessRoles2) => {
|
|
38
|
+
CalendarAccessRoles2.FreeBusyReader = 'freeBusyReader'
|
|
39
|
+
CalendarAccessRoles2.Reader = 'reader'
|
|
40
|
+
CalendarAccessRoles2.Writer = 'writer'
|
|
41
|
+
CalendarAccessRoles2.Owner = 'owner'
|
|
42
|
+
return CalendarAccessRoles2
|
|
43
|
+
})(CalendarAccessRoles || {})
|
|
44
|
+
var AttendeeResponseStatus = /* @__PURE__ */ ((AttendeeResponseStatus2) => {
|
|
45
|
+
AttendeeResponseStatus2.NeedsAction = 'needsAction'
|
|
46
|
+
AttendeeResponseStatus2.Accepted = 'accepted'
|
|
47
|
+
AttendeeResponseStatus2.Tentative = 'tentative'
|
|
48
|
+
AttendeeResponseStatus2.Declined = 'declined'
|
|
49
|
+
return AttendeeResponseStatus2
|
|
50
|
+
})(AttendeeResponseStatus || {})
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 &&
|
|
53
|
+
(module.exports = {
|
|
54
|
+
AttendeeResponseStatus,
|
|
55
|
+
CalendarAccessRoles,
|
|
56
|
+
Provider,
|
|
57
|
+
})
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts","../../src/types/calendar.types.ts"],"sourcesContent":["export * from './calendar.types'\nexport * from './entity.types'\n","// Enums\nexport enum Provider {\n GOOGLE = 'google',\n MICROSOFT = 'microsoft',\n}\n\nexport enum CalendarAccessRoles {\n FreeBusyReader = 'freeBusyReader',\n Reader = 'reader',\n Writer = 'writer',\n Owner = 'owner',\n}\n\nexport enum AttendeeResponseStatus {\n NeedsAction = 'needsAction',\n Accepted = 'accepted',\n Tentative = 'tentative',\n Declined = 'declined',\n}\n\n// Types\n\nexport type Calendar = {\n id: string\n timeZone?: string\n subject?: string\n backgroundColor?: string\n foregroundColor?: string\n selected?: boolean\n accessRole?: CalendarAccessRoles\n original?: unknown\n}\n\nexport type Meeting = {\n url: string\n}\n\nexport type Attendee = {\n email: string\n original: unknown\n} & (\n | {\n responseStatus?: AttendeeResponseStatus\n }\n | {\n self: true\n }\n)\n\nexport type Event = {\n id: string\n metaId?: string\n subject?: string\n description?: string\n start?: Date\n end?: Date\n location?: string\n attendees: Attendee[]\n meeting?: Meeting\n original: unknown\n}\n\nexport type TimeRange = {\n start: Date\n end: Date\n}\n\nexport type FreeBusy = {\n calendarId: string\n busy: TimeRange[]\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCO,IAAK,WAAL,kBAAKA,cAAL;AACH,EAAAA,UAAA,YAAS;AACT,EAAAA,UAAA,eAAY;AAFJ,SAAAA;AAAA,GAAA;AAKL,IAAK,sBAAL,kBAAKC,yBAAL;AACH,EAAAA,qBAAA,oBAAiB;AACjB,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,YAAS;AACT,EAAAA,qBAAA,WAAQ;AAJA,SAAAA;AAAA,GAAA;AAOL,IAAK,yBAAL,kBAAKC,4BAAL;AACH,EAAAA,wBAAA,iBAAc;AACd,EAAAA,wBAAA,cAAW;AACX,EAAAA,wBAAA,eAAY;AACZ,EAAAA,wBAAA,cAAW;AAJH,SAAAA;AAAA,GAAA;","names":["Provider","CalendarAccessRoles","AttendeeResponseStatus"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/types/calendar.types.ts
|
|
2
|
+
var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
3
|
+
Provider2.GOOGLE = 'google'
|
|
4
|
+
Provider2.MICROSOFT = 'microsoft'
|
|
5
|
+
return Provider2
|
|
6
|
+
})(Provider || {})
|
|
7
|
+
var CalendarAccessRoles = /* @__PURE__ */ ((CalendarAccessRoles2) => {
|
|
8
|
+
CalendarAccessRoles2.FreeBusyReader = 'freeBusyReader'
|
|
9
|
+
CalendarAccessRoles2.Reader = 'reader'
|
|
10
|
+
CalendarAccessRoles2.Writer = 'writer'
|
|
11
|
+
CalendarAccessRoles2.Owner = 'owner'
|
|
12
|
+
return CalendarAccessRoles2
|
|
13
|
+
})(CalendarAccessRoles || {})
|
|
14
|
+
var AttendeeResponseStatus = /* @__PURE__ */ ((AttendeeResponseStatus2) => {
|
|
15
|
+
AttendeeResponseStatus2.NeedsAction = 'needsAction'
|
|
16
|
+
AttendeeResponseStatus2.Accepted = 'accepted'
|
|
17
|
+
AttendeeResponseStatus2.Tentative = 'tentative'
|
|
18
|
+
AttendeeResponseStatus2.Declined = 'declined'
|
|
19
|
+
return AttendeeResponseStatus2
|
|
20
|
+
})(AttendeeResponseStatus || {})
|
|
21
|
+
export { AttendeeResponseStatus, CalendarAccessRoles, Provider }
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|