@kulupu-linku/sona 0.1.9 → 0.1.10
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/index.d.ts +38 -49
- package/dist/types.d.ts +2 -0
- package/dist/types.js +0 -0
- package/dist/utils.d.ts +16 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const Book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
|
|
4
|
-
type Book = z.infer<typeof Book>;
|
|
5
|
-
declare const CoinedEra: z.ZodUnion<[z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>;
|
|
6
|
-
type CoinedEra = z.infer<typeof CoinedEra>;
|
|
7
|
-
declare const UsageCategory: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"widespread">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"rare">, z.ZodLiteral<"obscure">]>;
|
|
8
|
-
type UsageCategory = z.infer<typeof UsageCategory>;
|
|
9
|
-
declare const WritingSystem: z.ZodEnum<["sitelen pona", "sitelen sitelen", "alphabet", "syllabary", "logography", "tokiponido alphabet", "tokiponido syllabary", "tokiponido logography"]>;
|
|
10
|
-
type WritingSystem = z.infer<typeof WritingSystem>;
|
|
11
3
|
type WordRepresentations = LocalizedWord["representations"];
|
|
12
4
|
type WordAudio = LocalizedWord["audio"];
|
|
13
5
|
type WordUsage = LocalizedWord["usage"];
|
|
@@ -24,9 +16,6 @@ type SignWriting = Sign["signwriting"];
|
|
|
24
16
|
type SignVideo = Sign["video"];
|
|
25
17
|
type LocalizedSignParameters = ParametersTranslation[string];
|
|
26
18
|
type FontLinks = Font["links"];
|
|
27
|
-
declare function getTranslatedData<Obj extends {
|
|
28
|
-
translations: Record<string, object>;
|
|
29
|
-
}, Key extends keyof Obj["translations"][string]>(data: Obj, key: Key, language: string): Obj["translations"][string][Key];
|
|
30
19
|
|
|
31
20
|
declare const Word: z.ZodObject<{
|
|
32
21
|
id: z.ZodString;
|
|
@@ -516,16 +505,16 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
516
505
|
language: string;
|
|
517
506
|
definition?: string | undefined;
|
|
518
507
|
}[];
|
|
519
|
-
definition: string;
|
|
520
508
|
commentary: string;
|
|
509
|
+
definition: string;
|
|
521
510
|
sp_etymology: string;
|
|
522
511
|
}, {
|
|
523
512
|
etymology: {
|
|
524
513
|
language: string;
|
|
525
514
|
definition?: string | undefined;
|
|
526
515
|
}[];
|
|
527
|
-
definition: string;
|
|
528
516
|
commentary: string;
|
|
517
|
+
definition: string;
|
|
529
518
|
sp_etymology: string;
|
|
530
519
|
}>>;
|
|
531
520
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -554,8 +543,8 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
554
543
|
language: string;
|
|
555
544
|
definition?: string | undefined;
|
|
556
545
|
}[];
|
|
557
|
-
definition: string;
|
|
558
546
|
commentary: string;
|
|
547
|
+
definition: string;
|
|
559
548
|
sp_etymology: string;
|
|
560
549
|
}>;
|
|
561
550
|
ku_data?: Record<string, number> | undefined;
|
|
@@ -601,8 +590,8 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
601
590
|
language: string;
|
|
602
591
|
definition?: string | undefined;
|
|
603
592
|
}[];
|
|
604
|
-
definition: string;
|
|
605
593
|
commentary: string;
|
|
594
|
+
definition: string;
|
|
606
595
|
sp_etymology: string;
|
|
607
596
|
}>;
|
|
608
597
|
ku_data?: Record<string, number> | undefined;
|
|
@@ -720,16 +709,16 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
720
709
|
language: string;
|
|
721
710
|
definition?: string | undefined;
|
|
722
711
|
}[];
|
|
723
|
-
definition: string;
|
|
724
712
|
commentary: string;
|
|
713
|
+
definition: string;
|
|
725
714
|
sp_etymology: string;
|
|
726
715
|
}, {
|
|
727
716
|
etymology: {
|
|
728
717
|
language: string;
|
|
729
718
|
definition?: string | undefined;
|
|
730
719
|
}[];
|
|
731
|
-
definition: string;
|
|
732
720
|
commentary: string;
|
|
721
|
+
definition: string;
|
|
733
722
|
sp_etymology: string;
|
|
734
723
|
}>>;
|
|
735
724
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -758,8 +747,8 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
758
747
|
language: string;
|
|
759
748
|
definition?: string | undefined;
|
|
760
749
|
}[];
|
|
761
|
-
definition: string;
|
|
762
750
|
commentary: string;
|
|
751
|
+
definition: string;
|
|
763
752
|
sp_etymology: string;
|
|
764
753
|
}>;
|
|
765
754
|
ku_data?: Record<string, number> | undefined;
|
|
@@ -805,8 +794,8 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
805
794
|
language: string;
|
|
806
795
|
definition?: string | undefined;
|
|
807
796
|
}[];
|
|
808
|
-
definition: string;
|
|
809
797
|
commentary: string;
|
|
798
|
+
definition: string;
|
|
810
799
|
sp_etymology: string;
|
|
811
800
|
}>;
|
|
812
801
|
ku_data?: Record<string, number> | undefined;
|
|
@@ -905,6 +894,15 @@ declare const Signs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
905
894
|
language: string;
|
|
906
895
|
sign?: string | undefined;
|
|
907
896
|
}[];
|
|
897
|
+
translations: Record<string, {
|
|
898
|
+
parameters: {
|
|
899
|
+
handshape?: string | undefined;
|
|
900
|
+
movement?: string | undefined;
|
|
901
|
+
placement?: string | undefined;
|
|
902
|
+
orientation?: string | undefined;
|
|
903
|
+
};
|
|
904
|
+
icons: string;
|
|
905
|
+
}>;
|
|
908
906
|
definition: string;
|
|
909
907
|
is_two_handed: boolean;
|
|
910
908
|
new_gloss: string;
|
|
@@ -917,6 +915,12 @@ declare const Signs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
917
915
|
gif: string;
|
|
918
916
|
mp4: string;
|
|
919
917
|
};
|
|
918
|
+
}, {
|
|
919
|
+
id: string;
|
|
920
|
+
etymology: {
|
|
921
|
+
language: string;
|
|
922
|
+
sign?: string | undefined;
|
|
923
|
+
}[];
|
|
920
924
|
translations: Record<string, {
|
|
921
925
|
parameters: {
|
|
922
926
|
handshape?: string | undefined;
|
|
@@ -926,12 +930,6 @@ declare const Signs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
926
930
|
};
|
|
927
931
|
icons: string;
|
|
928
932
|
}>;
|
|
929
|
-
}, {
|
|
930
|
-
id: string;
|
|
931
|
-
etymology: {
|
|
932
|
-
language: string;
|
|
933
|
-
sign?: string | undefined;
|
|
934
|
-
}[];
|
|
935
933
|
definition: string;
|
|
936
934
|
is_two_handed: boolean;
|
|
937
935
|
new_gloss: string;
|
|
@@ -944,15 +942,6 @@ declare const Signs: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
944
942
|
gif: string;
|
|
945
943
|
mp4: string;
|
|
946
944
|
};
|
|
947
|
-
translations: Record<string, {
|
|
948
|
-
parameters: {
|
|
949
|
-
handshape?: string | undefined;
|
|
950
|
-
movement?: string | undefined;
|
|
951
|
-
placement?: string | undefined;
|
|
952
|
-
orientation?: string | undefined;
|
|
953
|
-
};
|
|
954
|
-
icons: string;
|
|
955
|
-
}>;
|
|
956
945
|
}>>;
|
|
957
946
|
type Signs = z.infer<typeof Signs>;
|
|
958
947
|
type LocalizedSign = Signs[string];
|
|
@@ -1027,6 +1016,14 @@ declare const Fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1027
1016
|
language: string;
|
|
1028
1017
|
sign: string;
|
|
1029
1018
|
}[];
|
|
1019
|
+
translations: Record<string, {
|
|
1020
|
+
parameters: {
|
|
1021
|
+
handshape?: string | undefined;
|
|
1022
|
+
movement?: string | undefined;
|
|
1023
|
+
placement?: string | undefined;
|
|
1024
|
+
orientation?: string | undefined;
|
|
1025
|
+
};
|
|
1026
|
+
}>;
|
|
1030
1027
|
is_two_handed: boolean;
|
|
1031
1028
|
signwriting: {
|
|
1032
1029
|
fsw: string;
|
|
@@ -1036,6 +1033,12 @@ declare const Fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1036
1033
|
gif?: string | undefined;
|
|
1037
1034
|
mp4?: string | undefined;
|
|
1038
1035
|
};
|
|
1036
|
+
}, {
|
|
1037
|
+
id: string;
|
|
1038
|
+
etymology: {
|
|
1039
|
+
language: string;
|
|
1040
|
+
sign: string;
|
|
1041
|
+
}[];
|
|
1039
1042
|
translations: Record<string, {
|
|
1040
1043
|
parameters: {
|
|
1041
1044
|
handshape?: string | undefined;
|
|
@@ -1044,12 +1047,6 @@ declare const Fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1044
1047
|
orientation?: string | undefined;
|
|
1045
1048
|
};
|
|
1046
1049
|
}>;
|
|
1047
|
-
}, {
|
|
1048
|
-
id: string;
|
|
1049
|
-
etymology: {
|
|
1050
|
-
language: string;
|
|
1051
|
-
sign: string;
|
|
1052
|
-
}[];
|
|
1053
1050
|
is_two_handed: boolean;
|
|
1054
1051
|
signwriting: {
|
|
1055
1052
|
fsw: string;
|
|
@@ -1059,14 +1056,6 @@ declare const Fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1059
1056
|
gif?: string | undefined;
|
|
1060
1057
|
mp4?: string | undefined;
|
|
1061
1058
|
};
|
|
1062
|
-
translations: Record<string, {
|
|
1063
|
-
parameters: {
|
|
1064
|
-
handshape?: string | undefined;
|
|
1065
|
-
movement?: string | undefined;
|
|
1066
|
-
placement?: string | undefined;
|
|
1067
|
-
orientation?: string | undefined;
|
|
1068
|
-
};
|
|
1069
|
-
}>;
|
|
1070
1059
|
}>>;
|
|
1071
1060
|
type Fingerspelling = z.infer<typeof Fingerspelling>;
|
|
1072
1061
|
type LocalizedFingerspellingSign = Fingerspelling[string];
|
|
@@ -1167,4 +1156,4 @@ declare const Languages: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1167
1156
|
type Languages = z.infer<typeof Languages>;
|
|
1168
1157
|
type Language = Languages[string];
|
|
1169
1158
|
|
|
1170
|
-
export {
|
|
1159
|
+
export { CommentaryTranslation, DefinitionTranslation, EtymologyTranslation, Fingerspelling, FingerspellingSign, Font, type FontLinks, Fonts, IconTranslation, type Language, Languages, type LocalizedFingerspellingSign, type LocalizedSign, type LocalizedSignParameters, type LocalizedWord, type LocalizedWordCommentary, type LocalizedWordDefinition, type LocalizedWordEtymology, type LocalizedWordSitelenEtymology, ParametersTranslation, Sandbox, Sign, type SignEtymology, type SignVideo, type SignWriting, Signs, SitelenPonaTranslation, Word, type WordAudio, type WordKuData, type WordPuVerbatim, type WordRepresentations, type WordTranslation, type WordTranslations, type WordUsage, Words };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { FontLinks, LocalizedSignParameters, LocalizedWordCommentary, LocalizedWordDefinition, LocalizedWordEtymology, LocalizedWordSitelenEtymology, SignEtymology, SignVideo, SignWriting, WordAudio, WordKuData, WordPuVerbatim, WordRepresentations, WordTranslation, WordTranslations, WordUsage } from './index.js';
|
|
2
|
+
import 'zod';
|
package/dist/types.js
ADDED
|
File without changes
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
import 'zod';
|
|
2
|
-
export {
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export { FontLinks, LocalizedSignParameters, LocalizedWordCommentary, LocalizedWordDefinition, LocalizedWordEtymology, LocalizedWordSitelenEtymology, SignEtymology, SignVideo, SignWriting, WordAudio, WordKuData, WordPuVerbatim, WordRepresentations, WordTranslation, WordTranslations, WordUsage } from './index.js';
|
|
3
|
+
|
|
4
|
+
declare const Book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
|
|
5
|
+
type Book = z.infer<typeof Book>;
|
|
6
|
+
declare const CoinedEra: z.ZodUnion<[z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>;
|
|
7
|
+
type CoinedEra = z.infer<typeof CoinedEra>;
|
|
8
|
+
declare const UsageCategory: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"widespread">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"rare">, z.ZodLiteral<"obscure">]>;
|
|
9
|
+
type UsageCategory = z.infer<typeof UsageCategory>;
|
|
10
|
+
declare const WritingSystem: z.ZodEnum<["sitelen pona", "sitelen sitelen", "alphabet", "syllabary", "logography", "tokiponido alphabet", "tokiponido syllabary", "tokiponido logography"]>;
|
|
11
|
+
type WritingSystem = z.infer<typeof WritingSystem>;
|
|
12
|
+
declare function getTranslatedData<Obj extends {
|
|
13
|
+
translations: Record<string, object>;
|
|
14
|
+
}, Key extends keyof Obj["translations"][string]>(data: Obj, key: Key, language: string): Obj["translations"][string][Key];
|
|
15
|
+
|
|
16
|
+
export { Book, CoinedEra, UsageCategory, WritingSystem, getTranslatedData };
|