@sockethub/platform-caldav 1.0.0-beta.5 → 1.0.0-beta.6

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.
@@ -0,0 +1,13 @@
1
+ import type { CalendarObjectInput } from "./types.js";
2
+ /**
3
+ * Apply an item to the stored iCalendar resource it was read from. Only the
4
+ * properties of fields that changed are replaced with `generated` (the
5
+ * item's own `buildICalendar` output); every other property, parameter,
6
+ * component, and `VTIMEZONE` stays as stored. A field the item omits removes
7
+ * its property. When the component type changes, `generated` replaces the
8
+ * whole resource.
9
+ */
10
+ export declare function patchICalendar(stored: string, item: CalendarObjectInput, generated: string): {
11
+ uid: string;
12
+ body: string;
13
+ };
package/dist/schema.d.ts CHANGED
@@ -89,6 +89,12 @@ export declare const PlatformCalDavSchema: {
89
89
  minLength: number;
90
90
  maxLength: number;
91
91
  };
92
+ tokenOnly: {
93
+ const: boolean;
94
+ };
95
+ };
96
+ not: {
97
+ required: string[];
92
98
  };
93
99
  })[];
94
100
  };
@@ -178,6 +184,12 @@ export declare const PlatformCalDavSchema: {
178
184
  minLength: number;
179
185
  maxLength: number;
180
186
  };
187
+ tokenOnly: {
188
+ const: boolean;
189
+ };
190
+ };
191
+ not: {
192
+ required: string[];
181
193
  };
182
194
  };
183
195
  };
@@ -440,6 +452,14 @@ export declare const PlatformCalDavSchema: {
440
452
  updateSupported: {
441
453
  type: string;
442
454
  };
455
+ created: {
456
+ type: string;
457
+ format: string;
458
+ };
459
+ lastModified: {
460
+ type: string;
461
+ format: string;
462
+ };
443
463
  };
444
464
  } | {
445
465
  type: string;
@@ -686,6 +706,14 @@ export declare const PlatformCalDavSchema: {
686
706
  updateSupported: {
687
707
  type: string;
688
708
  };
709
+ created: {
710
+ type: string;
711
+ format: string;
712
+ };
713
+ lastModified: {
714
+ type: string;
715
+ format: string;
716
+ };
689
717
  };
690
718
  allOf: ({
691
719
  if: {
@@ -1086,6 +1114,14 @@ export declare const PlatformCalDavSchema: {
1086
1114
  updateSupported: {
1087
1115
  type: string;
1088
1116
  };
1117
+ created: {
1118
+ type: string;
1119
+ format: string;
1120
+ };
1121
+ lastModified: {
1122
+ type: string;
1123
+ format: string;
1124
+ };
1089
1125
  };
1090
1126
  } | {
1091
1127
  type: string;
@@ -1332,6 +1368,14 @@ export declare const PlatformCalDavSchema: {
1332
1368
  updateSupported: {
1333
1369
  type: string;
1334
1370
  };
1371
+ created: {
1372
+ type: string;
1373
+ format: string;
1374
+ };
1375
+ lastModified: {
1376
+ type: string;
1377
+ format: string;
1378
+ };
1335
1379
  };
1336
1380
  allOf: ({
1337
1381
  if: {
@@ -1663,6 +1707,14 @@ export declare const PlatformCalDavSchema: {
1663
1707
  updateSupported: {
1664
1708
  type: string;
1665
1709
  };
1710
+ created: {
1711
+ type: string;
1712
+ format: string;
1713
+ };
1714
+ lastModified: {
1715
+ type: string;
1716
+ format: string;
1717
+ };
1666
1718
  };
1667
1719
  } | {
1668
1720
  type: string;
@@ -1909,6 +1961,14 @@ export declare const PlatformCalDavSchema: {
1909
1961
  updateSupported: {
1910
1962
  type: string;
1911
1963
  };
1964
+ created: {
1965
+ type: string;
1966
+ format: string;
1967
+ };
1968
+ lastModified: {
1969
+ type: string;
1970
+ format: string;
1971
+ };
1912
1972
  };
1913
1973
  allOf: ({
1914
1974
  if: {
package/dist/types.d.ts CHANGED
@@ -68,6 +68,10 @@ export interface CalendarObjectInput {
68
68
  attendees?: PersonInput[];
69
69
  reminders?: ReminderInput[];
70
70
  attachments?: AttachmentInput[];
71
+ /** Output only: when the item was created (`CREATED`), in UTC. Ignored on input. */
72
+ created?: string;
73
+ /** Output only: when the item last changed (`LAST-MODIFIED`, else `DTSTAMP`), in UTC. Ignored on input. */
74
+ lastModified?: string;
71
75
  }
72
76
  export interface CalendarItem extends CalendarObjectInput {
73
77
  id: string;
@@ -87,6 +91,7 @@ export interface DeleteInput {
87
91
  }
88
92
  export interface SyncInput {
89
93
  syncToken?: string;
94
+ tokenOnly?: true;
90
95
  }
91
96
  export interface CalendarSyncResult {
92
97
  items: CalendarItem[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sockethub/platform-caldav",
3
3
  "description": "A Sockethub platform for synchronizing CalDAV calendars, events, and tasks",
4
- "version": "1.0.0-beta.5",
4
+ "version": "1.0.0-beta.6",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "LGPL-3.0+",
@@ -35,16 +35,16 @@
35
35
  "test": "bun test src/"
36
36
  },
37
37
  "dependencies": {
38
- "@sockethub/dav": "^1.0.0-beta.5",
39
- "@sockethub/schemas": "^3.0.0-beta.5",
40
- "@sockethub/util": "^1.0.0-beta.5",
38
+ "@sockethub/dav": "^1.0.0-beta.6",
39
+ "@sockethub/schemas": "^3.0.0-beta.6",
40
+ "@sockethub/util": "^1.0.0-beta.6",
41
41
  "undici": "^7.30.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/bun": "latest"
45
45
  },
46
46
  "peerDependencies": {
47
- "@sockethub/server": "^5.0.0-beta.5"
47
+ "@sockethub/server": "^5.0.0-beta.6"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "@sockethub/server": {
@@ -52,5 +52,5 @@
52
52
  }
53
53
  },
54
54
  "types": "./dist/index.d.ts",
55
- "gitHead": "2dffe4cc1bea5375e38531b1012b56bcbab93569"
55
+ "gitHead": "9d6fb334b8c72b2e618f16cb0218cf0719f4c7cf"
56
56
  }