@sockethub/platform-carddav 1.0.0-beta.4 → 1.0.0-beta.5
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/README.md +36 -2
- package/dist/dav.d.ts +6 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +253 -30
- package/dist/index.js.map +6 -6
- package/dist/schema.d.ts +330 -0
- package/dist/types.d.ts +9 -0
- package/package.json +5 -5
package/dist/schema.d.ts
CHANGED
|
@@ -86,6 +86,17 @@ export declare const PlatformCardDavSchema: {
|
|
|
86
86
|
maxLength: number;
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
+
} | {
|
|
90
|
+
required: string[];
|
|
91
|
+
type: string;
|
|
92
|
+
additionalProperties: boolean;
|
|
93
|
+
properties: {
|
|
94
|
+
syncToken: {
|
|
95
|
+
type: string;
|
|
96
|
+
minLength: number;
|
|
97
|
+
maxLength: number;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
89
100
|
})[];
|
|
90
101
|
};
|
|
91
102
|
};
|
|
@@ -139,6 +150,25 @@ export declare const PlatformCardDavSchema: {
|
|
|
139
150
|
};
|
|
140
151
|
required: string[];
|
|
141
152
|
not?: undefined;
|
|
153
|
+
} | {
|
|
154
|
+
properties: {
|
|
155
|
+
type: {
|
|
156
|
+
const: string;
|
|
157
|
+
};
|
|
158
|
+
object: {
|
|
159
|
+
type: string;
|
|
160
|
+
additionalProperties: boolean;
|
|
161
|
+
properties: {
|
|
162
|
+
syncToken: {
|
|
163
|
+
type: string;
|
|
164
|
+
minLength: number;
|
|
165
|
+
maxLength: number;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
required: string[];
|
|
171
|
+
not?: undefined;
|
|
142
172
|
} | {
|
|
143
173
|
properties: {
|
|
144
174
|
type: {
|
|
@@ -522,6 +552,303 @@ export declare const PlatformCardDavSchema: {
|
|
|
522
552
|
})[];
|
|
523
553
|
};
|
|
524
554
|
};
|
|
555
|
+
removed?: undefined;
|
|
556
|
+
syncToken?: undefined;
|
|
557
|
+
truncated?: undefined;
|
|
558
|
+
actor?: undefined;
|
|
559
|
+
target?: undefined;
|
|
560
|
+
object?: undefined;
|
|
561
|
+
};
|
|
562
|
+
} | {
|
|
563
|
+
type: string;
|
|
564
|
+
required: string[];
|
|
565
|
+
additionalProperties: boolean;
|
|
566
|
+
properties: {
|
|
567
|
+
"@context": {
|
|
568
|
+
type: string;
|
|
569
|
+
items: {
|
|
570
|
+
type: string;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
id: {
|
|
574
|
+
type: string[];
|
|
575
|
+
};
|
|
576
|
+
type: {
|
|
577
|
+
const: string;
|
|
578
|
+
enum?: undefined;
|
|
579
|
+
};
|
|
580
|
+
summary: {
|
|
581
|
+
type: string;
|
|
582
|
+
};
|
|
583
|
+
totalItems: {
|
|
584
|
+
type: string;
|
|
585
|
+
minimum: number;
|
|
586
|
+
};
|
|
587
|
+
items: {
|
|
588
|
+
type: string;
|
|
589
|
+
items: {
|
|
590
|
+
required: string[];
|
|
591
|
+
type: string;
|
|
592
|
+
additionalProperties: boolean;
|
|
593
|
+
properties: {
|
|
594
|
+
id: {
|
|
595
|
+
type: string;
|
|
596
|
+
format: string;
|
|
597
|
+
maxLength: number;
|
|
598
|
+
};
|
|
599
|
+
etag: {
|
|
600
|
+
type: string;
|
|
601
|
+
minLength: number;
|
|
602
|
+
maxLength: number;
|
|
603
|
+
};
|
|
604
|
+
uid: {
|
|
605
|
+
type: string;
|
|
606
|
+
minLength: number;
|
|
607
|
+
maxLength: number;
|
|
608
|
+
};
|
|
609
|
+
type: {
|
|
610
|
+
const: string;
|
|
611
|
+
};
|
|
612
|
+
name: {
|
|
613
|
+
type: string;
|
|
614
|
+
minLength: number;
|
|
615
|
+
maxLength: number;
|
|
616
|
+
};
|
|
617
|
+
givenName: {
|
|
618
|
+
type: string;
|
|
619
|
+
maxLength: number;
|
|
620
|
+
};
|
|
621
|
+
additionalNames: {
|
|
622
|
+
type: string;
|
|
623
|
+
maxItems: number;
|
|
624
|
+
items: {
|
|
625
|
+
type: string;
|
|
626
|
+
maxLength: number;
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
familyName: {
|
|
630
|
+
type: string;
|
|
631
|
+
maxLength: number;
|
|
632
|
+
};
|
|
633
|
+
honorificPrefixes: {
|
|
634
|
+
type: string;
|
|
635
|
+
maxItems: number;
|
|
636
|
+
items: {
|
|
637
|
+
type: string;
|
|
638
|
+
maxLength: number;
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
honorificSuffixes: {
|
|
642
|
+
type: string;
|
|
643
|
+
maxItems: number;
|
|
644
|
+
items: {
|
|
645
|
+
type: string;
|
|
646
|
+
maxLength: number;
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
nickname: {
|
|
650
|
+
type: string;
|
|
651
|
+
maxLength: number;
|
|
652
|
+
};
|
|
653
|
+
emails: {
|
|
654
|
+
type: string;
|
|
655
|
+
maxItems: number;
|
|
656
|
+
items: {
|
|
657
|
+
type: string;
|
|
658
|
+
required: string[];
|
|
659
|
+
additionalProperties: boolean;
|
|
660
|
+
properties: {
|
|
661
|
+
value: {
|
|
662
|
+
type: string;
|
|
663
|
+
minLength: number;
|
|
664
|
+
maxLength: number;
|
|
665
|
+
};
|
|
666
|
+
types: {
|
|
667
|
+
type: string;
|
|
668
|
+
uniqueItems: boolean;
|
|
669
|
+
maxItems: number;
|
|
670
|
+
items: {
|
|
671
|
+
type: string;
|
|
672
|
+
minLength: number;
|
|
673
|
+
maxLength: number;
|
|
674
|
+
pattern: string;
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
preferred: {
|
|
678
|
+
type: string;
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
telephones: {
|
|
684
|
+
type: string;
|
|
685
|
+
maxItems: number;
|
|
686
|
+
items: {
|
|
687
|
+
type: string;
|
|
688
|
+
required: string[];
|
|
689
|
+
additionalProperties: boolean;
|
|
690
|
+
properties: {
|
|
691
|
+
value: {
|
|
692
|
+
type: string;
|
|
693
|
+
minLength: number;
|
|
694
|
+
maxLength: number;
|
|
695
|
+
};
|
|
696
|
+
types: {
|
|
697
|
+
type: string;
|
|
698
|
+
uniqueItems: boolean;
|
|
699
|
+
maxItems: number;
|
|
700
|
+
items: {
|
|
701
|
+
type: string;
|
|
702
|
+
minLength: number;
|
|
703
|
+
maxLength: number;
|
|
704
|
+
pattern: string;
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
preferred: {
|
|
708
|
+
type: string;
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
addresses: {
|
|
714
|
+
type: string;
|
|
715
|
+
maxItems: number;
|
|
716
|
+
items: {
|
|
717
|
+
type: string;
|
|
718
|
+
additionalProperties: boolean;
|
|
719
|
+
properties: {
|
|
720
|
+
types: {
|
|
721
|
+
type: string;
|
|
722
|
+
uniqueItems: boolean;
|
|
723
|
+
maxItems: number;
|
|
724
|
+
items: {
|
|
725
|
+
type: string;
|
|
726
|
+
minLength: number;
|
|
727
|
+
maxLength: number;
|
|
728
|
+
pattern: string;
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
preferred: {
|
|
732
|
+
type: string;
|
|
733
|
+
};
|
|
734
|
+
postOfficeBox: {
|
|
735
|
+
type: string;
|
|
736
|
+
maxLength: number;
|
|
737
|
+
};
|
|
738
|
+
extendedAddress: {
|
|
739
|
+
type: string;
|
|
740
|
+
maxLength: number;
|
|
741
|
+
};
|
|
742
|
+
street: {
|
|
743
|
+
type: string;
|
|
744
|
+
maxLength: number;
|
|
745
|
+
};
|
|
746
|
+
locality: {
|
|
747
|
+
type: string;
|
|
748
|
+
maxLength: number;
|
|
749
|
+
};
|
|
750
|
+
region: {
|
|
751
|
+
type: string;
|
|
752
|
+
maxLength: number;
|
|
753
|
+
};
|
|
754
|
+
postalCode: {
|
|
755
|
+
type: string;
|
|
756
|
+
maxLength: number;
|
|
757
|
+
};
|
|
758
|
+
country: {
|
|
759
|
+
type: string;
|
|
760
|
+
maxLength: number;
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
organization: {
|
|
766
|
+
type: string;
|
|
767
|
+
maxLength: number;
|
|
768
|
+
};
|
|
769
|
+
title: {
|
|
770
|
+
type: string;
|
|
771
|
+
maxLength: number;
|
|
772
|
+
};
|
|
773
|
+
role: {
|
|
774
|
+
type: string;
|
|
775
|
+
maxLength: number;
|
|
776
|
+
};
|
|
777
|
+
urls: {
|
|
778
|
+
type: string;
|
|
779
|
+
maxItems: number;
|
|
780
|
+
items: {
|
|
781
|
+
type: string;
|
|
782
|
+
required: string[];
|
|
783
|
+
additionalProperties: boolean;
|
|
784
|
+
properties: {
|
|
785
|
+
value: {
|
|
786
|
+
type: string;
|
|
787
|
+
minLength: number;
|
|
788
|
+
maxLength: number;
|
|
789
|
+
};
|
|
790
|
+
types: {
|
|
791
|
+
type: string;
|
|
792
|
+
uniqueItems: boolean;
|
|
793
|
+
maxItems: number;
|
|
794
|
+
items: {
|
|
795
|
+
type: string;
|
|
796
|
+
minLength: number;
|
|
797
|
+
maxLength: number;
|
|
798
|
+
pattern: string;
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
preferred: {
|
|
802
|
+
type: string;
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
photoUrls: {
|
|
808
|
+
type: string;
|
|
809
|
+
maxItems: number;
|
|
810
|
+
items: {
|
|
811
|
+
type: string;
|
|
812
|
+
format: string;
|
|
813
|
+
pattern: string;
|
|
814
|
+
maxLength: number;
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
note: {
|
|
818
|
+
type: string;
|
|
819
|
+
maxLength: number;
|
|
820
|
+
};
|
|
821
|
+
birthday: {
|
|
822
|
+
type: string;
|
|
823
|
+
minLength: number;
|
|
824
|
+
maxLength: number;
|
|
825
|
+
pattern: string;
|
|
826
|
+
};
|
|
827
|
+
vcardVersion: {
|
|
828
|
+
enum: string[];
|
|
829
|
+
};
|
|
830
|
+
updateSupported: {
|
|
831
|
+
type: string;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
removed: {
|
|
837
|
+
type: string;
|
|
838
|
+
items: {
|
|
839
|
+
type: string;
|
|
840
|
+
format: string;
|
|
841
|
+
maxLength: number;
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
syncToken: {
|
|
845
|
+
type: string;
|
|
846
|
+
minLength: number;
|
|
847
|
+
maxLength: number;
|
|
848
|
+
};
|
|
849
|
+
truncated: {
|
|
850
|
+
type: string;
|
|
851
|
+
};
|
|
525
852
|
actor?: undefined;
|
|
526
853
|
target?: undefined;
|
|
527
854
|
object?: undefined;
|
|
@@ -602,6 +929,9 @@ export declare const PlatformCardDavSchema: {
|
|
|
602
929
|
summary?: undefined;
|
|
603
930
|
totalItems?: undefined;
|
|
604
931
|
items?: undefined;
|
|
932
|
+
removed?: undefined;
|
|
933
|
+
syncToken?: undefined;
|
|
934
|
+
truncated?: undefined;
|
|
605
935
|
};
|
|
606
936
|
})[];
|
|
607
937
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -79,3 +79,12 @@ export interface DeleteInput {
|
|
|
79
79
|
type: "person";
|
|
80
80
|
etag: string;
|
|
81
81
|
}
|
|
82
|
+
export interface SyncInput {
|
|
83
|
+
syncToken?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface ContactSyncResult {
|
|
86
|
+
items: Contact[];
|
|
87
|
+
removed: string[];
|
|
88
|
+
syncToken: string;
|
|
89
|
+
truncated: boolean;
|
|
90
|
+
}
|
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-beta.
|
|
4
|
+
"version": "1.0.0-beta.5",
|
|
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-beta.
|
|
34
|
-
"@sockethub/schemas": "^3.0.0-beta.
|
|
33
|
+
"@sockethub/dav": "^1.0.0-beta.5",
|
|
34
|
+
"@sockethub/schemas": "^3.0.0-beta.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/bun": "latest"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@sockethub/server": "^5.0.0-beta.
|
|
40
|
+
"@sockethub/server": "^5.0.0-beta.5"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"@sockethub/server": {
|
|
44
44
|
"optional": true
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "2dffe4cc1bea5375e38531b1012b56bcbab93569"
|
|
48
48
|
}
|