@c15t/cli 0.0.1-rc.13 → 0.0.1-rc.15

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.
@@ -0,0 +1,4 @@
1
+ import { Command } from 'commander';
2
+ export declare function generateAction(opts: unknown): Promise<void>;
3
+ export declare const generate: Command;
4
+ //# sourceMappingURL=generate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,wBAAsB,cAAc,CAAC,IAAI,EAAE,OAAO,iBAmHjD;AAED,eAAO,MAAM,QAAQ,SAYG,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Command } from 'commander';
2
+ export declare function migrateAction(opts: unknown): Promise<void>;
3
+ export declare const migrate: Command;
4
+ //# sourceMappingURL=migrate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../src/commands/migrate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAsB,aAAa,CAAC,IAAI,EAAE,OAAO,iBAgGhD;AAED,eAAO,MAAM,OAAO,SAeG,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare const generateSecret: Command;
3
+ //# sourceMappingURL=secret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret.d.ts","sourceRoot":"","sources":["../../src/commands/secret.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,cAAc,SAIzB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SchemaGenerator } from './types';
2
+ export declare function convertToSnakeCase(str: string): string;
3
+ export declare const generateDrizzleSchema: SchemaGenerator;
4
+ //# sourceMappingURL=drizzle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drizzle.d.ts","sourceRoot":"","sources":["../../src/generators/drizzle.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAO/C,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,UAM7C;AAED,eAAO,MAAM,qBAAqB,EAAE,eA6KnC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { C15TOptions } from '@c15t/backend';
2
+ import type { Adapter } from '@c15t/backend/pkgs/db-adapters';
3
+ export declare const adapters: {
4
+ prisma: import("./types").SchemaGenerator;
5
+ drizzle: import("./types").SchemaGenerator;
6
+ kysely: import("./types").SchemaGenerator;
7
+ };
8
+ export declare const getGenerator: (opts: {
9
+ adapter: Adapter;
10
+ file?: string;
11
+ options: C15TOptions;
12
+ }) => Promise<{
13
+ code?: string;
14
+ fileName: string;
15
+ overwrite?: boolean;
16
+ append?: boolean;
17
+ }>;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAO9D,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,MAAM;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,WAAW,CAAC;CACrB;;;;;EAWA,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { SchemaGenerator } from './types';
2
+ /**
3
+ * Generates SQL migration files for Kysely
4
+ *
5
+ * @param options - The configuration options
6
+ * @param file - Optional output file path
7
+ * @param adapter - Database adapter
8
+ * @returns Object containing formatted SQL code and filename
9
+ */
10
+ export declare const generateMigrations: SchemaGenerator;
11
+ //# sourceMappingURL=kysely.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kysely.d.ts","sourceRoot":"","sources":["../../src/generators/kysely.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAoN/C;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,EAAE,eAgDhC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SchemaGenerator } from './types';
2
+ export declare const generatePrismaSchema: SchemaGenerator;
3
+ //# sourceMappingURL=prisma.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../src/generators/prisma.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAO/C,eAAO,MAAM,oBAAoB,EAAE,eAuNlC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { C15TOptions } from '@c15t/backend';
2
+ import type { Adapter } from '@c15t/backend/pkgs/db-adapters';
3
+ export type SchemaGenerator = (opts: {
4
+ file?: string;
5
+ adapter: Adapter;
6
+ options: C15TOptions;
7
+ }) => Promise<{
8
+ code?: string;
9
+ fileName: string;
10
+ overwrite?: boolean;
11
+ append?: boolean;
12
+ }>;
13
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/generators/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,WAAW,CAAC;CACrB,KAAK,OAAO,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import 'dotenv/config';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAKA,OAAO,eAAe,CAAC"}