kofi-stack-types 2.0.16 → 2.0.17

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > kofi-stack-types@2.0.16 build /Users/theodenanyoh/Documents/Krumalabs/create-kofi-stack-v2/packages/types
2
+ > kofi-stack-types@2.0.17 build /Users/theodenanyoh/Documents/Krumalabs/create-kofi-stack-v2/packages/types
3
3
  > tsup src/index.ts --format esm --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -7,8 +7,8 @@ CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.5.1
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
- ESM dist/index.js 4.02 KB
11
- ESM ⚡️ Build success in 42ms
10
+ ESM dist/index.js 4.16 KB
11
+ ESM ⚡️ Build success in 9ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 574ms
14
- DTS dist/index.d.ts 15.79 KB
13
+ DTS ⚡️ Build success in 504ms
14
+ DTS dist/index.d.ts 16.41 KB
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ declare const ProjectStructureSchema: z.ZodEnum<["standalone", "monorepo"]>;
4
4
  declare const MarketingSiteSchema: z.ZodEnum<["none", "nextjs", "payload"]>;
5
5
  declare const AuthProviderSchema: z.ZodEnum<["github", "google", "discord", "twitter", "apple", "microsoft", "linkedin"]>;
6
6
  declare const AnalyticsProviderSchema: z.ZodEnum<["none", "posthog", "vercel"]>;
7
- declare const UploadsProviderSchema: z.ZodEnum<["none", "uploadthing", "s3", "vercel-blob"]>;
7
+ declare const UploadsProviderSchema: z.ZodEnum<["none", "convex-fs", "r2", "uploadthing", "s3", "vercel-blob"]>;
8
8
  declare const BaseColorSchema: z.ZodEnum<["neutral", "gray", "zinc", "slate", "stone"]>;
9
9
  declare const ThemeColorSchema: z.ZodEnum<["zinc", "slate", "stone", "gray", "neutral", "red", "rose", "orange", "green", "blue", "yellow", "violet"]>;
10
10
  declare const MenuAccentSchema: z.ZodEnum<["none", "muted", "primary"]>;
@@ -54,13 +54,16 @@ declare const AuthConfigSchema: z.ZodObject<{
54
54
  }>;
55
55
  declare const IntegrationsConfigSchema: z.ZodObject<{
56
56
  analytics: z.ZodEnum<["none", "posthog", "vercel"]>;
57
- uploads: z.ZodEnum<["none", "uploadthing", "s3", "vercel-blob"]>;
57
+ uploads: z.ZodEnum<["none", "convex-fs", "r2", "uploadthing", "s3", "vercel-blob"]>;
58
+ payments: z.ZodEnum<["none", "stripe", "polar"]>;
58
59
  }, "strip", z.ZodTypeAny, {
59
60
  analytics: "none" | "posthog" | "vercel";
60
- uploads: "none" | "uploadthing" | "s3" | "vercel-blob";
61
+ uploads: "none" | "convex-fs" | "r2" | "uploadthing" | "s3" | "vercel-blob";
62
+ payments: "none" | "stripe" | "polar";
61
63
  }, {
62
64
  analytics: "none" | "posthog" | "vercel";
63
- uploads: "none" | "uploadthing" | "s3" | "vercel-blob";
65
+ uploads: "none" | "convex-fs" | "r2" | "uploadthing" | "s3" | "vercel-blob";
66
+ payments: "none" | "stripe" | "polar";
64
67
  }>;
