@kulupu-linku/sona 0.3.7 → 2.0.2
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/.assetsignore +0 -0
- package/dist/client-BSyS8F5a.d.ts +1612 -0
- package/dist/client-BitJ28pJ.js +10 -0
- package/dist/client-CUMo53JZ.d.ts +1612 -0
- package/dist/client-DNWH1gFt.js +10 -0
- package/dist/index-1jX6YIBj.d.ts +1497 -0
- package/dist/index-DObG_APy.d.ts +398 -0
- package/dist/index-DsVEVr6r.d.ts +300 -0
- package/dist/lib/v1/client.d.ts +3 -0
- package/dist/lib/v1/client.js +3 -0
- package/dist/lib/v1/client.test.d.ts +31 -0
- package/dist/lib/v1/client.test.js +3 -0
- package/dist/lib/v1/index.d.ts +2 -0
- package/dist/lib/v1/index.js +4 -0
- package/dist/lib/v1/types.d.ts +2 -0
- package/dist/lib/v1/types.js +1 -0
- package/dist/lib/v1/utils.d.ts +26 -0
- package/dist/lib/v1/utils.js +3 -0
- package/dist/lib/v2/client.d.ts +3 -0
- package/dist/lib/v2/client.js +3 -0
- package/dist/lib/v2/client.test.d.ts +36 -0
- package/dist/lib/v2/client.test.js +3 -0
- package/dist/lib/v2/index.d.ts +2 -0
- package/dist/lib/v2/index.js +4 -0
- package/dist/lib/v2/types.d.ts +2 -0
- package/dist/lib/v2/types.js +1 -0
- package/dist/lib/v2/utils.d.ts +44 -0
- package/dist/lib/v2/utils.js +3 -0
- package/dist/server/index.d.ts +2 -685
- package/dist/server/index.js +43 -0
- package/dist/server/utils.d.ts +23 -15
- package/dist/server/utils.js +3 -0
- package/dist/server/v1/index.d.ts +864 -639
- package/dist/server/v1/index.js +8 -0
- package/dist/server/v2/index.d.ts +1112 -0
- package/dist/server/v2/index.js +8 -0
- package/dist/server/versioning.d.ts +1965 -2369
- package/dist/server/versioning.js +8 -0
- package/dist/utils-DkAaVBMs.js +33 -0
- package/dist/utils-QiKwNnnL.js +37 -0
- package/dist/utils-Z1o5sWsW.js +40 -0
- package/dist/v1-DkHVwPCI.js +139 -0
- package/dist/v1-obRCoWWK.js +267 -0
- package/dist/v2-CDtbJFxV.js +194 -0
- package/generated/v2/fingerspelling.json +124 -0
- package/generated/v2/fingerspellings.json +135 -0
- package/generated/v2/font.json +119 -0
- package/generated/v2/fonts.json +130 -0
- package/generated/v2/glyph.json +160 -0
- package/generated/v2/glyphs.json +167 -0
- package/generated/v2/language.json +58 -0
- package/generated/v2/languages.json +67 -0
- package/generated/v2/sign.json +149 -0
- package/generated/v2/signs.json +160 -0
- package/generated/v2/word.json +306 -0
- package/generated/v2/words.json +313 -0
- package/package.json +47 -28
- package/dist/client.d.ts +0 -2
- package/dist/client.js +0 -172
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -223
- package/dist/lib/client.d.ts +0 -743
- package/dist/lib/client.test.d.ts +0 -27
- package/dist/lib/index.d.ts +0 -962
- package/dist/lib/types.d.ts +0 -17
- package/dist/lib/utils.d.ts +0 -13
- package/dist/utils-B3Jq5OVZ.js +0 -2899
- package/dist/utils.d.ts +0 -2
- package/dist/utils.js +0 -9
- package/generated/words.json +0 -315
- /package/generated/{commentary_translation.json → v1/commentary_translation.json} +0 -0
- /package/generated/{definition_translation.json → v1/definition_translation.json} +0 -0
- /package/generated/{etymology_translation.json → v1/etymology_translation.json} +0 -0
- /package/generated/{fingerspelling.json → v1/fingerspelling.json} +0 -0
- /package/generated/{fingerspelling_sign.json → v1/fingerspelling_sign.json} +0 -0
- /package/generated/{font.json → v1/font.json} +0 -0
- /package/generated/{fonts.json → v1/fonts.json} +0 -0
- /package/generated/{icon_translation.json → v1/icon_translation.json} +0 -0
- /package/generated/{languages.json → v1/languages.json} +0 -0
- /package/generated/{parameters_translation.json → v1/parameters_translation.json} +0 -0
- /package/generated/{sign.json → v1/sign.json} +0 -0
- /package/generated/{signs.json → v1/signs.json} +0 -0
- /package/generated/{sitelen_pona_translation.json → v1/sitelen_pona_translation.json} +0 -0
- /package/generated/{word.json → v1/word.json} +0 -0
package/dist/lib/types.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Font, LocalizedWord, ParametersTranslation, Sign } from './index';
|
|
2
|
-
export type WordRepresentations = LocalizedWord["representations"];
|
|
3
|
-
export type WordAudio = LocalizedWord["audio"];
|
|
4
|
-
export type WordUsage = LocalizedWord["usage"];
|
|
5
|
-
export type WordPuVerbatim = LocalizedWord["pu_verbatim"];
|
|
6
|
-
export type WordKuData = LocalizedWord["ku_data"];
|
|
7
|
-
export type WordTranslations = LocalizedWord["translations"];
|
|
8
|
-
export type WordTranslation = LocalizedWord["translations"][string];
|
|
9
|
-
export type LocalizedWordDefinition = WordTranslation["definition"];
|
|
10
|
-
export type LocalizedWordEtymology = WordTranslation["etymology"];
|
|
11
|
-
export type LocalizedWordCommentary = WordTranslation["commentary"];
|
|
12
|
-
export type LocalizedWordSitelenEtymology = WordTranslation["sp_etymology"];
|
|
13
|
-
export type SignEtymology = Sign["etymology"];
|
|
14
|
-
export type SignWriting = Sign["signwriting"];
|
|
15
|
-
export type SignVideo = Sign["video"];
|
|
16
|
-
export type LocalizedSignParameters = ParametersTranslation[string];
|
|
17
|
-
export type FontLinks = Font["links"];
|
package/dist/lib/utils.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const Book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
|
|
3
|
-
export type Book = z.infer<typeof Book>;
|
|
4
|
-
export declare const CoinedEra: z.ZodUnion<[z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>;
|
|
5
|
-
export type CoinedEra = z.infer<typeof CoinedEra>;
|
|
6
|
-
export declare const UsageCategory: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"obscure">, z.ZodLiteral<"sandbox">]>;
|
|
7
|
-
export type UsageCategory = z.infer<typeof UsageCategory>;
|
|
8
|
-
export declare const WritingSystem: z.ZodEnum<["sitelen pona", "sitelen sitelen", "alphabet", "syllabary", "logography", "tokiponido alphabet", "tokiponido syllabary", "tokiponido logography"]>;
|
|
9
|
-
export type WritingSystem = z.infer<typeof WritingSystem>;
|
|
10
|
-
export type * from './types';
|
|
11
|
-
export declare function getTranslatedData<Obj extends {
|
|
12
|
-
translations: Record<string, object>;
|
|
13
|
-
}, Key extends keyof Obj["translations"][string]>(data: Obj, key: Key, language: string): Obj["translations"][string][Key];
|