@saasmakers/shared 0.2.5 → 0.2.7
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.cjs +47829 -47704
- package/dist/index.d.cts +84 -68
- package/dist/index.d.mts +84 -68
- package/dist/index.d.ts +84 -68
- package/dist/index.mjs +47826 -47705
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -15,21 +15,7 @@ declare const EmojiCategorySchema: z.ZodEnum<{
|
|
|
15
15
|
declare const EmojiSchema: z.ZodObject<{
|
|
16
16
|
character: z.ZodString;
|
|
17
17
|
id: z.ZodString;
|
|
18
|
-
keywords: z.ZodRecord<z.
|
|
19
|
-
de: "de";
|
|
20
|
-
en: "en";
|
|
21
|
-
es: "es";
|
|
22
|
-
fr: "fr";
|
|
23
|
-
it: "it";
|
|
24
|
-
ja: "ja";
|
|
25
|
-
ko: "ko";
|
|
26
|
-
nl: "nl";
|
|
27
|
-
pl: "pl";
|
|
28
|
-
pt: "pt";
|
|
29
|
-
"pt-BR": "pt-BR";
|
|
30
|
-
id: "id";
|
|
31
|
-
vi: "vi";
|
|
32
|
-
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
18
|
+
keywords: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
33
19
|
}, z.core.$strip>;
|
|
34
20
|
declare const EmojiGroupSchema: z.ZodObject<{
|
|
35
21
|
category: z.ZodEnum<{
|
|
@@ -47,21 +33,7 @@ declare const EmojiGroupSchema: z.ZodObject<{
|
|
|
47
33
|
emojis: z.ZodArray<z.ZodObject<{
|
|
48
34
|
character: z.ZodString;
|
|
49
35
|
id: z.ZodString;
|
|
50
|
-
keywords: z.ZodRecord<z.
|
|
51
|
-
de: "de";
|
|
52
|
-
en: "en";
|
|
53
|
-
es: "es";
|
|
54
|
-
fr: "fr";
|
|
55
|
-
it: "it";
|
|
56
|
-
ja: "ja";
|
|
57
|
-
ko: "ko";
|
|
58
|
-
nl: "nl";
|
|
59
|
-
pl: "pl";
|
|
60
|
-
pt: "pt";
|
|
61
|
-
"pt-BR": "pt-BR";
|
|
62
|
-
id: "id";
|
|
63
|
-
vi: "vi";
|
|
64
|
-
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
36
|
+
keywords: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
65
37
|
}, z.core.$strip>>;
|
|
66
38
|
}, z.core.$strip>;
|
|
67
39
|
declare const EmojiGroupSeedSchema: z.ZodObject<{
|
|
@@ -80,21 +52,7 @@ declare const EmojiGroupSeedSchema: z.ZodObject<{
|
|
|
80
52
|
emojis: z.ZodArray<z.ZodObject<{
|
|
81
53
|
character: z.ZodString;
|
|
82
54
|
id: z.ZodString;
|
|
83
|
-
keywords: z.ZodRecord<z.
|
|
84
|
-
de: "de";
|
|
85
|
-
en: "en";
|
|
86
|
-
es: "es";
|
|
87
|
-
fr: "fr";
|
|
88
|
-
it: "it";
|
|
89
|
-
ja: "ja";
|
|
90
|
-
ko: "ko";
|
|
91
|
-
nl: "nl";
|
|
92
|
-
pl: "pl";
|
|
93
|
-
pt: "pt";
|
|
94
|
-
"pt-BR": "pt-BR";
|
|
95
|
-
id: "id";
|
|
96
|
-
vi: "vi";
|
|
97
|
-
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
55
|
+
keywords: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
98
56
|
}, z.core.$strip>>;
|
|
99
57
|
}, z.core.$strip>;
|
|
100
58
|
declare const emojiCategories: ("symbol" | "activity" | "diversity" | "flags" | "food" | "nature" | "objects" | "people" | "regional" | "travel")[];
|
|
@@ -108,36 +66,21 @@ declare const EnvironmentSchema: z.ZodEnum<{
|
|
|
108
66
|
production: "production";
|
|
109
67
|
test: "test";
|
|
110
68
|
}>;
|
|
111
|
-
declare const LocaleSchema: z.ZodEnum<{
|
|
112
|
-
de: "de";
|
|
113
|
-
en: "en";
|
|
114
|
-
es: "es";
|
|
115
|
-
fr: "fr";
|
|
116
|
-
it: "it";
|
|
117
|
-
ja: "ja";
|
|
118
|
-
ko: "ko";
|
|
119
|
-
nl: "nl";
|
|
120
|
-
pl: "pl";
|
|
121
|
-
pt: "pt";
|
|
122
|
-
"pt-BR": "pt-BR";
|
|
123
|
-
id: "id";
|
|
124
|
-
vi: "vi";
|
|
125
|
-
}>;
|
|
126
69
|
declare const CountryNameSchema: z.ZodObject<{
|
|
127
70
|
de: z.ZodString;
|
|
128
71
|
en: z.ZodString;
|
|
129
72
|
es: z.ZodString;
|
|
130
73
|
fr: z.ZodString;
|
|
74
|
+
id: z.ZodString;
|
|
131
75
|
it: z.ZodString;
|
|
132
76
|
ja: z.ZodString;
|
|
133
77
|
ko: z.ZodString;
|
|
78
|
+
native: z.ZodArray<z.ZodString>;
|
|
134
79
|
nl: z.ZodString;
|
|
135
80
|
pl: z.ZodString;
|
|
136
81
|
pt: z.ZodString;
|
|
137
82
|
'pt-BR': z.ZodString;
|
|
138
|
-
id: z.ZodString;
|
|
139
83
|
vi: z.ZodString;
|
|
140
|
-
native: z.ZodArray<z.ZodString>;
|
|
141
84
|
}, z.core.$strip>;
|
|
142
85
|
declare const CountrySeedSchema: z.ZodObject<{
|
|
143
86
|
code: z.ZodString;
|
|
@@ -146,16 +89,16 @@ declare const CountrySeedSchema: z.ZodObject<{
|
|
|
146
89
|
en: z.ZodString;
|
|
147
90
|
es: z.ZodString;
|
|
148
91
|
fr: z.ZodString;
|
|
92
|
+
id: z.ZodString;
|
|
149
93
|
it: z.ZodString;
|
|
150
94
|
ja: z.ZodString;
|
|
151
95
|
ko: z.ZodString;
|
|
96
|
+
native: z.ZodArray<z.ZodString>;
|
|
152
97
|
nl: z.ZodString;
|
|
153
98
|
pl: z.ZodString;
|
|
154
99
|
pt: z.ZodString;
|
|
155
100
|
'pt-BR': z.ZodString;
|
|
156
|
-
id: z.ZodString;
|
|
157
101
|
vi: z.ZodString;
|
|
158
|
-
native: z.ZodArray<z.ZodString>;
|
|
159
102
|
}, z.core.$strip>;
|
|
160
103
|
}, z.core.$strip>;
|
|
161
104
|
declare const LogLevelSchema: z.ZodEnum<{
|
|
@@ -165,18 +108,91 @@ declare const LogLevelSchema: z.ZodEnum<{
|
|
|
165
108
|
warn: "warn";
|
|
166
109
|
}>;
|
|
167
110
|
declare const environments: ("development" | "production" | "test")[];
|
|
168
|
-
declare const locales: ("de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "nl" | "pl" | "pt" | "pt-BR" | "id" | "vi")[];
|
|
169
111
|
declare const logLevels: ("debug" | "error" | "info" | "warn")[];
|
|
170
112
|
type CountryName = z.infer<typeof CountryNameSchema>;
|
|
171
113
|
type CountrySeed = z.infer<typeof CountrySeedSchema>;
|
|
172
114
|
type Environment = z.infer<typeof EnvironmentSchema>;
|
|
173
|
-
type Locale = z.infer<typeof LocaleSchema>;
|
|
174
115
|
type LogLevel = z.infer<typeof LogLevelSchema>;
|
|
175
116
|
|
|
117
|
+
declare const LocaleSchema: z.ZodEnum<{
|
|
118
|
+
id: "id";
|
|
119
|
+
de: "de";
|
|
120
|
+
en: "en";
|
|
121
|
+
es: "es";
|
|
122
|
+
fr: "fr";
|
|
123
|
+
it: "it";
|
|
124
|
+
ja: "ja";
|
|
125
|
+
ko: "ko";
|
|
126
|
+
nl: "nl";
|
|
127
|
+
pl: "pl";
|
|
128
|
+
pt: "pt";
|
|
129
|
+
"pt-BR": "pt-BR";
|
|
130
|
+
vi: "vi";
|
|
131
|
+
}>;
|
|
132
|
+
declare const LocaleSeedSchema: z.ZodObject<{
|
|
133
|
+
code: z.ZodEnum<{
|
|
134
|
+
id: "id";
|
|
135
|
+
de: "de";
|
|
136
|
+
en: "en";
|
|
137
|
+
es: "es";
|
|
138
|
+
fr: "fr";
|
|
139
|
+
it: "it";
|
|
140
|
+
ja: "ja";
|
|
141
|
+
ko: "ko";
|
|
142
|
+
nl: "nl";
|
|
143
|
+
pl: "pl";
|
|
144
|
+
pt: "pt";
|
|
145
|
+
"pt-BR": "pt-BR";
|
|
146
|
+
vi: "vi";
|
|
147
|
+
}>;
|
|
148
|
+
file: z.ZodString;
|
|
149
|
+
icon: z.ZodString;
|
|
150
|
+
language: z.ZodString;
|
|
151
|
+
title: z.ZodString;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
declare const LocaleStringsSchema: z.ZodRecord<z.ZodEnum<{
|
|
154
|
+
id: "id";
|
|
155
|
+
de: "de";
|
|
156
|
+
en: "en";
|
|
157
|
+
es: "es";
|
|
158
|
+
fr: "fr";
|
|
159
|
+
it: "it";
|
|
160
|
+
ja: "ja";
|
|
161
|
+
ko: "ko";
|
|
162
|
+
nl: "nl";
|
|
163
|
+
pl: "pl";
|
|
164
|
+
pt: "pt";
|
|
165
|
+
"pt-BR": "pt-BR";
|
|
166
|
+
vi: "vi";
|
|
167
|
+
}>, z.ZodString>;
|
|
168
|
+
declare const localeCodes: ("id" | "de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "nl" | "pl" | "pt" | "pt-BR" | "vi")[];
|
|
169
|
+
type Locale = z.infer<typeof LocaleSchema>;
|
|
170
|
+
type LocaleSeed = z.infer<typeof LocaleSeedSchema>;
|
|
171
|
+
type LocaleStrings = z.infer<typeof LocaleStringsSchema>;
|
|
172
|
+
|
|
176
173
|
declare const countries: CountrySeed[];
|
|
177
174
|
|
|
178
175
|
declare const emojis: EmojiGroupSeed[];
|
|
179
176
|
|
|
177
|
+
declare const locales: LocaleSeed[];
|
|
178
|
+
declare function createLocaleSubset<const T extends readonly [Locale, ...Locale[]]>(codes: T): {
|
|
179
|
+
LocaleSchema: z.ZodEnum<{ [k_1 in T[number]]: k_1; } extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never>;
|
|
180
|
+
LocaleSeedSchema: z.ZodObject<{
|
|
181
|
+
code: z.ZodEnum<{ [k_1 in T[number]]: k_1; } extends infer T_2 ? { [k in keyof T_2]: T_2[k]; } : never>;
|
|
182
|
+
file: z.ZodString;
|
|
183
|
+
icon: z.ZodString;
|
|
184
|
+
language: z.ZodString;
|
|
185
|
+
title: z.ZodString;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
locales: {
|
|
188
|
+
code: "id" | "de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "nl" | "pl" | "pt" | "pt-BR" | "vi";
|
|
189
|
+
file: string;
|
|
190
|
+
icon: string;
|
|
191
|
+
language: string;
|
|
192
|
+
title: string;
|
|
193
|
+
}[];
|
|
194
|
+
};
|
|
195
|
+
|
|
180
196
|
type Assert<T extends true> = T
|
|
181
197
|
|
|
182
198
|
type IsEqual<A, B>
|
|
@@ -185,5 +201,5 @@ type IsEqual<A, B>
|
|
|
185
201
|
? true
|
|
186
202
|
: false
|
|
187
203
|
|
|
188
|
-
export { CountryNameSchema, CountrySeedSchema, EmojiCategorySchema, EmojiGroupSchema, EmojiGroupSeedSchema, EmojiSchema, EnvironmentSchema, LocaleSchema, LogLevelSchema, countries, emojiCategories, emojis, environments, locales, logLevels };
|
|
189
|
-
export type { Assert, CountryName, CountrySeed, Emoji, EmojiCategory, EmojiGroup, EmojiGroupSeed, Environment, IsEqual, Locale, LogLevel };
|
|
204
|
+
export { CountryNameSchema, CountrySeedSchema, EmojiCategorySchema, EmojiGroupSchema, EmojiGroupSeedSchema, EmojiSchema, EnvironmentSchema, LocaleSchema, LocaleSeedSchema, LocaleStringsSchema, LogLevelSchema, countries, createLocaleSubset, emojiCategories, emojis, environments, localeCodes, locales, logLevels };
|
|
205
|
+
export type { Assert, CountryName, CountrySeed, Emoji, EmojiCategory, EmojiGroup, EmojiGroupSeed, Environment, IsEqual, Locale, LocaleSeed, LocaleStrings, LogLevel };
|
package/dist/index.d.mts
CHANGED
|
@@ -15,21 +15,7 @@ declare const EmojiCategorySchema: z.ZodEnum<{
|
|
|
15
15
|
declare const EmojiSchema: z.ZodObject<{
|
|
16
16
|
character: z.ZodString;
|
|
17
17
|
id: z.ZodString;
|
|
18
|
-
keywords: z.ZodRecord<z.
|
|
19
|
-
de: "de";
|
|
20
|
-
en: "en";
|
|
21
|
-
es: "es";
|
|
22
|
-
fr: "fr";
|
|
23
|
-
it: "it";
|
|
24
|
-
ja: "ja";
|
|
25
|
-
ko: "ko";
|
|
26
|
-
nl: "nl";
|
|
27
|
-
pl: "pl";
|
|
28
|
-
pt: "pt";
|
|
29
|
-
"pt-BR": "pt-BR";
|
|
30
|
-
id: "id";
|
|
31
|
-
vi: "vi";
|
|
32
|
-
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
18
|
+
keywords: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
33
19
|
}, z.core.$strip>;
|
|
34
20
|
declare const EmojiGroupSchema: z.ZodObject<{
|
|
35
21
|
category: z.ZodEnum<{
|
|
@@ -47,21 +33,7 @@ declare const EmojiGroupSchema: z.ZodObject<{
|
|
|
47
33
|
emojis: z.ZodArray<z.ZodObject<{
|
|
48
34
|
character: z.ZodString;
|
|
49
35
|
id: z.ZodString;
|
|
50
|
-
keywords: z.ZodRecord<z.
|
|
51
|
-
de: "de";
|
|
52
|
-
en: "en";
|
|
53
|
-
es: "es";
|
|
54
|
-
fr: "fr";
|
|
55
|
-
it: "it";
|
|
56
|
-
ja: "ja";
|
|
57
|
-
ko: "ko";
|
|
58
|
-
nl: "nl";
|
|
59
|
-
pl: "pl";
|
|
60
|
-
pt: "pt";
|
|
61
|
-
"pt-BR": "pt-BR";
|
|
62
|
-
id: "id";
|
|
63
|
-
vi: "vi";
|
|
64
|
-
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
36
|
+
keywords: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
65
37
|
}, z.core.$strip>>;
|
|
66
38
|
}, z.core.$strip>;
|
|
67
39
|
declare const EmojiGroupSeedSchema: z.ZodObject<{
|
|
@@ -80,21 +52,7 @@ declare const EmojiGroupSeedSchema: z.ZodObject<{
|
|
|
80
52
|
emojis: z.ZodArray<z.ZodObject<{
|
|
81
53
|
character: z.ZodString;
|
|
82
54
|
id: z.ZodString;
|
|
83
|
-
keywords: z.ZodRecord<z.
|
|
84
|
-
de: "de";
|
|
85
|
-
en: "en";
|
|
86
|
-
es: "es";
|
|
87
|
-
fr: "fr";
|
|
88
|
-
it: "it";
|
|
89
|
-
ja: "ja";
|
|
90
|
-
ko: "ko";
|
|
91
|
-
nl: "nl";
|
|
92
|
-
pl: "pl";
|
|
93
|
-
pt: "pt";
|
|
94
|
-
"pt-BR": "pt-BR";
|
|
95
|
-
id: "id";
|
|
96
|
-
vi: "vi";
|
|
97
|
-
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
55
|
+
keywords: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
98
56
|
}, z.core.$strip>>;
|
|
99
57
|
}, z.core.$strip>;
|
|
100
58
|
declare const emojiCategories: ("symbol" | "activity" | "diversity" | "flags" | "food" | "nature" | "objects" | "people" | "regional" | "travel")[];
|
|
@@ -108,36 +66,21 @@ declare const EnvironmentSchema: z.ZodEnum<{
|
|
|
108
66
|
production: "production";
|
|
109
67
|
test: "test";
|
|
110
68
|
}>;
|
|
111
|
-
declare const LocaleSchema: z.ZodEnum<{
|
|
112
|
-
de: "de";
|
|
113
|
-
en: "en";
|
|
114
|
-
es: "es";
|
|
115
|
-
fr: "fr";
|
|
116
|
-
it: "it";
|
|
117
|
-
ja: "ja";
|
|
118
|
-
ko: "ko";
|
|
119
|
-
nl: "nl";
|
|
120
|
-
pl: "pl";
|
|
121
|
-
pt: "pt";
|
|
122
|
-
"pt-BR": "pt-BR";
|
|
123
|
-
id: "id";
|
|
124
|
-
vi: "vi";
|
|
125
|
-
}>;
|
|
126
69
|
declare const CountryNameSchema: z.ZodObject<{
|
|
127
70
|
de: z.ZodString;
|
|
128
71
|
en: z.ZodString;
|
|
129
72
|
es: z.ZodString;
|
|
130
73
|
fr: z.ZodString;
|
|
74
|
+
id: z.ZodString;
|
|
131
75
|
it: z.ZodString;
|
|
132
76
|
ja: z.ZodString;
|
|
133
77
|
ko: z.ZodString;
|
|
78
|
+
native: z.ZodArray<z.ZodString>;
|
|
134
79
|
nl: z.ZodString;
|
|
135
80
|
pl: z.ZodString;
|
|
136
81
|
pt: z.ZodString;
|
|
137
82
|
'pt-BR': z.ZodString;
|
|
138
|
-
id: z.ZodString;
|
|
139
83
|
vi: z.ZodString;
|
|
140
|
-
native: z.ZodArray<z.ZodString>;
|
|
141
84
|
}, z.core.$strip>;
|
|
142
85
|
declare const CountrySeedSchema: z.ZodObject<{
|
|
143
86
|
code: z.ZodString;
|
|
@@ -146,16 +89,16 @@ declare const CountrySeedSchema: z.ZodObject<{
|
|
|
146
89
|
en: z.ZodString;
|
|
147
90
|
es: z.ZodString;
|
|
148
91
|
fr: z.ZodString;
|
|
92
|
+
id: z.ZodString;
|
|
149
93
|
it: z.ZodString;
|
|
150
94
|
ja: z.ZodString;
|
|
151
95
|
ko: z.ZodString;
|
|
96
|
+
native: z.ZodArray<z.ZodString>;
|
|
152
97
|
nl: z.ZodString;
|
|
153
98
|
pl: z.ZodString;
|
|
154
99
|
pt: z.ZodString;
|
|
155
100
|
'pt-BR': z.ZodString;
|
|
156
|
-
id: z.ZodString;
|
|
157
101
|
vi: z.ZodString;
|
|
158
|
-
native: z.ZodArray<z.ZodString>;
|
|
159
102
|
}, z.core.$strip>;
|
|
160
103
|
}, z.core.$strip>;
|
|
161
104
|
declare const LogLevelSchema: z.ZodEnum<{
|
|
@@ -165,18 +108,91 @@ declare const LogLevelSchema: z.ZodEnum<{
|
|
|
165
108
|
warn: "warn";
|
|
166
109
|
}>;
|
|
167
110
|
declare const environments: ("development" | "production" | "test")[];
|
|
168
|
-
declare const locales: ("de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "nl" | "pl" | "pt" | "pt-BR" | "id" | "vi")[];
|
|
169
111
|
declare const logLevels: ("debug" | "error" | "info" | "warn")[];
|
|
170
112
|
type CountryName = z.infer<typeof CountryNameSchema>;
|
|
171
113
|
type CountrySeed = z.infer<typeof CountrySeedSchema>;
|
|
172
114
|
type Environment = z.infer<typeof EnvironmentSchema>;
|
|
173
|
-
type Locale = z.infer<typeof LocaleSchema>;
|
|
174
115
|
type LogLevel = z.infer<typeof LogLevelSchema>;
|
|
175
116
|
|
|
117
|
+
declare const LocaleSchema: z.ZodEnum<{
|
|
118
|
+
id: "id";
|
|
119
|
+
de: "de";
|
|
120
|
+
en: "en";
|
|
121
|
+
es: "es";
|
|
122
|
+
fr: "fr";
|
|
123
|
+
it: "it";
|
|
124
|
+
ja: "ja";
|
|
125
|
+
ko: "ko";
|
|
126
|
+
nl: "nl";
|
|
127
|
+
pl: "pl";
|
|
128
|
+
pt: "pt";
|
|
129
|
+
"pt-BR": "pt-BR";
|
|
130
|
+
vi: "vi";
|
|
131
|
+
}>;
|
|
132
|
+
declare const LocaleSeedSchema: z.ZodObject<{
|
|
133
|
+
code: z.ZodEnum<{
|
|
134
|
+
id: "id";
|
|
135
|
+
de: "de";
|
|
136
|
+
en: "en";
|
|
137
|
+
es: "es";
|
|
138
|
+
fr: "fr";
|
|
139
|
+
it: "it";
|
|
140
|
+
ja: "ja";
|
|
141
|
+
ko: "ko";
|
|
142
|
+
nl: "nl";
|
|
143
|
+
pl: "pl";
|
|
144
|
+
pt: "pt";
|
|
145
|
+
"pt-BR": "pt-BR";
|
|
146
|
+
vi: "vi";
|
|
147
|
+
}>;
|
|
148
|
+
file: z.ZodString;
|
|
149
|
+
icon: z.ZodString;
|
|
150
|
+
language: z.ZodString;
|
|
151
|
+
title: z.ZodString;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
declare const LocaleStringsSchema: z.ZodRecord<z.ZodEnum<{
|
|
154
|
+
id: "id";
|
|
155
|
+
de: "de";
|
|
156
|
+
en: "en";
|
|
157
|
+
es: "es";
|
|
158
|
+
fr: "fr";
|
|
159
|
+
it: "it";
|
|
160
|
+
ja: "ja";
|
|
161
|
+
ko: "ko";
|
|
162
|
+
nl: "nl";
|
|
163
|
+
pl: "pl";
|
|
164
|
+
pt: "pt";
|
|
165
|
+
"pt-BR": "pt-BR";
|
|
166
|
+
vi: "vi";
|
|
167
|
+
}>, z.ZodString>;
|
|
168
|
+
declare const localeCodes: ("id" | "de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "nl" | "pl" | "pt" | "pt-BR" | "vi")[];
|
|
169
|
+
type Locale = z.infer<typeof LocaleSchema>;
|
|
170
|
+
type LocaleSeed = z.infer<typeof LocaleSeedSchema>;
|
|
171
|
+
type LocaleStrings = z.infer<typeof LocaleStringsSchema>;
|
|
172
|
+
|
|
176
173
|
declare const countries: CountrySeed[];
|
|
177
174
|
|
|
178
175
|
declare const emojis: EmojiGroupSeed[];
|
|
179
176
|
|
|
177
|
+
declare const locales: LocaleSeed[];
|
|
178
|
+
declare function createLocaleSubset<const T extends readonly [Locale, ...Locale[]]>(codes: T): {
|
|
179
|
+
LocaleSchema: z.ZodEnum<{ [k_1 in T[number]]: k_1; } extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never>;
|
|
180
|
+
LocaleSeedSchema: z.ZodObject<{
|
|
181
|
+
code: z.ZodEnum<{ [k_1 in T[number]]: k_1; } extends infer T_2 ? { [k in keyof T_2]: T_2[k]; } : never>;
|
|
182
|
+
file: z.ZodString;
|
|
183
|
+
icon: z.ZodString;
|
|
184
|
+
language: z.ZodString;
|
|
185
|
+
title: z.ZodString;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
locales: {
|
|
188
|
+
code: "id" | "de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "nl" | "pl" | "pt" | "pt-BR" | "vi";
|
|
189
|
+
file: string;
|
|
190
|
+
icon: string;
|
|
191
|
+
language: string;
|
|
192
|
+
title: string;
|
|
193
|
+
}[];
|
|
194
|
+
};
|
|
195
|
+
|
|
180
196
|
type Assert<T extends true> = T
|
|
181
197
|
|
|
182
198
|
type IsEqual<A, B>
|
|
@@ -185,5 +201,5 @@ type IsEqual<A, B>
|
|
|
185
201
|
? true
|
|
186
202
|
: false
|
|
187
203
|
|
|
188
|
-
export { CountryNameSchema, CountrySeedSchema, EmojiCategorySchema, EmojiGroupSchema, EmojiGroupSeedSchema, EmojiSchema, EnvironmentSchema, LocaleSchema, LogLevelSchema, countries, emojiCategories, emojis, environments, locales, logLevels };
|
|
189
|
-
export type { Assert, CountryName, CountrySeed, Emoji, EmojiCategory, EmojiGroup, EmojiGroupSeed, Environment, IsEqual, Locale, LogLevel };
|
|
204
|
+
export { CountryNameSchema, CountrySeedSchema, EmojiCategorySchema, EmojiGroupSchema, EmojiGroupSeedSchema, EmojiSchema, EnvironmentSchema, LocaleSchema, LocaleSeedSchema, LocaleStringsSchema, LogLevelSchema, countries, createLocaleSubset, emojiCategories, emojis, environments, localeCodes, locales, logLevels };
|
|
205
|
+
export type { Assert, CountryName, CountrySeed, Emoji, EmojiCategory, EmojiGroup, EmojiGroupSeed, Environment, IsEqual, Locale, LocaleSeed, LocaleStrings, LogLevel };
|
package/dist/index.d.ts
CHANGED
|
@@ -15,21 +15,7 @@ declare const EmojiCategorySchema: z.ZodEnum<{
|
|
|
15
15
|
declare const EmojiSchema: z.ZodObject<{
|
|
16
16
|
character: z.ZodString;
|
|
17
17
|
id: z.ZodString;
|
|
18
|
-
keywords: z.ZodRecord<z.
|
|
19
|
-
de: "de";
|
|
20
|
-
en: "en";
|
|
21
|
-
es: "es";
|
|
22
|
-
fr: "fr";
|
|
23
|
-
it: "it";
|
|
24
|
-
ja: "ja";
|
|
25
|
-
ko: "ko";
|
|
26
|
-
nl: "nl";
|
|
27
|
-
pl: "pl";
|
|
28
|
-
pt: "pt";
|
|
29
|
-
"pt-BR": "pt-BR";
|
|
30
|
-
id: "id";
|
|
31
|
-
vi: "vi";
|
|
32
|
-
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
18
|
+
keywords: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
33
19
|
}, z.core.$strip>;
|
|
34
20
|
declare const EmojiGroupSchema: z.ZodObject<{
|
|
35
21
|
category: z.ZodEnum<{
|
|
@@ -47,21 +33,7 @@ declare const EmojiGroupSchema: z.ZodObject<{
|
|
|
47
33
|
emojis: z.ZodArray<z.ZodObject<{
|
|
48
34
|
character: z.ZodString;
|
|
49
35
|
id: z.ZodString;
|
|
50
|
-
keywords: z.ZodRecord<z.
|
|
51
|
-
de: "de";
|
|
52
|
-
en: "en";
|
|
53
|
-
es: "es";
|
|
54
|
-
fr: "fr";
|
|
55
|
-
it: "it";
|
|
56
|
-
ja: "ja";
|
|
57
|
-
ko: "ko";
|
|
58
|
-
nl: "nl";
|
|
59
|
-
pl: "pl";
|
|
60
|
-
pt: "pt";
|
|
61
|
-
"pt-BR": "pt-BR";
|
|
62
|
-
id: "id";
|
|
63
|
-
vi: "vi";
|
|
64
|
-
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
36
|
+
keywords: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
65
37
|
}, z.core.$strip>>;
|
|
66
38
|
}, z.core.$strip>;
|
|
67
39
|
declare const EmojiGroupSeedSchema: z.ZodObject<{
|
|
@@ -80,21 +52,7 @@ declare const EmojiGroupSeedSchema: z.ZodObject<{
|
|
|
80
52
|
emojis: z.ZodArray<z.ZodObject<{
|
|
81
53
|
character: z.ZodString;
|
|
82
54
|
id: z.ZodString;
|
|
83
|
-
keywords: z.ZodRecord<z.
|
|
84
|
-
de: "de";
|
|
85
|
-
en: "en";
|
|
86
|
-
es: "es";
|
|
87
|
-
fr: "fr";
|
|
88
|
-
it: "it";
|
|
89
|
-
ja: "ja";
|
|
90
|
-
ko: "ko";
|
|
91
|
-
nl: "nl";
|
|
92
|
-
pl: "pl";
|
|
93
|
-
pt: "pt";
|
|
94
|
-
"pt-BR": "pt-BR";
|
|
95
|
-
id: "id";
|
|
96
|
-
vi: "vi";
|
|
97
|
-
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
55
|
+
keywords: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
98
56
|
}, z.core.$strip>>;
|
|
99
57
|
}, z.core.$strip>;
|
|
100
58
|
declare const emojiCategories: ("symbol" | "activity" | "diversity" | "flags" | "food" | "nature" | "objects" | "people" | "regional" | "travel")[];
|
|
@@ -108,36 +66,21 @@ declare const EnvironmentSchema: z.ZodEnum<{
|
|
|
108
66
|
production: "production";
|
|
109
67
|
test: "test";
|
|
110
68
|
}>;
|
|
111
|
-
declare const LocaleSchema: z.ZodEnum<{
|
|
112
|
-
de: "de";
|
|
113
|
-
en: "en";
|
|
114
|
-
es: "es";
|
|
115
|
-
fr: "fr";
|
|
116
|
-
it: "it";
|
|
117
|
-
ja: "ja";
|
|
118
|
-
ko: "ko";
|
|
119
|
-
nl: "nl";
|
|
120
|
-
pl: "pl";
|
|
121
|
-
pt: "pt";
|
|
122
|
-
"pt-BR": "pt-BR";
|
|
123
|
-
id: "id";
|
|
124
|
-
vi: "vi";
|
|
125
|
-
}>;
|
|
126
69
|
declare const CountryNameSchema: z.ZodObject<{
|
|
127
70
|
de: z.ZodString;
|
|
128
71
|
en: z.ZodString;
|
|
129
72
|
es: z.ZodString;
|
|
130
73
|
fr: z.ZodString;
|
|
74
|
+
id: z.ZodString;
|
|
131
75
|
it: z.ZodString;
|
|
132
76
|
ja: z.ZodString;
|
|
133
77
|
ko: z.ZodString;
|
|
78
|
+
native: z.ZodArray<z.ZodString>;
|
|
134
79
|
nl: z.ZodString;
|
|
135
80
|
pl: z.ZodString;
|
|
136
81
|
pt: z.ZodString;
|
|
137
82
|
'pt-BR': z.ZodString;
|
|
138
|
-
id: z.ZodString;
|
|
139
83
|
vi: z.ZodString;
|
|
140
|
-
native: z.ZodArray<z.ZodString>;
|
|
141
84
|
}, z.core.$strip>;
|
|
142
85
|
declare const CountrySeedSchema: z.ZodObject<{
|
|
143
86
|
code: z.ZodString;
|
|
@@ -146,16 +89,16 @@ declare const CountrySeedSchema: z.ZodObject<{
|
|
|
146
89
|
en: z.ZodString;
|
|
147
90
|
es: z.ZodString;
|
|
148
91
|
fr: z.ZodString;
|
|
92
|
+
id: z.ZodString;
|
|
149
93
|
it: z.ZodString;
|
|
150
94
|
ja: z.ZodString;
|
|
151
95
|
ko: z.ZodString;
|
|
96
|
+
native: z.ZodArray<z.ZodString>;
|
|
152
97
|
nl: z.ZodString;
|
|
153
98
|
pl: z.ZodString;
|
|
154
99
|
pt: z.ZodString;
|
|
155
100
|
'pt-BR': z.ZodString;
|
|
156
|
-
id: z.ZodString;
|
|
157
101
|
vi: z.ZodString;
|
|
158
|
-
native: z.ZodArray<z.ZodString>;
|
|
159
102
|
}, z.core.$strip>;
|
|
160
103
|
}, z.core.$strip>;
|
|
161
104
|
declare const LogLevelSchema: z.ZodEnum<{
|
|
@@ -165,18 +108,91 @@ declare const LogLevelSchema: z.ZodEnum<{
|
|
|
165
108
|
warn: "warn";
|
|
166
109
|
}>;
|
|
167
110
|
declare const environments: ("development" | "production" | "test")[];
|
|
168
|
-
declare const locales: ("de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "nl" | "pl" | "pt" | "pt-BR" | "id" | "vi")[];
|
|
169
111
|
declare const logLevels: ("debug" | "error" | "info" | "warn")[];
|
|
170
112
|
type CountryName = z.infer<typeof CountryNameSchema>;
|
|
171
113
|
type CountrySeed = z.infer<typeof CountrySeedSchema>;
|
|
172
114
|
type Environment = z.infer<typeof EnvironmentSchema>;
|
|
173
|
-
type Locale = z.infer<typeof LocaleSchema>;
|
|
174
115
|
type LogLevel = z.infer<typeof LogLevelSchema>;
|
|
175
116
|
|
|
117
|
+
declare const LocaleSchema: z.ZodEnum<{
|
|
118
|
+
id: "id";
|
|
119
|
+
de: "de";
|
|
120
|
+
en: "en";
|
|
121
|
+
es: "es";
|
|
122
|
+
fr: "fr";
|
|
123
|
+
it: "it";
|
|
124
|
+
ja: "ja";
|
|
125
|
+
ko: "ko";
|
|
126
|
+
nl: "nl";
|
|
127
|
+
pl: "pl";
|
|
128
|
+
pt: "pt";
|
|
129
|
+
"pt-BR": "pt-BR";
|
|
130
|
+
vi: "vi";
|
|
131
|
+
}>;
|
|
132
|
+
declare const LocaleSeedSchema: z.ZodObject<{
|
|
133
|
+
code: z.ZodEnum<{
|
|
134
|
+
id: "id";
|
|
135
|
+
de: "de";
|
|
136
|
+
en: "en";
|
|
137
|
+
es: "es";
|
|
138
|
+
fr: "fr";
|
|
139
|
+
it: "it";
|
|
140
|
+
ja: "ja";
|
|
141
|
+
ko: "ko";
|
|
142
|
+
nl: "nl";
|
|
143
|
+
pl: "pl";
|
|
144
|
+
pt: "pt";
|
|
145
|
+
"pt-BR": "pt-BR";
|
|
146
|
+
vi: "vi";
|
|
147
|
+
}>;
|
|
148
|
+
file: z.ZodString;
|
|
149
|
+
icon: z.ZodString;
|
|
150
|
+
language: z.ZodString;
|
|
151
|
+
title: z.ZodString;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
declare const LocaleStringsSchema: z.ZodRecord<z.ZodEnum<{
|
|
154
|
+
id: "id";
|
|
155
|
+
de: "de";
|
|
156
|
+
en: "en";
|
|
157
|
+
es: "es";
|
|
158
|
+
fr: "fr";
|
|
159
|
+
it: "it";
|
|
160
|
+
ja: "ja";
|
|
161
|
+
ko: "ko";
|
|
162
|
+
nl: "nl";
|
|
163
|
+
pl: "pl";
|
|
164
|
+
pt: "pt";
|
|
165
|
+
"pt-BR": "pt-BR";
|
|
166
|
+
vi: "vi";
|
|
167
|
+
}>, z.ZodString>;
|
|
168
|
+
declare const localeCodes: ("id" | "de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "nl" | "pl" | "pt" | "pt-BR" | "vi")[];
|
|
169
|
+
type Locale = z.infer<typeof LocaleSchema>;
|
|
170
|
+
type LocaleSeed = z.infer<typeof LocaleSeedSchema>;
|
|
171
|
+
type LocaleStrings = z.infer<typeof LocaleStringsSchema>;
|
|
172
|
+
|
|
176
173
|
declare const countries: CountrySeed[];
|
|
177
174
|
|
|
178
175
|
declare const emojis: EmojiGroupSeed[];
|
|
179
176
|
|
|
177
|
+
declare const locales: LocaleSeed[];
|
|
178
|
+
declare function createLocaleSubset<const T extends readonly [Locale, ...Locale[]]>(codes: T): {
|
|
179
|
+
LocaleSchema: z.ZodEnum<{ [k_1 in T[number]]: k_1; } extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never>;
|
|
180
|
+
LocaleSeedSchema: z.ZodObject<{
|
|
181
|
+
code: z.ZodEnum<{ [k_1 in T[number]]: k_1; } extends infer T_2 ? { [k in keyof T_2]: T_2[k]; } : never>;
|
|
182
|
+
file: z.ZodString;
|
|
183
|
+
icon: z.ZodString;
|
|
184
|
+
language: z.ZodString;
|
|
185
|
+
title: z.ZodString;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
locales: {
|
|
188
|
+
code: "id" | "de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "nl" | "pl" | "pt" | "pt-BR" | "vi";
|
|
189
|
+
file: string;
|
|
190
|
+
icon: string;
|
|
191
|
+
language: string;
|
|
192
|
+
title: string;
|
|
193
|
+
}[];
|
|
194
|
+
};
|
|
195
|
+
|
|
180
196
|
type Assert<T extends true> = T
|
|
181
197
|
|
|
182
198
|
type IsEqual<A, B>
|
|
@@ -185,5 +201,5 @@ type IsEqual<A, B>
|
|
|
185
201
|
? true
|
|
186
202
|
: false
|
|
187
203
|
|
|
188
|
-
export { CountryNameSchema, CountrySeedSchema, EmojiCategorySchema, EmojiGroupSchema, EmojiGroupSeedSchema, EmojiSchema, EnvironmentSchema, LocaleSchema, LogLevelSchema, countries, emojiCategories, emojis, environments, locales, logLevels };
|
|
189
|
-
export type { Assert, CountryName, CountrySeed, Emoji, EmojiCategory, EmojiGroup, EmojiGroupSeed, Environment, IsEqual, Locale, LogLevel };
|
|
204
|
+
export { CountryNameSchema, CountrySeedSchema, EmojiCategorySchema, EmojiGroupSchema, EmojiGroupSeedSchema, EmojiSchema, EnvironmentSchema, LocaleSchema, LocaleSeedSchema, LocaleStringsSchema, LogLevelSchema, countries, createLocaleSubset, emojiCategories, emojis, environments, localeCodes, locales, logLevels };
|
|
205
|
+
export type { Assert, CountryName, CountrySeed, Emoji, EmojiCategory, EmojiGroup, EmojiGroupSeed, Environment, IsEqual, Locale, LocaleSeed, LocaleStrings, LogLevel };
|