@aouda/client 0.1.11 → 0.1.13
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/dist/cli/index.cjs +155 -24
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +155 -24
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-CT3GdrvA.d.cts → client-DFujaTFB.d.cts} +317 -8
- package/dist/{client-CT3GdrvA.d.ts → client-DFujaTFB.d.ts} +317 -8
- package/dist/index.cjs +157 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +156 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Transport, B as BulkLoadOptions, a as BulkLoadJobHandle, R as ReplicationStatusResponse, b as TopologyResponse, C as CoverageResponse, H as HealthStatus, c as ReadinessResponse, D as DetailedHealthResponse, N as NodeInfoResponse, d as TriggerBackupRequest, e as TriggerBackupResponse, L as ListBackupsResponse, f as RestoreBackupResponse, g as BackupSchedule, J as JoinClusterRequest, h as JoinClusterResponse, i as LeaveClusterResponse, P as PromoteClusterResponse, F as FailoverClusterResponse, j as DrainClusterResponse, k as ClusterConfigResponse, l as ClusterConfigPatchRequest, S as SchemaLike, m as DefaultSchema, A as AoudaClient } from './client-
|
|
2
|
-
export { n as AGGREGATE_FUNCTIONS, o as AOUDA_DATA_TYPES, p as AddColumnRequest, q as AdminApi, r as AdminBackupConfig, s as AdminBackupPatch, t as AdminConfigPatchRequest, u as AdminConfigResponse, v as AdminConfigSchemaResponse, w as AdminLoggingConfig, x as AdminLoggingPatch, y as AdminMemoryConfig, z as AdminMemoryPatch, E as AggregateFunctionName, G as AlterColumnRequest, I as AoudaClientOptions, K as AoudaDataType, M as AppAuthOptions, O as AuthClient, Q as AuthResult, U as AuthUserInfo, V as AuthorizationMode, W as BackupAdminApi, X as BackupMetrics, Y as BackupSummary, Z as BatchMutationResult, _ as BatchOperationInput, $ as BloomFilterMetrics, a0 as BranchInfo, a1 as BranchesApi, a2 as BulkLoadForceAbortRequest, a3 as BulkLoadForceAbortResponse, a4 as BulkLoadListResponse, a5 as BulkLoadProgress, a6 as BulkLoadReplicaProgress, a7 as BulkLoadReplicaProgressDto, a8 as BulkLoadStatusResponse, a9 as CircuitBreakerPolicy, aa as ClusterAdminApi, ab as ClusterMemberEntry, ac as ClusterThisNodeEntry, ad as ColumnSchema, ae as ColumnSummaryForErd, af as ColumnarResponse, ag as ComponentHealthEntry, ah as ComputedColumnDef, ai as ConfigAdminApi, aj as CreateBranchRequest, ak as CreateColumnRequest, al as CreateDatabaseOptions, am as CreatePartitionGrantRequest, an as CreateRlsResolverRequest, ao as CreateTableRequest, ap as DatabaseCoverageEntry, aq as DatabaseInfo, ar as DatabaseMemoryMetrics, as as DatabaseMemoryUsage, at as DatabaseMetricsDto, au as DatabaseOptionsInfo, av as DatabasesApi, aw as DeleteOptions, ax as DiffSummary, ay as FILTER_OPERATORS, az as FilterOperator, aA as HealthAdminApi, aB as IndexInfo, aC as InsertOptions, aD as InsertResult, aE as IoMetrics, aF as JobsApi, aG as LatencyPercentiles, aH as MaterializedQueriesApi, aI as MaterializedQueryDefinition, aJ as MaterializedQueryExecuteOptions, aK as MaterializedQueryExecuteResult, aL as MaterializedQueryMetrics, aM as MaterializedQueryRefreshOptions, aN as MaterializedQueryState, aO as MaterializedQueryStateNumber, aP as MaterializedQueryStatus, aQ as MaterializedQueryType, aR as MaterializedQueryTypeNumber, aS as MemberInfo, aT as MemoryMetrics, aU as MergeBranchOptions, aV as MergeConflict, aW as MergeExecutionResult, aX as MergeResult, aY as MetricsAdminApi, aZ as MetricsHistory, a_ as MetricsHistoryOptions, a$ as MetricsSnapshot, b0 as MetricsSummary, b1 as MutationResult, b2 as NamedArtifactWarning, b3 as
|
|
1
|
+
import { T as Transport, B as BulkLoadOptions, a as BulkLoadJobHandle, R as ReplicationStatusResponse, b as TopologyResponse, C as CoverageResponse, H as HealthStatus, c as ReadinessResponse, D as DetailedHealthResponse, N as NodeInfoResponse, d as TriggerBackupRequest, e as TriggerBackupResponse, L as ListBackupsResponse, f as RestoreBackupResponse, g as BackupSchedule, J as JoinClusterRequest, h as JoinClusterResponse, i as LeaveClusterResponse, P as PromoteClusterResponse, F as FailoverClusterResponse, j as DrainClusterResponse, k as ClusterConfigResponse, l as ClusterConfigPatchRequest, S as SchemaLike, m as DefaultSchema, A as AoudaClient } from './client-DFujaTFB.cjs';
|
|
2
|
+
export { n as AGGREGATE_FUNCTIONS, o as AOUDA_DATA_TYPES, p as AddColumnRequest, q as AdminApi, r as AdminBackupConfig, s as AdminBackupPatch, t as AdminConfigPatchRequest, u as AdminConfigResponse, v as AdminConfigSchemaResponse, w as AdminLoggingConfig, x as AdminLoggingPatch, y as AdminMemoryConfig, z as AdminMemoryPatch, E as AggregateFunctionName, G as AlterColumnRequest, I as AoudaClientOptions, K as AoudaDataType, M as AppAuthOptions, O as AuthClient, Q as AuthResult, U as AuthUserInfo, V as AuthorizationMode, W as BackupAdminApi, X as BackupMetrics, Y as BackupSummary, Z as BatchMutationResult, _ as BatchOperationInput, $ as BloomFilterMetrics, a0 as BranchInfo, a1 as BranchesApi, a2 as BulkLoadForceAbortRequest, a3 as BulkLoadForceAbortResponse, a4 as BulkLoadListResponse, a5 as BulkLoadProgress, a6 as BulkLoadReplicaProgress, a7 as BulkLoadReplicaProgressDto, a8 as BulkLoadStatusResponse, a9 as CircuitBreakerPolicy, aa as ClusterAdminApi, ab as ClusterMemberEntry, ac as ClusterThisNodeEntry, ad as ColumnSchema, ae as ColumnSummaryForErd, af as ColumnarResponse, ag as ComponentHealthEntry, ah as ComputedColumnDef, ai as ConfigAdminApi, aj as CreateBranchRequest, ak as CreateColumnRequest, al as CreateDatabaseOptions, am as CreatePartitionGrantRequest, an as CreateRlsResolverRequest, ao as CreateTableRequest, ap as DatabaseCoverageEntry, aq as DatabaseInfo, ar as DatabaseMemoryMetrics, as as DatabaseMemoryUsage, at as DatabaseMetricsDto, au as DatabaseOptionsInfo, av as DatabasesApi, aw as DeleteOptions, ax as DiffSummary, ay as FILTER_OPERATORS, az as FilterOperator, aA as HealthAdminApi, aB as IndexInfo, aC as InsertOptions, aD as InsertResult, aE as IoMetrics, aF as JobsApi, aG as LatencyPercentiles, aH as MaterializedQueriesApi, aI as MaterializedQueryDefinition, aJ as MaterializedQueryExecuteOptions, aK as MaterializedQueryExecuteResult, aL as MaterializedQueryMetrics, aM as MaterializedQueryRefreshOptions, aN as MaterializedQueryState, aO as MaterializedQueryStateNumber, aP as MaterializedQueryStatus, aQ as MaterializedQueryType, aR as MaterializedQueryTypeNumber, aS as MemberInfo, aT as MemoryMetrics, aU as MergeBranchOptions, aV as MergeConflict, aW as MergeExecutionResult, aX as MergeResult, aY as MetricsAdminApi, aZ as MetricsHistory, a_ as MetricsHistoryOptions, a$ as MetricsSnapshot, b0 as MetricsSummary, b1 as MutationResult, b2 as NamedArtifactWarning, b3 as NamedMutationDefinition, b4 as NamedMutationResult, b5 as NamedMutationsApi, b6 as NamedQueriesApi, b7 as NamedQueryBatchItem, b8 as NamedQueryBatchSlotResult, b9 as NamedQueryDefinition, ba as NamedQueryExecuteOptions, bb as NamedQueryParamConstraint, bc as NamedQuerySubscribeOptions, bd as NodeAdminApi, be as NodeLogEntry, bf as NodeLogLevel, bg as NodeLogStreamOptions, bh as NodeLogsQuery, bi as NodeLogsResponse, bj as OpenWriteStreamOptions, bk as PageCacheMetrics, bl as PartitionFunction, bm as PartitionGrant, bn as PartitionGrantsListResponse, bo as PartitioningMetrics, bp as PendingJobListResponse, bq as PendingJobResponse, br as PerDatabaseLagEntry, bs as PerDatabaseMetrics, bt as PerDatabaseStatusEntry, bu as PolicyApi, bv as PolicyInspectRequest, bw as PolicyInspectResponse, bx as PolicyInspectTableResult, by as PolicyInspectTraverseStart, bz as PolicyInspectVectorProbe, bA as QueryMetrics, bB as QueryResult, bC as QueryStats, bD as ReferenceInfo, bE as RelationshipEndpoint, bF as RelationshipInfo, bG as RenameColumnRequest, bH as RenameTableRequest, bI as ReorderColumnsRequest, bJ as ReplicationAdminApi, bK as ReplicationMetrics, bL as ResidencyConfig, bM as ResultWarning, bN as RetryPolicy, bO as RlsResolver, bP as RlsResolverRule, bQ as RlsResolverRuleInput, bR as RlsResolversListResponse, bS as SchemaAggregateColumn, bT as SchemaChange, bU as SchemaChangeType, bV as SchemaColumnDefinition, bW as SchemaDiffResult, bX as SchemaDocument, bY as SchemaFilterCondition, bZ as SchemaFilterPredicate, b_ as SchemaGroupByTerm, b$ as SchemaMaterializedQuery, c0 as SchemaMaterializedStorage, c1 as SchemaPartitionKeyEntry, c2 as SchemaRelationshipsResponse, c3 as SchemaSettings, c4 as SchemaSettingsDurability, c5 as SchemaTableDefinition, c6 as SchemaTableDurability, c7 as SchemaTablePolicy, c8 as SchemaTableTransform, c9 as SeedApplyResult, ca as SeedTableApplyResult, cb as ServerAdminApi, cc as ServerAuthOptions, cd as ServerMemoryResponse, ce as ServerMetricsResponse, cf as ServiceInfo, cg as SimdMetrics, ch as SingleDatabaseMetricsResponse, ci as SortDirection, cj as StorageMetrics, ck as SubscribeOptions, cl as Subscription, cm as SubscriptionChangeEvent, cn as SubscriptionEvent, co as SubscriptionInfo, cp as SubscriptionSnapshotEvent, cq as TIME_BUCKET_FUNCTIONS, cr as TableCoverageEntry, cs as TableNameFromSchema, ct as TablePolicy, cu as TableQuery, cv as TableSchema, cw as TableSchemaResponse, cx as TableSummary, cy as TableSummaryForErd, cz as TablesApi, cA as TestIdentity, cB as TestIdentityDocument, cC as TestIdentityGrant, cD as TimeBucketFunction, cE as TimeSeriesMetrics, cF as TransactionMetrics, cG as TypeGenerationOptions, cH as UpdateOptions, cI as UpdateRlsResolverRequest, cJ as UpdateTableOptionsRequest, cK as UpdateTablePolicyRequest, cL as UserProfile, cM as WalMetrics, cN as WhereGroupBuilder, cO as WhereOperator, cP as WriteStream, cQ as coerceColumnarValue, cR as columnarToRows, cS as createAoudaClient } from './client-DFujaTFB.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @aouda/client error types.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Transport, B as BulkLoadOptions, a as BulkLoadJobHandle, R as ReplicationStatusResponse, b as TopologyResponse, C as CoverageResponse, H as HealthStatus, c as ReadinessResponse, D as DetailedHealthResponse, N as NodeInfoResponse, d as TriggerBackupRequest, e as TriggerBackupResponse, L as ListBackupsResponse, f as RestoreBackupResponse, g as BackupSchedule, J as JoinClusterRequest, h as JoinClusterResponse, i as LeaveClusterResponse, P as PromoteClusterResponse, F as FailoverClusterResponse, j as DrainClusterResponse, k as ClusterConfigResponse, l as ClusterConfigPatchRequest, S as SchemaLike, m as DefaultSchema, A as AoudaClient } from './client-
|
|
2
|
-
export { n as AGGREGATE_FUNCTIONS, o as AOUDA_DATA_TYPES, p as AddColumnRequest, q as AdminApi, r as AdminBackupConfig, s as AdminBackupPatch, t as AdminConfigPatchRequest, u as AdminConfigResponse, v as AdminConfigSchemaResponse, w as AdminLoggingConfig, x as AdminLoggingPatch, y as AdminMemoryConfig, z as AdminMemoryPatch, E as AggregateFunctionName, G as AlterColumnRequest, I as AoudaClientOptions, K as AoudaDataType, M as AppAuthOptions, O as AuthClient, Q as AuthResult, U as AuthUserInfo, V as AuthorizationMode, W as BackupAdminApi, X as BackupMetrics, Y as BackupSummary, Z as BatchMutationResult, _ as BatchOperationInput, $ as BloomFilterMetrics, a0 as BranchInfo, a1 as BranchesApi, a2 as BulkLoadForceAbortRequest, a3 as BulkLoadForceAbortResponse, a4 as BulkLoadListResponse, a5 as BulkLoadProgress, a6 as BulkLoadReplicaProgress, a7 as BulkLoadReplicaProgressDto, a8 as BulkLoadStatusResponse, a9 as CircuitBreakerPolicy, aa as ClusterAdminApi, ab as ClusterMemberEntry, ac as ClusterThisNodeEntry, ad as ColumnSchema, ae as ColumnSummaryForErd, af as ColumnarResponse, ag as ComponentHealthEntry, ah as ComputedColumnDef, ai as ConfigAdminApi, aj as CreateBranchRequest, ak as CreateColumnRequest, al as CreateDatabaseOptions, am as CreatePartitionGrantRequest, an as CreateRlsResolverRequest, ao as CreateTableRequest, ap as DatabaseCoverageEntry, aq as DatabaseInfo, ar as DatabaseMemoryMetrics, as as DatabaseMemoryUsage, at as DatabaseMetricsDto, au as DatabaseOptionsInfo, av as DatabasesApi, aw as DeleteOptions, ax as DiffSummary, ay as FILTER_OPERATORS, az as FilterOperator, aA as HealthAdminApi, aB as IndexInfo, aC as InsertOptions, aD as InsertResult, aE as IoMetrics, aF as JobsApi, aG as LatencyPercentiles, aH as MaterializedQueriesApi, aI as MaterializedQueryDefinition, aJ as MaterializedQueryExecuteOptions, aK as MaterializedQueryExecuteResult, aL as MaterializedQueryMetrics, aM as MaterializedQueryRefreshOptions, aN as MaterializedQueryState, aO as MaterializedQueryStateNumber, aP as MaterializedQueryStatus, aQ as MaterializedQueryType, aR as MaterializedQueryTypeNumber, aS as MemberInfo, aT as MemoryMetrics, aU as MergeBranchOptions, aV as MergeConflict, aW as MergeExecutionResult, aX as MergeResult, aY as MetricsAdminApi, aZ as MetricsHistory, a_ as MetricsHistoryOptions, a$ as MetricsSnapshot, b0 as MetricsSummary, b1 as MutationResult, b2 as NamedArtifactWarning, b3 as
|
|
1
|
+
import { T as Transport, B as BulkLoadOptions, a as BulkLoadJobHandle, R as ReplicationStatusResponse, b as TopologyResponse, C as CoverageResponse, H as HealthStatus, c as ReadinessResponse, D as DetailedHealthResponse, N as NodeInfoResponse, d as TriggerBackupRequest, e as TriggerBackupResponse, L as ListBackupsResponse, f as RestoreBackupResponse, g as BackupSchedule, J as JoinClusterRequest, h as JoinClusterResponse, i as LeaveClusterResponse, P as PromoteClusterResponse, F as FailoverClusterResponse, j as DrainClusterResponse, k as ClusterConfigResponse, l as ClusterConfigPatchRequest, S as SchemaLike, m as DefaultSchema, A as AoudaClient } from './client-DFujaTFB.js';
|
|
2
|
+
export { n as AGGREGATE_FUNCTIONS, o as AOUDA_DATA_TYPES, p as AddColumnRequest, q as AdminApi, r as AdminBackupConfig, s as AdminBackupPatch, t as AdminConfigPatchRequest, u as AdminConfigResponse, v as AdminConfigSchemaResponse, w as AdminLoggingConfig, x as AdminLoggingPatch, y as AdminMemoryConfig, z as AdminMemoryPatch, E as AggregateFunctionName, G as AlterColumnRequest, I as AoudaClientOptions, K as AoudaDataType, M as AppAuthOptions, O as AuthClient, Q as AuthResult, U as AuthUserInfo, V as AuthorizationMode, W as BackupAdminApi, X as BackupMetrics, Y as BackupSummary, Z as BatchMutationResult, _ as BatchOperationInput, $ as BloomFilterMetrics, a0 as BranchInfo, a1 as BranchesApi, a2 as BulkLoadForceAbortRequest, a3 as BulkLoadForceAbortResponse, a4 as BulkLoadListResponse, a5 as BulkLoadProgress, a6 as BulkLoadReplicaProgress, a7 as BulkLoadReplicaProgressDto, a8 as BulkLoadStatusResponse, a9 as CircuitBreakerPolicy, aa as ClusterAdminApi, ab as ClusterMemberEntry, ac as ClusterThisNodeEntry, ad as ColumnSchema, ae as ColumnSummaryForErd, af as ColumnarResponse, ag as ComponentHealthEntry, ah as ComputedColumnDef, ai as ConfigAdminApi, aj as CreateBranchRequest, ak as CreateColumnRequest, al as CreateDatabaseOptions, am as CreatePartitionGrantRequest, an as CreateRlsResolverRequest, ao as CreateTableRequest, ap as DatabaseCoverageEntry, aq as DatabaseInfo, ar as DatabaseMemoryMetrics, as as DatabaseMemoryUsage, at as DatabaseMetricsDto, au as DatabaseOptionsInfo, av as DatabasesApi, aw as DeleteOptions, ax as DiffSummary, ay as FILTER_OPERATORS, az as FilterOperator, aA as HealthAdminApi, aB as IndexInfo, aC as InsertOptions, aD as InsertResult, aE as IoMetrics, aF as JobsApi, aG as LatencyPercentiles, aH as MaterializedQueriesApi, aI as MaterializedQueryDefinition, aJ as MaterializedQueryExecuteOptions, aK as MaterializedQueryExecuteResult, aL as MaterializedQueryMetrics, aM as MaterializedQueryRefreshOptions, aN as MaterializedQueryState, aO as MaterializedQueryStateNumber, aP as MaterializedQueryStatus, aQ as MaterializedQueryType, aR as MaterializedQueryTypeNumber, aS as MemberInfo, aT as MemoryMetrics, aU as MergeBranchOptions, aV as MergeConflict, aW as MergeExecutionResult, aX as MergeResult, aY as MetricsAdminApi, aZ as MetricsHistory, a_ as MetricsHistoryOptions, a$ as MetricsSnapshot, b0 as MetricsSummary, b1 as MutationResult, b2 as NamedArtifactWarning, b3 as NamedMutationDefinition, b4 as NamedMutationResult, b5 as NamedMutationsApi, b6 as NamedQueriesApi, b7 as NamedQueryBatchItem, b8 as NamedQueryBatchSlotResult, b9 as NamedQueryDefinition, ba as NamedQueryExecuteOptions, bb as NamedQueryParamConstraint, bc as NamedQuerySubscribeOptions, bd as NodeAdminApi, be as NodeLogEntry, bf as NodeLogLevel, bg as NodeLogStreamOptions, bh as NodeLogsQuery, bi as NodeLogsResponse, bj as OpenWriteStreamOptions, bk as PageCacheMetrics, bl as PartitionFunction, bm as PartitionGrant, bn as PartitionGrantsListResponse, bo as PartitioningMetrics, bp as PendingJobListResponse, bq as PendingJobResponse, br as PerDatabaseLagEntry, bs as PerDatabaseMetrics, bt as PerDatabaseStatusEntry, bu as PolicyApi, bv as PolicyInspectRequest, bw as PolicyInspectResponse, bx as PolicyInspectTableResult, by as PolicyInspectTraverseStart, bz as PolicyInspectVectorProbe, bA as QueryMetrics, bB as QueryResult, bC as QueryStats, bD as ReferenceInfo, bE as RelationshipEndpoint, bF as RelationshipInfo, bG as RenameColumnRequest, bH as RenameTableRequest, bI as ReorderColumnsRequest, bJ as ReplicationAdminApi, bK as ReplicationMetrics, bL as ResidencyConfig, bM as ResultWarning, bN as RetryPolicy, bO as RlsResolver, bP as RlsResolverRule, bQ as RlsResolverRuleInput, bR as RlsResolversListResponse, bS as SchemaAggregateColumn, bT as SchemaChange, bU as SchemaChangeType, bV as SchemaColumnDefinition, bW as SchemaDiffResult, bX as SchemaDocument, bY as SchemaFilterCondition, bZ as SchemaFilterPredicate, b_ as SchemaGroupByTerm, b$ as SchemaMaterializedQuery, c0 as SchemaMaterializedStorage, c1 as SchemaPartitionKeyEntry, c2 as SchemaRelationshipsResponse, c3 as SchemaSettings, c4 as SchemaSettingsDurability, c5 as SchemaTableDefinition, c6 as SchemaTableDurability, c7 as SchemaTablePolicy, c8 as SchemaTableTransform, c9 as SeedApplyResult, ca as SeedTableApplyResult, cb as ServerAdminApi, cc as ServerAuthOptions, cd as ServerMemoryResponse, ce as ServerMetricsResponse, cf as ServiceInfo, cg as SimdMetrics, ch as SingleDatabaseMetricsResponse, ci as SortDirection, cj as StorageMetrics, ck as SubscribeOptions, cl as Subscription, cm as SubscriptionChangeEvent, cn as SubscriptionEvent, co as SubscriptionInfo, cp as SubscriptionSnapshotEvent, cq as TIME_BUCKET_FUNCTIONS, cr as TableCoverageEntry, cs as TableNameFromSchema, ct as TablePolicy, cu as TableQuery, cv as TableSchema, cw as TableSchemaResponse, cx as TableSummary, cy as TableSummaryForErd, cz as TablesApi, cA as TestIdentity, cB as TestIdentityDocument, cC as TestIdentityGrant, cD as TimeBucketFunction, cE as TimeSeriesMetrics, cF as TransactionMetrics, cG as TypeGenerationOptions, cH as UpdateOptions, cI as UpdateRlsResolverRequest, cJ as UpdateTableOptionsRequest, cK as UpdateTablePolicyRequest, cL as UserProfile, cM as WalMetrics, cN as WhereGroupBuilder, cO as WhereOperator, cP as WriteStream, cQ as coerceColumnarValue, cR as columnarToRows, cS as createAoudaClient } from './client-DFujaTFB.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @aouda/client error types.
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@aouda/client",
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.13",
|
|
5
5
|
description: "Official TypeScript/JavaScript client library for Aouda",
|
|
6
6
|
type: "module",
|
|
7
7
|
main: "./dist/index.cjs",
|
|
@@ -1047,7 +1047,9 @@ var BulkLoadCoordinator = class {
|
|
|
1047
1047
|
replicationMode: options.replicationMode,
|
|
1048
1048
|
forceSingleNodeReplicationBypass: options.forceSingleNodeReplicationBypass,
|
|
1049
1049
|
postLoadMqBehavior: options.postLoadMqBehavior,
|
|
1050
|
-
...options.identityInsert === true ? { identityInsert: true } : {}
|
|
1050
|
+
...options.identityInsert === true ? { identityInsert: true } : {},
|
|
1051
|
+
...options.applyTransforms === true ? { applyTransforms: true } : {},
|
|
1052
|
+
...options.preTransformed === true ? { preTransformed: true } : {}
|
|
1051
1053
|
}
|
|
1052
1054
|
};
|
|
1053
1055
|
const beginResp = await this.transport.post(
|
|
@@ -1140,7 +1142,11 @@ var ERROR_CODE_MAP = {
|
|
|
1140
1142
|
NAMED_QUERY_BATCH_MUTATION: AoudaValidationError,
|
|
1141
1143
|
NAMED_QUERY_BIND_FAILED: AoudaValidationError,
|
|
1142
1144
|
NAMED_QUERY_PARAM_REQUIRED: AoudaValidationError,
|
|
1143
|
-
NAMED_MUTATION_BIND_FAILED: AoudaValidationError
|
|
1145
|
+
NAMED_MUTATION_BIND_FAILED: AoudaValidationError,
|
|
1146
|
+
AUTH_IDENTITY_INVALID: AoudaValidationError,
|
|
1147
|
+
AUTH_IDENTITY_NOT_FOUND: AoudaValidationError,
|
|
1148
|
+
BULK_LOAD_TRANSFORM_INTENT_REQUIRED: AoudaValidationError,
|
|
1149
|
+
BULK_LOAD_TRANSFORM_INTENT_CONFLICT: AoudaValidationError
|
|
1144
1150
|
};
|
|
1145
1151
|
function createComposedAbortController(...signals) {
|
|
1146
1152
|
const controller = new AbortController();
|
|
@@ -2027,7 +2033,7 @@ var AsyncEventQueue = class {
|
|
|
2027
2033
|
}
|
|
2028
2034
|
};
|
|
2029
2035
|
var TableSubscription = class {
|
|
2030
|
-
constructor(transport,
|
|
2036
|
+
constructor(transport, identity, options = {}, onWarnings) {
|
|
2031
2037
|
this._queue = new AsyncEventQueue();
|
|
2032
2038
|
this._active = true;
|
|
2033
2039
|
this._started = false;
|
|
@@ -2037,11 +2043,11 @@ var TableSubscription = class {
|
|
|
2037
2043
|
this._forceFreshSubscribe = false;
|
|
2038
2044
|
this.id = createStreamingId("sub");
|
|
2039
2045
|
this._transport = transport;
|
|
2040
|
-
this.
|
|
2041
|
-
this._baseFilter = baseFilter;
|
|
2046
|
+
this._identity = identity;
|
|
2042
2047
|
this._onSnapshot = options.onSnapshot;
|
|
2043
2048
|
this._onChange = options.onChange;
|
|
2044
2049
|
this._onError = options.onError;
|
|
2050
|
+
this._onWarnings = onWarnings;
|
|
2045
2051
|
this._conflate = options.conflate;
|
|
2046
2052
|
this._reconnectHandlerKey = `${this.id}::reconnect`;
|
|
2047
2053
|
}
|
|
@@ -2104,12 +2110,18 @@ var TableSubscription = class {
|
|
|
2104
2110
|
async _sendSubscribe(resumeFrom) {
|
|
2105
2111
|
const message = {
|
|
2106
2112
|
type: "subscribe",
|
|
2107
|
-
id: this.id
|
|
2108
|
-
target: this._tableName
|
|
2113
|
+
id: this.id
|
|
2109
2114
|
};
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2115
|
+
if (this._identity.kind === "named") {
|
|
2116
|
+
message.hash = this._identity.hash;
|
|
2117
|
+
if (this._identity.args !== void 0) {
|
|
2118
|
+
message.args = this._identity.args;
|
|
2119
|
+
}
|
|
2120
|
+
} else {
|
|
2121
|
+
message.target = this._identity.target;
|
|
2122
|
+
if (this._identity.filter !== void 0) {
|
|
2123
|
+
message.filter = this._identity.filter;
|
|
2124
|
+
}
|
|
2113
2125
|
}
|
|
2114
2126
|
if (resumeFrom !== void 0) {
|
|
2115
2127
|
message.resume_from = resumeFrom;
|
|
@@ -2148,6 +2160,9 @@ var TableSubscription = class {
|
|
|
2148
2160
|
}
|
|
2149
2161
|
_handleSnapshotComplete(message) {
|
|
2150
2162
|
this._lastVersion = message.version;
|
|
2163
|
+
if (message.warnings != null && message.warnings.length > 0) {
|
|
2164
|
+
this._onWarnings?.(message.warnings);
|
|
2165
|
+
}
|
|
2151
2166
|
const rows = this._pendingSnapshotRows;
|
|
2152
2167
|
this._pendingSnapshotRows = [];
|
|
2153
2168
|
this._onSnapshot?.(rows, message.version);
|
|
@@ -2897,17 +2912,16 @@ var TableQuery = class _TableQuery {
|
|
|
2897
2912
|
const whereClause = this.buildWhereClause();
|
|
2898
2913
|
const queryFilter = buildSubscriptionFilter(whereClause);
|
|
2899
2914
|
const mergedFilter = mergeFilterObjects(queryFilter, options.filter);
|
|
2900
|
-
const subscription = new TableSubscription(
|
|
2901
|
-
|
|
2902
|
-
this.tableName,
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
);
|
|
2915
|
+
const subscription = new TableSubscription(wsTransport, {
|
|
2916
|
+
kind: "table",
|
|
2917
|
+
target: this.tableName,
|
|
2918
|
+
filter: mergedFilter
|
|
2919
|
+
}, {
|
|
2920
|
+
onSnapshot: options.onSnapshot,
|
|
2921
|
+
onChange: options.onChange,
|
|
2922
|
+
onError: options.onError,
|
|
2923
|
+
conflate: options.conflate
|
|
2924
|
+
});
|
|
2911
2925
|
subscription.start();
|
|
2912
2926
|
return subscription;
|
|
2913
2927
|
}
|
|
@@ -3493,10 +3507,84 @@ function serializeUpdateValue(col, val) {
|
|
|
3493
3507
|
else: toNode(cond.else)
|
|
3494
3508
|
};
|
|
3495
3509
|
}
|
|
3510
|
+
if ("$upper" in val) {
|
|
3511
|
+
return { type: "call", fn: "upper", args: [unaryCallArg(col, val.$upper)] };
|
|
3512
|
+
}
|
|
3513
|
+
if ("$lower" in val) {
|
|
3514
|
+
return { type: "call", fn: "lower", args: [unaryCallArg(col, val.$lower)] };
|
|
3515
|
+
}
|
|
3516
|
+
if ("$trim" in val) {
|
|
3517
|
+
return { type: "call", fn: "trim", args: [unaryCallArg(col, val.$trim)] };
|
|
3518
|
+
}
|
|
3519
|
+
if ("$concat" in val) {
|
|
3520
|
+
const parts = val.$concat;
|
|
3521
|
+
return {
|
|
3522
|
+
type: "call",
|
|
3523
|
+
fn: "concat",
|
|
3524
|
+
args: parts.map((p) => valueToExprNode(p))
|
|
3525
|
+
};
|
|
3526
|
+
}
|
|
3527
|
+
if ("$substring" in val) {
|
|
3528
|
+
const spec = val.$substring;
|
|
3529
|
+
if (Array.isArray(spec)) {
|
|
3530
|
+
return {
|
|
3531
|
+
type: "call",
|
|
3532
|
+
fn: "substring",
|
|
3533
|
+
args: [{ type: "colRef", col }, ...spec.map((p) => valueToExprNode(p))]
|
|
3534
|
+
};
|
|
3535
|
+
}
|
|
3536
|
+
return {
|
|
3537
|
+
type: "call",
|
|
3538
|
+
fn: "substring",
|
|
3539
|
+
args: [{ type: "colRef", col }, { type: "literal", value: spec }]
|
|
3540
|
+
};
|
|
3541
|
+
}
|
|
3542
|
+
if ("$round" in val) {
|
|
3543
|
+
return {
|
|
3544
|
+
type: "call",
|
|
3545
|
+
fn: "round",
|
|
3546
|
+
args: [
|
|
3547
|
+
{ type: "colRef", col },
|
|
3548
|
+
{ type: "literal", value: val.$round }
|
|
3549
|
+
]
|
|
3550
|
+
};
|
|
3551
|
+
}
|
|
3552
|
+
if ("$roundTo" in val) {
|
|
3553
|
+
return {
|
|
3554
|
+
type: "call",
|
|
3555
|
+
fn: "roundTo",
|
|
3556
|
+
args: [
|
|
3557
|
+
{ type: "colRef", col },
|
|
3558
|
+
{ type: "literal", value: val.$roundTo }
|
|
3559
|
+
]
|
|
3560
|
+
};
|
|
3561
|
+
}
|
|
3562
|
+
if ("$cast" in val) {
|
|
3563
|
+
return {
|
|
3564
|
+
type: "call",
|
|
3565
|
+
fn: "cast",
|
|
3566
|
+
args: [
|
|
3567
|
+
{ type: "colRef", col },
|
|
3568
|
+
{ type: "literal", value: val.$cast }
|
|
3569
|
+
]
|
|
3570
|
+
};
|
|
3571
|
+
}
|
|
3496
3572
|
throw new Error(
|
|
3497
3573
|
`Unknown expression operator in update() for column '${col}': ${JSON.stringify(val)}`
|
|
3498
3574
|
);
|
|
3499
3575
|
}
|
|
3576
|
+
function unaryCallArg(col, operand) {
|
|
3577
|
+
if (operand === true || operand === 1) {
|
|
3578
|
+
return { type: "colRef", col };
|
|
3579
|
+
}
|
|
3580
|
+
return valueToExprNode(operand);
|
|
3581
|
+
}
|
|
3582
|
+
function valueToExprNode(v) {
|
|
3583
|
+
if (typeof v === "string" && v.startsWith("$")) {
|
|
3584
|
+
return { type: "colRef", col: v.slice(1) };
|
|
3585
|
+
}
|
|
3586
|
+
return { type: "literal", value: v };
|
|
3587
|
+
}
|
|
3500
3588
|
|
|
3501
3589
|
// src/tables.ts
|
|
3502
3590
|
function validateNonEmptyString(value, name) {
|
|
@@ -4657,10 +4745,11 @@ function emptyStats() {
|
|
|
4657
4745
|
};
|
|
4658
4746
|
}
|
|
4659
4747
|
var NamedQueriesApi = class {
|
|
4660
|
-
constructor(transport, database, onWarning) {
|
|
4748
|
+
constructor(transport, database, onWarning, getStreamingTransport) {
|
|
4661
4749
|
this.transport = transport;
|
|
4662
4750
|
this.database = database;
|
|
4663
4751
|
this.onWarning = onWarning;
|
|
4752
|
+
this.getStreamingTransport = getStreamingTransport;
|
|
4664
4753
|
}
|
|
4665
4754
|
async execute(hash, args, options) {
|
|
4666
4755
|
if (typeof hash !== "string" || hash.trim().length === 0) {
|
|
@@ -4728,6 +4817,26 @@ var NamedQueriesApi = class {
|
|
|
4728
4817
|
return { isError: false, result };
|
|
4729
4818
|
});
|
|
4730
4819
|
}
|
|
4820
|
+
subscribe(hash, args, options = {}) {
|
|
4821
|
+
if (typeof hash !== "string" || hash.trim().length === 0) {
|
|
4822
|
+
throw new Error("Named query hash must be a non-empty string");
|
|
4823
|
+
}
|
|
4824
|
+
const subscription = new TableSubscription(
|
|
4825
|
+
this.getStreamingTransport(),
|
|
4826
|
+
{ kind: "named", hash, args },
|
|
4827
|
+
{
|
|
4828
|
+
onSnapshot: options.onSnapshot,
|
|
4829
|
+
onChange: options.onChange,
|
|
4830
|
+
onError: options.onError,
|
|
4831
|
+
conflate: options.conflate
|
|
4832
|
+
},
|
|
4833
|
+
(warnings) => {
|
|
4834
|
+
raiseDeprecationWarnings(this.onWarning, warnings);
|
|
4835
|
+
}
|
|
4836
|
+
);
|
|
4837
|
+
subscription.start();
|
|
4838
|
+
return subscription;
|
|
4839
|
+
}
|
|
4731
4840
|
};
|
|
4732
4841
|
var NamedMutationsApi = class {
|
|
4733
4842
|
constructor(transport, database, onWarning) {
|
|
@@ -4771,6 +4880,20 @@ var NamedMutationsApi = class {
|
|
|
4771
4880
|
}
|
|
4772
4881
|
};
|
|
4773
4882
|
|
|
4883
|
+
// src/policy.ts
|
|
4884
|
+
var PolicyApi = class {
|
|
4885
|
+
constructor(transport, database) {
|
|
4886
|
+
this.transport = transport;
|
|
4887
|
+
this.database = database;
|
|
4888
|
+
}
|
|
4889
|
+
inspect(body, options) {
|
|
4890
|
+
const path = `${databasePath2(this.database)}/policy/inspect`;
|
|
4891
|
+
return this.transport.post(path, body, {
|
|
4892
|
+
signal: options?.signal
|
|
4893
|
+
});
|
|
4894
|
+
}
|
|
4895
|
+
};
|
|
4896
|
+
|
|
4774
4897
|
// src/streaming/websocket-transport.ts
|
|
4775
4898
|
import { decode as decodeMessagePack, encode as encodeMessagePack } from "@msgpack/msgpack";
|
|
4776
4899
|
var DEFAULT_PING_INTERVAL_MS = 2e4;
|
|
@@ -5551,13 +5674,15 @@ var AoudaClient = class {
|
|
|
5551
5674
|
this._namedQueries = new NamedQueriesApi(
|
|
5552
5675
|
this.transport,
|
|
5553
5676
|
this.database,
|
|
5554
|
-
onNamedArtifactWarning
|
|
5677
|
+
onNamedArtifactWarning,
|
|
5678
|
+
() => this._getOrCreateWebSocketTransport()
|
|
5555
5679
|
);
|
|
5556
5680
|
this._namedMutations = new NamedMutationsApi(
|
|
5557
5681
|
this.transport,
|
|
5558
5682
|
this.database,
|
|
5559
5683
|
onNamedArtifactWarning
|
|
5560
5684
|
);
|
|
5685
|
+
this._policy = new PolicyApi(this.transport, this.database);
|
|
5561
5686
|
}
|
|
5562
5687
|
/**
|
|
5563
5688
|
* Connects to the Aouda server.
|
|
@@ -5712,6 +5837,12 @@ var AoudaClient = class {
|
|
|
5712
5837
|
get namedMutations() {
|
|
5713
5838
|
return this._namedMutations;
|
|
5714
5839
|
}
|
|
5840
|
+
/**
|
|
5841
|
+
* Policy inspect (`POST …/policy/inspect`). Admin on the data DB.
|
|
5842
|
+
*/
|
|
5843
|
+
get policy() {
|
|
5844
|
+
return this._policy;
|
|
5845
|
+
}
|
|
5715
5846
|
/**
|
|
5716
5847
|
* Access auth operations (signUp, signIn, signOut, refresh, me, changePassword).
|
|
5717
5848
|
* @returns The auth API.
|
|
@@ -6135,6 +6266,7 @@ export {
|
|
|
6135
6266
|
NamedMutationsApi,
|
|
6136
6267
|
NamedQueriesApi,
|
|
6137
6268
|
NodeAdminApi,
|
|
6269
|
+
PolicyApi,
|
|
6138
6270
|
ReplicationAdminApi,
|
|
6139
6271
|
RetryPolicy,
|
|
6140
6272
|
ServerAdminApi,
|