@saasmakers/shared 0.1.17 → 0.2.0

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