@saasmakers/shared 0.1.17 → 0.2.1
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 +18561 -3713
- package/dist/index.d.cts +114 -28
- package/dist/index.d.mts +114 -28
- package/dist/index.d.ts +114 -28
- package/dist/index.mjs +18539 -3714
- package/package.json +16 -16
package/dist/index.d.cts
CHANGED
|
@@ -1,32 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
character: string
|
|
3
|
-
id: string
|
|
4
|
-
keywords: Record<Locale, [string, ...string[]]>
|
|
5
|
-
}
|
|
1
|
+
import * as z from 'zod';
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
declare const EmojiCategorySchema: z.ZodEnum<{
|
|
4
|
+
symbol: "symbol";
|
|
5
|
+
activity: "activity";
|
|
6
|
+
diversity: "diversity";
|
|
7
|
+
flags: "flags";
|
|
8
|
+
food: "food";
|
|
9
|
+
nature: "nature";
|
|
10
|
+
objects: "objects";
|
|
11
|
+
people: "people";
|
|
12
|
+
regional: "regional";
|
|
13
|
+
travel: "travel";
|
|
14
|
+
}>;
|
|
15
|
+
declare const EmojiSchema: z.ZodObject<{
|
|
16
|
+
character: z.ZodString;
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
keywords: z.ZodRecord<z.ZodEnum<{
|
|
19
|
+
de: "de";
|
|
20
|
+
en: "en";
|
|
21
|
+
es: "es";
|
|
22
|
+
fr: "fr";
|
|
23
|
+
it: "it";
|
|
24
|
+
ja: "ja";
|
|
25
|
+
ko: "ko";
|
|
26
|
+
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const EmojiGroupSchema: z.ZodObject<{
|
|
29
|
+
category: z.ZodEnum<{
|
|
30
|
+
symbol: "symbol";
|
|
31
|
+
activity: "activity";
|
|
32
|
+
diversity: "diversity";
|
|
33
|
+
flags: "flags";
|
|
34
|
+
food: "food";
|
|
35
|
+
nature: "nature";
|
|
36
|
+
objects: "objects";
|
|
37
|
+
people: "people";
|
|
38
|
+
regional: "regional";
|
|
39
|
+
travel: "travel";
|
|
40
|
+
}>;
|
|
41
|
+
emojis: z.ZodArray<z.ZodObject<{
|
|
42
|
+
character: z.ZodString;
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
keywords: z.ZodRecord<z.ZodEnum<{
|
|
45
|
+
de: "de";
|
|
46
|
+
en: "en";
|
|
47
|
+
es: "es";
|
|
48
|
+
fr: "fr";
|
|
49
|
+
it: "it";
|
|
50
|
+
ja: "ja";
|
|
51
|
+
ko: "ko";
|
|
52
|
+
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
declare const EmojiGroupSeedSchema: z.ZodObject<{
|
|
56
|
+
category: z.ZodEnum<{
|
|
57
|
+
symbol: "symbol";
|
|
58
|
+
activity: "activity";
|
|
59
|
+
diversity: "diversity";
|
|
60
|
+
flags: "flags";
|
|
61
|
+
food: "food";
|
|
62
|
+
nature: "nature";
|
|
63
|
+
objects: "objects";
|
|
64
|
+
people: "people";
|
|
65
|
+
regional: "regional";
|
|
66
|
+
travel: "travel";
|
|
67
|
+
}>;
|
|
68
|
+
emojis: z.ZodArray<z.ZodObject<{
|
|
69
|
+
character: z.ZodString;
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
keywords: z.ZodRecord<z.ZodEnum<{
|
|
72
|
+
de: "de";
|
|
73
|
+
en: "en";
|
|
74
|
+
es: "es";
|
|
75
|
+
fr: "fr";
|
|
76
|
+
it: "it";
|
|
77
|
+
ja: "ja";
|
|
78
|
+
ko: "ko";
|
|
79
|
+
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
declare const emojiCategories: ("symbol" | "activity" | "diversity" | "flags" | "food" | "nature" | "objects" | "people" | "regional" | "travel")[];
|
|
83
|
+
type Emoji = z.infer<typeof EmojiSchema>;
|
|
84
|
+
type EmojiCategory = z.infer<typeof EmojiCategorySchema>;
|
|
85
|
+
type EmojiGroup = z.infer<typeof EmojiGroupSchema>;
|
|
86
|
+
type EmojiGroupSeed = z.infer<typeof EmojiGroupSeedSchema>;
|
|
18
87
|
|
|
19
|
-
|
|
88
|
+
declare const EnvironmentSchema: z.ZodEnum<{
|
|
89
|
+
development: "development";
|
|
90
|
+
production: "production";
|
|
91
|
+
test: "test";
|
|
92
|
+
}>;
|
|
93
|
+
declare const LocaleSchema: z.ZodEnum<{
|
|
94
|
+
de: "de";
|
|
95
|
+
en: "en";
|
|
96
|
+
es: "es";
|
|
97
|
+
fr: "fr";
|
|
98
|
+
it: "it";
|
|
99
|
+
ja: "ja";
|
|
100
|
+
ko: "ko";
|
|
101
|
+
}>;
|
|
102
|
+
declare const LogLevelSchema: z.ZodEnum<{
|
|
103
|
+
debug: "debug";
|
|
104
|
+
error: "error";
|
|
105
|
+
info: "info";
|
|
106
|
+
warn: "warn";
|
|
107
|
+
}>;
|
|
108
|
+
declare const environments: ("development" | "production" | "test")[];
|
|
109
|
+
declare const locales: ("de" | "en" | "es" | "fr" | "it" | "ja" | "ko")[];
|
|
110
|
+
declare const logLevels: ("debug" | "error" | "info" | "warn")[];
|
|
111
|
+
type Environment = z.infer<typeof EnvironmentSchema>;
|
|
112
|
+
type Locale = z.infer<typeof LocaleSchema>;
|
|
113
|
+
type LogLevel = z.infer<typeof LogLevelSchema>;
|
|
20
114
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
declare const emojis: {
|
|
24
|
-
category: EmojiCategory;
|
|
25
|
-
emojis: Emoji[];
|
|
26
|
-
}[];
|
|
27
|
-
|
|
28
|
-
declare const environments: Environment[];
|
|
29
|
-
declare const logLevels: LogLevel[];
|
|
115
|
+
declare const emojis: EmojiGroupSeed[];
|
|
30
116
|
|
|
31
117
|
type Assert<T extends true> = T
|
|
32
118
|
|
|
@@ -36,5 +122,5 @@ type IsEqual<A, B>
|
|
|
36
122
|
? true
|
|
37
123
|
: false
|
|
38
124
|
|
|
39
|
-
export { emojis, environments, logLevels };
|
|
40
|
-
export type { Assert, Emoji, EmojiCategory, Environment, IsEqual, LogLevel };
|
|
125
|
+
export { EmojiCategorySchema, EmojiGroupSchema, EmojiGroupSeedSchema, EmojiSchema, EnvironmentSchema, LocaleSchema, LogLevelSchema, emojiCategories, emojis, environments, locales, logLevels };
|
|
126
|
+
export type { Assert, Emoji, EmojiCategory, EmojiGroup, EmojiGroupSeed, Environment, IsEqual, Locale, LogLevel };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,32 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
character: string
|
|
3
|
-
id: string
|
|
4
|
-
keywords: Record<Locale, [string, ...string[]]>
|
|
5
|
-
}
|
|
1
|
+
import * as z from 'zod';
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
declare const EmojiCategorySchema: z.ZodEnum<{
|
|
4
|
+
symbol: "symbol";
|
|
5
|
+
activity: "activity";
|
|
6
|
+
diversity: "diversity";
|
|
7
|
+
flags: "flags";
|
|
8
|
+
food: "food";
|
|
9
|
+
nature: "nature";
|
|
10
|
+
objects: "objects";
|
|
11
|
+
people: "people";
|
|
12
|
+
regional: "regional";
|
|
13
|
+
travel: "travel";
|
|
14
|
+
}>;
|
|
15
|
+
declare const EmojiSchema: z.ZodObject<{
|
|
16
|
+
character: z.ZodString;
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
keywords: z.ZodRecord<z.ZodEnum<{
|
|
19
|
+
de: "de";
|
|
20
|
+
en: "en";
|
|
21
|
+
es: "es";
|
|
22
|
+
fr: "fr";
|
|
23
|
+
it: "it";
|
|
24
|
+
ja: "ja";
|
|
25
|
+
ko: "ko";
|
|
26
|
+
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const EmojiGroupSchema: z.ZodObject<{
|
|
29
|
+
category: z.ZodEnum<{
|
|
30
|
+
symbol: "symbol";
|
|
31
|
+
activity: "activity";
|
|
32
|
+
diversity: "diversity";
|
|
33
|
+
flags: "flags";
|
|
34
|
+
food: "food";
|
|
35
|
+
nature: "nature";
|
|
36
|
+
objects: "objects";
|
|
37
|
+
people: "people";
|
|
38
|
+
regional: "regional";
|
|
39
|
+
travel: "travel";
|
|
40
|
+
}>;
|
|
41
|
+
emojis: z.ZodArray<z.ZodObject<{
|
|
42
|
+
character: z.ZodString;
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
keywords: z.ZodRecord<z.ZodEnum<{
|
|
45
|
+
de: "de";
|
|
46
|
+
en: "en";
|
|
47
|
+
es: "es";
|
|
48
|
+
fr: "fr";
|
|
49
|
+
it: "it";
|
|
50
|
+
ja: "ja";
|
|
51
|
+
ko: "ko";
|
|
52
|
+
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
declare const EmojiGroupSeedSchema: z.ZodObject<{
|
|
56
|
+
category: z.ZodEnum<{
|
|
57
|
+
symbol: "symbol";
|
|
58
|
+
activity: "activity";
|
|
59
|
+
diversity: "diversity";
|
|
60
|
+
flags: "flags";
|
|
61
|
+
food: "food";
|
|
62
|
+
nature: "nature";
|
|
63
|
+
objects: "objects";
|
|
64
|
+
people: "people";
|
|
65
|
+
regional: "regional";
|
|
66
|
+
travel: "travel";
|
|
67
|
+
}>;
|
|
68
|
+
emojis: z.ZodArray<z.ZodObject<{
|
|
69
|
+
character: z.ZodString;
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
keywords: z.ZodRecord<z.ZodEnum<{
|
|
72
|
+
de: "de";
|
|
73
|
+
en: "en";
|
|
74
|
+
es: "es";
|
|
75
|
+
fr: "fr";
|
|
76
|
+
it: "it";
|
|
77
|
+
ja: "ja";
|
|
78
|
+
ko: "ko";
|
|
79
|
+
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
declare const emojiCategories: ("symbol" | "activity" | "diversity" | "flags" | "food" | "nature" | "objects" | "people" | "regional" | "travel")[];
|
|
83
|
+
type Emoji = z.infer<typeof EmojiSchema>;
|
|
84
|
+
type EmojiCategory = z.infer<typeof EmojiCategorySchema>;
|
|
85
|
+
type EmojiGroup = z.infer<typeof EmojiGroupSchema>;
|
|
86
|
+
type EmojiGroupSeed = z.infer<typeof EmojiGroupSeedSchema>;
|
|
18
87
|
|
|
19
|
-
|
|
88
|
+
declare const EnvironmentSchema: z.ZodEnum<{
|
|
89
|
+
development: "development";
|
|
90
|
+
production: "production";
|
|
91
|
+
test: "test";
|
|
92
|
+
}>;
|
|
93
|
+
declare const LocaleSchema: z.ZodEnum<{
|
|
94
|
+
de: "de";
|
|
95
|
+
en: "en";
|
|
96
|
+
es: "es";
|
|
97
|
+
fr: "fr";
|
|
98
|
+
it: "it";
|
|
99
|
+
ja: "ja";
|
|
100
|
+
ko: "ko";
|
|
101
|
+
}>;
|
|
102
|
+
declare const LogLevelSchema: z.ZodEnum<{
|
|
103
|
+
debug: "debug";
|
|
104
|
+
error: "error";
|
|
105
|
+
info: "info";
|
|
106
|
+
warn: "warn";
|
|
107
|
+
}>;
|
|
108
|
+
declare const environments: ("development" | "production" | "test")[];
|
|
109
|
+
declare const locales: ("de" | "en" | "es" | "fr" | "it" | "ja" | "ko")[];
|
|
110
|
+
declare const logLevels: ("debug" | "error" | "info" | "warn")[];
|
|
111
|
+
type Environment = z.infer<typeof EnvironmentSchema>;
|
|
112
|
+
type Locale = z.infer<typeof LocaleSchema>;
|
|
113
|
+
type LogLevel = z.infer<typeof LogLevelSchema>;
|
|
20
114
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
declare const emojis: {
|
|
24
|
-
category: EmojiCategory;
|
|
25
|
-
emojis: Emoji[];
|
|
26
|
-
}[];
|
|
27
|
-
|
|
28
|
-
declare const environments: Environment[];
|
|
29
|
-
declare const logLevels: LogLevel[];
|
|
115
|
+
declare const emojis: EmojiGroupSeed[];
|
|
30
116
|
|
|
31
117
|
type Assert<T extends true> = T
|
|
32
118
|
|
|
@@ -36,5 +122,5 @@ type IsEqual<A, B>
|
|
|
36
122
|
? true
|
|
37
123
|
: false
|
|
38
124
|
|
|
39
|
-
export { emojis, environments, logLevels };
|
|
40
|
-
export type { Assert, Emoji, EmojiCategory, Environment, IsEqual, LogLevel };
|
|
125
|
+
export { EmojiCategorySchema, EmojiGroupSchema, EmojiGroupSeedSchema, EmojiSchema, EnvironmentSchema, LocaleSchema, LogLevelSchema, emojiCategories, emojis, environments, locales, logLevels };
|
|
126
|
+
export type { Assert, Emoji, EmojiCategory, EmojiGroup, EmojiGroupSeed, Environment, IsEqual, Locale, LogLevel };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
character: string
|
|
3
|
-
id: string
|
|
4
|
-
keywords: Record<Locale, [string, ...string[]]>
|
|
5
|
-
}
|
|
1
|
+
import * as z from 'zod';
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
declare const EmojiCategorySchema: z.ZodEnum<{
|
|
4
|
+
symbol: "symbol";
|
|
5
|
+
activity: "activity";
|
|
6
|
+
diversity: "diversity";
|
|
7
|
+
flags: "flags";
|
|
8
|
+
food: "food";
|
|
9
|
+
nature: "nature";
|
|
10
|
+
objects: "objects";
|
|
11
|
+
people: "people";
|
|
12
|
+
regional: "regional";
|
|
13
|
+
travel: "travel";
|
|
14
|
+
}>;
|
|
15
|
+
declare const EmojiSchema: z.ZodObject<{
|
|
16
|
+
character: z.ZodString;
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
keywords: z.ZodRecord<z.ZodEnum<{
|
|
19
|
+
de: "de";
|
|
20
|
+
en: "en";
|
|
21
|
+
es: "es";
|
|
22
|
+
fr: "fr";
|
|
23
|
+
it: "it";
|
|
24
|
+
ja: "ja";
|
|
25
|
+
ko: "ko";
|
|
26
|
+
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const EmojiGroupSchema: z.ZodObject<{
|
|
29
|
+
category: z.ZodEnum<{
|
|
30
|
+
symbol: "symbol";
|
|
31
|
+
activity: "activity";
|
|
32
|
+
diversity: "diversity";
|
|
33
|
+
flags: "flags";
|
|
34
|
+
food: "food";
|
|
35
|
+
nature: "nature";
|
|
36
|
+
objects: "objects";
|
|
37
|
+
people: "people";
|
|
38
|
+
regional: "regional";
|
|
39
|
+
travel: "travel";
|
|
40
|
+
}>;
|
|
41
|
+
emojis: z.ZodArray<z.ZodObject<{
|
|
42
|
+
character: z.ZodString;
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
keywords: z.ZodRecord<z.ZodEnum<{
|
|
45
|
+
de: "de";
|
|
46
|
+
en: "en";
|
|
47
|
+
es: "es";
|
|
48
|
+
fr: "fr";
|
|
49
|
+
it: "it";
|
|
50
|
+
ja: "ja";
|
|
51
|
+
ko: "ko";
|
|
52
|
+
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
declare const EmojiGroupSeedSchema: z.ZodObject<{
|
|
56
|
+
category: z.ZodEnum<{
|
|
57
|
+
symbol: "symbol";
|
|
58
|
+
activity: "activity";
|
|
59
|
+
diversity: "diversity";
|
|
60
|
+
flags: "flags";
|
|
61
|
+
food: "food";
|
|
62
|
+
nature: "nature";
|
|
63
|
+
objects: "objects";
|
|
64
|
+
people: "people";
|
|
65
|
+
regional: "regional";
|
|
66
|
+
travel: "travel";
|
|
67
|
+
}>;
|
|
68
|
+
emojis: z.ZodArray<z.ZodObject<{
|
|
69
|
+
character: z.ZodString;
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
keywords: z.ZodRecord<z.ZodEnum<{
|
|
72
|
+
de: "de";
|
|
73
|
+
en: "en";
|
|
74
|
+
es: "es";
|
|
75
|
+
fr: "fr";
|
|
76
|
+
it: "it";
|
|
77
|
+
ja: "ja";
|
|
78
|
+
ko: "ko";
|
|
79
|
+
}>, z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
declare const emojiCategories: ("symbol" | "activity" | "diversity" | "flags" | "food" | "nature" | "objects" | "people" | "regional" | "travel")[];
|
|
83
|
+
type Emoji = z.infer<typeof EmojiSchema>;
|
|
84
|
+
type EmojiCategory = z.infer<typeof EmojiCategorySchema>;
|
|
85
|
+
type EmojiGroup = z.infer<typeof EmojiGroupSchema>;
|
|
86
|
+
type EmojiGroupSeed = z.infer<typeof EmojiGroupSeedSchema>;
|
|
18
87
|
|
|
19
|
-
|
|
88
|
+
declare const EnvironmentSchema: z.ZodEnum<{
|
|
89
|
+
development: "development";
|
|
90
|
+
production: "production";
|
|
91
|
+
test: "test";
|
|
92
|
+
}>;
|
|
93
|
+
declare const LocaleSchema: z.ZodEnum<{
|
|
94
|
+
de: "de";
|
|
95
|
+
en: "en";
|
|
96
|
+
es: "es";
|
|
97
|
+
fr: "fr";
|
|
98
|
+
it: "it";
|
|
99
|
+
ja: "ja";
|
|
100
|
+
ko: "ko";
|
|
101
|
+
}>;
|
|
102
|
+
declare const LogLevelSchema: z.ZodEnum<{
|
|
103
|
+
debug: "debug";
|
|
104
|
+
error: "error";
|
|
105
|
+
info: "info";
|
|
106
|
+
warn: "warn";
|
|
107
|
+
}>;
|
|
108
|
+
declare const environments: ("development" | "production" | "test")[];
|
|
109
|
+
declare const locales: ("de" | "en" | "es" | "fr" | "it" | "ja" | "ko")[];
|
|
110
|
+
declare const logLevels: ("debug" | "error" | "info" | "warn")[];
|
|
111
|
+
type Environment = z.infer<typeof EnvironmentSchema>;
|
|
112
|
+
type Locale = z.infer<typeof LocaleSchema>;
|
|
113
|
+
type LogLevel = z.infer<typeof LogLevelSchema>;
|
|
20
114
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
declare const emojis: {
|
|
24
|
-
category: EmojiCategory;
|
|
25
|
-
emojis: Emoji[];
|
|
26
|
-
}[];
|
|
27
|
-
|
|
28
|
-
declare const environments: Environment[];
|
|
29
|
-
declare const logLevels: LogLevel[];
|
|
115
|
+
declare const emojis: EmojiGroupSeed[];
|
|
30
116
|
|
|
31
117
|
type Assert<T extends true> = T
|
|
32
118
|
|
|
@@ -36,5 +122,5 @@ type IsEqual<A, B>
|
|
|
36
122
|
? true
|
|
37
123
|
: false
|
|
38
124
|
|
|
39
|
-
export { emojis, environments, logLevels };
|
|
40
|
-
export type { Assert, Emoji, EmojiCategory, Environment, IsEqual, LogLevel };
|
|
125
|
+
export { EmojiCategorySchema, EmojiGroupSchema, EmojiGroupSeedSchema, EmojiSchema, EnvironmentSchema, LocaleSchema, LogLevelSchema, emojiCategories, emojis, environments, locales, logLevels };
|
|
126
|
+
export type { Assert, Emoji, EmojiCategory, EmojiGroup, EmojiGroupSeed, Environment, IsEqual, Locale, LogLevel };
|