@llmops/core 0.1.1-beta.1 → 0.1.2-beta.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/{bun-sqlite-dialect-Dzur5J1r.cjs → bun-sqlite-dialect-zL8xmYst.cjs} +1 -1
- package/dist/db/index.cjs +3 -2
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.mjs +2 -2
- package/dist/{db-gMDwCuHR.cjs → db-C9-M-kdS.cjs} +37 -3
- package/dist/{db-DN6gkyRp.mjs → db-CGY-vZ3u.mjs} +30 -2
- package/dist/{index-CG30o-6r.d.cts → index-BVOY5y9k.d.mts} +76 -49
- package/dist/{index-Ddhbb3O5.d.mts → index-D8DWyBKi.d.cts} +93 -66
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +132 -132
- package/dist/index.d.mts +309 -309
- package/dist/index.mjs +2 -2
- package/dist/{node-sqlite-dialect-BTbo14Y2.cjs → node-sqlite-dialect-CQlHW438.cjs} +1 -1
- package/package.json +2 -2
package/dist/db/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_db = require('../db-
|
|
1
|
+
const require_db = require('../db-C9-M-kdS.cjs');
|
|
2
2
|
|
|
3
3
|
exports.SCHEMA_METADATA = require_db.SCHEMA_METADATA;
|
|
4
4
|
exports.configVariantsSchema = require_db.configVariantsSchema;
|
|
@@ -18,4 +18,5 @@ exports.targetingRulesSchema = require_db.targetingRulesSchema;
|
|
|
18
18
|
exports.validatePartialTableData = require_db.validatePartialTableData;
|
|
19
19
|
exports.validateTableData = require_db.validateTableData;
|
|
20
20
|
exports.variantVersionsSchema = require_db.variantVersionsSchema;
|
|
21
|
-
exports.variantsSchema = require_db.variantsSchema;
|
|
21
|
+
exports.variantsSchema = require_db.variantsSchema;
|
|
22
|
+
exports.workspaceSettingsSchema = require_db.workspaceSettingsSchema;
|
package/dist/db/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as TargetingRulesTable, B as
|
|
2
|
-
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, Insertable, MigrationOptions, MigrationResult, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, matchType, parsePartialTableData, parseTableData, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema };
|
|
1
|
+
import { A as TargetingRulesTable, B as environmentSecretsSchema, C as EnvironmentSecretsTable, D as Selectable, E as SCHEMA_METADATA, F as VariantsTable, G as variantsSchema, H as schemas, I as WorkspaceSettings, K as workspaceSettingsSchema, L as WorkspaceSettingsTable, M as Variant, N as VariantVersion, O as TableName, P as VariantVersionsTable, R as configVariantsSchema, S as EnvironmentSecret, T as Insertable, U as targetingRulesSchema, V as environmentsSchema, W as variantVersionsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Updateable, k as TargetingRule, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as configsSchema } from "../index-D8DWyBKi.cjs";
|
|
2
|
+
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, Insertable, MigrationOptions, MigrationResult, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, WorkspaceSettings, WorkspaceSettingsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, matchType, parsePartialTableData, parseTableData, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as TargetingRulesTable, B as
|
|
2
|
-
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, Insertable, MigrationOptions, MigrationResult, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, matchType, parsePartialTableData, parseTableData, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema };
|
|
1
|
+
import { A as TargetingRulesTable, B as environmentSecretsSchema, C as EnvironmentSecretsTable, D as Selectable, E as SCHEMA_METADATA, F as VariantsTable, G as variantsSchema, H as schemas, I as WorkspaceSettings, K as workspaceSettingsSchema, L as WorkspaceSettingsTable, M as Variant, N as VariantVersion, O as TableName, P as VariantVersionsTable, R as configVariantsSchema, S as EnvironmentSecret, T as Insertable, U as targetingRulesSchema, V as environmentsSchema, W as variantVersionsSchema, _ as ConfigVariant, a as createDatabaseFromConnection, b as Database, c as MigrationResult, d as runAutoMigrations, f as parsePartialTableData, g as Config, h as validateTableData, i as createDatabase, j as Updateable, k as TargetingRule, l as getMigrations, m as validatePartialTableData, n as DatabaseOptions, o as detectDatabaseType, p as parseTableData, r as DatabaseType, s as MigrationOptions, t as DatabaseConnection, u as matchType, v as ConfigVariantsTable, w as EnvironmentsTable, x as Environment, y as ConfigsTable, z as configsSchema } from "../index-BVOY5y9k.mjs";
|
|
2
|
+
export { Config, ConfigVariant, ConfigVariantsTable, ConfigsTable, Database, DatabaseConnection, DatabaseOptions, DatabaseType, Environment, EnvironmentSecret, EnvironmentSecretsTable, EnvironmentsTable, Insertable, MigrationOptions, MigrationResult, SCHEMA_METADATA, Selectable, TableName, TargetingRule, TargetingRulesTable, Updateable, Variant, VariantVersion, VariantVersionsTable, VariantsTable, WorkspaceSettings, WorkspaceSettingsTable, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, matchType, parsePartialTableData, parseTableData, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
package/dist/db/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as schemas, a as matchType, b as variantsSchema, c as parsePartialTableData, d as validateTableData, f as SCHEMA_METADATA, g as environmentsSchema, h as environmentSecretsSchema, i as getMigrations, l as parseTableData, m as configsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as configVariantsSchema, r as detectDatabaseType, t as createDatabase, u as validatePartialTableData, v as targetingRulesSchema, y as variantVersionsSchema } from "../db-
|
|
1
|
+
import { _ as schemas, a as matchType, b as variantsSchema, c as parsePartialTableData, d as validateTableData, f as SCHEMA_METADATA, g as environmentsSchema, h as environmentSecretsSchema, i as getMigrations, l as parseTableData, m as configsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as configVariantsSchema, r as detectDatabaseType, t as createDatabase, u as validatePartialTableData, v as targetingRulesSchema, x as workspaceSettingsSchema, y as variantVersionsSchema } from "../db-CGY-vZ3u.mjs";
|
|
2
2
|
|
|
3
|
-
export { SCHEMA_METADATA, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, matchType, parsePartialTableData, parseTableData, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema };
|
|
3
|
+
export { SCHEMA_METADATA, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, detectDatabaseType, environmentSecretsSchema, environmentsSchema, getMigrations, matchType, parsePartialTableData, parseTableData, runAutoMigrations, schemas, targetingRulesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
@@ -12427,6 +12427,10 @@ const targetingRulesSchema = object({
|
|
|
12427
12427
|
enabled: boolean$1().default(true),
|
|
12428
12428
|
conditions: record(string$1(), unknown()).default({})
|
|
12429
12429
|
});
|
|
12430
|
+
const workspaceSettingsSchema = object({
|
|
12431
|
+
...baseSchema,
|
|
12432
|
+
name: string$1().nullable().optional()
|
|
12433
|
+
});
|
|
12430
12434
|
/**
|
|
12431
12435
|
* Schema metadata for migrations
|
|
12432
12436
|
* Derived from Zod schemas
|
|
@@ -12662,6 +12666,29 @@ const SCHEMA_METADATA = { tables: {
|
|
|
12662
12666
|
onUpdate: "now()"
|
|
12663
12667
|
}
|
|
12664
12668
|
}
|
|
12669
|
+
},
|
|
12670
|
+
workspace_settings: {
|
|
12671
|
+
order: 8,
|
|
12672
|
+
schema: workspaceSettingsSchema,
|
|
12673
|
+
fields: {
|
|
12674
|
+
id: {
|
|
12675
|
+
type: "uuid",
|
|
12676
|
+
primaryKey: true
|
|
12677
|
+
},
|
|
12678
|
+
name: {
|
|
12679
|
+
type: "text",
|
|
12680
|
+
nullable: true
|
|
12681
|
+
},
|
|
12682
|
+
createdAt: {
|
|
12683
|
+
type: "timestamp",
|
|
12684
|
+
default: "now()"
|
|
12685
|
+
},
|
|
12686
|
+
updatedAt: {
|
|
12687
|
+
type: "timestamp",
|
|
12688
|
+
default: "now()",
|
|
12689
|
+
onUpdate: "now()"
|
|
12690
|
+
}
|
|
12691
|
+
}
|
|
12665
12692
|
}
|
|
12666
12693
|
} };
|
|
12667
12694
|
/**
|
|
@@ -12674,7 +12701,8 @@ const schemas = {
|
|
|
12674
12701
|
environments: environmentsSchema,
|
|
12675
12702
|
environment_secrets: environmentSecretsSchema,
|
|
12676
12703
|
config_variants: configVariantsSchema,
|
|
12677
|
-
targeting_rules: targetingRulesSchema
|
|
12704
|
+
targeting_rules: targetingRulesSchema,
|
|
12705
|
+
workspace_settings: workspaceSettingsSchema
|
|
12678
12706
|
};
|
|
12679
12707
|
|
|
12680
12708
|
//#endregion
|
|
@@ -13042,12 +13070,12 @@ async function createDatabaseFromConnection(rawConnection, options) {
|
|
|
13042
13070
|
case "sqlite":
|
|
13043
13071
|
if ("aggregate" in rawConnection && !("createSession" in rawConnection)) dialect = new kysely.SqliteDialect({ database: rawConnection });
|
|
13044
13072
|
else if ("fileControl" in rawConnection) {
|
|
13045
|
-
const { BunSqliteDialect } = await Promise.resolve().then(() => require("./bun-sqlite-dialect-
|
|
13073
|
+
const { BunSqliteDialect } = await Promise.resolve().then(() => require("./bun-sqlite-dialect-zL8xmYst.cjs"));
|
|
13046
13074
|
dialect = new BunSqliteDialect({ database: rawConnection });
|
|
13047
13075
|
} else if ("createSession" in rawConnection && typeof window === "undefined") try {
|
|
13048
13076
|
const { DatabaseSync } = await import("node:sqlite");
|
|
13049
13077
|
if (rawConnection instanceof DatabaseSync) {
|
|
13050
|
-
const { NodeSqliteDialect } = await Promise.resolve().then(() => require("./node-sqlite-dialect-
|
|
13078
|
+
const { NodeSqliteDialect } = await Promise.resolve().then(() => require("./node-sqlite-dialect-CQlHW438.cjs"));
|
|
13051
13079
|
dialect = new NodeSqliteDialect({ database: rawConnection });
|
|
13052
13080
|
}
|
|
13053
13081
|
} catch {}
|
|
@@ -13263,6 +13291,12 @@ Object.defineProperty(exports, 'variantsSchema', {
|
|
|
13263
13291
|
return variantsSchema;
|
|
13264
13292
|
}
|
|
13265
13293
|
});
|
|
13294
|
+
Object.defineProperty(exports, 'workspaceSettingsSchema', {
|
|
13295
|
+
enumerable: true,
|
|
13296
|
+
get: function () {
|
|
13297
|
+
return workspaceSettingsSchema;
|
|
13298
|
+
}
|
|
13299
|
+
});
|
|
13266
13300
|
Object.defineProperty(exports, 'zod_default', {
|
|
13267
13301
|
enumerable: true,
|
|
13268
13302
|
get: function () {
|
|
@@ -12403,6 +12403,10 @@ const targetingRulesSchema = object({
|
|
|
12403
12403
|
enabled: boolean$1().default(true),
|
|
12404
12404
|
conditions: record(string$1(), unknown()).default({})
|
|
12405
12405
|
});
|
|
12406
|
+
const workspaceSettingsSchema = object({
|
|
12407
|
+
...baseSchema,
|
|
12408
|
+
name: string$1().nullable().optional()
|
|
12409
|
+
});
|
|
12406
12410
|
/**
|
|
12407
12411
|
* Schema metadata for migrations
|
|
12408
12412
|
* Derived from Zod schemas
|
|
@@ -12638,6 +12642,29 @@ const SCHEMA_METADATA = { tables: {
|
|
|
12638
12642
|
onUpdate: "now()"
|
|
12639
12643
|
}
|
|
12640
12644
|
}
|
|
12645
|
+
},
|
|
12646
|
+
workspace_settings: {
|
|
12647
|
+
order: 8,
|
|
12648
|
+
schema: workspaceSettingsSchema,
|
|
12649
|
+
fields: {
|
|
12650
|
+
id: {
|
|
12651
|
+
type: "uuid",
|
|
12652
|
+
primaryKey: true
|
|
12653
|
+
},
|
|
12654
|
+
name: {
|
|
12655
|
+
type: "text",
|
|
12656
|
+
nullable: true
|
|
12657
|
+
},
|
|
12658
|
+
createdAt: {
|
|
12659
|
+
type: "timestamp",
|
|
12660
|
+
default: "now()"
|
|
12661
|
+
},
|
|
12662
|
+
updatedAt: {
|
|
12663
|
+
type: "timestamp",
|
|
12664
|
+
default: "now()",
|
|
12665
|
+
onUpdate: "now()"
|
|
12666
|
+
}
|
|
12667
|
+
}
|
|
12641
12668
|
}
|
|
12642
12669
|
} };
|
|
12643
12670
|
/**
|
|
@@ -12650,7 +12677,8 @@ const schemas = {
|
|
|
12650
12677
|
environments: environmentsSchema,
|
|
12651
12678
|
environment_secrets: environmentSecretsSchema,
|
|
12652
12679
|
config_variants: configVariantsSchema,
|
|
12653
|
-
targeting_rules: targetingRulesSchema
|
|
12680
|
+
targeting_rules: targetingRulesSchema,
|
|
12681
|
+
workspace_settings: workspaceSettingsSchema
|
|
12654
12682
|
};
|
|
12655
12683
|
|
|
12656
12684
|
//#endregion
|
|
@@ -13047,4 +13075,4 @@ async function createDatabaseFromConnection(rawConnection, options) {
|
|
|
13047
13075
|
}
|
|
13048
13076
|
|
|
13049
13077
|
//#endregion
|
|
13050
|
-
export {
|
|
13078
|
+
export { record as A, _enum as C, literal as D, boolean$1 as E, union as M, unknown as N, number$1 as O, zod_default as S, array as T, schemas as _, matchType as a, variantsSchema as b, parsePartialTableData as c, validateTableData as d, SCHEMA_METADATA as f, environmentsSchema as g, environmentSecretsSchema as h, getMigrations as i, string$1 as j, object as k, parseTableData as l, configsSchema as m, createDatabaseFromConnection as n, runAutoMigrations as o, configVariantsSchema as p, detectDatabaseType as r, logger as s, createDatabase as t, validatePartialTableData as u, targetingRulesSchema as v, any as w, workspaceSettingsSchema as x, variantVersionsSchema as y };
|
|
@@ -62,6 +62,12 @@ declare const targetingRulesSchema: z.ZodObject<{
|
|
|
62
62
|
createdAt: z.ZodDate;
|
|
63
63
|
updatedAt: z.ZodDate;
|
|
64
64
|
}, z.core.$strip>;
|
|
65
|
+
declare const workspaceSettingsSchema: z.ZodObject<{
|
|
66
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
id: z.ZodString;
|
|
68
|
+
createdAt: z.ZodDate;
|
|
69
|
+
updatedAt: z.ZodDate;
|
|
70
|
+
}, z.core.$strip>;
|
|
65
71
|
/**
|
|
66
72
|
* Zod inferred types (for runtime validation)
|
|
67
73
|
*/
|
|
@@ -72,6 +78,7 @@ type Environment = z.infer<typeof environmentsSchema>;
|
|
|
72
78
|
type EnvironmentSecret = z.infer<typeof environmentSecretsSchema>;
|
|
73
79
|
type ConfigVariant = z.infer<typeof configVariantsSchema>;
|
|
74
80
|
type TargetingRule = z.infer<typeof targetingRulesSchema>;
|
|
81
|
+
type WorkspaceSettings = z.infer<typeof workspaceSettingsSchema>;
|
|
75
82
|
/**
|
|
76
83
|
* Kysely Table Interfaces
|
|
77
84
|
* Derived from Zod schemas with proper column types
|
|
@@ -119,6 +126,9 @@ interface TargetingRulesTable extends BaseTable {
|
|
|
119
126
|
enabled: ColumnType<boolean, boolean | undefined, boolean | undefined>;
|
|
120
127
|
conditions: ColumnType<Record<string, unknown>, string, string>;
|
|
121
128
|
}
|
|
129
|
+
interface WorkspaceSettingsTable extends BaseTable {
|
|
130
|
+
name: string | null;
|
|
131
|
+
}
|
|
122
132
|
/**
|
|
123
133
|
* Main Kysely Database interface
|
|
124
134
|
*/
|
|
@@ -130,6 +140,7 @@ interface Database {
|
|
|
130
140
|
environment_secrets: EnvironmentSecretsTable;
|
|
131
141
|
config_variants: ConfigVariantsTable;
|
|
132
142
|
targeting_rules: TargetingRulesTable;
|
|
143
|
+
workspace_settings: WorkspaceSettingsTable;
|
|
133
144
|
}
|
|
134
145
|
/**
|
|
135
146
|
* Table names as a union type
|
|
@@ -448,6 +459,34 @@ declare const SCHEMA_METADATA: {
|
|
|
448
459
|
};
|
|
449
460
|
};
|
|
450
461
|
};
|
|
462
|
+
readonly workspace_settings: {
|
|
463
|
+
readonly order: 8;
|
|
464
|
+
readonly schema: z.ZodObject<{
|
|
465
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
466
|
+
id: z.ZodString;
|
|
467
|
+
createdAt: z.ZodDate;
|
|
468
|
+
updatedAt: z.ZodDate;
|
|
469
|
+
}, z.core.$strip>;
|
|
470
|
+
readonly fields: {
|
|
471
|
+
readonly id: {
|
|
472
|
+
readonly type: "uuid";
|
|
473
|
+
readonly primaryKey: true;
|
|
474
|
+
};
|
|
475
|
+
readonly name: {
|
|
476
|
+
readonly type: "text";
|
|
477
|
+
readonly nullable: true;
|
|
478
|
+
};
|
|
479
|
+
readonly createdAt: {
|
|
480
|
+
readonly type: "timestamp";
|
|
481
|
+
readonly default: "now()";
|
|
482
|
+
};
|
|
483
|
+
readonly updatedAt: {
|
|
484
|
+
readonly type: "timestamp";
|
|
485
|
+
readonly default: "now()";
|
|
486
|
+
readonly onUpdate: "now()";
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
451
490
|
};
|
|
452
491
|
};
|
|
453
492
|
/**
|
|
@@ -513,6 +552,12 @@ declare const schemas: {
|
|
|
513
552
|
createdAt: z.ZodDate;
|
|
514
553
|
updatedAt: z.ZodDate;
|
|
515
554
|
}, z.core.$strip>;
|
|
555
|
+
readonly workspace_settings: z.ZodObject<{
|
|
556
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
557
|
+
id: z.ZodString;
|
|
558
|
+
createdAt: z.ZodDate;
|
|
559
|
+
updatedAt: z.ZodDate;
|
|
560
|
+
}, z.core.$strip>;
|
|
516
561
|
};
|
|
517
562
|
//#endregion
|
|
518
563
|
//#region src/db/validation.d.ts
|
|
@@ -521,28 +566,6 @@ declare const schemas: {
|
|
|
521
566
|
* Useful for runtime validation before inserting/updating
|
|
522
567
|
*/
|
|
523
568
|
declare function validateTableData<T extends TableName>(table: T, data: unknown): zod302.ZodSafeParseSuccess<{
|
|
524
|
-
slug: string;
|
|
525
|
-
id: string;
|
|
526
|
-
createdAt: Date;
|
|
527
|
-
updatedAt: Date;
|
|
528
|
-
name?: string | undefined;
|
|
529
|
-
}> | zod302.ZodSafeParseError<{
|
|
530
|
-
slug: string;
|
|
531
|
-
id: string;
|
|
532
|
-
createdAt: Date;
|
|
533
|
-
updatedAt: Date;
|
|
534
|
-
name?: string | undefined;
|
|
535
|
-
}> | zod302.ZodSafeParseSuccess<{
|
|
536
|
-
name: string;
|
|
537
|
-
id: string;
|
|
538
|
-
createdAt: Date;
|
|
539
|
-
updatedAt: Date;
|
|
540
|
-
}> | zod302.ZodSafeParseError<{
|
|
541
|
-
name: string;
|
|
542
|
-
id: string;
|
|
543
|
-
createdAt: Date;
|
|
544
|
-
updatedAt: Date;
|
|
545
|
-
}> | zod302.ZodSafeParseSuccess<{
|
|
546
569
|
variantId: string;
|
|
547
570
|
version: number;
|
|
548
571
|
provider: string;
|
|
@@ -610,21 +633,21 @@ declare function validateTableData<T extends TableName>(table: T, data: unknown)
|
|
|
610
633
|
createdAt: Date;
|
|
611
634
|
updatedAt: Date;
|
|
612
635
|
variantVersionId?: string | null | undefined;
|
|
636
|
+
}> | zod302.ZodSafeParseSuccess<{
|
|
637
|
+
id: string;
|
|
638
|
+
createdAt: Date;
|
|
639
|
+
updatedAt: Date;
|
|
640
|
+
name?: string | null | undefined;
|
|
641
|
+
}> | zod302.ZodSafeParseError<{
|
|
642
|
+
id: string;
|
|
643
|
+
createdAt: Date;
|
|
644
|
+
updatedAt: Date;
|
|
645
|
+
name?: string | null | undefined;
|
|
613
646
|
}>;
|
|
614
647
|
/**
|
|
615
648
|
* Validate partial data (for updates)
|
|
616
649
|
*/
|
|
617
650
|
declare function validatePartialTableData<T extends TableName>(table: T, data: unknown): zod302.ZodSafeParseSuccess<{
|
|
618
|
-
name?: string | undefined;
|
|
619
|
-
id?: string | undefined;
|
|
620
|
-
createdAt?: Date | undefined;
|
|
621
|
-
updatedAt?: Date | undefined;
|
|
622
|
-
}> | zod302.ZodSafeParseError<{
|
|
623
|
-
name?: string | undefined;
|
|
624
|
-
id?: string | undefined;
|
|
625
|
-
createdAt?: Date | undefined;
|
|
626
|
-
updatedAt?: Date | undefined;
|
|
627
|
-
}> | zod302.ZodSafeParseSuccess<{
|
|
628
651
|
variantId?: string | undefined;
|
|
629
652
|
version?: number | undefined;
|
|
630
653
|
provider?: string | undefined;
|
|
@@ -692,22 +715,21 @@ declare function validatePartialTableData<T extends TableName>(table: T, data: u
|
|
|
692
715
|
id?: string | undefined;
|
|
693
716
|
createdAt?: Date | undefined;
|
|
694
717
|
updatedAt?: Date | undefined;
|
|
718
|
+
}> | zod302.ZodSafeParseSuccess<{
|
|
719
|
+
name?: string | null | undefined;
|
|
720
|
+
id?: string | undefined;
|
|
721
|
+
createdAt?: Date | undefined;
|
|
722
|
+
updatedAt?: Date | undefined;
|
|
723
|
+
}> | zod302.ZodSafeParseError<{
|
|
724
|
+
name?: string | null | undefined;
|
|
725
|
+
id?: string | undefined;
|
|
726
|
+
createdAt?: Date | undefined;
|
|
727
|
+
updatedAt?: Date | undefined;
|
|
695
728
|
}>;
|
|
696
729
|
/**
|
|
697
730
|
* Parse and validate data, throws on error
|
|
698
731
|
*/
|
|
699
732
|
declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
700
|
-
slug: string;
|
|
701
|
-
id: string;
|
|
702
|
-
createdAt: Date;
|
|
703
|
-
updatedAt: Date;
|
|
704
|
-
name?: string | undefined;
|
|
705
|
-
} | {
|
|
706
|
-
name: string;
|
|
707
|
-
id: string;
|
|
708
|
-
createdAt: Date;
|
|
709
|
-
updatedAt: Date;
|
|
710
|
-
} | {
|
|
711
733
|
variantId: string;
|
|
712
734
|
version: number;
|
|
713
735
|
provider: string;
|
|
@@ -741,16 +763,16 @@ declare function parseTableData<T extends TableName>(table: T, data: unknown): {
|
|
|
741
763
|
createdAt: Date;
|
|
742
764
|
updatedAt: Date;
|
|
743
765
|
variantVersionId?: string | null | undefined;
|
|
766
|
+
} | {
|
|
767
|
+
id: string;
|
|
768
|
+
createdAt: Date;
|
|
769
|
+
updatedAt: Date;
|
|
770
|
+
name?: string | null | undefined;
|
|
744
771
|
};
|
|
745
772
|
/**
|
|
746
773
|
* Parse partial data, throws on error
|
|
747
774
|
*/
|
|
748
775
|
declare function parsePartialTableData<T extends TableName>(table: T, data: unknown): {
|
|
749
|
-
name?: string | undefined;
|
|
750
|
-
id?: string | undefined;
|
|
751
|
-
createdAt?: Date | undefined;
|
|
752
|
-
updatedAt?: Date | undefined;
|
|
753
|
-
} | {
|
|
754
776
|
variantId?: string | undefined;
|
|
755
777
|
version?: number | undefined;
|
|
756
778
|
provider?: string | undefined;
|
|
@@ -784,6 +806,11 @@ declare function parsePartialTableData<T extends TableName>(table: T, data: unkn
|
|
|
784
806
|
id?: string | undefined;
|
|
785
807
|
createdAt?: Date | undefined;
|
|
786
808
|
updatedAt?: Date | undefined;
|
|
809
|
+
} | {
|
|
810
|
+
name?: string | null | undefined;
|
|
811
|
+
id?: string | undefined;
|
|
812
|
+
createdAt?: Date | undefined;
|
|
813
|
+
updatedAt?: Date | undefined;
|
|
787
814
|
};
|
|
788
815
|
//#endregion
|
|
789
816
|
//#region src/db/migrations.d.ts
|
|
@@ -880,4 +907,4 @@ declare function detectDatabaseType(db: unknown): DatabaseType | null;
|
|
|
880
907
|
*/
|
|
881
908
|
declare function createDatabaseFromConnection(rawConnection: any, options?: DatabaseOptions): Promise<Kysely<Database> | null>;
|
|
882
909
|
//#endregion
|
|
883
|
-
export { TargetingRulesTable as A,
|
|
910
|
+
export { TargetingRulesTable as A, environmentSecretsSchema as B, EnvironmentSecretsTable as C, Selectable as D, SCHEMA_METADATA as E, VariantsTable as F, variantsSchema as G, schemas as H, WorkspaceSettings as I, workspaceSettingsSchema as K, WorkspaceSettingsTable as L, Variant as M, VariantVersion as N, TableName as O, VariantVersionsTable as P, configVariantsSchema as R, EnvironmentSecret as S, Insertable as T, targetingRulesSchema as U, environmentsSchema as V, variantVersionsSchema as W, ConfigVariant as _, createDatabaseFromConnection as a, Database as b, MigrationResult as c, runAutoMigrations as d, parsePartialTableData as f, Config as g, validateTableData as h, createDatabase as i, Updateable as j, TargetingRule as k, getMigrations as l, validatePartialTableData as m, DatabaseOptions as n, detectDatabaseType as o, parseTableData as p, DatabaseType as r, MigrationOptions as s, DatabaseConnection as t, matchType as u, ConfigVariantsTable as v, EnvironmentsTable as w, Environment as x, ConfigsTable as y, configsSchema as z };
|