@danceroutine/tango-schema 1.11.0 → 1.11.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.
Files changed (77) hide show
  1. package/dist/chunk-D7D4PA-g.js +13 -0
  2. package/dist/domain/index.d.ts +2 -13
  3. package/dist/domain/index.js +7 -1
  4. package/dist/domain/index.js.map +1 -0
  5. package/dist/index-Bhh0b304.d.ts +246 -0
  6. package/dist/index-DXFf5XNn.d.ts +747 -0
  7. package/dist/index.d.ts +3 -9
  8. package/dist/index.js +3 -4
  9. package/dist/model/index.d.ts +3 -25
  10. package/dist/model/index.js +2 -3
  11. package/dist/{model-upj6jxaK.js → model-aRAusQPz.js} +199 -175
  12. package/dist/model-aRAusQPz.js.map +1 -0
  13. package/package.json +4 -4
  14. package/dist/domain/DeleteReferentialAction.d.ts +0 -1
  15. package/dist/domain/Field.d.ts +0 -20
  16. package/dist/domain/FieldType.d.ts +0 -2
  17. package/dist/domain/IndexDef.d.ts +0 -6
  18. package/dist/domain/Model.d.ts +0 -35
  19. package/dist/domain/ModelMetadata.d.ts +0 -16
  20. package/dist/domain/ModelWriteHooks.d.ts +0 -96
  21. package/dist/domain/RelationDef.d.ts +0 -7
  22. package/dist/domain/RelationType.d.ts +0 -2
  23. package/dist/domain/UpdateReferentialAction.d.ts +0 -1
  24. package/dist/domain/internal/InternalFieldType.d.ts +0 -10
  25. package/dist/domain/internal/InternalReferentialAction.d.ts +0 -6
  26. package/dist/domain/internal/InternalRelationType.d.ts +0 -5
  27. package/dist/domain/internal/zod/hasConstructorName.d.ts +0 -1
  28. package/dist/domain/internal/zod/index.d.ts +0 -13
  29. package/dist/domain/internal/zod/isDate.d.ts +0 -1
  30. package/dist/domain/internal/zod/isZodArray.d.ts +0 -2
  31. package/dist/domain/internal/zod/isZodBoolean.d.ts +0 -2
  32. package/dist/domain/internal/zod/isZodDate.d.ts +0 -2
  33. package/dist/domain/internal/zod/isZodDefault.d.ts +0 -2
  34. package/dist/domain/internal/zod/isZodNullable.d.ts +0 -2
  35. package/dist/domain/internal/zod/isZodNumber.d.ts +0 -2
  36. package/dist/domain/internal/zod/isZodObject.d.ts +0 -2
  37. package/dist/domain/internal/zod/isZodOptional.d.ts +0 -2
  38. package/dist/domain/internal/zod/isZodString.d.ts +0 -2
  39. package/dist/domain-Cufz6y1q.js +0 -7
  40. package/dist/domain-Cufz6y1q.js.map +0 -1
  41. package/dist/model/Model.d.ts +0 -11
  42. package/dist/model/ModelAugmentorRegistry.d.ts +0 -11
  43. package/dist/model/ModelDefinition.d.ts +0 -23
  44. package/dist/model/constraints/Constraints.d.ts +0 -19
  45. package/dist/model/constraints/Indexes.d.ts +0 -4
  46. package/dist/model/constraints/index.d.ts +0 -6
  47. package/dist/model/decorators/Decorators.d.ts +0 -83
  48. package/dist/model/decorators/domain/DecoratedFieldKind.d.ts +0 -6
  49. package/dist/model/decorators/domain/ModelRef.d.ts +0 -11
  50. package/dist/model/decorators/domain/RelationDecoratedSchema.d.ts +0 -24
  51. package/dist/model/decorators/domain/RelationDecoratorConfig.d.ts +0 -39
  52. package/dist/model/decorators/domain/TangoFieldMeta.d.ts +0 -89
  53. package/dist/model/decorators/domain/ZodTypeAny.d.ts +0 -2
  54. package/dist/model/decorators/index.d.ts +0 -13
  55. package/dist/model/fields/FieldMetadataStore.d.ts +0 -4
  56. package/dist/model/fields/FinalizedStorageArtifacts.d.ts +0 -11
  57. package/dist/model/fields/inferFieldsFromSchema.d.ts +0 -15
  58. package/dist/model/internal/InternalSchemaModel.d.ts +0 -29
  59. package/dist/model/meta/Meta.d.ts +0 -22
  60. package/dist/model/meta/index.d.ts +0 -5
  61. package/dist/model/registry/GeneratedRelationRegistryArtifact.d.ts +0 -10
  62. package/dist/model/registry/ModelRegistry.d.ts +0 -129
  63. package/dist/model/registry/ResolvedRelationGraphArtifactFactory.d.ts +0 -13
  64. package/dist/model/registry/ResolvedRelationGraphSnapshot.d.ts +0 -110
  65. package/dist/model/registry/index.d.ts +0 -8
  66. package/dist/model/relations/ImplicitManyToManyIdentifier.d.ts +0 -45
  67. package/dist/model/relations/ImplicitManyToManyThroughFactory.d.ts +0 -14
  68. package/dist/model/relations/NormalizedRelationStorageDescriptor.d.ts +0 -36
  69. package/dist/model/relations/RelationBuilder.d.ts +0 -19
  70. package/dist/model/relations/RelationDescriptorNormalizer.d.ts +0 -30
  71. package/dist/model/relations/RelationSpec.d.ts +0 -48
  72. package/dist/model/relations/ResolvedRelationGraph.d.ts +0 -49
  73. package/dist/model/relations/ResolvedRelationGraphBuilder.d.ts +0 -54
  74. package/dist/model/relations/SchemaNaming.d.ts +0 -12
  75. package/dist/model/relations/index.d.ts +0 -13
  76. package/dist/model-upj6jxaK.js.map +0 -1
  77. package/dist/resolveSchemaModuleEntrypoint.d.ts +0 -20
