Skip to content

Commit ee6cbf8

Browse files
committed
fix(google-calendar): dedupe GoogleCalendarAclRole type in update_acl.ts
export it from types.ts and import instead of redeclaring locally
1 parent f7e457b commit ee6cbf8

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

apps/sim/tools/google_calendar/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export interface GoogleCalendarCreateCalendarParams {
120120
timeZone?: string
121121
}
122122

123-
type GoogleCalendarAclRole = 'freeBusyReader' | 'reader' | 'writer' | 'owner'
123+
export type GoogleCalendarAclRole = 'freeBusyReader' | 'reader' | 'writer' | 'owner'
124124
type GoogleCalendarAclScopeType = 'user' | 'group' | 'domain' | 'default'
125125

126126
export interface GoogleCalendarShareCalendarParams {

apps/sim/tools/google_calendar/update_acl.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import { CALENDAR_API_BASE, type GoogleCalendarApiAclRule } from '@/tools/google_calendar/types'
1+
import {
2+
CALENDAR_API_BASE,
3+
type GoogleCalendarAclRole,
4+
type GoogleCalendarApiAclRule,
5+
} from '@/tools/google_calendar/types'
26
import type { ToolConfig } from '@/tools/types'
37

4-
type GoogleCalendarAclRole = 'freeBusyReader' | 'reader' | 'writer' | 'owner'
5-
68
export interface GoogleCalendarUpdateAclParams {
79
accessToken: string
810
calendarId?: string

0 commit comments

Comments
 (0)