@ahoo-wang/wow-client 9.9.0 → 10.0.0-alpha.4
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 +85 -230
- package/README.zh-CN.md +74 -209
- package/dist/commands.cjs +2 -0
- package/dist/commands.cjs.map +1 -0
- package/dist/commands.d.cts +123 -0
- package/dist/commands.d.ts +123 -0
- package/dist/commands.es.js +96 -0
- package/dist/commands.es.js.map +1 -0
- package/dist/dsl/aggregation/types.cjs.map +1 -1
- package/dist/dsl/aggregation/types.d.cts +1 -1
- package/dist/dsl/aggregation/types.d.ts +1 -1
- package/dist/dsl/aggregation/types.es.js.map +1 -1
- package/dist/dsl/cursorQuery.cjs.map +1 -1
- package/dist/dsl/cursorQuery.d.cts +7 -8
- package/dist/dsl/cursorQuery.d.ts +7 -8
- package/dist/dsl/cursorQuery.es.js.map +1 -1
- package/dist/dsl/descriptor.cjs.map +1 -1
- package/dist/dsl/descriptor.d.cts +8 -1
- package/dist/dsl/descriptor.d.ts +8 -1
- package/dist/dsl/descriptor.es.js.map +1 -1
- package/dist/dsl/documents.d.cts +1 -1
- package/dist/dsl/documents.d.ts +1 -1
- package/dist/dsl/filter/types.d.cts +2 -1
- package/dist/dsl/filter/types.d.ts +2 -1
- package/dist/dsl/projection.cjs.map +1 -1
- package/dist/dsl/projection.d.cts +22 -0
- package/dist/dsl/projection.d.ts +22 -0
- package/dist/dsl/projection.es.js.map +1 -1
- package/dist/dsl/queryErrorCodes.cjs +2 -0
- package/dist/dsl/queryErrorCodes.cjs.map +1 -0
- package/dist/{error → dsl}/queryErrorCodes.d.cts +25 -24
- package/dist/{error → dsl}/queryErrorCodes.d.ts +25 -24
- package/dist/{error → dsl}/queryErrorCodes.es.js +2 -1
- package/dist/{error/queryErrorCodes.cjs.map → dsl/queryErrorCodes.es.js.map} +1 -1
- package/dist/dsl.cjs +1 -1
- package/dist/dsl.d.cts +1 -2
- package/dist/dsl.d.ts +1 -2
- package/dist/dsl.es.js +2 -3
- package/dist/exactJson.cjs +3 -0
- package/dist/exactJson.cjs.map +1 -0
- package/dist/exactJson.d.cts +54 -0
- package/dist/exactJson.d.ts +54 -0
- package/dist/exactJson.es.js +213 -0
- package/dist/exactJson.es.js.map +1 -0
- package/dist/http.cjs +2 -0
- package/dist/http.cjs.map +1 -0
- package/dist/http.d.cts +96 -0
- package/dist/http.d.ts +96 -0
- package/dist/http.es.js +77 -0
- package/dist/http.es.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +19 -17
- package/dist/index.d.ts +19 -17
- package/dist/index.es.js +10 -36
- package/dist/manifest.cjs +2 -0
- package/dist/manifest.cjs.map +1 -0
- package/dist/manifest.d.cts +109 -0
- package/dist/manifest.d.ts +109 -0
- package/dist/manifest.es.js +14 -0
- package/dist/manifest.es.js.map +1 -0
- package/dist/problem.cjs +2 -0
- package/dist/problem.cjs.map +1 -0
- package/dist/problem.d.cts +211 -0
- package/dist/problem.d.ts +211 -0
- package/dist/problem.es.js +138 -0
- package/dist/problem.es.js.map +1 -0
- package/dist/queries.cjs +2 -0
- package/dist/queries.cjs.map +1 -0
- package/dist/queries.d.cts +182 -0
- package/dist/queries.d.ts +182 -0
- package/dist/queries.es.js +112 -0
- package/dist/queries.es.js.map +1 -0
- package/dist/state.cjs +2 -0
- package/dist/state.cjs.map +1 -0
- package/dist/state.d.cts +75 -0
- package/dist/state.d.ts +75 -0
- package/dist/state.es.js +70 -0
- package/dist/state.es.js.map +1 -0
- package/dist/streams.cjs +2 -0
- package/dist/streams.cjs.map +1 -0
- package/dist/streams.d.cts +74 -0
- package/dist/streams.d.ts +74 -0
- package/dist/streams.es.js +103 -0
- package/dist/streams.es.js.map +1 -0
- package/dist/wait.cjs +2 -0
- package/dist/wait.cjs.map +1 -0
- package/dist/wait.d.cts +61 -0
- package/dist/wait.d.ts +61 -0
- package/dist/wait.es.js +44 -0
- package/dist/wait.es.js.map +1 -0
- package/dist/wire.cjs +2 -0
- package/dist/wire.cjs.map +1 -0
- package/dist/wire.d.cts +326 -0
- package/dist/wire.d.ts +326 -0
- package/dist/wire.es.js +10 -0
- package/dist/wire.es.js.map +1 -0
- package/package.json +4 -16
- package/dist/_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.cjs +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorate.es.js +0 -9
- package/dist/_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.cjs +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateMetadata.es.js +0 -6
- package/dist/_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateParam.cjs +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/decorateParam.es.js +0 -8
- package/dist/client/bindMethods.cjs +0 -2
- package/dist/client/bindMethods.cjs.map +0 -1
- package/dist/client/bindMethods.d.cts +0 -13
- package/dist/client/bindMethods.d.ts +0 -13
- package/dist/client/bindMethods.es.js +0 -19
- package/dist/client/bindMethods.es.js.map +0 -1
- package/dist/client/command/commandClient.cjs +0 -2
- package/dist/client/command/commandClient.cjs.map +0 -1
- package/dist/client/command/commandClient.d.cts +0 -67
- package/dist/client/command/commandClient.d.ts +0 -67
- package/dist/client/command/commandClient.es.js +0 -38
- package/dist/client/command/commandClient.es.js.map +0 -1
- package/dist/client/command/commandHeaders.cjs +0 -2
- package/dist/client/command/commandHeaders.cjs.map +0 -1
- package/dist/client/command/commandHeaders.d.cts +0 -75
- package/dist/client/command/commandHeaders.d.ts +0 -75
- package/dist/client/command/commandHeaders.es.js +0 -31
- package/dist/client/command/commandHeaders.es.js.map +0 -1
- package/dist/client/command/commandRequest.cjs +0 -2
- package/dist/client/command/commandRequest.cjs.map +0 -1
- package/dist/client/command/commandRequest.d.cts +0 -180
- package/dist/client/command/commandRequest.d.ts +0 -180
- package/dist/client/command/commandRequest.es.js +0 -31
- package/dist/client/command/commandRequest.es.js.map +0 -1
- package/dist/client/command/commandResult.d.cts +0 -15
- package/dist/client/command/commandResult.d.ts +0 -15
- package/dist/client/command/index.d.cts +0 -5
- package/dist/client/command/index.d.ts +0 -5
- package/dist/client/command/types.d.cts +0 -71
- package/dist/client/command/types.d.ts +0 -71
- package/dist/client/metadata/index.d.cts +0 -2
- package/dist/client/metadata/index.d.ts +0 -2
- package/dist/client/metadata/wowMetadata.d.cts +0 -48
- package/dist/client/metadata/wowMetadata.d.ts +0 -48
- package/dist/client/metadata/wowMetadataClient.cjs +0 -2
- package/dist/client/metadata/wowMetadataClient.cjs.map +0 -1
- package/dist/client/metadata/wowMetadataClient.d.cts +0 -23
- package/dist/client/metadata/wowMetadataClient.d.ts +0 -23
- package/dist/client/metadata/wowMetadataClient.es.js +0 -25
- package/dist/client/metadata/wowMetadataClient.es.js.map +0 -1
- package/dist/client/query/dataset/datasetDescriptorEndpoint.cjs +0 -2
- package/dist/client/query/dataset/datasetDescriptorEndpoint.cjs.map +0 -1
- package/dist/client/query/dataset/datasetDescriptorEndpoint.d.cts +0 -8
- package/dist/client/query/dataset/datasetDescriptorEndpoint.d.ts +0 -8
- package/dist/client/query/dataset/datasetDescriptorEndpoint.es.js +0 -34
- package/dist/client/query/dataset/datasetDescriptorEndpoint.es.js.map +0 -1
- package/dist/client/query/dataset/datasetDirectoryClient.cjs +0 -2
- package/dist/client/query/dataset/datasetDirectoryClient.cjs.map +0 -1
- package/dist/client/query/dataset/datasetDirectoryClient.d.cts +0 -29
- package/dist/client/query/dataset/datasetDirectoryClient.d.ts +0 -29
- package/dist/client/query/dataset/datasetDirectoryClient.es.js +0 -25
- package/dist/client/query/dataset/datasetDirectoryClient.es.js.map +0 -1
- package/dist/client/query/dataset/datasetQueryApi.d.cts +0 -40
- package/dist/client/query/dataset/datasetQueryApi.d.ts +0 -40
- package/dist/client/query/dataset/datasetQueryClient.cjs +0 -2
- package/dist/client/query/dataset/datasetQueryClient.cjs.map +0 -1
- package/dist/client/query/dataset/datasetQueryClient.d.cts +0 -57
- package/dist/client/query/dataset/datasetQueryClient.d.ts +0 -57
- package/dist/client/query/dataset/datasetQueryClient.es.js +0 -154
- package/dist/client/query/dataset/datasetQueryClient.es.js.map +0 -1
- package/dist/client/query/dataset/endpointPaths.cjs +0 -2
- package/dist/client/query/dataset/endpointPaths.cjs.map +0 -1
- package/dist/client/query/dataset/endpointPaths.d.cts +0 -9
- package/dist/client/query/dataset/endpointPaths.d.ts +0 -9
- package/dist/client/query/dataset/endpointPaths.es.js +0 -14
- package/dist/client/query/dataset/endpointPaths.es.js.map +0 -1
- package/dist/client/query/dataset/index.d.cts +0 -3
- package/dist/client/query/dataset/index.d.ts +0 -3
- package/dist/client/query/descriptor/descriptorEndpoints.cjs +0 -2
- package/dist/client/query/descriptor/descriptorEndpoints.cjs.map +0 -1
- package/dist/client/query/descriptor/descriptorEndpoints.d.cts +0 -29
- package/dist/client/query/descriptor/descriptorEndpoints.d.ts +0 -29
- package/dist/client/query/descriptor/descriptorEndpoints.es.js +0 -69
- package/dist/client/query/descriptor/descriptorEndpoints.es.js.map +0 -1
- package/dist/client/query/descriptor/endpointPaths.cjs +0 -2
- package/dist/client/query/descriptor/endpointPaths.cjs.map +0 -1
- package/dist/client/query/descriptor/endpointPaths.d.cts +0 -4
- package/dist/client/query/descriptor/endpointPaths.d.ts +0 -4
- package/dist/client/query/descriptor/endpointPaths.es.js +0 -9
- package/dist/client/query/descriptor/endpointPaths.es.js.map +0 -1
- package/dist/client/query/descriptor/index.d.cts +0 -2
- package/dist/client/query/descriptor/index.d.ts +0 -2
- package/dist/client/query/descriptor/queryDescriptorApi.d.cts +0 -58
- package/dist/client/query/descriptor/queryDescriptorApi.d.ts +0 -58
- package/dist/client/query/descriptor/queryDescriptorClient.cjs +0 -2
- package/dist/client/query/descriptor/queryDescriptorClient.cjs.map +0 -1
- package/dist/client/query/descriptor/queryDescriptorClient.d.cts +0 -61
- package/dist/client/query/descriptor/queryDescriptorClient.d.ts +0 -61
- package/dist/client/query/descriptor/queryDescriptorClient.es.js +0 -20
- package/dist/client/query/descriptor/queryDescriptorClient.es.js.map +0 -1
- package/dist/client/query/event/endpointPaths.cjs +0 -2
- package/dist/client/query/event/endpointPaths.cjs.map +0 -1
- package/dist/client/query/event/endpointPaths.d.cts +0 -8
- package/dist/client/query/event/endpointPaths.d.ts +0 -8
- package/dist/client/query/event/endpointPaths.es.js +0 -13
- package/dist/client/query/event/endpointPaths.es.js.map +0 -1
- package/dist/client/query/event/eventStreamQueryApi.d.cts +0 -29
- package/dist/client/query/event/eventStreamQueryApi.d.ts +0 -29
- package/dist/client/query/event/eventStreamQueryClient.cjs +0 -2
- package/dist/client/query/event/eventStreamQueryClient.cjs.map +0 -1
- package/dist/client/query/event/eventStreamQueryClient.d.cts +0 -193
- package/dist/client/query/event/eventStreamQueryClient.d.ts +0 -193
- package/dist/client/query/event/eventStreamQueryClient.es.js +0 -160
- package/dist/client/query/event/eventStreamQueryClient.es.js.map +0 -1
- package/dist/client/query/event/index.d.cts +0 -2
- package/dist/client/query/event/index.d.ts +0 -2
- package/dist/client/query/factory.cjs +0 -2
- package/dist/client/query/factory.cjs.map +0 -1
- package/dist/client/query/factory.d.cts +0 -165
- package/dist/client/query/factory.d.ts +0 -165
- package/dist/client/query/factory.es.js +0 -45
- package/dist/client/query/factory.es.js.map +0 -1
- package/dist/client/query/index.d.cts +0 -7
- package/dist/client/query/index.d.ts +0 -7
- package/dist/client/query/queryApi.d.cts +0 -68
- package/dist/client/query/queryApi.d.ts +0 -68
- package/dist/client/query/requests.d.cts +0 -24
- package/dist/client/query/requests.d.ts +0 -24
- package/dist/client/query/snapshot/endpointPaths.cjs +0 -2
- package/dist/client/query/snapshot/endpointPaths.cjs.map +0 -1
- package/dist/client/query/snapshot/endpointPaths.d.cts +0 -12
- package/dist/client/query/snapshot/endpointPaths.d.ts +0 -12
- package/dist/client/query/snapshot/endpointPaths.es.js +0 -17
- package/dist/client/query/snapshot/endpointPaths.es.js.map +0 -1
- package/dist/client/query/snapshot/index.d.cts +0 -2
- package/dist/client/query/snapshot/index.d.ts +0 -2
- package/dist/client/query/snapshot/snapshotQueryApi.d.cts +0 -101
- package/dist/client/query/snapshot/snapshotQueryApi.d.ts +0 -101
- package/dist/client/query/snapshot/snapshotQueryClient.cjs +0 -2
- package/dist/client/query/snapshot/snapshotQueryClient.cjs.map +0 -1
- package/dist/client/query/snapshot/snapshotQueryClient.d.cts +0 -372
- package/dist/client/query/snapshot/snapshotQueryClient.d.ts +0 -372
- package/dist/client/query/snapshot/snapshotQueryClient.es.js +0 -239
- package/dist/client/query/snapshot/snapshotQueryClient.es.js.map +0 -1
- package/dist/client/query/state/endpointPaths.cjs +0 -2
- package/dist/client/query/state/endpointPaths.cjs.map +0 -1
- package/dist/client/query/state/endpointPaths.d.cts +0 -10
- package/dist/client/query/state/endpointPaths.d.ts +0 -10
- package/dist/client/query/state/endpointPaths.es.js +0 -14
- package/dist/client/query/state/endpointPaths.es.js.map +0 -1
- package/dist/client/query/state/index.d.cts +0 -4
- package/dist/client/query/state/index.d.ts +0 -4
- package/dist/client/query/state/loadOwnerStateAggregateApi.d.cts +0 -36
- package/dist/client/query/state/loadOwnerStateAggregateApi.d.ts +0 -36
- package/dist/client/query/state/loadOwnerStateAggregateClient.cjs +0 -2
- package/dist/client/query/state/loadOwnerStateAggregateClient.cjs.map +0 -1
- package/dist/client/query/state/loadOwnerStateAggregateClient.d.cts +0 -58
- package/dist/client/query/state/loadOwnerStateAggregateClient.d.ts +0 -58
- package/dist/client/query/state/loadOwnerStateAggregateClient.es.js +0 -56
- package/dist/client/query/state/loadOwnerStateAggregateClient.es.js.map +0 -1
- package/dist/client/query/state/loadStateAggregateApi.d.cts +0 -37
- package/dist/client/query/state/loadStateAggregateApi.d.ts +0 -37
- package/dist/client/query/state/loadStateAggregateClient.cjs +0 -2
- package/dist/client/query/state/loadStateAggregateClient.cjs.map +0 -1
- package/dist/client/query/state/loadStateAggregateClient.d.cts +0 -62
- package/dist/client/query/state/loadStateAggregateClient.d.ts +0 -62
- package/dist/client/query/state/loadStateAggregateClient.es.js +0 -65
- package/dist/client/query/state/loadStateAggregateClient.es.js.map +0 -1
- package/dist/client/routing.cjs +0 -2
- package/dist/client/routing.cjs.map +0 -1
- package/dist/client/routing.d.cts +0 -47
- package/dist/client/routing.d.ts +0 -47
- package/dist/client/routing.es.js +0 -8
- package/dist/client/routing.es.js.map +0 -1
- package/dist/error/errorInfo.cjs +0 -2
- package/dist/error/errorInfo.cjs.map +0 -1
- package/dist/error/errorInfo.d.cts +0 -139
- package/dist/error/errorInfo.d.ts +0 -139
- package/dist/error/errorInfo.es.js +0 -32
- package/dist/error/errorInfo.es.js.map +0 -1
- package/dist/error/headers.cjs +0 -2
- package/dist/error/headers.cjs.map +0 -1
- package/dist/error/headers.d.cts +0 -39
- package/dist/error/headers.d.ts +0 -39
- package/dist/error/headers.es.js +0 -10
- package/dist/error/headers.es.js.map +0 -1
- package/dist/error/index.d.cts +0 -21
- package/dist/error/index.d.ts +0 -21
- package/dist/error/queryErrorCodes.cjs +0 -2
- package/dist/error/queryErrorCodes.es.js.map +0 -1
- package/dist/error/wowError.cjs +0 -2
- package/dist/error/wowError.cjs.map +0 -1
- package/dist/error/wowError.d.cts +0 -99
- package/dist/error/wowError.d.ts +0 -99
- package/dist/error/wowError.es.js +0 -53
- package/dist/error/wowError.es.js.map +0 -1
- package/dist/legacy/condition.cjs +0 -2
- package/dist/legacy/condition.cjs.map +0 -1
- package/dist/legacy/condition.d.cts +0 -517
- package/dist/legacy/condition.d.ts +0 -517
- package/dist/legacy/condition.es.js +0 -338
- package/dist/legacy/condition.es.js.map +0 -1
- package/dist/legacy/index.d.cts +0 -16
- package/dist/legacy/index.d.ts +0 -16
- package/dist/legacy/locale/en_US.cjs +0 -2
- package/dist/legacy/locale/en_US.cjs.map +0 -1
- package/dist/legacy/locale/en_US.d.cts +0 -7
- package/dist/legacy/locale/en_US.d.ts +0 -7
- package/dist/legacy/locale/en_US.es.js +0 -50
- package/dist/legacy/locale/en_US.es.js.map +0 -1
- package/dist/legacy/locale/operatorLocale.d.cts +0 -10
- package/dist/legacy/locale/operatorLocale.d.ts +0 -10
- package/dist/legacy/locale/zh_CN.cjs +0 -2
- package/dist/legacy/locale/zh_CN.cjs.map +0 -1
- package/dist/legacy/locale/zh_CN.d.cts +0 -7
- package/dist/legacy/locale/zh_CN.d.ts +0 -7
- package/dist/legacy/locale/zh_CN.es.js +0 -50
- package/dist/legacy/locale/zh_CN.es.js.map +0 -1
- package/dist/legacy/operator.cjs +0 -2
- package/dist/legacy/operator.cjs.map +0 -1
- package/dist/legacy/operator.d.cts +0 -218
- package/dist/legacy/operator.d.ts +0 -218
- package/dist/legacy/operator.es.js +0 -25
- package/dist/legacy/operator.es.js.map +0 -1
- package/dist/legacy/queryable.cjs +0 -2
- package/dist/legacy/queryable.cjs.map +0 -1
- package/dist/legacy/queryable.d.cts +0 -61
- package/dist/legacy/queryable.d.ts +0 -61
- package/dist/legacy/queryable.es.js +0 -34
- package/dist/legacy/queryable.es.js.map +0 -1
- package/dist/legacy.cjs +0 -1
- package/dist/legacy.es.js +0 -6
- package/dist/model/abac.cjs +0 -2
- package/dist/model/abac.cjs.map +0 -1
- package/dist/model/abac.d.cts +0 -33
- package/dist/model/abac.d.ts +0 -33
- package/dist/model/abac.es.js +0 -6
- package/dist/model/abac.es.js.map +0 -1
- package/dist/model/bi.cjs +0 -2
- package/dist/model/bi.cjs.map +0 -1
- package/dist/model/bi.d.cts +0 -12
- package/dist/model/bi.d.ts +0 -12
- package/dist/model/bi.es.js +0 -8
- package/dist/model/bi.es.js.map +0 -1
- package/dist/model/command.cjs +0 -2
- package/dist/model/command.cjs.map +0 -1
- package/dist/model/command.d.cts +0 -137
- package/dist/model/command.d.ts +0 -137
- package/dist/model/command.es.js +0 -8
- package/dist/model/command.es.js.map +0 -1
- package/dist/model/common.d.cts +0 -19
- package/dist/model/common.d.ts +0 -19
- package/dist/model/domainEventStream.cjs +0 -2
- package/dist/model/domainEventStream.cjs.map +0 -1
- package/dist/model/domainEventStream.d.cts +0 -109
- package/dist/model/domainEventStream.d.ts +0 -109
- package/dist/model/domainEventStream.es.js +0 -23
- package/dist/model/domainEventStream.es.js.map +0 -1
- package/dist/model/function.cjs +0 -2
- package/dist/model/function.cjs.map +0 -1
- package/dist/model/function.d.cts +0 -41
- package/dist/model/function.d.ts +0 -41
- package/dist/model/function.es.js +0 -8
- package/dist/model/function.es.js.map +0 -1
- package/dist/model/index.d.cts +0 -24
- package/dist/model/index.d.ts +0 -24
- package/dist/model/messaging.d.cts +0 -5
- package/dist/model/messaging.d.ts +0 -5
- package/dist/model/modeling.d.cts +0 -145
- package/dist/model/modeling.d.ts +0 -145
- package/dist/model/naming.d.cts +0 -27
- package/dist/model/naming.d.ts +0 -27
- package/dist/model/snapshot.cjs +0 -2
- package/dist/model/snapshot.cjs.map +0 -1
- package/dist/model/snapshot.d.cts +0 -53
- package/dist/model/snapshot.d.ts +0 -53
- package/dist/model/snapshot.es.js +0 -20
- package/dist/model/snapshot.es.js.map +0 -1
- package/dist/transport/endpoints.cjs +0 -2
- package/dist/transport/endpoints.cjs.map +0 -1
- package/dist/transport/endpoints.d.cts +0 -79
- package/dist/transport/endpoints.d.ts +0 -79
- package/dist/transport/endpoints.es.js +0 -14
- package/dist/transport/endpoints.es.js.map +0 -1
- package/dist/transport/eventStreams.cjs +0 -2
- package/dist/transport/eventStreams.cjs.map +0 -1
- package/dist/transport/eventStreams.d.cts +0 -25
- package/dist/transport/eventStreams.d.ts +0 -25
- package/dist/transport/eventStreams.es.js +0 -21
- package/dist/transport/eventStreams.es.js.map +0 -1
- package/dist/transport/index.d.cts +0 -1
- package/dist/transport/index.d.ts +0 -1
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { CommandId, CommandStage, RequestId } from './command.cjs';
|
|
2
|
-
import { Identifier, Version } from './common.cjs';
|
|
3
|
-
import { BodyCapable } from './messaging.cjs';
|
|
4
|
-
import { AggregateId, CreateTimeCapable, DeletedCapable, FirstEventTimeCapable, FirstOperatorCapable, OwnerId, SpaceIdCapable, StateCapable } from './modeling.cjs';
|
|
5
|
-
import { Named } from './naming.cjs';
|
|
6
|
-
/**
|
|
7
|
-
* Represents a domain event with a specific body type.
|
|
8
|
-
* Extends Identifier, Named, and BodyCapable interfaces to provide identification,
|
|
9
|
-
* naming, and body capabilities for the domain event.
|
|
10
|
-
* @template BODY - The type of the event content for this domain event
|
|
11
|
-
*/
|
|
12
|
-
export interface DomainEvent<BODY> extends Identifier, Named, BodyCapable<BODY> {
|
|
13
|
-
/**
|
|
14
|
-
* The type of the event content.
|
|
15
|
-
*/
|
|
16
|
-
bodyType: string;
|
|
17
|
-
/**
|
|
18
|
-
* The revision of the domain event.
|
|
19
|
-
*/
|
|
20
|
-
revision: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Represents the header information for a domain event stream.
|
|
24
|
-
* Contains metadata about the event stream such as command information,
|
|
25
|
-
* network details, and tracing information.
|
|
26
|
-
*/
|
|
27
|
-
export interface DomainEventStreamHeader {
|
|
28
|
-
/**
|
|
29
|
-
* The operator that executed the command.
|
|
30
|
-
*/
|
|
31
|
-
command_operator?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The endpoint to wait for command completion.
|
|
34
|
-
*/
|
|
35
|
-
command_wait_endpoint?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The stage to wait for in command execution.
|
|
38
|
-
*/
|
|
39
|
-
command_wait_stage?: CommandStage;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the command could be processed locally, `'true'` or `'false'`.
|
|
42
|
-
*/
|
|
43
|
-
local_first?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The IP address of the remote client.
|
|
46
|
-
*/
|
|
47
|
-
remote_ip?: string;
|
|
48
|
-
/**
|
|
49
|
-
* The user agent of the client.
|
|
50
|
-
*/
|
|
51
|
-
user_agent?: string;
|
|
52
|
-
/**
|
|
53
|
-
* The trace identifier for distributed tracing.
|
|
54
|
-
*/
|
|
55
|
-
trace_id?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Index signature for additional custom header properties.
|
|
58
|
-
* Allows for any additional string key-value pairs to be included as header properties.
|
|
59
|
-
*/
|
|
60
|
-
[key: string]: string | undefined;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Represents a stream of domain events.
|
|
64
|
-
* Combines multiple interfaces to provide a complete domain event stream,
|
|
65
|
-
* including identification, aggregation, ownership, command information,
|
|
66
|
-
* versioning, and the actual event data.
|
|
67
|
-
*/
|
|
68
|
-
export interface DomainEventStream<DomainEventBody = unknown> extends Identifier, AggregateId, OwnerId, SpaceIdCapable, CommandId, CreateTimeCapable, RequestId, Version, BodyCapable<DomainEvent<DomainEventBody>[]> {
|
|
69
|
-
/**
|
|
70
|
-
* The header information for the domain event stream.
|
|
71
|
-
*/
|
|
72
|
-
header: DomainEventStreamHeader;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* A domain event stream together with the aggregate state after it was
|
|
76
|
-
* applied: what Wow publishes on its state event bus. Wow's OpenAPI document
|
|
77
|
-
* derives an `…StateEvent` schema from each aggregate's state, which
|
|
78
|
-
* generated code maps to this type.
|
|
79
|
-
*
|
|
80
|
-
* @template DomainEventBody - The type of the event bodies
|
|
81
|
-
* @template S - The type of the aggregate state
|
|
82
|
-
*/
|
|
83
|
-
export interface StateEvent<DomainEventBody = unknown, S = unknown> extends DomainEventStream<DomainEventBody>, StateCapable<S>, FirstOperatorCapable, FirstEventTimeCapable, DeletedCapable {
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* The field names of a domain event stream, for filters, sorts and
|
|
87
|
-
* projections over event streams (`body.name`, `header.command_operator`, …).
|
|
88
|
-
*
|
|
89
|
-
* A frozen name table: read `DomainEventStreamMetadataFields.BODY_NAME`; each
|
|
90
|
-
* value is a string literal type.
|
|
91
|
-
*/
|
|
92
|
-
export declare const DomainEventStreamMetadataFields: Readonly<{
|
|
93
|
-
readonly HEADER: "header";
|
|
94
|
-
readonly COMMAND_OPERATOR: "header.command_operator";
|
|
95
|
-
readonly AGGREGATE_ID: "aggregateId";
|
|
96
|
-
readonly TENANT_ID: "tenantId";
|
|
97
|
-
readonly OWNER_ID: "ownerId";
|
|
98
|
-
readonly SPACE_ID: "spaceId";
|
|
99
|
-
readonly COMMAND_ID: "commandId";
|
|
100
|
-
readonly REQUEST_ID: "requestId";
|
|
101
|
-
readonly VERSION: "version";
|
|
102
|
-
readonly BODY: "body";
|
|
103
|
-
readonly BODY_ID: "body.id";
|
|
104
|
-
readonly BODY_NAME: "body.name";
|
|
105
|
-
readonly BODY_TYPE: "body.bodyType";
|
|
106
|
-
readonly BODY_REVISION: "body.revision";
|
|
107
|
-
readonly BODY_BODY: "body.body";
|
|
108
|
-
readonly CREATE_TIME: "createTime";
|
|
109
|
-
}>;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { CommandId, CommandStage, RequestId } from './command.js';
|
|
2
|
-
import { Identifier, Version } from './common.js';
|
|
3
|
-
import { BodyCapable } from './messaging.js';
|
|
4
|
-
import { AggregateId, CreateTimeCapable, DeletedCapable, FirstEventTimeCapable, FirstOperatorCapable, OwnerId, SpaceIdCapable, StateCapable } from './modeling.js';
|
|
5
|
-
import { Named } from './naming.js';
|
|
6
|
-
/**
|
|
7
|
-
* Represents a domain event with a specific body type.
|
|
8
|
-
* Extends Identifier, Named, and BodyCapable interfaces to provide identification,
|
|
9
|
-
* naming, and body capabilities for the domain event.
|
|
10
|
-
* @template BODY - The type of the event content for this domain event
|
|
11
|
-
*/
|
|
12
|
-
export interface DomainEvent<BODY> extends Identifier, Named, BodyCapable<BODY> {
|
|
13
|
-
/**
|
|
14
|
-
* The type of the event content.
|
|
15
|
-
*/
|
|
16
|
-
bodyType: string;
|
|
17
|
-
/**
|
|
18
|
-
* The revision of the domain event.
|
|
19
|
-
*/
|
|
20
|
-
revision: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Represents the header information for a domain event stream.
|
|
24
|
-
* Contains metadata about the event stream such as command information,
|
|
25
|
-
* network details, and tracing information.
|
|
26
|
-
*/
|
|
27
|
-
export interface DomainEventStreamHeader {
|
|
28
|
-
/**
|
|
29
|
-
* The operator that executed the command.
|
|
30
|
-
*/
|
|
31
|
-
command_operator?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The endpoint to wait for command completion.
|
|
34
|
-
*/
|
|
35
|
-
command_wait_endpoint?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The stage to wait for in command execution.
|
|
38
|
-
*/
|
|
39
|
-
command_wait_stage?: CommandStage;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the command could be processed locally, `'true'` or `'false'`.
|
|
42
|
-
*/
|
|
43
|
-
local_first?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The IP address of the remote client.
|
|
46
|
-
*/
|
|
47
|
-
remote_ip?: string;
|
|
48
|
-
/**
|
|
49
|
-
* The user agent of the client.
|
|
50
|
-
*/
|
|
51
|
-
user_agent?: string;
|
|
52
|
-
/**
|
|
53
|
-
* The trace identifier for distributed tracing.
|
|
54
|
-
*/
|
|
55
|
-
trace_id?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Index signature for additional custom header properties.
|
|
58
|
-
* Allows for any additional string key-value pairs to be included as header properties.
|
|
59
|
-
*/
|
|
60
|
-
[key: string]: string | undefined;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Represents a stream of domain events.
|
|
64
|
-
* Combines multiple interfaces to provide a complete domain event stream,
|
|
65
|
-
* including identification, aggregation, ownership, command information,
|
|
66
|
-
* versioning, and the actual event data.
|
|
67
|
-
*/
|
|
68
|
-
export interface DomainEventStream<DomainEventBody = unknown> extends Identifier, AggregateId, OwnerId, SpaceIdCapable, CommandId, CreateTimeCapable, RequestId, Version, BodyCapable<DomainEvent<DomainEventBody>[]> {
|
|
69
|
-
/**
|
|
70
|
-
* The header information for the domain event stream.
|
|
71
|
-
*/
|
|
72
|
-
header: DomainEventStreamHeader;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* A domain event stream together with the aggregate state after it was
|
|
76
|
-
* applied: what Wow publishes on its state event bus. Wow's OpenAPI document
|
|
77
|
-
* derives an `…StateEvent` schema from each aggregate's state, which
|
|
78
|
-
* generated code maps to this type.
|
|
79
|
-
*
|
|
80
|
-
* @template DomainEventBody - The type of the event bodies
|
|
81
|
-
* @template S - The type of the aggregate state
|
|
82
|
-
*/
|
|
83
|
-
export interface StateEvent<DomainEventBody = unknown, S = unknown> extends DomainEventStream<DomainEventBody>, StateCapable<S>, FirstOperatorCapable, FirstEventTimeCapable, DeletedCapable {
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* The field names of a domain event stream, for filters, sorts and
|
|
87
|
-
* projections over event streams (`body.name`, `header.command_operator`, …).
|
|
88
|
-
*
|
|
89
|
-
* A frozen name table: read `DomainEventStreamMetadataFields.BODY_NAME`; each
|
|
90
|
-
* value is a string literal type.
|
|
91
|
-
*/
|
|
92
|
-
export declare const DomainEventStreamMetadataFields: Readonly<{
|
|
93
|
-
readonly HEADER: "header";
|
|
94
|
-
readonly COMMAND_OPERATOR: "header.command_operator";
|
|
95
|
-
readonly AGGREGATE_ID: "aggregateId";
|
|
96
|
-
readonly TENANT_ID: "tenantId";
|
|
97
|
-
readonly OWNER_ID: "ownerId";
|
|
98
|
-
readonly SPACE_ID: "spaceId";
|
|
99
|
-
readonly COMMAND_ID: "commandId";
|
|
100
|
-
readonly REQUEST_ID: "requestId";
|
|
101
|
-
readonly VERSION: "version";
|
|
102
|
-
readonly BODY: "body";
|
|
103
|
-
readonly BODY_ID: "body.id";
|
|
104
|
-
readonly BODY_NAME: "body.name";
|
|
105
|
-
readonly BODY_TYPE: "body.bodyType";
|
|
106
|
-
readonly BODY_REVISION: "body.revision";
|
|
107
|
-
readonly BODY_BODY: "body.body";
|
|
108
|
-
readonly CREATE_TIME: "createTime";
|
|
109
|
-
}>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//#region src/model/domainEventStream.ts
|
|
2
|
-
var e = Object.freeze({
|
|
3
|
-
HEADER: "header",
|
|
4
|
-
COMMAND_OPERATOR: "header.command_operator",
|
|
5
|
-
AGGREGATE_ID: "aggregateId",
|
|
6
|
-
TENANT_ID: "tenantId",
|
|
7
|
-
OWNER_ID: "ownerId",
|
|
8
|
-
SPACE_ID: "spaceId",
|
|
9
|
-
COMMAND_ID: "commandId",
|
|
10
|
-
REQUEST_ID: "requestId",
|
|
11
|
-
VERSION: "version",
|
|
12
|
-
BODY: "body",
|
|
13
|
-
BODY_ID: "body.id",
|
|
14
|
-
BODY_NAME: "body.name",
|
|
15
|
-
BODY_TYPE: "body.bodyType",
|
|
16
|
-
BODY_REVISION: "body.revision",
|
|
17
|
-
BODY_BODY: "body.body",
|
|
18
|
-
CREATE_TIME: "createTime"
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { e as DomainEventStreamMetadataFields };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=domainEventStream.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainEventStream.es.js","names":["DomainEventStreamMetadataFields"],"sources":["../../src/model/domainEventStream.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { CommandId, CommandStage, RequestId } from './command.js';\nimport type { Identifier, Version } from './common.js';\nimport type { BodyCapable } from './messaging.js';\nimport type {\n AggregateId,\n CreateTimeCapable,\n DeletedCapable,\n FirstEventTimeCapable,\n FirstOperatorCapable,\n OwnerId,\n SpaceIdCapable,\n StateCapable,\n} from './modeling.js';\nimport type { Named } from './naming.js';\n\n/**\n * Represents a domain event with a specific body type.\n * Extends Identifier, Named, and BodyCapable interfaces to provide identification,\n * naming, and body capabilities for the domain event.\n * @template BODY - The type of the event content for this domain event\n */\nexport interface DomainEvent<BODY>\n extends Identifier, Named, BodyCapable<BODY> {\n /**\n * The type of the event content.\n */\n bodyType: string;\n /**\n * The revision of the domain event.\n */\n revision: string;\n}\n\n/**\n * Represents the header information for a domain event stream.\n * Contains metadata about the event stream such as command information,\n * network details, and tracing information.\n */\nexport interface DomainEventStreamHeader {\n /**\n * The operator that executed the command.\n */\n command_operator?: string;\n /**\n * The endpoint to wait for command completion.\n */\n command_wait_endpoint?: string;\n /**\n * The stage to wait for in command execution.\n */\n command_wait_stage?: CommandStage;\n /**\n * Whether the command could be processed locally, `'true'` or `'false'`.\n */\n local_first?: string;\n /**\n * The IP address of the remote client.\n */\n remote_ip?: string;\n /**\n * The user agent of the client.\n */\n user_agent?: string;\n /**\n * The trace identifier for distributed tracing.\n */\n trace_id?: string;\n\n /**\n * Index signature for additional custom header properties.\n * Allows for any additional string key-value pairs to be included as header properties.\n */\n [key: string]: string | undefined;\n}\n\n/**\n * Represents a stream of domain events.\n * Combines multiple interfaces to provide a complete domain event stream,\n * including identification, aggregation, ownership, command information,\n * versioning, and the actual event data.\n */\nexport interface DomainEventStream<DomainEventBody = unknown>\n extends\n Identifier,\n AggregateId,\n OwnerId,\n SpaceIdCapable,\n CommandId,\n CreateTimeCapable,\n RequestId,\n Version,\n BodyCapable<DomainEvent<DomainEventBody>[]> {\n /**\n * The header information for the domain event stream.\n */\n header: DomainEventStreamHeader;\n}\n\n/**\n * A domain event stream together with the aggregate state after it was\n * applied: what Wow publishes on its state event bus. Wow's OpenAPI document\n * derives an `…StateEvent` schema from each aggregate's state, which\n * generated code maps to this type.\n *\n * @template DomainEventBody - The type of the event bodies\n * @template S - The type of the aggregate state\n */\nexport interface StateEvent<DomainEventBody = unknown, S = unknown>\n extends\n DomainEventStream<DomainEventBody>,\n StateCapable<S>,\n FirstOperatorCapable,\n FirstEventTimeCapable,\n DeletedCapable {}\n\n/**\n * The field names of a domain event stream, for filters, sorts and\n * projections over event streams (`body.name`, `header.command_operator`, …).\n *\n * A frozen name table: read `DomainEventStreamMetadataFields.BODY_NAME`; each\n * value is a string literal type.\n */\nexport const DomainEventStreamMetadataFields = Object.freeze({\n HEADER: 'header',\n COMMAND_OPERATOR: 'header.command_operator',\n AGGREGATE_ID: 'aggregateId',\n TENANT_ID: 'tenantId',\n OWNER_ID: 'ownerId',\n SPACE_ID: 'spaceId',\n COMMAND_ID: 'commandId',\n REQUEST_ID: 'requestId',\n VERSION: 'version',\n BODY: 'body',\n BODY_ID: 'body.id',\n BODY_NAME: 'body.name',\n BODY_TYPE: 'body.bodyType',\n BODY_REVISION: 'body.revision',\n BODY_BODY: 'body.body',\n CREATE_TIME: 'createTime',\n} as const);\n"],"mappings":";AAuIA,IAAaA,IAAkC,OAAO,OAAO;CAC3D,QAAQ;CACR,kBAAkB;CAClB,cAAc;CACd,WAAW;CACX,UAAU;CACV,UAAU;CACV,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,MAAM;CACN,SAAS;CACT,WAAW;CACX,WAAW;CACX,eAAe;CACf,WAAW;CACX,aAAa;AACf,CAAU"}
|
package/dist/model/function.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function.cjs","names":["FunctionKind","\"COMMAND\"","\"ERROR\"","\"EVENT\"","\"SOURCING\"","\"STATE_EVENT\""],"sources":["../../src/model/function.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Named, NamedBoundedContext } from './naming.js';\n\n/**\n * Function kind enum\n *\n * Represents the different types of functions in the system.\n */\nexport enum FunctionKind {\n /**\n * Command function kind\n */\n COMMAND = 'COMMAND',\n\n /**\n * Error function kind\n */\n ERROR = 'ERROR',\n\n /**\n * Event function kind\n */\n EVENT = 'EVENT',\n\n /**\n * Sourcing function kind\n */\n SOURCING = 'SOURCING',\n\n /**\n * State event function kind\n */\n STATE_EVENT = 'STATE_EVENT',\n}\n\n/**\n * Interface for function information.\n */\nexport interface FunctionInfo extends NamedBoundedContext, Named {\n functionKind: FunctionKind;\n processorName: string;\n}\n\n/**\n * Interface for objects that have function information.\n */\nexport interface FunctionInfoCapable {\n function: FunctionInfo;\n}\n"],"mappings":"AAoBA,IAAYA,EAAL,SAAA,EAAA,OAIL,GAAAC,QAAA,UAKA,EAAAC,MAAA,QAKA,EAAAC,MAAA,QAKA,EAAAC,SAAA,WAKA,EAAAC,YAAA,eACF,EAAA,CAAA,CAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Named, NamedBoundedContext } from './naming.cjs';
|
|
2
|
-
/**
|
|
3
|
-
* Function kind enum
|
|
4
|
-
*
|
|
5
|
-
* Represents the different types of functions in the system.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum FunctionKind {
|
|
8
|
-
/**
|
|
9
|
-
* Command function kind
|
|
10
|
-
*/
|
|
11
|
-
COMMAND = "COMMAND",
|
|
12
|
-
/**
|
|
13
|
-
* Error function kind
|
|
14
|
-
*/
|
|
15
|
-
ERROR = "ERROR",
|
|
16
|
-
/**
|
|
17
|
-
* Event function kind
|
|
18
|
-
*/
|
|
19
|
-
EVENT = "EVENT",
|
|
20
|
-
/**
|
|
21
|
-
* Sourcing function kind
|
|
22
|
-
*/
|
|
23
|
-
SOURCING = "SOURCING",
|
|
24
|
-
/**
|
|
25
|
-
* State event function kind
|
|
26
|
-
*/
|
|
27
|
-
STATE_EVENT = "STATE_EVENT"
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Interface for function information.
|
|
31
|
-
*/
|
|
32
|
-
export interface FunctionInfo extends NamedBoundedContext, Named {
|
|
33
|
-
functionKind: FunctionKind;
|
|
34
|
-
processorName: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Interface for objects that have function information.
|
|
38
|
-
*/
|
|
39
|
-
export interface FunctionInfoCapable {
|
|
40
|
-
function: FunctionInfo;
|
|
41
|
-
}
|
package/dist/model/function.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Named, NamedBoundedContext } from './naming.js';
|
|
2
|
-
/**
|
|
3
|
-
* Function kind enum
|
|
4
|
-
*
|
|
5
|
-
* Represents the different types of functions in the system.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum FunctionKind {
|
|
8
|
-
/**
|
|
9
|
-
* Command function kind
|
|
10
|
-
*/
|
|
11
|
-
COMMAND = "COMMAND",
|
|
12
|
-
/**
|
|
13
|
-
* Error function kind
|
|
14
|
-
*/
|
|
15
|
-
ERROR = "ERROR",
|
|
16
|
-
/**
|
|
17
|
-
* Event function kind
|
|
18
|
-
*/
|
|
19
|
-
EVENT = "EVENT",
|
|
20
|
-
/**
|
|
21
|
-
* Sourcing function kind
|
|
22
|
-
*/
|
|
23
|
-
SOURCING = "SOURCING",
|
|
24
|
-
/**
|
|
25
|
-
* State event function kind
|
|
26
|
-
*/
|
|
27
|
-
STATE_EVENT = "STATE_EVENT"
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Interface for function information.
|
|
31
|
-
*/
|
|
32
|
-
export interface FunctionInfo extends NamedBoundedContext, Named {
|
|
33
|
-
functionKind: FunctionKind;
|
|
34
|
-
processorName: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Interface for objects that have function information.
|
|
38
|
-
*/
|
|
39
|
-
export interface FunctionInfoCapable {
|
|
40
|
-
function: FunctionInfo;
|
|
41
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region src/model/function.ts
|
|
2
|
-
var e = /* @__PURE__ */ function(e) {
|
|
3
|
-
return e.COMMAND = "COMMAND", e.ERROR = "ERROR", e.EVENT = "EVENT", e.SOURCING = "SOURCING", e.STATE_EVENT = "STATE_EVENT", e;
|
|
4
|
-
}({});
|
|
5
|
-
//#endregion
|
|
6
|
-
export { e as FunctionKind };
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=function.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function.es.js","names":["FunctionKind","\"COMMAND\"","\"ERROR\"","\"EVENT\"","\"SOURCING\"","\"STATE_EVENT\""],"sources":["../../src/model/function.ts"],"sourcesContent":["/*\n * Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Named, NamedBoundedContext } from './naming.js';\n\n/**\n * Function kind enum\n *\n * Represents the different types of functions in the system.\n */\nexport enum FunctionKind {\n /**\n * Command function kind\n */\n COMMAND = 'COMMAND',\n\n /**\n * Error function kind\n */\n ERROR = 'ERROR',\n\n /**\n * Event function kind\n */\n EVENT = 'EVENT',\n\n /**\n * Sourcing function kind\n */\n SOURCING = 'SOURCING',\n\n /**\n * State event function kind\n */\n STATE_EVENT = 'STATE_EVENT',\n}\n\n/**\n * Interface for function information.\n */\nexport interface FunctionInfo extends NamedBoundedContext, Named {\n functionKind: FunctionKind;\n processorName: string;\n}\n\n/**\n * Interface for objects that have function information.\n */\nexport interface FunctionInfoCapable {\n function: FunctionInfo;\n}\n"],"mappings":";AAoBA,IAAYA,IAAL,yBAAA,GAAA;QAIL,EAAAC,UAAA,WAKA,EAAAC,QAAA,SAKA,EAAAC,QAAA,SAKA,EAAAC,WAAA,YAKA,EAAAC,cAAA;AACF,EAAA,CAAA,CAAA"}
|
package/dist/model/index.d.cts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Wow domain model as it crosses the wire: the mixin interfaces of
|
|
3
|
-
* Kotlin's `wow-api` (`*Capable`, `TenantId`, `AggregateId`, …) and the
|
|
4
|
-
* command results a client receives.
|
|
5
|
-
*
|
|
6
|
-
* The names follow `wow-api` one for one, and wow-generator maps the server's
|
|
7
|
-
* schemas to them by name, so they keep Kotlin's two conventions: a name like
|
|
8
|
-
* `TenantId`, `OwnerId`, `CommandId` or `RequestId` is an object holding that
|
|
9
|
-
* field (`{ tenantId: string }`), not the value itself, and an object holding
|
|
10
|
-
* a composite is `XxxCapable` (`AggregateIdCapable` holds an `AggregateId`).
|
|
11
|
-
*
|
|
12
|
-
* Types only, apart from the wire enums: nothing here imports a client, the
|
|
13
|
-
* transport or a fetcher package.
|
|
14
|
-
*/
|
|
15
|
-
export * from './abac.cjs';
|
|
16
|
-
export * from './bi.cjs';
|
|
17
|
-
export * from './command.cjs';
|
|
18
|
-
export * from './domainEventStream.cjs';
|
|
19
|
-
export * from './common.cjs';
|
|
20
|
-
export * from './function.cjs';
|
|
21
|
-
export * from './messaging.cjs';
|
|
22
|
-
export * from './modeling.cjs';
|
|
23
|
-
export * from './naming.cjs';
|
|
24
|
-
export * from './snapshot.cjs';
|
package/dist/model/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Wow domain model as it crosses the wire: the mixin interfaces of
|
|
3
|
-
* Kotlin's `wow-api` (`*Capable`, `TenantId`, `AggregateId`, …) and the
|
|
4
|
-
* command results a client receives.
|
|
5
|
-
*
|
|
6
|
-
* The names follow `wow-api` one for one, and wow-generator maps the server's
|
|
7
|
-
* schemas to them by name, so they keep Kotlin's two conventions: a name like
|
|
8
|
-
* `TenantId`, `OwnerId`, `CommandId` or `RequestId` is an object holding that
|
|
9
|
-
* field (`{ tenantId: string }`), not the value itself, and an object holding
|
|
10
|
-
* a composite is `XxxCapable` (`AggregateIdCapable` holds an `AggregateId`).
|
|
11
|
-
*
|
|
12
|
-
* Types only, apart from the wire enums: nothing here imports a client, the
|
|
13
|
-
* transport or a fetcher package.
|
|
14
|
-
*/
|
|
15
|
-
export * from './abac.js';
|
|
16
|
-
export * from './bi.js';
|
|
17
|
-
export * from './command.js';
|
|
18
|
-
export * from './domainEventStream.js';
|
|
19
|
-
export * from './common.js';
|
|
20
|
-
export * from './function.js';
|
|
21
|
-
export * from './messaging.js';
|
|
22
|
-
export * from './modeling.js';
|
|
23
|
-
export * from './naming.js';
|
|
24
|
-
export * from './snapshot.js';
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { AliasBoundedContext, NamedBoundedContext } from './naming.cjs';
|
|
2
|
-
/**
|
|
3
|
-
* Interface for classes that have a creation time.
|
|
4
|
-
*/
|
|
5
|
-
export interface CreateTimeCapable {
|
|
6
|
-
/**
|
|
7
|
-
* Gets the creation time in milliseconds since the Unix epoch.
|
|
8
|
-
*/
|
|
9
|
-
createTime: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Interface for objects that track deletion status.
|
|
13
|
-
*/
|
|
14
|
-
export interface DeletedCapable {
|
|
15
|
-
/**
|
|
16
|
-
* Whether the aggregate is deleted.
|
|
17
|
-
*/
|
|
18
|
-
deleted: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Interface for objects that track event IDs.
|
|
22
|
-
*/
|
|
23
|
-
export interface EventIdCapable {
|
|
24
|
-
/**
|
|
25
|
-
* The event id of the aggregate.
|
|
26
|
-
*/
|
|
27
|
-
eventId: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Interface for objects that track event times.
|
|
31
|
-
*/
|
|
32
|
-
export interface EventTimeCapable {
|
|
33
|
-
/**
|
|
34
|
-
* The last event time of the aggregate, represented as a Unix timestamp in milliseconds.
|
|
35
|
-
*/
|
|
36
|
-
eventTime: number;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Interface for objects that track the first event time.
|
|
40
|
-
*/
|
|
41
|
-
export interface FirstEventTimeCapable {
|
|
42
|
-
/**
|
|
43
|
-
* The first event time of the aggregate, represented as a Unix timestamp in milliseconds.
|
|
44
|
-
*/
|
|
45
|
-
firstEventTime: number;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Interface for objects that track the first operator.
|
|
49
|
-
*/
|
|
50
|
-
export interface FirstOperatorCapable {
|
|
51
|
-
/**
|
|
52
|
-
* The first operator of the aggregate.
|
|
53
|
-
*/
|
|
54
|
-
firstOperator: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Interface for objects that have an aggregate name.
|
|
58
|
-
*/
|
|
59
|
-
export interface AggregateNameCapable {
|
|
60
|
-
/**
|
|
61
|
-
* The name of the aggregate.
|
|
62
|
-
*/
|
|
63
|
-
aggregateName: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Interface for named aggregates that belong to a bounded context.
|
|
67
|
-
*/
|
|
68
|
-
export interface NamedAggregate extends NamedBoundedContext, AggregateNameCapable {
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* An aggregate named by its bounded context's alias rather than its context
|
|
72
|
-
* name, as in a client's route (`QueryClientFactory`'s `contextAlias` and
|
|
73
|
-
* `aggregateName`).
|
|
74
|
-
*/
|
|
75
|
-
export interface AliasAggregate extends AliasBoundedContext, AggregateNameCapable {
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Interface for aggregate IDs that combine tenant and named aggregate information.
|
|
79
|
-
*/
|
|
80
|
-
export interface AggregateId extends TenantId, NamedAggregate {
|
|
81
|
-
aggregateId: string;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Interface that provides the capability to contain an aggregate identifier.
|
|
85
|
-
*
|
|
86
|
-
* This interface is implemented by objects that need to reference an aggregate instance
|
|
87
|
-
* through its unique identifier, which includes tenant, context, aggregate name and the
|
|
88
|
-
* actual aggregate ID.
|
|
89
|
-
*/
|
|
90
|
-
export interface AggregateIdCapable {
|
|
91
|
-
/**
|
|
92
|
-
* The unique identifier of the aggregate instance.
|
|
93
|
-
*
|
|
94
|
-
* Contains information about the tenant, bounded context, aggregate name and the
|
|
95
|
-
* actual aggregate ID string.
|
|
96
|
-
*/
|
|
97
|
-
aggregateId: AggregateId;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Interface for objects that track the last operator.
|
|
101
|
-
*/
|
|
102
|
-
export interface OperatorCapable {
|
|
103
|
-
/**
|
|
104
|
-
* The last operator of the aggregate.
|
|
105
|
-
*/
|
|
106
|
-
operator: string;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Interface for identifying resource owners.
|
|
110
|
-
*/
|
|
111
|
-
export interface OwnerId {
|
|
112
|
-
/**
|
|
113
|
-
* Unique identifier of the resource owner.
|
|
114
|
-
*/
|
|
115
|
-
ownerId: string;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Something that lives in a space: a partition of data under a tenant, which
|
|
119
|
-
* commands and queries select with the `Wow-Space-Id` header.
|
|
120
|
-
*/
|
|
121
|
-
export interface SpaceIdCapable {
|
|
122
|
-
/** The space; an empty string is the tenant's default space. */
|
|
123
|
-
spaceId: string;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Interface for objects that track snapshot times.
|
|
127
|
-
*/
|
|
128
|
-
export interface SnapshotTimeCapable {
|
|
129
|
-
/**
|
|
130
|
-
* The snapshot time of the aggregate, represented as a Unix timestamp in milliseconds.
|
|
131
|
-
*/
|
|
132
|
-
snapshotTime: number;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Interface for objects that have a tenant ID.
|
|
136
|
-
*/
|
|
137
|
-
export interface TenantId {
|
|
138
|
-
tenantId: string;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Interface for objects that hold state.
|
|
142
|
-
*/
|
|
143
|
-
export interface StateCapable<S> {
|
|
144
|
-
state: S;
|
|
145
|
-
}
|