weave-typescript 0.1.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.d.ts +1 -0
- package/dist/google/api/annotations.pb.js +10 -0
- package/dist/google/api/http.pb.d.ts +371 -0
- package/dist/google/api/http.pb.js +360 -0
- package/dist/google/protobuf/descriptor.pb.d.ts +1285 -0
- package/dist/google/protobuf/descriptor.pb.js +5217 -0
- package/dist/google/protobuf/struct.pb.d.ts +107 -0
- package/dist/google/protobuf/struct.pb.js +461 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +54 -0
- package/dist/weave/datamanagement/generate/v1/configuration.pb.d.ts +123 -0
- package/dist/weave/datamanagement/generate/v1/configuration.pb.js +799 -0
- package/dist/weave/datamanagement/generate/v1/generate.pb.d.ts +30 -0
- package/dist/weave/datamanagement/generate/v1/generate.pb.js +119 -0
- package/dist/weave/datamanagement/generate/v1/service.pb.d.ts +126 -0
- package/dist/weave/datamanagement/generate/v1/service.pb.js +578 -0
- package/dist/weave/datamanagement/storage/v1/auth.pb.d.ts +27 -0
- package/dist/weave/datamanagement/storage/v1/auth.pb.js +98 -0
- package/dist/weave/datamanagement/storage/v1/nosql_database.pb.d.ts +91 -0
- package/dist/weave/datamanagement/storage/v1/nosql_database.pb.js +1030 -0
- package/dist/weave/datamanagement/storage/v1/object_store.pb.d.ts +49 -0
- package/dist/weave/datamanagement/storage/v1/object_store.pb.js +405 -0
- package/dist/weave/datamanagement/storage/v1/service.pb.d.ts +257 -0
- package/dist/weave/datamanagement/storage/v1/service.pb.js +1188 -0
- package/dist/weave/datamanagement/storage/v1/sql_database.pb.d.ts +98 -0
- package/dist/weave/datamanagement/storage/v1/sql_database.pb.js +1142 -0
- package/dist/weave/datamanagement/storage/v1/storage.pb.d.ts +33 -0
- package/dist/weave/datamanagement/storage/v1/storage.pb.js +159 -0
- package/dist/weave/datamanagement/synthesize/v1/dataset.pb.d.ts +68 -0
- package/dist/weave/datamanagement/synthesize/v1/dataset.pb.js +439 -0
- package/dist/weave/datamanagement/synthesize/v1/inline_data.pb.d.ts +45 -0
- package/dist/weave/datamanagement/synthesize/v1/inline_data.pb.js +166 -0
- package/dist/weave/datamanagement/synthesize/v1/relationship.pb.d.ts +58 -0
- package/dist/weave/datamanagement/synthesize/v1/relationship.pb.js +241 -0
- package/dist/weave/datamanagement/synthesize/v1/service.pb.d.ts +133 -0
- package/dist/weave/datamanagement/synthesize/v1/service.pb.js +705 -0
- package/dist/weave/datamanagement/synthesize/v1/training.pb.d.ts +58 -0
- package/dist/weave/datamanagement/synthesize/v1/training.pb.js +353 -0
- package/package.json +27 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
5
|
+
* `Value` type union.
|
|
6
|
+
*
|
|
7
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
8
|
+
*/
|
|
9
|
+
export declare enum NullValue {
|
|
10
|
+
/** NULL_VALUE - Null value. */
|
|
11
|
+
NULL_VALUE = 0,
|
|
12
|
+
UNRECOGNIZED = -1
|
|
13
|
+
}
|
|
14
|
+
export declare function nullValueFromJSON(object: any): NullValue;
|
|
15
|
+
export declare function nullValueToJSON(object: NullValue): string;
|
|
16
|
+
/**
|
|
17
|
+
* `Struct` represents a structured data value, consisting of fields
|
|
18
|
+
* which map to dynamically typed values. In some languages, `Struct`
|
|
19
|
+
* might be supported by a native representation. For example, in
|
|
20
|
+
* scripting languages like JS a struct is represented as an
|
|
21
|
+
* object. The details of that representation are described together
|
|
22
|
+
* with the proto support for the language.
|
|
23
|
+
*
|
|
24
|
+
* The JSON representation for `Struct` is JSON object.
|
|
25
|
+
*/
|
|
26
|
+
export interface Struct {
|
|
27
|
+
/** Unordered map of dynamically typed values. */
|
|
28
|
+
fields: {
|
|
29
|
+
[key: string]: any | undefined;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface Struct_FieldsEntry {
|
|
33
|
+
key: string;
|
|
34
|
+
value: any | undefined;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* `Value` represents a dynamically typed value which can be either
|
|
38
|
+
* null, a number, a string, a boolean, a recursive struct value, or a
|
|
39
|
+
* list of values. A producer of value is expected to set one of these
|
|
40
|
+
* variants. Absence of any variant indicates an error.
|
|
41
|
+
*
|
|
42
|
+
* The JSON representation for `Value` is JSON value.
|
|
43
|
+
*/
|
|
44
|
+
export interface Value {
|
|
45
|
+
/** Represents a null value. */
|
|
46
|
+
nullValue?: NullValue | undefined;
|
|
47
|
+
/** Represents a double value. */
|
|
48
|
+
numberValue?: number | undefined;
|
|
49
|
+
/** Represents a string value. */
|
|
50
|
+
stringValue?: string | undefined;
|
|
51
|
+
/** Represents a boolean value. */
|
|
52
|
+
boolValue?: boolean | undefined;
|
|
53
|
+
/** Represents a structured value. */
|
|
54
|
+
structValue?: {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
} | undefined;
|
|
57
|
+
/** Represents a repeated `Value`. */
|
|
58
|
+
listValue?: Array<any> | undefined;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* `ListValue` is a wrapper around a repeated field of values.
|
|
62
|
+
*
|
|
63
|
+
* The JSON representation for `ListValue` is JSON array.
|
|
64
|
+
*/
|
|
65
|
+
export interface ListValue {
|
|
66
|
+
/** Repeated field of dynamically typed values. */
|
|
67
|
+
values: any[];
|
|
68
|
+
}
|
|
69
|
+
export declare const Struct: MessageFns<Struct> & StructWrapperFns;
|
|
70
|
+
export declare const Struct_FieldsEntry: MessageFns<Struct_FieldsEntry>;
|
|
71
|
+
export declare const Value: MessageFns<Value> & AnyValueWrapperFns;
|
|
72
|
+
export declare const ListValue: MessageFns<ListValue> & ListValueWrapperFns;
|
|
73
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
74
|
+
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 {} ? {
|
|
75
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
76
|
+
} : Partial<T>;
|
|
77
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
78
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
79
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
80
|
+
} & {
|
|
81
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
82
|
+
};
|
|
83
|
+
export interface MessageFns<T> {
|
|
84
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
85
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
86
|
+
fromJSON(object: any): T;
|
|
87
|
+
toJSON(message: T): unknown;
|
|
88
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
89
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
90
|
+
}
|
|
91
|
+
export interface StructWrapperFns {
|
|
92
|
+
wrap(object: {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
} | undefined): Struct;
|
|
95
|
+
unwrap(message: Struct): {
|
|
96
|
+
[key: string]: any;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
export interface AnyValueWrapperFns {
|
|
100
|
+
wrap(value: any): Value;
|
|
101
|
+
unwrap(message: any): string | number | boolean | Object | null | Array<any> | undefined;
|
|
102
|
+
}
|
|
103
|
+
export interface ListValueWrapperFns {
|
|
104
|
+
wrap(array: Array<any> | undefined): ListValue;
|
|
105
|
+
unwrap(message: ListValue): Array<any>;
|
|
106
|
+
}
|
|
107
|
+
export {};
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.6.1
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: google/protobuf/struct.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ListValue = exports.Value = exports.Struct_FieldsEntry = exports.Struct = exports.NullValue = exports.protobufPackage = void 0;
|
|
9
|
+
exports.nullValueFromJSON = nullValueFromJSON;
|
|
10
|
+
exports.nullValueToJSON = nullValueToJSON;
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
13
|
+
exports.protobufPackage = "google.protobuf";
|
|
14
|
+
/**
|
|
15
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
16
|
+
* `Value` type union.
|
|
17
|
+
*
|
|
18
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
19
|
+
*/
|
|
20
|
+
var NullValue;
|
|
21
|
+
(function (NullValue) {
|
|
22
|
+
/** NULL_VALUE - Null value. */
|
|
23
|
+
NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
|
|
24
|
+
NullValue[NullValue["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
25
|
+
})(NullValue || (exports.NullValue = NullValue = {}));
|
|
26
|
+
function nullValueFromJSON(object) {
|
|
27
|
+
switch (object) {
|
|
28
|
+
case 0:
|
|
29
|
+
case "NULL_VALUE":
|
|
30
|
+
return NullValue.NULL_VALUE;
|
|
31
|
+
case -1:
|
|
32
|
+
case "UNRECOGNIZED":
|
|
33
|
+
default:
|
|
34
|
+
return NullValue.UNRECOGNIZED;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function nullValueToJSON(object) {
|
|
38
|
+
switch (object) {
|
|
39
|
+
case NullValue.NULL_VALUE:
|
|
40
|
+
return "NULL_VALUE";
|
|
41
|
+
case NullValue.UNRECOGNIZED:
|
|
42
|
+
default:
|
|
43
|
+
return "UNRECOGNIZED";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function createBaseStruct() {
|
|
47
|
+
return { fields: {} };
|
|
48
|
+
}
|
|
49
|
+
exports.Struct = {
|
|
50
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
51
|
+
Object.entries(message.fields).forEach(([key, value]) => {
|
|
52
|
+
if (value !== undefined) {
|
|
53
|
+
exports.Struct_FieldsEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return writer;
|
|
57
|
+
},
|
|
58
|
+
decode(input, length) {
|
|
59
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
60
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
61
|
+
const message = createBaseStruct();
|
|
62
|
+
while (reader.pos < end) {
|
|
63
|
+
const tag = reader.uint32();
|
|
64
|
+
switch (tag >>> 3) {
|
|
65
|
+
case 1: {
|
|
66
|
+
if (tag !== 10) {
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
const entry1 = exports.Struct_FieldsEntry.decode(reader, reader.uint32());
|
|
70
|
+
if (entry1.value !== undefined) {
|
|
71
|
+
message.fields[entry1.key] = entry1.value;
|
|
72
|
+
}
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skip(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return {
|
|
85
|
+
fields: isObject(object.fields)
|
|
86
|
+
? Object.entries(object.fields).reduce((acc, [key, value]) => {
|
|
87
|
+
acc[key] = value;
|
|
88
|
+
return acc;
|
|
89
|
+
}, {})
|
|
90
|
+
: {},
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
toJSON(message) {
|
|
94
|
+
const obj = {};
|
|
95
|
+
if (message.fields) {
|
|
96
|
+
const entries = Object.entries(message.fields);
|
|
97
|
+
if (entries.length > 0) {
|
|
98
|
+
obj.fields = {};
|
|
99
|
+
entries.forEach(([k, v]) => {
|
|
100
|
+
obj.fields[k] = v;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.Struct.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
var _a;
|
|
111
|
+
const message = createBaseStruct();
|
|
112
|
+
message.fields = Object.entries((_a = object.fields) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
113
|
+
if (value !== undefined) {
|
|
114
|
+
acc[key] = value;
|
|
115
|
+
}
|
|
116
|
+
return acc;
|
|
117
|
+
}, {});
|
|
118
|
+
return message;
|
|
119
|
+
},
|
|
120
|
+
wrap(object) {
|
|
121
|
+
const struct = createBaseStruct();
|
|
122
|
+
if (object !== undefined) {
|
|
123
|
+
for (const key of Object.keys(object)) {
|
|
124
|
+
struct.fields[key] = object[key];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return struct;
|
|
128
|
+
},
|
|
129
|
+
unwrap(message) {
|
|
130
|
+
const object = {};
|
|
131
|
+
if (message.fields) {
|
|
132
|
+
for (const key of Object.keys(message.fields)) {
|
|
133
|
+
object[key] = message.fields[key];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return object;
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
function createBaseStruct_FieldsEntry() {
|
|
140
|
+
return { key: "", value: undefined };
|
|
141
|
+
}
|
|
142
|
+
exports.Struct_FieldsEntry = {
|
|
143
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
144
|
+
if (message.key !== "") {
|
|
145
|
+
writer.uint32(10).string(message.key);
|
|
146
|
+
}
|
|
147
|
+
if (message.value !== undefined) {
|
|
148
|
+
exports.Value.encode(exports.Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
149
|
+
}
|
|
150
|
+
return writer;
|
|
151
|
+
},
|
|
152
|
+
decode(input, length) {
|
|
153
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
154
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
155
|
+
const message = createBaseStruct_FieldsEntry();
|
|
156
|
+
while (reader.pos < end) {
|
|
157
|
+
const tag = reader.uint32();
|
|
158
|
+
switch (tag >>> 3) {
|
|
159
|
+
case 1: {
|
|
160
|
+
if (tag !== 10) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
message.key = reader.string();
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
case 2: {
|
|
167
|
+
if (tag !== 18) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.value = exports.Value.unwrap(exports.Value.decode(reader, reader.uint32()));
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
reader.skip(tag & 7);
|
|
178
|
+
}
|
|
179
|
+
return message;
|
|
180
|
+
},
|
|
181
|
+
fromJSON(object) {
|
|
182
|
+
return {
|
|
183
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
184
|
+
value: isSet(object === null || object === void 0 ? void 0 : object.value) ? object.value : undefined,
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
toJSON(message) {
|
|
188
|
+
const obj = {};
|
|
189
|
+
if (message.key !== "") {
|
|
190
|
+
obj.key = message.key;
|
|
191
|
+
}
|
|
192
|
+
if (message.value !== undefined) {
|
|
193
|
+
obj.value = message.value;
|
|
194
|
+
}
|
|
195
|
+
return obj;
|
|
196
|
+
},
|
|
197
|
+
create(base) {
|
|
198
|
+
return exports.Struct_FieldsEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
199
|
+
},
|
|
200
|
+
fromPartial(object) {
|
|
201
|
+
var _a, _b;
|
|
202
|
+
const message = createBaseStruct_FieldsEntry();
|
|
203
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
204
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : undefined;
|
|
205
|
+
return message;
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
function createBaseValue() {
|
|
209
|
+
return {
|
|
210
|
+
nullValue: undefined,
|
|
211
|
+
numberValue: undefined,
|
|
212
|
+
stringValue: undefined,
|
|
213
|
+
boolValue: undefined,
|
|
214
|
+
structValue: undefined,
|
|
215
|
+
listValue: undefined,
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
exports.Value = {
|
|
219
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
220
|
+
if (message.nullValue !== undefined) {
|
|
221
|
+
writer.uint32(8).int32(message.nullValue);
|
|
222
|
+
}
|
|
223
|
+
if (message.numberValue !== undefined) {
|
|
224
|
+
writer.uint32(17).double(message.numberValue);
|
|
225
|
+
}
|
|
226
|
+
if (message.stringValue !== undefined) {
|
|
227
|
+
writer.uint32(26).string(message.stringValue);
|
|
228
|
+
}
|
|
229
|
+
if (message.boolValue !== undefined) {
|
|
230
|
+
writer.uint32(32).bool(message.boolValue);
|
|
231
|
+
}
|
|
232
|
+
if (message.structValue !== undefined) {
|
|
233
|
+
exports.Struct.encode(exports.Struct.wrap(message.structValue), writer.uint32(42).fork()).join();
|
|
234
|
+
}
|
|
235
|
+
if (message.listValue !== undefined) {
|
|
236
|
+
exports.ListValue.encode(exports.ListValue.wrap(message.listValue), writer.uint32(50).fork()).join();
|
|
237
|
+
}
|
|
238
|
+
return writer;
|
|
239
|
+
},
|
|
240
|
+
decode(input, length) {
|
|
241
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
242
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
243
|
+
const message = createBaseValue();
|
|
244
|
+
while (reader.pos < end) {
|
|
245
|
+
const tag = reader.uint32();
|
|
246
|
+
switch (tag >>> 3) {
|
|
247
|
+
case 1: {
|
|
248
|
+
if (tag !== 8) {
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
message.nullValue = reader.int32();
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
case 2: {
|
|
255
|
+
if (tag !== 17) {
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
message.numberValue = reader.double();
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
case 3: {
|
|
262
|
+
if (tag !== 26) {
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
message.stringValue = reader.string();
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
case 4: {
|
|
269
|
+
if (tag !== 32) {
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
message.boolValue = reader.bool();
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
case 5: {
|
|
276
|
+
if (tag !== 42) {
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
message.structValue = exports.Struct.unwrap(exports.Struct.decode(reader, reader.uint32()));
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
case 6: {
|
|
283
|
+
if (tag !== 50) {
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
message.listValue = exports.ListValue.unwrap(exports.ListValue.decode(reader, reader.uint32()));
|
|
287
|
+
continue;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
reader.skip(tag & 7);
|
|
294
|
+
}
|
|
295
|
+
return message;
|
|
296
|
+
},
|
|
297
|
+
fromJSON(object) {
|
|
298
|
+
return {
|
|
299
|
+
nullValue: isSet(object.nullValue) ? nullValueFromJSON(object.nullValue) : undefined,
|
|
300
|
+
numberValue: isSet(object.numberValue) ? globalThis.Number(object.numberValue) : undefined,
|
|
301
|
+
stringValue: isSet(object.stringValue) ? globalThis.String(object.stringValue) : undefined,
|
|
302
|
+
boolValue: isSet(object.boolValue) ? globalThis.Boolean(object.boolValue) : undefined,
|
|
303
|
+
structValue: isObject(object.structValue) ? object.structValue : undefined,
|
|
304
|
+
listValue: globalThis.Array.isArray(object.listValue) ? [...object.listValue] : undefined,
|
|
305
|
+
};
|
|
306
|
+
},
|
|
307
|
+
toJSON(message) {
|
|
308
|
+
const obj = {};
|
|
309
|
+
if (message.nullValue !== undefined) {
|
|
310
|
+
obj.nullValue = nullValueToJSON(message.nullValue);
|
|
311
|
+
}
|
|
312
|
+
if (message.numberValue !== undefined) {
|
|
313
|
+
obj.numberValue = message.numberValue;
|
|
314
|
+
}
|
|
315
|
+
if (message.stringValue !== undefined) {
|
|
316
|
+
obj.stringValue = message.stringValue;
|
|
317
|
+
}
|
|
318
|
+
if (message.boolValue !== undefined) {
|
|
319
|
+
obj.boolValue = message.boolValue;
|
|
320
|
+
}
|
|
321
|
+
if (message.structValue !== undefined) {
|
|
322
|
+
obj.structValue = message.structValue;
|
|
323
|
+
}
|
|
324
|
+
if (message.listValue !== undefined) {
|
|
325
|
+
obj.listValue = message.listValue;
|
|
326
|
+
}
|
|
327
|
+
return obj;
|
|
328
|
+
},
|
|
329
|
+
create(base) {
|
|
330
|
+
return exports.Value.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
331
|
+
},
|
|
332
|
+
fromPartial(object) {
|
|
333
|
+
var _a, _b, _c, _d, _e, _f;
|
|
334
|
+
const message = createBaseValue();
|
|
335
|
+
message.nullValue = (_a = object.nullValue) !== null && _a !== void 0 ? _a : undefined;
|
|
336
|
+
message.numberValue = (_b = object.numberValue) !== null && _b !== void 0 ? _b : undefined;
|
|
337
|
+
message.stringValue = (_c = object.stringValue) !== null && _c !== void 0 ? _c : undefined;
|
|
338
|
+
message.boolValue = (_d = object.boolValue) !== null && _d !== void 0 ? _d : undefined;
|
|
339
|
+
message.structValue = (_e = object.structValue) !== null && _e !== void 0 ? _e : undefined;
|
|
340
|
+
message.listValue = (_f = object.listValue) !== null && _f !== void 0 ? _f : undefined;
|
|
341
|
+
return message;
|
|
342
|
+
},
|
|
343
|
+
wrap(value) {
|
|
344
|
+
const result = createBaseValue();
|
|
345
|
+
if (value === null) {
|
|
346
|
+
result.nullValue = NullValue.NULL_VALUE;
|
|
347
|
+
}
|
|
348
|
+
else if (typeof value === "boolean") {
|
|
349
|
+
result.boolValue = value;
|
|
350
|
+
}
|
|
351
|
+
else if (typeof value === "number") {
|
|
352
|
+
result.numberValue = value;
|
|
353
|
+
}
|
|
354
|
+
else if (typeof value === "string") {
|
|
355
|
+
result.stringValue = value;
|
|
356
|
+
}
|
|
357
|
+
else if (globalThis.Array.isArray(value)) {
|
|
358
|
+
result.listValue = value;
|
|
359
|
+
}
|
|
360
|
+
else if (typeof value === "object") {
|
|
361
|
+
result.structValue = value;
|
|
362
|
+
}
|
|
363
|
+
else if (typeof value !== "undefined") {
|
|
364
|
+
throw new globalThis.Error("Unsupported any value type: " + typeof value);
|
|
365
|
+
}
|
|
366
|
+
return result;
|
|
367
|
+
},
|
|
368
|
+
unwrap(message) {
|
|
369
|
+
if (message.stringValue !== undefined) {
|
|
370
|
+
return message.stringValue;
|
|
371
|
+
}
|
|
372
|
+
else if ((message === null || message === void 0 ? void 0 : message.numberValue) !== undefined) {
|
|
373
|
+
return message.numberValue;
|
|
374
|
+
}
|
|
375
|
+
else if ((message === null || message === void 0 ? void 0 : message.boolValue) !== undefined) {
|
|
376
|
+
return message.boolValue;
|
|
377
|
+
}
|
|
378
|
+
else if ((message === null || message === void 0 ? void 0 : message.structValue) !== undefined) {
|
|
379
|
+
return message.structValue;
|
|
380
|
+
}
|
|
381
|
+
else if ((message === null || message === void 0 ? void 0 : message.listValue) !== undefined) {
|
|
382
|
+
return message.listValue;
|
|
383
|
+
}
|
|
384
|
+
else if ((message === null || message === void 0 ? void 0 : message.nullValue) !== undefined) {
|
|
385
|
+
return null;
|
|
386
|
+
}
|
|
387
|
+
return undefined;
|
|
388
|
+
},
|
|
389
|
+
};
|
|
390
|
+
function createBaseListValue() {
|
|
391
|
+
return { values: [] };
|
|
392
|
+
}
|
|
393
|
+
exports.ListValue = {
|
|
394
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
395
|
+
for (const v of message.values) {
|
|
396
|
+
exports.Value.encode(exports.Value.wrap(v), writer.uint32(10).fork()).join();
|
|
397
|
+
}
|
|
398
|
+
return writer;
|
|
399
|
+
},
|
|
400
|
+
decode(input, length) {
|
|
401
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
402
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
403
|
+
const message = createBaseListValue();
|
|
404
|
+
while (reader.pos < end) {
|
|
405
|
+
const tag = reader.uint32();
|
|
406
|
+
switch (tag >>> 3) {
|
|
407
|
+
case 1: {
|
|
408
|
+
if (tag !== 10) {
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
message.values.push(exports.Value.unwrap(exports.Value.decode(reader, reader.uint32())));
|
|
412
|
+
continue;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
reader.skip(tag & 7);
|
|
419
|
+
}
|
|
420
|
+
return message;
|
|
421
|
+
},
|
|
422
|
+
fromJSON(object) {
|
|
423
|
+
return { values: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.values) ? [...object.values] : [] };
|
|
424
|
+
},
|
|
425
|
+
toJSON(message) {
|
|
426
|
+
var _a;
|
|
427
|
+
const obj = {};
|
|
428
|
+
if ((_a = message.values) === null || _a === void 0 ? void 0 : _a.length) {
|
|
429
|
+
obj.values = message.values;
|
|
430
|
+
}
|
|
431
|
+
return obj;
|
|
432
|
+
},
|
|
433
|
+
create(base) {
|
|
434
|
+
return exports.ListValue.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
435
|
+
},
|
|
436
|
+
fromPartial(object) {
|
|
437
|
+
var _a;
|
|
438
|
+
const message = createBaseListValue();
|
|
439
|
+
message.values = ((_a = object.values) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
440
|
+
return message;
|
|
441
|
+
},
|
|
442
|
+
wrap(array) {
|
|
443
|
+
const result = createBaseListValue();
|
|
444
|
+
result.values = array !== null && array !== void 0 ? array : [];
|
|
445
|
+
return result;
|
|
446
|
+
},
|
|
447
|
+
unwrap(message) {
|
|
448
|
+
if ((message === null || message === void 0 ? void 0 : message.hasOwnProperty("values")) && globalThis.Array.isArray(message.values)) {
|
|
449
|
+
return message.values;
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
return message;
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
};
|
|
456
|
+
function isObject(value) {
|
|
457
|
+
return typeof value === "object" && value !== null;
|
|
458
|
+
}
|
|
459
|
+
function isSet(value) {
|
|
460
|
+
return value !== null && value !== undefined;
|
|
461
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * as configuration from './weave/datamanagement/generate/v1/configuration.pb';
|
|
2
|
+
export * as generate from './weave/datamanagement/generate/v1/generate.pb';
|
|
3
|
+
export * as generateService from './weave/datamanagement/generate/v1/service.pb';
|
|
4
|
+
export * as auth from './weave/datamanagement/storage/v1/auth.pb';
|
|
5
|
+
export * as nosqlDatabase from './weave/datamanagement/storage/v1/nosql_database.pb';
|
|
6
|
+
export * as objectStore from './weave/datamanagement/storage/v1/object_store.pb';
|
|
7
|
+
export * as storageService from './weave/datamanagement/storage/v1/service.pb';
|
|
8
|
+
export * as sqlDatabase from './weave/datamanagement/storage/v1/sql_database.pb';
|
|
9
|
+
export * as storage from './weave/datamanagement/storage/v1/storage.pb';
|
|
10
|
+
export * as dataset from './weave/datamanagement/synthesize/v1/dataset.pb';
|
|
11
|
+
export * as inlineData from './weave/datamanagement/synthesize/v1/inline_data.pb';
|
|
12
|
+
export * as relationship from './weave/datamanagement/synthesize/v1/relationship.pb';
|
|
13
|
+
export * as synthesizeService from './weave/datamanagement/synthesize/v1/service.pb';
|
|
14
|
+
export * as training from './weave/datamanagement/synthesize/v1/training.pb';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by barrel.js. DO NOT EDIT.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.training = exports.synthesizeService = exports.relationship = exports.inlineData = exports.dataset = exports.storage = exports.sqlDatabase = exports.storageService = exports.objectStore = exports.nosqlDatabase = exports.auth = exports.generateService = exports.generate = exports.configuration = void 0;
|
|
38
|
+
// Re-export from weave/datamanagement/generate/v1
|
|
39
|
+
exports.configuration = __importStar(require("./weave/datamanagement/generate/v1/configuration.pb"));
|
|
40
|
+
exports.generate = __importStar(require("./weave/datamanagement/generate/v1/generate.pb"));
|
|
41
|
+
exports.generateService = __importStar(require("./weave/datamanagement/generate/v1/service.pb"));
|
|
42
|
+
// Re-export from weave/datamanagement/storage/v1
|
|
43
|
+
exports.auth = __importStar(require("./weave/datamanagement/storage/v1/auth.pb"));
|
|
44
|
+
exports.nosqlDatabase = __importStar(require("./weave/datamanagement/storage/v1/nosql_database.pb"));
|
|
45
|
+
exports.objectStore = __importStar(require("./weave/datamanagement/storage/v1/object_store.pb"));
|
|
46
|
+
exports.storageService = __importStar(require("./weave/datamanagement/storage/v1/service.pb"));
|
|
47
|
+
exports.sqlDatabase = __importStar(require("./weave/datamanagement/storage/v1/sql_database.pb"));
|
|
48
|
+
exports.storage = __importStar(require("./weave/datamanagement/storage/v1/storage.pb"));
|
|
49
|
+
// Re-export from weave/datamanagement/synthesize/v1
|
|
50
|
+
exports.dataset = __importStar(require("./weave/datamanagement/synthesize/v1/dataset.pb"));
|
|
51
|
+
exports.inlineData = __importStar(require("./weave/datamanagement/synthesize/v1/inline_data.pb"));
|
|
52
|
+
exports.relationship = __importStar(require("./weave/datamanagement/synthesize/v1/relationship.pb"));
|
|
53
|
+
exports.synthesizeService = __importStar(require("./weave/datamanagement/synthesize/v1/service.pb"));
|
|
54
|
+
exports.training = __importStar(require("./weave/datamanagement/synthesize/v1/training.pb"));
|