@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,454 @@
|
|
|
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 {
|
|
8
|
+
StarburstGalaxyProtocol,
|
|
9
|
+
type StarburstGalaxyOpError,
|
|
10
|
+
type StarburstGalaxyOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
import * as T from "../traits.ts";
|
|
14
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
15
|
+
const __s: any[] = [];
|
|
16
|
+
|
|
17
|
+
export type { StarburstGalaxyOpError, StarburstGalaxyOpContext };
|
|
18
|
+
|
|
19
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
20
|
+
const TELEMETRY = {
|
|
21
|
+
system: "starburst-galaxy-api",
|
|
22
|
+
responseHeaders: [
|
|
23
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
24
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
25
|
+
],
|
|
26
|
+
prefix: "StarburstGalaxy",
|
|
27
|
+
service: "DataQualityScheduleService",
|
|
28
|
+
labels: "starburst_galaxy",
|
|
29
|
+
propagate: "w3c",
|
|
30
|
+
} as const;
|
|
31
|
+
|
|
32
|
+
export class BadRequest
|
|
33
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
34
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
35
|
+
message: S.String,
|
|
36
|
+
body: S.Unknown,
|
|
37
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
38
|
+
}).pipe(C.withBadRequestError),
|
|
39
|
+
[{ status: 400 }],
|
|
40
|
+
) {}
|
|
41
|
+
|
|
42
|
+
export class Conflict
|
|
43
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
44
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
45
|
+
message: S.String,
|
|
46
|
+
body: S.Unknown,
|
|
47
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
48
|
+
}).pipe(C.withConflictError),
|
|
49
|
+
[{ status: 409 }],
|
|
50
|
+
) {}
|
|
51
|
+
|
|
52
|
+
export class Forbidden
|
|
53
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
54
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
55
|
+
message: S.String,
|
|
56
|
+
body: S.Unknown,
|
|
57
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
58
|
+
}).pipe(C.withAuthError),
|
|
59
|
+
[{ status: 403 }],
|
|
60
|
+
) {}
|
|
61
|
+
|
|
62
|
+
export class NotFound
|
|
63
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
64
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
65
|
+
message: S.String,
|
|
66
|
+
body: S.Unknown,
|
|
67
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
68
|
+
}).pipe(C.withBadRequestError),
|
|
69
|
+
[{ status: 404 }],
|
|
70
|
+
) {}
|
|
71
|
+
|
|
72
|
+
export class PreconditionFailed
|
|
73
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
74
|
+
/*@__PURE__*/ S.TaggedError<PreconditionFailed>()("PreconditionFailed", {
|
|
75
|
+
message: S.String,
|
|
76
|
+
body: S.Unknown,
|
|
77
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
78
|
+
}),
|
|
79
|
+
[{ status: 412 }],
|
|
80
|
+
) {}
|
|
81
|
+
|
|
82
|
+
export interface CreateDataQualityScheduleRequest {
|
|
83
|
+
/** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
|
|
84
|
+
catalogId: string;
|
|
85
|
+
/** A schema from a catalog */
|
|
86
|
+
schemaId: string;
|
|
87
|
+
/** A table from a catalog */
|
|
88
|
+
tableId: string;
|
|
89
|
+
/** Role used when checks are executed */
|
|
90
|
+
roleId: string;
|
|
91
|
+
/** Cluster in which checks are executed */
|
|
92
|
+
clusterId: string;
|
|
93
|
+
/** Timezone in which CRON is evaluated. Defaults to UTC */
|
|
94
|
+
timezone?: string | undefined;
|
|
95
|
+
/** Cron expression which determines SQL job execution interval */
|
|
96
|
+
cronExpression: string;
|
|
97
|
+
}
|
|
98
|
+
/** Data quality schedule for a table (read only) */
|
|
99
|
+
export interface DataQualitySchedule {
|
|
100
|
+
/** Data Quality Schedule ID (read only) */
|
|
101
|
+
dataQualityScheduleId: string;
|
|
102
|
+
/** Role used when checks are executed */
|
|
103
|
+
roleId: string;
|
|
104
|
+
/** Cluster in which checks are executed */
|
|
105
|
+
clusterId: string;
|
|
106
|
+
/** Timezone in which CRON is evaluated */
|
|
107
|
+
timezone: string;
|
|
108
|
+
/** Cron expression which determines execution interval */
|
|
109
|
+
cronExpression: string;
|
|
110
|
+
/** Date and time of the next scheduled execution */
|
|
111
|
+
nextExecution: string;
|
|
112
|
+
/** Is schedule enabled */
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
/** 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) */
|
|
115
|
+
syncToken: string;
|
|
116
|
+
}
|
|
117
|
+
export interface DeleteDataQualityScheduleRequest {
|
|
118
|
+
/** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
|
|
119
|
+
catalogId: string;
|
|
120
|
+
/** A schema from a catalog */
|
|
121
|
+
schemaId: string;
|
|
122
|
+
/** A table from a catalog */
|
|
123
|
+
tableId: string;
|
|
124
|
+
/** Data quality schedule for a table */
|
|
125
|
+
dataQualityScheduleId: string;
|
|
126
|
+
}
|
|
127
|
+
export interface DeleteDataQualityScheduleResponse {}
|
|
128
|
+
export interface GetDataQualityScheduleRequest {
|
|
129
|
+
/** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
|
|
130
|
+
catalogId: string;
|
|
131
|
+
/** A schema from a catalog */
|
|
132
|
+
schemaId: string;
|
|
133
|
+
/** A table from a catalog */
|
|
134
|
+
tableId: string;
|
|
135
|
+
}
|
|
136
|
+
/** List of data quality checks (read only) */
|
|
137
|
+
export interface DataQualityCheck {
|
|
138
|
+
/** Data Quality check ID (read only) */
|
|
139
|
+
dataQualityCheckId: string;
|
|
140
|
+
/** Data Quality check name */
|
|
141
|
+
name: string;
|
|
142
|
+
}
|
|
143
|
+
/** List of data quality checks (read only) */
|
|
144
|
+
export type DataQualityScheduleWithQualityChecksDataQualityChecksList = Array<DataQualityCheck>;
|
|
145
|
+
/** Data quality schedule for a table (read only) */
|
|
146
|
+
export interface DataQualityScheduleWithQualityChecks {
|
|
147
|
+
/** Data Quality Schedule ID (read only) */
|
|
148
|
+
dataQualityScheduleId: string;
|
|
149
|
+
/** Role used when checks are executed */
|
|
150
|
+
roleId: string;
|
|
151
|
+
/** Cluster in which checks are executed */
|
|
152
|
+
clusterId: string;
|
|
153
|
+
/** Timezone in which CRON is evaluated */
|
|
154
|
+
timezone: string;
|
|
155
|
+
/** Cron expression which determines execution interval */
|
|
156
|
+
cronExpression: string;
|
|
157
|
+
/** Date and time of the next scheduled execution */
|
|
158
|
+
nextExecution: string;
|
|
159
|
+
/** Is schedule enabled */
|
|
160
|
+
enabled: boolean;
|
|
161
|
+
/** 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) */
|
|
162
|
+
syncToken: string;
|
|
163
|
+
/** List of data quality checks (read only) */
|
|
164
|
+
dataQualityChecks: DataQualityScheduleWithQualityChecksDataQualityChecksList;
|
|
165
|
+
}
|
|
166
|
+
export interface UpdateDataQualityScheduleRequest {
|
|
167
|
+
/** - A catalog - This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`) */
|
|
168
|
+
catalogId: string;
|
|
169
|
+
/** A schema from a catalog */
|
|
170
|
+
schemaId: string;
|
|
171
|
+
/** A table from a catalog */
|
|
172
|
+
tableId: string;
|
|
173
|
+
/** Data quality schedule for a table */
|
|
174
|
+
dataQualityScheduleId: string;
|
|
175
|
+
/** Role used when checks are executed */
|
|
176
|
+
roleId?: string | undefined;
|
|
177
|
+
/** Cluster in which checks are executed */
|
|
178
|
+
clusterId?: string | undefined;
|
|
179
|
+
/** Timezone in which CRON is evaluated. Defaults to UTC */
|
|
180
|
+
timezone?: string | undefined;
|
|
181
|
+
/** Cron expression which determines SQL job execution interval */
|
|
182
|
+
cronExpression?: string | undefined;
|
|
183
|
+
}
|
|
184
|
+
/** Any fields/values that are invalid or incorrect */
|
|
185
|
+
export type BadRequestFieldsList = Array<string>;
|
|
186
|
+
/** Invalid request */
|
|
187
|
+
export interface BadRequest2 {
|
|
188
|
+
/** Description of the error */
|
|
189
|
+
message?: string | undefined;
|
|
190
|
+
/** Any fields/values that are invalid or incorrect */
|
|
191
|
+
fields?: BadRequestFieldsList | undefined;
|
|
192
|
+
}
|
|
193
|
+
/** Already exists */
|
|
194
|
+
export interface Exists {
|
|
195
|
+
message?: string | undefined;
|
|
196
|
+
}
|
|
197
|
+
/** Authorization failed */
|
|
198
|
+
export type Forbidden2 = Exists;
|
|
199
|
+
/** Any fields/values that weren't found */
|
|
200
|
+
export type NotFoundFieldsList = Array<string>;
|
|
201
|
+
/** A resource or required component was not found */
|
|
202
|
+
export interface NotFound2 {
|
|
203
|
+
/** Name of the resource */
|
|
204
|
+
message: string;
|
|
205
|
+
/** Violation description */
|
|
206
|
+
description?: string | undefined;
|
|
207
|
+
/** Any fields/values that weren't found */
|
|
208
|
+
fields?: NotFoundFieldsList | undefined;
|
|
209
|
+
}
|
|
210
|
+
export type TypeEnum = "TermsOfService";
|
|
211
|
+
/** Field violations (read only) */
|
|
212
|
+
export interface Violation {
|
|
213
|
+
/** Violation type */
|
|
214
|
+
type: TypeEnum;
|
|
215
|
+
/** Violation subject */
|
|
216
|
+
subject: string;
|
|
217
|
+
/** Violation description */
|
|
218
|
+
description: string;
|
|
219
|
+
}
|
|
220
|
+
/** Field violations (read only) */
|
|
221
|
+
export type PreconditionfailureViolationsList = Array<Violation>;
|
|
222
|
+
/** Error details (read only) */
|
|
223
|
+
export interface Preconditionfailure {
|
|
224
|
+
/** Field violations (read only) */
|
|
225
|
+
violations: PreconditionfailureViolationsList;
|
|
226
|
+
}
|
|
227
|
+
/** Request can not be executed in the current system state, such as deleting a non-empty directory. */
|
|
228
|
+
export interface FailedPrecondition {
|
|
229
|
+
/** Description of the error */
|
|
230
|
+
message: string;
|
|
231
|
+
detail: Preconditionfailure;
|
|
232
|
+
}
|
|
233
|
+
export type CreateDataQualityScheduleError =
|
|
234
|
+
| BadRequest
|
|
235
|
+
| Forbidden
|
|
236
|
+
| NotFound
|
|
237
|
+
| Conflict
|
|
238
|
+
| PreconditionFailed
|
|
239
|
+
| StarburstGalaxyOpError;
|
|
240
|
+
/** Create data quality schedule for a table */
|
|
241
|
+
export const createDataQualitySchedule: API.OperationMethod<
|
|
242
|
+
CreateDataQualityScheduleRequest,
|
|
243
|
+
DataQualitySchedule,
|
|
244
|
+
CreateDataQualityScheduleError,
|
|
245
|
+
StarburstGalaxyOpContext
|
|
246
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
247
|
+
input: __S(0, __c0, 0) as any as S.Schema<CreateDataQualityScheduleRequest>,
|
|
248
|
+
output: __S(4, __c1, 0) as any as S.Schema<DataQualitySchedule>,
|
|
249
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, PreconditionFailed],
|
|
250
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
251
|
+
protocol: StarburstGalaxyProtocol,
|
|
252
|
+
retry: Retry.Retry,
|
|
253
|
+
telemetry: TELEMETRY,
|
|
254
|
+
span: "CreateDataQualitySchedule",
|
|
255
|
+
}));
|
|
256
|
+
|
|
257
|
+
export type DeleteDataQualityScheduleError =
|
|
258
|
+
| BadRequest
|
|
259
|
+
| Forbidden
|
|
260
|
+
| NotFound
|
|
261
|
+
| StarburstGalaxyOpError;
|
|
262
|
+
/** Delete data quality schedule for a table */
|
|
263
|
+
export const deleteDataQualitySchedule: API.OperationMethod<
|
|
264
|
+
DeleteDataQualityScheduleRequest,
|
|
265
|
+
DeleteDataQualityScheduleResponse,
|
|
266
|
+
DeleteDataQualityScheduleError,
|
|
267
|
+
StarburstGalaxyOpContext
|
|
268
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
269
|
+
input: __S(8, __c2, 0) as any as S.Schema<DeleteDataQualityScheduleRequest>,
|
|
270
|
+
output: __S(9, __c2, 1) as any as S.Schema<DeleteDataQualityScheduleResponse>,
|
|
271
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
272
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
273
|
+
protocol: StarburstGalaxyProtocol,
|
|
274
|
+
retry: Retry.Retry,
|
|
275
|
+
telemetry: TELEMETRY,
|
|
276
|
+
span: "DeleteDataQualitySchedule",
|
|
277
|
+
}));
|
|
278
|
+
|
|
279
|
+
export type GetDataQualityScheduleError =
|
|
280
|
+
| BadRequest
|
|
281
|
+
| Forbidden
|
|
282
|
+
| NotFound
|
|
283
|
+
| StarburstGalaxyOpError;
|
|
284
|
+
/** Get data quality schedule for a table */
|
|
285
|
+
export const getDataQualitySchedule: API.OperationMethod<
|
|
286
|
+
GetDataQualityScheduleRequest,
|
|
287
|
+
DataQualityScheduleWithQualityChecks,
|
|
288
|
+
GetDataQualityScheduleError,
|
|
289
|
+
StarburstGalaxyOpContext
|
|
290
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
291
|
+
input: __S(12, __c3, 0) as any as S.Schema<GetDataQualityScheduleRequest>,
|
|
292
|
+
output: __S(15, __c3, 3) as any as S.Schema<DataQualityScheduleWithQualityChecks>,
|
|
293
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
294
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
295
|
+
protocol: StarburstGalaxyProtocol,
|
|
296
|
+
retry: Retry.Retry,
|
|
297
|
+
telemetry: TELEMETRY,
|
|
298
|
+
span: "GetDataQualitySchedule",
|
|
299
|
+
}));
|
|
300
|
+
|
|
301
|
+
export type UpdateDataQualityScheduleError =
|
|
302
|
+
| BadRequest
|
|
303
|
+
| Forbidden
|
|
304
|
+
| NotFound
|
|
305
|
+
| Conflict
|
|
306
|
+
| StarburstGalaxyOpError;
|
|
307
|
+
/** Update data quality schedule for a table Only include fields you wish to update. Missing or unrecognized fields are ignored. */
|
|
308
|
+
export const updateDataQualitySchedule: API.OperationMethod<
|
|
309
|
+
UpdateDataQualityScheduleRequest,
|
|
310
|
+
DataQualitySchedule,
|
|
311
|
+
UpdateDataQualityScheduleError,
|
|
312
|
+
StarburstGalaxyOpContext
|
|
313
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
314
|
+
input: __S(16, __c4, 0) as any as S.Schema<UpdateDataQualityScheduleRequest>,
|
|
315
|
+
output: __S(4, __c1, 0) as any as S.Schema<DataQualitySchedule>,
|
|
316
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
317
|
+
serviceErrors: StarburstGalaxyServiceErrors,
|
|
318
|
+
protocol: StarburstGalaxyProtocol,
|
|
319
|
+
retry: Retry.Retry,
|
|
320
|
+
telemetry: TELEMETRY,
|
|
321
|
+
span: "UpdateDataQualitySchedule",
|
|
322
|
+
}));
|
|
323
|
+
|
|
324
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
325
|
+
function __c0(j: number): any {
|
|
326
|
+
switch (j) {
|
|
327
|
+
case 0:
|
|
328
|
+
return S.suspend(() =>
|
|
329
|
+
S.Struct({
|
|
330
|
+
catalogId: S.String.pipe(T.Label()),
|
|
331
|
+
schemaId: S.String.pipe(T.Label()),
|
|
332
|
+
tableId: S.String.pipe(T.Label()),
|
|
333
|
+
roleId: S.String,
|
|
334
|
+
clusterId: S.String,
|
|
335
|
+
timezone: S.optional(S.String),
|
|
336
|
+
cronExpression: S.String,
|
|
337
|
+
}).pipe(
|
|
338
|
+
T.Http({
|
|
339
|
+
method: "POST",
|
|
340
|
+
uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/dataQualitySchedule",
|
|
341
|
+
code: 200,
|
|
342
|
+
}),
|
|
343
|
+
),
|
|
344
|
+
).annotate({ identifier: "CreateDataQualityScheduleRequest" });
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
function __c1(j: number): any {
|
|
348
|
+
switch (j) {
|
|
349
|
+
case 0:
|
|
350
|
+
return S.suspend(() =>
|
|
351
|
+
S.Struct({
|
|
352
|
+
dataQualityScheduleId: S.String,
|
|
353
|
+
roleId: S.String,
|
|
354
|
+
clusterId: S.String,
|
|
355
|
+
timezone: S.String,
|
|
356
|
+
cronExpression: S.String,
|
|
357
|
+
nextExecution: S.String,
|
|
358
|
+
enabled: S.Boolean,
|
|
359
|
+
syncToken: S.String,
|
|
360
|
+
}),
|
|
361
|
+
).annotate({ identifier: "DataQualitySchedule" });
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
function __c2(j: number): any {
|
|
365
|
+
switch (j) {
|
|
366
|
+
case 0:
|
|
367
|
+
return S.suspend(() =>
|
|
368
|
+
S.Struct({
|
|
369
|
+
catalogId: S.String.pipe(T.Label()),
|
|
370
|
+
schemaId: S.String.pipe(T.Label()),
|
|
371
|
+
tableId: S.String.pipe(T.Label()),
|
|
372
|
+
dataQualityScheduleId: S.String.pipe(T.Label()),
|
|
373
|
+
}).pipe(
|
|
374
|
+
T.Http({
|
|
375
|
+
method: "DELETE",
|
|
376
|
+
uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/dataQualitySchedule/{dataQualityScheduleId}",
|
|
377
|
+
code: 200,
|
|
378
|
+
}),
|
|
379
|
+
),
|
|
380
|
+
).annotate({ identifier: "DeleteDataQualityScheduleRequest" });
|
|
381
|
+
case 1:
|
|
382
|
+
return S.suspend(() => S.Struct({})).annotate({
|
|
383
|
+
identifier: "DeleteDataQualityScheduleResponse",
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
function __c3(j: number): any {
|
|
388
|
+
switch (j) {
|
|
389
|
+
case 0:
|
|
390
|
+
return S.suspend(() =>
|
|
391
|
+
S.Struct({
|
|
392
|
+
catalogId: S.String.pipe(T.Label()),
|
|
393
|
+
schemaId: S.String.pipe(T.Label()),
|
|
394
|
+
tableId: S.String.pipe(T.Label()),
|
|
395
|
+
}).pipe(
|
|
396
|
+
T.Http({
|
|
397
|
+
method: "GET",
|
|
398
|
+
uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/dataQualitySchedule",
|
|
399
|
+
code: 200,
|
|
400
|
+
}),
|
|
401
|
+
),
|
|
402
|
+
).annotate({ identifier: "GetDataQualityScheduleRequest" });
|
|
403
|
+
case 1:
|
|
404
|
+
return S.suspend(() =>
|
|
405
|
+
S.Struct({
|
|
406
|
+
dataQualityCheckId: S.String,
|
|
407
|
+
name: S.String,
|
|
408
|
+
}),
|
|
409
|
+
).annotate({ identifier: "DataQualityCheck" });
|
|
410
|
+
case 2:
|
|
411
|
+
return S.Array(__S(13, __c3, 1));
|
|
412
|
+
case 3:
|
|
413
|
+
return S.suspend(() =>
|
|
414
|
+
S.Struct({
|
|
415
|
+
dataQualityScheduleId: S.String,
|
|
416
|
+
roleId: S.String,
|
|
417
|
+
clusterId: S.String,
|
|
418
|
+
timezone: S.String,
|
|
419
|
+
cronExpression: S.String,
|
|
420
|
+
nextExecution: S.String,
|
|
421
|
+
enabled: S.Boolean,
|
|
422
|
+
syncToken: S.String,
|
|
423
|
+
dataQualityChecks: __S(14, __c3, 2),
|
|
424
|
+
}),
|
|
425
|
+
).annotate({ identifier: "DataQualityScheduleWithQualityChecks" });
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
function __c4(j: number): any {
|
|
429
|
+
switch (j) {
|
|
430
|
+
case 0:
|
|
431
|
+
return S.suspend(() =>
|
|
432
|
+
S.Struct({
|
|
433
|
+
catalogId: S.String.pipe(T.Label()),
|
|
434
|
+
schemaId: S.String.pipe(T.Label()),
|
|
435
|
+
tableId: S.String.pipe(T.Label()),
|
|
436
|
+
dataQualityScheduleId: S.String.pipe(T.Label()),
|
|
437
|
+
roleId: S.optional(S.String),
|
|
438
|
+
clusterId: S.optional(S.String),
|
|
439
|
+
timezone: S.optional(S.String),
|
|
440
|
+
cronExpression: S.optional(S.String),
|
|
441
|
+
}).pipe(
|
|
442
|
+
T.Http({
|
|
443
|
+
method: "PATCH",
|
|
444
|
+
uri: "/public/api/v1/catalog/{catalogId}/schema/{schemaId}/table/{tableId}/dataQualitySchedule/{dataQualityScheduleId}",
|
|
445
|
+
code: 200,
|
|
446
|
+
}),
|
|
447
|
+
),
|
|
448
|
+
).annotate({ identifier: "UpdateDataQualityScheduleRequest" });
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
452
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
453
|
+
return (__s[i] ??= __L.at(f, j));
|
|
454
|
+
}
|