weave-typescript 0.12.0 → 0.14.0
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/google/api/annotations.pb.js +1 -1
- package/dist/google/api/http.pb.js +1 -1
- package/dist/google/protobuf/descriptor.pb.d.ts +8 -1
- package/dist/google/protobuf/descriptor.pb.js +8 -1
- package/dist/google/protobuf/struct.pb.js +1 -1
- package/dist/google/protobuf/timestamp.pb.d.ts +7 -6
- package/dist/google/protobuf/timestamp.pb.js +1 -1
- package/dist/index.d.ts +9 -16
- package/dist/index.js +13 -21
- package/dist/weaveapi/{storage/v1/auth.pb.d.ts → atc/v1/event.pb.d.ts} +12 -6
- package/dist/weaveapi/atc/v1/event.pb.js +263 -0
- package/dist/weaveapi/{auth/v1/session.pb.d.ts → atc/v1/message.pb.d.ts} +22 -21
- package/dist/weaveapi/atc/v1/message.pb.js +287 -0
- package/dist/weaveapi/atc/v1/process.pb.d.ts +91 -0
- package/dist/weaveapi/atc/v1/process.pb.js +658 -0
- package/dist/weaveapi/atc/v1/run.pb.d.ts +71 -0
- package/dist/weaveapi/atc/v1/run.pb.js +525 -0
- package/dist/weaveapi/atc/v1/service.pb.d.ts +339 -0
- package/dist/weaveapi/atc/v1/service.pb.js +1922 -0
- package/dist/weaveapi/project/v1/project.pb.d.ts +67 -5
- package/dist/weaveapi/project/v1/project.pb.js +765 -66
- package/dist/weaveapi/project/v1/service.pb.d.ts +117 -76
- package/dist/weaveapi/project/v1/service.pb.js +1088 -401
- package/dist/weaveapi/task/v1/service.pb.d.ts +171 -0
- package/dist/weaveapi/task/v1/service.pb.js +1416 -0
- package/dist/weaveapi/task/v1/task.pb.d.ts +84 -0
- package/dist/weaveapi/task/v1/task.pb.js +782 -0
- package/dist/weavesql/atcdb/event_sql.d.ts +101 -0
- package/dist/weavesql/atcdb/event_sql.js +191 -0
- package/dist/weavesql/atcdb/mailbox_sql.d.ts +43 -0
- package/dist/weavesql/atcdb/mailbox_sql.js +85 -0
- package/dist/weavesql/weavedb/project_sql.d.ts +121 -46
- package/dist/weavesql/weavedb/project_sql.js +304 -112
- package/dist/weavesql/weavedb/task_sql.d.ts +163 -0
- package/dist/weavesql/weavedb/task_sql.js +328 -0
- package/package.json +1 -1
- package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
- package/dist/weaveapi/auth/v1/service.pb.js +0 -4977
- package/dist/weaveapi/auth/v1/session.pb.js +0 -308
- package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
- package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
- package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
- package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
- package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
- package/dist/weaveapi/data/v1/data.pb.js +0 -411
- package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
- package/dist/weaveapi/data/v1/service.pb.js +0 -2777
- package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
- package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
- package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
- package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
- package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
- package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
- package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
- package/dist/weaveapi/input/v1/input.pb.js +0 -632
- package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/input/v1/service.pb.js +0 -3610
- package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
- package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
- package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
- package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
- package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
- package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
- package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
- package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
- package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
- package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
- package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
- package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
- package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
- package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
- package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
- package/dist/weaveapi/llmx/v1/service.pb.js +0 -5266
- package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
- package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
- package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
- package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
- package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
- package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
- package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
- package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
- package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
- package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
- package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
- package/dist/weaveapi/report/v1/report.pb.js +0 -678
- package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
- package/dist/weaveapi/report/v1/service.pb.js +0 -1923
- package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
- package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
- package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
- package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
- package/dist/weaveapi/run/v1/run.pb.js +0 -1155
- package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
- package/dist/weaveapi/run/v1/service.pb.js +0 -2426
- package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
- package/dist/weaveapi/script/v1/script.pb.js +0 -1025
- package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
- package/dist/weaveapi/script/v1/service.pb.js +0 -4871
- package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
- package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
- package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
- package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
- package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
- package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
- package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
- package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
- package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
- package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
- package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
- package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
- package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
- package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
- package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
- package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
- package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
- package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
- package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
- package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
- package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
- package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
- package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
- package/dist/weaveapi/synthesize/v1/service.pb.js +0 -917
- package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
- package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
- package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
- package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
- package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
- package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
- package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
- package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
|
@@ -1,54 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,411 +0,0 @@
|
|
|
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
|
-
}
|