@zmdb/core 1.0.0-beta.2
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/LICENSE +674 -0
- package/README.md +104 -0
- package/dist/app-commands.d.ts +3 -0
- package/dist/app-commands.d.ts.map +1 -0
- package/dist/app-commands.js +3 -0
- package/dist/app-commands.js.map +1 -0
- package/dist/app-cqrs.d.ts +3 -0
- package/dist/app-cqrs.d.ts.map +1 -0
- package/dist/app-cqrs.js +3 -0
- package/dist/app-cqrs.js.map +1 -0
- package/dist/app-data.d.ts +2 -0
- package/dist/app-data.d.ts.map +1 -0
- package/dist/app-data.js +3 -0
- package/dist/app-data.js.map +1 -0
- package/dist/app-di.d.ts +3 -0
- package/dist/app-di.d.ts.map +1 -0
- package/dist/app-di.js +3 -0
- package/dist/app-di.js.map +1 -0
- package/dist/app-events.d.ts +3 -0
- package/dist/app-events.d.ts.map +1 -0
- package/dist/app-events.js +3 -0
- package/dist/app-events.js.map +1 -0
- package/dist/app-health.d.ts +3 -0
- package/dist/app-health.d.ts.map +1 -0
- package/dist/app-health.js +3 -0
- package/dist/app-health.js.map +1 -0
- package/dist/app-lifecycle.d.ts +3 -0
- package/dist/app-lifecycle.d.ts.map +1 -0
- package/dist/app-lifecycle.js +3 -0
- package/dist/app-lifecycle.js.map +1 -0
- package/dist/app-messaging.d.ts +3 -0
- package/dist/app-messaging.d.ts.map +1 -0
- package/dist/app-messaging.js +3 -0
- package/dist/app-messaging.js.map +1 -0
- package/dist/app-modules.d.ts +3 -0
- package/dist/app-modules.d.ts.map +1 -0
- package/dist/app-modules.js +3 -0
- package/dist/app-modules.js.map +1 -0
- package/dist/app-observability.d.ts +3 -0
- package/dist/app-observability.d.ts.map +1 -0
- package/dist/app-observability.js +3 -0
- package/dist/app-observability.js.map +1 -0
- package/dist/app-state.d.ts +3 -0
- package/dist/app-state.d.ts.map +1 -0
- package/dist/app-state.js +3 -0
- package/dist/app-state.js.map +1 -0
- package/dist/app.d.ts +3 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +3 -0
- package/dist/app.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/compiler.d.ts +13 -0
- package/dist/compiler.d.ts.map +1 -0
- package/dist/compiler.js +8 -0
- package/dist/compiler.js.map +1 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -0
- package/dist/database-cockroach.d.ts +2 -0
- package/dist/database-cockroach.d.ts.map +1 -0
- package/dist/database-cockroach.js +2 -0
- package/dist/database-cockroach.js.map +1 -0
- package/dist/database-mssql.d.ts +2 -0
- package/dist/database-mssql.d.ts.map +1 -0
- package/dist/database-mssql.js +2 -0
- package/dist/database-mssql.js.map +1 -0
- package/dist/database-mysql.d.ts +2 -0
- package/dist/database-mysql.d.ts.map +1 -0
- package/dist/database-mysql.js +2 -0
- package/dist/database-mysql.js.map +1 -0
- package/dist/database-postgres.d.ts +2 -0
- package/dist/database-postgres.d.ts.map +1 -0
- package/dist/database-postgres.js +2 -0
- package/dist/database-postgres.js.map +1 -0
- package/dist/database-singlestore.d.ts +2 -0
- package/dist/database-singlestore.d.ts.map +1 -0
- package/dist/database-singlestore.js +2 -0
- package/dist/database-singlestore.js.map +1 -0
- package/dist/database-sqlite.d.ts +2 -0
- package/dist/database-sqlite.d.ts.map +1 -0
- package/dist/database-sqlite.js +2 -0
- package/dist/database-sqlite.js.map +1 -0
- package/dist/derive.d.ts +2 -0
- package/dist/derive.d.ts.map +1 -0
- package/dist/derive.js +13 -0
- package/dist/derive.js.map +1 -0
- package/dist/dto.d.ts +5 -0
- package/dist/dto.d.ts.map +1 -0
- package/dist/dto.js +7 -0
- package/dist/dto.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/ir.d.ts +3 -0
- package/dist/ir.d.ts.map +1 -0
- package/dist/ir.js +11 -0
- package/dist/ir.js.map +1 -0
- package/dist/migrations.d.ts +9 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +9 -0
- package/dist/migrations.js.map +1 -0
- package/dist/orm.d.ts +16 -0
- package/dist/orm.d.ts.map +1 -0
- package/dist/orm.js +18 -0
- package/dist/orm.js.map +1 -0
- package/dist/relations.d.ts +5 -0
- package/dist/relations.d.ts.map +1 -0
- package/dist/relations.js +12 -0
- package/dist/relations.js.map +1 -0
- package/dist/schema.d.ts +25 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +27 -0
- package/dist/schema.js.map +1 -0
- package/dist/sql.d.ts +14 -0
- package/dist/sql.d.ts.map +1 -0
- package/dist/sql.js +16 -0
- package/dist/sql.js.map +1 -0
- package/dist/tags.d.ts +2 -0
- package/dist/tags.d.ts.map +1 -0
- package/dist/tags.js +5 -0
- package/dist/tags.js.map +1 -0
- package/dist/testing/official-dialects.fixture.d.ts +16 -0
- package/dist/testing/official-dialects.fixture.d.ts.map +1 -0
- package/dist/testing/official-dialects.fixture.js +21 -0
- package/dist/testing/official-dialects.fixture.js.map +1 -0
- package/dist/testing.d.ts +5 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +4 -0
- package/dist/testing.js.map +1 -0
- package/dist/validator.d.ts +9 -0
- package/dist/validator.d.ts.map +1 -0
- package/dist/validator.js +11 -0
- package/dist/validator.js.map +1 -0
- package/dist/web-app.d.ts +3 -0
- package/dist/web-app.d.ts.map +1 -0
- package/dist/web-app.js +3 -0
- package/dist/web-app.js.map +1 -0
- package/dist/web-compression.d.ts +3 -0
- package/dist/web-compression.d.ts.map +1 -0
- package/dist/web-compression.js +3 -0
- package/dist/web-compression.js.map +1 -0
- package/dist/web-context.d.ts +3 -0
- package/dist/web-context.d.ts.map +1 -0
- package/dist/web-context.js +3 -0
- package/dist/web-context.js.map +1 -0
- package/dist/web-contract-compiler.d.ts +3 -0
- package/dist/web-contract-compiler.d.ts.map +1 -0
- package/dist/web-contract-compiler.js +3 -0
- package/dist/web-contract-compiler.js.map +1 -0
- package/dist/web-contract.d.ts +3 -0
- package/dist/web-contract.d.ts.map +1 -0
- package/dist/web-contract.js +3 -0
- package/dist/web-contract.js.map +1 -0
- package/dist/web-csrf.d.ts +3 -0
- package/dist/web-csrf.d.ts.map +1 -0
- package/dist/web-csrf.js +3 -0
- package/dist/web-csrf.js.map +1 -0
- package/dist/web-data.d.ts +2 -0
- package/dist/web-data.d.ts.map +1 -0
- package/dist/web-data.js +3 -0
- package/dist/web-data.js.map +1 -0
- package/dist/web-devtools.d.ts +3 -0
- package/dist/web-devtools.d.ts.map +1 -0
- package/dist/web-devtools.js +3 -0
- package/dist/web-devtools.js.map +1 -0
- package/dist/web-dto-pipes.d.ts +3 -0
- package/dist/web-dto-pipes.d.ts.map +1 -0
- package/dist/web-dto-pipes.js +3 -0
- package/dist/web-dto-pipes.js.map +1 -0
- package/dist/web-gateways.d.ts +3 -0
- package/dist/web-gateways.d.ts.map +1 -0
- package/dist/web-gateways.js +3 -0
- package/dist/web-gateways.js.map +1 -0
- package/dist/web-health.d.ts +3 -0
- package/dist/web-health.d.ts.map +1 -0
- package/dist/web-health.js +3 -0
- package/dist/web-health.js.map +1 -0
- package/dist/web-middleware.d.ts +3 -0
- package/dist/web-middleware.d.ts.map +1 -0
- package/dist/web-middleware.js +3 -0
- package/dist/web-middleware.js.map +1 -0
- package/dist/web-openapi.d.ts +3 -0
- package/dist/web-openapi.d.ts.map +1 -0
- package/dist/web-openapi.js +3 -0
- package/dist/web-openapi.js.map +1 -0
- package/dist/web-pipeline.d.ts +3 -0
- package/dist/web-pipeline.d.ts.map +1 -0
- package/dist/web-pipeline.js +3 -0
- package/dist/web-pipeline.js.map +1 -0
- package/dist/web-routing.d.ts +3 -0
- package/dist/web-routing.d.ts.map +1 -0
- package/dist/web-routing.js +3 -0
- package/dist/web-routing.js.map +1 -0
- package/dist/web-static.d.ts +3 -0
- package/dist/web-static.d.ts.map +1 -0
- package/dist/web-static.js +3 -0
- package/dist/web-static.js.map +1 -0
- package/dist/web-testing.d.ts +3 -0
- package/dist/web-testing.d.ts.map +1 -0
- package/dist/web-testing.js +3 -0
- package/dist/web-testing.js.map +1 -0
- package/dist/web-upload.d.ts +3 -0
- package/dist/web-upload.d.ts.map +1 -0
- package/dist/web-upload.js +3 -0
- package/dist/web-upload.js.map +1 -0
- package/dist/web-versioning.d.ts +3 -0
- package/dist/web-versioning.d.ts.map +1 -0
- package/dist/web-versioning.js +3 -0
- package/dist/web-versioning.js.map +1 -0
- package/dist/web.d.ts +5 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +7 -0
- package/dist/web.js.map +1 -0
- package/package.json +292 -0
- package/src/app-commands.ts +3 -0
- package/src/app-cqrs.ts +10 -0
- package/src/app-data.ts +2 -0
- package/src/app-di.ts +3 -0
- package/src/app-events.ts +3 -0
- package/src/app-health.ts +10 -0
- package/src/app-lifecycle.ts +3 -0
- package/src/app-messaging.ts +43 -0
- package/src/app-modules.ts +11 -0
- package/src/app-observability.ts +25 -0
- package/src/app-state.ts +3 -0
- package/src/app.ts +42 -0
- package/src/cli/index.ts +28 -0
- package/src/compiler.ts +66 -0
- package/src/config/index.ts +13 -0
- package/src/database-cockroach.ts +10 -0
- package/src/database-mssql.ts +20 -0
- package/src/database-mysql.ts +24 -0
- package/src/database-postgres.ts +18 -0
- package/src/database-singlestore.ts +16 -0
- package/src/database-sqlite.ts +10 -0
- package/src/derive.ts +27 -0
- package/src/dto.ts +25 -0
- package/src/index.ts +57 -0
- package/src/ir.ts +62 -0
- package/src/migrations.ts +97 -0
- package/src/orm.ts +90 -0
- package/src/relations.ts +11 -0
- package/src/schema.ts +193 -0
- package/src/sql.ts +130 -0
- package/src/tags.ts +33 -0
- package/src/testing/official-dialects.fixture.ts +24 -0
- package/src/testing.ts +7 -0
- package/src/validator.ts +44 -0
- package/src/web-app.ts +9 -0
- package/src/web-compression.ts +3 -0
- package/src/web-context.ts +3 -0
- package/src/web-contract-compiler.ts +7 -0
- package/src/web-contract.ts +36 -0
- package/src/web-csrf.ts +3 -0
- package/src/web-data.ts +2 -0
- package/src/web-devtools.ts +12 -0
- package/src/web-dto-pipes.ts +3 -0
- package/src/web-gateways.ts +3 -0
- package/src/web-health.ts +3 -0
- package/src/web-middleware.ts +12 -0
- package/src/web-openapi.ts +15 -0
- package/src/web-pipeline.ts +28 -0
- package/src/web-routing.ts +3 -0
- package/src/web-static.ts +3 -0
- package/src/web-testing.ts +3 -0
- package/src/web-upload.ts +3 -0
- package/src/web-versioning.ts +3 -0
- package/src/web.ts +178 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { AssertError, assert, is, validate } from '@zmdb/validator';
|
|
2
|
+
export { type ValidateResult } from '@zmdb/validator';
|
|
3
|
+
export { Container, Inject, Module, createApplication, createToken } from '@zmdb/app';
|
|
4
|
+
export type { Application, ApplicationExtension, ApplicationExtensionContext, ApplicationOptions, ModuleClass, Token, } from '@zmdb/app';
|
|
5
|
+
export { Command, createCommandApp } from '@zmdb/app/commands';
|
|
6
|
+
export type { CommandApp } from '@zmdb/app/commands';
|
|
7
|
+
export { repositoryToken } from '@zmdb/app/data';
|
|
8
|
+
export { OnEvent, createEvents } from '@zmdb/app/events';
|
|
9
|
+
export { EventPattern, MessagePattern } from '@zmdb/app/messaging';
|
|
10
|
+
export type { TransportStrategy } from '@zmdb/app/messaging';
|
|
11
|
+
export type { Observability } from '@zmdb/app/observability';
|
|
12
|
+
export { defineRepository, IncompleteKeyError, ValidationError } from '@zmdb/orm';
|
|
13
|
+
export { type Driver, type UpdatePatch } from '@zmdb/orm';
|
|
14
|
+
export { schemaOf } from '@zmdb/schema';
|
|
15
|
+
export { type CreateDTO, type Entity, type PrimaryKeyOf, type ReadDTO, type UpdateDTO } from '@zmdb/schema';
|
|
16
|
+
export { type ValidationIssue } from '@zmdb/validator';
|
|
17
|
+
export { type HasDefault, type Max, type MaxLength, type Min, type MinLength, type Pattern, type Physical, type PrimaryKey, type References, type Sensitive, type Serial, type Sql, type Table, type Unique, } from '@zmdb/schema/tags';
|
|
18
|
+
export { createApp } from '@zmdb/web/app';
|
|
19
|
+
export type { WebApplication, WebApplicationOptions } from '@zmdb/web/app';
|
|
20
|
+
export type { Ctx } from '@zmdb/web/context';
|
|
21
|
+
export { Gateway, Subscribe } from '@zmdb/web/gateways';
|
|
22
|
+
export type { WebRequest, WebResponse } from '@zmdb/web/pipeline';
|
|
23
|
+
export { Controller, Delete, Get, Patch, Post, Public, Put } from '@zmdb/web/routing';
|
|
24
|
+
export { Version, VersionNeutral } from '@zmdb/web/versioning';
|
|
25
|
+
export { defineConfig } from '@zmdb/compiler/config/contract';
|
|
26
|
+
export type { ZmdbConfig } from '@zmdb/compiler/config/contract';
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACtF,YAAY,EACV,WAAW,EACX,oBAAoB,EACpB,2BAA2B,EAC3B,kBAAkB,EAClB,WAAW,EACX,KAAK,GACN,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,g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EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,YAAY,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// The application-facing zmdb vocabulary. This file is deliberately only
|
|
2
|
+
// named re-exports: implementations remain in their owning packages, while
|
|
3
|
+
// advanced surfaces live under concern-based `@zmdb/core/*` entry points.
|
|
4
|
+
export { AssertError, assert, is, validate } from '@zmdb/validator';
|
|
5
|
+
export {} from '@zmdb/validator';
|
|
6
|
+
export { Container, Inject, Module, createApplication, createToken } from '@zmdb/app';
|
|
7
|
+
export { Command, createCommandApp } from '@zmdb/app/commands';
|
|
8
|
+
export { repositoryToken } from '@zmdb/app/data';
|
|
9
|
+
export { OnEvent, createEvents } from '@zmdb/app/events';
|
|
10
|
+
export { EventPattern, MessagePattern } from '@zmdb/app/messaging';
|
|
11
|
+
export { defineRepository, IncompleteKeyError, ValidationError } from '@zmdb/orm';
|
|
12
|
+
export {} from '@zmdb/orm';
|
|
13
|
+
export { schemaOf } from '@zmdb/schema';
|
|
14
|
+
export {} from '@zmdb/schema';
|
|
15
|
+
export {} from '@zmdb/validator';
|
|
16
|
+
export {} from '@zmdb/schema/tags';
|
|
17
|
+
export { createApp } from '@zmdb/web/app';
|
|
18
|
+
export { Gateway, Subscribe } from '@zmdb/web/gateways';
|
|
19
|
+
export { Controller, Delete, Get, Patch, Post, Public, Put } from '@zmdb/web/routing';
|
|
20
|
+
export { Version, VersionNeutral } from '@zmdb/web/versioning';
|
|
21
|
+
export { defineConfig } from '@zmdb/compiler/config/contract';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1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DED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { appTypeOf, dbDecodedColumns, decodeDbValue, decodeWire, decodeWireValue, encodeWire, encodeWireValue, jsonSchemaForColumn, jsonSchemaFromIR, jsonSchemaFromShape, jsonSchemaFromTypeIR, KNOWN_CONSTRAINT_KINDS, objectTypeFromIR, objectTypeFromShape, PROTO_SCALARS, RELATION_KINDS, schemaFromIR, shapeOfVariant, SQL_TYPES, wireTypeOf, } from '@zmdb/schema/ir';
|
|
2
|
+
export { type ArrayIR, type Codec, type CodecRegistry, type ColumnIR, type ConstraintKind, type Constraints, type ExtensionType, type JsonSchemaObject, type JsonValue, type Layer, type LiteralIR, type NullIR, type ObjectIR, type PropertyIR, type ProtoScalar, type RefIR, type RelationIR, type RelationKind, type ScalarIR, type ScalarKind, type SchemaIR, type ShapeColumnIR, type ShapeIR, type TupleIR, type TypeIR, type UndefinedIR, type UnionIR, type UnknownIR, type UnsupportedIR, type Variant, } from '@zmdb/schema/ir';
|
|
3
|
+
//# sourceMappingURL=ir.d.ts.map
|
package/dist/ir.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../src/ir.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,cAAc,EACd,SAAS,EACT,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,OAAO,GACb,MAAM,iBAAiB,CAAC"}
|
package/dist/ir.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// zmdb/ir — explicit named re-exports of the schema IR: the one representation every
|
|
2
|
+
// back-end consumes. (No `export *`: each symbol is enumerated so the compatibility
|
|
3
|
+
// surface is explicit.)
|
|
4
|
+
//
|
|
5
|
+
// Plain data in, plain data out. Exported because a consumer generating its own
|
|
6
|
+
// artefacts — a client SDK, a form builder, an admin UI — needs the same
|
|
7
|
+
// representation the built-in emitters read, and the alternative is reverse-engineering
|
|
8
|
+
// `CoreSchema`.
|
|
9
|
+
export { appTypeOf, dbDecodedColumns, decodeDbValue, decodeWire, decodeWireValue, encodeWire, encodeWireValue, jsonSchemaForColumn, jsonSchemaFromIR, jsonSchemaFromShape, jsonSchemaFromTypeIR, KNOWN_CONSTRAINT_KINDS, objectTypeFromIR, objectTypeFromShape, PROTO_SCALARS, RELATION_KINDS, schemaFromIR, shapeOfVariant, SQL_TYPES, wireTypeOf, } from '@zmdb/schema/ir';
|
|
10
|
+
export {} from '@zmdb/schema/ir';
|
|
11
|
+
//# sourceMappingURL=ir.js.map
|
package/dist/ir.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ir.js","sourceRoot":"","sources":["../src/ir.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,oFAAoF;AACpF,wBAAwB;AACxB,EAAE;AACF,gFAAgF;AAChF,yEAAyE;AACzE,wFAAwF;AACxF,gBAAgB;AAChB,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,cAAc,EACd,SAAS,EACT,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EA+BN,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { CHANGE_PHASES, ddlType, diff, down, downTo, driverMigrationConnection, emitDown, emitSchemaObject, emitUp, ensureVersionTable, planMigration, rollbackTo, snapshot, status, up, } from '@zmdb/migrations';
|
|
2
|
+
export type { AppliedMigration, ChangeOp, ColumnSnapshot, DdlSqlType, DiffOptions, ExtensionSnapshot, ExtensionType, ForeignKeySnapshot, Migration, MigrationConnection, MigrationDialect, MigrationDriver, MigrationPlan, MigrationPlanDialect, MigrationProject, MigrationRunOptions, MigrationStatus, MigrationTableOptions, ReferentialAction, SchemaObjectOperation, SchemaSnapshot, SnapshotableSchema, TableOptions, TableSnapshot, } from '@zmdb/migrations';
|
|
3
|
+
export { EmbeddedMigrationError, runEmbedded } from '@zmdb/migrations/embedded';
|
|
4
|
+
export type { EmbeddedConnection, EmbeddedMigration } from '@zmdb/migrations/embedded';
|
|
5
|
+
export { applyPush, checkProject, embedMigrations, embeddedOutputPath, exportSchema, generateMigration, isDestructive, planPush, pullDeclarations, renderEmbeddedModule, upgradeSnapshot, } from '@zmdb/migrations/files';
|
|
6
|
+
export type { CheckFinding, CheckFindingKind, CheckResult, EmbeddedModuleResult, EmbedOptions, EmbedResult, ExportResult, GenerateOptions, GenerateResult, PullExecution, PullFile, PullOptions, PullOutputFile, PullResult, PullSkippedFile, PushPlan, PushResult, UpgradeResult, } from '@zmdb/migrations/files';
|
|
7
|
+
export { CatalogRowError, createIntrospector, detectDrift, nullableIntegerField } from '@zmdb/migrations/introspect';
|
|
8
|
+
export type { CatalogColumnSnapshot, CatalogForeignKeySnapshot, CatalogIndexColumn, CatalogIndexSnapshot, CatalogSchemaSnapshot, CatalogTableSnapshot, CatalogWarning, DriftOptions, DriftReport, IntrospectionDriver, Introspector, IntrospectOptions, } from '@zmdb/migrations/introspect';
|
|
9
|
+
//# sourceMappingURL=migrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../src/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,aAAa,EACb,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,yBAAyB,EACzB,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,MAAM,EACN,EAAE,GACH,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EACL,SAAS,EACT,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,eAAe,EACf,cAAc,EACd,aAAa,EACb,QAAQ,EACR,WAAW,EACX,cAAc,EACd,UAAU,EACV,eAAe,EACf,QAAQ,EACR,UAAU,EACV,aAAa,GACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACrH,YAAY,EACV,qBAAqB,EACrB,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,GAClB,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Stable product facade for the independently usable migration engine.
|
|
2
|
+
//
|
|
3
|
+
// Keep this list explicit: a new implementation export must be deliberately
|
|
4
|
+
// admitted to the product vocabulary rather than leaking through `export *`.
|
|
5
|
+
export { CHANGE_PHASES, ddlType, diff, down, downTo, driverMigrationConnection, emitDown, emitSchemaObject, emitUp, ensureVersionTable, planMigration, rollbackTo, snapshot, status, up, } from '@zmdb/migrations';
|
|
6
|
+
export { EmbeddedMigrationError, runEmbedded } from '@zmdb/migrations/embedded';
|
|
7
|
+
export { applyPush, checkProject, embedMigrations, embeddedOutputPath, exportSchema, generateMigration, isDestructive, planPush, pullDeclarations, renderEmbeddedModule, upgradeSnapshot, } from '@zmdb/migrations/files';
|
|
8
|
+
export { CatalogRowError, createIntrospector, detectDrift, nullableIntegerField } from '@zmdb/migrations/introspect';
|
|
9
|
+
//# sourceMappingURL=migrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../src/migrations.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,EAAE;AACF,4EAA4E;AAC5E,6EAA6E;AAC7E,OAAO,EACL,aAAa,EACb,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,yBAAyB,EACzB,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,MAAM,EACN,EAAE,GACH,MAAM,kBAAkB,CAAC;AA2B1B,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEhF,OAAO,EACL,SAAS,EACT,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAqBhC,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/dist/orm.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { BaseRepository, IncompleteKeyError, ValidationError, batch, createLoaderScope, createTransactionalDb, defineRepository, markTransactionClosed, memoryStore, } from '@zmdb/orm';
|
|
2
|
+
export { type ActiveTransactionContext, type ArgsOf, type CacheInvalidationOptions, type CacheOptions, type CacheStore, type ClosedTransactionContext, type DatabaseVertical, type DefineRepositoryOptions, type Driver, type EntityLoader, type ExecuteOptions, type FilterDef, type FilterOverride, type FilterOverrides, type FilterParams, type FilterPredicate, type LoaderScope, type NumericColumnOf, type QueryMeta, type ReadOptions, type RelationLoader, type RelationValueOf, type RepositoryAggregateBuilder, type RepositoryOptions, type ResultOf, type StreamOptions, type TransactionContext, type TransactionOptions, type TransactionRetryPolicy, type TransactionState, type TransactionalDb, type TransactionalDriver, type TxConnection, type UpdatePatch, type UpsertOptions, type ValidationIssue, type WriteOptions, } from '@zmdb/orm';
|
|
3
|
+
export { makeRng, seedRows } from '@zmdb/orm/seeding';
|
|
4
|
+
export { type SeedOptions } from '@zmdb/orm/seeding';
|
|
5
|
+
export { OutboxSchema, createOutboxDispatcher, outboxWriter } from '@zmdb/orm/outbox';
|
|
6
|
+
export { type DeadOutboxRow, type OutboxDispatcher, type OutboxDispatcherOptions, type OutboxRow, type OutboxStatus, type OutboxWriter, } from '@zmdb/orm/outbox';
|
|
7
|
+
export { isWrite, withReplicas } from '@zmdb/orm/replicas';
|
|
8
|
+
export { type ReplicaOptions } from '@zmdb/orm/replicas';
|
|
9
|
+
export { makeEndpoint } from '@zmdb/web/integrations';
|
|
10
|
+
export { type EndpointResult, type Handler } from '@zmdb/web/integrations';
|
|
11
|
+
export { EventBus } from '@zmdb/orm/entity-modeling';
|
|
12
|
+
export { discriminatorFor, flattenEmbeddable, liftEmbeddable, rowToSubtype } from '@zmdb/schema/entity-modeling';
|
|
13
|
+
export { type LifecycleEvent, type Subscriber } from '@zmdb/orm/entity-modeling';
|
|
14
|
+
export { type SingleTableInheritance } from '@zmdb/schema/entity-modeling';
|
|
15
|
+
export { OUTBOX_TABLE, outboxCandidatesQuery, outboxClaimQuery, outboxMarkDeadQuery, outboxMarkDeliveredQuery, outboxMarkRetryQuery, outboxMigration, outboxPendingIndexDdl, outboxReadBackQuery, outboxTableDdl, } from '@zmdb/orm/outbox';
|
|
16
|
+
//# sourceMappingURL=orm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orm.d.ts","sourceRoot":"","sources":["../src/orm.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,KAAK,EACL,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,MAAM,EACX,KAAK,wBAAwB,EAC7B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,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,GACf,MAAM,kBAAkB,CAAC"}
|
package/dist/orm.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Repository, transaction, loading, caching, seeding, outbox, replica, and
|
|
2
|
+
// entity-modeling concern. Database clients remain selected driver subpaths.
|
|
3
|
+
export { BaseRepository, IncompleteKeyError, ValidationError, batch, createLoaderScope, createTransactionalDb, defineRepository, markTransactionClosed, memoryStore, } from '@zmdb/orm';
|
|
4
|
+
export {} from '@zmdb/orm';
|
|
5
|
+
export { makeRng, seedRows } from '@zmdb/orm/seeding';
|
|
6
|
+
export {} from '@zmdb/orm/seeding';
|
|
7
|
+
export { OutboxSchema, createOutboxDispatcher, outboxWriter } from '@zmdb/orm/outbox';
|
|
8
|
+
export {} from '@zmdb/orm/outbox';
|
|
9
|
+
export { isWrite, withReplicas } from '@zmdb/orm/replicas';
|
|
10
|
+
export {} from '@zmdb/orm/replicas';
|
|
11
|
+
export { makeEndpoint } from '@zmdb/web/integrations';
|
|
12
|
+
export {} from '@zmdb/web/integrations';
|
|
13
|
+
export { EventBus } from '@zmdb/orm/entity-modeling';
|
|
14
|
+
export { discriminatorFor, flattenEmbeddable, liftEmbeddable, rowToSubtype } from '@zmdb/schema/entity-modeling';
|
|
15
|
+
export {} from '@zmdb/orm/entity-modeling';
|
|
16
|
+
export {} from '@zmdb/schema/entity-modeling';
|
|
17
|
+
export { OUTBOX_TABLE, outboxCandidatesQuery, outboxClaimQuery, outboxMarkDeadQuery, outboxMarkDeliveredQuery, outboxMarkRetryQuery, outboxMigration, outboxPendingIndexDdl, outboxReadBackQuery, outboxTableDdl, } from '@zmdb/orm/outbox';
|
|
18
|
+
//# sourceMappingURL=orm.js.map
|
package/dist/orm.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orm.js","sourceRoot":"","sources":["../src/orm.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,6EAA6E;AAE7E,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,KAAK,EACL,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,GACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAsCN,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAoB,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAON,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAuB,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAqC,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjH,OAAO,EAAwC,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAA+B,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,GACf,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { aliasRow, attachPopulated, compilePopulate } from '@zmdb/orm/relations';
|
|
2
|
+
export { resolveRelation } from '@zmdb/schema/relations';
|
|
3
|
+
export { type JoinRow, type PopulateDialect, type PopulateQuery } from '@zmdb/orm/relations';
|
|
4
|
+
export { type ResolvedRelation } from '@zmdb/schema/relations';
|
|
5
|
+
//# sourceMappingURL=relations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../src/relations.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// zmdb/relations — explicit named re-exports of the relations surface.
|
|
2
|
+
//
|
|
3
|
+
// A relation is declared on the type it belongs to — `orders?: Order[] & OneToMany<'orders',
|
|
4
|
+
// 'userId'>`, from `@zmdb/schema/tags` — so there are no builders here to construct one
|
|
5
|
+
// with, and no relations map to pass anywhere. What a consumer needs is resolution and the
|
|
6
|
+
// two row helpers. `Populated`/`PopulatedEntity` live on `@zmdb/schema/derive` with the
|
|
7
|
+
// rest of the type derivation.
|
|
8
|
+
export { aliasRow, attachPopulated, compilePopulate } from '@zmdb/orm/relations';
|
|
9
|
+
export { resolveRelation } from '@zmdb/schema/relations';
|
|
10
|
+
export {} from '@zmdb/orm/relations';
|
|
11
|
+
export {} from '@zmdb/schema/relations';
|
|
12
|
+
//# sourceMappingURL=relations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relations.js","sourceRoot":"","sources":["../src/relations.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,EAAE;AACF,6FAA6F;AAC7F,wFAAwF;AACxF,2FAA2F;AAC3F,wFAAwF;AACxF,+BAA+B;AAC/B,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAA0D,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAyB,MAAM,wBAAwB,CAAC"}
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { ValidationError, claimsValidationIssues, validationIssuesOf } from '@zmdb/validator';
|
|
2
|
+
export { aliasRow, attachPopulated, compilePopulate } from '@zmdb/orm/relations';
|
|
3
|
+
export { applyOrderBy, applyPagination, compileWhere } from '@zmdb/orm/dto';
|
|
4
|
+
export { buildListResult, isRecord, resolveRelation, schemaOf } from '@zmdb/schema';
|
|
5
|
+
export { createStateUpdatePayload, defineEntityStateMachine, defineStateTransitions } from '@zmdb/app';
|
|
6
|
+
export { type AllowedTargetStates, type EntityStateMachine, type EntityStateMachineOptions, type StateTransitions, type StateUpdateDTO, } from '@zmdb/app';
|
|
7
|
+
export { type ColumnFlags, type ColumnMeta, type ColumnsMap, type CoreSchema, type CreateDTO, type DeclaredTable, type Entity, type ListDTO, type ListResult, type OrderByDTO, type PaginationDTO, type Populated, type PopulatedEntity, type PrimaryKeyOf, type ReadDTO, type ResolvedRelation, type SqlType, type TaggedSchema, type UpdateDTO, type ValidationRule, type WhereDTO, } from '@zmdb/schema';
|
|
8
|
+
export { type JoinRow, type PopulateDialect, type PopulateQuery } from '@zmdb/orm/relations';
|
|
9
|
+
export { type OrderTarget } from '@zmdb/orm/dto';
|
|
10
|
+
export { type ValidationIssue } from '@zmdb/validator';
|
|
11
|
+
export { type AnyRelation, type Codec, type ColumnSqlType, type Ext, type ForeignKey, type Fts, type HasDefault, type Length, type ManyToMany, type ManyToOne, type Max, type MaxLength, type Min, type MinLength, type NonNull, type Nullable, type Numeric, type OnDelete, type OnUpdate, type OneToMany, type OneToOne, type Pattern, type Physical, type PrimaryKey, type Proto, type ProtoField, type References, type ReferentialAction, type RelationKind, type Rowstore, type Rule, type Sensitive, type Serial, type ShardKey, type SoftDelete, type SortKey, type Sql, type Table, type Unique, type WireAs, } from '@zmdb/schema/tags';
|
|
12
|
+
export { type ColumnKeys, type DefaultKeys, type GetDTO, type GetOptions, type KeysCarrying, type NullableKeys, type PrimaryKeyKeys, type Projection, type RelationKeys, type SensitiveKeys, type SerialKeys, type SoftDeleteKeys, type UniqueKeys, type Wire, type WireCreateDTO, } from '@zmdb/schema/derive';
|
|
13
|
+
export { applyKeysetFilter } from '@zmdb/orm/dto';
|
|
14
|
+
export { buildSearchResult, decodeCursor, describeAggregate, encodeCursor, getResult, project } from '@zmdb/schema/dto';
|
|
15
|
+
export { type AggFn, type AggregateColumn, type AggregateResult, type AggregateSpec, type ComputedSpec, type FieldOps, type OffsetPage, type OrderBySpec, type OrderDir, type PaginationSpec, type SearchDTO, type SearchHit, type SearchResult, type SubqueryTarget, type UnknownRow, } from '@zmdb/schema/dto';
|
|
16
|
+
export { type WhereTarget } from '@zmdb/orm/dto';
|
|
17
|
+
export { KNOWN_CONSTRAINT_KINDS, PROTO_SCALARS, RELATION_KINDS, SQL_TYPES, appTypeOf, dbDecodedColumns, decodeDbValue, decodeWire, decodeWireValue, encodeWire, encodeWireValue, jsonSchemaForColumn, jsonSchemaFromIR, jsonSchemaFromShape, jsonSchemaFromTypeIR, objectTypeFromIR, objectTypeFromShape, schemaFromIR, shapeOfVariant, wireTypeOf, } from '@zmdb/schema/ir';
|
|
18
|
+
export { type ArrayIR, type CodecRegistry, type ColumnIR, type ConstraintKind, type Constraints, type ExtensionType, type ForeignKeyIR, type JsonValue, type Layer, type LiteralIR, type NullIR, type ObjectIR, type PropertyIR, type ProtoScalar, type RefIR, type RelationIR, type ScalarIR, type ScalarKind, type SchemaIR, type ShapeColumnIR, type ShapeIR, type TableOptions, type TagField, type TupleIR, type TypeIR, type UndefinedIR, type UnionIR, type UnknownIR, type UnsupportedIR, } from '@zmdb/schema/ir';
|
|
19
|
+
export { componentName, toJsonSchema, toJsonSchemaWithRelations, toListSchema, toOpenApiComponents, toSearchSchema, } from '@zmdb/schema/openapi';
|
|
20
|
+
export { type EnvelopeSchema, type JsonSchemaObject, type Variant } from '@zmdb/schema/openapi';
|
|
21
|
+
export { decodeValue, defineType, encodeValue, wireCodec } from '@zmdb/schema/custom-types';
|
|
22
|
+
export { type CustomType } from '@zmdb/schema/custom-types';
|
|
23
|
+
export { resolveNaming, snakeCase, snakeCasePlural } from '@zmdb/schema/naming';
|
|
24
|
+
export { type NamingStrategy, type NamingStrategyConfig, type NamingStrategyName } from '@zmdb/schema/naming';
|
|
25
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE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ist/schema.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Complete schema concern: declarations, derivation, DTOs, relations, IR,
|
|
2
|
+
// JSON Schema, custom codecs, and naming. Every name delegates by identity.
|
|
3
|
+
export { ValidationError, claimsValidationIssues, validationIssuesOf } from '@zmdb/validator';
|
|
4
|
+
export { aliasRow, attachPopulated, compilePopulate } from '@zmdb/orm/relations';
|
|
5
|
+
export { applyOrderBy, applyPagination, compileWhere } from '@zmdb/orm/dto';
|
|
6
|
+
export { buildListResult, isRecord, resolveRelation, schemaOf } from '@zmdb/schema';
|
|
7
|
+
export { createStateUpdatePayload, defineEntityStateMachine, defineStateTransitions } from '@zmdb/app';
|
|
8
|
+
export {} from '@zmdb/app';
|
|
9
|
+
export {} from '@zmdb/schema';
|
|
10
|
+
export {} from '@zmdb/orm/relations';
|
|
11
|
+
export {} from '@zmdb/orm/dto';
|
|
12
|
+
export {} from '@zmdb/validator';
|
|
13
|
+
export {} from '@zmdb/schema/tags';
|
|
14
|
+
export {} from '@zmdb/schema/derive';
|
|
15
|
+
export { applyKeysetFilter } from '@zmdb/orm/dto';
|
|
16
|
+
export { buildSearchResult, decodeCursor, describeAggregate, encodeCursor, getResult, project } from '@zmdb/schema/dto';
|
|
17
|
+
export {} from '@zmdb/schema/dto';
|
|
18
|
+
export {} from '@zmdb/orm/dto';
|
|
19
|
+
export { KNOWN_CONSTRAINT_KINDS, PROTO_SCALARS, RELATION_KINDS, SQL_TYPES, appTypeOf, dbDecodedColumns, decodeDbValue, decodeWire, decodeWireValue, encodeWire, encodeWireValue, jsonSchemaForColumn, jsonSchemaFromIR, jsonSchemaFromShape, jsonSchemaFromTypeIR, objectTypeFromIR, objectTypeFromShape, schemaFromIR, shapeOfVariant, wireTypeOf, } from '@zmdb/schema/ir';
|
|
20
|
+
export {} from '@zmdb/schema/ir';
|
|
21
|
+
export { componentName, toJsonSchema, toJsonSchemaWithRelations, toListSchema, toOpenApiComponents, toSearchSchema, } from '@zmdb/schema/openapi';
|
|
22
|
+
export {} from '@zmdb/schema/openapi';
|
|
23
|
+
export { decodeValue, defineType, encodeValue, wireCodec } from '@zmdb/schema/custom-types';
|
|
24
|
+
export {} from '@zmdb/schema/custom-types';
|
|
25
|
+
export { resolveNaming, snakeCase, snakeCasePlural } from '@zmdb/schema/naming';
|
|
26
|
+
export {} from '@zmdb/schema/naming';
|
|
27
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,4EAA4E;AAE5E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACvG,OAAO,EAMN,MAAM,WAAW,CAAC;AACnB,OAAO,EAsBN,MAAM,cAAc,CAAC;AACtB,OAAO,EAA0D,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAoB,MAAM,eAAe,CAAC;AACjD,OAAO,EAAwB,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAyCN,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAgBN,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACxH,OAAO,EAgBN,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAoB,MAAM,eAAe,CAAC;AAEjD,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EA8BN,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,aAAa,EACb,YAAY,EACZ,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAA4D,MAAM,sBAAsB,CAAC;AAEhG,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAmB,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAA2E,MAAM,qBAAqB,CAAC"}
|
package/dist/sql.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { DISTANCE_OPERATORS, EXPR, OP_MAP, QueryCompilerError, UnsupportedFeatureError, appendComment, coalesce, concat, createQueryCompiler, dec, defineSqlDialect, dialectCapabilities, dialectFamily, dialectName, dialectSupportsReturning, dialectTraits, distance, extendSqlDialect, formatPlaceholder, inc, isSqlDialect, mul, not, proposed, quoteColumn, quoteIdentifier, quoteTable, renderPredicate, renumberPlaceholders, serializeComment, stContains, stDWithin, withComments, } from '@zmdb/sql';
|
|
2
|
+
export { type AliasedColumn, type AliasedDistanceExpression, type ColumnExpr, type CommentKey, type CommentKeys, type CommentPairs, type ComparisonPredicate, type CompiledQuery, type DatabaseCapabilities, type DeleteBuilder, type DialectFeature, type DialectSqlType, type DialectTarget, type DialectTypeMap, type Direction, type DistanceExpression, type DistanceOp, type ExtensionColumnOf, type GeoJsonGeometry, type GeometryColumnOf, type GeometryValueOf, type InsertBuilder, type OnConflictBuilder, type Operator, type PaginationTail, type PlaceholderStyle, type Predicate, type PredicateGroup, type QueryCompiler, type QueryCompilerOptions, type QueryTelemetry, type ResolvedDialectTraits, type ReturningCapability, type ReturningStatement, type ReturningStyle, type SchemaObjectOperation, type SelectBuilder, type SetValue, type SpatialPredicate, type SqlDialect, type SqlDialectDefinition, type SqlDialectExtension, type UpdateBuilder, type VectorColumnOf, } from '@zmdb/sql';
|
|
3
|
+
export { escapeFts5Term, ftsSelectFrom } from '@zmdb/sql/fts';
|
|
4
|
+
export { type FtsOptions, type FtsSelect, type FtsTableOptions } from '@zmdb/sql/fts';
|
|
5
|
+
export { joinableSelectFrom } from '@zmdb/sql/joins';
|
|
6
|
+
export { type JoinCondition, type JoinKind, type JoinableSelect } from '@zmdb/sql/joins';
|
|
7
|
+
export { aggregateSelectFrom } from '@zmdb/sql/aggregations';
|
|
8
|
+
export { type AggregateSelect } from '@zmdb/sql/aggregations';
|
|
9
|
+
export { SET_KEYWORD, batch, setOperation } from '@zmdb/sql/set-ops';
|
|
10
|
+
export { type BatchHandle, type SetOp } from '@zmdb/sql/set-ops';
|
|
11
|
+
export { checkConstraintDdl, createExtensionDdl, createIndexDdl, createPolicyDdl, createRoutineDdl, createSchemaDdl, createSequenceDdl, createViewDdl, ddlType, dropRoutineDdl, dropViewDdl, enableRlsDdl, generatedColumnDdl, qualify, quoteId, replaceRoutineStatements, routineFingerprint, } from '@zmdb/sql/schema-objects';
|
|
12
|
+
export { type ExtensionDef, type GeneratedColumn, type IndexColumn, type IndexDef, type IndexMethod, type RlsPolicy, type RoutineDef, type RoutineSqlType, type SequenceDef, type ViewDef, } from '@zmdb/sql/schema-objects';
|
|
13
|
+
export { singularPascalCase } from '@zmdb/schema/naming';
|
|
14
|
+
//# sourceMappingURL=sql.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../src/sql.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EAClB,IAAI,EACJ,MAAM,EACN,kBAAkB,EAClB,uBAAuB,EACvB,aAAa,EACb,QAAQ,EACR,MAAM,EACN,mBAAmB,EACnB,GAAG,EACH,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,wBAAwB,EACxB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,GAAG,EACH,YAAY,EACZ,GAAG,EACH,GAAG,EACH,QAAQ,EACR,WAAW,EACX,eAAe,EACf,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,YAAY,GACb,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,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b,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/sql.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Direct SQL compilation and DDL concern. Migration execution and catalog
|
|
2
|
+
// introspection live under `@zmdb/core/migrations`.
|
|
3
|
+
export { DISTANCE_OPERATORS, EXPR, OP_MAP, QueryCompilerError, UnsupportedFeatureError, appendComment, coalesce, concat, createQueryCompiler, dec, defineSqlDialect, dialectCapabilities, dialectFamily, dialectName, dialectSupportsReturning, dialectTraits, distance, extendSqlDialect, formatPlaceholder, inc, isSqlDialect, mul, not, proposed, quoteColumn, quoteIdentifier, quoteTable, renderPredicate, renumberPlaceholders, serializeComment, stContains, stDWithin, withComments, } from '@zmdb/sql';
|
|
4
|
+
export {} from '@zmdb/sql';
|
|
5
|
+
export { escapeFts5Term, ftsSelectFrom } from '@zmdb/sql/fts';
|
|
6
|
+
export {} from '@zmdb/sql/fts';
|
|
7
|
+
export { joinableSelectFrom } from '@zmdb/sql/joins';
|
|
8
|
+
export {} from '@zmdb/sql/joins';
|
|
9
|
+
export { aggregateSelectFrom } from '@zmdb/sql/aggregations';
|
|
10
|
+
export {} from '@zmdb/sql/aggregations';
|
|
11
|
+
export { SET_KEYWORD, batch, setOperation } from '@zmdb/sql/set-ops';
|
|
12
|
+
export {} from '@zmdb/sql/set-ops';
|
|
13
|
+
export { checkConstraintDdl, createExtensionDdl, createIndexDdl, createPolicyDdl, createRoutineDdl, createSchemaDdl, createSequenceDdl, createViewDdl, ddlType, dropRoutineDdl, dropViewDdl, enableRlsDdl, generatedColumnDdl, qualify, quoteId, replaceRoutineStatements, routineFingerprint, } from '@zmdb/sql/schema-objects';
|
|
14
|
+
export {} from '@zmdb/sql/schema-objects';
|
|
15
|
+
export { singularPascalCase } from '@zmdb/schema/naming';
|
|
16
|
+
//# sourceMappingURL=sql.js.map
|
package/dist/sql.js.map
ADDED
|
@@ -0,0 +1 @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AC;AAClC,OAAO,EAWN,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/tags.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { type Codec, type Ext, type Fts, type HasDefault, type Length, type ManyToMany, type ManyToOne, type Max, type MaxLength, type Min, type MinLength, type NonNull, type Nullable, type Numeric, type OneToMany, type OneToOne, type Pattern, type Physical, type PrimaryKey, type Proto, type ProtoField, type References, type Rule, type Sensitive, type Serial, type Sql, type Table, type Unique, } from '@zmdb/schema/tags';
|
|
2
|
+
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../src/tags.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,GAAG,EACR,KAAK,UAAU,EACf,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,IAAI,EACT,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,KAAK,EACV,KAAK,MAAM,GACZ,MAAM,mBAAmB,CAAC"}
|
package/dist/tags.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// zmdb/tags — explicit named type exports for schema declarations.
|
|
2
|
+
// The inline type specifiers erase their bindings. With verbatimModuleSyntax,
|
|
3
|
+
// the emitted module retains an empty re-export from @zmdb/schema/tags.
|
|
4
|
+
export {} from '@zmdb/schema/tags';
|
|
5
|
+
//# sourceMappingURL=tags.js.map
|
package/dist/tags.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.js","sourceRoot":"","sources":["../src/tags.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,8EAA8E;AAC9E,wEAAwE;AACxE,OAAO,EA6BN,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const cockroachDialect: import("@zmdb/sql").SqlDialect<"cockroach">;
|
|
2
|
+
export declare const mssqlDialect: import("@zmdb/sql").SqlDialect<"mssql">;
|
|
3
|
+
export declare const mysqlDialect: import("@zmdb/sql").SqlDialect<"mysql">;
|
|
4
|
+
export declare const postgresDialect: import("@zmdb/sql").SqlDialect<"postgres">;
|
|
5
|
+
export declare const singlestoreDialect: import("@zmdb/sql").SqlDialect<"singlestore">;
|
|
6
|
+
export declare const sqliteDialect: import("@zmdb/sql").SqlDialect<"sqlite">;
|
|
7
|
+
export declare const officialDialects: Readonly<{
|
|
8
|
+
cockroach: import("@zmdb/sql").SqlDialect<"cockroach">;
|
|
9
|
+
mssql: import("@zmdb/sql").SqlDialect<"mssql">;
|
|
10
|
+
mysql: import("@zmdb/sql").SqlDialect<"mysql">;
|
|
11
|
+
postgres: import("@zmdb/sql").SqlDialect<"postgres">;
|
|
12
|
+
singlestore: import("@zmdb/sql").SqlDialect<"singlestore">;
|
|
13
|
+
sqlite: import("@zmdb/sql").SqlDialect<"sqlite">;
|
|
14
|
+
}>;
|
|
15
|
+
export type OfficialDialectName = keyof typeof officialDialects;
|
|
16
|
+
//# sourceMappingURL=official-dialects.fixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"official-dialects.fixture.d.ts","sourceRoot":"","sources":["../../src/testing/official-dialects.fixture.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB,6CAAY,CAAC;AAC1C,eAAO,MAAM,YAAY,yCAAQ,CAAC;AAClC,eAAO,MAAM,YAAY,yCAAQ,CAAC;AAClC,eAAO,MAAM,eAAe,4CAAW,CAAC;AACxC,eAAO,MAAM,kBAAkB,+CAAc,CAAC;AAC9C,eAAO,MAAM,aAAa,0CAAS,CAAC;AAEpC,eAAO,MAAM,gBAAgB;;;;;;;EAO3B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { cockroach } from '@zmdb/cockroach';
|
|
2
|
+
import { mssql } from '@zmdb/mssql';
|
|
3
|
+
import { mysql } from '@zmdb/mysql';
|
|
4
|
+
import { postgres } from '@zmdb/postgres';
|
|
5
|
+
import { singlestore } from '@zmdb/singlestore';
|
|
6
|
+
import { sqlite } from '@zmdb/sqlite';
|
|
7
|
+
export const cockroachDialect = cockroach;
|
|
8
|
+
export const mssqlDialect = mssql;
|
|
9
|
+
export const mysqlDialect = mysql;
|
|
10
|
+
export const postgresDialect = postgres;
|
|
11
|
+
export const singlestoreDialect = singlestore;
|
|
12
|
+
export const sqliteDialect = sqlite;
|
|
13
|
+
export const officialDialects = Object.freeze({
|
|
14
|
+
cockroach: cockroachDialect,
|
|
15
|
+
mssql: mssqlDialect,
|
|
16
|
+
mysql: mysqlDialect,
|
|
17
|
+
postgres: postgresDialect,
|
|
18
|
+
singlestore: singlestoreDialect,
|
|
19
|
+
sqlite: sqliteDialect,
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=official-dialects.fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"official-dialects.fixture.js","sourceRoot":"","sources":["../../src/testing/official-dialects.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC;AAClC,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AACxC,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAC9C,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC;AAEpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE,eAAe;IACzB,WAAW,EAAE,kBAAkB;IAC/B,MAAM,EAAE,aAAa;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { schemaIrsFrom, schemasFrom, schemasFromFiles } from '@zmdb/compiler/testing';
|
|
2
|
+
export type { SchemasFromFilesOptions, SchemasFromOptions } from '@zmdb/compiler/testing';
|
|
3
|
+
export { createTestApp } from '@zmdb/web/testing';
|
|
4
|
+
export type { TestApp, TestAppOptions } from '@zmdb/web/testing';
|
|
5
|
+
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACtF,YAAY,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE1F,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/testing.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":"AAAA,qEAAqE;AAErE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAGtF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { AssertError, assert, assertEquals, assertShallow, equals, failWith, is, isShallow, issuesFor, random, validate, validateShallow, } from '@zmdb/validator';
|
|
2
|
+
export { type TypeIR, type ValidateResult, type ValidationIssue } from '@zmdb/validator';
|
|
3
|
+
export { coerce, discriminated, evalRule, refine, transform, union, validateObject } from '@zmdb/validator/advanced';
|
|
4
|
+
export { type Brand, type DiscriminatedRule, type ObjectMode, type RefinePredicate, type RefineRule, type TransformFn, type TransformRule, type UnionRule, } from '@zmdb/validator/advanced';
|
|
5
|
+
export { assertStringify, decode, parse, stringify } from '@zmdb/validator/serialization';
|
|
6
|
+
export { type ParseResult } from '@zmdb/validator/serialization';
|
|
7
|
+
export { MAX_REGEX_CACHE_SIZE, ValidationError, getCachedRegExp, getEnumSet, getRegExp, tags, validatePatternComplexity, } from '@zmdb/validator';
|
|
8
|
+
export { type Rule } from '@zmdb/validator';
|
|
9
|
+
//# sourceMappingURL=validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../src/validator.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EACX,MAAM,EACN,YAAY,EACZ,aAAa,EACb,MAAM,EACN,QAAQ,EACR,EAAE,EACF,SAAS,EACT,SAAS,EACT,MAAM,EACN,QAAQ,EACR,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEzF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrH,OAAO,EACL,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,SAAS,GACf,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,UAAU,EACV,SAAS,EACT,IAAI,EACJ,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Runtime validation, rule composition, and serialization. Compiler-backed
|
|
2
|
+
// reflection and transforms live under `@zmdb/core/compiler`.
|
|
3
|
+
export { AssertError, assert, assertEquals, assertShallow, equals, failWith, is, isShallow, issuesFor, random, validate, validateShallow, } from '@zmdb/validator';
|
|
4
|
+
export {} from '@zmdb/validator';
|
|
5
|
+
export { coerce, discriminated, evalRule, refine, transform, union, validateObject } from '@zmdb/validator/advanced';
|
|
6
|
+
export {} from '@zmdb/validator/advanced';
|
|
7
|
+
export { assertStringify, decode, parse, stringify } from '@zmdb/validator/serialization';
|
|
8
|
+
export {} from '@zmdb/validator/serialization';
|
|
9
|
+
export { MAX_REGEX_CACHE_SIZE, ValidationError, getCachedRegExp, getEnumSet, getRegExp, tags, validatePatternComplexity, } from '@zmdb/validator';
|
|
10
|
+
export {} from '@zmdb/validator';
|
|
11
|
+
//# sourceMappingURL=validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validator.js","sourceRoot":"","sources":["../src/validator.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,8DAA8D;AAE9D,OAAO,EACL,WAAW,EACX,MAAM,EACN,YAAY,EACZ,aAAa,EACb,MAAM,EACN,QAAQ,EACR,EAAE,EACF,SAAS,EACT,SAAS,EACT,MAAM,EACN,QAAQ,EACR,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAA0D,MAAM,iBAAiB,CAAC;AAEzF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrH,OAAO,EASN,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAoB,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,UAAU,EACV,SAAS,EACT,IAAI,EACJ,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAa,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-app.d.ts","sourceRoot":"","sources":["../src/web-app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,YAAY,EACV,sBAAsB,EACtB,YAAY,EACZ,UAAU,EACV,cAAc,EACd,qBAAqB,GACtB,MAAM,eAAe,CAAC"}
|
package/dist/web-app.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-app.js","sourceRoot":"","sources":["../src/web-app.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-compression.d.ts","sourceRoot":"","sources":["../src/web-compression.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-compression.js","sourceRoot":"","sources":["../src/web-compression.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-context.d.ts","sourceRoot":"","sources":["../src/web-context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAChG,YAAY,EAAE,eAAe,EAAE,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-context.js","sourceRoot":"","sources":["../src/web-context.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { compileHttpContracts, generateHttpClient, HTTP_CLIENT_GENERATOR_VERSION } from '@zmdb/web/contract/compiler';
|
|
2
|
+
export type { CompileHttpContractsOptions, GeneratedHttpClientModule, HttpContractSource, } from '@zmdb/web/contract/compiler';
|
|
3
|
+
//# sourceMappingURL=web-contract-compiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-contract-compiler.d.ts","sourceRoot":"","sources":["../src/web-contract-compiler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AACtH,YAAY,EACV,2BAA2B,EAC3B,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-contract-compiler.js","sourceRoot":"","sources":["../src/web-contract-compiler.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { defineHttpContract, httpOperation } from '@zmdb/web/contract';
|
|
2
|
+
export type { AuthorizationCodeFlow, ClientCredentialsFlow, CompiledHttpContract, CompiledHttpOperation, HttpBodyDeclaration, HttpBodyIR, HttpBodyKind, HttpContractDeclaration, HttpContractIR, HttpController, HttpMethod, HttpOperationDeclaration, HttpOperationIR, HttpOperationTypes, HttpParameterDeclaration, HttpParameterIR, HttpRequestBodyDeclaration, HttpRequestBodyIR, HttpResponseDeclaration, HttpResponseHeaderDeclaration, HttpResponseHeaderIR, HttpResponseIR, HttpTypeIR, HttpVersionDeclaration, HttpVersionIR, ImplicitFlow, JsonValue, OAuthFlow, OAuthFlows, PasswordFlow, SecurityRequirement, SecurityScheme, } from '@zmdb/web/contract';
|
|
3
|
+
//# sourceMappingURL=web-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-contract.d.ts","sourceRoot":"","sources":["../src/web-contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACvE,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,uBAAuB,EACvB,cAAc,EACd,cAAc,EACd,UAAU,EACV,wBAAwB,EACxB,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,eAAe,EACf,0BAA0B,EAC1B,iBAAiB,EACjB,uBAAuB,EACvB,6BAA6B,EAC7B,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,sBAAsB,EACtB,aAAa,EACb,YAAY,EACZ,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,cAAc,GACf,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-contract.js","sourceRoot":"","sources":["../src/web-contract.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-csrf.d.ts","sourceRoot":"","sources":["../src/web-csrf.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/web-csrf.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-csrf.js","sourceRoot":"","sources":["../src/web-csrf.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
|