@afora/core 0.0.9 → 0.0.11
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/README.md +52 -30
- package/dist/adapters.js +31 -55
- package/dist/core/application/application.d.ts +30 -0
- package/dist/core/application/application.js +1291 -0
- package/dist/core/application/exceptions.js +85 -0
- package/dist/core/application/migrate.js +67 -0
- package/dist/core/application/providers.js +108 -0
- package/dist/core/application/registry.js +23 -0
- package/dist/core/application/schema.js +398 -0
- package/dist/core/application/start.js +162 -0
- package/dist/core/application/types/application.interface.d.ts +23 -3
- package/dist/core/auth/jwt.js +200 -0
- package/dist/core/auth/types/jwt.interface.d.ts +10 -2
- package/dist/core/blueprint/blueprint-plugin.js +7 -0
- package/dist/core/blueprint/blueprint.js +146 -0
- package/dist/core/blueprint/callable.js +13 -0
- package/dist/core/blueprint/exceptions.js +20 -0
- package/dist/core/blueprint/is-blueprint.js +4 -0
- package/dist/core/blueprint/list.js +19 -0
- package/dist/core/blueprint/optional.js +69 -0
- package/dist/core/blueprint/record-field.js +14 -0
- package/dist/core/blueprint/slice.js +127 -0
- package/dist/core/blueprint/types/blueprint.interface.d.ts +16 -0
- package/dist/core/blueprint/variant.js +72 -0
- package/dist/core/command/command.js +428 -0
- package/dist/core/command/exceptions.js +30 -0
- package/dist/core/command/types/command.interface.d.ts +10 -1
- package/dist/core/entity/abstract-entity.d.ts +19 -0
- package/dist/core/entity/abstract-entity.js +181 -0
- package/dist/core/entity/entity.js +209 -0
- package/dist/core/entity/event.d.ts +39 -0
- package/dist/core/entity/event.js +80 -0
- package/dist/core/entity/exceptions.js +27 -0
- package/dist/core/entity/trust.js +7 -0
- package/dist/core/entity/version.js +13 -0
- package/dist/core/environment/environment.d.ts +26 -3
- package/dist/core/environment/environment.js +71 -0
- package/dist/core/event-policy/event-policy.js +76 -0
- package/dist/core/event-policy/exceptions.js +12 -0
- package/dist/core/event-policy/publish.js +98 -0
- package/dist/core/event-policy/publishers.js +18 -0
- package/dist/core/event-policy/types/event-policy.interface.d.ts +8 -2
- package/dist/core/exception/enums/exception-layers.js +15 -0
- package/dist/core/exception/exception.d.ts +15 -0
- package/dist/core/exception/exception.js +128 -0
- package/dist/core/exception/exported.js +49 -0
- package/dist/core/exception/guard.d.ts +20 -1
- package/dist/core/exception/guard.js +16 -0
- package/dist/core/exception/types/exception.interface.d.ts +13 -0
- package/dist/core/json.js +19 -0
- package/dist/core/logger/exceptions.js +7 -0
- package/dist/core/logger/logger.d.ts +14 -1
- package/dist/core/logger/logger.js +178 -0
- package/dist/core/openapi/exceptions.js +7 -0
- package/dist/core/openapi/openapi.js +132 -0
- package/dist/core/openapi/types/openapi.interface.d.ts +7 -1
- package/dist/core/output/access.js +66 -0
- package/dist/core/output/coerce.js +38 -0
- package/dist/core/output/exceptions.js +22 -0
- package/dist/{index-y280ew0k.js → core/output/http.js} +35 -80
- package/dist/core/output/openapi-sink.d.ts +10 -2
- package/dist/{index-hg1z2s2v.js → core/output/openapi-sink.js} +60 -544
- package/dist/core/output/output.js +192 -0
- package/dist/core/output/problem.js +30 -0
- package/dist/core/output/select.js +28 -0
- package/dist/core/output/stage.js +111 -0
- package/dist/core/output/status.js +52 -0
- package/dist/core/output/types/http.interface.d.ts +5 -1
- package/dist/core/output/types/output.interface.d.ts +24 -0
- package/dist/core/parse/issue.js +31 -0
- package/dist/core/parse/parse.d.ts +8 -1
- package/dist/core/parse/parse.js +323 -0
- package/dist/core/parse/strip.js +48 -0
- package/dist/core/property/abstract-property.js +37 -0
- package/dist/core/property/define-property.js +209 -0
- package/dist/core/property/enums/property-states.js +8 -0
- package/dist/core/property/exceptions.js +12 -0
- package/dist/core/property/input.js +10 -0
- package/dist/core/property/is-property.js +3 -0
- package/dist/core/property/lineage.js +8 -0
- package/dist/core/property/property.d.ts +27 -0
- package/dist/core/property/property.js +46 -0
- package/dist/core/property/refine.js +103 -0
- package/dist/core/record/abstract-record.d.ts +2 -1
- package/dist/core/record/abstract-record.js +307 -0
- package/dist/core/record/exceptions.js +49 -0
- package/dist/core/record/marks.js +7 -0
- package/dist/core/record/mask.js +60 -0
- package/dist/core/record/name.js +23 -0
- package/dist/core/record/plugin-catalog.js +115 -0
- package/dist/core/record/plugin.js +198 -0
- package/dist/core/record/record.js +117 -0
- package/dist/core/record/types/record.interface.d.ts +5 -0
- package/dist/core/repository/cursor.js +83 -0
- package/dist/core/repository/exceptions.js +72 -0
- package/dist/core/repository/in-memory.js +196 -0
- package/dist/core/repository/migrate.js +254 -0
- package/dist/core/repository/plan.js +27 -0
- package/dist/core/repository/provider.js +29 -0
- package/dist/core/repository/query.js +153 -0
- package/dist/core/repository/references.js +196 -0
- package/dist/core/repository/repository.d.ts +22 -2
- package/dist/core/repository/repository.js +720 -0
- package/dist/core/repository/state.js +138 -0
- package/dist/core/repository/types/query.interface.d.ts +13 -0
- package/dist/core/repository/types/repository.interface.d.ts +20 -8
- package/dist/core/repository/types/schema.interface.d.ts +8 -2
- package/dist/core/repository/upcast.js +179 -0
- package/dist/core/schema/schema.d.ts +9 -0
- package/dist/core/schema/schema.js +542 -0
- package/dist/core/standard/standard-schema.js +1 -0
- package/dist/core/standard/standard.js +23 -0
- package/dist/core/symbols/demo.d.ts +4 -0
- package/dist/core/symbols/demo.js +1 -0
- package/dist/core/symbols/kind.js +1 -0
- package/dist/core/symbols/meta.js +1 -0
- package/dist/core/symbols/state.d.ts +5 -0
- package/dist/core/symbols/state.js +1 -0
- package/dist/core/tracing/exceptions.d.ts +4 -0
- package/dist/core/tracing/exceptions.js +7 -0
- package/dist/core/tracing/tracing.d.ts +72 -0
- package/dist/core/tracing/tracing.js +101 -0
- package/dist/core/use-case/access.js +56 -0
- package/dist/core/use-case/decorators.js +65 -0
- package/dist/core/use-case/exceptions.d.ts +5 -1
- package/dist/core/use-case/exceptions.js +48 -0
- package/dist/core/use-case/plugin-catalog.js +68 -0
- package/dist/core/use-case/plugin.js +133 -0
- package/dist/core/use-case/route.js +200 -0
- package/dist/core/use-case/scope.d.ts +5 -0
- package/dist/core/use-case/scope.js +4 -0
- package/dist/core/use-case/steps/describe.d.ts +5 -1
- package/dist/core/use-case/steps/describe.js +24 -0
- package/dist/core/use-case/steps/references.js +105 -0
- package/dist/core/use-case/steps/run.js +139 -0
- package/dist/core/use-case/steps/types/check.interface.d.ts +27 -8
- package/dist/core/use-case/steps/types/steps.interface.d.ts +8 -1
- package/dist/core/use-case/steps/validate.js +368 -0
- package/dist/core/use-case/target.js +100 -0
- package/dist/core/use-case/types/route.interface.d.ts +25 -5
- package/dist/core/use-case/use-case.d.ts +77 -2
- package/dist/core/use-case/use-case.js +493 -0
- package/dist/experimental.d.ts +5 -0
- package/dist/experimental.js +18 -161
- package/dist/index.d.ts +7 -5
- package/dist/index.js +213 -367
- package/dist/std/blueprint-plugin.js +42 -0
- package/dist/std/blueprint.d.ts +21 -0
- package/dist/std/blueprint.js +3 -0
- package/dist/std/command.js +3 -0
- package/dist/std/entity.d.ts +20 -1
- package/dist/std/entity.js +30 -0
- package/dist/std/event-policies.js +3 -0
- package/dist/std/properties/contact.d.ts +3 -0
- package/dist/std/properties/contact.js +29 -0
- package/dist/std/properties/enum.js +26 -0
- package/dist/std/properties/exceptions.js +14 -0
- package/dist/std/properties/headless.js +45 -0
- package/dist/std/properties/identity.js +28 -0
- package/dist/std/properties/json.js +161 -0
- package/dist/std/properties/password.js +79 -0
- package/dist/std/properties/primitives.d.ts +4 -0
- package/dist/std/properties/primitives.js +28 -0
- package/dist/std/properties/time.js +55 -0
- package/dist/std/record-plugins.js +73 -0
- package/dist/std/record.d.ts +20 -1
- package/dist/std/record.js +3 -0
- package/dist/std/resource.js +39 -0
- package/dist/std/runtime.js +193 -0
- package/dist/std/stages.js +4 -0
- package/dist/std/use-cases/auth.js +193 -0
- package/dist/std/use-cases/crud.js +261 -0
- package/dist/std/use-cases/index.js +12 -0
- package/dist/std/use-cases/lifecycle.js +97 -0
- package/dist/std/use-cases/shared.js +232 -0
- package/dist/std/use-cases/types.d.ts +5 -1
- package/dist/std/use-cases/types.js +0 -0
- package/dist/testing/http-provider-contract.js +344 -0
- package/dist/testing/index.js +3 -1435
- package/dist/testing/memory-publisher.js +12 -0
- package/dist/testing/provider-contract.d.ts +12 -3
- package/dist/testing/provider-contract.js +1071 -0
- package/package.json +10 -3
- package/dist/index-3aae5jfq.js +0 -2997
- package/dist/index-ny3as79r.js +0 -4567
- package/dist/index-xegv6a1p.js +0 -4291
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export { entityBuilderOf, isEntity, isEntityClass } from "./core/entity/entity.j
|
|
|
26
26
|
export type { AnyEntityClass, EntityEvent, EntityEventReference, EntityEvents, EventDefinition, EventHandlerContext, } from "./core/entity/event.js";
|
|
27
27
|
export { eventOf } from "./core/entity/event.js";
|
|
28
28
|
export { DeletedEntity, ImmutableEntityKey, InvalidEntityExpiry, InvalidEntitySchemaVersion, ReservedEntityKey, } from "./core/entity/exceptions.js";
|
|
29
|
-
export type { DeclaredEntityInstance, EntityBuilder, EntityBuilderSettings, EntityConstructor, EntityDuration, EntityExpires, EntityIdentityKey, EntityInput, EntityOptions, EntityProperties, EntityStorageOptions,
|
|
29
|
+
export type { DeclaredEntityInstance, EntityBuilder, EntityBuilderSettings, EntityConstructor, EntityDuration, EntityExpires, EntityIdentityKey, EntityInput, EntityOptions, EntityProperties, EntityStorageOptions, EntityUniqueKey, EntityUpgrade, EntityUpgrades, ExpiresAtField, ExpiringIdentity, IEntityIdentity, IEntityVersion, VersionedIdentity, } from "./core/entity/types/entity.interface.js";
|
|
30
30
|
export { EntityVersion } from "./core/entity/version.js";
|
|
31
31
|
export type { AnyEnvironment, EnvironmentDependencies, EnvironmentOptions, EnvironmentSource, EnvironmentValue, IEnvironment, } from "./core/environment/environment.js";
|
|
32
32
|
export { environmentOf, InvalidEnvironment, } from "./core/environment/environment.js";
|
|
@@ -60,11 +60,10 @@ export type { IPropertyInput } from "./core/property/input.js";
|
|
|
60
60
|
export { PropertyInput, propertyInputOf } from "./core/property/input.js";
|
|
61
61
|
export type { DeclaredProperty, PropertyClass } from "./core/property/property.js";
|
|
62
62
|
export { propertyOf } from "./core/property/property.js";
|
|
63
|
-
export type { AbstractPropertyConstructor } from "./core/property/types/abstract-property-constructor.type.js";
|
|
64
63
|
export type { IDefineProperty } from "./core/property/types/define-property.interface.js";
|
|
65
64
|
export type { OptionalProperty } from "./core/property/types/optional-property.type.js";
|
|
66
65
|
export type { IProperty } from "./core/property/types/property.interface.js";
|
|
67
|
-
export type { AnyPropertyConstructor
|
|
66
|
+
export type { AnyPropertyConstructor } from "./core/property/types/property-collection.type.js";
|
|
68
67
|
export type { PropertyValue } from "./core/property/types/property-constructor.type.js";
|
|
69
68
|
export type { CallableProperty, NumberConstraints, PropertyMetadata, PropertyOptions, StringConstraints, } from "./core/property/types/property-options.interface.js";
|
|
70
69
|
export type { IPropertyType, SensitiveMark, UniqueMark, } from "./core/property/types/property-type.interface.js";
|
|
@@ -82,13 +81,16 @@ export { type InMemoryProvider, inMemoryProvider, } from "./core/repository/in-m
|
|
|
82
81
|
export { providerOf } from "./core/repository/provider.js";
|
|
83
82
|
export type { RepositorySettings } from "./core/repository/repository.js";
|
|
84
83
|
export { RepositoryOf, repositoryOf } from "./core/repository/repository.js";
|
|
85
|
-
export type { ProviderOption, ProviderOptions, ProviderSettings, RepositoryCursorPage, RepositoryCursorQuery,
|
|
86
|
-
export type { AnyRepository, AnyRepositoryEntity, EntityIncrementKeyOf, EntityInstanceOf, EntityKeyOf, EntityNonUniqueKeyOf, EntityUniqueKeyOf, EntityValueOf, QueryValueOf, RepositoryAction,
|
|
84
|
+
export type { ProviderOption, ProviderOptions, ProviderSettings, RepositoryCursorPage, RepositoryCursorQuery, RepositoryIndex, RepositoryOrder, RepositoryPage, RepositoryPlan, RepositoryQuery, RepositoryScans, RepositoryWalkOptions, RepositoryWalkPage, RepositoryWalkResult, RepositoryWhere, } from "./core/repository/types/query.interface.js";
|
|
85
|
+
export type { AnyRepository, AnyRepositoryEntity, EntityIncrementKeyOf, EntityInstanceOf, EntityKeyOf, EntityNonUniqueKeyOf, EntityUniqueKeyOf, EntityValueOf, QueryValueOf, RepositoryAction, RepositoryCreateInput, RepositoryFindBy, RepositoryFindManyBy, RepositoryIncrementDeltas, RepositoryIncrementOptions, } from "./core/repository/types/repository.interface.js";
|
|
87
86
|
export type { EntityMigrationReport, SchemaMigrationInvalidRow, SchemaMigrationOptions, SchemaMigrationReport, } from "./core/repository/types/schema.interface.js";
|
|
88
87
|
export type { ISchema, ISchemaType, } from "./core/schema/types/schema.interface.js";
|
|
89
88
|
export type { StandardSchemaV1 } from "./core/standard/standard-schema.js";
|
|
90
89
|
export { Meta } from "./core/symbols/meta.js";
|
|
91
90
|
export { State } from "./core/symbols/state.js";
|
|
91
|
+
export { InvalidTraceDeclaration } from "./core/tracing/exceptions.js";
|
|
92
|
+
export type { ITracer, ITraceSpan, MemorySpan, MemoryTracer, TraceAttributes, TraceStatus, } from "./core/tracing/tracing.js";
|
|
93
|
+
export { memoryTracer } from "./core/tracing/tracing.js";
|
|
92
94
|
export { Access, Route } from "./core/use-case/decorators.js";
|
|
93
95
|
export { IncompatibleUseCasePlugin, InvalidUseCasePlugin, InvalidUseCaseStep, UnknownUseCasePlugin, UseCaseEntityConflict, UseCaseEntityNotFound, UseCaseInvalidCredentials, UseCaseUnavailable, } from "./core/use-case/exceptions.js";
|
|
94
96
|
export { isUseCasePlugin, useCasePluginOf } from "./core/use-case/plugin.js";
|
package/dist/index.js
CHANGED
|
@@ -1,368 +1,214 @@
|
|
|
1
|
-
|
|
2
|
-
isUseCaseCatalog2,
|
|
3
|
-
useCaseCatalogOf2,
|
|
4
|
-
InvalidCommandDeclaration2,
|
|
5
|
-
UnknownCommandOperation2,
|
|
6
|
-
InvalidCommandContext2,
|
|
7
|
-
InvalidCommandEnvironment2,
|
|
8
|
-
CommandEventFailed2,
|
|
9
|
-
commandBuilderOf2,
|
|
10
|
-
isCommand2,
|
|
11
|
-
operationOf2,
|
|
12
|
-
outputOf2,
|
|
13
|
-
isOutput2,
|
|
14
|
-
providerFrom2,
|
|
15
|
-
logFrom2,
|
|
16
|
-
isProviderFactory2,
|
|
17
|
-
providersOf2,
|
|
18
|
-
applicationOf2,
|
|
19
|
-
blueprintPluginOf2,
|
|
20
|
-
publishEvents2,
|
|
21
|
-
select2,
|
|
22
|
-
stripUndeclared2,
|
|
23
|
-
recordPluginCatalogOf2,
|
|
24
|
-
Route2,
|
|
25
|
-
Access2,
|
|
26
|
-
Email2,
|
|
27
|
-
Phone2,
|
|
28
|
-
Url2,
|
|
29
|
-
Ip2,
|
|
30
|
-
enumOf2,
|
|
31
|
-
SchemaProperty2,
|
|
32
|
-
PasswordHasherRequired2,
|
|
33
|
-
SyncVerifyUnsupported2,
|
|
34
|
-
configure2,
|
|
35
|
-
resetRuntime2,
|
|
36
|
-
Id2,
|
|
37
|
-
Slug2,
|
|
38
|
-
InvalidJsonData2,
|
|
39
|
-
InvalidJsonSchema2,
|
|
40
|
-
jsonSchemaIssues2,
|
|
41
|
-
checkJsonSchema2,
|
|
42
|
-
JsonProperty2,
|
|
43
|
-
jsonOf2,
|
|
44
|
-
PlainPassword2,
|
|
45
|
-
Password2,
|
|
46
|
-
StringProperty2,
|
|
47
|
-
Text2,
|
|
48
|
-
NumberProperty2,
|
|
49
|
-
Integer2,
|
|
50
|
-
BooleanProperty2,
|
|
51
|
-
DateTime2,
|
|
52
|
-
DateProperty2,
|
|
53
|
-
CreatedAt2,
|
|
54
|
-
UpdatedAt2,
|
|
55
|
-
DeletedAt2,
|
|
56
|
-
ExpiresAt2,
|
|
57
|
-
Std2,
|
|
58
|
-
blueprintOf2,
|
|
59
|
-
StdUseCases2,
|
|
60
|
-
commandOf2,
|
|
61
|
-
Publishable2,
|
|
62
|
-
Archivable2,
|
|
63
|
-
Taggable2,
|
|
64
|
-
Ownable2,
|
|
65
|
-
Authenticatable2,
|
|
66
|
-
StdRecordPlugins2,
|
|
67
|
-
entityOf2,
|
|
68
|
-
StdEventPolicies2,
|
|
69
|
-
recordOf2,
|
|
70
|
-
resourceOf2,
|
|
71
|
-
StdStages2
|
|
72
|
-
} from "./index-ny3as79r.js";
|
|
73
|
-
import {
|
|
74
|
-
openapi2
|
|
75
|
-
} from "./index-hg1z2s2v.js";
|
|
76
|
-
import {
|
|
77
|
-
InvalidEventPolicy2,
|
|
78
|
-
PublisherNotBound2,
|
|
79
|
-
guard2,
|
|
80
|
-
providerOf2,
|
|
81
|
-
inMemoryProvider2,
|
|
82
|
-
repositoryOf2,
|
|
83
|
-
RepositoryOf2,
|
|
84
|
-
InvalidUseCaseStep2,
|
|
85
|
-
InvalidUseCasePlugin2,
|
|
86
|
-
UnknownUseCasePlugin2,
|
|
87
|
-
IncompatibleUseCasePlugin2,
|
|
88
|
-
UseCaseUnavailable2,
|
|
89
|
-
UseCaseEntityNotFound2,
|
|
90
|
-
UseCaseEntityConflict2,
|
|
91
|
-
UseCaseInvalidCredentials2,
|
|
92
|
-
PropertyInput2,
|
|
93
|
-
propertyInputOf2,
|
|
94
|
-
InvalidUseCaseDeclaration2,
|
|
95
|
-
UseCaseAlreadyExecuted2,
|
|
96
|
-
InvalidUseCaseDependencies2,
|
|
97
|
-
useCaseOf2,
|
|
98
|
-
isUseCaseClass2,
|
|
99
|
-
isUseCase2,
|
|
100
|
-
isUseCasePlugin2,
|
|
101
|
-
useCasePluginOf2,
|
|
102
|
-
eventPolicyOf2
|
|
103
|
-
} from "./index-3aae5jfq.js";
|
|
104
|
-
import {
|
|
105
|
-
ExceptionLayers2,
|
|
106
|
-
Exception2,
|
|
107
|
-
exceptionOf2,
|
|
108
|
-
ReservedBlueprintKey2,
|
|
109
|
-
InvalidBlueprintVariant2,
|
|
110
|
-
UndeclaredBlueprintProperty2,
|
|
111
|
-
variantOf2,
|
|
112
|
-
State2,
|
|
113
|
-
PropertyRequired2,
|
|
114
|
-
InvalidPropertyValue2,
|
|
115
|
-
recordNameOf2,
|
|
116
|
-
listOf2,
|
|
117
|
-
InvalidEnvironment2,
|
|
118
|
-
environmentOf2,
|
|
119
|
-
InvalidApplicationDeclaration2,
|
|
120
|
-
DuplicateApplicationDeclaration2,
|
|
121
|
-
ApplicationConflict2,
|
|
122
|
-
UnregisteredApplicationReference2,
|
|
123
|
-
UnregisteredRepositoryDependency2,
|
|
124
|
-
UnregisteredUseCaseDependency2,
|
|
125
|
-
ApplicationNotStarted2,
|
|
126
|
-
ProviderNotBound2,
|
|
127
|
-
ApplicationAlreadyStarted2,
|
|
128
|
-
SchemaLockMismatch2,
|
|
129
|
-
InvalidSchemaMigration2,
|
|
130
|
-
InvalidApplicationEnvironment2,
|
|
131
|
-
useApplication2,
|
|
132
|
-
resetApplication2,
|
|
133
|
-
InvalidLogDeclaration2,
|
|
134
|
-
LogLevels2,
|
|
135
|
-
logProviderOf2,
|
|
136
|
-
consoleLogProvider2,
|
|
137
|
-
jsonLogProvider2,
|
|
138
|
-
memoryLogProvider2,
|
|
139
|
-
Logger2,
|
|
140
|
-
Meta2,
|
|
141
|
-
InvalidRecordValue2,
|
|
142
|
-
InvalidRecordDeclaration2,
|
|
143
|
-
UndeclaredRecordProperty2,
|
|
144
|
-
ReservedRecordKey2,
|
|
145
|
-
InvalidRecordPlugin2,
|
|
146
|
-
RecordPluginConflict2,
|
|
147
|
-
UnknownRecordPlugin2,
|
|
148
|
-
IncompatibleRecordPlugin2,
|
|
149
|
-
MASK2,
|
|
150
|
-
propertyOf2,
|
|
151
|
-
optionalOf2,
|
|
152
|
-
blueprintBuilderOf2,
|
|
153
|
-
pluginsOf2,
|
|
154
|
-
hasPlugin2,
|
|
155
|
-
recordPluginOf2,
|
|
156
|
-
recordBuilderOf2,
|
|
157
|
-
ReservedEntityKey2,
|
|
158
|
-
ImmutableEntityKey2,
|
|
159
|
-
DeletedEntity2,
|
|
160
|
-
InvalidEntityExpiry2,
|
|
161
|
-
InvalidEntitySchemaVersion2,
|
|
162
|
-
EntityVersion2,
|
|
163
|
-
entityBuilderOf2,
|
|
164
|
-
isEntityClass2,
|
|
165
|
-
isEntity2,
|
|
166
|
-
eventOf2,
|
|
167
|
-
EntityUniqueKeys2,
|
|
168
|
-
EntitySettings2,
|
|
169
|
-
InvalidRepositoryQuery2,
|
|
170
|
-
InvalidRepositoryCursor2,
|
|
171
|
-
InvalidRepositoryDeclaration2,
|
|
172
|
-
InvalidRepositoryEntity2,
|
|
173
|
-
InvalidStoredSchemaVersion2,
|
|
174
|
-
InvalidRepositoryData2,
|
|
175
|
-
RepositoryUniqueViolation2,
|
|
176
|
-
RepositoryUsedOutsideApplication2,
|
|
177
|
-
RepositoryEntityNotFound2,
|
|
178
|
-
RepositoryConcurrencyConflict2,
|
|
179
|
-
InvalidRepositoryIncrement2,
|
|
180
|
-
InvalidOpenAPIModel2,
|
|
181
|
-
toOpenAPI2,
|
|
182
|
-
InvalidOutputStage2,
|
|
183
|
-
DuplicateOperation2,
|
|
184
|
-
Unauthenticated2,
|
|
185
|
-
Forbidden2,
|
|
186
|
-
transformOf2
|
|
187
|
-
} from "./index-xegv6a1p.js";
|
|
1
|
+
export { applicationOf } from "./core/application/application.js";
|
|
188
2
|
export {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
3
|
+
ApplicationAlreadyStarted,
|
|
4
|
+
ApplicationConflict,
|
|
5
|
+
ApplicationNotStarted,
|
|
6
|
+
DuplicateApplicationDeclaration,
|
|
7
|
+
InvalidApplicationDeclaration,
|
|
8
|
+
InvalidApplicationEnvironment,
|
|
9
|
+
InvalidSchemaMigration,
|
|
10
|
+
ProviderNotBound,
|
|
11
|
+
SchemaLockMismatch,
|
|
12
|
+
UnregisteredApplicationReference,
|
|
13
|
+
UnregisteredRepositoryDependency,
|
|
14
|
+
UnregisteredUseCaseDependency
|
|
15
|
+
} from "./core/application/exceptions.js";
|
|
16
|
+
export {
|
|
17
|
+
providersOf
|
|
18
|
+
} from "./core/application/providers.js";
|
|
19
|
+
export {
|
|
20
|
+
resetApplication,
|
|
21
|
+
useApplication
|
|
22
|
+
} from "./core/application/registry.js";
|
|
23
|
+
export {
|
|
24
|
+
isProviderFactory,
|
|
25
|
+
logFrom,
|
|
26
|
+
providerFrom
|
|
27
|
+
} from "./core/application/start.js";
|
|
28
|
+
export { blueprintBuilderOf } from "./core/blueprint/blueprint.js";
|
|
29
|
+
export { blueprintPluginOf } from "./core/blueprint/blueprint-plugin.js";
|
|
30
|
+
export {
|
|
31
|
+
InvalidBlueprintVariant,
|
|
32
|
+
ReservedBlueprintKey,
|
|
33
|
+
UndeclaredBlueprintProperty
|
|
34
|
+
} from "./core/blueprint/exceptions.js";
|
|
35
|
+
export { listOf } from "./core/blueprint/list.js";
|
|
36
|
+
export { optionalOf } from "./core/blueprint/optional.js";
|
|
37
|
+
export { variantOf } from "./core/blueprint/variant.js";
|
|
38
|
+
export { commandBuilderOf, isCommand } from "./core/command/command.js";
|
|
39
|
+
export {
|
|
40
|
+
CommandEventFailed,
|
|
41
|
+
InvalidCommandContext,
|
|
42
|
+
InvalidCommandDeclaration,
|
|
43
|
+
InvalidCommandEnvironment,
|
|
44
|
+
UnknownCommandOperation
|
|
45
|
+
} from "./core/command/exceptions.js";
|
|
46
|
+
export {
|
|
47
|
+
EntitySettings,
|
|
48
|
+
EntityUniqueKeys
|
|
49
|
+
} from "./core/entity/abstract-entity.js";
|
|
50
|
+
export { entityBuilderOf, isEntity, isEntityClass } from "./core/entity/entity.js";
|
|
51
|
+
export { eventOf } from "./core/entity/event.js";
|
|
52
|
+
export {
|
|
53
|
+
DeletedEntity,
|
|
54
|
+
ImmutableEntityKey,
|
|
55
|
+
InvalidEntityExpiry,
|
|
56
|
+
InvalidEntitySchemaVersion,
|
|
57
|
+
ReservedEntityKey
|
|
58
|
+
} from "./core/entity/exceptions.js";
|
|
59
|
+
export { EntityVersion } from "./core/entity/version.js";
|
|
60
|
+
export {
|
|
61
|
+
environmentOf,
|
|
62
|
+
InvalidEnvironment
|
|
63
|
+
} from "./core/environment/environment.js";
|
|
64
|
+
export { eventPolicyOf } from "./core/event-policy/event-policy.js";
|
|
65
|
+
export {
|
|
66
|
+
InvalidEventPolicy,
|
|
67
|
+
PublisherNotBound
|
|
68
|
+
} from "./core/event-policy/exceptions.js";
|
|
69
|
+
export { publishEvents } from "./core/event-policy/publish.js";
|
|
70
|
+
export { ExceptionLayers } from "./core/exception/enums/exception-layers.js";
|
|
71
|
+
export { Exception, exceptionOf } from "./core/exception/exception.js";
|
|
72
|
+
export { guard } from "./core/exception/guard.js";
|
|
73
|
+
export { InvalidLogDeclaration } from "./core/logger/exceptions.js";
|
|
74
|
+
export {
|
|
75
|
+
consoleLogProvider,
|
|
76
|
+
jsonLogProvider,
|
|
77
|
+
Logger,
|
|
78
|
+
LogLevels,
|
|
79
|
+
logProviderOf,
|
|
80
|
+
memoryLogProvider
|
|
81
|
+
} from "./core/logger/logger.js";
|
|
82
|
+
export { InvalidOpenAPIModel } from "./core/openapi/exceptions.js";
|
|
83
|
+
export { toOpenAPI } from "./core/openapi/openapi.js";
|
|
84
|
+
export {
|
|
85
|
+
DuplicateOperation,
|
|
86
|
+
Forbidden,
|
|
87
|
+
InvalidOutputStage,
|
|
88
|
+
Unauthenticated
|
|
89
|
+
} from "./core/output/exceptions.js";
|
|
90
|
+
export { openapi } from "./core/output/openapi-sink.js";
|
|
91
|
+
export { isOutput, operationOf, outputOf } from "./core/output/output.js";
|
|
92
|
+
export { select } from "./core/output/select.js";
|
|
93
|
+
export { transformOf } from "./core/output/stage.js";
|
|
94
|
+
export { stripUndeclared } from "./core/parse/strip.js";
|
|
95
|
+
export {
|
|
96
|
+
InvalidPropertyValue,
|
|
97
|
+
PropertyRequired
|
|
98
|
+
} from "./core/property/exceptions.js";
|
|
99
|
+
export { PropertyInput, propertyInputOf } from "./core/property/input.js";
|
|
100
|
+
export { propertyOf } from "./core/property/property.js";
|
|
101
|
+
export {
|
|
102
|
+
IncompatibleRecordPlugin,
|
|
103
|
+
InvalidRecordDeclaration,
|
|
104
|
+
InvalidRecordPlugin,
|
|
105
|
+
InvalidRecordValue,
|
|
106
|
+
RecordPluginConflict,
|
|
107
|
+
ReservedRecordKey,
|
|
108
|
+
UndeclaredRecordProperty,
|
|
109
|
+
UnknownRecordPlugin
|
|
110
|
+
} from "./core/record/exceptions.js";
|
|
111
|
+
export { MASK } from "./core/record/mask.js";
|
|
112
|
+
export { recordNameOf } from "./core/record/name.js";
|
|
113
|
+
export { hasPlugin, pluginsOf, recordPluginOf } from "./core/record/plugin.js";
|
|
114
|
+
export { recordPluginCatalogOf } from "./core/record/plugin-catalog.js";
|
|
115
|
+
export { recordBuilderOf } from "./core/record/record.js";
|
|
116
|
+
export {
|
|
117
|
+
InvalidRepositoryCursor,
|
|
118
|
+
InvalidRepositoryData,
|
|
119
|
+
InvalidRepositoryDeclaration,
|
|
120
|
+
InvalidRepositoryEntity,
|
|
121
|
+
InvalidRepositoryIncrement,
|
|
122
|
+
InvalidRepositoryQuery,
|
|
123
|
+
InvalidStoredSchemaVersion,
|
|
124
|
+
RepositoryConcurrencyConflict,
|
|
125
|
+
RepositoryEntityNotFound,
|
|
126
|
+
RepositoryUniqueViolation,
|
|
127
|
+
RepositoryUsedOutsideApplication
|
|
128
|
+
} from "./core/repository/exceptions.js";
|
|
129
|
+
export {
|
|
130
|
+
inMemoryProvider
|
|
131
|
+
} from "./core/repository/in-memory.js";
|
|
132
|
+
export { providerOf } from "./core/repository/provider.js";
|
|
133
|
+
export { RepositoryOf, repositoryOf } from "./core/repository/repository.js";
|
|
134
|
+
export { Meta } from "./core/symbols/meta.js";
|
|
135
|
+
export { State } from "./core/symbols/state.js";
|
|
136
|
+
export { InvalidTraceDeclaration } from "./core/tracing/exceptions.js";
|
|
137
|
+
export { memoryTracer } from "./core/tracing/tracing.js";
|
|
138
|
+
export { Access, Route } from "./core/use-case/decorators.js";
|
|
139
|
+
export {
|
|
140
|
+
IncompatibleUseCasePlugin,
|
|
141
|
+
InvalidUseCasePlugin,
|
|
142
|
+
InvalidUseCaseStep,
|
|
143
|
+
UnknownUseCasePlugin,
|
|
144
|
+
UseCaseEntityConflict,
|
|
145
|
+
UseCaseEntityNotFound,
|
|
146
|
+
UseCaseInvalidCredentials,
|
|
147
|
+
UseCaseUnavailable
|
|
148
|
+
} from "./core/use-case/exceptions.js";
|
|
149
|
+
export { isUseCasePlugin, useCasePluginOf } from "./core/use-case/plugin.js";
|
|
150
|
+
export {
|
|
151
|
+
isUseCaseCatalog,
|
|
152
|
+
useCaseCatalogOf
|
|
153
|
+
} from "./core/use-case/plugin-catalog.js";
|
|
154
|
+
export {
|
|
155
|
+
InvalidUseCaseDeclaration,
|
|
156
|
+
InvalidUseCaseDependencies,
|
|
157
|
+
isUseCase,
|
|
158
|
+
isUseCaseClass,
|
|
159
|
+
UseCaseAlreadyExecuted,
|
|
160
|
+
useCaseOf
|
|
161
|
+
} from "./core/use-case/use-case.js";
|
|
162
|
+
export { blueprintOf } from "./std/blueprint.js";
|
|
163
|
+
export { Std } from "./std/blueprint-plugin.js";
|
|
164
|
+
export { commandOf } from "./std/command.js";
|
|
165
|
+
export { entityOf } from "./std/entity.js";
|
|
166
|
+
export { StdEventPolicies } from "./std/event-policies.js";
|
|
167
|
+
export { Email, Ip, Phone, Url } from "./std/properties/contact.js";
|
|
168
|
+
export { enumOf } from "./std/properties/enum.js";
|
|
169
|
+
export {
|
|
170
|
+
InvalidJsonData,
|
|
171
|
+
InvalidJsonSchema
|
|
172
|
+
} from "./std/properties/exceptions.js";
|
|
173
|
+
export { SchemaProperty } from "./std/properties/headless.js";
|
|
174
|
+
export { Id, Slug } from "./std/properties/identity.js";
|
|
175
|
+
export {
|
|
176
|
+
checkJsonSchema,
|
|
177
|
+
JsonProperty,
|
|
178
|
+
jsonOf,
|
|
179
|
+
jsonSchemaIssues
|
|
180
|
+
} from "./std/properties/json.js";
|
|
181
|
+
export { Password, PlainPassword } from "./std/properties/password.js";
|
|
182
|
+
export {
|
|
183
|
+
BooleanProperty,
|
|
184
|
+
Integer,
|
|
185
|
+
NumberProperty,
|
|
186
|
+
StringProperty,
|
|
187
|
+
Text
|
|
188
|
+
} from "./std/properties/primitives.js";
|
|
189
|
+
export {
|
|
190
|
+
CreatedAt,
|
|
191
|
+
DateProperty,
|
|
192
|
+
DateTime,
|
|
193
|
+
DeletedAt,
|
|
194
|
+
ExpiresAt,
|
|
195
|
+
UpdatedAt
|
|
196
|
+
} from "./std/properties/time.js";
|
|
197
|
+
export { recordOf } from "./std/record.js";
|
|
198
|
+
export {
|
|
199
|
+
Archivable,
|
|
200
|
+
Authenticatable,
|
|
201
|
+
Ownable,
|
|
202
|
+
Publishable,
|
|
203
|
+
StdRecordPlugins,
|
|
204
|
+
Taggable
|
|
205
|
+
} from "./std/record-plugins.js";
|
|
206
|
+
export { resourceOf } from "./std/resource.js";
|
|
207
|
+
export {
|
|
208
|
+
configure,
|
|
209
|
+
PasswordHasherRequired,
|
|
210
|
+
resetRuntime,
|
|
211
|
+
SyncVerifyUnsupported
|
|
212
|
+
} from "./std/runtime.js";
|
|
213
|
+
export { StdStages } from "./std/stages.js";
|
|
214
|
+
export { StdUseCases } from "./std/use-cases/index.js";
|