-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feature: add methos to get all ticktick tasks and github commits
- Loading branch information
1 parent
aaa2c6d
commit a51eb70
Showing
51 changed files
with
979 additions
and
2,937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare function checkIfisGASEnvironment(): boolean; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
type ParsedGithubCommit = { | ||
commitDate: string; | ||
commitMessage: string; | ||
commitId: string; | ||
commitUrl: string; | ||
repository: string; | ||
repositoryId: string; | ||
repositoryName: string; | ||
repositoryOwner: string; | ||
repositoryDescription: string; | ||
isRepositoryPrivate: boolean; | ||
isRepositoryFork: boolean; | ||
}; | ||
export declare function getAllGithubCommits(username: string, personalToken: string): Promise<ParsedGithubCommit[]>; | ||
export {}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="google-apps-script" /> | ||
export declare const createMissingCalendars: (allGcalendarsNames: string[]) => void; | ||
export declare const getAllCalendars: () => GoogleAppsScript.Calendar.Schema.CalendarListEntry[]; | ||
export declare const checkIfCalendarExists: (calendarName: string) => GoogleAppsScript.Calendar.Schema.CalendarListEntry; | ||
export declare const createCalendar: (calName: string) => GoogleAppsScript.Calendar.Schema.Calendar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
type TParsedTicktickTask = { | ||
id: string; | ||
name: string; | ||
description: string; | ||
tzid: string; | ||
start: TDate; | ||
end: TDate; | ||
}; | ||
type TDate = { | ||
date: string; | ||
} | { | ||
dateTime: string; | ||
timeZone: string; | ||
}; | ||
export declare const getIcsCalendarTasks: (icsLink: string, timezoneCorrection: number) => Promise<TParsedTicktickTask[]>; | ||
export declare function getParsedIcsDatetimes(dtstart: string, dtend: string, timezone: string, timezoneCorrection: number): { | ||
finalDtstart: { | ||
date: string; | ||
} | { | ||
dateTime: string; | ||
timeZone: string; | ||
}; | ||
finalDtend: { | ||
date: string; | ||
} | { | ||
dateTime: string; | ||
timeZone: string; | ||
}; | ||
}; | ||
export {}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export declare const APP_INFO: { | ||
readonly name: "gcal-sync"; | ||
readonly version: "2.0.0"; | ||
readonly github_repository: "github/repo"; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export declare const CONFIGS: { | ||
readonly DEBUG_MODE: true; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export declare const ERRORS: { | ||
readonly productionOnly: "This method cannot run in non-production environments"; | ||
readonly incorrectIcsCalendar: "The link you provided is not a valid ICS calendar: "; | ||
readonly mustSpecifyConfig: "You must specify the settings when starting the class"; | ||
readonly httpsError: "You provided an invalid ICS calendar link: "; | ||
readonly invalidGithubToken: "You provided an invalid github token"; | ||
readonly invalidGithubUsername: "You provided an invalid github username"; | ||
readonly abusiveGoogleCalendarApiUse: "Due to the numerous operations in the last few hours, the google api is not responding."; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { TConfigs } from './schemas/configs.schema'; | ||
declare class GcalSync { | ||
private configs; | ||
today_date: string; | ||
isGASEnvironment: boolean; | ||
constructor(configs: TConfigs); | ||
showConfigs(): void; | ||
sync(): Promise<void>; | ||
} | ||
export default GcalSync; | ||
export { TConfigs }; |
Oops, something went wrong.