package/dist/index.d.ts CHANGED
@@ -1,9 +1,3 @@
1
- /**
2
- * Bundled exports for Django-style domain drill-down imports, plus curated
3
- * top-level symbols for TS-native ergonomic imports.
4
- */
5
- export * as domain from './domain/index';
6
- export * as model from './model/index';
7
- export type { DeleteReferentialAction, Field, FieldType, IndexDef, ModelHookModel, ModelKeyOf, ModelAugmentations, ModelMetadata, PersistedModelOutput, ModelWriteHookManager, ModelWriteHooks, BeforeCreateHookArgs, AfterCreateHookArgs, BeforeUpdateHookArgs, AfterUpdateHookArgs, BeforeDeleteHookArgs, AfterDeleteHookArgs, BeforeBulkCreateHookArgs, AfterBulkCreateHookArgs, RelationDef, RelationType, UpdateReferentialAction, } from './domain/index';
8
- export { Model, RelationBuilder, ModelRegistry, ImplicitManyToManyIdentifier, GENERATED_RELATION_REGISTRY_DIRNAME, GENERATED_RELATION_REGISTRY_METADATA_FILENAME, GENERATED_RELATION_REGISTRY_METADATA_VERSION, GENERATED_RELATION_REGISTRY_TYPES_FILENAME, ResolvedRelationGraphArtifactFactory, registerModelAugmentor, Constraints, Decorators, Indexes, Meta, c, i, m, t, type ModelDefinition, type ForeignKeyDecoratorConfig, type FieldDecoratorBuilder, type DecoratedFieldKind, type ManyToManyDecoratorConfig, type ModelRef, type ModelRefTarget, type GeneratedRelationRegistryArtifact, type OneToOneDecoratorConfig, type RelationDecoratedSchema, type ResolvedRelationGraphSnapshot, type ResolvedRelationGraphSnapshotModel, type ResolvedRelationGraphSnapshotRelation, type TypedModelRef, } from './model/index';
9
- export { createSchemaModuleAliases, resolveSchemaModuleEntrypoint } from './resolveSchemaModuleEntrypoint';
1
+ import { A as FieldType, C as ModelMetadata, D as RelationType, E as Field, O as UpdateReferentialAction, S as ModelWriteHooks, T as IndexDef, _ as BeforeUpdateHookArgs, a as PersistedModelOutput, c as DecoratedFieldKind, d as AfterCreateHookArgs, f as AfterDeleteHookArgs, g as BeforeDeleteHookArgs, h as BeforeCreateHookArgs, i as ModelKeyOf, k as DeleteReferentialAction, m as BeforeBulkCreateHookArgs, o as RelationDecoratedSchema, p as AfterUpdateHookArgs, r as ModelAugmentations, t as index_d_exports, u as AfterBulkCreateHookArgs, v as ModelHookModel, w as RelationDef, y as ModelWriteHookManager } from "./index-Bhh0b304.js";
2
+ import { A as Decorators, E as Meta, F as OneToOneDecoratorConfig, I as ModelRef, L as ModelRefTarget, N as ForeignKeyDecoratorConfig, P as ManyToManyDecoratorConfig, R as TypedModelRef, S as Indexes, _ as ModelRegistry, a as ModelDefinition, b as ResolvedRelationGraphSnapshotRelation, d as GENERATED_RELATION_REGISTRY_METADATA_FILENAME, f as GENERATED_RELATION_REGISTRY_METADATA_VERSION, g as resolveSchemaModuleEntrypoint, h as createSchemaModuleAliases, i as ImplicitManyToManyIdentifier, j as FieldDecoratorBuilder, l as ResolvedRelationGraphArtifactFactory, m as GeneratedRelationRegistryArtifact, n as registerModelAugmentor, p as GENERATED_RELATION_REGISTRY_TYPES_FILENAME, r as Model, s as RelationBuilder, t as index_d_exports$1, u as GENERATED_RELATION_REGISTRY_DIRNAME, v as ResolvedRelationGraphSnapshot, w as Constraints, y as ResolvedRelationGraphSnapshotModel } from "./index-DXFf5XNn.js";
3
+ export { type AfterBulkCreateHookArgs, type AfterCreateHookArgs, type AfterDeleteHookArgs, type AfterUpdateHookArgs, type BeforeBulkCreateHookArgs, type BeforeCreateHookArgs, type BeforeDeleteHookArgs, type BeforeUpdateHookArgs, Constraints, Constraints as c, type DecoratedFieldKind, Decorators, Decorators as t, type DeleteReferentialAction, type Field, type FieldDecoratorBuilder, type FieldType, type ForeignKeyDecoratorConfig, GENERATED_RELATION_REGISTRY_DIRNAME, GENERATED_RELATION_REGISTRY_METADATA_FILENAME, GENERATED_RELATION_REGISTRY_METADATA_VERSION, GENERATED_RELATION_REGISTRY_TYPES_FILENAME, type GeneratedRelationRegistryArtifact, ImplicitManyToManyIdentifier, type IndexDef, Indexes, Indexes as i, type ManyToManyDecoratorConfig, Meta, Meta as m, Model, type ModelAugmentations, type ModelDefinition, type ModelHookModel, type ModelKeyOf, type ModelMetadata, type ModelRef, type ModelRefTarget, ModelRegistry, type ModelWriteHookManager, type ModelWriteHooks, type OneToOneDecoratorConfig, type PersistedModelOutput, RelationBuilder, type RelationDecoratedSchema, type RelationDef, type RelationType, ResolvedRelationGraphArtifactFactory, type ResolvedRelationGraphSnapshot, type ResolvedRelationGraphSnapshotModel, type ResolvedRelationGraphSnapshotRelation, type TypedModelRef, type UpdateReferentialAction, createSchemaModuleAliases, index_d_exports as domain, index_d_exports$1 as model, registerModelAugmentor, resolveSchemaModuleEntrypoint };
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import { Constraints, Decorators, GENERATED_RELATION_REGISTRY_DIRNAME, GENERATED_RELATION_REGISTRY_METADATA_FILENAME, GENERATED_RELATION_REGISTRY_METADATA_VERSION, GENERATED_RELATION_REGISTRY_TYPES_FILENAME, ImplicitManyToManyIdentifier, Indexes, Meta, Model, ModelRegistry, RelationBuilder, ResolvedRelationGraphArtifactFactory, createSchemaModuleAliases, model_exports, registerModelAugmentor, resolveSchemaModuleEntrypoint } from "./model-upj6jxaK.js";
2
- import { domain_exports } from "./domain-Cufz6y1q.js";
3
-
4
- export { Constraints, Decorators, GENERATED_RELATION_REGISTRY_DIRNAME, GENERATED_RELATION_REGISTRY_METADATA_FILENAME, GENERATED_RELATION_REGISTRY_METADATA_VERSION, GENERATED_RELATION_REGISTRY_TYPES_FILENAME, ImplicitManyToManyIdentifier, Indexes, Meta, Model, ModelRegistry, RelationBuilder, ResolvedRelationGraphArtifactFactory, Constraints as c, createSchemaModuleAliases, domain_exports as domain, Indexes as i, Meta as m, model_exports as model, registerModelAugmentor, resolveSchemaModuleEntrypoint, Decorators as t };
1
+ import { t as domain_exports } from "./domain/index.js";
2
+ import { S as Decorators, _ as Indexes, b as Meta, c as ModelRegistry, d as GENERATED_RELATION_REGISTRY_METADATA_FILENAME, f as GENERATED_RELATION_REGISTRY_METADATA_VERSION, h as RelationBuilder, l as ResolvedRelationGraphArtifactFactory, m as ImplicitManyToManyIdentifier, n as Model, o as createSchemaModuleAliases, p as GENERATED_RELATION_REGISTRY_TYPES_FILENAME, r as registerModelAugmentor, s as resolveSchemaModuleEntrypoint, t as model_exports, u as GENERATED_RELATION_REGISTRY_DIRNAME, v as Constraints } from "./model-aRAusQPz.js";
3
+ export { Constraints, Constraints as c, Decorators, Decorators as t, GENERATED_RELATION_REGISTRY_DIRNAME, GENERATED_RELATION_REGISTRY_METADATA_FILENAME, GENERATED_RELATION_REGISTRY_METADATA_VERSION, GENERATED_RELATION_REGISTRY_TYPES_FILENAME, ImplicitManyToManyIdentifier, Indexes, Indexes as i, Meta, Meta as m, Model, ModelRegistry, RelationBuilder, ResolvedRelationGraphArtifactFactory, createSchemaModuleAliases, domain_exports as domain, model_exports as model, registerModelAugmentor, resolveSchemaModuleEntrypoint };
@@ -1,25 +1,3 @@
1
- /**
2
- * Domain boundary barrel: centralizes this subdomain's public contract.
3
- *
4
- * Tango keeps both flat exports and namespaced subdomain barrels here so
5
- * callers can choose TS-native direct imports or Django-style drill-down
6
- * access through the bundled `model` namespace at the package root.
7
- */
8
- export * as decorators from './decorators/index';
9
- export * as meta from './meta/index';
10
- export * as constraints from './constraints/index';
11
- export * as registry from './registry/index';
12
- export * as relations from './relations/index';
13
- export type { ModelDefinition } from './ModelDefinition';
14
- export { RelationBuilder } from './relations/index';
15
- export { ImplicitManyToManyIdentifier } from './relations/ImplicitManyToManyIdentifier';
16
- export { Model } from './Model';
17
- export { registerModelAugmentor } from './ModelAugmentorRegistry';
18
- export { Decorators, t } from './decorators/index';
19
- export type { TangoDecorators, FieldDecoratorBuilder, DecoratedFieldKind, ModelRef, ModelRefTarget, RelationDecoratedSchema, TypedModelRef, ForeignKeyDecoratorConfig, OneToOneDecoratorConfig, ManyToManyDecoratorConfig, } from './decorators/index';
20
- export { createTypedModelRef, InternalDecoratedFieldKind, isTypedModelRef } from './decorators/index';
21
- export { Meta, m } from './meta/index';
22
- export type { ModelConstraint, ModelMetaFragment } from './meta/index';
23
- export { Constraints, Indexes, c, i } from './constraints/index';
24
- export type { ConstraintDefinition } from './constraints/index';
25
- export { ModelRegistry, createSchemaModuleAliases, resolveSchemaModuleEntrypoint, GENERATED_RELATION_REGISTRY_DIRNAME, GENERATED_RELATION_REGISTRY_METADATA_FILENAME, GENERATED_RELATION_REGISTRY_METADATA_VERSION, GENERATED_RELATION_REGISTRY_TYPES_FILENAME, ResolvedRelationGraphArtifactFactory, type GeneratedRelationRegistryArtifact, type ResolvedRelationGraphSnapshot, type ResolvedRelationGraphSnapshotModel, type ResolvedRelationGraphSnapshotRelation, } from './registry/index';
1
+ import { c as DecoratedFieldKind, l as InternalDecoratedFieldKind, o as RelationDecoratedSchema } from "../index-Bhh0b304.js";
2
+ import { A as Decorators, B as isTypedModelRef, C as ConstraintDefinition, D as ModelConstraint, E as Meta, F as OneToOneDecoratorConfig, I as ModelRef, L as ModelRefTarget, M as TangoDecorators, N as ForeignKeyDecoratorConfig, O as ModelMetaFragment, P as ManyToManyDecoratorConfig, R as TypedModelRef, S as Indexes, T as index_d_exports$2, _ as ModelRegistry, a as ModelDefinition, b as ResolvedRelationGraphSnapshotRelation, c as index_d_exports$3, d as GENERATED_RELATION_REGISTRY_METADATA_FILENAME, f as GENERATED_RELATION_REGISTRY_METADATA_VERSION, g as resolveSchemaModuleEntrypoint, h as createSchemaModuleAliases, i as ImplicitManyToManyIdentifier, j as FieldDecoratorBuilder, k as index_d_exports$1, l as ResolvedRelationGraphArtifactFactory, m as GeneratedRelationRegistryArtifact, n as registerModelAugmentor, o as index_d_exports$4, p as GENERATED_RELATION_REGISTRY_TYPES_FILENAME, r as Model, s as RelationBuilder, u as GENERATED_RELATION_REGISTRY_DIRNAME, v as ResolvedRelationGraphSnapshot, w as Constraints, x as index_d_exports, y as ResolvedRelationGraphSnapshotModel, z as createTypedModelRef } from "../index-DXFf5XNn.js";
3
+ export { type ConstraintDefinition, Constraints, Constraints as c, type DecoratedFieldKind, Decorators, Decorators as t, type FieldDecoratorBuilder, type ForeignKeyDecoratorConfig, GENERATED_RELATION_REGISTRY_DIRNAME, GENERATED_RELATION_REGISTRY_METADATA_FILENAME, GENERATED_RELATION_REGISTRY_METADATA_VERSION, GENERATED_RELATION_REGISTRY_TYPES_FILENAME, type GeneratedRelationRegistryArtifact, ImplicitManyToManyIdentifier, Indexes, Indexes as i, InternalDecoratedFieldKind, type ManyToManyDecoratorConfig, Meta, Meta as m, Model, type ModelConstraint, type ModelDefinition, type ModelMetaFragment, type ModelRef, type ModelRefTarget, ModelRegistry, type OneToOneDecoratorConfig, RelationBuilder, type RelationDecoratedSchema, ResolvedRelationGraphArtifactFactory, type ResolvedRelationGraphSnapshot, type ResolvedRelationGraphSnapshotModel, type ResolvedRelationGraphSnapshotRelation, type TangoDecorators, type TypedModelRef, index_d_exports as constraints, createSchemaModuleAliases, createTypedModelRef, index_d_exports$1 as decorators, isTypedModelRef, index_d_exports$2 as meta, registerModelAugmentor, index_d_exports$3 as registry, index_d_exports$4 as relations, resolveSchemaModuleEntrypoint };
@@ -1,3 +1,2 @@
1
- import { Constraints, Decorators, GENERATED_RELATION_REGISTRY_DIRNAME, GENERATED_RELATION_REGISTRY_METADATA_FILENAME, GENERATED_RELATION_REGISTRY_METADATA_VERSION, GENERATED_RELATION_REGISTRY_TYPES_FILENAME, ImplicitManyToManyIdentifier, Indexes, InternalDecoratedFieldKind, Meta, Model, ModelRegistry, RelationBuilder, ResolvedRelationGraphArtifactFactory, constraints_exports, createSchemaModuleAliases, createTypedModelRef, decorators_exports, isTypedModelRef, meta_exports, registerModelAugmentor, registry_exports, relations_exports, resolveSchemaModuleEntrypoint } from "../model-upj6jxaK.js";
2
-
3
- export { Constraints, Decorators, GENERATED_RELATION_REGISTRY_DIRNAME, GENERATED_RELATION_REGISTRY_METADATA_FILENAME, GENERATED_RELATION_REGISTRY_METADATA_VERSION, GENERATED_RELATION_REGISTRY_TYPES_FILENAME, ImplicitManyToManyIdentifier, Indexes, InternalDecoratedFieldKind, Meta, Model, ModelRegistry, RelationBuilder, ResolvedRelationGraphArtifactFactory, Constraints as c, constraints_exports as constraints, createSchemaModuleAliases, createTypedModelRef, decorators_exports as decorators, Indexes as i, isTypedModelRef, Meta as m, meta_exports as meta, registerModelAugmentor, registry_exports as registry, relations_exports as relations, resolveSchemaModuleEntrypoint, Decorators as t };
1
+ import { C as InternalDecoratedFieldKind, S as Decorators, T as isTypedModelRef, _ as Indexes, a as registry_exports, b as Meta, c as ModelRegistry, d as GENERATED_RELATION_REGISTRY_METADATA_FILENAME, f as GENERATED_RELATION_REGISTRY_METADATA_VERSION, g as constraints_exports, h as RelationBuilder, i as relations_exports, l as ResolvedRelationGraphArtifactFactory, m as ImplicitManyToManyIdentifier, n as Model, o as createSchemaModuleAliases, p as GENERATED_RELATION_REGISTRY_TYPES_FILENAME, r as registerModelAugmentor, s as resolveSchemaModuleEntrypoint, u as GENERATED_RELATION_REGISTRY_DIRNAME, v as Constraints, w as createTypedModelRef, x as decorators_exports, y as meta_exports } from "../model-aRAusQPz.js";
2
+ export { Constraints, Constraints as c, Decorators, Decorators as t, GENERATED_RELATION_REGISTRY_DIRNAME, GENERATED_RELATION_REGISTRY_METADATA_FILENAME, GENERATED_RELATION_REGISTRY_METADATA_VERSION, GENERATED_RELATION_REGISTRY_TYPES_FILENAME, ImplicitManyToManyIdentifier, Indexes, Indexes as i, InternalDecoratedFieldKind, Meta, Meta as m, Model, ModelRegistry, RelationBuilder, ResolvedRelationGraphArtifactFactory, constraints_exports as constraints, createSchemaModuleAliases, createTypedModelRef, decorators_exports as decorators, isTypedModelRef, meta_exports as meta, registerModelAugmentor, registry_exports as registry, relations_exports as relations, resolveSchemaModuleEntrypoint };