@better-t-stack/types 3.7.3-canary.98ba1e7a → 3.8.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.mts +33 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/json-schema.d.mts +48 -0
- package/dist/json-schema.d.mts.map +1 -0
- package/dist/json-schema.mjs +92 -0
- package/dist/json-schema.mjs.map +1 -0
- package/dist/schemas-B-xBVuqf.d.mts +826 -0
- package/dist/schemas-B-xBVuqf.d.mts.map +1 -0
- package/dist/schemas-BiAOzwf_.mjs +225 -0
- package/dist/schemas-BiAOzwf_.mjs.map +1 -0
- package/dist/schemas.d.mts +2 -0
- package/dist/schemas.mjs +3 -0
- package/package.json +14 -9
- package/src/index.ts +0 -73
- package/src/json-schema.ts +0 -130
- package/src/schemas.ts +0 -216
- package/src/types.ts +0 -90
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { A as PaymentsSchema, B as WebDeploySchema, C as FrontendSchema, D as PACKAGE_MANAGER_VALUES, E as ORM_VALUES, F as SERVER_DEPLOY_VALUES, I as ServerDeploySchema, L as TEMPLATE_VALUES, M as ProjectNameSchema, N as RUNTIME_VALUES, O as PAYMENTS_VALUES, P as RuntimeSchema, R as TemplateSchema, S as FRONTEND_VALUES, T as ORMSchema, _ as DatabaseSchema, a as AddInputSchema, b as EXAMPLES_VALUES, c as BACKEND_VALUES, d as BetterTStackConfigSchema, f as CLIInputSchema, g as DIRECTORY_CONFLICT_VALUES, h as DATABASE_VALUES, i as AUTH_VALUES, j as ProjectConfigSchema, k as PackageManagerSchema, l as BackendSchema, m as DATABASE_SETUP_VALUES, n as APISchema, o as AddonsSchema, p as CreateInputSchema, r as API_VALUES, s as AuthSchema, t as ADDONS_VALUES, u as BetterTStackConfigFileSchema, v as DatabaseSetupSchema, w as InitResultSchema, x as ExamplesSchema, y as DirectoryConflictSchema, z as WEB_DEPLOY_VALUES } from "./schemas-B-xBVuqf.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/types.d.ts
|
|
5
|
+
type Database = z.infer<typeof DatabaseSchema>;
|
|
6
|
+
type ORM = z.infer<typeof ORMSchema>;
|
|
7
|
+
type Backend = z.infer<typeof BackendSchema>;
|
|
8
|
+
type Runtime = z.infer<typeof RuntimeSchema>;
|
|
9
|
+
type Frontend = z.infer<typeof FrontendSchema>;
|
|
10
|
+
type Addons = z.infer<typeof AddonsSchema>;
|
|
11
|
+
type Examples = z.infer<typeof ExamplesSchema>;
|
|
12
|
+
type PackageManager = z.infer<typeof PackageManagerSchema>;
|
|
13
|
+
type DatabaseSetup = z.infer<typeof DatabaseSetupSchema>;
|
|
14
|
+
type API = z.infer<typeof APISchema>;
|
|
15
|
+
type Auth = z.infer<typeof AuthSchema>;
|
|
16
|
+
type Payments = z.infer<typeof PaymentsSchema>;
|
|
17
|
+
type WebDeploy = z.infer<typeof WebDeploySchema>;
|
|
18
|
+
type ServerDeploy = z.infer<typeof ServerDeploySchema>;
|
|
19
|
+
type DirectoryConflict = z.infer<typeof DirectoryConflictSchema>;
|
|
20
|
+
type Template = z.infer<typeof TemplateSchema>;
|
|
21
|
+
type ProjectName = z.infer<typeof ProjectNameSchema>;
|
|
22
|
+
type CreateInput = z.infer<typeof CreateInputSchema>;
|
|
23
|
+
type AddInput = z.infer<typeof AddInputSchema>;
|
|
24
|
+
type CLIInput = z.infer<typeof CLIInputSchema>;
|
|
25
|
+
type ProjectConfig = z.infer<typeof ProjectConfigSchema>;
|
|
26
|
+
type BetterTStackConfig = z.infer<typeof BetterTStackConfigSchema>;
|
|
27
|
+
type InitResult = z.infer<typeof InitResultSchema>;
|
|
28
|
+
type WebFrontend = Extract<Frontend, "tanstack-router" | "react-router" | "tanstack-start" | "next" | "nuxt" | "svelte" | "solid" | "none">;
|
|
29
|
+
type NativeFrontend = Extract<Frontend, "native-bare" | "native-uniwind" | "native-unistyles" | "none">;
|
|
30
|
+
type TechCategory = "api" | "webFrontend" | "nativeFrontend" | "runtime" | "backend" | "database" | "orm" | "dbSetup" | "webDeploy" | "serverDeploy" | "auth" | "payments" | "packageManager" | "addons" | "examples" | "git" | "install";
|
|
31
|
+
//#endregion
|
|
32
|
+
export { ADDONS_VALUES, type API, APISchema, API_VALUES, AUTH_VALUES, type AddInput, AddInputSchema, type Addons, AddonsSchema, type Auth, AuthSchema, BACKEND_VALUES, type Backend, BackendSchema, type BetterTStackConfig, BetterTStackConfigFileSchema, BetterTStackConfigSchema, type CLIInput, CLIInputSchema, type CreateInput, CreateInputSchema, DATABASE_SETUP_VALUES, DATABASE_VALUES, DIRECTORY_CONFLICT_VALUES, type Database, DatabaseSchema, type DatabaseSetup, DatabaseSetupSchema, type DirectoryConflict, DirectoryConflictSchema, EXAMPLES_VALUES, type Examples, ExamplesSchema, FRONTEND_VALUES, type Frontend, FrontendSchema, type InitResult, InitResultSchema, type NativeFrontend, type ORM, ORMSchema, ORM_VALUES, PACKAGE_MANAGER_VALUES, PAYMENTS_VALUES, type PackageManager, PackageManagerSchema, type Payments, PaymentsSchema, type ProjectConfig, ProjectConfigSchema, type ProjectName, ProjectNameSchema, RUNTIME_VALUES, type Runtime, RuntimeSchema, SERVER_DEPLOY_VALUES, type ServerDeploy, ServerDeploySchema, TEMPLATE_VALUES, type TechCategory, type Template, TemplateSchema, WEB_DEPLOY_VALUES, type WebDeploy, WebDeploySchema, type WebFrontend };
|
|
33
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;KA4BY,QAAA,GAAW,CAAA,CAAE,aAAa;KAC1B,GAAA,GAAM,CAAA,CAAE,aAAa;AADrB,KAEA,OAAA,GAAU,CAAA,CAAE,KAFc,CAAA,OAED,aAFZ,CAAK;AAClB,KAEA,OAAA,GAAU,CAA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AFG,CAAA,OAEU,wBAFlB,CAAA;AAClB,KAEA,UAAA,GAAa,CAAA,CAAE,KAFgB,CAAA,OAEH,gBAFV,CAAA;AAClB,KAIA,WAAA,GAAc,OAJI,CAK5B,QAL8C,EAAA,iBAAA,GAAf,cAAO,GAAA,gBAAA,GAAA,MAAA,GAAA,MAAA,GAAA,QAAA,GAAA,OAAA,GAAA,MAAA,CAAA;AAC5B,KAeA,cAAA,GAAiB,OAfW,CAgBtC,QAhBsC,EAAf,aAAO,GAAA,gBAAA,GAAA,kBAAA,GAAA,MAAA,CAAA;AAGpB,KAkBA,YAAA,GAlBW,KACrB,GAAA,aAD+B,GAAA,gBAAA,GAAA,SAAA,GAAA,SAAA,GAAA,UAAA,GAAA,KAAA,GAAA,SAAA,GAAA,WAAA,GAAA,cAAA,GAAA,MAAA,GAAA,UAAA,GAAA,gBAAA,GAAA,QAAA,GAAA,UAAA,GAAA,KAAA,GAAA,SAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { A as PaymentsSchema, B as WebDeploySchema, C as FrontendSchema, D as PACKAGE_MANAGER_VALUES, E as ORM_VALUES, F as SERVER_DEPLOY_VALUES, I as ServerDeploySchema, L as TEMPLATE_VALUES, M as ProjectNameSchema, N as RUNTIME_VALUES, O as PAYMENTS_VALUES, P as RuntimeSchema, R as TemplateSchema, S as FRONTEND_VALUES, T as ORMSchema, _ as DatabaseSchema, a as AddInputSchema, b as EXAMPLES_VALUES, c as BACKEND_VALUES, d as BetterTStackConfigSchema, f as CLIInputSchema, g as DIRECTORY_CONFLICT_VALUES, h as DATABASE_VALUES, i as AUTH_VALUES, j as ProjectConfigSchema, k as PackageManagerSchema, l as BackendSchema, m as DATABASE_SETUP_VALUES, n as APISchema, o as AddonsSchema, p as CreateInputSchema, r as API_VALUES, s as AuthSchema, t as ADDONS_VALUES, u as BetterTStackConfigFileSchema, v as DatabaseSetupSchema, w as InitResultSchema, x as ExamplesSchema, y as DirectoryConflictSchema, z as WEB_DEPLOY_VALUES } from "./schemas-BiAOzwf_.mjs";
|
|
2
|
+
|
|
3
|
+
export { ADDONS_VALUES, APISchema, API_VALUES, AUTH_VALUES, AddInputSchema, AddonsSchema, AuthSchema, BACKEND_VALUES, BackendSchema, BetterTStackConfigFileSchema, BetterTStackConfigSchema, CLIInputSchema, CreateInputSchema, DATABASE_SETUP_VALUES, DATABASE_VALUES, DIRECTORY_CONFLICT_VALUES, DatabaseSchema, DatabaseSetupSchema, DirectoryConflictSchema, EXAMPLES_VALUES, ExamplesSchema, FRONTEND_VALUES, FrontendSchema, InitResultSchema, ORMSchema, ORM_VALUES, PACKAGE_MANAGER_VALUES, PAYMENTS_VALUES, PackageManagerSchema, PaymentsSchema, ProjectConfigSchema, ProjectNameSchema, RUNTIME_VALUES, RuntimeSchema, SERVER_DEPLOY_VALUES, ServerDeploySchema, TEMPLATE_VALUES, TemplateSchema, WEB_DEPLOY_VALUES, WebDeploySchema };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/json-schema.d.ts
|
|
4
|
+
declare function getDatabaseJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
5
|
+
declare function getORMJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
6
|
+
declare function getBackendJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
7
|
+
declare function getRuntimeJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
8
|
+
declare function getFrontendJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
9
|
+
declare function getAddonsJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
10
|
+
declare function getExamplesJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
11
|
+
declare function getPackageManagerJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
12
|
+
declare function getDatabaseSetupJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
13
|
+
declare function getAPIJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
14
|
+
declare function getAuthJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
15
|
+
declare function getPaymentsJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
16
|
+
declare function getWebDeployJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
17
|
+
declare function getServerDeployJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
18
|
+
declare function getDirectoryConflictJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
19
|
+
declare function getTemplateJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
20
|
+
declare function getCreateInputJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
21
|
+
declare function getProjectConfigJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
22
|
+
declare function getBetterTStackConfigJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
23
|
+
declare function getInitResultJsonSchema(): z.core.JSONSchema.JSONSchema;
|
|
24
|
+
declare function getAllJsonSchemas(): {
|
|
25
|
+
database: z.core.JSONSchema.JSONSchema;
|
|
26
|
+
orm: z.core.JSONSchema.JSONSchema;
|
|
27
|
+
backend: z.core.JSONSchema.JSONSchema;
|
|
28
|
+
runtime: z.core.JSONSchema.JSONSchema;
|
|
29
|
+
frontend: z.core.JSONSchema.JSONSchema;
|
|
30
|
+
addons: z.core.JSONSchema.JSONSchema;
|
|
31
|
+
examples: z.core.JSONSchema.JSONSchema;
|
|
32
|
+
packageManager: z.core.JSONSchema.JSONSchema;
|
|
33
|
+
databaseSetup: z.core.JSONSchema.JSONSchema;
|
|
34
|
+
api: z.core.JSONSchema.JSONSchema;
|
|
35
|
+
auth: z.core.JSONSchema.JSONSchema;
|
|
36
|
+
payments: z.core.JSONSchema.JSONSchema;
|
|
37
|
+
webDeploy: z.core.JSONSchema.JSONSchema;
|
|
38
|
+
serverDeploy: z.core.JSONSchema.JSONSchema;
|
|
39
|
+
directoryConflict: z.core.JSONSchema.JSONSchema;
|
|
40
|
+
template: z.core.JSONSchema.JSONSchema;
|
|
41
|
+
createInput: z.core.JSONSchema.JSONSchema;
|
|
42
|
+
projectConfig: z.core.JSONSchema.JSONSchema;
|
|
43
|
+
betterTStackConfig: z.core.JSONSchema.JSONSchema;
|
|
44
|
+
initResult: z.core.JSONSchema.JSONSchema;
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { getAPIJsonSchema, getAddonsJsonSchema, getAllJsonSchemas, getAuthJsonSchema, getBackendJsonSchema, getBetterTStackConfigJsonSchema, getCreateInputJsonSchema, getDatabaseJsonSchema, getDatabaseSetupJsonSchema, getDirectoryConflictJsonSchema, getExamplesJsonSchema, getFrontendJsonSchema, getInitResultJsonSchema, getORMJsonSchema, getPackageManagerJsonSchema, getPaymentsJsonSchema, getProjectConfigJsonSchema, getRuntimeJsonSchema, getServerDeployJsonSchema, getTemplateJsonSchema, getWebDeployJsonSchema };
|
|
48
|
+
//# sourceMappingURL=json-schema.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-schema.d.mts","names":[],"sources":["../src/json-schema.ts"],"sourcesContent":[],"mappings":";;;iBAyBgB,qBAAA,CAAA,GAAqB,CAAA,CAAA,IAAA,CAAA,UAAA,CAAA;iBAIrB,gBAAA,CAAA,GAAgB,CAAA,CAAA,IAAA,CAAA,UAAA,CAAA;AAJhB,iBAQA,oBAAA,CAAA,CARqB,EAQD,CAAA,CAAA,IAAA,CAAA,UAAA,CAAA,UARC;AAIrB,iBAQA,oBAAA,CAAA,CARgB,EAQI,CAAA,CAAA,IAAA,CAAA,UAAA,CAAA,UARJ;AAIhB,iBAQA,qBAAA,CAAA,CARoB,EAQC,CAAA,CAAA,IAAA,CAAA,UAAA,CAAA,UARD;AAIpB,iBAQA,mBAAA,CAAA,CARoB,EAQD,CAAA,CAAA,IAAA,CAAA,UAAA,CAAA,UARC;AAIpB,iBAQA,qBAAA,CAAA,CARqB,EAQA,CAAA,CAAA,IAAA,CAAA,UAAA,CAAA,UARA;AAIrB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untimeSchema, R as TemplateSchema, T as ORMSchema, _ as DatabaseSchema, d as BetterTStackConfigSchema, j as ProjectConfigSchema, k as PackageManagerSchema, l as BackendSchema, n as APISchema, o as AddonsSchema, p as CreateInputSchema, s as AuthSchema, v as DatabaseSetupSchema, w as InitResultSchema, x as ExamplesSchema, y as DirectoryConflictSchema } from "./schemas-BiAOzwf_.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/json-schema.ts
|
|
5
|
+
function getDatabaseJsonSchema() {
|
|
6
|
+
return z.toJSONSchema(DatabaseSchema);
|
|
7
|
+
}
|
|
8
|
+
function getORMJsonSchema() {
|
|
9
|
+
return z.toJSONSchema(ORMSchema);
|
|
10
|
+
}
|
|
11
|
+
function getBackendJsonSchema() {
|
|
12
|
+
return z.toJSONSchema(BackendSchema);
|
|
13
|
+
}
|
|
14
|
+
function getRuntimeJsonSchema() {
|
|
15
|
+
return z.toJSONSchema(RuntimeSchema);
|
|
16
|
+
}
|
|
17
|
+
function getFrontendJsonSchema() {
|
|
18
|
+
return z.toJSONSchema(FrontendSchema);
|
|
19
|
+
}
|
|
20
|
+
function getAddonsJsonSchema() {
|
|
21
|
+
return z.toJSONSchema(AddonsSchema);
|
|
22
|
+
}
|
|
23
|
+
function getExamplesJsonSchema() {
|
|
24
|
+
return z.toJSONSchema(ExamplesSchema);
|
|
25
|
+
}
|
|
26
|
+
function getPackageManagerJsonSchema() {
|
|
27
|
+
return z.toJSONSchema(PackageManagerSchema);
|
|
28
|
+
}
|
|
29
|
+
function getDatabaseSetupJsonSchema() {
|
|
30
|
+
return z.toJSONSchema(DatabaseSetupSchema);
|
|
31
|
+
}
|
|
32
|
+
function getAPIJsonSchema() {
|
|
33
|
+
return z.toJSONSchema(APISchema);
|
|
34
|
+
}
|
|
35
|
+
function getAuthJsonSchema() {
|
|
36
|
+
return z.toJSONSchema(AuthSchema);
|
|
37
|
+
}
|
|
38
|
+
function getPaymentsJsonSchema() {
|
|
39
|
+
return z.toJSONSchema(PaymentsSchema);
|
|
40
|
+
}
|
|
41
|
+
function getWebDeployJsonSchema() {
|
|
42
|
+
return z.toJSONSchema(WebDeploySchema);
|
|
43
|
+
}
|
|
44
|
+
function getServerDeployJsonSchema() {
|
|
45
|
+
return z.toJSONSchema(ServerDeploySchema);
|
|
46
|
+
}
|
|
47
|
+
function getDirectoryConflictJsonSchema() {
|
|
48
|
+
return z.toJSONSchema(DirectoryConflictSchema);
|
|
49
|
+
}
|
|
50
|
+
function getTemplateJsonSchema() {
|
|
51
|
+
return z.toJSONSchema(TemplateSchema);
|
|
52
|
+
}
|
|
53
|
+
function getCreateInputJsonSchema() {
|
|
54
|
+
return z.toJSONSchema(CreateInputSchema);
|
|
55
|
+
}
|
|
56
|
+
function getProjectConfigJsonSchema() {
|
|
57
|
+
return z.toJSONSchema(ProjectConfigSchema);
|
|
58
|
+
}
|
|
59
|
+
function getBetterTStackConfigJsonSchema() {
|
|
60
|
+
return z.toJSONSchema(BetterTStackConfigSchema);
|
|
61
|
+
}
|
|
62
|
+
function getInitResultJsonSchema() {
|
|
63
|
+
return z.toJSONSchema(InitResultSchema);
|
|
64
|
+
}
|
|
65
|
+
function getAllJsonSchemas() {
|
|
66
|
+
return {
|
|
67
|
+
database: getDatabaseJsonSchema(),
|
|
68
|
+
orm: getORMJsonSchema(),
|
|
69
|
+
backend: getBackendJsonSchema(),
|
|
70
|
+
runtime: getRuntimeJsonSchema(),
|
|
71
|
+
frontend: getFrontendJsonSchema(),
|
|
72
|
+
addons: getAddonsJsonSchema(),
|
|
73
|
+
examples: getExamplesJsonSchema(),
|
|
74
|
+
packageManager: getPackageManagerJsonSchema(),
|
|
75
|
+
databaseSetup: getDatabaseSetupJsonSchema(),
|
|
76
|
+
api: getAPIJsonSchema(),
|
|
77
|
+
auth: getAuthJsonSchema(),
|
|
78
|
+
payments: getPaymentsJsonSchema(),
|
|
79
|
+
webDeploy: getWebDeployJsonSchema(),
|
|
80
|
+
serverDeploy: getServerDeployJsonSchema(),
|
|
81
|
+
directoryConflict: getDirectoryConflictJsonSchema(),
|
|
82
|
+
template: getTemplateJsonSchema(),
|
|
83
|
+
createInput: getCreateInputJsonSchema(),
|
|
84
|
+
projectConfig: getProjectConfigJsonSchema(),
|
|
85
|
+
betterTStackConfig: getBetterTStackConfigJsonSchema(),
|
|
86
|
+
initResult: getInitResultJsonSchema()
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
//#endregion
|
|
91
|
+
export { getAPIJsonSchema, getAddonsJsonSchema, getAllJsonSchemas, getAuthJsonSchema, getBackendJsonSchema, getBetterTStackConfigJsonSchema, getCreateInputJsonSchema, getDatabaseJsonSchema, getDatabaseSetupJsonSchema, getDirectoryConflictJsonSchema, getExamplesJsonSchema, getFrontendJsonSchema, getInitResultJsonSchema, getORMJsonSchema, getPackageManagerJsonSchema, getPaymentsJsonSchema, getProjectConfigJsonSchema, getRuntimeJsonSchema, getServerDeployJsonSchema, getTemplateJsonSchema, getWebDeployJsonSchema };
|
|
92
|
+
//# sourceMappingURL=json-schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-schema.mjs","names":[],"sources":["../src/json-schema.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n DatabaseSchema,\n ORMSchema,\n BackendSchema,\n RuntimeSchema,\n FrontendSchema,\n AddonsSchema,\n ExamplesSchema,\n PackageManagerSchema,\n DatabaseSetupSchema,\n APISchema,\n AuthSchema,\n PaymentsSchema,\n WebDeploySchema,\n ServerDeploySchema,\n DirectoryConflictSchema,\n TemplateSchema,\n CreateInputSchema,\n ProjectConfigSchema,\n BetterTStackConfigSchema,\n InitResultSchema,\n} from \"./schemas\";\n\n// Generate JSON schemas for each type\nexport function getDatabaseJsonSchema() {\n return z.toJSONSchema(DatabaseSchema);\n}\n\nexport function getORMJsonSchema() {\n return z.toJSONSchema(ORMSchema);\n}\n\nexport function getBackendJsonSchema() {\n return z.toJSONSchema(BackendSchema);\n}\n\nexport function getRuntimeJsonSchema() {\n return z.toJSONSchema(RuntimeSchema);\n}\n\nexport function getFrontendJsonSchema() {\n return z.toJSONSchema(FrontendSchema);\n}\n\nexport function getAddonsJsonSchema() {\n return z.toJSONSchema(AddonsSchema);\n}\n\nexport function getExamplesJsonSchema() {\n return z.toJSONSchema(ExamplesSchema);\n}\n\nexport function getPackageManagerJsonSchema() {\n return z.toJSONSchema(PackageManagerSchema);\n}\n\nexport function getDatabaseSetupJsonSchema() {\n return z.toJSONSchema(DatabaseSetupSchema);\n}\n\nexport function getAPIJsonSchema() {\n return z.toJSONSchema(APISchema);\n}\n\nexport function getAuthJsonSchema() {\n return z.toJSONSchema(AuthSchema);\n}\n\nexport function getPaymentsJsonSchema() {\n return z.toJSONSchema(PaymentsSchema);\n}\n\nexport function getWebDeployJsonSchema() {\n return z.toJSONSchema(WebDeploySchema);\n}\n\nexport function getServerDeployJsonSchema() {\n return z.toJSONSchema(ServerDeploySchema);\n}\n\nexport function getDirectoryConflictJsonSchema() {\n return z.toJSONSchema(DirectoryConflictSchema);\n}\n\nexport function getTemplateJsonSchema() {\n return z.toJSONSchema(TemplateSchema);\n}\n\nexport function getCreateInputJsonSchema() {\n return z.toJSONSchema(CreateInputSchema);\n}\n\nexport function getProjectConfigJsonSchema() {\n return z.toJSONSchema(ProjectConfigSchema);\n}\n\nexport function getBetterTStackConfigJsonSchema() {\n return z.toJSONSchema(BetterTStackConfigSchema);\n}\n\nexport function getInitResultJsonSchema() {\n return z.toJSONSchema(InitResultSchema);\n}\n\n// Get all JSON schemas as a single object\nexport function getAllJsonSchemas() {\n return {\n database: getDatabaseJsonSchema(),\n orm: getORMJsonSchema(),\n backend: getBackendJsonSchema(),\n runtime: getRuntimeJsonSchema(),\n frontend: getFrontendJsonSchema(),\n addons: getAddonsJsonSchema(),\n examples: getExamplesJsonSchema(),\n packageManager: getPackageManagerJsonSchema(),\n databaseSetup: getDatabaseSetupJsonSchema(),\n api: getAPIJsonSchema(),\n auth: getAuthJsonSchema(),\n payments: getPaymentsJsonSchema(),\n webDeploy: getWebDeployJsonSchema(),\n serverDeploy: getServerDeployJsonSchema(),\n directoryConflict: getDirectoryConflictJsonSchema(),\n template: getTemplateJsonSchema(),\n createInput: getCreateInputJsonSchema(),\n projectConfig: getProjectConfigJsonSchema(),\n betterTStackConfig: getBetterTStackConfigJsonSchema(),\n initResult: getInitResultJsonSchema(),\n };\n}\n"],"mappings":";;;;AAyBA,SAAgB,wBAAwB;AACtC,QAAO,EAAE,aAAa,eAAe;;AAGvC,SAAgB,mBAAmB;AACjC,QAAO,EAAE,aAAa,UAAU;;AAGlC,SAAgB,uBAAuB;AACrC,QAAO,EAAE,aAAa,cAAc;;AAGtC,SAAgB,uBAAuB;AACrC,QAAO,EAAE,aAAa,cAAc;;AAGtC,SAAgB,wBAAwB;AACtC,QAAO,EAAE,aAAa,eAAe;;AAGvC,SAAgB,sBAAsB;AACpC,QAAO,EAAE,aAAa,aAAa;;AAGrC,SAAgB,wBAAwB;AACtC,QAAO,EAAE,aAAa,eAAe;;AAGvC,SAAgB,8BAA8B;AAC5C,QAAO,EAAE,aAAa,qBAAqB;;AAG7C,SAAgB,6BAA6B;AAC3C,QAAO,EAAE,aAAa,oBAAoB;;AAG5C,SAAgB,mBAAmB;AACjC,QAAO,EAAE,aAAa,UAAU;;AAGlC,SAAgB,oBAAoB;AAClC,QAAO,EAAE,aAAa,WAAW;;AAGnC,SAAgB,wBAAwB;AACtC,QAAO,EAAE,aAAa,eAAe;;AAGvC,SAAgB,yBAAyB;AACvC,QAAO,EAAE,aAAa,gBAAgB;;AAGxC,SAAgB,4BAA4B;AAC1C,QAAO,EAAE,aAAa,mBAAmB;;AAG3C,SAAgB,iCAAiC;AAC/C,QAAO,EAAE,aAAa,wBAAwB;;AAGhD,SAAgB,wBAAwB;AACtC,QAAO,EAAE,aAAa,eAAe;;AAGvC,SAAgB,2BAA2B;AACzC,QAAO,EAAE,aAAa,kBAAkB;;AAG1C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