65
68
  declare const ProjectConfigSchema: z.ZodObject<{
66
69
  projectName: z.ZodString;
@@ -107,13 +110,16 @@ declare const ProjectConfigSchema: z.ZodObject<{
107
110
  }>;
108
111
  integrations: z.ZodObject<{
109
112
  analytics: z.ZodEnum<["none", "posthog", "vercel"]>;
110
- uploads: z.ZodEnum<["none", "uploadthing", "s3", "vercel-blob"]>;
113
+ uploads: z.ZodEnum<["none", "convex-fs", "r2", "uploadthing", "s3", "vercel-blob"]>;
114
+ payments: z.ZodEnum<["none", "stripe", "polar"]>;
111
115
  }, "strip", z.ZodTypeAny, {
112
116
  analytics: "none" | "posthog" | "vercel";
113
- uploads: "none" | "uploadthing" | "s3" | "vercel-blob";
117
+ uploads: "none" | "convex-fs" | "r2" | "uploadthing" | "s3" | "vercel-blob";
118
+ payments: "none" | "stripe" | "polar";
114
119
  }, {
115
120
  analytics: "none" | "posthog" | "vercel";
116
- uploads: "none" | "uploadthing" | "s3" | "vercel-blob";
121
+ uploads: "none" | "convex-fs" | "r2" | "uploadthing" | "s3" | "vercel-blob";
122
+ payments: "none" | "stripe" | "polar";
117
123
  }>;
118
124
  addons: z.ZodArray<z.ZodEnum<["biome", "husky", "turborepo", "playwright", "vitest", "rate-limiting", "monitoring"]>, "many">;
119
125
  packageManager: z.ZodEnum<["pnpm", "npm", "bun"]>;
@@ -138,7 +144,8 @@ declare const ProjectConfigSchema: z.ZodObject<{
138
144
  };
139
145
  integrations: {
140
146
  analytics: "none" | "posthog" | "vercel";
141
- uploads: "none" | "uploadthing" | "s3" | "vercel-blob";
147
+ uploads: "none" | "convex-fs" | "r2" | "uploadthing" | "s3" | "vercel-blob";
148
+ payments: "none" | "stripe" | "polar";
142
149
  };
143
150
  addons: ("biome" | "husky" | "turborepo" | "playwright" | "vitest" | "rate-limiting" | "monitoring")[];
144
151
  packageManager: "pnpm" | "npm" | "bun";
@@ -163,7 +170,8 @@ declare const ProjectConfigSchema: z.ZodObject<{
163
170
  };
164
171
  integrations: {
165
172
  analytics: "none" | "posthog" | "vercel";
166
- uploads: "none" | "uploadthing" | "s3" | "vercel-blob";
173
+ uploads: "none" | "convex-fs" | "r2" | "uploadthing" | "s3" | "vercel-blob";
174
+ payments: "none" | "stripe" | "polar";
167
175
  };
168
176
  addons: ("biome" | "husky" | "turborepo" | "playwright" | "vitest" | "rate-limiting" | "monitoring")[];
169
177
  packageManager: "pnpm" | "npm" | "bun";
@@ -183,7 +191,7 @@ declare const CLIInputSchema: z.ZodObject<{
183
191
  authProviders: z.ZodOptional<z.ZodArray<z.ZodEnum<["github", "google", "discord", "twitter", "apple", "microsoft", "linkedin"]>, "many">>;
184
192
  organizations: z.ZodOptional<z.ZodBoolean>;
185
193
  analytics: z.ZodOptional<z.ZodEnum<["none", "posthog", "vercel"]>>;
186
- uploads: z.ZodOptional<z.ZodEnum<["none", "uploadthing", "s3", "vercel-blob"]>>;
194
+ uploads: z.ZodOptional<z.ZodEnum<["none", "convex-fs", "r2", "uploadthing", "s3", "vercel-blob"]>>;
187
195
  addons: z.ZodOptional<z.ZodArray<z.ZodEnum<["biome", "husky", "turborepo", "playwright", "vitest", "rate-limiting", "monitoring"]>, "many">>;
188
196
  git: z.ZodOptional<z.ZodBoolean>;
189
197
  packageManager: z.ZodOptional<z.ZodEnum<["pnpm", "npm", "bun"]>>;
@@ -200,7 +208,7 @@ declare const CLIInputSchema: z.ZodObject<{
200
208
  spacingScale?: "default" | "compact" | "comfortable" | undefined;
201
209
  organizations?: boolean | undefined;
202
210
  analytics?: "none" | "posthog" | "vercel" | undefined;
203
- uploads?: "none" | "uploadthing" | "s3" | "vercel-blob" | undefined;
211
+ uploads?: "none" | "convex-fs" | "r2" | "uploadthing" | "s3" | "vercel-blob" | undefined;
204
212
  projectName?: string | undefined;
205
213
  structure?: "standalone" | "monorepo" | undefined;
206
214
  marketingSite?: "none" | "nextjs" | "payload" | undefined;
@@ -221,7 +229,7 @@ declare const CLIInputSchema: z.ZodObject<{
221
229
  spacingScale?: "default" | "compact" | "comfortable" | undefined;
222
230
  organizations?: boolean | undefined;
223
231
  analytics?: "none" | "posthog" | "vercel" | undefined;
224
- uploads?: "none" | "uploadthing" | "s3" | "vercel-blob" | undefined;
232
+ uploads?: "none" | "convex-fs" | "r2" | "uploadthing" | "s3" | "vercel-blob" | undefined;
225
233
  projectName?: string | undefined;
226
234
  structure?: "standalone" | "monorepo" | undefined;
227
235
  marketingSite?: "none" | "nextjs" | "payload" | undefined;
package/dist/index.js CHANGED
@@ -14,10 +14,13 @@ var AuthProviderSchema = z.enum([
14
14
  var AnalyticsProviderSchema = z.enum(["none", "posthog", "vercel"]);
15
15
  var UploadsProviderSchema = z.enum([
16
16
  "none",
17
+ "convex-fs",
18
+ "r2",
17
19
  "uploadthing",
18
20
  "s3",
19
21
  "vercel-blob"
20
22
  ]);
23
+ var PaymentProviderSchema = z.enum(["none", "stripe", "polar"]);
21
24
  var BaseColorSchema = z.enum(["neutral", "gray", "zinc", "slate", "stone"]);
22
25
  var ThemeColorSchema = z.enum([
23
26
  "zinc",
@@ -64,7 +67,8 @@ var AuthConfigSchema = z.object({
64
67
  });
65
68
  var IntegrationsConfigSchema = z.object({
66
69
  analytics: AnalyticsProviderSchema,
67
- uploads: UploadsProviderSchema
70
+ uploads: UploadsProviderSchema,
71
+ payments: PaymentProviderSchema
68
72
  });
69
73
  var ProjectConfigSchema = z.object({
70
74
  // Basic info
@@ -128,7 +132,8 @@ var DEFAULT_CONFIG = {
128
132
  },
129
133
  integrations: {
130
134
  analytics: "none",
131
- uploads: "none"
135
+ uploads: "none",
136
+ payments: "none"
132
137
  },
133
138
  addons: [],
134
139
  packageManager: "pnpm"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kofi-stack-types",
3
- "version": "2.0.16",
3
+ "version": "2.0.17",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -10,11 +10,6 @@
10
10
  "types": "./dist/index.d.ts"
11
11
  }
12
12
  },
13
- "scripts": {
14
- "build": "tsup src/index.ts --format esm --dts",
15
- "dev": "tsup src/index.ts --format esm --dts --watch",
16
- "typecheck": "tsc --noEmit"
17
- },
18
13
  "dependencies": {
19
14
  "zod": "^3.23.0"
20
15
  },
@@ -22,5 +17,10 @@
22
17
  "@types/node": "^20.0.0",
23
18
  "tsup": "^8.0.0",
24
19
  "typescript": "^5.0.0"
20
+ },
21
+ "scripts": {
22
+ "build": "tsup src/index.ts --format esm --dts",
23
+ "dev": "tsup src/index.ts --format esm --dts --watch",
24
+ "typecheck": "tsc --noEmit"
25
25
  }
26
- }
26
+ }
package/src/schemas.ts CHANGED
@@ -20,14 +20,19 @@ export const AuthProviderSchema = z.enum([
20
20
  // Analytics providers
21
21
  export const AnalyticsProviderSchema = z.enum(['none', 'posthog', 'vercel'])
22
22
 
23
- // Upload providers
23
+ // Upload/Storage providers
24
24
  export const UploadsProviderSchema = z.enum([
25
25
  'none',
26
+ 'convex-fs',
27
+ 'r2',
26
28
  'uploadthing',
27
29
  's3',
28
30
  'vercel-blob',
29
31
  ])
30
32
 
33
+ // Payment providers
34
+ export const PaymentProviderSchema = z.enum(['none', 'stripe', 'polar'])
35
+
31
36
 
32
37
  // Base color
33
38
  export const BaseColorSchema = z.enum(['neutral', 'gray', 'zinc', 'slate', 'stone'])
@@ -99,6 +104,7 @@ export const AuthConfigSchema = z.object({
99
104
  export const IntegrationsConfigSchema = z.object({
100
105
  analytics: AnalyticsProviderSchema,
101
106
  uploads: UploadsProviderSchema,
107
+ payments: PaymentProviderSchema,
102
108
  })
103
109
 
104
110
  // Complete project configuration
@@ -174,6 +180,7 @@ export const DEFAULT_CONFIG: z.infer<typeof ProjectConfigSchema> = {
174
180
  integrations: {
175
181
  analytics: 'none',
176
182
  uploads: 'none',
183
+ payments: 'none',
177
184
  },
178
185
  addons: [],
179
186
  packageManager: 'pnpm',
package/src/types.ts CHANGED
@@ -5,6 +5,7 @@ import type {
5
5
  AuthProviderSchema,
6
6
  AnalyticsProviderSchema,
7
7
  UploadsProviderSchema,
8
+ PaymentProviderSchema,
8
9
  BaseColorSchema,
9
10
  ThemeColorSchema,
10
11
  MenuAccentSchema,
@@ -27,6 +28,7 @@ export type MarketingSite = z.infer<typeof MarketingSiteSchema>
27
28
  export type AuthProvider = z.infer<typeof AuthProviderSchema>
28
29
  export type AnalyticsProvider = z.infer<typeof AnalyticsProviderSchema>
29
30
  export type UploadsProvider = z.infer<typeof UploadsProviderSchema>
31
+ export type PaymentProvider = z.infer<typeof PaymentProviderSchema>
30
32
  export type BaseColor = z.infer<typeof BaseColorSchema>
31
33
  export type ThemeColor = z.infer<typeof ThemeColorSchema>
32
34
  export type MenuAccent = z.infer<typeof MenuAccentSchema>