-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from terijaki/master
add support for X-WR-CALNAME
- Loading branch information
Showing
2 changed files
with
24 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
export const VCALENDAR_KEYS = ["VERSION", "METHOD", "PRODID"] as const; | ||
export const VCALENDAR_KEYS = ["VERSION", "METHOD", "PRODID", "X-WR-CALNAME"] as const; | ||
export type VCalendarKeys = typeof VCALENDAR_KEYS; | ||
export type VCalendarKey = VCalendarKeys[number]; | ||
|
||
export const VCALENDAR_OBJECT_KEYS = ["version", "method", "prodId"] as const; | ||
export const VCALENDAR_OBJECT_KEYS = ["version", "method", "prodId", "name"] as const; | ||
|
||
export type VCalendarObjectKeys = typeof VCALENDAR_OBJECT_KEYS; | ||
export type VCalendarObjectKey = VCalendarObjectKeys[number]; | ||
|
||
export const VCALENDAR_TO_OBJECT_KEYS: Record< | ||
VCalendarKey, | ||
VCalendarObjectKey | ||
> = { METHOD: "method", PRODID: "prodId", VERSION: "version" }; | ||
export const VCALENDAR_TO_OBJECT_KEYS: Record<VCalendarKey, VCalendarObjectKey> = { | ||
METHOD: "method", | ||
PRODID: "prodId", | ||
VERSION: "version", | ||
"X-WR-CALNAME": "name", | ||
}; | ||
|
||
export const VCALENDAR_TO_KEYS: Record<VCalendarObjectKey, VCalendarKey> = { | ||
method: "METHOD", | ||
prodId: "PRODID", | ||
version: "VERSION", | ||
method: "METHOD", | ||
prodId: "PRODID", | ||
version: "VERSION", | ||
name: "X-WR-CALNAME", | ||
}; |
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