weave-typescript 0.11.14 → 0.11.16
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/weaveapi/data/v1/data.pb.d.ts +54 -0
- package/dist/weaveapi/data/v1/data.pb.js +411 -0
- package/dist/weaveapi/data/v1/service.pb.d.ts +296 -0
- package/dist/weaveapi/data/v1/service.pb.js +2779 -0
- package/dist/weaveapi/input/v1/input.pb.d.ts +77 -0
- package/dist/weaveapi/input/v1/input.pb.js +632 -0
- package/dist/weaveapi/input/v1/service.pb.d.ts +390 -0
- package/dist/weaveapi/input/v1/service.pb.js +3612 -0
- package/dist/weaveapi/integration/v1/integration.pb.d.ts +67 -0
- package/dist/weaveapi/integration/v1/integration.pb.js +486 -0
- package/dist/weaveapi/integration/v1/service.pb.d.ts +318 -0
- package/dist/weaveapi/integration/v1/service.pb.js +2994 -0
- package/dist/weaveapi/project/v1/project.pb.d.ts +1 -0
- package/dist/weaveapi/project/v1/project.pb.js +17 -1
- package/dist/weaveapi/project/v1/service.pb.d.ts +25 -0
- package/dist/weaveapi/project/v1/service.pb.js +248 -5
- package/dist/weaveapi/report/v1/report.pb.d.ts +81 -0
- package/dist/weaveapi/report/v1/report.pb.js +678 -0
- package/dist/weaveapi/report/v1/service.pb.d.ts +194 -0
- package/dist/weaveapi/report/v1/service.pb.js +1925 -0
- package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +70 -0
- package/dist/weaveapi/requirement/v1/requirement.pb.js +570 -0
- package/dist/weaveapi/requirement/v1/service.pb.d.ts +390 -0
- package/dist/weaveapi/requirement/v1/service.pb.js +3638 -0
- package/dist/weaveapi/run/v1/run.pb.d.ts +117 -0
- package/dist/weaveapi/run/v1/run.pb.js +1155 -0
- package/dist/weaveapi/run/v1/service.pb.d.ts +229 -0
- package/dist/weaveapi/run/v1/service.pb.js +2428 -0
- package/dist/weaveapi/script/v1/script.pb.d.ts +102 -0
- package/dist/weaveapi/script/v1/script.pb.js +1025 -0
- package/dist/weaveapi/script/v1/service.pb.d.ts +502 -0
- package/dist/weaveapi/script/v1/service.pb.js +4873 -0
- package/dist/weaveapi/storage/v1/service.pb.d.ts +4 -0
- package/dist/weaveapi/storage/v1/service.pb.js +50 -7
- package/dist/weaveapi/storage/v1/storage.pb.d.ts +2 -0
- package/dist/weaveapi/storage/v1/storage.pb.js +23 -0
- package/dist/weaveapi/storage/v1/vcs.pb.d.ts +75 -0
- package/dist/weaveapi/storage/v1/vcs.pb.js +864 -0
- package/dist/weaveapi/suite/v1/service.pb.d.ts +539 -0
- package/dist/weaveapi/suite/v1/service.pb.js +5281 -0
- package/dist/weaveapi/suite/v1/suite.pb.d.ts +92 -0
- package/dist/weaveapi/suite/v1/suite.pb.js +876 -0
- package/dist/weaveapi/testcase/v1/service.pb.d.ts +498 -0
- package/dist/weaveapi/testcase/v1/service.pb.js +4730 -0
- package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +91 -0
- package/dist/weaveapi/testcase/v1/testcase.pb.js +794 -0
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +26 -0
- package/dist/weaveapi/workflow/v1/service.pb.js +293 -5
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +1 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.js +17 -1
- package/dist/weavesql/weavedb/data_asset_sql.d.ts +206 -0
- package/dist/weavesql/weavedb/data_asset_sql.js +335 -0
- package/dist/weavesql/weavedb/input_sql.d.ts +293 -0
- package/dist/weavesql/weavedb/input_sql.js +500 -0
- package/dist/weavesql/weavedb/integration_sql.d.ts +236 -0
- package/dist/weavesql/weavedb/integration_sql.js +377 -0
- package/dist/weavesql/weavedb/project_sql.d.ts +29 -5
- package/dist/weavesql/weavedb/project_sql.js +73 -37
- package/dist/weavesql/weavedb/report_sql.d.ts +192 -0
- package/dist/weavesql/weavedb/report_sql.js +308 -0
- package/dist/weavesql/weavedb/requirement_sql.d.ts +231 -0
- package/dist/weavesql/weavedb/requirement_sql.js +399 -0
- package/dist/weavesql/weavedb/run_sql.d.ts +283 -0
- package/dist/weavesql/weavedb/run_sql.js +462 -0
- package/dist/weavesql/weavedb/suite_sql.d.ts +354 -0
- package/dist/weavesql/weavedb/suite_sql.js +631 -0
- package/dist/weavesql/weavedb/test_case_sql.d.ts +325 -0
- package/dist/weavesql/weavedb/test_case_sql.js +563 -0
- package/dist/weavesql/weavedb/test_script_sql.d.ts +354 -0
- package/dist/weavesql/weavedb/test_script_sql.js +605 -0
- package/dist/weavesql/weavedb/traceability_sql.d.ts +117 -0
- package/dist/weavesql/weavedb/traceability_sql.js +363 -0
- package/dist/weavesql/weavedb/workflow_sql.d.ts +30 -5
- package/dist/weavesql/weavedb/workflow_sql.js +76 -38
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "weaveapi.data.v1";
|
|
3
|
+
export declare enum DataAssetSourceType {
|
|
4
|
+
DATA_ASSET_SOURCE_TYPE_UNSPECIFIED = 0,
|
|
5
|
+
DATA_ASSET_SOURCE_TYPE_DATABASE = 1,
|
|
6
|
+
DATA_ASSET_SOURCE_TYPE_CSV = 2,
|
|
7
|
+
DATA_ASSET_SOURCE_TYPE_PARQUET = 3,
|
|
8
|
+
DATA_ASSET_SOURCE_TYPE_REMOTE_STORAGE = 4,
|
|
9
|
+
DATA_ASSET_SOURCE_TYPE_MANUAL = 5,
|
|
10
|
+
DATA_ASSET_SOURCE_TYPE_SYNTHETIC = 6,
|
|
11
|
+
UNRECOGNIZED = -1
|
|
12
|
+
}
|
|
13
|
+
export declare function dataAssetSourceTypeFromJSON(object: any): DataAssetSourceType;
|
|
14
|
+
export declare function dataAssetSourceTypeToJSON(object: DataAssetSourceType): string;
|
|
15
|
+
export interface TabularDataAsset {
|
|
16
|
+
tabularDataAssetId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
sourceType: DataAssetSourceType;
|
|
21
|
+
storageConnectionId: string;
|
|
22
|
+
datasetId: string;
|
|
23
|
+
dataUri: string;
|
|
24
|
+
versionLabel: string;
|
|
25
|
+
schemaJson: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
} | undefined;
|
|
28
|
+
metadata: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
} | undefined;
|
|
31
|
+
createdAt: Date | undefined;
|
|
32
|
+
updatedAt: Date | undefined;
|
|
33
|
+
archivedAt: Date | undefined;
|
|
34
|
+
}
|
|
35
|
+
export declare const TabularDataAsset: MessageFns<TabularDataAsset>;
|
|
36
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
37
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
38
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
39
|
+
} : Partial<T>;
|
|
40
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
41
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
42
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
43
|
+
} & {
|
|
44
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
45
|
+
};
|
|
46
|
+
export interface MessageFns<T> {
|
|
47
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
48
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
49
|
+
fromJSON(object: any): T;
|
|
50
|
+
toJSON(message: T): unknown;
|
|
51
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
52
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: weaveapi/data/v1/data.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.TabularDataAsset = exports.DataAssetSourceType = exports.protobufPackage = void 0;
|
|
9
|
+
exports.dataAssetSourceTypeFromJSON = dataAssetSourceTypeFromJSON;
|
|
10
|
+
exports.dataAssetSourceTypeToJSON = dataAssetSourceTypeToJSON;
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
13
|
+
const struct_pb_1 = require("../../../google/protobuf/struct.pb");
|
|
14
|
+
const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
|
|
15
|
+
exports.protobufPackage = "weaveapi.data.v1";
|
|
16
|
+
var DataAssetSourceType;
|
|
17
|
+
(function (DataAssetSourceType) {
|
|
18
|
+
DataAssetSourceType[DataAssetSourceType["DATA_ASSET_SOURCE_TYPE_UNSPECIFIED"] = 0] = "DATA_ASSET_SOURCE_TYPE_UNSPECIFIED";
|
|
19
|
+
DataAssetSourceType[DataAssetSourceType["DATA_ASSET_SOURCE_TYPE_DATABASE"] = 1] = "DATA_ASSET_SOURCE_TYPE_DATABASE";
|
|
20
|
+
DataAssetSourceType[DataAssetSourceType["DATA_ASSET_SOURCE_TYPE_CSV"] = 2] = "DATA_ASSET_SOURCE_TYPE_CSV";
|
|
21
|
+
DataAssetSourceType[DataAssetSourceType["DATA_ASSET_SOURCE_TYPE_PARQUET"] = 3] = "DATA_ASSET_SOURCE_TYPE_PARQUET";
|
|
22
|
+
DataAssetSourceType[DataAssetSourceType["DATA_ASSET_SOURCE_TYPE_REMOTE_STORAGE"] = 4] = "DATA_ASSET_SOURCE_TYPE_REMOTE_STORAGE";
|
|
23
|
+
DataAssetSourceType[DataAssetSourceType["DATA_ASSET_SOURCE_TYPE_MANUAL"] = 5] = "DATA_ASSET_SOURCE_TYPE_MANUAL";
|
|
24
|
+
DataAssetSourceType[DataAssetSourceType["DATA_ASSET_SOURCE_TYPE_SYNTHETIC"] = 6] = "DATA_ASSET_SOURCE_TYPE_SYNTHETIC";
|
|
25
|
+
DataAssetSourceType[DataAssetSourceType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
26
|
+
})(DataAssetSourceType || (exports.DataAssetSourceType = DataAssetSourceType = {}));
|
|
27
|
+
function dataAssetSourceTypeFromJSON(object) {
|
|
28
|
+
switch (object) {
|
|
29
|
+
case 0:
|
|
30
|
+
case "DATA_ASSET_SOURCE_TYPE_UNSPECIFIED":
|
|
31
|
+
return DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_UNSPECIFIED;
|
|
32
|
+
case 1:
|
|
33
|
+
case "DATA_ASSET_SOURCE_TYPE_DATABASE":
|
|
34
|
+
return DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_DATABASE;
|
|
35
|
+
case 2:
|
|
36
|
+
case "DATA_ASSET_SOURCE_TYPE_CSV":
|
|
37
|
+
return DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_CSV;
|
|
38
|
+
case 3:
|
|
39
|
+
case "DATA_ASSET_SOURCE_TYPE_PARQUET":
|
|
40
|
+
return DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_PARQUET;
|
|
41
|
+
case 4:
|
|
42
|
+
case "DATA_ASSET_SOURCE_TYPE_REMOTE_STORAGE":
|
|
43
|
+
return DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_REMOTE_STORAGE;
|
|
44
|
+
case 5:
|
|
45
|
+
case "DATA_ASSET_SOURCE_TYPE_MANUAL":
|
|
46
|
+
return DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_MANUAL;
|
|
47
|
+
case 6:
|
|
48
|
+
case "DATA_ASSET_SOURCE_TYPE_SYNTHETIC":
|
|
49
|
+
return DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_SYNTHETIC;
|
|
50
|
+
case -1:
|
|
51
|
+
case "UNRECOGNIZED":
|
|
52
|
+
default:
|
|
53
|
+
return DataAssetSourceType.UNRECOGNIZED;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function dataAssetSourceTypeToJSON(object) {
|
|
57
|
+
switch (object) {
|
|
58
|
+
case DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_UNSPECIFIED:
|
|
59
|
+
return "DATA_ASSET_SOURCE_TYPE_UNSPECIFIED";
|
|
60
|
+
case DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_DATABASE:
|
|
61
|
+
return "DATA_ASSET_SOURCE_TYPE_DATABASE";
|
|
62
|
+
case DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_CSV:
|
|
63
|
+
return "DATA_ASSET_SOURCE_TYPE_CSV";
|
|
64
|
+
case DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_PARQUET:
|
|
65
|
+
return "DATA_ASSET_SOURCE_TYPE_PARQUET";
|
|
66
|
+
case DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_REMOTE_STORAGE:
|
|
67
|
+
return "DATA_ASSET_SOURCE_TYPE_REMOTE_STORAGE";
|
|
68
|
+
case DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_MANUAL:
|
|
69
|
+
return "DATA_ASSET_SOURCE_TYPE_MANUAL";
|
|
70
|
+
case DataAssetSourceType.DATA_ASSET_SOURCE_TYPE_SYNTHETIC:
|
|
71
|
+
return "DATA_ASSET_SOURCE_TYPE_SYNTHETIC";
|
|
72
|
+
case DataAssetSourceType.UNRECOGNIZED:
|
|
73
|
+
default:
|
|
74
|
+
return "UNRECOGNIZED";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function createBaseTabularDataAsset() {
|
|
78
|
+
return {
|
|
79
|
+
tabularDataAssetId: "",
|
|
80
|
+
projectId: "",
|
|
81
|
+
name: "",
|
|
82
|
+
description: "",
|
|
83
|
+
sourceType: 0,
|
|
84
|
+
storageConnectionId: "",
|
|
85
|
+
datasetId: "",
|
|
86
|
+
dataUri: "",
|
|
87
|
+
versionLabel: "",
|
|
88
|
+
schemaJson: undefined,
|
|
89
|
+
metadata: undefined,
|
|
90
|
+
createdAt: undefined,
|
|
91
|
+
updatedAt: undefined,
|
|
92
|
+
archivedAt: undefined,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
exports.TabularDataAsset = {
|
|
96
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
97
|
+
if (message.tabularDataAssetId !== "") {
|
|
98
|
+
writer.uint32(10).string(message.tabularDataAssetId);
|
|
99
|
+
}
|
|
100
|
+
if (message.projectId !== "") {
|
|
101
|
+
writer.uint32(18).string(message.projectId);
|
|
102
|
+
}
|
|
103
|
+
if (message.name !== "") {
|
|
104
|
+
writer.uint32(26).string(message.name);
|
|
105
|
+
}
|
|
106
|
+
if (message.description !== "") {
|
|
107
|
+
writer.uint32(34).string(message.description);
|
|
108
|
+
}
|
|
109
|
+
if (message.sourceType !== 0) {
|
|
110
|
+
writer.uint32(40).int32(message.sourceType);
|
|
111
|
+
}
|
|
112
|
+
if (message.storageConnectionId !== "") {
|
|
113
|
+
writer.uint32(50).string(message.storageConnectionId);
|
|
114
|
+
}
|
|
115
|
+
if (message.datasetId !== "") {
|
|
116
|
+
writer.uint32(58).string(message.datasetId);
|
|
117
|
+
}
|
|
118
|
+
if (message.dataUri !== "") {
|
|
119
|
+
writer.uint32(66).string(message.dataUri);
|
|
120
|
+
}
|
|
121
|
+
if (message.versionLabel !== "") {
|
|
122
|
+
writer.uint32(74).string(message.versionLabel);
|
|
123
|
+
}
|
|
124
|
+
if (message.schemaJson !== undefined) {
|
|
125
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.schemaJson), writer.uint32(82).fork()).join();
|
|
126
|
+
}
|
|
127
|
+
if (message.metadata !== undefined) {
|
|
128
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(90).fork()).join();
|
|
129
|
+
}
|
|
130
|
+
if (message.createdAt !== undefined) {
|
|
131
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(98).fork()).join();
|
|
132
|
+
}
|
|
133
|
+
if (message.updatedAt !== undefined) {
|
|
134
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(106).fork()).join();
|
|
135
|
+
}
|
|
136
|
+
if (message.archivedAt !== undefined) {
|
|
137
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.archivedAt), writer.uint32(114).fork()).join();
|
|
138
|
+
}
|
|
139
|
+
return writer;
|
|
140
|
+
},
|
|
141
|
+
decode(input, length) {
|
|
142
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
143
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
+
const message = createBaseTabularDataAsset();
|
|
145
|
+
while (reader.pos < end) {
|
|
146
|
+
const tag = reader.uint32();
|
|
147
|
+
switch (tag >>> 3) {
|
|
148
|
+
case 1: {
|
|
149
|
+
if (tag !== 10) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
message.tabularDataAssetId = reader.string();
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
case 2: {
|
|
156
|
+
if (tag !== 18) {
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
message.projectId = reader.string();
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
case 3: {
|
|
163
|
+
if (tag !== 26) {
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
message.name = reader.string();
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
case 4: {
|
|
170
|
+
if (tag !== 34) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
message.description = reader.string();
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
case 5: {
|
|
177
|
+
if (tag !== 40) {
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
message.sourceType = reader.int32();
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
case 6: {
|
|
184
|
+
if (tag !== 50) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
message.storageConnectionId = reader.string();
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
case 7: {
|
|
191
|
+
if (tag !== 58) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
message.datasetId = reader.string();
|
|
195
|
+
continue;
|
|
196
|
+
}
|
|
197
|
+
case 8: {
|
|
198
|
+
if (tag !== 66) {
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
message.dataUri = reader.string();
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
case 9: {
|
|
205
|
+
if (tag !== 74) {
|
|
206
|
+
break;
|
|
207
|
+
}
|
|
208
|
+
message.versionLabel = reader.string();
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
case 10: {
|
|
212
|
+
if (tag !== 82) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
message.schemaJson = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
case 11: {
|
|
219
|
+
if (tag !== 90) {
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
case 12: {
|
|
226
|
+
if (tag !== 98) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
case 13: {
|
|
233
|
+
if (tag !== 106) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
case 14: {
|
|
240
|
+
if (tag !== 114) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
message.archivedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
reader.skip(tag & 7);
|
|
251
|
+
}
|
|
252
|
+
return message;
|
|
253
|
+
},
|
|
254
|
+
fromJSON(object) {
|
|
255
|
+
return {
|
|
256
|
+
tabularDataAssetId: isSet(object.tabularDataAssetId)
|
|
257
|
+
? globalThis.String(object.tabularDataAssetId)
|
|
258
|
+
: isSet(object.tabular_data_asset_id)
|
|
259
|
+
? globalThis.String(object.tabular_data_asset_id)
|
|
260
|
+
: "",
|
|
261
|
+
projectId: isSet(object.projectId)
|
|
262
|
+
? globalThis.String(object.projectId)
|
|
263
|
+
: isSet(object.project_id)
|
|
264
|
+
? globalThis.String(object.project_id)
|
|
265
|
+
: "",
|
|
266
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
267
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
268
|
+
sourceType: isSet(object.sourceType)
|
|
269
|
+
? dataAssetSourceTypeFromJSON(object.sourceType)
|
|
270
|
+
: isSet(object.source_type)
|
|
271
|
+
? dataAssetSourceTypeFromJSON(object.source_type)
|
|
272
|
+
: 0,
|
|
273
|
+
storageConnectionId: isSet(object.storageConnectionId)
|
|
274
|
+
? globalThis.String(object.storageConnectionId)
|
|
275
|
+
: isSet(object.storage_connection_id)
|
|
276
|
+
? globalThis.String(object.storage_connection_id)
|
|
277
|
+
: "",
|
|
278
|
+
datasetId: isSet(object.datasetId)
|
|
279
|
+
? globalThis.String(object.datasetId)
|
|
280
|
+
: isSet(object.dataset_id)
|
|
281
|
+
? globalThis.String(object.dataset_id)
|
|
282
|
+
: "",
|
|
283
|
+
dataUri: isSet(object.dataUri)
|
|
284
|
+
? globalThis.String(object.dataUri)
|
|
285
|
+
: isSet(object.data_uri)
|
|
286
|
+
? globalThis.String(object.data_uri)
|
|
287
|
+
: "",
|
|
288
|
+
versionLabel: isSet(object.versionLabel)
|
|
289
|
+
? globalThis.String(object.versionLabel)
|
|
290
|
+
: isSet(object.version_label)
|
|
291
|
+
? globalThis.String(object.version_label)
|
|
292
|
+
: "",
|
|
293
|
+
schemaJson: isObject(object.schemaJson)
|
|
294
|
+
? object.schemaJson
|
|
295
|
+
: isObject(object.schema_json)
|
|
296
|
+
? object.schema_json
|
|
297
|
+
: undefined,
|
|
298
|
+
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
299
|
+
createdAt: isSet(object.createdAt)
|
|
300
|
+
? fromJsonTimestamp(object.createdAt)
|
|
301
|
+
: isSet(object.created_at)
|
|
302
|
+
? fromJsonTimestamp(object.created_at)
|
|
303
|
+
: undefined,
|
|
304
|
+
updatedAt: isSet(object.updatedAt)
|
|
305
|
+
? fromJsonTimestamp(object.updatedAt)
|
|
306
|
+
: isSet(object.updated_at)
|
|
307
|
+
? fromJsonTimestamp(object.updated_at)
|
|
308
|
+
: undefined,
|
|
309
|
+
archivedAt: isSet(object.archivedAt)
|
|
310
|
+
? fromJsonTimestamp(object.archivedAt)
|
|
311
|
+
: isSet(object.archived_at)
|
|
312
|
+
? fromJsonTimestamp(object.archived_at)
|
|
313
|
+
: undefined,
|
|
314
|
+
};
|
|
315
|
+
},
|
|
316
|
+
toJSON(message) {
|
|
317
|
+
const obj = {};
|
|
318
|
+
if (message.tabularDataAssetId !== "") {
|
|
319
|
+
obj.tabularDataAssetId = message.tabularDataAssetId;
|
|
320
|
+
}
|
|
321
|
+
if (message.projectId !== "") {
|
|
322
|
+
obj.projectId = message.projectId;
|
|
323
|
+
}
|
|
324
|
+
if (message.name !== "") {
|
|
325
|
+
obj.name = message.name;
|
|
326
|
+
}
|
|
327
|
+
if (message.description !== "") {
|
|
328
|
+
obj.description = message.description;
|
|
329
|
+
}
|
|
330
|
+
if (message.sourceType !== 0) {
|
|
331
|
+
obj.sourceType = dataAssetSourceTypeToJSON(message.sourceType);
|
|
332
|
+
}
|
|
333
|
+
if (message.storageConnectionId !== "") {
|
|
334
|
+
obj.storageConnectionId = message.storageConnectionId;
|
|
335
|
+
}
|
|
336
|
+
if (message.datasetId !== "") {
|
|
337
|
+
obj.datasetId = message.datasetId;
|
|
338
|
+
}
|
|
339
|
+
if (message.dataUri !== "") {
|
|
340
|
+
obj.dataUri = message.dataUri;
|
|
341
|
+
}
|
|
342
|
+
if (message.versionLabel !== "") {
|
|
343
|
+
obj.versionLabel = message.versionLabel;
|
|
344
|
+
}
|
|
345
|
+
if (message.schemaJson !== undefined) {
|
|
346
|
+
obj.schemaJson = message.schemaJson;
|
|
347
|
+
}
|
|
348
|
+
if (message.metadata !== undefined) {
|
|
349
|
+
obj.metadata = message.metadata;
|
|
350
|
+
}
|
|
351
|
+
if (message.createdAt !== undefined) {
|
|
352
|
+
obj.createdAt = message.createdAt.toISOString();
|
|
353
|
+
}
|
|
354
|
+
if (message.updatedAt !== undefined) {
|
|
355
|
+
obj.updatedAt = message.updatedAt.toISOString();
|
|
356
|
+
}
|
|
357
|
+
if (message.archivedAt !== undefined) {
|
|
358
|
+
obj.archivedAt = message.archivedAt.toISOString();
|
|
359
|
+
}
|
|
360
|
+
return obj;
|
|
361
|
+
},
|
|
362
|
+
create(base) {
|
|
363
|
+
return exports.TabularDataAsset.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
364
|
+
},
|
|
365
|
+
fromPartial(object) {
|
|
366
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
367
|
+
const message = createBaseTabularDataAsset();
|
|
368
|
+
message.tabularDataAssetId = (_a = object.tabularDataAssetId) !== null && _a !== void 0 ? _a : "";
|
|
369
|
+
message.projectId = (_b = object.projectId) !== null && _b !== void 0 ? _b : "";
|
|
370
|
+
message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
|
|
371
|
+
message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
|
|
372
|
+
message.sourceType = (_e = object.sourceType) !== null && _e !== void 0 ? _e : 0;
|
|
373
|
+
message.storageConnectionId = (_f = object.storageConnectionId) !== null && _f !== void 0 ? _f : "";
|
|
374
|
+
message.datasetId = (_g = object.datasetId) !== null && _g !== void 0 ? _g : "";
|
|
375
|
+
message.dataUri = (_h = object.dataUri) !== null && _h !== void 0 ? _h : "";
|
|
376
|
+
message.versionLabel = (_j = object.versionLabel) !== null && _j !== void 0 ? _j : "";
|
|
377
|
+
message.schemaJson = (_k = object.schemaJson) !== null && _k !== void 0 ? _k : undefined;
|
|
378
|
+
message.metadata = (_l = object.metadata) !== null && _l !== void 0 ? _l : undefined;
|
|
379
|
+
message.createdAt = (_m = object.createdAt) !== null && _m !== void 0 ? _m : undefined;
|
|
380
|
+
message.updatedAt = (_o = object.updatedAt) !== null && _o !== void 0 ? _o : undefined;
|
|
381
|
+
message.archivedAt = (_p = object.archivedAt) !== null && _p !== void 0 ? _p : undefined;
|
|
382
|
+
return message;
|
|
383
|
+
},
|
|
384
|
+
};
|
|
385
|
+
function toTimestamp(date) {
|
|
386
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
387
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
388
|
+
return { seconds, nanos };
|
|
389
|
+
}
|
|
390
|
+
function fromTimestamp(t) {
|
|
391
|
+
let millis = (t.seconds || 0) * 1000;
|
|
392
|
+
millis += (t.nanos || 0) / 1000000;
|
|
393
|
+
return new globalThis.Date(millis);
|
|
394
|
+
}
|
|
395
|
+
function fromJsonTimestamp(o) {
|
|
396
|
+
if (o instanceof globalThis.Date) {
|
|
397
|
+
return o;
|
|
398
|
+
}
|
|
399
|
+
else if (typeof o === "string") {
|
|
400
|
+
return new globalThis.Date(o);
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
function isObject(value) {
|
|
407
|
+
return typeof value === "object" && value !== null;
|
|
408
|
+
}
|
|
409
|
+
function isSet(value) {
|
|
410
|
+
return value !== null && value !== undefined;
|
|
411
|
+
}
|