@sockethub/platform-carddav 1.0.0-alpha.5 → 1.0.0-beta.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/dist/vcard.d.ts CHANGED
@@ -1,6 +1,25 @@
1
1
  import type { Contact, ContactInput, PreservedVCardProperty } from "./types.js";
2
2
  export declare function parseVCard(body: string, id: string, etag?: string): Contact;
3
- export declare function buildVCard(input: ContactInput, preserved?: PreservedVCardProperty[]): {
3
+ /**
4
+ * An update rebuilds the card from the client object. Query results only
5
+ * carry the first ORG component, a single nickname string, and URI photos,
6
+ * so echoing those values used to delete departments, collapse nickname
7
+ * lists, and drop inline photos. Replay the server's line when the client
8
+ * sent the same parsed value back, and keep the rest of ORG when only the
9
+ * organization name changed.
10
+ */
11
+ export declare function prepareVCardUpdate(input: ContactInput, stored: Contact): {
12
+ input: ContactInput;
13
+ preserved: PreservedVCardProperty[];
14
+ retainedLines?: {
15
+ organization?: string;
16
+ nickname?: string;
17
+ };
18
+ };
19
+ export declare function buildVCard(input: ContactInput, preserved?: PreservedVCardProperty[], retainedLines?: {
20
+ organization?: string;
21
+ nickname?: string;
22
+ }): {
4
23
  uid: string;
5
24
  body: string;
6
25
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sockethub/platform-carddav",
3
3
  "description": "A Sockethub platform for CardDAV address books and contacts",
4
- "version": "1.0.0-alpha.5",
4
+ "version": "1.0.0-beta.0",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "LGPL-3.0+",
@@ -30,19 +30,19 @@
30
30
  "test": "bun test src/"
31
31
  },
32
32
  "dependencies": {
33
- "@sockethub/dav": "^1.0.0-alpha.5",
34
- "@sockethub/schemas": "^3.0.0-alpha.24"
33
+ "@sockethub/dav": "^1.0.0-beta.0",
34
+ "@sockethub/schemas": "^3.0.0-beta.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/bun": "latest"
38
38
  },
39
39
  "peerDependencies": {
40
- "@sockethub/server": "^5.0.0-alpha.24"
40
+ "@sockethub/server": "^5.0.0-beta.0"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "@sockethub/server": {
44
44
  "optional": true
45
45
  }
46
46
  },
47
- "gitHead": "5b55535c7f1df5b7959585179d31e7cb654d4084"
47
+ "gitHead": "a17e337ee7d2dd496d225c0d6e8ae48f4f4ce73c"
48
48
  }