@lyku/lockstep-core 1.5.0 → 1.5.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/package.json CHANGED
@@ -1,52 +1,52 @@
1
1
  {
2
- "name": "@lyku/lockstep-core",
3
- "version": "1.5.0",
4
- "description": "Schema-driven code generation: PostgreSQL models → TypeScript types, Kysely types, API handlers, and typed clients",
5
- "main": "./index.js",
6
- "types": "./index.d.ts",
7
- "type": "module",
8
- "license": "GPL-3.0",
9
- "bin": {
10
- "lockstep": "./cli.js",
11
- "lockstep-version-check": "./version-check.js"
12
- },
13
- "exports": {
14
- ".": {
15
- "types": "./index.d.ts",
16
- "import": "./index.js",
17
- "default": "./index.js"
18
- },
19
- "./contexts": {
20
- "types": "./contexts/index.d.ts",
21
- "import": "./contexts/index.js",
22
- "default": "./contexts/index.js"
23
- },
24
- "./generators": {
25
- "types": "./generators/index.d.ts",
26
- "import": "./generators/index.js",
27
- "default": "./generators/index.js"
28
- }
29
- },
30
- "peerDependencies": {
31
- "prettier": ">=3.0.0"
32
- },
33
- "peerDependenciesMeta": {
34
- "prettier": {
35
- "optional": true
36
- }
37
- },
38
- "keywords": [
39
- "lockstep",
40
- "schema",
41
- "codegen",
42
- "typescript",
43
- "postgresql",
44
- "kysely",
45
- "api",
46
- "handler",
47
- "client",
48
- "messagepack",
49
- "validator"
50
- ],
51
- "module": "./index.js"
52
- }
2
+ "name": "@lyku/lockstep-core",
3
+ "version": "1.5.1",
4
+ "description": "Schema-driven code generation: PostgreSQL models → TypeScript types, Kysely types, API handlers, and typed clients",
5
+ "main": "./index.js",
6
+ "types": "./index.d.ts",
7
+ "type": "module",
8
+ "license": "GPL-3.0",
9
+ "bin": {
10
+ "lockstep": "./cli.js",
11
+ "lockstep-version-check": "./version-check.js"
12
+ },
13
+ "exports": {
14
+ ".": {
15
+ "types": "./index.d.ts",
16
+ "import": "./index.js",
17
+ "default": "./index.js"
18
+ },
19
+ "./contexts": {
20
+ "types": "./contexts/index.d.ts",
21
+ "import": "./contexts/index.js",
22
+ "default": "./contexts/index.js"
23
+ },
24
+ "./generators": {
25
+ "types": "./generators/index.d.ts",
26
+ "import": "./generators/index.js",
27
+ "default": "./generators/index.js"
28
+ }
29
+ },
30
+ "peerDependencies": {
31
+ "prettier": ">=3.0.0"
32
+ },
33
+ "peerDependenciesMeta": {
34
+ "prettier": {
35
+ "optional": true
36
+ }
37
+ },
38
+ "keywords": [
39
+ "lockstep",
40
+ "schema",
41
+ "codegen",
42
+ "typescript",
43
+ "postgresql",
44
+ "kysely",
45
+ "api",
46
+ "handler",
47
+ "client",
48
+ "messagepack",
49
+ "validator"
50
+ ],
51
+ "module": "./index.js"
52
+ }
@@ -1,7 +1,18 @@
1
1
  import { type JsonSchema } from '../../json';
2
2
  import { type PostgresColumnBase } from '../PostgresColumnBase';
3
+ /** A JSON value usable as a jsonb column default (serialized to a '...'::jsonb literal). */
4
+ export type JsonbDefaultValue = string | number | boolean | null | JsonbDefaultValue[] | {
5
+ [key: string]: JsonbDefaultValue;
6
+ };
3
7
  export type JsonbColumnModel = PostgresColumnBase & {
4
8
  readonly type: 'jsonb';
5
9
  readonly schema?: JsonSchema;
10
+ /**
11
+ * Default value: a plain JSON value (emitted as '<json>'::jsonb) or raw SQL
12
+ * via { sql }, mirroring the timestamp columns' convention.
13
+ */
14
+ readonly default?: JsonbDefaultValue | {
15
+ readonly sql: string;
16
+ };
6
17
  };
7
18
  //# sourceMappingURL=Jsonb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Jsonb.d.ts","sourceRoot":"","sources":["../../../../../libs/lockstep-core/postgres/columns/Jsonb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,GAAG;IACnD,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"Jsonb.d.ts","sourceRoot":"","sources":["../../../../../libs/lockstep-core/postgres/columns/Jsonb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,4FAA4F;AAC5F,MAAM,MAAM,iBAAiB,GAC1B,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,iBAAiB,EAAE,GACnB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAA;CAAE,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,GAAG;IACnD,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG;QAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAChE,CAAC"}