@distilled.cloud/starburst-galaxy 0.0.0 → 1.0.0-rc.21
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/LICENSE +201 -0
- package/README.md +110 -4
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +84 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +83 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +42 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +29 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/catalog.d.ts +2791 -0
- package/lib/services/catalog.d.ts.map +1 -0
- package/lib/services/catalog.js +101 -0
- package/lib/services/catalog.js.map +1 -0
- package/lib/services/cluster.d.ts +248 -0
- package/lib/services/cluster.d.ts.map +1 -0
- package/lib/services/cluster.js +2 -0
- package/lib/services/cluster.js.map +1 -0
- package/lib/services/column_mask.d.ts +162 -0
- package/lib/services/column_mask.d.ts.map +1 -0
- package/lib/services/column_mask.js +2 -0
- package/lib/services/column_mask.js.map +1 -0
- package/lib/services/cross_account_iam_role.d.ts +133 -0
- package/lib/services/cross_account_iam_role.d.ts.map +1 -0
- package/lib/services/cross_account_iam_role.js +2 -0
- package/lib/services/cross_account_iam_role.js.map +1 -0
- package/lib/services/data_domain.d.ts +223 -0
- package/lib/services/data_domain.d.ts.map +1 -0
- package/lib/services/data_domain.js +2 -0
- package/lib/services/data_domain.js.map +1 -0
- package/lib/services/data_product.d.ts +290 -0
- package/lib/services/data_product.d.ts.map +1 -0
- package/lib/services/data_product.js +2 -0
- package/lib/services/data_product.js.map +1 -0
- package/lib/services/data_product_usage_example.d.ts +158 -0
- package/lib/services/data_product_usage_example.d.ts.map +1 -0
- package/lib/services/data_product_usage_example.js +2 -0
- package/lib/services/data_product_usage_example.js.map +1 -0
- package/lib/services/data_quality.d.ts +344 -0
- package/lib/services/data_quality.d.ts.map +1 -0
- package/lib/services/data_quality.js +2 -0
- package/lib/services/data_quality.js.map +1 -0
- package/lib/services/data_quality_metrics.d.ts +282 -0
- package/lib/services/data_quality_metrics.d.ts.map +1 -0
- package/lib/services/data_quality_metrics.js +2 -0
- package/lib/services/data_quality_metrics.js.map +1 -0
- package/lib/services/data_quality_schedule.d.ts +220 -0
- package/lib/services/data_quality_schedule.d.ts.map +1 -0
- package/lib/services/data_quality_schedule.js +2 -0
- package/lib/services/data_quality_schedule.js.map +1 -0
- package/lib/services/discovery.d.ts +439 -0
- package/lib/services/discovery.d.ts.map +1 -0
- package/lib/services/discovery.js +36 -0
- package/lib/services/discovery.js.map +1 -0
- package/lib/services/file_ingest_source.d.ts +205 -0
- package/lib/services/file_ingest_source.d.ts.map +1 -0
- package/lib/services/file_ingest_source.js +2 -0
- package/lib/services/file_ingest_source.js.map +1 -0
- package/lib/services/group.d.ts +140 -0
- package/lib/services/group.d.ts.map +1 -0
- package/lib/services/group.js +2 -0
- package/lib/services/group.js.map +1 -0
- package/lib/services/index.d.ts +26 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +25 -0
- package/lib/services/kafka_ingest_source.d.ts +236 -0
- package/lib/services/kafka_ingest_source.d.ts.map +1 -0
- package/lib/services/kafka_ingest_source.js +2 -0
- package/lib/services/kafka_ingest_source.js.map +1 -0
- package/lib/services/live_table.d.ts +851 -0
- package/lib/services/live_table.d.ts.map +1 -0
- package/lib/services/live_table.js +20 -0
- package/lib/services/live_table.js.map +1 -0
- package/lib/services/policy.d.ts +213 -0
- package/lib/services/policy.d.ts.map +1 -0
- package/lib/services/policy.js +2 -0
- package/lib/services/policy.js.map +1 -0
- package/lib/services/privatelink.d.ts +95 -0
- package/lib/services/privatelink.d.ts.map +1 -0
- package/lib/services/privatelink.js +2 -0
- package/lib/services/privatelink.js.map +1 -0
- package/lib/services/privilege.d.ts +167 -0
- package/lib/services/privilege.d.ts.map +1 -0
- package/lib/services/privilege.js +2 -0
- package/lib/services/privilege.js.map +1 -0
- package/lib/services/role.d.ts +222 -0
- package/lib/services/role.d.ts.map +1 -0
- package/lib/services/role.js +2 -0
- package/lib/services/role.js.map +1 -0
- package/lib/services/row_filter.d.ts +155 -0
- package/lib/services/row_filter.d.ts.map +1 -0
- package/lib/services/row_filter.js +2 -0
- package/lib/services/row_filter.js.map +1 -0
- package/lib/services/schema_discovery.d.ts +236 -0
- package/lib/services/schema_discovery.d.ts.map +1 -0
- package/lib/services/schema_discovery.js +2 -0
- package/lib/services/schema_discovery.js.map +1 -0
- package/lib/services/service_account.d.ts +206 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +2 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/sql_jobs.d.ts +264 -0
- package/lib/services/sql_jobs.d.ts.map +1 -0
- package/lib/services/sql_jobs.js +2 -0
- package/lib/services/sql_jobs.js.map +1 -0
- package/lib/services/tag.d.ts +287 -0
- package/lib/services/tag.d.ts.map +1 -0
- package/lib/services/tag.js +2 -0
- package/lib/services/tag.js.map +1 -0
- package/lib/services/user.d.ts +175 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +2 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services.lazy/catalog.js +4 -0
- package/lib/services.lazy/cluster.js +1 -0
- package/lib/services.lazy/column_mask.js +1 -0
- package/lib/services.lazy/cross_account_iam_role.js +1 -0
- package/lib/services.lazy/data_domain.js +1 -0
- package/lib/services.lazy/data_product.js +1 -0
- package/lib/services.lazy/data_product_usage_example.js +1 -0
- package/lib/services.lazy/data_quality.js +1 -0
- package/lib/services.lazy/data_quality_metrics.js +1 -0
- package/lib/services.lazy/data_quality_schedule.js +1 -0
- package/lib/services.lazy/discovery.js +4 -0
- package/lib/services.lazy/file_ingest_source.js +1 -0
- package/lib/services.lazy/group.js +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/kafka_ingest_source.js +1 -0
- package/lib/services.lazy/live_table.js +4 -0
- package/lib/services.lazy/policy.js +1 -0
- package/lib/services.lazy/privatelink.js +1 -0
- package/lib/services.lazy/privilege.js +1 -0
- package/lib/services.lazy/role.js +1 -0
- package/lib/services.lazy/row_filter.js +1 -0
- package/lib/services.lazy/schema_discovery.js +1 -0
- package/lib/services.lazy/service_account.js +1 -0
- package/lib/services.lazy/sql_jobs.js +1 -0
- package/lib/services.lazy/tag.js +1 -0
- package/lib/services.lazy/user.js +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +82 -2
- package/src/credentials.ts +205 -0
- package/src/errors.ts +102 -0
- package/src/index.ts +45 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +94 -0
- package/src/retry.ts +50 -0
- package/src/services/catalog.ts +6636 -0
- package/src/services/cluster.ts +492 -0
- package/src/services/column_mask.ts +388 -0
- package/src/services/cross_account_iam_role.ts +328 -0
- package/src/services/data_domain.ts +509 -0
- package/src/services/data_product.ts +641 -0
- package/src/services/data_product_usage_example.ts +380 -0
- package/src/services/data_quality.ts +771 -0
- package/src/services/data_quality_metrics.ts +580 -0
- package/src/services/data_quality_schedule.ts +454 -0
- package/src/services/discovery.ts +1257 -0
- package/src/services/file_ingest_source.ts +480 -0
- package/src/services/group.ts +282 -0
- package/src/services/index.ts +26 -0
- package/src/services/kafka_ingest_source.ts +545 -0
- package/src/services/live_table.ts +1537 -0
- package/src/services/policy.ts +526 -0
- package/src/services/privatelink.ts +209 -0
- package/src/services/privilege.ts +423 -0
- package/src/services/role.ts +501 -0
- package/src/services/row_filter.ts +365 -0
- package/src/services/schema_discovery.ts +516 -0
- package/src/services/service_account.ts +525 -0
- package/src/services/sql_jobs.ts +621 -0
- package/src/services/tag.ts +785 -0
- package/src/services/user.ts +375 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,771 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-starburst-galaxy/specs/{v1,v2}.json). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import { StarburstGalaxyServiceErrors } from "../errors.ts";
|
|
7
|
+
import { paginateToken } from "../pagination.ts";
|
|
8
|
+
import {
|
|
9
|
+
StarburstGalaxyProtocol,
|
|
10
|
+
type StarburstGalaxyOpError,
|
|
11
|
+
type StarburstGalaxyOpContext,
|
|
12
|
+
} from "../protocol.ts";
|
|
13
|
+
import * as Retry from "../retry.ts";
|
|
14
|
+
import * as T from "../traits.ts";
|
|
15
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
16
|
+
const __s: any[] = [];
|
|
17
|
+
|
|
18
|
+
export type { StarburstGalaxyOpError, StarburstGalaxyOpContext };
|
|
19
|
+
|
|
20
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
21
|
+
const TELEMETRY = {
|
|
22
|
+
system: "starburst-galaxy-api",
|
|
23
|
+
responseHeaders: [
|
|
24
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
25
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
26
|
+
],
|
|
27
|
+
prefix: "StarburstGalaxy",
|
|
28
|
+
service: "DataQualityService",
|
|
29
|
+
labels: "starburst_galaxy",
|
|
30
|
+
propagate: "w3c",
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
export class BadRequest
|
|
34
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
35
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
36
|
+
message: S.String,
|
|
37
|
+
body: S.Unknown,
|
|
38
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
39
|
+
}).pipe(C.withBadRequestError),
|
|
40
|
+
[{ status: 400 }],
|
|
41
|
+
) {}
|
|
42
|
+
|
|
43
|
+
export class Conflict
|
|
44
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
45
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
46
|
+
message: S.String,
|
|
47
|
+
body: S.Unknown,
|
|
48
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
49
|
+
}).pipe(C.withConflictError),
|
|
50
|
+
[{ status: 409 }],
|
|
51
|
+
) {}
|
|
52
|
+
|
|
53
|
+
export class Forbidden
|
|
54
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
55
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
56
|
+
message: S.String,
|
|
57
|
+
body: S.Unknown,
|
|
58
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
59
|
+
}).pipe(C.withAuthError),
|
|
60
|
+
[{ status: 403 }],
|
|
61
|
+
) {}
|
|
62
|
+
|
|
63
|
+
export class NotFound
|
|
64
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
65
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
66
|
+
message: S.String,
|
|
67
|
+
body: S.Unknown,
|
|
68
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
69
|
+
}).pipe(C.withBadRequestError),
|
|
70
|
+
[{ status: 404 }],
|
|
71
|
+
) {}
|
|
72
|
+
|
|
73
|
+
export class PreconditionFailed
|
|
74
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
75
|
+
/*@__PURE__*/ S.TaggedError<PreconditionFailed>()("PreconditionFailed", {
|
|
76
|
+
message: S.String,
|
|
77
|
+
body: S.Unknown,
|
|
78
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
79
|
+
}),
|
|
80
|
+
[{ status: 412 }],
|
|
81
|
+
) {}
|
|
82
|
+
|
|
83
|
+
export type Severity = "Low" | "Medium" | "High" | "Critical";
|
|
84
|
+
export type Category = "Validity" | "Completeness" | "Consistency" | "Accuracy" | "None";
|
|
85
|
+
export type Kind = "QualityExpression" | "SqlQuery";
|
|
86
|
+
export interface CreateDataQualityCheckRequest {
|
|
87
|
+
/** Name of the data quality check */
|
|
88
|
+
name: string;
|
|
89
|
+
/** Description of what this check validates */
|
|
90
|
+
description?: string | undefined;
|
|
91
|
+
/** Catalog ID */
|
|
92
|
+
catalogId: string;
|
|
93
|
+
/** Schema ID */
|
|
94
|
+
schemaId: string;
|
|
95
|
+
/** Table ID */
|
|
96
|
+
tableId: string;
|
|
97
|
+
/** Either expression or SQL query that implements the data quality check logic. */
|
|
98
|
+
query: string;
|
|
99
|
+
/** Severity level of check failures */
|
|
100
|
+
severity: Severity | (string & {});
|
|
101
|
+
/** Category of data quality check */
|
|
102
|
+
category: Category | (string & {});
|
|
103
|
+
/** Kind of data quality check */
|
|
104
|
+
kind: Kind | (string & {});
|
|
105
|
+
/** ClusterId to validate expression on. Required for 'SqlQuery' kind quality checks. If missing, attempt will be made to use cluster that was already configured for the schedule. */
|
|
106
|
+
clusterId?: string | undefined;
|
|
107
|
+
}
|
|
108
|
+
/** Data quality check definition */
|
|
109
|
+
export interface DataQualityCheckDetails {
|
|
110
|
+
/** Data Quality check ID (read only) */
|
|
111
|
+
dataQualityCheckId: string;
|
|
112
|
+
/** Data Quality check name */
|
|
113
|
+
name: string;
|
|
114
|
+
/** Description of what this check validates */
|
|
115
|
+
description?: string | undefined;
|
|
116
|
+
/** Catalog ID */
|
|
117
|
+
catalogId: string;
|
|
118
|
+
/** Schema ID */
|
|
119
|
+
schemaId: string;
|
|
120
|
+
/** Table ID */
|
|
121
|
+
tableId: string;
|
|
122
|
+
/** Either expression or SQL query that implements the data quality check logic. */
|
|
123
|
+
query: string;
|
|
124
|
+
/** Kind of data quality check. */
|
|
125
|
+
kind: Kind;
|
|
126
|
+
/** Severity level of check failures */
|
|
127
|
+
severity: Severity;
|
|
128
|
+
/** Category of data quality check */
|
|
129
|
+
category: Category;
|
|
130
|
+
/** Used to ensure consistency for resource updates. A syncToken that is returned from the server is valid until the resource is updated when a new syncToken will be generated. Only the latest version of the object is maintained. (read only) */
|
|
131
|
+
syncToken: string;
|
|
132
|
+
}
|
|
133
|
+
export interface DeleteDataQualityCheckRequest {
|
|
134
|
+
/** Data quality check */
|
|
135
|
+
dataQualityCheckId: string;
|
|
136
|
+
}
|
|
137
|
+
/** Data quality check evaluation request */
|
|
138
|
+
export interface EvaluateDataQualityCheckBody {
|
|
139
|
+
/** Data quality check ID; the same as the path's */
|
|
140
|
+
dataQualityCheckId: string;
|
|
141
|
+
/** Cluster ID where data quality check is executed (SQL quality checks only) */
|
|
142
|
+
clusterId?: string | undefined;
|
|
143
|
+
}
|
|
144
|
+
export interface EvaluateDataQualityCheckRequest {
|
|
145
|
+
/** Data quality check */
|
|
146
|
+
dataQualityCheckId: string;
|
|
147
|
+
body: EvaluateDataQualityCheckBody;
|
|
148
|
+
}
|
|
149
|
+
export interface EvaluateDataQualityCheckResponse {}
|
|
150
|
+
export interface GetDataQualityCheckRequest {
|
|
151
|
+
/** Data quality check */
|
|
152
|
+
dataQualityCheckId: string;
|
|
153
|
+
}
|
|
154
|
+
export interface GetDataQualityCheckEvaluationsRequest {
|
|
155
|
+
/** Data quality check */
|
|
156
|
+
dataQualityCheckId: string;
|
|
157
|
+
}
|
|
158
|
+
export type EvaluationStatus = "Failure" | "Success";
|
|
159
|
+
/** List of evaluations */
|
|
160
|
+
export interface DataQualityCheckEvaluation {
|
|
161
|
+
/** Time of evaluation (read only) */
|
|
162
|
+
evaluatedAt: string;
|
|
163
|
+
/** For 'QualityExpression' kind quality checks - time of stats that were used to evaluate. (read only) */
|
|
164
|
+
basedOnStatsAt?: string | undefined;
|
|
165
|
+
/** Evaluation Status (read only) */
|
|
166
|
+
status: EvaluationStatus;
|
|
167
|
+
/** Predicate used for evaluation (read only) */
|
|
168
|
+
predicate: string;
|
|
169
|
+
}
|
|
170
|
+
/** List of evaluations */
|
|
171
|
+
export type DataQualityCheckWithEvaluationsEvaluationsList = Array<DataQualityCheckEvaluation>;
|
|
172
|
+
/** Data quality check with evaluation list */
|
|
173
|
+
export interface DataQualityCheckWithEvaluations {
|
|
174
|
+
/** Data Quality check ID (read only) */
|
|
175
|
+
dataQualityCheckId: string;
|
|
176
|
+
/** Data Quality check name */
|
|
177
|
+
name: string;
|
|
178
|
+
/** Description of what this check validates */
|
|
179
|
+
description?: string | undefined;
|
|
180
|
+
/** Catalog ID */
|
|
181
|
+
catalogId: string;
|
|
182
|
+
/** Schema ID */
|
|
183
|
+
schemaId: string;
|
|
184
|
+
/** Table ID */
|
|
185
|
+
tableId: string;
|
|
186
|
+
/** Either expression or SQL query that implements the data quality check logic. */
|
|
187
|
+
query: string;
|
|
188
|
+
/** Kind of data quality check. */
|
|
189
|
+
kind: Kind;
|
|
190
|
+
/** Severity level of check failures */
|
|
191
|
+
severity: Severity;
|
|
192
|
+
/** Category of data quality check */
|
|
193
|
+
category: Category;
|
|
194
|
+
/** Used to ensure consistency for resource updates. A syncToken that is returned from the server is valid until the resource is updated when a new syncToken will be generated. Only the latest version of the object is maintained. (read only) */
|
|
195
|
+
syncToken: string;
|
|
196
|
+
/** List of evaluations */
|
|
197
|
+
evaluations: DataQualityCheckWithEvaluationsEvaluationsList;
|
|
198
|
+
}
|
|
199
|
+
export interface GetLatestDataQualityCheckEvaluationRequest {
|
|
200
|
+
/** Data quality check */
|
|
201
|
+
dataQualityCheckId: string;
|
|
202
|
+
}
|
|
203
|
+
/** Latest evaluation (read only) */
|
|
204
|
+
export type DataQualityCheckEvaluation2 = DataQualityCheckEvaluation;
|
|
205
|
+
/** Data quality with latest evaluation */
|
|
206
|
+
export interface DataQualityCheckWithEvaluation {
|
|
207
|
+
/** Data Quality check ID (read only) */
|
|
208
|
+
dataQualityCheckId: string;
|
|
209
|
+
/** Data Quality check name */
|
|
210
|
+
name: string;
|
|
211
|
+
/** Description of what this check validates */
|
|
212
|
+
description?: string | undefined;
|
|
213
|
+
/** Catalog ID */
|
|
214
|
+
catalogId: string;
|
|
215
|
+
/** Schema ID */
|
|
216
|
+
schemaId: string;
|
|
217
|
+
/** Table ID */
|
|
218
|
+
tableId: string;
|
|
219
|
+
/** Either expression or SQL query that implements the data quality check logic. */
|
|
220
|
+
query: string;
|
|
221
|
+
/** Kind of data quality check. */
|
|
222
|
+
kind: Kind;
|
|
223
|
+
/** Severity level of check failures */
|
|
224
|
+
severity: Severity;
|
|
225
|
+
/** Category of data quality check */
|
|
226
|
+
category: Category;
|
|
227
|
+
/** Used to ensure consistency for resource updates. A syncToken that is returned from the server is valid until the resource is updated when a new syncToken will be generated. Only the latest version of the object is maintained. (read only) */
|
|
228
|
+
syncToken: string;
|
|
229
|
+
latestEvaluation?: DataQualityCheckEvaluation | undefined;
|
|
230
|
+
}
|
|
231
|
+
export interface ListDataQualityChecksRequest {
|
|
232
|
+
/** Query filter */
|
|
233
|
+
catalogId?: string | undefined;
|
|
234
|
+
/** Query filter */
|
|
235
|
+
schemaId?: string | undefined;
|
|
236
|
+
/** Query filter */
|
|
237
|
+
tableId?: string | undefined;
|
|
238
|
+
/** Pagination token */
|
|
239
|
+
pageToken?: string | undefined;
|
|
240
|
+
/** Page size or 0 for default (current maximum is 100) */
|
|
241
|
+
pageSize?: number | undefined;
|
|
242
|
+
}
|
|
243
|
+
/** Summary of a data quality check for list operations (read only) */
|
|
244
|
+
export interface DataQualityCheckListItem {
|
|
245
|
+
/** Data Quality check ID (read only) */
|
|
246
|
+
dataQualityCheckId: string;
|
|
247
|
+
/** Data Quality check name */
|
|
248
|
+
name: string;
|
|
249
|
+
/** Description of what this check validates */
|
|
250
|
+
description?: string | undefined;
|
|
251
|
+
/** Catalog ID */
|
|
252
|
+
catalogId: string;
|
|
253
|
+
/** Schema ID */
|
|
254
|
+
schemaId: string;
|
|
255
|
+
/** Table ID */
|
|
256
|
+
tableId: string;
|
|
257
|
+
/** Used to ensure consistency for resource updates. A syncToken that is returned from the server is valid until the resource is updated when a new syncToken will be generated. Only the latest version of the object is maintained. (read only) */
|
|
258
|
+
syncToken: string;
|
|
259
|
+
}
|
|
260
|
+
/** A page of results. */
|
|
261
|
+
export type PaginatedDataQualityCheckListItemResultList = Array<DataQualityCheckListItem>;
|
|
262
|
+
export interface PaginatedDataQualityCheckListItem {
|
|
263
|
+
/** The next page token to use or "" if there are no more pages. */
|
|
264
|
+
nextPageToken?: string | undefined;
|
|
265
|
+
/** A page of results. */
|
|
266
|
+
result: PaginatedDataQualityCheckListItemResultList;
|
|
267
|
+
}
|
|
268
|
+
export interface UpdateDataQualityCheckRequest {
|
|
269
|
+
/** Data quality check */
|
|
270
|
+
dataQualityCheckId: string;
|
|
271
|
+
/** Data Quality check name */
|
|
272
|
+
name?: string | undefined;
|
|
273
|
+
/** Description of what this check validates */
|
|
274
|
+
description?: string | undefined;
|
|
275
|
+
/** Either expression or SQL query that implements the data quality check logic. */
|
|
276
|
+
query?: string | undefined;
|
|
277
|
+
/** Severity level of check failures */
|
|
278
|
+
severity?: Severity | (string & {}) | undefined;
|
|
279
|
+
/** Category of data quality check */
|
|
280
|
+
category?: Category | (string & {}) | undefined;
|
|
281
|
+
/** ClusterId to validate expression on. Required for 'SqlQuery' kind quality checks. */
|
|
282
|
+
clusterId?: string | undefined;
|
|
283
|
+
}
|
|
284
|
+
/** Any fields/values that are invalid or incorrect */
|
|
285
|
+
export type BadRequestFieldsList = Array<string>;
|
|
286
|
+
/** Invalid request */
|
|
287
|
+
export interface BadRequest2 {
|
|
288
|
+
/** Description of the error */
|
|
289
|
+
message?: string | undefined;
|
|
290
|
+
/** Any fields/values that are invalid or incorrect */
|
|
291
|
+
fields?: BadRequestFieldsList | undefined;
|
|
292
|
+
}
|
|
293
|
+
/** Already exists */
|
|
294
|
+
export interface Exists {
|
|
295
|
+
message?: string | undefined;
|
|
296
|
+
}
|
|
297
|
+
/** Authorization failed */
|
|
298
|
+
export type Forbidden2 = Exists;
|
|
299
|
+
/** Error details (read only) */
|
|
300
|
+
export interface Resourceinfo {
|
|
301
|
+
/** Name of the resource (read only) */
|
|
302
|
+
resourceName: string;
|
|
303
|
+
/** Violation description (read only) */
|
|
304
|
+
description: string;
|
|
305
|
+
}
|
|
306
|
+
/** A specified resource is not found. */
|
|
307
|
+
export interface NotFoundError {
|
|
308
|
+
/** Description of the error */
|
|
309
|
+
message: string;
|
|
310
|
+
detail: Resourceinfo;
|
|
311
|
+
}
|
|
312
|
+
/** Any fields/values that weren't found */
|
|
313
|
+
export type NotFoundFieldsList = Array<string>;
|
|
314
|
+
/** A resource or required component was not found */
|
|
315
|
+
export interface NotFound2 {
|
|
316
|
+
/** Name of the resource */
|
|
317
|
+
message: string;
|
|
318
|
+
/** Violation description */
|
|
319
|
+
description?: string | undefined;
|
|
320
|
+
/** Any fields/values that weren't found */
|
|
321
|
+
fields?: NotFoundFieldsList | undefined;
|
|
322
|
+
}
|
|
323
|
+
export type TypeEnum = "TermsOfService";
|
|
324
|
+
/** Field violations (read only) */
|
|
325
|
+
export interface Violation {
|
|
326
|
+
/** Violation type */
|
|
327
|
+
type: TypeEnum;
|
|
328
|
+
/** Violation subject */
|
|
329
|
+
subject: string;
|
|
330
|
+
/** Violation description */
|
|
331
|
+
description: string;
|
|
332
|
+
}
|
|
333
|
+
/** Field violations (read only) */
|
|
334
|
+
export type PreconditionfailureViolationsList = Array<Violation>;
|
|
335
|
+
/** Error details (read only) */
|
|
336
|
+
export interface Preconditionfailure {
|
|
337
|
+
/** Field violations (read only) */
|
|
338
|
+
violations: PreconditionfailureViolationsList;
|
|
339
|
+
}
|
|
340
|
+
/** Request can not be executed in the current system state, such as deleting a non-empty directory. */
|
|
341
|
+
export interface FailedPrecondition {
|
|
342
|
+
/** Description of the error */
|
|
343
|
+
message: string;
|
|
344
|
+
detail: Preconditionfailure;
|
|
345
|
+
}
|
|
346
|
+
export type CreateDataQualityCheckError =
|
|
347
|
+
| BadRequest
|
|
348
|
+
| Forbidden
|
|
349
|
+
| NotFound
|
|
350
|
+
| Conflict
|
|
351
|
+
| PreconditionFailed
|
|
352
|
+
| StarburstGalaxyOpError;
|
|
353
|
+
/** Create a new data quality check definition */
|
|
354
|
+
export const createDataQualityCheck: API.OperationMethod<
|
|
355
|
+
CreateDataQualityCheckRequest,
|
|
356
|
+
DataQualityCheckDetails,
|
|
357
|
+
CreateDataQualityCheckError,
|
|
358
|
+
StarburstGalaxyOpContext
|
|
359
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
360
|
+
input: __S(12, __c3, 0) as any as S.Schema<CreateDataQualityCheckRequest>,
|
|
361
|
+
output: __S(16, __c4, 0) as any as S.Schema<DataQualityCheckDetails>,
|
|
362
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, PreconditionFailed],
|
|
363
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
364
|
+
protocol: StarburstGalaxyProtocol,
|
|
365
|
+
retry: Retry.Retry,
|
|
366
|
+
telemetry: TELEMETRY,
|
|
367
|
+
span: "CreateDataQualityCheck",
|
|
368
|
+
}));
|
|
369
|
+
|
|
370
|
+
export type DeleteDataQualityCheckError =
|
|
371
|
+
| BadRequest
|
|
372
|
+
| Forbidden
|
|
373
|
+
| NotFound
|
|
374
|
+
| StarburstGalaxyOpError;
|
|
375
|
+
/** Delete a data quality check definition */
|
|
376
|
+
export const deleteDataQualityCheck: API.OperationMethod<
|
|
377
|
+
DeleteDataQualityCheckRequest,
|
|
378
|
+
DataQualityCheckDetails,
|
|
379
|
+
DeleteDataQualityCheckError,
|
|
380
|
+
StarburstGalaxyOpContext
|
|
381
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
382
|
+
input: __S(20, __c5, 0) as any as S.Schema<DeleteDataQualityCheckRequest>,
|
|
383
|
+
output: __S(16, __c4, 0) as any as S.Schema<DataQualityCheckDetails>,
|
|
384
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
385
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
386
|
+
protocol: StarburstGalaxyProtocol,
|
|
387
|
+
retry: Retry.Retry,
|
|
388
|
+
telemetry: TELEMETRY,
|
|
389
|
+
span: "DeleteDataQualityCheck",
|
|
390
|
+
}));
|
|
391
|
+
|
|
392
|
+
export type EvaluateDataQualityCheckError =
|
|
393
|
+
| BadRequest
|
|
394
|
+
| Forbidden
|
|
395
|
+
| NotFound
|
|
396
|
+
| Conflict
|
|
397
|
+
| PreconditionFailed
|
|
398
|
+
| StarburstGalaxyOpError;
|
|
399
|
+
/** Trigger a data quality check evaluation on demand */
|
|
400
|
+
export const evaluateDataQualityCheck: API.OperationMethod<
|
|
401
|
+
EvaluateDataQualityCheckRequest,
|
|
402
|
+
EvaluateDataQualityCheckResponse,
|
|
403
|
+
EvaluateDataQualityCheckError,
|
|
404
|
+
StarburstGalaxyOpContext
|
|
405
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
406
|
+
input: __S(25, __c6, 1) as any as S.Schema<EvaluateDataQualityCheckRequest>,
|
|
407
|
+
output: __S(26, __c6, 2) as any as S.Schema<EvaluateDataQualityCheckResponse>,
|
|
408
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, PreconditionFailed],
|
|
409
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
410
|
+
protocol: StarburstGalaxyProtocol,
|
|
411
|
+
retry: Retry.Retry,
|
|
412
|
+
telemetry: TELEMETRY,
|
|
413
|
+
span: "EvaluateDataQualityCheck",
|
|
414
|
+
}));
|
|
415
|
+
|
|
416
|
+
export type GetDataQualityCheckError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
417
|
+
/** Get data quality check definition by ID */
|
|
418
|
+
export const getDataQualityCheck: API.OperationMethod<
|
|
419
|
+
GetDataQualityCheckRequest,
|
|
420
|
+
DataQualityCheckDetails,
|
|
421
|
+
GetDataQualityCheckError,
|
|
422
|
+
StarburstGalaxyOpContext
|
|
423
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
424
|
+
input: __S(28, __c7, 0) as any as S.Schema<GetDataQualityCheckRequest>,
|
|
425
|
+
output: __S(16, __c4, 0) as any as S.Schema<DataQualityCheckDetails>,
|
|
426
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
427
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
428
|
+
protocol: StarburstGalaxyProtocol,
|
|
429
|
+
retry: Retry.Retry,
|
|
430
|
+
telemetry: TELEMETRY,
|
|
431
|
+
span: "GetDataQualityCheck",
|
|
432
|
+
}));
|
|
433
|
+
|
|
434
|
+
export type GetDataQualityCheckEvaluationsError =
|
|
435
|
+
| BadRequest
|
|
436
|
+
| Forbidden
|
|
437
|
+
| NotFound
|
|
438
|
+
| StarburstGalaxyOpError;
|
|
439
|
+
/** Get status and result of a data quality check evaluation (pass/fail) */
|
|
440
|
+
export const getDataQualityCheckEvaluations: API.OperationMethod<
|
|
441
|
+
GetDataQualityCheckEvaluationsRequest,
|
|
442
|
+
DataQualityCheckWithEvaluations,
|
|
443
|
+
GetDataQualityCheckEvaluationsError,
|
|
444
|
+
StarburstGalaxyOpContext
|
|
445
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
446
|
+
input: __S(32, __c8, 0) as any as S.Schema<GetDataQualityCheckEvaluationsRequest>,
|
|
447
|
+
output: __S(34, __c8, 2) as any as S.Schema<DataQualityCheckWithEvaluations>,
|
|
448
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
449
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
450
|
+
protocol: StarburstGalaxyProtocol,
|
|
451
|
+
retry: Retry.Retry,
|
|
452
|
+
telemetry: TELEMETRY,
|
|
453
|
+
span: "GetDataQualityCheckEvaluations",
|
|
454
|
+
}));
|
|
455
|
+
|
|
456
|
+
export type GetLatestDataQualityCheckEvaluationError =
|
|
457
|
+
| BadRequest
|
|
458
|
+
| Forbidden
|
|
459
|
+
| NotFound
|
|
460
|
+
| StarburstGalaxyOpError;
|
|
461
|
+
/** Get status of latest quality check evaluation */
|
|
462
|
+
export const getLatestDataQualityCheckEvaluation: API.OperationMethod<
|
|
463
|
+
GetLatestDataQualityCheckEvaluationRequest,
|
|
464
|
+
DataQualityCheckWithEvaluation,
|
|
465
|
+
GetLatestDataQualityCheckEvaluationError,
|
|
466
|
+
StarburstGalaxyOpContext
|
|
467
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
468
|
+
input: __S(0, __c0, 0) as any as S.Schema<GetLatestDataQualityCheckEvaluationRequest>,
|
|
469
|
+
output: __S(1, __c0, 1) as any as S.Schema<DataQualityCheckWithEvaluation>,
|
|
470
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
471
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
472
|
+
protocol: StarburstGalaxyProtocol,
|
|
473
|
+
retry: Retry.Retry,
|
|
474
|
+
telemetry: TELEMETRY,
|
|
475
|
+
span: "GetLatestDataQualityCheckEvaluation",
|
|
476
|
+
}));
|
|
477
|
+
|
|
478
|
+
export type ListDataQualityChecksError = BadRequest | Forbidden | NotFound | StarburstGalaxyOpError;
|
|
479
|
+
/** List all data quality check definitions for account with optional filters by catalog, schema, or table */
|
|
480
|
+
export const listDataQualityChecks: API.PaginatedOperationMethod<
|
|
481
|
+
ListDataQualityChecksRequest,
|
|
482
|
+
PaginatedDataQualityCheckListItem,
|
|
483
|
+
ListDataQualityChecksError,
|
|
484
|
+
StarburstGalaxyOpContext,
|
|
485
|
+
DataQualityCheckListItem
|
|
486
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
487
|
+
() => ({
|
|
488
|
+
input: __S(4, __c1, 0) as any as S.Schema<ListDataQualityChecksRequest>,
|
|
489
|
+
output: __S(7, __c1, 3) as any as S.Schema<PaginatedDataQualityCheckListItem>,
|
|
490
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
491
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
492
|
+
protocol: StarburstGalaxyProtocol,
|
|
493
|
+
retry: Retry.Retry,
|
|
494
|
+
telemetry: TELEMETRY,
|
|
495
|
+
span: "ListDataQualityChecks",
|
|
496
|
+
pagination: {
|
|
497
|
+
mode: "token",
|
|
498
|
+
inputToken: "pageToken",
|
|
499
|
+
outputToken: "nextPageToken",
|
|
500
|
+
items: "result",
|
|
501
|
+
pageSize: "pageSize",
|
|
502
|
+
} as const,
|
|
503
|
+
}),
|
|
504
|
+
paginateToken,
|
|
505
|
+
) as any;
|
|
506
|
+
|
|
507
|
+
export type UpdateDataQualityCheckError =
|
|
508
|
+
| BadRequest
|
|
509
|
+
| Forbidden
|
|
510
|
+
| NotFound
|
|
511
|
+
| Conflict
|
|
512
|
+
| StarburstGalaxyOpError;
|
|
513
|
+
/** Update an existing data quality check definition Only include fields you wish to update. Missing or unrecognized fields are ignored. */
|
|
514
|
+
export const updateDataQualityCheck: API.OperationMethod<
|
|
515
|
+
UpdateDataQualityCheckRequest,
|
|
516
|
+
DataQualityCheckDetails,
|
|
517
|
+
UpdateDataQualityCheckError,
|
|
518
|
+
StarburstGalaxyOpContext
|
|
519
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
520
|
+
input: __S(8, __c2, 0) as any as S.Schema<UpdateDataQualityCheckRequest>,
|
|
521
|
+
output: __S(16, __c4, 0) as any as S.Schema<DataQualityCheckDetails>,
|
|
522
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
523
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
524
|
+
protocol: StarburstGalaxyProtocol,
|
|
525
|
+
retry: Retry.Retry,
|
|
526
|
+
telemetry: TELEMETRY,
|
|
527
|
+
span: "UpdateDataQualityCheck",
|
|
528
|
+
}));
|
|
529
|
+
|
|
530
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
531
|
+
function __c0(j: number): any {
|
|
532
|
+
switch (j) {
|
|
533
|
+
case 0:
|
|
534
|
+
return S.suspend(() =>
|
|
535
|
+
S.Struct({
|
|
536
|
+
dataQualityCheckId: S.String.pipe(T.Label()),
|
|
537
|
+
}).pipe(
|
|
538
|
+
T.Http({
|
|
539
|
+
method: "GET",
|
|
540
|
+
uri: "/public/api/v1/dataQualityCheck/{dataQualityCheckId}/evaluation:latest",
|
|
541
|
+
code: 200,
|
|
542
|
+
}),
|
|
543
|
+
),
|
|
544
|
+
).annotate({ identifier: "GetLatestDataQualityCheckEvaluationRequest" });
|
|
545
|
+
case 1:
|
|
546
|
+
return S.suspend(() =>
|
|
547
|
+
S.Struct({
|
|
548
|
+
dataQualityCheckId: S.String,
|
|
549
|
+
name: S.String,
|
|
550
|
+
description: S.optional(S.String),
|
|
551
|
+
catalogId: S.String,
|
|
552
|
+
schemaId: S.String,
|
|
553
|
+
tableId: S.String,
|
|
554
|
+
query: S.String,
|
|
555
|
+
kind: S.String,
|
|
556
|
+
severity: S.String,
|
|
557
|
+
category: S.String,
|
|
558
|
+
syncToken: S.String,
|
|
559
|
+
latestEvaluation: S.optional(__S(36, __c9, 0)),
|
|
560
|
+
}),
|
|
561
|
+
).annotate({ identifier: "DataQualityCheckWithEvaluation" });
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
function __c1(j: number): any {
|
|
565
|
+
switch (j) {
|
|
566
|
+
case 0:
|
|
567
|
+
return S.suspend(() =>
|
|
568
|
+
S.Struct({
|
|
569
|
+
catalogId: S.optional(S.String.pipe(T.Query())),
|
|
570
|
+
schemaId: S.optional(S.String.pipe(T.Query())),
|
|
571
|
+
tableId: S.optional(S.String.pipe(T.Query())),
|
|
572
|
+
pageToken: S.optional(S.String.pipe(T.Query())),
|
|
573
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
574
|
+
}).pipe(T.Http({ method: "GET", uri: "/public/api/v1/dataQualityCheck", code: 200 })),
|
|
575
|
+
).annotate({ identifier: "ListDataQualityChecksRequest" });
|
|
576
|
+
case 1:
|
|
577
|
+
return S.suspend(() =>
|
|
578
|
+
S.Struct({
|
|
579
|
+
dataQualityCheckId: S.String,
|
|
580
|
+
name: S.String,
|
|
581
|
+
description: S.optional(S.String),
|
|
582
|
+
catalogId: S.String,
|
|
583
|
+
schemaId: S.String,
|
|
584
|
+
tableId: S.String,
|
|
585
|
+
syncToken: S.String,
|
|
586
|
+
}),
|
|
587
|
+
).annotate({ identifier: "DataQualityCheckListItem" });
|
|
588
|
+
case 2:
|
|
589
|
+
return S.Array(__S(5, __c1, 1));
|
|
590
|
+
case 3:
|
|
591
|
+
return S.suspend(() =>
|
|
592
|
+
S.Struct({
|
|
593
|
+
nextPageToken: S.optional(S.String),
|
|
594
|
+
result: __S(6, __c1, 2),
|
|
595
|
+
}),
|
|
596
|
+
).annotate({ identifier: "PaginatedDataQualityCheckListItem" });
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
function __c2(j: number): any {
|
|
600
|
+
switch (j) {
|
|
601
|
+
case 0:
|
|
602
|
+
return S.suspend(() =>
|
|
603
|
+
S.Struct({
|
|
604
|
+
dataQualityCheckId: S.String.pipe(T.Label()),
|
|
605
|
+
name: S.optional(S.String),
|
|
606
|
+
description: S.optional(S.String),
|
|
607
|
+
query: S.optional(S.String),
|
|
608
|
+
severity: S.optional(S.String),
|
|
609
|
+
category: S.optional(S.String),
|
|
610
|
+
clusterId: S.optional(S.String),
|
|
611
|
+
}).pipe(
|
|
612
|
+
T.Http({
|
|
613
|
+
method: "PATCH",
|
|
614
|
+
uri: "/public/api/v1/dataQualityCheck/{dataQualityCheckId}",
|
|
615
|
+
code: 200,
|
|
616
|
+
}),
|
|
617
|
+
),
|
|
618
|
+
).annotate({ identifier: "UpdateDataQualityCheckRequest" });
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
function __c3(j: number): any {
|
|
622
|
+
switch (j) {
|
|
623
|
+
case 0:
|
|
624
|
+
return S.suspend(() =>
|
|
625
|
+
S.Struct({
|
|
626
|
+
name: S.String,
|
|
627
|
+
description: S.optional(S.String),
|
|
628
|
+
catalogId: S.String,
|
|
629
|
+
schemaId: S.String,
|
|
630
|
+
tableId: S.String,
|
|
631
|
+
query: S.String,
|
|
632
|
+
severity: S.String,
|
|
633
|
+
category: S.String,
|
|
634
|
+
kind: S.String,
|
|
635
|
+
clusterId: S.optional(S.String),
|
|
636
|
+
}).pipe(T.Http({ method: "POST", uri: "/public/api/v1/dataQualityCheck", code: 200 })),
|
|
637
|
+
).annotate({ identifier: "CreateDataQualityCheckRequest" });
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
function __c4(j: number): any {
|
|
641
|
+
switch (j) {
|
|
642
|
+
case 0:
|
|
643
|
+
return S.suspend(() =>
|
|
644
|
+
S.Struct({
|
|
645
|
+
dataQualityCheckId: S.String,
|
|
646
|
+
name: S.String,
|
|
647
|
+
description: S.optional(S.String),
|
|
648
|
+
catalogId: S.String,
|
|
649
|
+
schemaId: S.String,
|
|
650
|
+
tableId: S.String,
|
|
651
|
+
query: S.String,
|
|
652
|
+
kind: S.String,
|
|
653
|
+
severity: S.String,
|
|
654
|
+
category: S.String,
|
|
655
|
+
syncToken: S.String,
|
|
656
|
+
}),
|
|
657
|
+
).annotate({ identifier: "DataQualityCheckDetails" });
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
function __c5(j: number): any {
|
|
661
|
+
switch (j) {
|
|
662
|
+
case 0:
|
|
663
|
+
return S.suspend(() =>
|
|
664
|
+
S.Struct({
|
|
665
|
+
dataQualityCheckId: S.String.pipe(T.Label()),
|
|
666
|
+
}).pipe(
|
|
667
|
+
T.Http({
|
|
668
|
+
method: "DELETE",
|
|
669
|
+
uri: "/public/api/v1/dataQualityCheck/{dataQualityCheckId}",
|
|
670
|
+
code: 200,
|
|
671
|
+
}),
|
|
672
|
+
),
|
|
673
|
+
).annotate({ identifier: "DeleteDataQualityCheckRequest" });
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
function __c6(j: number): any {
|
|
677
|
+
switch (j) {
|
|
678
|
+
case 0:
|
|
679
|
+
return S.suspend(() =>
|
|
680
|
+
S.Struct({
|
|
681
|
+
dataQualityCheckId: S.String,
|
|
682
|
+
clusterId: S.optional(S.String),
|
|
683
|
+
}),
|
|
684
|
+
).annotate({ identifier: "EvaluateDataQualityCheckBody" });
|
|
685
|
+
case 1:
|
|
686
|
+
return S.suspend(() =>
|
|
687
|
+
S.Struct({
|
|
688
|
+
dataQualityCheckId: S.String.pipe(T.Label()),
|
|
689
|
+
body: __S(24, __c6, 0).pipe(T.HttpBody()),
|
|
690
|
+
}).pipe(
|
|
691
|
+
T.Http({
|
|
692
|
+
method: "POST",
|
|
693
|
+
uri: "/public/api/v1/dataQualityCheck/{dataQualityCheckId}/evaluation",
|
|
694
|
+
code: 200,
|
|
695
|
+
}),
|
|
696
|
+
),
|
|
697
|
+
).annotate({ identifier: "EvaluateDataQualityCheckRequest" });
|
|
698
|
+
case 2:
|
|
699
|
+
return S.suspend(() => S.Struct({})).annotate({
|
|
700
|
+
identifier: "EvaluateDataQualityCheckResponse",
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
function __c7(j: number): any {
|
|
705
|
+
switch (j) {
|
|
706
|
+
case 0:
|
|
707
|
+
return S.suspend(() =>
|
|
708
|
+
S.Struct({
|
|
709
|
+
dataQualityCheckId: S.String.pipe(T.Label()),
|
|
710
|
+
}).pipe(
|
|
711
|
+
T.Http({
|
|
712
|
+
method: "GET",
|
|
713
|
+
uri: "/public/api/v1/dataQualityCheck/{dataQualityCheckId}",
|
|
714
|
+
code: 200,
|
|
715
|
+
}),
|
|
716
|
+
),
|
|
717
|
+
).annotate({ identifier: "GetDataQualityCheckRequest" });
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
function __c8(j: number): any {
|
|
721
|
+
switch (j) {
|
|
722
|
+
case 0:
|
|
723
|
+
return S.suspend(() =>
|
|
724
|
+
S.Struct({
|
|
725
|
+
dataQualityCheckId: S.String.pipe(T.Label()),
|
|
726
|
+
}).pipe(
|
|
727
|
+
T.Http({
|
|
728
|
+
method: "GET",
|
|
729
|
+
uri: "/public/api/v1/dataQualityCheck/{dataQualityCheckId}/evaluation",
|
|
730
|
+
code: 200,
|
|
731
|
+
}),
|
|
732
|
+
),
|
|
733
|
+
).annotate({ identifier: "GetDataQualityCheckEvaluationsRequest" });
|
|
734
|
+
case 1:
|
|
735
|
+
return S.Array(__S(36, __c9, 0));
|
|
736
|
+
case 2:
|
|
737
|
+
return S.suspend(() =>
|
|
738
|
+
S.Struct({
|
|
739
|
+
dataQualityCheckId: S.String,
|
|
740
|
+
name: S.String,
|
|
741
|
+
description: S.optional(S.String),
|
|
742
|
+
catalogId: S.String,
|
|
743
|
+
schemaId: S.String,
|
|
744
|
+
tableId: S.String,
|
|
745
|
+
query: S.String,
|
|
746
|
+
kind: S.String,
|
|
747
|
+
severity: S.String,
|
|
748
|
+
category: S.String,
|
|
749
|
+
syncToken: S.String,
|
|
750
|
+
evaluations: __S(33, __c8, 1),
|
|
751
|
+
}),
|
|
752
|
+
).annotate({ identifier: "DataQualityCheckWithEvaluations" });
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
function __c9(j: number): any {
|
|
756
|
+
switch (j) {
|
|
757
|
+
case 0:
|
|
758
|
+
return S.suspend(() =>
|
|
759
|
+
S.Struct({
|
|
760
|
+
evaluatedAt: S.String,
|
|
761
|
+
basedOnStatsAt: S.optional(S.String),
|
|
762
|
+
status: S.String,
|
|
763
|
+
predicate: S.String,
|
|
764
|
+
}),
|
|
765
|
+
).annotate({ identifier: "DataQualityCheckEvaluation" });
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
769
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
770
|
+
return (__s[i] ??= __L.at(f, j));
|
|
771
|
+
}
|