@hasna/contacts 0.1.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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Export contacts to CSV, vCard (.vcf), or JSON formats.
3
+ * Accepts ContactWithDetails from src/types/index.ts.
4
+ */
5
+ import type { ContactWithDetails } from "../types/index.js";
6
+ export type ExportContact = ContactWithDetails;
7
+ export declare function exportContacts(format: "json" | "csv" | "vcf", contacts: ExportContact[]): Promise<string>;
8
+ //# sourceMappingURL=export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/lib/export.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC;AAqK/C,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,EAC9B,QAAQ,EAAE,aAAa,EAAE,GACxB,OAAO,CAAC,MAAM,CAAC,CAWjB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Import contacts from CSV, vCard (.vcf), or JSON formats.
3
+ * Returns an array of CreateContactInput objects (matching src/types/index.ts).
4
+ */
5
+ import type { CreateContactInput } from "../types/index.js";
6
+ export type { CreateContactInput };
7
+ export declare function importFromCsv(data: string): CreateContactInput[];
8
+ export declare function importContacts(format: "json" | "csv" | "vcf", data: string): Promise<CreateContactInput[]>;
9
+ //# sourceMappingURL=import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../src/lib/import.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,kBAAkB,EASnB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAgHnC,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAGhE;AAgND,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,EAC9B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAW/B"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bun
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":""}