oak-domain 5.1.35 → 6.0.0
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/es/actions/action.d.ts +16 -0
- package/es/actions/action.js +13 -0
- package/es/base-app-domain/ActionAuth/Schema.d.ts +19 -0
- package/es/base-app-domain/ActionAuth/Schema.js +1 -0
- package/es/base-app-domain/ActionAuth/Storage.d.ts +3 -0
- package/es/base-app-domain/ActionAuth/Storage.js +36 -0
- package/es/base-app-domain/ActionAuth/_baseSchema.d.ts +46 -0
- package/es/base-app-domain/ActionAuth/_baseSchema.js +1 -0
- package/es/base-app-domain/ActionDefDict.d.ts +12 -0
- package/es/base-app-domain/ActionDefDict.js +10 -0
- package/es/base-app-domain/EntityDict.d.ts +727 -0
- package/es/base-app-domain/EntityDict.js +1 -0
- package/es/base-app-domain/I18n/Schema.d.ts +19 -0
- package/es/base-app-domain/I18n/Schema.js +1 -0
- package/es/base-app-domain/I18n/Storage.d.ts +3 -0
- package/es/base-app-domain/I18n/Storage.js +55 -0
- package/es/base-app-domain/I18n/_baseSchema.d.ts +51 -0
- package/es/base-app-domain/I18n/_baseSchema.js +1 -0
- package/es/base-app-domain/Log/Action.d.ts +6 -0
- package/es/base-app-domain/Log/Action.js +2 -0
- package/es/base-app-domain/Log/Schema.d.ts +19 -0
- package/es/base-app-domain/Log/Schema.js +1 -0
- package/es/base-app-domain/Log/Storage.d.ts +3 -0
- package/es/base-app-domain/Log/Storage.js +26 -0
- package/es/base-app-domain/Log/Style.d.ts +3 -0
- package/es/base-app-domain/Log/Style.js +6 -0
- package/es/base-app-domain/Log/_baseSchema.d.ts +44 -0
- package/es/base-app-domain/Log/_baseSchema.js +1 -0
- package/es/base-app-domain/Modi/Action.d.ts +10 -0
- package/es/base-app-domain/Modi/Action.js +11 -0
- package/es/base-app-domain/Modi/Schema.d.ts +19 -0
- package/es/base-app-domain/Modi/Schema.js +1 -0
- package/es/base-app-domain/Modi/Storage.d.ts +3 -0
- package/es/base-app-domain/Modi/Storage.js +61 -0
- package/es/base-app-domain/Modi/Style.d.ts +3 -0
- package/es/base-app-domain/Modi/Style.js +13 -0
- package/es/base-app-domain/Modi/_baseSchema.d.ts +61 -0
- package/es/base-app-domain/Modi/_baseSchema.js +1 -0
- package/es/base-app-domain/ModiEntity/Schema.d.ts +19 -0
- package/es/base-app-domain/ModiEntity/Schema.js +1 -0
- package/es/base-app-domain/ModiEntity/Storage.d.ts +3 -0
- package/es/base-app-domain/ModiEntity/Storage.js +26 -0
- package/es/base-app-domain/ModiEntity/_baseSchema.d.ts +45 -0
- package/es/base-app-domain/ModiEntity/_baseSchema.js +1 -0
- package/es/base-app-domain/Oper/Action.d.ts +12 -0
- package/es/base-app-domain/Oper/Action.js +11 -0
- package/es/base-app-domain/Oper/Schema.d.ts +19 -0
- package/es/base-app-domain/Oper/Schema.js +1 -0
- package/es/base-app-domain/Oper/Storage.d.ts +3 -0
- package/es/base-app-domain/Oper/Storage.js +64 -0
- package/es/base-app-domain/Oper/Style.d.ts +3 -0
- package/es/base-app-domain/Oper/Style.js +12 -0
- package/es/base-app-domain/Oper/_baseSchema.d.ts +69 -0
- package/es/base-app-domain/Oper/_baseSchema.js +1 -0
- package/es/base-app-domain/OperEntity/Schema.d.ts +19 -0
- package/es/base-app-domain/OperEntity/Schema.js +1 -0
- package/es/base-app-domain/OperEntity/Storage.d.ts +3 -0
- package/es/base-app-domain/OperEntity/Storage.js +26 -0
- package/es/base-app-domain/OperEntity/_baseSchema.d.ts +45 -0
- package/es/base-app-domain/OperEntity/_baseSchema.js +1 -0
- package/es/base-app-domain/Path/Schema.d.ts +19 -0
- package/es/base-app-domain/Path/Schema.js +1 -0
- package/es/base-app-domain/Path/Storage.d.ts +3 -0
- package/es/base-app-domain/Path/Storage.js +56 -0
- package/es/base-app-domain/Path/_baseSchema.d.ts +52 -0
- package/es/base-app-domain/Path/_baseSchema.js +1 -0
- package/es/base-app-domain/Relation/Schema.d.ts +19 -0
- package/es/base-app-domain/Relation/Schema.js +1 -0
- package/es/base-app-domain/Relation/Storage.d.ts +3 -0
- package/es/base-app-domain/Relation/Storage.js +51 -0
- package/es/base-app-domain/Relation/_baseSchema.d.ts +48 -0
- package/es/base-app-domain/Relation/_baseSchema.js +1 -0
- package/es/base-app-domain/Relation.d.ts +2 -0
- package/es/base-app-domain/Relation.js +1 -0
- package/es/base-app-domain/RelationAuth/Schema.d.ts +19 -0
- package/es/base-app-domain/RelationAuth/Schema.js +1 -0
- package/es/base-app-domain/RelationAuth/Storage.d.ts +3 -0
- package/es/base-app-domain/RelationAuth/Storage.js +41 -0
- package/es/base-app-domain/RelationAuth/_baseSchema.d.ts +44 -0
- package/es/base-app-domain/RelationAuth/_baseSchema.js +1 -0
- package/es/base-app-domain/RelationId.d.ts +1 -0
- package/es/base-app-domain/RelationId.js +1 -0
- package/es/base-app-domain/Storage.d.ts +3 -0
- package/es/base-app-domain/Storage.js +30 -0
- package/es/base-app-domain/StyleDict.d.ts +3 -0
- package/es/base-app-domain/StyleDict.js +10 -0
- package/es/base-app-domain/User/Action.d.ts +11 -0
- package/es/base-app-domain/User/Action.js +9 -0
- package/es/base-app-domain/User/Schema.d.ts +19 -0
- package/es/base-app-domain/User/Schema.js +1 -0
- package/es/base-app-domain/User/Storage.d.ts +3 -0
- package/es/base-app-domain/User/Storage.js +30 -0
- package/es/base-app-domain/User/Style.d.ts +3 -0
- package/es/base-app-domain/User/Style.js +11 -0
- package/es/base-app-domain/User/_baseSchema.d.ts +54 -0
- package/es/base-app-domain/User/_baseSchema.js +1 -0
- package/es/base-app-domain/UserEntityClaim/Schema.d.ts +19 -0
- package/es/base-app-domain/UserEntityClaim/Schema.js +1 -0
- package/es/base-app-domain/UserEntityClaim/Storage.d.ts +3 -0
- package/es/base-app-domain/UserEntityClaim/Storage.js +34 -0
- package/es/base-app-domain/UserEntityClaim/_baseSchema.d.ts +53 -0
- package/es/base-app-domain/UserEntityClaim/_baseSchema.js +1 -0
- package/es/base-app-domain/UserEntityGrant/Schema.d.ts +19 -0
- package/es/base-app-domain/UserEntityGrant/Schema.js +1 -0
- package/es/base-app-domain/UserEntityGrant/Storage.d.ts +3 -0
- package/es/base-app-domain/UserEntityGrant/Storage.js +22 -0
- package/es/base-app-domain/UserEntityGrant/_baseSchema.d.ts +46 -0
- package/es/base-app-domain/UserEntityGrant/_baseSchema.js +1 -0
- package/es/base-app-domain/UserRelation/Schema.d.ts +19 -0
- package/es/base-app-domain/UserRelation/Schema.js +1 -0
- package/es/base-app-domain/UserRelation/Storage.d.ts +3 -0
- package/es/base-app-domain/UserRelation/Storage.js +53 -0
- package/es/base-app-domain/UserRelation/_baseSchema.d.ts +49 -0
- package/es/base-app-domain/UserRelation/_baseSchema.js +1 -0
- package/es/base-app-domain/index.d.ts +5 -0
- package/es/base-app-domain/index.js +5 -0
- package/es/compiler/customChecks/asyncContext.d.ts +123 -0
- package/es/compiler/customChecks/asyncContext.js +844 -0
- package/es/compiler/customChecks/i18n.d.ts +90 -0
- package/es/compiler/customChecks/i18n.js +603 -0
- package/es/compiler/customChecks/ignoreComments.d.ts +15 -0
- package/es/compiler/customChecks/ignoreComments.js +123 -0
- package/es/compiler/customChecks/index.d.ts +3 -0
- package/es/compiler/customChecks/index.js +3 -0
- package/es/compiler/customChecks/jsxChecker.d.ts +22 -0
- package/es/compiler/customChecks/jsxChecker.js +111 -0
- package/es/compiler/customChecks/runner.d.ts +6 -0
- package/es/compiler/customChecks/runner.js +252 -0
- package/es/compiler/customChecks/types.d.ts +130 -0
- package/es/compiler/customChecks/types.js +16 -0
- package/es/compiler/customChecks/utils.d.ts +82 -0
- package/es/compiler/customChecks/utils.js +312 -0
- package/es/compiler/dependencyBuilder.d.ts +27 -0
- package/es/compiler/dependencyBuilder.js +1269 -0
- package/es/compiler/entities.d.ts +2 -0
- package/es/compiler/entities.js +4 -0
- package/es/compiler/env.d.ts +18 -0
- package/es/compiler/env.js +41 -0
- package/es/compiler/identifier.d.ts +9 -0
- package/es/compiler/identifier.js +155 -0
- package/es/compiler/localeBuilder.d.ts +34 -0
- package/es/compiler/localeBuilder.js +276 -0
- package/es/compiler/routerBuilder.d.ts +8 -0
- package/es/compiler/routerBuilder.js +740 -0
- package/{lib/compiler/schemalBuilder.d.ts → es/compiler/schemaBuilder.d.ts} +43 -5
- package/es/compiler/schemaBuilder.js +6541 -0
- package/es/compiler/tscBuilder.d.ts +29 -0
- package/es/compiler/tscBuilder.js +993 -0
- package/es/compiler/uiBuilder.d.ts +1 -0
- package/es/compiler/uiBuilder.js +3 -0
- package/es/context/BackendRuntimeContext.d.ts +32 -0
- package/es/context/BackendRuntimeContext.js +66 -0
- package/es/context/SerializedData.d.ts +9 -0
- package/es/context/SerializedData.js +1 -0
- package/es/data/i18n.d.ts +3 -0
- package/es/data/i18n.js +88 -0
- package/es/entities/ActionAuth.d.ts +10 -0
- package/es/entities/ActionAuth.js +38 -0
- package/es/entities/I18n.d.ts +9 -0
- package/es/entities/I18n.js +42 -0
- package/es/entities/Log.d.ts +11 -0
- package/es/entities/Log.js +47 -0
- package/es/entities/Modi.d.ts +11 -0
- package/es/entities/Modi.js +85 -0
- package/es/entities/ModiEntity.d.ts +8 -0
- package/es/entities/ModiEntity.js +25 -0
- package/es/entities/Oper.d.ts +21 -0
- package/es/entities/Oper.js +88 -0
- package/es/entities/OperEntity.d.ts +8 -0
- package/es/entities/OperEntity.js +25 -0
- package/es/entities/Path.d.ts +9 -0
- package/es/entities/Path.js +45 -0
- package/es/entities/Relation.d.ts +8 -0
- package/es/entities/Relation.js +43 -0
- package/es/entities/RelationAuth.d.ts +8 -0
- package/es/entities/RelationAuth.js +41 -0
- package/es/entities/User.d.ts +18 -0
- package/es/entities/User.js +59 -0
- package/es/entities/UserEntityClaim.d.ts +13 -0
- package/es/entities/UserEntityClaim.js +26 -0
- package/es/entities/UserEntityGrant.d.ts +9 -0
- package/es/entities/UserEntityGrant.js +22 -0
- package/es/entities/UserRelation.d.ts +10 -0
- package/es/entities/UserRelation.js +46 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/store/AsyncRowStore.d.ts +75 -0
- package/es/store/AsyncRowStore.js +211 -0
- package/es/store/CascadeStore.d.ts +121 -0
- package/es/store/CascadeStore.js +1862 -0
- package/es/store/IntrinsicCheckers.d.ts +5 -0
- package/es/store/IntrinsicCheckers.js +398 -0
- package/es/store/IntrinsicLogics.d.ts +9 -0
- package/es/store/IntrinsicLogics.js +41 -0
- package/es/store/RelationAuth.d.ts +115 -0
- package/es/store/RelationAuth.js +1340 -0
- package/es/store/SyncRowStore.d.ts +30 -0
- package/es/store/SyncRowStore.js +45 -0
- package/es/store/TriggerExecutor.d.ts +50 -0
- package/es/store/TriggerExecutor.js +638 -0
- package/es/store/checker.d.ts +26 -0
- package/es/store/checker.js +474 -0
- package/es/store/filter.d.ts +133 -0
- package/es/store/filter.js +1692 -0
- package/es/store/modi.d.ts +13 -0
- package/es/store/modi.js +247 -0
- package/es/store/projection.d.ts +2 -0
- package/es/store/projection.js +12 -0
- package/es/store/relation.d.ts +51 -0
- package/es/store/relation.js +108 -0
- package/es/store/triggers.d.ts +6 -0
- package/es/store/triggers.js +403 -0
- package/es/timers/oper.d.ts +18 -0
- package/es/timers/oper.js +60 -0
- package/es/timers/vaccum.d.ts +20 -0
- package/es/timers/vaccum.js +106 -0
- package/es/types/Action.d.ts +20 -0
- package/es/types/Action.js +1 -0
- package/es/types/AppLoader.d.ts +17 -0
- package/es/types/AppLoader.js +6 -0
- package/es/types/Aspect.d.ts +14 -0
- package/es/types/Aspect.js +3 -0
- package/es/types/Auth.d.ts +59 -0
- package/es/types/Auth.js +1 -0
- package/es/types/Cluster.d.ts +6 -0
- package/es/types/Cluster.js +1 -0
- package/es/types/Configuration.d.ts +101 -0
- package/es/types/Configuration.js +1 -0
- package/es/types/Connector.d.ts +61 -0
- package/es/types/Connector.js +1 -0
- package/es/types/Context.d.ts +7 -0
- package/es/types/Context.js +2 -0
- package/es/types/DataType.d.ts +25 -0
- package/es/types/DataType.js +3 -0
- package/es/types/Demand.d.ts +90 -0
- package/es/types/Demand.js +6 -0
- package/es/types/Endpoint.d.ts +29 -0
- package/es/types/Endpoint.js +3 -0
- package/es/types/Entity.d.ts +217 -0
- package/es/types/Entity.js +12 -0
- package/es/types/EntityDesc.d.ts +56 -0
- package/es/types/EntityDesc.js +3 -0
- package/es/types/Environment.d.ts +93 -0
- package/es/types/Environment.js +1 -0
- package/es/types/Exception.d.ts +222 -0
- package/es/types/Exception.js +586 -0
- package/es/types/Expression.d.ts +166 -0
- package/es/types/Expression.js +378 -0
- package/es/types/Geo.d.ts +18 -0
- package/es/types/Geo.js +1 -0
- package/es/types/Locale.d.ts +26 -0
- package/es/types/Locale.js +1 -0
- package/es/types/Logger.d.ts +6 -0
- package/es/types/Logger.js +2 -0
- package/es/types/Polyfill.d.ts +24 -0
- package/es/types/Polyfill.js +1 -0
- package/es/types/Port.d.ts +20 -0
- package/es/types/Port.js +1 -0
- package/es/types/RowStore.d.ts +19 -0
- package/es/types/RowStore.js +16 -0
- package/es/types/Storage.d.ts +61 -0
- package/es/types/Storage.js +1 -0
- package/es/types/Style.d.ts +40 -0
- package/es/types/Style.js +1 -0
- package/es/types/Sync.d.ts +93 -0
- package/es/types/Sync.js +8 -0
- package/es/types/Timer.d.ts +35 -0
- package/es/types/Timer.js +1 -0
- package/es/types/Trigger.d.ts +755 -0
- package/es/types/Trigger.js +58 -0
- package/es/types/Txn.d.ts +2 -0
- package/es/types/Txn.js +2 -0
- package/es/types/Watcher.d.ts +42 -0
- package/es/types/Watcher.js +4 -0
- package/es/types/index.d.ts +27 -0
- package/es/types/index.js +27 -0
- package/es/types/schema/DataTypes.d.ts +34 -0
- package/es/types/schema/DataTypes.js +2 -0
- package/es/utils/SimpleConnector.d.ts +90 -0
- package/es/utils/SimpleConnector.js +281 -0
- package/es/utils/assert.d.ts +5 -0
- package/es/utils/assert.js +5 -0
- package/es/utils/concurrent.d.ts +15 -0
- package/es/utils/concurrent.js +58 -0
- package/es/utils/date.d.ts +1 -0
- package/es/utils/date.js +13 -0
- package/es/utils/dependency-analyzer.d.ts +1 -0
- package/es/utils/dependency-analyzer.js +277 -0
- package/es/utils/domain.d.ts +18 -0
- package/es/utils/domain.js +69 -0
- package/es/utils/executor.d.ts +5 -0
- package/es/utils/executor.js +18 -0
- package/es/utils/geo.d.ts +34 -0
- package/es/utils/geo.js +138 -0
- package/es/utils/glob.d.ts +30 -0
- package/es/utils/glob.js +276 -0
- package/es/utils/lodash.d.ts +35 -0
- package/es/utils/lodash.js +52 -0
- package/es/utils/mask.d.ts +5 -0
- package/es/utils/mask.js +28 -0
- package/es/utils/module/combine.common.d.ts +15 -0
- package/es/utils/module/combine.common.js +23 -0
- package/es/utils/module/combine.d.ts +1 -0
- package/es/utils/module/combine.dev.d.ts +17 -0
- package/es/utils/module/combine.dev.js +51 -0
- package/es/utils/module/combine.js +1 -0
- package/es/utils/module/combine.prod.d.ts +8 -0
- package/es/utils/module/combine.prod.js +4 -0
- package/es/utils/module/combine.server.d.ts +17 -0
- package/es/utils/module/combine.server.js +51 -0
- package/es/utils/money.d.ts +6 -0
- package/es/utils/money.js +55 -0
- package/es/utils/operationResult.d.ts +2 -0
- package/es/utils/operationResult.js +15 -0
- package/es/utils/projection.d.ts +5 -0
- package/es/utils/projection.js +30 -0
- package/es/utils/random/random.d.ts +1 -0
- package/es/utils/random/random.js +15 -0
- package/es/utils/random/random.mp.d.ts +1 -0
- package/es/utils/random/random.mp.js +10 -0
- package/es/utils/random/random.native.d.ts +1 -0
- package/es/utils/random/random.native.js +9 -0
- package/es/utils/random/random.web.d.ts +1 -0
- package/es/utils/random/random.web.js +7 -0
- package/es/utils/relationPath.d.ts +44 -0
- package/es/utils/relationPath.js +266 -0
- package/es/utils/row.d.ts +20 -0
- package/es/utils/row.js +69 -0
- package/es/utils/string.d.ts +28 -0
- package/es/utils/string.js +60 -0
- package/es/utils/url/index.d.ts +6 -0
- package/es/utils/url/index.js +4 -0
- package/es/utils/url/index.mp.d.ts +3 -0
- package/es/utils/url/index.mp.js +4 -0
- package/es/utils/url/index.native.d.ts +13 -0
- package/es/utils/url/index.native.js +3 -0
- package/es/utils/url/index.web.d.ts +13 -0
- package/es/utils/url/index.web.js +3 -0
- package/es/utils/url/whatwg-url/index.d.ts +3 -0
- package/es/utils/url/whatwg-url/index.js +12 -0
- package/es/utils/url/whatwg-url/lib/URL-impl.d.ts +27 -0
- package/es/utils/url/whatwg-url/lib/URL-impl.js +172 -0
- package/es/utils/url/whatwg-url/lib/URL.d.ts +1 -0
- package/es/utils/url/whatwg-url/lib/URL.js +295 -0
- package/es/utils/url/whatwg-url/lib/URLSearchParams-impl.d.ts +19 -0
- package/es/utils/url/whatwg-url/lib/URLSearchParams-impl.js +123 -0
- package/es/utils/url/whatwg-url/lib/URLSearchParams.d.ts +1 -0
- package/es/utils/url/whatwg-url/lib/URLSearchParams.js +423 -0
- package/es/utils/url/whatwg-url/lib/infra.d.ts +12 -0
- package/es/utils/url/whatwg-url/lib/infra.js +19 -0
- package/es/utils/url/whatwg-url/lib/url-state-machine.d.ts +24 -0
- package/es/utils/url/whatwg-url/lib/url-state-machine.js +1228 -0
- package/es/utils/url/whatwg-url/lib/urlencoded.d.ts +14 -0
- package/es/utils/url/whatwg-url/lib/urlencoded.js +160 -0
- package/es/utils/url/whatwg-url/lib/utils.d.ts +37 -0
- package/es/utils/url/whatwg-url/lib/utils.js +99 -0
- package/es/utils/uuid.d.ts +19 -0
- package/es/utils/uuid.js +219 -0
- package/es/utils/validator.d.ts +30 -0
- package/es/utils/validator.js +127 -0
- package/es/utils/version.d.ts +14 -0
- package/es/utils/version.js +30 -0
- package/lib/base-app-domain/ActionAuth/Storage.js +5 -5
- package/lib/base-app-domain/I18n/Storage.js +5 -5
- package/lib/base-app-domain/Log/Style.js +3 -3
- package/lib/base-app-domain/Modi/Storage.js +4 -4
- package/lib/base-app-domain/Modi/Style.js +5 -5
- package/lib/base-app-domain/Oper/Storage.js +5 -5
- package/lib/base-app-domain/Oper/Style.js +6 -6
- package/lib/base-app-domain/Path/Storage.js +7 -7
- package/lib/base-app-domain/Relation/Storage.js +6 -6
- package/lib/base-app-domain/RelationAuth/Storage.js +7 -7
- package/lib/base-app-domain/User/Style.js +5 -5
- package/lib/base-app-domain/UserRelation/Storage.js +8 -8
- package/lib/compiler/customChecks/asyncContext.d.ts +123 -0
- package/lib/compiler/customChecks/asyncContext.js +849 -0
- package/lib/compiler/customChecks/i18n.d.ts +90 -0
- package/lib/compiler/customChecks/i18n.js +608 -0
- package/lib/compiler/customChecks/ignoreComments.d.ts +15 -0
- package/lib/compiler/customChecks/ignoreComments.js +128 -0
- package/lib/compiler/customChecks/index.d.ts +3 -0
- package/lib/compiler/customChecks/index.js +10 -0
- package/lib/compiler/customChecks/jsxChecker.d.ts +22 -0
- package/lib/compiler/customChecks/jsxChecker.js +116 -0
- package/lib/compiler/customChecks/runner.d.ts +6 -0
- package/lib/compiler/customChecks/runner.js +256 -0
- package/lib/compiler/customChecks/types.d.ts +130 -0
- package/lib/compiler/customChecks/types.js +20 -0
- package/lib/compiler/customChecks/utils.d.ts +82 -0
- package/lib/compiler/customChecks/utils.js +332 -0
- package/lib/compiler/dependencyBuilder.d.ts +10 -0
- package/lib/compiler/dependencyBuilder.js +424 -178
- package/lib/compiler/env.d.ts +5 -0
- package/lib/compiler/env.js +17 -4
- package/lib/compiler/localeBuilder.d.ts +8 -1
- package/lib/compiler/localeBuilder.js +108 -62
- package/lib/compiler/routerBuilder.d.ts +8 -1
- package/lib/compiler/routerBuilder.js +573 -85
- package/lib/compiler/schemaBuilder.d.ts +87 -0
- package/lib/compiler/{schemalBuilder.js → schemaBuilder.js} +1068 -371
- package/lib/compiler/tscBuilder.d.ts +21 -43
- package/lib/compiler/tscBuilder.js +871 -2870
- package/lib/context/BackendRuntimeContext.d.ts +32 -0
- package/lib/context/BackendRuntimeContext.js +71 -0
- package/lib/context/SerializedData.d.ts +9 -0
- package/lib/context/SerializedData.js +2 -0
- package/lib/data/i18n.js +53 -1
- package/lib/entities/ActionAuth.js +8 -0
- package/lib/entities/I18n.js +10 -0
- package/lib/entities/Log.js +18 -0
- package/lib/entities/Modi.js +24 -0
- package/lib/entities/ModiEntity.js +8 -0
- package/lib/entities/Oper.js +25 -0
- package/lib/entities/OperEntity.js +8 -0
- package/lib/entities/Path.js +10 -0
- package/lib/entities/Relation.js +9 -0
- package/lib/entities/RelationAuth.js +8 -0
- package/lib/entities/User.js +19 -0
- package/lib/entities/UserEntityClaim.js +10 -0
- package/lib/entities/UserEntityGrant.js +8 -0
- package/lib/entities/UserRelation.js +9 -0
- package/lib/index.js +0 -1
- package/lib/store/CascadeStore.d.ts +3 -0
- package/lib/store/CascadeStore.js +107 -77
- package/lib/store/IntrinsicCheckers.js +2 -2
- package/lib/store/RelationAuth.d.ts +16 -3
- package/lib/store/RelationAuth.js +95 -21
- package/lib/store/TriggerExecutor.js +23 -8
- package/lib/store/relation.d.ts +45 -6
- package/lib/store/relation.js +52 -13
- package/lib/testException.d.ts +1 -0
- package/lib/testException.js +11 -0
- package/lib/types/EntityDesc.d.ts +25 -1
- package/lib/types/EntityDesc.js +4 -0
- package/lib/types/Locale.d.ts +4 -3
- package/lib/types/Port.d.ts +4 -3
- package/lib/types/Trigger.d.ts +1 -6
- package/lib/types/Trigger.js +2 -7
- package/lib/utils/SimpleConnector.d.ts +1 -1
- package/lib/utils/SimpleConnector.js +20 -12
- package/lib/utils/dependency-analyzer.d.ts +1 -0
- package/lib/utils/dependency-analyzer.js +281 -0
- package/lib/utils/domain.d.ts +17 -0
- package/lib/utils/domain.js +63 -0
- package/lib/utils/lodash.d.ts +3 -1
- package/lib/utils/lodash.js +5 -1
- package/package.json +14 -5
- package/src/entities/ActionAuth.ts +9 -0
- package/src/entities/I18n.ts +11 -0
- package/src/entities/Log.ts +19 -0
- package/src/entities/Modi.ts +25 -0
- package/src/entities/ModiEntity.ts +9 -0
- package/src/entities/Oper.ts +26 -0
- package/src/entities/OperEntity.ts +9 -0
- package/src/entities/Path.ts +11 -0
- package/src/entities/Relation.ts +10 -0
- package/src/entities/RelationAuth.ts +9 -0
- package/src/entities/User.ts +20 -0
- package/src/entities/UserEntityClaim.ts +11 -0
- package/src/entities/UserEntityGrant.ts +9 -0
- package/src/entities/UserRelation.ts +10 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActionDef } from '../types/Action';
|
|
2
|
+
export type ReadOnlyAction = 'select' | 'count' | 'stat' | 'download' | 'aggregate';
|
|
3
|
+
export type AppendOnlyAction = ReadOnlyAction | 'create';
|
|
4
|
+
export type ExcludeUpdateAction = AppendOnlyAction | 'remove';
|
|
5
|
+
export type ExcludeRemoveAction = AppendOnlyAction | 'update';
|
|
6
|
+
export type GenericAction = 'update' | ExcludeUpdateAction;
|
|
7
|
+
export type RelationAction = 'grant' | 'revoke';
|
|
8
|
+
export declare const readOnlyActions: string[];
|
|
9
|
+
export declare const appendOnlyActions: string[];
|
|
10
|
+
export declare const excludeUpdateActions: string[];
|
|
11
|
+
export declare const excludeRemoveActions: string[];
|
|
12
|
+
export declare const genericActions: string[];
|
|
13
|
+
export declare const relationActions: string[];
|
|
14
|
+
export type AbleAction = 'enable' | 'disable';
|
|
15
|
+
export type AbleState = 'enabled' | 'disabled';
|
|
16
|
+
export declare const makeAbleActionDef: (initialState?: AbleState) => ActionDef<AbleAction, AbleState>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const readOnlyActions = ['count', 'stat', 'download', 'select', 'aggregate'];
|
|
2
|
+
export const appendOnlyActions = readOnlyActions.concat('create');
|
|
3
|
+
export const excludeUpdateActions = appendOnlyActions.concat('remove');
|
|
4
|
+
export const excludeRemoveActions = appendOnlyActions.concat('update');
|
|
5
|
+
export const genericActions = excludeUpdateActions.concat('update');
|
|
6
|
+
export const relationActions = ['grant', 'revoke'];
|
|
7
|
+
export const makeAbleActionDef = (initialState) => ({
|
|
8
|
+
stm: {
|
|
9
|
+
enable: ['disabled', 'enabled'],
|
|
10
|
+
disable: ['enabled', 'disabled'],
|
|
11
|
+
},
|
|
12
|
+
is: initialState,
|
|
13
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from "./_baseSchema";
|
|
2
|
+
import { ActionAuth } from "../EntityDict";
|
|
3
|
+
export type Schema = ActionAuth["Schema"];
|
|
4
|
+
export type Action = ActionAuth["Action"];
|
|
5
|
+
export type Projection = ActionAuth["Projection"];
|
|
6
|
+
export type Filter = ActionAuth["Filter"];
|
|
7
|
+
export type SortNode = ActionAuth["SortNode"];
|
|
8
|
+
export type Sorter = ActionAuth["Sorter"];
|
|
9
|
+
export type Selection = ActionAuth["Selection"];
|
|
10
|
+
export type Aggregation = ActionAuth["Aggregation"];
|
|
11
|
+
export type CreateOperationData = ActionAuth["CreateOperationData"];
|
|
12
|
+
export type CreateSingle = ActionAuth["CreateSingle"];
|
|
13
|
+
export type CreateMulti = ActionAuth["CreateMulti"];
|
|
14
|
+
export type Create = ActionAuth["Create"];
|
|
15
|
+
export type UpdateOperationData = ActionAuth["UpdateOperationData"];
|
|
16
|
+
export type Update = ActionAuth["Update"];
|
|
17
|
+
export type RemoveOperationData = ActionAuth["RemoveOperationData"];
|
|
18
|
+
export type Remove = ActionAuth["Remove"];
|
|
19
|
+
export type Operation = ActionAuth["Operation"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_baseSchema";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { genericActions as actions } from "../../actions/action";
|
|
2
|
+
export const desc = {
|
|
3
|
+
attributes: {
|
|
4
|
+
relationId: {
|
|
5
|
+
type: "ref",
|
|
6
|
+
ref: "relation"
|
|
7
|
+
},
|
|
8
|
+
pathId: {
|
|
9
|
+
notNull: true,
|
|
10
|
+
type: "ref",
|
|
11
|
+
ref: "path"
|
|
12
|
+
},
|
|
13
|
+
deActions: {
|
|
14
|
+
notNull: true,
|
|
15
|
+
type: "object"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
actionType: "crud",
|
|
19
|
+
actions,
|
|
20
|
+
indexes: [
|
|
21
|
+
{
|
|
22
|
+
name: "index_relation_path",
|
|
23
|
+
attributes: [
|
|
24
|
+
{
|
|
25
|
+
name: "relationId"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "pathId"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
config: {
|
|
32
|
+
unique: true
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ForeignKey, JsonProjection } from "../../types/DataType";
|
|
2
|
+
import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, ExprOp, ExpressionKey, JsonFilter } from "../../types/Demand";
|
|
3
|
+
import { MakeAction as OakMakeAction, EntityShape } from "../../types/Entity";
|
|
4
|
+
import { GenericAction } from "../../actions/action";
|
|
5
|
+
type Actions = string[];
|
|
6
|
+
export type OpSchema = EntityShape & {
|
|
7
|
+
relationId?: ForeignKey<"relation"> | null;
|
|
8
|
+
pathId: ForeignKey<"path">;
|
|
9
|
+
deActions: Actions;
|
|
10
|
+
} & {
|
|
11
|
+
[A in ExpressionKey]?: any;
|
|
12
|
+
};
|
|
13
|
+
export type OpAttr = keyof OpSchema;
|
|
14
|
+
export type OpFilter = {
|
|
15
|
+
id: Q_StringValue;
|
|
16
|
+
$$createAt$$: Q_DateValue;
|
|
17
|
+
$$seq$$: Q_NumberValue;
|
|
18
|
+
$$updateAt$$: Q_DateValue;
|
|
19
|
+
relationId: Q_StringValue;
|
|
20
|
+
pathId: Q_StringValue;
|
|
21
|
+
deActions: JsonFilter<Actions>;
|
|
22
|
+
} & ExprOp<OpAttr | string>;
|
|
23
|
+
export type OpProjection = {
|
|
24
|
+
"#id"?: NodeId;
|
|
25
|
+
[k: string]: any;
|
|
26
|
+
id?: number;
|
|
27
|
+
$$createAt$$?: number;
|
|
28
|
+
$$updateAt$$?: number;
|
|
29
|
+
$$seq$$?: number;
|
|
30
|
+
relationId?: number;
|
|
31
|
+
pathId?: number;
|
|
32
|
+
deActions?: number | JsonProjection<Actions>;
|
|
33
|
+
} & Partial<ExprOp<OpAttr | string>>;
|
|
34
|
+
export type OpSortAttr = Partial<{
|
|
35
|
+
id: number;
|
|
36
|
+
$$createAt$$: number;
|
|
37
|
+
$$seq$$: number;
|
|
38
|
+
$$updateAt$$: number;
|
|
39
|
+
relationId: number;
|
|
40
|
+
pathId: number;
|
|
41
|
+
deActions: number;
|
|
42
|
+
[k: string]: any;
|
|
43
|
+
} | ExprOp<OpAttr | string>>;
|
|
44
|
+
export type OpAction = OakMakeAction<GenericAction | string>;
|
|
45
|
+
export type OpUpdateAction = "update" | string;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const actionDefDict: {
|
|
2
|
+
log: {};
|
|
3
|
+
modi: {
|
|
4
|
+
iState: import("../types").ActionDef<string, string>;
|
|
5
|
+
};
|
|
6
|
+
oper: {
|
|
7
|
+
iState: import("../types").ActionDef<string, string>;
|
|
8
|
+
};
|
|
9
|
+
user: {
|
|
10
|
+
userState: import("../types").ActionDef<string, string>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { actionDefDict as log } from "./Log/Action";
|
|
2
|
+
import { actionDefDict as modi } from "./Modi/Action";
|
|
3
|
+
import { actionDefDict as oper } from "./Oper/Action";
|
|
4
|
+
import { actionDefDict as user } from "./User/Action";
|
|
5
|
+
export const actionDefDict = {
|
|
6
|
+
log,
|
|
7
|
+
modi,
|
|
8
|
+
oper,
|
|
9
|
+
user
|
|
10
|
+
};
|