@conduitplatform/grpc-sdk 0.16.0-alpha.9 → 0.16.0-rc.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/classes/ConduitAuthorizedResource.js +5 -6
- package/dist/classes/ConduitAuthorizedResource.js.map +1 -1
- package/dist/classes/ConduitModule.js +59 -162
- package/dist/classes/ConduitModule.js.map +1 -1
- package/dist/classes/ConduitSchema.js +3 -4
- package/dist/classes/ConduitSchema.js.map +1 -1
- package/dist/classes/Error.js +17 -40
- package/dist/classes/Error.js.map +1 -1
- package/dist/classes/HealthCheck.js +28 -96
- package/dist/classes/HealthCheck.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +300 -462
- package/dist/index.js.map +1 -1
- package/dist/interceptors/grpcSignedToken.d.ts +1 -1
- package/dist/interceptors/grpcSignedToken.js +7 -79
- package/dist/interceptors/grpcSignedToken.js.map +1 -1
- package/dist/interceptors/moduleName.d.ts +1 -1
- package/dist/interceptors/moduleName.js +7 -79
- package/dist/interceptors/moduleName.js.map +1 -1
- package/dist/interfaces/ConduitRouteReturn.js +9 -18
- package/dist/interfaces/ConduitRouteReturn.js.map +1 -1
- package/dist/interfaces/GrpcCallback.d.ts +1 -1
- package/dist/interfaces/Indexable.d.ts +7 -7
- package/dist/interfaces/Model.d.ts +19 -16
- package/dist/interfaces/Params.d.ts +3 -3
- package/dist/interfaces/RawQuery.d.ts +2 -2
- package/dist/interfaces/Route.d.ts +12 -9
- package/dist/interfaces/Route.js.map +1 -1
- package/dist/interfaces/Socket.d.ts +1 -1
- package/dist/interfaces/UntypedArray.d.ts +1 -1
- package/dist/interfaces/types.d.ts +6 -6
- package/dist/module.proto +58 -0
- package/dist/modules/admin/index.d.ts +2 -3
- package/dist/modules/admin/index.js +13 -39
- package/dist/modules/admin/index.js.map +1 -1
- package/dist/modules/authentication/index.d.ts +6 -2
- package/dist/modules/authentication/index.js +33 -40
- package/dist/modules/authentication/index.js.map +1 -1
- package/dist/modules/authorization/index.d.ts +4 -1
- package/dist/modules/authorization/index.js +38 -47
- package/dist/modules/authorization/index.js.map +1 -1
- package/dist/modules/chat/index.js +16 -34
- package/dist/modules/chat/index.js.map +1 -1
- package/dist/modules/config/index.d.ts +10 -1
- package/dist/modules/config/index.js +82 -177
- package/dist/modules/config/index.js.map +1 -1
- package/dist/modules/core/index.js +8 -26
- package/dist/modules/core/index.js.map +1 -1
- package/dist/modules/database/index.d.ts +19 -10
- package/dist/modules/database/index.js +184 -125
- package/dist/modules/database/index.js.map +1 -1
- package/dist/modules/email/index.js +15 -33
- package/dist/modules/email/index.js.map +1 -1
- package/dist/modules/pushNotifications/index.d.ts +4 -4
- package/dist/modules/pushNotifications/index.js +38 -60
- package/dist/modules/pushNotifications/index.js.map +1 -1
- package/dist/modules/router/index.d.ts +2 -3
- package/dist/modules/router/index.js +15 -41
- package/dist/modules/router/index.js.map +1 -1
- package/dist/modules/sms/index.js +17 -35
- package/dist/modules/sms/index.js.map +1 -1
- package/dist/modules/storage/index.d.ts +7 -7
- package/dist/modules/storage/index.js +64 -55
- package/dist/modules/storage/index.js.map +1 -1
- package/dist/protoUtils/authentication.d.ts +200 -4
- package/dist/protoUtils/authentication.js +789 -194
- package/dist/protoUtils/authentication.js.map +1 -1
- package/dist/protoUtils/authorization.d.ts +155 -5
- package/dist/protoUtils/authorization.js +860 -447
- package/dist/protoUtils/authorization.js.map +1 -1
- package/dist/protoUtils/chat.d.ts +18 -7
- package/dist/protoUtils/chat.js +210 -227
- package/dist/protoUtils/chat.js.map +1 -1
- package/dist/protoUtils/core.d.ts +55 -50
- package/dist/protoUtils/core.js +1018 -902
- package/dist/protoUtils/core.js.map +1 -1
- package/dist/protoUtils/database.d.ts +262 -16
- package/dist/protoUtils/database.js +1489 -832
- package/dist/protoUtils/database.js.map +1 -1
- package/dist/protoUtils/email.d.ts +13 -4
- package/dist/protoUtils/email.js +242 -253
- package/dist/protoUtils/email.js.map +1 -1
- package/dist/protoUtils/google/protobuf/empty.d.ts +4 -3
- package/dist/protoUtils/google/protobuf/empty.js +21 -38
- package/dist/protoUtils/google/protobuf/empty.js.map +1 -1
- package/dist/protoUtils/grpc_health_check.d.ts +10 -4
- package/dist/protoUtils/grpc_health_check.js +72 -83
- package/dist/protoUtils/grpc_health_check.js.map +1 -1
- package/dist/protoUtils/module.d.ts +202 -4
- package/dist/protoUtils/module.js +810 -72
- package/dist/protoUtils/module.js.map +1 -1
- package/dist/protoUtils/push-notifications.d.ts +26 -6
- package/dist/protoUtils/push-notifications.js +381 -317
- package/dist/protoUtils/push-notifications.js.map +1 -1
- package/dist/protoUtils/router.d.ts +18 -48
- package/dist/protoUtils/router.js +502 -560
- package/dist/protoUtils/router.js.map +1 -1
- package/dist/protoUtils/sms.d.ts +16 -4
- package/dist/protoUtils/sms.js +199 -175
- package/dist/protoUtils/sms.js.map +1 -1
- package/dist/protoUtils/storage.d.ts +37 -4
- package/dist/protoUtils/storage.js +639 -318
- package/dist/protoUtils/storage.js.map +1 -1
- package/dist/types/db.d.ts +13 -11
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +6 -24
- package/dist/types/index.js.map +1 -1
- package/dist/utilities/EventBus.d.ts +3 -1
- package/dist/utilities/EventBus.js +38 -17
- package/dist/utilities/EventBus.js.map +1 -1
- package/dist/utilities/RedisManager.js +11 -21
- package/dist/utilities/RedisManager.js.map +1 -1
- package/dist/utilities/StateManager.d.ts +9 -0
- package/dist/utilities/StateManager.js +58 -15
- package/dist/utilities/StateManager.js.map +1 -1
- package/dist/utilities/env.js +4 -4
- package/dist/utilities/env.js.map +1 -1
- package/dist/utilities/sleep.js +1 -1
- package/dist/utilities/sleep.js.map +1 -1
- package/package.json +26 -19
|
@@ -1,173 +1,155 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __values = (this && this.__values) || function(o) {
|
|
26
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
27
|
-
if (m) return m.call(o);
|
|
28
|
-
if (o && typeof o.length === "number") return {
|
|
29
|
-
next: function () {
|
|
30
|
-
if (o && i >= o.length) o = void 0;
|
|
31
|
-
return { value: o && o[i++], done: !o };
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
35
|
-
};
|
|
36
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
37
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
38
|
-
if (!m) return o;
|
|
39
|
-
var i = m.call(o), r, ar = [], e;
|
|
40
|
-
try {
|
|
41
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
42
|
-
}
|
|
43
|
-
catch (error) { e = { error: error }; }
|
|
44
|
-
finally {
|
|
45
|
-
try {
|
|
46
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
47
|
-
}
|
|
48
|
-
finally { if (e) throw e.error; }
|
|
49
|
-
}
|
|
50
|
-
return ar;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
4
|
};
|
|
52
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.DatabaseProviderDefinition = exports.ColumnExistenceResponse = exports.ColumnExistenceRequest = exports.MigrateRequest = exports.DropCollectionRequest = exports.UpdateManyRequest = exports.UpdateRequest = exports.RawQueryRequest_RawQuery_SQLQuery = exports.RawQueryRequest_RawQuery_MongoQuery = exports.RawQueryRequest_RawQuery = exports.RawQueryRequest = exports.QueryRequest = exports.QueryResponse = exports.FindRequest_SortEntry = exports.FindRequest = exports.FindOneRequest = exports.SchemaExtension = exports.Schema = exports.DropCollectionResponse = exports.GetSchemasResponse = exports.GetSchemasRequest = exports.GetSchemaRequest = exports.CreateSchemaRequest = void 0;
|
|
6
|
+
exports.DatabaseProviderDefinition = exports.GetDatabaseTypeResponse = exports.ColumnExistenceResponse = exports.ColumnExistenceRequest = exports.MigrateRequest = exports.DropCollectionRequest = exports.UpdateManyRequest = exports.UpdateRequest = exports.DeleteViewRequest = exports.CreateViewRequest_RawQuery = exports.CreateViewRequest = exports.RawQueryRequest_RawQuery_SQLQuery = exports.RawQueryRequest_RawQuery_MongoQuery = exports.RawQueryRequest_RawQuery = exports.RawQueryRequest = exports.QueryRequest = exports.QueryResponse = exports.FindRequest_SortEntry = exports.FindRequest = exports.FindOneRequest = exports.SchemaExtension = exports.Schema = exports.DropCollectionResponse = exports.GetSchemasResponse = exports.GetSchemasRequest = exports.GetSchemaRequest = exports.CreateSchemaRequest = void 0;
|
|
54
7
|
/* eslint-disable */
|
|
55
|
-
|
|
56
|
-
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
const empty_1 = require("./google/protobuf/empty");
|
|
57
10
|
function createBaseCreateSchemaRequest() {
|
|
58
|
-
return { name:
|
|
11
|
+
return { name: "", fields: "", modelOptions: "", collectionName: "" };
|
|
59
12
|
}
|
|
60
13
|
exports.CreateSchemaRequest = {
|
|
61
|
-
encode
|
|
62
|
-
if (
|
|
63
|
-
if (message.name !== '') {
|
|
14
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
+
if (message.name !== "") {
|
|
64
16
|
writer.uint32(10).string(message.name);
|
|
65
17
|
}
|
|
66
|
-
if (message.fields !==
|
|
18
|
+
if (message.fields !== "") {
|
|
67
19
|
writer.uint32(18).string(message.fields);
|
|
68
20
|
}
|
|
69
|
-
if (message.modelOptions !==
|
|
21
|
+
if (message.modelOptions !== "") {
|
|
70
22
|
writer.uint32(26).string(message.modelOptions);
|
|
71
23
|
}
|
|
72
|
-
if (message.collectionName !==
|
|
24
|
+
if (message.collectionName !== "") {
|
|
73
25
|
writer.uint32(34).string(message.collectionName);
|
|
74
26
|
}
|
|
75
27
|
return writer;
|
|
76
28
|
},
|
|
77
|
-
decode
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBaseCreateSchemaRequest();
|
|
81
33
|
while (reader.pos < end) {
|
|
82
|
-
|
|
34
|
+
const tag = reader.uint32();
|
|
83
35
|
switch (tag >>> 3) {
|
|
84
36
|
case 1:
|
|
37
|
+
if (tag !== 10) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
85
40
|
message.name = reader.string();
|
|
86
|
-
|
|
41
|
+
continue;
|
|
87
42
|
case 2:
|
|
43
|
+
if (tag !== 18) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
88
46
|
message.fields = reader.string();
|
|
89
|
-
|
|
47
|
+
continue;
|
|
90
48
|
case 3:
|
|
49
|
+
if (tag !== 26) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
91
52
|
message.modelOptions = reader.string();
|
|
92
|
-
|
|
53
|
+
continue;
|
|
93
54
|
case 4:
|
|
55
|
+
if (tag !== 34) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
94
58
|
message.collectionName = reader.string();
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
62
|
+
break;
|
|
99
63
|
}
|
|
64
|
+
reader.skipType(tag & 7);
|
|
100
65
|
}
|
|
101
66
|
return message;
|
|
102
67
|
},
|
|
103
|
-
fromJSON
|
|
68
|
+
fromJSON(object) {
|
|
104
69
|
return {
|
|
105
|
-
name: isSet(object.name) ? String(object.name) :
|
|
106
|
-
fields: isSet(object.fields) ? String(object.fields) :
|
|
107
|
-
modelOptions: isSet(object.modelOptions) ? String(object.modelOptions) :
|
|
108
|
-
collectionName: isSet(object.collectionName) ? String(object.collectionName) :
|
|
70
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
71
|
+
fields: isSet(object.fields) ? globalThis.String(object.fields) : "",
|
|
72
|
+
modelOptions: isSet(object.modelOptions) ? globalThis.String(object.modelOptions) : "",
|
|
73
|
+
collectionName: isSet(object.collectionName) ? globalThis.String(object.collectionName) : "",
|
|
109
74
|
};
|
|
110
75
|
},
|
|
111
|
-
toJSON
|
|
112
|
-
|
|
113
|
-
message.name !==
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
message.
|
|
76
|
+
toJSON(message) {
|
|
77
|
+
const obj = {};
|
|
78
|
+
if (message.name !== "") {
|
|
79
|
+
obj.name = message.name;
|
|
80
|
+
}
|
|
81
|
+
if (message.fields !== "") {
|
|
82
|
+
obj.fields = message.fields;
|
|
83
|
+
}
|
|
84
|
+
if (message.modelOptions !== "") {
|
|
85
|
+
obj.modelOptions = message.modelOptions;
|
|
86
|
+
}
|
|
87
|
+
if (message.collectionName !== "") {
|
|
88
|
+
obj.collectionName = message.collectionName;
|
|
89
|
+
}
|
|
117
90
|
return obj;
|
|
118
91
|
},
|
|
119
|
-
|
|
92
|
+
create(base) {
|
|
93
|
+
return exports.CreateSchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
94
|
+
},
|
|
95
|
+
fromPartial(object) {
|
|
120
96
|
var _a, _b, _c, _d;
|
|
121
|
-
|
|
122
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a :
|
|
123
|
-
message.fields = (_b = object.fields) !== null && _b !== void 0 ? _b :
|
|
124
|
-
message.modelOptions = (_c = object.modelOptions) !== null && _c !== void 0 ? _c :
|
|
125
|
-
message.collectionName = (_d = object.collectionName) !== null && _d !== void 0 ? _d :
|
|
97
|
+
const message = createBaseCreateSchemaRequest();
|
|
98
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
99
|
+
message.fields = (_b = object.fields) !== null && _b !== void 0 ? _b : "";
|
|
100
|
+
message.modelOptions = (_c = object.modelOptions) !== null && _c !== void 0 ? _c : "";
|
|
101
|
+
message.collectionName = (_d = object.collectionName) !== null && _d !== void 0 ? _d : "";
|
|
126
102
|
return message;
|
|
127
103
|
},
|
|
128
104
|
};
|
|
129
105
|
function createBaseGetSchemaRequest() {
|
|
130
|
-
return { schemaName:
|
|
106
|
+
return { schemaName: "" };
|
|
131
107
|
}
|
|
132
108
|
exports.GetSchemaRequest = {
|
|
133
|
-
encode
|
|
134
|
-
if (
|
|
135
|
-
if (message.schemaName !== '') {
|
|
109
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
110
|
+
if (message.schemaName !== "") {
|
|
136
111
|
writer.uint32(10).string(message.schemaName);
|
|
137
112
|
}
|
|
138
113
|
return writer;
|
|
139
114
|
},
|
|
140
|
-
decode
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
115
|
+
decode(input, length) {
|
|
116
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
117
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
118
|
+
const message = createBaseGetSchemaRequest();
|
|
144
119
|
while (reader.pos < end) {
|
|
145
|
-
|
|
120
|
+
const tag = reader.uint32();
|
|
146
121
|
switch (tag >>> 3) {
|
|
147
122
|
case 1:
|
|
123
|
+
if (tag !== 10) {
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
148
126
|
message.schemaName = reader.string();
|
|
149
|
-
|
|
150
|
-
default:
|
|
151
|
-
reader.skipType(tag & 7);
|
|
152
|
-
break;
|
|
127
|
+
continue;
|
|
153
128
|
}
|
|
129
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
reader.skipType(tag & 7);
|
|
154
133
|
}
|
|
155
134
|
return message;
|
|
156
135
|
},
|
|
157
|
-
fromJSON
|
|
158
|
-
return {
|
|
159
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) : '',
|
|
160
|
-
};
|
|
136
|
+
fromJSON(object) {
|
|
137
|
+
return { schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "" };
|
|
161
138
|
},
|
|
162
|
-
toJSON
|
|
163
|
-
|
|
164
|
-
message.schemaName !==
|
|
139
|
+
toJSON(message) {
|
|
140
|
+
const obj = {};
|
|
141
|
+
if (message.schemaName !== "") {
|
|
142
|
+
obj.schemaName = message.schemaName;
|
|
143
|
+
}
|
|
165
144
|
return obj;
|
|
166
145
|
},
|
|
167
|
-
|
|
146
|
+
create(base) {
|
|
147
|
+
return exports.GetSchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
148
|
+
},
|
|
149
|
+
fromPartial(object) {
|
|
168
150
|
var _a;
|
|
169
|
-
|
|
170
|
-
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a :
|
|
151
|
+
const message = createBaseGetSchemaRequest();
|
|
152
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
171
153
|
return message;
|
|
172
154
|
},
|
|
173
155
|
};
|
|
@@ -175,33 +157,36 @@ function createBaseGetSchemasRequest() {
|
|
|
175
157
|
return {};
|
|
176
158
|
}
|
|
177
159
|
exports.GetSchemasRequest = {
|
|
178
|
-
encode
|
|
179
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
160
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
180
161
|
return writer;
|
|
181
162
|
},
|
|
182
|
-
decode
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
163
|
+
decode(input, length) {
|
|
164
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
165
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
166
|
+
const message = createBaseGetSchemasRequest();
|
|
186
167
|
while (reader.pos < end) {
|
|
187
|
-
|
|
168
|
+
const tag = reader.uint32();
|
|
188
169
|
switch (tag >>> 3) {
|
|
189
|
-
default:
|
|
190
|
-
reader.skipType(tag & 7);
|
|
191
|
-
break;
|
|
192
170
|
}
|
|
171
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
reader.skipType(tag & 7);
|
|
193
175
|
}
|
|
194
176
|
return message;
|
|
195
177
|
},
|
|
196
|
-
fromJSON
|
|
178
|
+
fromJSON(_) {
|
|
197
179
|
return {};
|
|
198
180
|
},
|
|
199
|
-
toJSON
|
|
200
|
-
|
|
181
|
+
toJSON(_) {
|
|
182
|
+
const obj = {};
|
|
201
183
|
return obj;
|
|
202
184
|
},
|
|
203
|
-
|
|
204
|
-
|
|
185
|
+
create(base) {
|
|
186
|
+
return exports.GetSchemasRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
187
|
+
},
|
|
188
|
+
fromPartial(_) {
|
|
189
|
+
const message = createBaseGetSchemasRequest();
|
|
205
190
|
return message;
|
|
206
191
|
},
|
|
207
192
|
};
|
|
@@ -209,354 +194,426 @@ function createBaseGetSchemasResponse() {
|
|
|
209
194
|
return { schemas: [] };
|
|
210
195
|
}
|
|
211
196
|
exports.GetSchemasResponse = {
|
|
212
|
-
encode
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
try {
|
|
216
|
-
for (var _b = __values(message.schemas), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
217
|
-
var v = _c.value;
|
|
218
|
-
exports.Schema.encode(v, writer.uint32(10).fork()).ldelim();
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
222
|
-
finally {
|
|
223
|
-
try {
|
|
224
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
225
|
-
}
|
|
226
|
-
finally { if (e_1) throw e_1.error; }
|
|
197
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
198
|
+
for (const v of message.schemas) {
|
|
199
|
+
exports.Schema.encode(v, writer.uint32(10).fork()).ldelim();
|
|
227
200
|
}
|
|
228
201
|
return writer;
|
|
229
202
|
},
|
|
230
|
-
decode
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
203
|
+
decode(input, length) {
|
|
204
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
205
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
206
|
+
const message = createBaseGetSchemasResponse();
|
|
234
207
|
while (reader.pos < end) {
|
|
235
|
-
|
|
208
|
+
const tag = reader.uint32();
|
|
236
209
|
switch (tag >>> 3) {
|
|
237
210
|
case 1:
|
|
211
|
+
if (tag !== 10) {
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
238
214
|
message.schemas.push(exports.Schema.decode(reader, reader.uint32()));
|
|
239
|
-
|
|
240
|
-
default:
|
|
241
|
-
reader.skipType(tag & 7);
|
|
242
|
-
break;
|
|
215
|
+
continue;
|
|
243
216
|
}
|
|
217
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
reader.skipType(tag & 7);
|
|
244
221
|
}
|
|
245
222
|
return message;
|
|
246
223
|
},
|
|
247
|
-
fromJSON
|
|
224
|
+
fromJSON(object) {
|
|
248
225
|
return {
|
|
249
|
-
schemas: Array.isArray(object === null || object === void 0 ? void 0 : object.schemas)
|
|
250
|
-
? object.schemas.map(function (e) { return exports.Schema.fromJSON(e); })
|
|
251
|
-
: [],
|
|
226
|
+
schemas: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.schemas) ? object.schemas.map((e) => exports.Schema.fromJSON(e)) : [],
|
|
252
227
|
};
|
|
253
228
|
},
|
|
254
|
-
toJSON
|
|
255
|
-
var
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
else {
|
|
260
|
-
obj.schemas = [];
|
|
229
|
+
toJSON(message) {
|
|
230
|
+
var _a;
|
|
231
|
+
const obj = {};
|
|
232
|
+
if ((_a = message.schemas) === null || _a === void 0 ? void 0 : _a.length) {
|
|
233
|
+
obj.schemas = message.schemas.map((e) => exports.Schema.toJSON(e));
|
|
261
234
|
}
|
|
262
235
|
return obj;
|
|
263
236
|
},
|
|
264
|
-
|
|
237
|
+
create(base) {
|
|
238
|
+
return exports.GetSchemasResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
239
|
+
},
|
|
240
|
+
fromPartial(object) {
|
|
265
241
|
var _a;
|
|
266
|
-
|
|
267
|
-
message.schemas = ((_a = object.schemas) === null || _a === void 0 ? void 0 : _a.map(
|
|
242
|
+
const message = createBaseGetSchemasResponse();
|
|
243
|
+
message.schemas = ((_a = object.schemas) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Schema.fromPartial(e))) || [];
|
|
268
244
|
return message;
|
|
269
245
|
},
|
|
270
246
|
};
|
|
271
247
|
function createBaseDropCollectionResponse() {
|
|
272
|
-
return { result:
|
|
248
|
+
return { result: "" };
|
|
273
249
|
}
|
|
274
250
|
exports.DropCollectionResponse = {
|
|
275
|
-
encode
|
|
276
|
-
if (
|
|
277
|
-
if (message.result !== '') {
|
|
251
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
252
|
+
if (message.result !== "") {
|
|
278
253
|
writer.uint32(10).string(message.result);
|
|
279
254
|
}
|
|
280
255
|
return writer;
|
|
281
256
|
},
|
|
282
|
-
decode
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
257
|
+
decode(input, length) {
|
|
258
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
259
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
260
|
+
const message = createBaseDropCollectionResponse();
|
|
286
261
|
while (reader.pos < end) {
|
|
287
|
-
|
|
262
|
+
const tag = reader.uint32();
|
|
288
263
|
switch (tag >>> 3) {
|
|
289
264
|
case 1:
|
|
265
|
+
if (tag !== 10) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
290
268
|
message.result = reader.string();
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
272
|
+
break;
|
|
295
273
|
}
|
|
274
|
+
reader.skipType(tag & 7);
|
|
296
275
|
}
|
|
297
276
|
return message;
|
|
298
277
|
},
|
|
299
|
-
fromJSON
|
|
300
|
-
return {
|
|
301
|
-
result: isSet(object.result) ? String(object.result) : '',
|
|
302
|
-
};
|
|
278
|
+
fromJSON(object) {
|
|
279
|
+
return { result: isSet(object.result) ? globalThis.String(object.result) : "" };
|
|
303
280
|
},
|
|
304
|
-
toJSON
|
|
305
|
-
|
|
306
|
-
message.result !==
|
|
281
|
+
toJSON(message) {
|
|
282
|
+
const obj = {};
|
|
283
|
+
if (message.result !== "") {
|
|
284
|
+
obj.result = message.result;
|
|
285
|
+
}
|
|
307
286
|
return obj;
|
|
308
287
|
},
|
|
309
|
-
|
|
288
|
+
create(base) {
|
|
289
|
+
return exports.DropCollectionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
290
|
+
},
|
|
291
|
+
fromPartial(object) {
|
|
310
292
|
var _a;
|
|
311
|
-
|
|
312
|
-
message.result = (_a = object.result) !== null && _a !== void 0 ? _a :
|
|
293
|
+
const message = createBaseDropCollectionResponse();
|
|
294
|
+
message.result = (_a = object.result) !== null && _a !== void 0 ? _a : "";
|
|
313
295
|
return message;
|
|
314
296
|
},
|
|
315
297
|
};
|
|
316
298
|
function createBaseSchema() {
|
|
317
|
-
return { name:
|
|
299
|
+
return { name: "", fields: "", modelOptions: "", collectionName: "", fieldHash: "" };
|
|
318
300
|
}
|
|
319
301
|
exports.Schema = {
|
|
320
|
-
encode
|
|
321
|
-
if (
|
|
322
|
-
if (message.name !== '') {
|
|
302
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
303
|
+
if (message.name !== "") {
|
|
323
304
|
writer.uint32(10).string(message.name);
|
|
324
305
|
}
|
|
325
|
-
if (message.fields !==
|
|
306
|
+
if (message.fields !== "") {
|
|
326
307
|
writer.uint32(18).string(message.fields);
|
|
327
308
|
}
|
|
328
|
-
if (message.modelOptions !==
|
|
309
|
+
if (message.modelOptions !== "") {
|
|
329
310
|
writer.uint32(26).string(message.modelOptions);
|
|
330
311
|
}
|
|
331
|
-
if (message.collectionName !==
|
|
312
|
+
if (message.collectionName !== "") {
|
|
332
313
|
writer.uint32(34).string(message.collectionName);
|
|
333
314
|
}
|
|
334
|
-
if (message.fieldHash !==
|
|
315
|
+
if (message.fieldHash !== "") {
|
|
335
316
|
writer.uint32(42).string(message.fieldHash);
|
|
336
317
|
}
|
|
337
318
|
return writer;
|
|
338
319
|
},
|
|
339
|
-
decode
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
320
|
+
decode(input, length) {
|
|
321
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
322
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
323
|
+
const message = createBaseSchema();
|
|
343
324
|
while (reader.pos < end) {
|
|
344
|
-
|
|
325
|
+
const tag = reader.uint32();
|
|
345
326
|
switch (tag >>> 3) {
|
|
346
327
|
case 1:
|
|
328
|
+
if (tag !== 10) {
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
347
331
|
message.name = reader.string();
|
|
348
|
-
|
|
332
|
+
continue;
|
|
349
333
|
case 2:
|
|
334
|
+
if (tag !== 18) {
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
350
337
|
message.fields = reader.string();
|
|
351
|
-
|
|
338
|
+
continue;
|
|
352
339
|
case 3:
|
|
340
|
+
if (tag !== 26) {
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
353
343
|
message.modelOptions = reader.string();
|
|
354
|
-
|
|
344
|
+
continue;
|
|
355
345
|
case 4:
|
|
346
|
+
if (tag !== 34) {
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
356
349
|
message.collectionName = reader.string();
|
|
357
|
-
|
|
350
|
+
continue;
|
|
358
351
|
case 5:
|
|
352
|
+
if (tag !== 42) {
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
359
355
|
message.fieldHash = reader.string();
|
|
360
|
-
|
|
361
|
-
default:
|
|
362
|
-
reader.skipType(tag & 7);
|
|
363
|
-
break;
|
|
356
|
+
continue;
|
|
364
357
|
}
|
|
358
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
reader.skipType(tag & 7);
|
|
365
362
|
}
|
|
366
363
|
return message;
|
|
367
364
|
},
|
|
368
|
-
fromJSON
|
|
365
|
+
fromJSON(object) {
|
|
369
366
|
return {
|
|
370
|
-
name: isSet(object.name) ? String(object.name) :
|
|
371
|
-
fields: isSet(object.fields) ? String(object.fields) :
|
|
372
|
-
modelOptions: isSet(object.modelOptions) ? String(object.modelOptions) :
|
|
373
|
-
collectionName: isSet(object.collectionName) ? String(object.collectionName) :
|
|
374
|
-
fieldHash: isSet(object.fieldHash) ? String(object.fieldHash) :
|
|
367
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
368
|
+
fields: isSet(object.fields) ? globalThis.String(object.fields) : "",
|
|
369
|
+
modelOptions: isSet(object.modelOptions) ? globalThis.String(object.modelOptions) : "",
|
|
370
|
+
collectionName: isSet(object.collectionName) ? globalThis.String(object.collectionName) : "",
|
|
371
|
+
fieldHash: isSet(object.fieldHash) ? globalThis.String(object.fieldHash) : "",
|
|
375
372
|
};
|
|
376
373
|
},
|
|
377
|
-
toJSON
|
|
378
|
-
|
|
379
|
-
message.name !==
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
message.
|
|
383
|
-
|
|
374
|
+
toJSON(message) {
|
|
375
|
+
const obj = {};
|
|
376
|
+
if (message.name !== "") {
|
|
377
|
+
obj.name = message.name;
|
|
378
|
+
}
|
|
379
|
+
if (message.fields !== "") {
|
|
380
|
+
obj.fields = message.fields;
|
|
381
|
+
}
|
|
382
|
+
if (message.modelOptions !== "") {
|
|
383
|
+
obj.modelOptions = message.modelOptions;
|
|
384
|
+
}
|
|
385
|
+
if (message.collectionName !== "") {
|
|
386
|
+
obj.collectionName = message.collectionName;
|
|
387
|
+
}
|
|
388
|
+
if (message.fieldHash !== "") {
|
|
389
|
+
obj.fieldHash = message.fieldHash;
|
|
390
|
+
}
|
|
384
391
|
return obj;
|
|
385
392
|
},
|
|
386
|
-
|
|
393
|
+
create(base) {
|
|
394
|
+
return exports.Schema.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
395
|
+
},
|
|
396
|
+
fromPartial(object) {
|
|
387
397
|
var _a, _b, _c, _d, _e;
|
|
388
|
-
|
|
389
|
-
message.name = (_a = object.name) !== null && _a !== void 0 ? _a :
|
|
390
|
-
message.fields = (_b = object.fields) !== null && _b !== void 0 ? _b :
|
|
391
|
-
message.modelOptions = (_c = object.modelOptions) !== null && _c !== void 0 ? _c :
|
|
392
|
-
message.collectionName = (_d = object.collectionName) !== null && _d !== void 0 ? _d :
|
|
393
|
-
message.fieldHash = (_e = object.fieldHash) !== null && _e !== void 0 ? _e :
|
|
398
|
+
const message = createBaseSchema();
|
|
399
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
400
|
+
message.fields = (_b = object.fields) !== null && _b !== void 0 ? _b : "";
|
|
401
|
+
message.modelOptions = (_c = object.modelOptions) !== null && _c !== void 0 ? _c : "";
|
|
402
|
+
message.collectionName = (_d = object.collectionName) !== null && _d !== void 0 ? _d : "";
|
|
403
|
+
message.fieldHash = (_e = object.fieldHash) !== null && _e !== void 0 ? _e : "";
|
|
394
404
|
return message;
|
|
395
405
|
},
|
|
396
406
|
};
|
|
397
407
|
function createBaseSchemaExtension() {
|
|
398
|
-
return { schemaName:
|
|
408
|
+
return { schemaName: "", fields: "" };
|
|
399
409
|
}
|
|
400
410
|
exports.SchemaExtension = {
|
|
401
|
-
encode
|
|
402
|
-
if (
|
|
403
|
-
if (message.schemaName !== '') {
|
|
411
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
412
|
+
if (message.schemaName !== "") {
|
|
404
413
|
writer.uint32(10).string(message.schemaName);
|
|
405
414
|
}
|
|
406
|
-
if (message.fields !==
|
|
415
|
+
if (message.fields !== "") {
|
|
407
416
|
writer.uint32(18).string(message.fields);
|
|
408
417
|
}
|
|
409
418
|
return writer;
|
|
410
419
|
},
|
|
411
|
-
decode
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
420
|
+
decode(input, length) {
|
|
421
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
422
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
423
|
+
const message = createBaseSchemaExtension();
|
|
415
424
|
while (reader.pos < end) {
|
|
416
|
-
|
|
425
|
+
const tag = reader.uint32();
|
|
417
426
|
switch (tag >>> 3) {
|
|
418
427
|
case 1:
|
|
428
|
+
if (tag !== 10) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
419
431
|
message.schemaName = reader.string();
|
|
420
|
-
|
|
432
|
+
continue;
|
|
421
433
|
case 2:
|
|
434
|
+
if (tag !== 18) {
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
422
437
|
message.fields = reader.string();
|
|
423
|
-
|
|
424
|
-
default:
|
|
425
|
-
reader.skipType(tag & 7);
|
|
426
|
-
break;
|
|
438
|
+
continue;
|
|
427
439
|
}
|
|
440
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
441
|
+
break;
|
|
442
|
+
}
|
|
443
|
+
reader.skipType(tag & 7);
|
|
428
444
|
}
|
|
429
445
|
return message;
|
|
430
446
|
},
|
|
431
|
-
fromJSON
|
|
447
|
+
fromJSON(object) {
|
|
432
448
|
return {
|
|
433
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) :
|
|
434
|
-
fields: isSet(object.fields) ? String(object.fields) :
|
|
449
|
+
schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "",
|
|
450
|
+
fields: isSet(object.fields) ? globalThis.String(object.fields) : "",
|
|
435
451
|
};
|
|
436
452
|
},
|
|
437
|
-
toJSON
|
|
438
|
-
|
|
439
|
-
message.schemaName !==
|
|
440
|
-
|
|
453
|
+
toJSON(message) {
|
|
454
|
+
const obj = {};
|
|
455
|
+
if (message.schemaName !== "") {
|
|
456
|
+
obj.schemaName = message.schemaName;
|
|
457
|
+
}
|
|
458
|
+
if (message.fields !== "") {
|
|
459
|
+
obj.fields = message.fields;
|
|
460
|
+
}
|
|
441
461
|
return obj;
|
|
442
462
|
},
|
|
443
|
-
|
|
463
|
+
create(base) {
|
|
464
|
+
return exports.SchemaExtension.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
465
|
+
},
|
|
466
|
+
fromPartial(object) {
|
|
444
467
|
var _a, _b;
|
|
445
|
-
|
|
446
|
-
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a :
|
|
447
|
-
message.fields = (_b = object.fields) !== null && _b !== void 0 ? _b :
|
|
468
|
+
const message = createBaseSchemaExtension();
|
|
469
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
470
|
+
message.fields = (_b = object.fields) !== null && _b !== void 0 ? _b : "";
|
|
448
471
|
return message;
|
|
449
472
|
},
|
|
450
473
|
};
|
|
451
474
|
function createBaseFindOneRequest() {
|
|
452
|
-
return { schemaName:
|
|
475
|
+
return { schemaName: "", query: "", select: undefined, populate: [], userId: undefined, scope: undefined };
|
|
453
476
|
}
|
|
454
477
|
exports.FindOneRequest = {
|
|
455
|
-
encode
|
|
456
|
-
|
|
457
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
458
|
-
if (message.schemaName !== '') {
|
|
478
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
479
|
+
if (message.schemaName !== "") {
|
|
459
480
|
writer.uint32(10).string(message.schemaName);
|
|
460
481
|
}
|
|
461
|
-
if (message.query !==
|
|
482
|
+
if (message.query !== "") {
|
|
462
483
|
writer.uint32(18).string(message.query);
|
|
463
484
|
}
|
|
464
485
|
if (message.select !== undefined) {
|
|
465
486
|
writer.uint32(26).string(message.select);
|
|
466
487
|
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
var v = _c.value;
|
|
470
|
-
writer.uint32(34).string(v);
|
|
471
|
-
}
|
|
488
|
+
for (const v of message.populate) {
|
|
489
|
+
writer.uint32(34).string(v);
|
|
472
490
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
finally { if (e_2) throw e_2.error; }
|
|
491
|
+
if (message.userId !== undefined) {
|
|
492
|
+
writer.uint32(42).string(message.userId);
|
|
493
|
+
}
|
|
494
|
+
if (message.scope !== undefined) {
|
|
495
|
+
writer.uint32(50).string(message.scope);
|
|
479
496
|
}
|
|
480
497
|
return writer;
|
|
481
498
|
},
|
|
482
|
-
decode
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
499
|
+
decode(input, length) {
|
|
500
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
501
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
502
|
+
const message = createBaseFindOneRequest();
|
|
486
503
|
while (reader.pos < end) {
|
|
487
|
-
|
|
504
|
+
const tag = reader.uint32();
|
|
488
505
|
switch (tag >>> 3) {
|
|
489
506
|
case 1:
|
|
507
|
+
if (tag !== 10) {
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
490
510
|
message.schemaName = reader.string();
|
|
491
|
-
|
|
511
|
+
continue;
|
|
492
512
|
case 2:
|
|
513
|
+
if (tag !== 18) {
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
493
516
|
message.query = reader.string();
|
|
494
|
-
|
|
517
|
+
continue;
|
|
495
518
|
case 3:
|
|
519
|
+
if (tag !== 26) {
|
|
520
|
+
break;
|
|
521
|
+
}
|
|
496
522
|
message.select = reader.string();
|
|
497
|
-
|
|
523
|
+
continue;
|
|
498
524
|
case 4:
|
|
525
|
+
if (tag !== 34) {
|
|
526
|
+
break;
|
|
527
|
+
}
|
|
499
528
|
message.populate.push(reader.string());
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
529
|
+
continue;
|
|
530
|
+
case 5:
|
|
531
|
+
if (tag !== 42) {
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
message.userId = reader.string();
|
|
535
|
+
continue;
|
|
536
|
+
case 6:
|
|
537
|
+
if (tag !== 50) {
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
message.scope = reader.string();
|
|
541
|
+
continue;
|
|
504
542
|
}
|
|
543
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
reader.skipType(tag & 7);
|
|
505
547
|
}
|
|
506
548
|
return message;
|
|
507
549
|
},
|
|
508
|
-
fromJSON
|
|
550
|
+
fromJSON(object) {
|
|
509
551
|
return {
|
|
510
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) :
|
|
511
|
-
query: isSet(object.query) ? String(object.query) :
|
|
512
|
-
select: isSet(object.select) ? String(object.select) : undefined,
|
|
513
|
-
populate: Array.isArray(object === null || object === void 0 ? void 0 : object.populate)
|
|
514
|
-
|
|
515
|
-
|
|
552
|
+
schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "",
|
|
553
|
+
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
554
|
+
select: isSet(object.select) ? globalThis.String(object.select) : undefined,
|
|
555
|
+
populate: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.populate) ? object.populate.map((e) => globalThis.String(e)) : [],
|
|
556
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : undefined,
|
|
557
|
+
scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
|
|
516
558
|
};
|
|
517
559
|
},
|
|
518
|
-
toJSON
|
|
519
|
-
var
|
|
520
|
-
|
|
521
|
-
message.
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
560
|
+
toJSON(message) {
|
|
561
|
+
var _a;
|
|
562
|
+
const obj = {};
|
|
563
|
+
if (message.schemaName !== "") {
|
|
564
|
+
obj.schemaName = message.schemaName;
|
|
565
|
+
}
|
|
566
|
+
if (message.query !== "") {
|
|
567
|
+
obj.query = message.query;
|
|
525
568
|
}
|
|
526
|
-
|
|
527
|
-
obj.
|
|
569
|
+
if (message.select !== undefined) {
|
|
570
|
+
obj.select = message.select;
|
|
571
|
+
}
|
|
572
|
+
if ((_a = message.populate) === null || _a === void 0 ? void 0 : _a.length) {
|
|
573
|
+
obj.populate = message.populate;
|
|
574
|
+
}
|
|
575
|
+
if (message.userId !== undefined) {
|
|
576
|
+
obj.userId = message.userId;
|
|
577
|
+
}
|
|
578
|
+
if (message.scope !== undefined) {
|
|
579
|
+
obj.scope = message.scope;
|
|
528
580
|
}
|
|
529
581
|
return obj;
|
|
530
582
|
},
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
583
|
+
create(base) {
|
|
584
|
+
return exports.FindOneRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
585
|
+
},
|
|
586
|
+
fromPartial(object) {
|
|
587
|
+
var _a, _b, _c, _d, _e, _f;
|
|
588
|
+
const message = createBaseFindOneRequest();
|
|
589
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
590
|
+
message.query = (_b = object.query) !== null && _b !== void 0 ? _b : "";
|
|
536
591
|
message.select = (_c = object.select) !== null && _c !== void 0 ? _c : undefined;
|
|
537
|
-
message.populate = ((_d = object.populate) === null || _d === void 0 ? void 0 : _d.map(
|
|
592
|
+
message.populate = ((_d = object.populate) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
593
|
+
message.userId = (_e = object.userId) !== null && _e !== void 0 ? _e : undefined;
|
|
594
|
+
message.scope = (_f = object.scope) !== null && _f !== void 0 ? _f : undefined;
|
|
538
595
|
return message;
|
|
539
596
|
},
|
|
540
597
|
};
|
|
541
598
|
function createBaseFindRequest() {
|
|
542
599
|
return {
|
|
543
|
-
schemaName:
|
|
544
|
-
query:
|
|
600
|
+
schemaName: "",
|
|
601
|
+
query: "",
|
|
545
602
|
select: undefined,
|
|
546
603
|
skip: undefined,
|
|
547
604
|
limit: undefined,
|
|
548
605
|
sort: {},
|
|
549
606
|
populate: [],
|
|
607
|
+
userId: undefined,
|
|
608
|
+
scope: undefined,
|
|
550
609
|
};
|
|
551
610
|
}
|
|
552
611
|
exports.FindRequest = {
|
|
553
|
-
encode
|
|
554
|
-
|
|
555
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
556
|
-
if (message.schemaName !== '') {
|
|
612
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
613
|
+
if (message.schemaName !== "") {
|
|
557
614
|
writer.uint32(10).string(message.schemaName);
|
|
558
615
|
}
|
|
559
|
-
if (message.query !==
|
|
616
|
+
if (message.query !== "") {
|
|
560
617
|
writer.uint32(18).string(message.query);
|
|
561
618
|
}
|
|
562
619
|
if (message.select !== undefined) {
|
|
@@ -568,130 +625,177 @@ exports.FindRequest = {
|
|
|
568
625
|
if (message.limit !== undefined) {
|
|
569
626
|
writer.uint32(40).int32(message.limit);
|
|
570
627
|
}
|
|
571
|
-
Object.entries(message.sort).forEach(
|
|
572
|
-
|
|
573
|
-
exports.FindRequest_SortEntry.encode({ key: key, value: value }, writer.uint32(50).fork()).ldelim();
|
|
628
|
+
Object.entries(message.sort).forEach(([key, value]) => {
|
|
629
|
+
exports.FindRequest_SortEntry.encode({ key: key, value }, writer.uint32(50).fork()).ldelim();
|
|
574
630
|
});
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
var v = _c.value;
|
|
578
|
-
writer.uint32(58).string(v);
|
|
579
|
-
}
|
|
631
|
+
for (const v of message.populate) {
|
|
632
|
+
writer.uint32(58).string(v);
|
|
580
633
|
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
finally { if (e_3) throw e_3.error; }
|
|
634
|
+
if (message.userId !== undefined) {
|
|
635
|
+
writer.uint32(66).string(message.userId);
|
|
636
|
+
}
|
|
637
|
+
if (message.scope !== undefined) {
|
|
638
|
+
writer.uint32(74).string(message.scope);
|
|
587
639
|
}
|
|
588
640
|
return writer;
|
|
589
641
|
},
|
|
590
|
-
decode
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
642
|
+
decode(input, length) {
|
|
643
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
644
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
645
|
+
const message = createBaseFindRequest();
|
|
594
646
|
while (reader.pos < end) {
|
|
595
|
-
|
|
647
|
+
const tag = reader.uint32();
|
|
596
648
|
switch (tag >>> 3) {
|
|
597
649
|
case 1:
|
|
650
|
+
if (tag !== 10) {
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
598
653
|
message.schemaName = reader.string();
|
|
599
|
-
|
|
654
|
+
continue;
|
|
600
655
|
case 2:
|
|
656
|
+
if (tag !== 18) {
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
601
659
|
message.query = reader.string();
|
|
602
|
-
|
|
660
|
+
continue;
|
|
603
661
|
case 3:
|
|
662
|
+
if (tag !== 26) {
|
|
663
|
+
break;
|
|
664
|
+
}
|
|
604
665
|
message.select = reader.string();
|
|
605
|
-
|
|
666
|
+
continue;
|
|
606
667
|
case 4:
|
|
668
|
+
if (tag !== 32) {
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
607
671
|
message.skip = reader.int32();
|
|
608
|
-
|
|
672
|
+
continue;
|
|
609
673
|
case 5:
|
|
674
|
+
if (tag !== 40) {
|
|
675
|
+
break;
|
|
676
|
+
}
|
|
610
677
|
message.limit = reader.int32();
|
|
611
|
-
|
|
678
|
+
continue;
|
|
612
679
|
case 6:
|
|
613
|
-
|
|
680
|
+
if (tag !== 50) {
|
|
681
|
+
break;
|
|
682
|
+
}
|
|
683
|
+
const entry6 = exports.FindRequest_SortEntry.decode(reader, reader.uint32());
|
|
614
684
|
if (entry6.value !== undefined) {
|
|
615
685
|
message.sort[entry6.key] = entry6.value;
|
|
616
686
|
}
|
|
617
|
-
|
|
687
|
+
continue;
|
|
618
688
|
case 7:
|
|
689
|
+
if (tag !== 58) {
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
619
692
|
message.populate.push(reader.string());
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
693
|
+
continue;
|
|
694
|
+
case 8:
|
|
695
|
+
if (tag !== 66) {
|
|
696
|
+
break;
|
|
697
|
+
}
|
|
698
|
+
message.userId = reader.string();
|
|
699
|
+
continue;
|
|
700
|
+
case 9:
|
|
701
|
+
if (tag !== 74) {
|
|
702
|
+
break;
|
|
703
|
+
}
|
|
704
|
+
message.scope = reader.string();
|
|
705
|
+
continue;
|
|
624
706
|
}
|
|
707
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
reader.skipType(tag & 7);
|
|
625
711
|
}
|
|
626
712
|
return message;
|
|
627
713
|
},
|
|
628
|
-
fromJSON
|
|
714
|
+
fromJSON(object) {
|
|
629
715
|
return {
|
|
630
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) :
|
|
631
|
-
query: isSet(object.query) ? String(object.query) :
|
|
632
|
-
select: isSet(object.select) ? String(object.select) : undefined,
|
|
633
|
-
skip: isSet(object.skip) ? Number(object.skip) : undefined,
|
|
634
|
-
limit: isSet(object.limit) ? Number(object.limit) : undefined,
|
|
716
|
+
schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "",
|
|
717
|
+
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
718
|
+
select: isSet(object.select) ? globalThis.String(object.select) : undefined,
|
|
719
|
+
skip: isSet(object.skip) ? globalThis.Number(object.skip) : undefined,
|
|
720
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : undefined,
|
|
635
721
|
sort: isObject(object.sort)
|
|
636
|
-
? Object.entries(object.sort).reduce(
|
|
637
|
-
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
722
|
+
? Object.entries(object.sort).reduce((acc, [key, value]) => {
|
|
638
723
|
acc[key] = Number(value);
|
|
639
724
|
return acc;
|
|
640
725
|
}, {})
|
|
641
726
|
: {},
|
|
642
|
-
populate: Array.isArray(object === null || object === void 0 ? void 0 : object.populate)
|
|
643
|
-
|
|
644
|
-
|
|
727
|
+
populate: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.populate) ? object.populate.map((e) => globalThis.String(e)) : [],
|
|
728
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : undefined,
|
|
729
|
+
scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
|
|
645
730
|
};
|
|
646
731
|
},
|
|
647
|
-
toJSON
|
|
648
|
-
var
|
|
649
|
-
|
|
650
|
-
message.
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
message.
|
|
654
|
-
|
|
732
|
+
toJSON(message) {
|
|
733
|
+
var _a;
|
|
734
|
+
const obj = {};
|
|
735
|
+
if (message.schemaName !== "") {
|
|
736
|
+
obj.schemaName = message.schemaName;
|
|
737
|
+
}
|
|
738
|
+
if (message.query !== "") {
|
|
739
|
+
obj.query = message.query;
|
|
740
|
+
}
|
|
741
|
+
if (message.select !== undefined) {
|
|
742
|
+
obj.select = message.select;
|
|
743
|
+
}
|
|
744
|
+
if (message.skip !== undefined) {
|
|
745
|
+
obj.skip = Math.round(message.skip);
|
|
746
|
+
}
|
|
747
|
+
if (message.limit !== undefined) {
|
|
748
|
+
obj.limit = Math.round(message.limit);
|
|
749
|
+
}
|
|
655
750
|
if (message.sort) {
|
|
656
|
-
Object.entries(message.sort)
|
|
657
|
-
|
|
658
|
-
obj.sort
|
|
659
|
-
|
|
751
|
+
const entries = Object.entries(message.sort);
|
|
752
|
+
if (entries.length > 0) {
|
|
753
|
+
obj.sort = {};
|
|
754
|
+
entries.forEach(([k, v]) => {
|
|
755
|
+
obj.sort[k] = Math.round(v);
|
|
756
|
+
});
|
|
757
|
+
}
|
|
660
758
|
}
|
|
661
|
-
if (message.populate) {
|
|
662
|
-
obj.populate = message.populate
|
|
759
|
+
if ((_a = message.populate) === null || _a === void 0 ? void 0 : _a.length) {
|
|
760
|
+
obj.populate = message.populate;
|
|
663
761
|
}
|
|
664
|
-
|
|
665
|
-
obj.
|
|
762
|
+
if (message.userId !== undefined) {
|
|
763
|
+
obj.userId = message.userId;
|
|
764
|
+
}
|
|
765
|
+
if (message.scope !== undefined) {
|
|
766
|
+
obj.scope = message.scope;
|
|
666
767
|
}
|
|
667
768
|
return obj;
|
|
668
769
|
},
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
770
|
+
create(base) {
|
|
771
|
+
return exports.FindRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
772
|
+
},
|
|
773
|
+
fromPartial(object) {
|
|
774
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
775
|
+
const message = createBaseFindRequest();
|
|
776
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
777
|
+
message.query = (_b = object.query) !== null && _b !== void 0 ? _b : "";
|
|
674
778
|
message.select = (_c = object.select) !== null && _c !== void 0 ? _c : undefined;
|
|
675
779
|
message.skip = (_d = object.skip) !== null && _d !== void 0 ? _d : undefined;
|
|
676
780
|
message.limit = (_e = object.limit) !== null && _e !== void 0 ? _e : undefined;
|
|
677
|
-
message.sort = Object.entries((_f = object.sort) !== null && _f !== void 0 ? _f : {}).reduce(
|
|
678
|
-
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
781
|
+
message.sort = Object.entries((_f = object.sort) !== null && _f !== void 0 ? _f : {}).reduce((acc, [key, value]) => {
|
|
679
782
|
if (value !== undefined) {
|
|
680
|
-
acc[key] = Number(value);
|
|
783
|
+
acc[key] = globalThis.Number(value);
|
|
681
784
|
}
|
|
682
785
|
return acc;
|
|
683
786
|
}, {});
|
|
684
|
-
message.populate = ((_g = object.populate) === null || _g === void 0 ? void 0 : _g.map(
|
|
787
|
+
message.populate = ((_g = object.populate) === null || _g === void 0 ? void 0 : _g.map((e) => e)) || [];
|
|
788
|
+
message.userId = (_h = object.userId) !== null && _h !== void 0 ? _h : undefined;
|
|
789
|
+
message.scope = (_j = object.scope) !== null && _j !== void 0 ? _j : undefined;
|
|
685
790
|
return message;
|
|
686
791
|
},
|
|
687
792
|
};
|
|
688
793
|
function createBaseFindRequest_SortEntry() {
|
|
689
|
-
return { key:
|
|
794
|
+
return { key: "", value: 0 };
|
|
690
795
|
}
|
|
691
796
|
exports.FindRequest_SortEntry = {
|
|
692
|
-
encode
|
|
693
|
-
if (
|
|
694
|
-
if (message.key !== '') {
|
|
797
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
798
|
+
if (message.key !== "") {
|
|
695
799
|
writer.uint32(10).string(message.key);
|
|
696
800
|
}
|
|
697
801
|
if (message.value !== 0) {
|
|
@@ -699,152 +803,212 @@ exports.FindRequest_SortEntry = {
|
|
|
699
803
|
}
|
|
700
804
|
return writer;
|
|
701
805
|
},
|
|
702
|
-
decode
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
806
|
+
decode(input, length) {
|
|
807
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
808
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
809
|
+
const message = createBaseFindRequest_SortEntry();
|
|
706
810
|
while (reader.pos < end) {
|
|
707
|
-
|
|
811
|
+
const tag = reader.uint32();
|
|
708
812
|
switch (tag >>> 3) {
|
|
709
813
|
case 1:
|
|
814
|
+
if (tag !== 10) {
|
|
815
|
+
break;
|
|
816
|
+
}
|
|
710
817
|
message.key = reader.string();
|
|
711
|
-
|
|
818
|
+
continue;
|
|
712
819
|
case 2:
|
|
820
|
+
if (tag !== 16) {
|
|
821
|
+
break;
|
|
822
|
+
}
|
|
713
823
|
message.value = reader.int32();
|
|
714
|
-
|
|
715
|
-
default:
|
|
716
|
-
reader.skipType(tag & 7);
|
|
717
|
-
break;
|
|
824
|
+
continue;
|
|
718
825
|
}
|
|
826
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
827
|
+
break;
|
|
828
|
+
}
|
|
829
|
+
reader.skipType(tag & 7);
|
|
719
830
|
}
|
|
720
831
|
return message;
|
|
721
832
|
},
|
|
722
|
-
fromJSON
|
|
833
|
+
fromJSON(object) {
|
|
723
834
|
return {
|
|
724
|
-
key: isSet(object.key) ? String(object.key) :
|
|
725
|
-
value: isSet(object.value) ? Number(object.value) : 0,
|
|
835
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
836
|
+
value: isSet(object.value) ? globalThis.Number(object.value) : 0,
|
|
726
837
|
};
|
|
727
838
|
},
|
|
728
|
-
toJSON
|
|
729
|
-
|
|
730
|
-
message.key !==
|
|
731
|
-
|
|
839
|
+
toJSON(message) {
|
|
840
|
+
const obj = {};
|
|
841
|
+
if (message.key !== "") {
|
|
842
|
+
obj.key = message.key;
|
|
843
|
+
}
|
|
844
|
+
if (message.value !== 0) {
|
|
845
|
+
obj.value = Math.round(message.value);
|
|
846
|
+
}
|
|
732
847
|
return obj;
|
|
733
848
|
},
|
|
734
|
-
|
|
849
|
+
create(base) {
|
|
850
|
+
return exports.FindRequest_SortEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
851
|
+
},
|
|
852
|
+
fromPartial(object) {
|
|
735
853
|
var _a, _b;
|
|
736
|
-
|
|
737
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a :
|
|
854
|
+
const message = createBaseFindRequest_SortEntry();
|
|
855
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
738
856
|
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : 0;
|
|
739
857
|
return message;
|
|
740
858
|
},
|
|
741
859
|
};
|
|
742
860
|
function createBaseQueryResponse() {
|
|
743
|
-
return { result:
|
|
861
|
+
return { result: "" };
|
|
744
862
|
}
|
|
745
863
|
exports.QueryResponse = {
|
|
746
|
-
encode
|
|
747
|
-
if (
|
|
748
|
-
if (message.result !== '') {
|
|
864
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
865
|
+
if (message.result !== "") {
|
|
749
866
|
writer.uint32(10).string(message.result);
|
|
750
867
|
}
|
|
751
868
|
return writer;
|
|
752
869
|
},
|
|
753
|
-
decode
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
870
|
+
decode(input, length) {
|
|
871
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
872
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
873
|
+
const message = createBaseQueryResponse();
|
|
757
874
|
while (reader.pos < end) {
|
|
758
|
-
|
|
875
|
+
const tag = reader.uint32();
|
|
759
876
|
switch (tag >>> 3) {
|
|
760
877
|
case 1:
|
|
878
|
+
if (tag !== 10) {
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
761
881
|
message.result = reader.string();
|
|
762
|
-
|
|
763
|
-
default:
|
|
764
|
-
reader.skipType(tag & 7);
|
|
765
|
-
break;
|
|
882
|
+
continue;
|
|
766
883
|
}
|
|
884
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
885
|
+
break;
|
|
886
|
+
}
|
|
887
|
+
reader.skipType(tag & 7);
|
|
767
888
|
}
|
|
768
889
|
return message;
|
|
769
890
|
},
|
|
770
|
-
fromJSON
|
|
771
|
-
return {
|
|
772
|
-
result: isSet(object.result) ? String(object.result) : '',
|
|
773
|
-
};
|
|
891
|
+
fromJSON(object) {
|
|
892
|
+
return { result: isSet(object.result) ? globalThis.String(object.result) : "" };
|
|
774
893
|
},
|
|
775
|
-
toJSON
|
|
776
|
-
|
|
777
|
-
message.result !==
|
|
894
|
+
toJSON(message) {
|
|
895
|
+
const obj = {};
|
|
896
|
+
if (message.result !== "") {
|
|
897
|
+
obj.result = message.result;
|
|
898
|
+
}
|
|
778
899
|
return obj;
|
|
779
900
|
},
|
|
780
|
-
|
|
901
|
+
create(base) {
|
|
902
|
+
return exports.QueryResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
903
|
+
},
|
|
904
|
+
fromPartial(object) {
|
|
781
905
|
var _a;
|
|
782
|
-
|
|
783
|
-
message.result = (_a = object.result) !== null && _a !== void 0 ? _a :
|
|
906
|
+
const message = createBaseQueryResponse();
|
|
907
|
+
message.result = (_a = object.result) !== null && _a !== void 0 ? _a : "";
|
|
784
908
|
return message;
|
|
785
909
|
},
|
|
786
910
|
};
|
|
787
911
|
function createBaseQueryRequest() {
|
|
788
|
-
return { schemaName:
|
|
912
|
+
return { schemaName: "", query: "", userId: undefined, scope: undefined };
|
|
789
913
|
}
|
|
790
914
|
exports.QueryRequest = {
|
|
791
|
-
encode
|
|
792
|
-
if (
|
|
793
|
-
if (message.schemaName !== '') {
|
|
915
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
916
|
+
if (message.schemaName !== "") {
|
|
794
917
|
writer.uint32(10).string(message.schemaName);
|
|
795
918
|
}
|
|
796
|
-
if (message.query !==
|
|
919
|
+
if (message.query !== "") {
|
|
797
920
|
writer.uint32(18).string(message.query);
|
|
798
921
|
}
|
|
922
|
+
if (message.userId !== undefined) {
|
|
923
|
+
writer.uint32(26).string(message.userId);
|
|
924
|
+
}
|
|
925
|
+
if (message.scope !== undefined) {
|
|
926
|
+
writer.uint32(34).string(message.scope);
|
|
927
|
+
}
|
|
799
928
|
return writer;
|
|
800
929
|
},
|
|
801
|
-
decode
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
930
|
+
decode(input, length) {
|
|
931
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
932
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
933
|
+
const message = createBaseQueryRequest();
|
|
805
934
|
while (reader.pos < end) {
|
|
806
|
-
|
|
935
|
+
const tag = reader.uint32();
|
|
807
936
|
switch (tag >>> 3) {
|
|
808
937
|
case 1:
|
|
938
|
+
if (tag !== 10) {
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
809
941
|
message.schemaName = reader.string();
|
|
810
|
-
|
|
942
|
+
continue;
|
|
811
943
|
case 2:
|
|
944
|
+
if (tag !== 18) {
|
|
945
|
+
break;
|
|
946
|
+
}
|
|
812
947
|
message.query = reader.string();
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
948
|
+
continue;
|
|
949
|
+
case 3:
|
|
950
|
+
if (tag !== 26) {
|
|
951
|
+
break;
|
|
952
|
+
}
|
|
953
|
+
message.userId = reader.string();
|
|
954
|
+
continue;
|
|
955
|
+
case 4:
|
|
956
|
+
if (tag !== 34) {
|
|
957
|
+
break;
|
|
958
|
+
}
|
|
959
|
+
message.scope = reader.string();
|
|
960
|
+
continue;
|
|
817
961
|
}
|
|
962
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
965
|
+
reader.skipType(tag & 7);
|
|
818
966
|
}
|
|
819
967
|
return message;
|
|
820
968
|
},
|
|
821
|
-
fromJSON
|
|
969
|
+
fromJSON(object) {
|
|
822
970
|
return {
|
|
823
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) :
|
|
824
|
-
query: isSet(object.query) ? String(object.query) :
|
|
971
|
+
schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "",
|
|
972
|
+
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
973
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : undefined,
|
|
974
|
+
scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
|
|
825
975
|
};
|
|
826
976
|
},
|
|
827
|
-
toJSON
|
|
828
|
-
|
|
829
|
-
message.schemaName !==
|
|
830
|
-
|
|
977
|
+
toJSON(message) {
|
|
978
|
+
const obj = {};
|
|
979
|
+
if (message.schemaName !== "") {
|
|
980
|
+
obj.schemaName = message.schemaName;
|
|
981
|
+
}
|
|
982
|
+
if (message.query !== "") {
|
|
983
|
+
obj.query = message.query;
|
|
984
|
+
}
|
|
985
|
+
if (message.userId !== undefined) {
|
|
986
|
+
obj.userId = message.userId;
|
|
987
|
+
}
|
|
988
|
+
if (message.scope !== undefined) {
|
|
989
|
+
obj.scope = message.scope;
|
|
990
|
+
}
|
|
831
991
|
return obj;
|
|
832
992
|
},
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
993
|
+
create(base) {
|
|
994
|
+
return exports.QueryRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
995
|
+
},
|
|
996
|
+
fromPartial(object) {
|
|
997
|
+
var _a, _b, _c, _d;
|
|
998
|
+
const message = createBaseQueryRequest();
|
|
999
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
1000
|
+
message.query = (_b = object.query) !== null && _b !== void 0 ? _b : "";
|
|
1001
|
+
message.userId = (_c = object.userId) !== null && _c !== void 0 ? _c : undefined;
|
|
1002
|
+
message.scope = (_d = object.scope) !== null && _d !== void 0 ? _d : undefined;
|
|
838
1003
|
return message;
|
|
839
1004
|
},
|
|
840
1005
|
};
|
|
841
1006
|
function createBaseRawQueryRequest() {
|
|
842
|
-
return { schemaName:
|
|
1007
|
+
return { schemaName: "", query: undefined };
|
|
843
1008
|
}
|
|
844
1009
|
exports.RawQueryRequest = {
|
|
845
|
-
encode
|
|
846
|
-
if (
|
|
847
|
-
if (message.schemaName !== '') {
|
|
1010
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1011
|
+
if (message.schemaName !== "") {
|
|
848
1012
|
writer.uint32(10).string(message.schemaName);
|
|
849
1013
|
}
|
|
850
1014
|
if (message.query !== undefined) {
|
|
@@ -852,51 +1016,59 @@ exports.RawQueryRequest = {
|
|
|
852
1016
|
}
|
|
853
1017
|
return writer;
|
|
854
1018
|
},
|
|
855
|
-
decode
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
1019
|
+
decode(input, length) {
|
|
1020
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1021
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1022
|
+
const message = createBaseRawQueryRequest();
|
|
859
1023
|
while (reader.pos < end) {
|
|
860
|
-
|
|
1024
|
+
const tag = reader.uint32();
|
|
861
1025
|
switch (tag >>> 3) {
|
|
862
1026
|
case 1:
|
|
1027
|
+
if (tag !== 10) {
|
|
1028
|
+
break;
|
|
1029
|
+
}
|
|
863
1030
|
message.schemaName = reader.string();
|
|
864
|
-
|
|
1031
|
+
continue;
|
|
865
1032
|
case 2:
|
|
1033
|
+
if (tag !== 18) {
|
|
1034
|
+
break;
|
|
1035
|
+
}
|
|
866
1036
|
message.query = exports.RawQueryRequest_RawQuery.decode(reader, reader.uint32());
|
|
867
|
-
|
|
868
|
-
default:
|
|
869
|
-
reader.skipType(tag & 7);
|
|
870
|
-
break;
|
|
1037
|
+
continue;
|
|
871
1038
|
}
|
|
1039
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1040
|
+
break;
|
|
1041
|
+
}
|
|
1042
|
+
reader.skipType(tag & 7);
|
|
872
1043
|
}
|
|
873
1044
|
return message;
|
|
874
1045
|
},
|
|
875
|
-
fromJSON
|
|
1046
|
+
fromJSON(object) {
|
|
876
1047
|
return {
|
|
877
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) :
|
|
878
|
-
query: isSet(object.query)
|
|
879
|
-
? exports.RawQueryRequest_RawQuery.fromJSON(object.query)
|
|
880
|
-
: undefined,
|
|
1048
|
+
schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "",
|
|
1049
|
+
query: isSet(object.query) ? exports.RawQueryRequest_RawQuery.fromJSON(object.query) : undefined,
|
|
881
1050
|
};
|
|
882
1051
|
},
|
|
883
|
-
toJSON
|
|
884
|
-
|
|
885
|
-
message.schemaName !==
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
1052
|
+
toJSON(message) {
|
|
1053
|
+
const obj = {};
|
|
1054
|
+
if (message.schemaName !== "") {
|
|
1055
|
+
obj.schemaName = message.schemaName;
|
|
1056
|
+
}
|
|
1057
|
+
if (message.query !== undefined) {
|
|
1058
|
+
obj.query = exports.RawQueryRequest_RawQuery.toJSON(message.query);
|
|
1059
|
+
}
|
|
890
1060
|
return obj;
|
|
891
1061
|
},
|
|
892
|
-
|
|
1062
|
+
create(base) {
|
|
1063
|
+
return exports.RawQueryRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1064
|
+
},
|
|
1065
|
+
fromPartial(object) {
|
|
893
1066
|
var _a;
|
|
894
|
-
|
|
895
|
-
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a :
|
|
896
|
-
message.query =
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
: undefined;
|
|
1067
|
+
const message = createBaseRawQueryRequest();
|
|
1068
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
1069
|
+
message.query = (object.query !== undefined && object.query !== null)
|
|
1070
|
+
? exports.RawQueryRequest_RawQuery.fromPartial(object.query)
|
|
1071
|
+
: undefined;
|
|
900
1072
|
return message;
|
|
901
1073
|
},
|
|
902
1074
|
};
|
|
@@ -904,8 +1076,7 @@ function createBaseRawQueryRequest_RawQuery() {
|
|
|
904
1076
|
return { mongoQuery: undefined, sqlQuery: undefined };
|
|
905
1077
|
}
|
|
906
1078
|
exports.RawQueryRequest_RawQuery = {
|
|
907
|
-
encode
|
|
908
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
1079
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
909
1080
|
if (message.mongoQuery !== undefined) {
|
|
910
1081
|
exports.RawQueryRequest_RawQuery_MongoQuery.encode(message.mongoQuery, writer.uint32(10).fork()).ldelim();
|
|
911
1082
|
}
|
|
@@ -914,58 +1085,62 @@ exports.RawQueryRequest_RawQuery = {
|
|
|
914
1085
|
}
|
|
915
1086
|
return writer;
|
|
916
1087
|
},
|
|
917
|
-
decode
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
1088
|
+
decode(input, length) {
|
|
1089
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1090
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1091
|
+
const message = createBaseRawQueryRequest_RawQuery();
|
|
921
1092
|
while (reader.pos < end) {
|
|
922
|
-
|
|
1093
|
+
const tag = reader.uint32();
|
|
923
1094
|
switch (tag >>> 3) {
|
|
924
1095
|
case 1:
|
|
1096
|
+
if (tag !== 10) {
|
|
1097
|
+
break;
|
|
1098
|
+
}
|
|
925
1099
|
message.mongoQuery = exports.RawQueryRequest_RawQuery_MongoQuery.decode(reader, reader.uint32());
|
|
926
|
-
|
|
1100
|
+
continue;
|
|
927
1101
|
case 2:
|
|
1102
|
+
if (tag !== 18) {
|
|
1103
|
+
break;
|
|
1104
|
+
}
|
|
928
1105
|
message.sqlQuery = exports.RawQueryRequest_RawQuery_SQLQuery.decode(reader, reader.uint32());
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
1106
|
+
continue;
|
|
1107
|
+
}
|
|
1108
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1109
|
+
break;
|
|
933
1110
|
}
|
|
1111
|
+
reader.skipType(tag & 7);
|
|
934
1112
|
}
|
|
935
1113
|
return message;
|
|
936
1114
|
},
|
|
937
|
-
fromJSON
|
|
1115
|
+
fromJSON(object) {
|
|
938
1116
|
return {
|
|
939
1117
|
mongoQuery: isSet(object.mongoQuery)
|
|
940
1118
|
? exports.RawQueryRequest_RawQuery_MongoQuery.fromJSON(object.mongoQuery)
|
|
941
1119
|
: undefined,
|
|
942
|
-
sqlQuery: isSet(object.sqlQuery)
|
|
943
|
-
? exports.RawQueryRequest_RawQuery_SQLQuery.fromJSON(object.sqlQuery)
|
|
944
|
-
: undefined,
|
|
1120
|
+
sqlQuery: isSet(object.sqlQuery) ? exports.RawQueryRequest_RawQuery_SQLQuery.fromJSON(object.sqlQuery) : undefined,
|
|
945
1121
|
};
|
|
946
1122
|
},
|
|
947
|
-
toJSON
|
|
948
|
-
|
|
949
|
-
message.mongoQuery !== undefined
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
? exports.RawQueryRequest_RawQuery_SQLQuery.toJSON(message.sqlQuery)
|
|
956
|
-
: undefined);
|
|
1123
|
+
toJSON(message) {
|
|
1124
|
+
const obj = {};
|
|
1125
|
+
if (message.mongoQuery !== undefined) {
|
|
1126
|
+
obj.mongoQuery = exports.RawQueryRequest_RawQuery_MongoQuery.toJSON(message.mongoQuery);
|
|
1127
|
+
}
|
|
1128
|
+
if (message.sqlQuery !== undefined) {
|
|
1129
|
+
obj.sqlQuery = exports.RawQueryRequest_RawQuery_SQLQuery.toJSON(message.sqlQuery);
|
|
1130
|
+
}
|
|
957
1131
|
return obj;
|
|
958
1132
|
},
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
1133
|
+
create(base) {
|
|
1134
|
+
return exports.RawQueryRequest_RawQuery.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1135
|
+
},
|
|
1136
|
+
fromPartial(object) {
|
|
1137
|
+
const message = createBaseRawQueryRequest_RawQuery();
|
|
1138
|
+
message.mongoQuery = (object.mongoQuery !== undefined && object.mongoQuery !== null)
|
|
1139
|
+
? exports.RawQueryRequest_RawQuery_MongoQuery.fromPartial(object.mongoQuery)
|
|
1140
|
+
: undefined;
|
|
1141
|
+
message.sqlQuery = (object.sqlQuery !== undefined && object.sqlQuery !== null)
|
|
1142
|
+
? exports.RawQueryRequest_RawQuery_SQLQuery.fromPartial(object.sqlQuery)
|
|
1143
|
+
: undefined;
|
|
969
1144
|
return message;
|
|
970
1145
|
},
|
|
971
1146
|
};
|
|
@@ -986,8 +1161,7 @@ function createBaseRawQueryRequest_RawQuery_MongoQuery() {
|
|
|
986
1161
|
};
|
|
987
1162
|
}
|
|
988
1163
|
exports.RawQueryRequest_RawQuery_MongoQuery = {
|
|
989
|
-
encode
|
|
990
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
1164
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
991
1165
|
if (message.aggregate !== undefined) {
|
|
992
1166
|
writer.uint32(10).string(message.aggregate);
|
|
993
1167
|
}
|
|
@@ -1026,91 +1200,155 @@ exports.RawQueryRequest_RawQuery_MongoQuery = {
|
|
|
1026
1200
|
}
|
|
1027
1201
|
return writer;
|
|
1028
1202
|
},
|
|
1029
|
-
decode
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1203
|
+
decode(input, length) {
|
|
1204
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1205
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1206
|
+
const message = createBaseRawQueryRequest_RawQuery_MongoQuery();
|
|
1033
1207
|
while (reader.pos < end) {
|
|
1034
|
-
|
|
1208
|
+
const tag = reader.uint32();
|
|
1035
1209
|
switch (tag >>> 3) {
|
|
1036
1210
|
case 1:
|
|
1211
|
+
if (tag !== 10) {
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1037
1214
|
message.aggregate = reader.string();
|
|
1038
|
-
|
|
1215
|
+
continue;
|
|
1039
1216
|
case 2:
|
|
1217
|
+
if (tag !== 18) {
|
|
1218
|
+
break;
|
|
1219
|
+
}
|
|
1040
1220
|
message.count = reader.string();
|
|
1041
|
-
|
|
1221
|
+
continue;
|
|
1042
1222
|
case 3:
|
|
1223
|
+
if (tag !== 26) {
|
|
1224
|
+
break;
|
|
1225
|
+
}
|
|
1043
1226
|
message.deleteOne = reader.string();
|
|
1044
|
-
|
|
1227
|
+
continue;
|
|
1045
1228
|
case 4:
|
|
1229
|
+
if (tag !== 34) {
|
|
1230
|
+
break;
|
|
1231
|
+
}
|
|
1046
1232
|
message.deleteMany = reader.string();
|
|
1047
|
-
|
|
1233
|
+
continue;
|
|
1048
1234
|
case 5:
|
|
1235
|
+
if (tag !== 42) {
|
|
1236
|
+
break;
|
|
1237
|
+
}
|
|
1049
1238
|
message.drop = reader.string();
|
|
1050
|
-
|
|
1239
|
+
continue;
|
|
1051
1240
|
case 6:
|
|
1241
|
+
if (tag !== 50) {
|
|
1242
|
+
break;
|
|
1243
|
+
}
|
|
1052
1244
|
message.explain = reader.string();
|
|
1053
|
-
|
|
1245
|
+
continue;
|
|
1054
1246
|
case 7:
|
|
1247
|
+
if (tag !== 58) {
|
|
1248
|
+
break;
|
|
1249
|
+
}
|
|
1055
1250
|
message.find = reader.string();
|
|
1056
|
-
|
|
1251
|
+
continue;
|
|
1057
1252
|
case 8:
|
|
1253
|
+
if (tag !== 66) {
|
|
1254
|
+
break;
|
|
1255
|
+
}
|
|
1058
1256
|
message.insertOne = reader.string();
|
|
1059
|
-
|
|
1257
|
+
continue;
|
|
1060
1258
|
case 9:
|
|
1259
|
+
if (tag !== 74) {
|
|
1260
|
+
break;
|
|
1261
|
+
}
|
|
1061
1262
|
message.insertMany = reader.string();
|
|
1062
|
-
|
|
1263
|
+
continue;
|
|
1063
1264
|
case 10:
|
|
1265
|
+
if (tag !== 82) {
|
|
1266
|
+
break;
|
|
1267
|
+
}
|
|
1064
1268
|
message.updateOne = reader.string();
|
|
1065
|
-
|
|
1269
|
+
continue;
|
|
1066
1270
|
case 11:
|
|
1271
|
+
if (tag !== 90) {
|
|
1272
|
+
break;
|
|
1273
|
+
}
|
|
1067
1274
|
message.updateMany = reader.string();
|
|
1068
|
-
|
|
1275
|
+
continue;
|
|
1069
1276
|
case 12:
|
|
1277
|
+
if (tag !== 98) {
|
|
1278
|
+
break;
|
|
1279
|
+
}
|
|
1070
1280
|
message.options = reader.string();
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1281
|
+
continue;
|
|
1282
|
+
}
|
|
1283
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1284
|
+
break;
|
|
1075
1285
|
}
|
|
1286
|
+
reader.skipType(tag & 7);
|
|
1076
1287
|
}
|
|
1077
1288
|
return message;
|
|
1078
1289
|
},
|
|
1079
|
-
fromJSON
|
|
1290
|
+
fromJSON(object) {
|
|
1080
1291
|
return {
|
|
1081
|
-
aggregate: isSet(object.aggregate) ? String(object.aggregate) : undefined,
|
|
1082
|
-
count: isSet(object.count) ? String(object.count) : undefined,
|
|
1083
|
-
deleteOne: isSet(object.deleteOne) ? String(object.deleteOne) : undefined,
|
|
1084
|
-
deleteMany: isSet(object.deleteMany) ? String(object.deleteMany) : undefined,
|
|
1085
|
-
drop: isSet(object.drop) ? String(object.drop) : undefined,
|
|
1086
|
-
explain: isSet(object.explain) ? String(object.explain) : undefined,
|
|
1087
|
-
find: isSet(object.find) ? String(object.find) : undefined,
|
|
1088
|
-
insertOne: isSet(object.insertOne) ? String(object.insertOne) : undefined,
|
|
1089
|
-
insertMany: isSet(object.insertMany) ? String(object.insertMany) : undefined,
|
|
1090
|
-
updateOne: isSet(object.updateOne) ? String(object.updateOne) : undefined,
|
|
1091
|
-
updateMany: isSet(object.updateMany) ? String(object.updateMany) : undefined,
|
|
1092
|
-
options: isSet(object.options) ? String(object.options) : undefined,
|
|
1292
|
+
aggregate: isSet(object.aggregate) ? globalThis.String(object.aggregate) : undefined,
|
|
1293
|
+
count: isSet(object.count) ? globalThis.String(object.count) : undefined,
|
|
1294
|
+
deleteOne: isSet(object.deleteOne) ? globalThis.String(object.deleteOne) : undefined,
|
|
1295
|
+
deleteMany: isSet(object.deleteMany) ? globalThis.String(object.deleteMany) : undefined,
|
|
1296
|
+
drop: isSet(object.drop) ? globalThis.String(object.drop) : undefined,
|
|
1297
|
+
explain: isSet(object.explain) ? globalThis.String(object.explain) : undefined,
|
|
1298
|
+
find: isSet(object.find) ? globalThis.String(object.find) : undefined,
|
|
1299
|
+
insertOne: isSet(object.insertOne) ? globalThis.String(object.insertOne) : undefined,
|
|
1300
|
+
insertMany: isSet(object.insertMany) ? globalThis.String(object.insertMany) : undefined,
|
|
1301
|
+
updateOne: isSet(object.updateOne) ? globalThis.String(object.updateOne) : undefined,
|
|
1302
|
+
updateMany: isSet(object.updateMany) ? globalThis.String(object.updateMany) : undefined,
|
|
1303
|
+
options: isSet(object.options) ? globalThis.String(object.options) : undefined,
|
|
1093
1304
|
};
|
|
1094
1305
|
},
|
|
1095
|
-
toJSON
|
|
1096
|
-
|
|
1097
|
-
message.aggregate !== undefined
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
message.
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
message.
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
message.
|
|
1107
|
-
|
|
1108
|
-
|
|
1306
|
+
toJSON(message) {
|
|
1307
|
+
const obj = {};
|
|
1308
|
+
if (message.aggregate !== undefined) {
|
|
1309
|
+
obj.aggregate = message.aggregate;
|
|
1310
|
+
}
|
|
1311
|
+
if (message.count !== undefined) {
|
|
1312
|
+
obj.count = message.count;
|
|
1313
|
+
}
|
|
1314
|
+
if (message.deleteOne !== undefined) {
|
|
1315
|
+
obj.deleteOne = message.deleteOne;
|
|
1316
|
+
}
|
|
1317
|
+
if (message.deleteMany !== undefined) {
|
|
1318
|
+
obj.deleteMany = message.deleteMany;
|
|
1319
|
+
}
|
|
1320
|
+
if (message.drop !== undefined) {
|
|
1321
|
+
obj.drop = message.drop;
|
|
1322
|
+
}
|
|
1323
|
+
if (message.explain !== undefined) {
|
|
1324
|
+
obj.explain = message.explain;
|
|
1325
|
+
}
|
|
1326
|
+
if (message.find !== undefined) {
|
|
1327
|
+
obj.find = message.find;
|
|
1328
|
+
}
|
|
1329
|
+
if (message.insertOne !== undefined) {
|
|
1330
|
+
obj.insertOne = message.insertOne;
|
|
1331
|
+
}
|
|
1332
|
+
if (message.insertMany !== undefined) {
|
|
1333
|
+
obj.insertMany = message.insertMany;
|
|
1334
|
+
}
|
|
1335
|
+
if (message.updateOne !== undefined) {
|
|
1336
|
+
obj.updateOne = message.updateOne;
|
|
1337
|
+
}
|
|
1338
|
+
if (message.updateMany !== undefined) {
|
|
1339
|
+
obj.updateMany = message.updateMany;
|
|
1340
|
+
}
|
|
1341
|
+
if (message.options !== undefined) {
|
|
1342
|
+
obj.options = message.options;
|
|
1343
|
+
}
|
|
1109
1344
|
return obj;
|
|
1110
1345
|
},
|
|
1111
|
-
|
|
1346
|
+
create(base) {
|
|
1347
|
+
return exports.RawQueryRequest_RawQuery_MongoQuery.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1348
|
+
},
|
|
1349
|
+
fromPartial(object) {
|
|
1112
1350
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1113
|
-
|
|
1351
|
+
const message = createBaseRawQueryRequest_RawQuery_MongoQuery();
|
|
1114
1352
|
message.aggregate = (_a = object.aggregate) !== null && _a !== void 0 ? _a : undefined;
|
|
1115
1353
|
message.count = (_b = object.count) !== null && _b !== void 0 ? _b : undefined;
|
|
1116
1354
|
message.deleteOne = (_c = object.deleteOne) !== null && _c !== void 0 ? _c : undefined;
|
|
@@ -1127,12 +1365,11 @@ exports.RawQueryRequest_RawQuery_MongoQuery = {
|
|
|
1127
1365
|
},
|
|
1128
1366
|
};
|
|
1129
1367
|
function createBaseRawQueryRequest_RawQuery_SQLQuery() {
|
|
1130
|
-
return { query:
|
|
1368
|
+
return { query: "", options: undefined };
|
|
1131
1369
|
}
|
|
1132
1370
|
exports.RawQueryRequest_RawQuery_SQLQuery = {
|
|
1133
|
-
encode
|
|
1134
|
-
if (
|
|
1135
|
-
if (message.query !== '') {
|
|
1371
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1372
|
+
if (message.query !== "") {
|
|
1136
1373
|
writer.uint32(10).string(message.query);
|
|
1137
1374
|
}
|
|
1138
1375
|
if (message.options !== undefined) {
|
|
@@ -1140,233 +1377,532 @@ exports.RawQueryRequest_RawQuery_SQLQuery = {
|
|
|
1140
1377
|
}
|
|
1141
1378
|
return writer;
|
|
1142
1379
|
},
|
|
1143
|
-
decode
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1380
|
+
decode(input, length) {
|
|
1381
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1382
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1383
|
+
const message = createBaseRawQueryRequest_RawQuery_SQLQuery();
|
|
1147
1384
|
while (reader.pos < end) {
|
|
1148
|
-
|
|
1385
|
+
const tag = reader.uint32();
|
|
1149
1386
|
switch (tag >>> 3) {
|
|
1150
1387
|
case 1:
|
|
1388
|
+
if (tag !== 10) {
|
|
1389
|
+
break;
|
|
1390
|
+
}
|
|
1151
1391
|
message.query = reader.string();
|
|
1152
|
-
|
|
1392
|
+
continue;
|
|
1153
1393
|
case 2:
|
|
1394
|
+
if (tag !== 18) {
|
|
1395
|
+
break;
|
|
1396
|
+
}
|
|
1154
1397
|
message.options = reader.string();
|
|
1155
|
-
|
|
1156
|
-
default:
|
|
1157
|
-
reader.skipType(tag & 7);
|
|
1158
|
-
break;
|
|
1398
|
+
continue;
|
|
1159
1399
|
}
|
|
1400
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1401
|
+
break;
|
|
1402
|
+
}
|
|
1403
|
+
reader.skipType(tag & 7);
|
|
1160
1404
|
}
|
|
1161
1405
|
return message;
|
|
1162
1406
|
},
|
|
1163
|
-
fromJSON
|
|
1407
|
+
fromJSON(object) {
|
|
1164
1408
|
return {
|
|
1165
|
-
query: isSet(object.query) ? String(object.query) :
|
|
1166
|
-
options: isSet(object.options) ? String(object.options) : undefined,
|
|
1409
|
+
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
1410
|
+
options: isSet(object.options) ? globalThis.String(object.options) : undefined,
|
|
1167
1411
|
};
|
|
1168
1412
|
},
|
|
1169
|
-
toJSON
|
|
1170
|
-
|
|
1171
|
-
message.query !==
|
|
1172
|
-
|
|
1413
|
+
toJSON(message) {
|
|
1414
|
+
const obj = {};
|
|
1415
|
+
if (message.query !== "") {
|
|
1416
|
+
obj.query = message.query;
|
|
1417
|
+
}
|
|
1418
|
+
if (message.options !== undefined) {
|
|
1419
|
+
obj.options = message.options;
|
|
1420
|
+
}
|
|
1173
1421
|
return obj;
|
|
1174
1422
|
},
|
|
1175
|
-
|
|
1423
|
+
create(base) {
|
|
1424
|
+
return exports.RawQueryRequest_RawQuery_SQLQuery.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1425
|
+
},
|
|
1426
|
+
fromPartial(object) {
|
|
1176
1427
|
var _a, _b;
|
|
1177
|
-
|
|
1178
|
-
message.query = (_a = object.query) !== null && _a !== void 0 ? _a :
|
|
1428
|
+
const message = createBaseRawQueryRequest_RawQuery_SQLQuery();
|
|
1429
|
+
message.query = (_a = object.query) !== null && _a !== void 0 ? _a : "";
|
|
1179
1430
|
message.options = (_b = object.options) !== null && _b !== void 0 ? _b : undefined;
|
|
1180
1431
|
return message;
|
|
1181
1432
|
},
|
|
1182
1433
|
};
|
|
1434
|
+
function createBaseCreateViewRequest() {
|
|
1435
|
+
return { schemaName: "", viewName: "", joinedSchemas: [], query: undefined };
|
|
1436
|
+
}
|
|
1437
|
+
exports.CreateViewRequest = {
|
|
1438
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1439
|
+
if (message.schemaName !== "") {
|
|
1440
|
+
writer.uint32(10).string(message.schemaName);
|
|
1441
|
+
}
|
|
1442
|
+
if (message.viewName !== "") {
|
|
1443
|
+
writer.uint32(18).string(message.viewName);
|
|
1444
|
+
}
|
|
1445
|
+
for (const v of message.joinedSchemas) {
|
|
1446
|
+
writer.uint32(26).string(v);
|
|
1447
|
+
}
|
|
1448
|
+
if (message.query !== undefined) {
|
|
1449
|
+
exports.CreateViewRequest_RawQuery.encode(message.query, writer.uint32(34).fork()).ldelim();
|
|
1450
|
+
}
|
|
1451
|
+
return writer;
|
|
1452
|
+
},
|
|
1453
|
+
decode(input, length) {
|
|
1454
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1455
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1456
|
+
const message = createBaseCreateViewRequest();
|
|
1457
|
+
while (reader.pos < end) {
|
|
1458
|
+
const tag = reader.uint32();
|
|
1459
|
+
switch (tag >>> 3) {
|
|
1460
|
+
case 1:
|
|
1461
|
+
if (tag !== 10) {
|
|
1462
|
+
break;
|
|
1463
|
+
}
|
|
1464
|
+
message.schemaName = reader.string();
|
|
1465
|
+
continue;
|
|
1466
|
+
case 2:
|
|
1467
|
+
if (tag !== 18) {
|
|
1468
|
+
break;
|
|
1469
|
+
}
|
|
1470
|
+
message.viewName = reader.string();
|
|
1471
|
+
continue;
|
|
1472
|
+
case 3:
|
|
1473
|
+
if (tag !== 26) {
|
|
1474
|
+
break;
|
|
1475
|
+
}
|
|
1476
|
+
message.joinedSchemas.push(reader.string());
|
|
1477
|
+
continue;
|
|
1478
|
+
case 4:
|
|
1479
|
+
if (tag !== 34) {
|
|
1480
|
+
break;
|
|
1481
|
+
}
|
|
1482
|
+
message.query = exports.CreateViewRequest_RawQuery.decode(reader, reader.uint32());
|
|
1483
|
+
continue;
|
|
1484
|
+
}
|
|
1485
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1486
|
+
break;
|
|
1487
|
+
}
|
|
1488
|
+
reader.skipType(tag & 7);
|
|
1489
|
+
}
|
|
1490
|
+
return message;
|
|
1491
|
+
},
|
|
1492
|
+
fromJSON(object) {
|
|
1493
|
+
return {
|
|
1494
|
+
schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "",
|
|
1495
|
+
viewName: isSet(object.viewName) ? globalThis.String(object.viewName) : "",
|
|
1496
|
+
joinedSchemas: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.joinedSchemas)
|
|
1497
|
+
? object.joinedSchemas.map((e) => globalThis.String(e))
|
|
1498
|
+
: [],
|
|
1499
|
+
query: isSet(object.query) ? exports.CreateViewRequest_RawQuery.fromJSON(object.query) : undefined,
|
|
1500
|
+
};
|
|
1501
|
+
},
|
|
1502
|
+
toJSON(message) {
|
|
1503
|
+
var _a;
|
|
1504
|
+
const obj = {};
|
|
1505
|
+
if (message.schemaName !== "") {
|
|
1506
|
+
obj.schemaName = message.schemaName;
|
|
1507
|
+
}
|
|
1508
|
+
if (message.viewName !== "") {
|
|
1509
|
+
obj.viewName = message.viewName;
|
|
1510
|
+
}
|
|
1511
|
+
if ((_a = message.joinedSchemas) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1512
|
+
obj.joinedSchemas = message.joinedSchemas;
|
|
1513
|
+
}
|
|
1514
|
+
if (message.query !== undefined) {
|
|
1515
|
+
obj.query = exports.CreateViewRequest_RawQuery.toJSON(message.query);
|
|
1516
|
+
}
|
|
1517
|
+
return obj;
|
|
1518
|
+
},
|
|
1519
|
+
create(base) {
|
|
1520
|
+
return exports.CreateViewRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1521
|
+
},
|
|
1522
|
+
fromPartial(object) {
|
|
1523
|
+
var _a, _b, _c;
|
|
1524
|
+
const message = createBaseCreateViewRequest();
|
|
1525
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
1526
|
+
message.viewName = (_b = object.viewName) !== null && _b !== void 0 ? _b : "";
|
|
1527
|
+
message.joinedSchemas = ((_c = object.joinedSchemas) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
1528
|
+
message.query = (object.query !== undefined && object.query !== null)
|
|
1529
|
+
? exports.CreateViewRequest_RawQuery.fromPartial(object.query)
|
|
1530
|
+
: undefined;
|
|
1531
|
+
return message;
|
|
1532
|
+
},
|
|
1533
|
+
};
|
|
1534
|
+
function createBaseCreateViewRequest_RawQuery() {
|
|
1535
|
+
return { mongoQuery: "", sqlQuery: "" };
|
|
1536
|
+
}
|
|
1537
|
+
exports.CreateViewRequest_RawQuery = {
|
|
1538
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1539
|
+
if (message.mongoQuery !== "") {
|
|
1540
|
+
writer.uint32(10).string(message.mongoQuery);
|
|
1541
|
+
}
|
|
1542
|
+
if (message.sqlQuery !== "") {
|
|
1543
|
+
writer.uint32(18).string(message.sqlQuery);
|
|
1544
|
+
}
|
|
1545
|
+
return writer;
|
|
1546
|
+
},
|
|
1547
|
+
decode(input, length) {
|
|
1548
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1549
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1550
|
+
const message = createBaseCreateViewRequest_RawQuery();
|
|
1551
|
+
while (reader.pos < end) {
|
|
1552
|
+
const tag = reader.uint32();
|
|
1553
|
+
switch (tag >>> 3) {
|
|
1554
|
+
case 1:
|
|
1555
|
+
if (tag !== 10) {
|
|
1556
|
+
break;
|
|
1557
|
+
}
|
|
1558
|
+
message.mongoQuery = reader.string();
|
|
1559
|
+
continue;
|
|
1560
|
+
case 2:
|
|
1561
|
+
if (tag !== 18) {
|
|
1562
|
+
break;
|
|
1563
|
+
}
|
|
1564
|
+
message.sqlQuery = reader.string();
|
|
1565
|
+
continue;
|
|
1566
|
+
}
|
|
1567
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1568
|
+
break;
|
|
1569
|
+
}
|
|
1570
|
+
reader.skipType(tag & 7);
|
|
1571
|
+
}
|
|
1572
|
+
return message;
|
|
1573
|
+
},
|
|
1574
|
+
fromJSON(object) {
|
|
1575
|
+
return {
|
|
1576
|
+
mongoQuery: isSet(object.mongoQuery) ? globalThis.String(object.mongoQuery) : "",
|
|
1577
|
+
sqlQuery: isSet(object.sqlQuery) ? globalThis.String(object.sqlQuery) : "",
|
|
1578
|
+
};
|
|
1579
|
+
},
|
|
1580
|
+
toJSON(message) {
|
|
1581
|
+
const obj = {};
|
|
1582
|
+
if (message.mongoQuery !== "") {
|
|
1583
|
+
obj.mongoQuery = message.mongoQuery;
|
|
1584
|
+
}
|
|
1585
|
+
if (message.sqlQuery !== "") {
|
|
1586
|
+
obj.sqlQuery = message.sqlQuery;
|
|
1587
|
+
}
|
|
1588
|
+
return obj;
|
|
1589
|
+
},
|
|
1590
|
+
create(base) {
|
|
1591
|
+
return exports.CreateViewRequest_RawQuery.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1592
|
+
},
|
|
1593
|
+
fromPartial(object) {
|
|
1594
|
+
var _a, _b;
|
|
1595
|
+
const message = createBaseCreateViewRequest_RawQuery();
|
|
1596
|
+
message.mongoQuery = (_a = object.mongoQuery) !== null && _a !== void 0 ? _a : "";
|
|
1597
|
+
message.sqlQuery = (_b = object.sqlQuery) !== null && _b !== void 0 ? _b : "";
|
|
1598
|
+
return message;
|
|
1599
|
+
},
|
|
1600
|
+
};
|
|
1601
|
+
function createBaseDeleteViewRequest() {
|
|
1602
|
+
return { viewName: "" };
|
|
1603
|
+
}
|
|
1604
|
+
exports.DeleteViewRequest = {
|
|
1605
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1606
|
+
if (message.viewName !== "") {
|
|
1607
|
+
writer.uint32(10).string(message.viewName);
|
|
1608
|
+
}
|
|
1609
|
+
return writer;
|
|
1610
|
+
},
|
|
1611
|
+
decode(input, length) {
|
|
1612
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1613
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1614
|
+
const message = createBaseDeleteViewRequest();
|
|
1615
|
+
while (reader.pos < end) {
|
|
1616
|
+
const tag = reader.uint32();
|
|
1617
|
+
switch (tag >>> 3) {
|
|
1618
|
+
case 1:
|
|
1619
|
+
if (tag !== 10) {
|
|
1620
|
+
break;
|
|
1621
|
+
}
|
|
1622
|
+
message.viewName = reader.string();
|
|
1623
|
+
continue;
|
|
1624
|
+
}
|
|
1625
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1626
|
+
break;
|
|
1627
|
+
}
|
|
1628
|
+
reader.skipType(tag & 7);
|
|
1629
|
+
}
|
|
1630
|
+
return message;
|
|
1631
|
+
},
|
|
1632
|
+
fromJSON(object) {
|
|
1633
|
+
return { viewName: isSet(object.viewName) ? globalThis.String(object.viewName) : "" };
|
|
1634
|
+
},
|
|
1635
|
+
toJSON(message) {
|
|
1636
|
+
const obj = {};
|
|
1637
|
+
if (message.viewName !== "") {
|
|
1638
|
+
obj.viewName = message.viewName;
|
|
1639
|
+
}
|
|
1640
|
+
return obj;
|
|
1641
|
+
},
|
|
1642
|
+
create(base) {
|
|
1643
|
+
return exports.DeleteViewRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1644
|
+
},
|
|
1645
|
+
fromPartial(object) {
|
|
1646
|
+
var _a;
|
|
1647
|
+
const message = createBaseDeleteViewRequest();
|
|
1648
|
+
message.viewName = (_a = object.viewName) !== null && _a !== void 0 ? _a : "";
|
|
1649
|
+
return message;
|
|
1650
|
+
},
|
|
1651
|
+
};
|
|
1183
1652
|
function createBaseUpdateRequest() {
|
|
1184
|
-
return { schemaName:
|
|
1653
|
+
return { schemaName: "", id: "", query: "", populate: [], userId: undefined, scope: undefined };
|
|
1185
1654
|
}
|
|
1186
1655
|
exports.UpdateRequest = {
|
|
1187
|
-
encode
|
|
1188
|
-
|
|
1189
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
1190
|
-
if (message.schemaName !== '') {
|
|
1656
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1657
|
+
if (message.schemaName !== "") {
|
|
1191
1658
|
writer.uint32(10).string(message.schemaName);
|
|
1192
1659
|
}
|
|
1193
|
-
if (message.id !==
|
|
1660
|
+
if (message.id !== "") {
|
|
1194
1661
|
writer.uint32(18).string(message.id);
|
|
1195
1662
|
}
|
|
1196
|
-
if (message.query !==
|
|
1663
|
+
if (message.query !== "") {
|
|
1197
1664
|
writer.uint32(26).string(message.query);
|
|
1198
1665
|
}
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
var v = _c.value;
|
|
1202
|
-
writer.uint32(34).string(v);
|
|
1203
|
-
}
|
|
1666
|
+
for (const v of message.populate) {
|
|
1667
|
+
writer.uint32(34).string(v);
|
|
1204
1668
|
}
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
finally { if (e_4) throw e_4.error; }
|
|
1669
|
+
if (message.userId !== undefined) {
|
|
1670
|
+
writer.uint32(42).string(message.userId);
|
|
1671
|
+
}
|
|
1672
|
+
if (message.scope !== undefined) {
|
|
1673
|
+
writer.uint32(50).string(message.scope);
|
|
1211
1674
|
}
|
|
1212
1675
|
return writer;
|
|
1213
1676
|
},
|
|
1214
|
-
decode
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1677
|
+
decode(input, length) {
|
|
1678
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1679
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1680
|
+
const message = createBaseUpdateRequest();
|
|
1218
1681
|
while (reader.pos < end) {
|
|
1219
|
-
|
|
1682
|
+
const tag = reader.uint32();
|
|
1220
1683
|
switch (tag >>> 3) {
|
|
1221
1684
|
case 1:
|
|
1685
|
+
if (tag !== 10) {
|
|
1686
|
+
break;
|
|
1687
|
+
}
|
|
1222
1688
|
message.schemaName = reader.string();
|
|
1223
|
-
|
|
1689
|
+
continue;
|
|
1224
1690
|
case 2:
|
|
1691
|
+
if (tag !== 18) {
|
|
1692
|
+
break;
|
|
1693
|
+
}
|
|
1225
1694
|
message.id = reader.string();
|
|
1226
|
-
|
|
1695
|
+
continue;
|
|
1227
1696
|
case 3:
|
|
1697
|
+
if (tag !== 26) {
|
|
1698
|
+
break;
|
|
1699
|
+
}
|
|
1228
1700
|
message.query = reader.string();
|
|
1229
|
-
|
|
1701
|
+
continue;
|
|
1230
1702
|
case 4:
|
|
1703
|
+
if (tag !== 34) {
|
|
1704
|
+
break;
|
|
1705
|
+
}
|
|
1231
1706
|
message.populate.push(reader.string());
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1707
|
+
continue;
|
|
1708
|
+
case 5:
|
|
1709
|
+
if (tag !== 42) {
|
|
1710
|
+
break;
|
|
1711
|
+
}
|
|
1712
|
+
message.userId = reader.string();
|
|
1713
|
+
continue;
|
|
1714
|
+
case 6:
|
|
1715
|
+
if (tag !== 50) {
|
|
1716
|
+
break;
|
|
1717
|
+
}
|
|
1718
|
+
message.scope = reader.string();
|
|
1719
|
+
continue;
|
|
1720
|
+
}
|
|
1721
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1722
|
+
break;
|
|
1236
1723
|
}
|
|
1724
|
+
reader.skipType(tag & 7);
|
|
1237
1725
|
}
|
|
1238
1726
|
return message;
|
|
1239
1727
|
},
|
|
1240
|
-
fromJSON
|
|
1728
|
+
fromJSON(object) {
|
|
1241
1729
|
return {
|
|
1242
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) :
|
|
1243
|
-
id: isSet(object.id) ? String(object.id) :
|
|
1244
|
-
query: isSet(object.query) ? String(object.query) :
|
|
1245
|
-
populate: Array.isArray(object === null || object === void 0 ? void 0 : object.populate)
|
|
1246
|
-
|
|
1247
|
-
|
|
1730
|
+
schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "",
|
|
1731
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1732
|
+
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
1733
|
+
populate: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.populate) ? object.populate.map((e) => globalThis.String(e)) : [],
|
|
1734
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : undefined,
|
|
1735
|
+
scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
|
|
1248
1736
|
};
|
|
1249
1737
|
},
|
|
1250
|
-
toJSON
|
|
1251
|
-
var
|
|
1252
|
-
|
|
1253
|
-
message.
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1738
|
+
toJSON(message) {
|
|
1739
|
+
var _a;
|
|
1740
|
+
const obj = {};
|
|
1741
|
+
if (message.schemaName !== "") {
|
|
1742
|
+
obj.schemaName = message.schemaName;
|
|
1743
|
+
}
|
|
1744
|
+
if (message.id !== "") {
|
|
1745
|
+
obj.id = message.id;
|
|
1746
|
+
}
|
|
1747
|
+
if (message.query !== "") {
|
|
1748
|
+
obj.query = message.query;
|
|
1257
1749
|
}
|
|
1258
|
-
|
|
1259
|
-
obj.populate =
|
|
1750
|
+
if ((_a = message.populate) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1751
|
+
obj.populate = message.populate;
|
|
1752
|
+
}
|
|
1753
|
+
if (message.userId !== undefined) {
|
|
1754
|
+
obj.userId = message.userId;
|
|
1755
|
+
}
|
|
1756
|
+
if (message.scope !== undefined) {
|
|
1757
|
+
obj.scope = message.scope;
|
|
1260
1758
|
}
|
|
1261
1759
|
return obj;
|
|
1262
1760
|
},
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
message
|
|
1269
|
-
message.
|
|
1761
|
+
create(base) {
|
|
1762
|
+
return exports.UpdateRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1763
|
+
},
|
|
1764
|
+
fromPartial(object) {
|
|
1765
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1766
|
+
const message = createBaseUpdateRequest();
|
|
1767
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
1768
|
+
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
|
|
1769
|
+
message.query = (_c = object.query) !== null && _c !== void 0 ? _c : "";
|
|
1770
|
+
message.populate = ((_d = object.populate) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
1771
|
+
message.userId = (_e = object.userId) !== null && _e !== void 0 ? _e : undefined;
|
|
1772
|
+
message.scope = (_f = object.scope) !== null && _f !== void 0 ? _f : undefined;
|
|
1270
1773
|
return message;
|
|
1271
1774
|
},
|
|
1272
1775
|
};
|
|
1273
1776
|
function createBaseUpdateManyRequest() {
|
|
1274
|
-
return { schemaName:
|
|
1777
|
+
return { schemaName: "", filterQuery: "", query: "", populate: [], userId: undefined, scope: undefined };
|
|
1275
1778
|
}
|
|
1276
1779
|
exports.UpdateManyRequest = {
|
|
1277
|
-
encode
|
|
1278
|
-
|
|
1279
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
1280
|
-
if (message.schemaName !== '') {
|
|
1780
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1781
|
+
if (message.schemaName !== "") {
|
|
1281
1782
|
writer.uint32(10).string(message.schemaName);
|
|
1282
1783
|
}
|
|
1283
|
-
if (message.filterQuery !==
|
|
1784
|
+
if (message.filterQuery !== "") {
|
|
1284
1785
|
writer.uint32(18).string(message.filterQuery);
|
|
1285
1786
|
}
|
|
1286
|
-
if (message.query !==
|
|
1787
|
+
if (message.query !== "") {
|
|
1287
1788
|
writer.uint32(26).string(message.query);
|
|
1288
1789
|
}
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
var v = _c.value;
|
|
1292
|
-
writer.uint32(34).string(v);
|
|
1293
|
-
}
|
|
1790
|
+
for (const v of message.populate) {
|
|
1791
|
+
writer.uint32(34).string(v);
|
|
1294
1792
|
}
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
finally { if (e_5) throw e_5.error; }
|
|
1793
|
+
if (message.userId !== undefined) {
|
|
1794
|
+
writer.uint32(42).string(message.userId);
|
|
1795
|
+
}
|
|
1796
|
+
if (message.scope !== undefined) {
|
|
1797
|
+
writer.uint32(50).string(message.scope);
|
|
1301
1798
|
}
|
|
1302
1799
|
return writer;
|
|
1303
1800
|
},
|
|
1304
|
-
decode
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1801
|
+
decode(input, length) {
|
|
1802
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1803
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1804
|
+
const message = createBaseUpdateManyRequest();
|
|
1308
1805
|
while (reader.pos < end) {
|
|
1309
|
-
|
|
1806
|
+
const tag = reader.uint32();
|
|
1310
1807
|
switch (tag >>> 3) {
|
|
1311
1808
|
case 1:
|
|
1809
|
+
if (tag !== 10) {
|
|
1810
|
+
break;
|
|
1811
|
+
}
|
|
1312
1812
|
message.schemaName = reader.string();
|
|
1313
|
-
|
|
1813
|
+
continue;
|
|
1314
1814
|
case 2:
|
|
1815
|
+
if (tag !== 18) {
|
|
1816
|
+
break;
|
|
1817
|
+
}
|
|
1315
1818
|
message.filterQuery = reader.string();
|
|
1316
|
-
|
|
1819
|
+
continue;
|
|
1317
1820
|
case 3:
|
|
1821
|
+
if (tag !== 26) {
|
|
1822
|
+
break;
|
|
1823
|
+
}
|
|
1318
1824
|
message.query = reader.string();
|
|
1319
|
-
|
|
1825
|
+
continue;
|
|
1320
1826
|
case 4:
|
|
1827
|
+
if (tag !== 34) {
|
|
1828
|
+
break;
|
|
1829
|
+
}
|
|
1321
1830
|
message.populate.push(reader.string());
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1831
|
+
continue;
|
|
1832
|
+
case 5:
|
|
1833
|
+
if (tag !== 42) {
|
|
1834
|
+
break;
|
|
1835
|
+
}
|
|
1836
|
+
message.userId = reader.string();
|
|
1837
|
+
continue;
|
|
1838
|
+
case 6:
|
|
1839
|
+
if (tag !== 50) {
|
|
1840
|
+
break;
|
|
1841
|
+
}
|
|
1842
|
+
message.scope = reader.string();
|
|
1843
|
+
continue;
|
|
1844
|
+
}
|
|
1845
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1846
|
+
break;
|
|
1326
1847
|
}
|
|
1848
|
+
reader.skipType(tag & 7);
|
|
1327
1849
|
}
|
|
1328
1850
|
return message;
|
|
1329
1851
|
},
|
|
1330
|
-
fromJSON
|
|
1852
|
+
fromJSON(object) {
|
|
1331
1853
|
return {
|
|
1332
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) :
|
|
1333
|
-
filterQuery: isSet(object.filterQuery) ? String(object.filterQuery) :
|
|
1334
|
-
query: isSet(object.query) ? String(object.query) :
|
|
1335
|
-
populate: Array.isArray(object === null || object === void 0 ? void 0 : object.populate)
|
|
1336
|
-
|
|
1337
|
-
|
|
1854
|
+
schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "",
|
|
1855
|
+
filterQuery: isSet(object.filterQuery) ? globalThis.String(object.filterQuery) : "",
|
|
1856
|
+
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
1857
|
+
populate: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.populate) ? object.populate.map((e) => globalThis.String(e)) : [],
|
|
1858
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : undefined,
|
|
1859
|
+
scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
|
|
1338
1860
|
};
|
|
1339
1861
|
},
|
|
1340
|
-
toJSON
|
|
1341
|
-
var
|
|
1342
|
-
|
|
1343
|
-
message.
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1862
|
+
toJSON(message) {
|
|
1863
|
+
var _a;
|
|
1864
|
+
const obj = {};
|
|
1865
|
+
if (message.schemaName !== "") {
|
|
1866
|
+
obj.schemaName = message.schemaName;
|
|
1867
|
+
}
|
|
1868
|
+
if (message.filterQuery !== "") {
|
|
1869
|
+
obj.filterQuery = message.filterQuery;
|
|
1870
|
+
}
|
|
1871
|
+
if (message.query !== "") {
|
|
1872
|
+
obj.query = message.query;
|
|
1347
1873
|
}
|
|
1348
|
-
|
|
1349
|
-
obj.populate =
|
|
1874
|
+
if ((_a = message.populate) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1875
|
+
obj.populate = message.populate;
|
|
1876
|
+
}
|
|
1877
|
+
if (message.userId !== undefined) {
|
|
1878
|
+
obj.userId = message.userId;
|
|
1879
|
+
}
|
|
1880
|
+
if (message.scope !== undefined) {
|
|
1881
|
+
obj.scope = message.scope;
|
|
1350
1882
|
}
|
|
1351
1883
|
return obj;
|
|
1352
1884
|
},
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
message
|
|
1359
|
-
message.
|
|
1885
|
+
create(base) {
|
|
1886
|
+
return exports.UpdateManyRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1887
|
+
},
|
|
1888
|
+
fromPartial(object) {
|
|
1889
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1890
|
+
const message = createBaseUpdateManyRequest();
|
|
1891
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
1892
|
+
message.filterQuery = (_b = object.filterQuery) !== null && _b !== void 0 ? _b : "";
|
|
1893
|
+
message.query = (_c = object.query) !== null && _c !== void 0 ? _c : "";
|
|
1894
|
+
message.populate = ((_d = object.populate) === null || _d === void 0 ? void 0 : _d.map((e) => e)) || [];
|
|
1895
|
+
message.userId = (_e = object.userId) !== null && _e !== void 0 ? _e : undefined;
|
|
1896
|
+
message.scope = (_f = object.scope) !== null && _f !== void 0 ? _f : undefined;
|
|
1360
1897
|
return message;
|
|
1361
1898
|
},
|
|
1362
1899
|
};
|
|
1363
1900
|
function createBaseDropCollectionRequest() {
|
|
1364
|
-
return { schemaName:
|
|
1901
|
+
return { schemaName: "", deleteData: false };
|
|
1365
1902
|
}
|
|
1366
1903
|
exports.DropCollectionRequest = {
|
|
1367
|
-
encode
|
|
1368
|
-
if (
|
|
1369
|
-
if (message.schemaName !== '') {
|
|
1904
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1905
|
+
if (message.schemaName !== "") {
|
|
1370
1906
|
writer.uint32(10).string(message.schemaName);
|
|
1371
1907
|
}
|
|
1372
1908
|
if (message.deleteData === true) {
|
|
@@ -1374,160 +1910,176 @@ exports.DropCollectionRequest = {
|
|
|
1374
1910
|
}
|
|
1375
1911
|
return writer;
|
|
1376
1912
|
},
|
|
1377
|
-
decode
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1913
|
+
decode(input, length) {
|
|
1914
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1915
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1916
|
+
const message = createBaseDropCollectionRequest();
|
|
1381
1917
|
while (reader.pos < end) {
|
|
1382
|
-
|
|
1918
|
+
const tag = reader.uint32();
|
|
1383
1919
|
switch (tag >>> 3) {
|
|
1384
1920
|
case 1:
|
|
1921
|
+
if (tag !== 10) {
|
|
1922
|
+
break;
|
|
1923
|
+
}
|
|
1385
1924
|
message.schemaName = reader.string();
|
|
1386
|
-
|
|
1925
|
+
continue;
|
|
1387
1926
|
case 2:
|
|
1927
|
+
if (tag !== 16) {
|
|
1928
|
+
break;
|
|
1929
|
+
}
|
|
1388
1930
|
message.deleteData = reader.bool();
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1931
|
+
continue;
|
|
1932
|
+
}
|
|
1933
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1934
|
+
break;
|
|
1393
1935
|
}
|
|
1936
|
+
reader.skipType(tag & 7);
|
|
1394
1937
|
}
|
|
1395
1938
|
return message;
|
|
1396
1939
|
},
|
|
1397
|
-
fromJSON
|
|
1940
|
+
fromJSON(object) {
|
|
1398
1941
|
return {
|
|
1399
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) :
|
|
1400
|
-
deleteData: isSet(object.deleteData) ? Boolean(object.deleteData) : false,
|
|
1942
|
+
schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "",
|
|
1943
|
+
deleteData: isSet(object.deleteData) ? globalThis.Boolean(object.deleteData) : false,
|
|
1401
1944
|
};
|
|
1402
1945
|
},
|
|
1403
|
-
toJSON
|
|
1404
|
-
|
|
1405
|
-
message.schemaName !==
|
|
1406
|
-
|
|
1946
|
+
toJSON(message) {
|
|
1947
|
+
const obj = {};
|
|
1948
|
+
if (message.schemaName !== "") {
|
|
1949
|
+
obj.schemaName = message.schemaName;
|
|
1950
|
+
}
|
|
1951
|
+
if (message.deleteData === true) {
|
|
1952
|
+
obj.deleteData = message.deleteData;
|
|
1953
|
+
}
|
|
1407
1954
|
return obj;
|
|
1408
1955
|
},
|
|
1409
|
-
|
|
1956
|
+
create(base) {
|
|
1957
|
+
return exports.DropCollectionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1958
|
+
},
|
|
1959
|
+
fromPartial(object) {
|
|
1410
1960
|
var _a, _b;
|
|
1411
|
-
|
|
1412
|
-
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a :
|
|
1961
|
+
const message = createBaseDropCollectionRequest();
|
|
1962
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
1413
1963
|
message.deleteData = (_b = object.deleteData) !== null && _b !== void 0 ? _b : false;
|
|
1414
1964
|
return message;
|
|
1415
1965
|
},
|
|
1416
1966
|
};
|
|
1417
1967
|
function createBaseMigrateRequest() {
|
|
1418
|
-
return { schemaName:
|
|
1968
|
+
return { schemaName: "" };
|
|
1419
1969
|
}
|
|
1420
1970
|
exports.MigrateRequest = {
|
|
1421
|
-
encode
|
|
1422
|
-
if (
|
|
1423
|
-
if (message.schemaName !== '') {
|
|
1971
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1972
|
+
if (message.schemaName !== "") {
|
|
1424
1973
|
writer.uint32(10).string(message.schemaName);
|
|
1425
1974
|
}
|
|
1426
1975
|
return writer;
|
|
1427
1976
|
},
|
|
1428
|
-
decode
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1977
|
+
decode(input, length) {
|
|
1978
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
1979
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1980
|
+
const message = createBaseMigrateRequest();
|
|
1432
1981
|
while (reader.pos < end) {
|
|
1433
|
-
|
|
1982
|
+
const tag = reader.uint32();
|
|
1434
1983
|
switch (tag >>> 3) {
|
|
1435
1984
|
case 1:
|
|
1985
|
+
if (tag !== 10) {
|
|
1986
|
+
break;
|
|
1987
|
+
}
|
|
1436
1988
|
message.schemaName = reader.string();
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1989
|
+
continue;
|
|
1990
|
+
}
|
|
1991
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1992
|
+
break;
|
|
1441
1993
|
}
|
|
1994
|
+
reader.skipType(tag & 7);
|
|
1442
1995
|
}
|
|
1443
1996
|
return message;
|
|
1444
1997
|
},
|
|
1445
|
-
fromJSON
|
|
1446
|
-
return {
|
|
1447
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) : '',
|
|
1448
|
-
};
|
|
1998
|
+
fromJSON(object) {
|
|
1999
|
+
return { schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "" };
|
|
1449
2000
|
},
|
|
1450
|
-
toJSON
|
|
1451
|
-
|
|
1452
|
-
message.schemaName !==
|
|
2001
|
+
toJSON(message) {
|
|
2002
|
+
const obj = {};
|
|
2003
|
+
if (message.schemaName !== "") {
|
|
2004
|
+
obj.schemaName = message.schemaName;
|
|
2005
|
+
}
|
|
1453
2006
|
return obj;
|
|
1454
2007
|
},
|
|
1455
|
-
|
|
2008
|
+
create(base) {
|
|
2009
|
+
return exports.MigrateRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2010
|
+
},
|
|
2011
|
+
fromPartial(object) {
|
|
1456
2012
|
var _a;
|
|
1457
|
-
|
|
1458
|
-
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a :
|
|
2013
|
+
const message = createBaseMigrateRequest();
|
|
2014
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
1459
2015
|
return message;
|
|
1460
2016
|
},
|
|
1461
2017
|
};
|
|
1462
2018
|
function createBaseColumnExistenceRequest() {
|
|
1463
|
-
return { schemaName:
|
|
2019
|
+
return { schemaName: "", columns: [] };
|
|
1464
2020
|
}
|
|
1465
2021
|
exports.ColumnExistenceRequest = {
|
|
1466
|
-
encode
|
|
1467
|
-
|
|
1468
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
1469
|
-
if (message.schemaName !== '') {
|
|
2022
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2023
|
+
if (message.schemaName !== "") {
|
|
1470
2024
|
writer.uint32(10).string(message.schemaName);
|
|
1471
2025
|
}
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
var v = _c.value;
|
|
1475
|
-
writer.uint32(18).string(v);
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
1479
|
-
finally {
|
|
1480
|
-
try {
|
|
1481
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
1482
|
-
}
|
|
1483
|
-
finally { if (e_6) throw e_6.error; }
|
|
2026
|
+
for (const v of message.columns) {
|
|
2027
|
+
writer.uint32(18).string(v);
|
|
1484
2028
|
}
|
|
1485
2029
|
return writer;
|
|
1486
2030
|
},
|
|
1487
|
-
decode
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
2031
|
+
decode(input, length) {
|
|
2032
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2033
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2034
|
+
const message = createBaseColumnExistenceRequest();
|
|
1491
2035
|
while (reader.pos < end) {
|
|
1492
|
-
|
|
2036
|
+
const tag = reader.uint32();
|
|
1493
2037
|
switch (tag >>> 3) {
|
|
1494
2038
|
case 1:
|
|
2039
|
+
if (tag !== 10) {
|
|
2040
|
+
break;
|
|
2041
|
+
}
|
|
1495
2042
|
message.schemaName = reader.string();
|
|
1496
|
-
|
|
2043
|
+
continue;
|
|
1497
2044
|
case 2:
|
|
2045
|
+
if (tag !== 18) {
|
|
2046
|
+
break;
|
|
2047
|
+
}
|
|
1498
2048
|
message.columns.push(reader.string());
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
2049
|
+
continue;
|
|
2050
|
+
}
|
|
2051
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2052
|
+
break;
|
|
1503
2053
|
}
|
|
2054
|
+
reader.skipType(tag & 7);
|
|
1504
2055
|
}
|
|
1505
2056
|
return message;
|
|
1506
2057
|
},
|
|
1507
|
-
fromJSON
|
|
2058
|
+
fromJSON(object) {
|
|
1508
2059
|
return {
|
|
1509
|
-
schemaName: isSet(object.schemaName) ? String(object.schemaName) :
|
|
1510
|
-
columns: Array.isArray(object === null || object === void 0 ? void 0 : object.columns)
|
|
1511
|
-
? object.columns.map(function (e) { return String(e); })
|
|
1512
|
-
: [],
|
|
2060
|
+
schemaName: isSet(object.schemaName) ? globalThis.String(object.schemaName) : "",
|
|
2061
|
+
columns: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.columns) ? object.columns.map((e) => globalThis.String(e)) : [],
|
|
1513
2062
|
};
|
|
1514
2063
|
},
|
|
1515
|
-
toJSON
|
|
1516
|
-
var
|
|
1517
|
-
|
|
1518
|
-
if (message.
|
|
1519
|
-
obj.
|
|
2064
|
+
toJSON(message) {
|
|
2065
|
+
var _a;
|
|
2066
|
+
const obj = {};
|
|
2067
|
+
if (message.schemaName !== "") {
|
|
2068
|
+
obj.schemaName = message.schemaName;
|
|
1520
2069
|
}
|
|
1521
|
-
|
|
1522
|
-
obj.columns =
|
|
2070
|
+
if ((_a = message.columns) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2071
|
+
obj.columns = message.columns;
|
|
1523
2072
|
}
|
|
1524
2073
|
return obj;
|
|
1525
2074
|
},
|
|
1526
|
-
|
|
2075
|
+
create(base) {
|
|
2076
|
+
return exports.ColumnExistenceRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2077
|
+
},
|
|
2078
|
+
fromPartial(object) {
|
|
1527
2079
|
var _a, _b;
|
|
1528
|
-
|
|
1529
|
-
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a :
|
|
1530
|
-
message.columns = ((_b = object.columns) === null || _b === void 0 ? void 0 : _b.map(
|
|
2080
|
+
const message = createBaseColumnExistenceRequest();
|
|
2081
|
+
message.schemaName = (_a = object.schemaName) !== null && _a !== void 0 ? _a : "";
|
|
2082
|
+
message.columns = ((_b = object.columns) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
1531
2083
|
return message;
|
|
1532
2084
|
},
|
|
1533
2085
|
};
|
|
@@ -1535,53 +2087,110 @@ function createBaseColumnExistenceResponse() {
|
|
|
1535
2087
|
return { result: false };
|
|
1536
2088
|
}
|
|
1537
2089
|
exports.ColumnExistenceResponse = {
|
|
1538
|
-
encode
|
|
1539
|
-
if (writer === void 0) { writer = _m0.Writer.create(); }
|
|
2090
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1540
2091
|
if (message.result === true) {
|
|
1541
2092
|
writer.uint32(8).bool(message.result);
|
|
1542
2093
|
}
|
|
1543
2094
|
return writer;
|
|
1544
2095
|
},
|
|
1545
|
-
decode
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
2096
|
+
decode(input, length) {
|
|
2097
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2098
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2099
|
+
const message = createBaseColumnExistenceResponse();
|
|
1549
2100
|
while (reader.pos < end) {
|
|
1550
|
-
|
|
2101
|
+
const tag = reader.uint32();
|
|
1551
2102
|
switch (tag >>> 3) {
|
|
1552
2103
|
case 1:
|
|
2104
|
+
if (tag !== 8) {
|
|
2105
|
+
break;
|
|
2106
|
+
}
|
|
1553
2107
|
message.result = reader.bool();
|
|
1554
|
-
|
|
1555
|
-
default:
|
|
1556
|
-
reader.skipType(tag & 7);
|
|
1557
|
-
break;
|
|
2108
|
+
continue;
|
|
1558
2109
|
}
|
|
2110
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2111
|
+
break;
|
|
2112
|
+
}
|
|
2113
|
+
reader.skipType(tag & 7);
|
|
1559
2114
|
}
|
|
1560
2115
|
return message;
|
|
1561
2116
|
},
|
|
1562
|
-
fromJSON
|
|
1563
|
-
return {
|
|
1564
|
-
result: isSet(object.result) ? Boolean(object.result) : false,
|
|
1565
|
-
};
|
|
2117
|
+
fromJSON(object) {
|
|
2118
|
+
return { result: isSet(object.result) ? globalThis.Boolean(object.result) : false };
|
|
1566
2119
|
},
|
|
1567
|
-
toJSON
|
|
1568
|
-
|
|
1569
|
-
|
|
2120
|
+
toJSON(message) {
|
|
2121
|
+
const obj = {};
|
|
2122
|
+
if (message.result === true) {
|
|
2123
|
+
obj.result = message.result;
|
|
2124
|
+
}
|
|
1570
2125
|
return obj;
|
|
1571
2126
|
},
|
|
1572
|
-
|
|
2127
|
+
create(base) {
|
|
2128
|
+
return exports.ColumnExistenceResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2129
|
+
},
|
|
2130
|
+
fromPartial(object) {
|
|
1573
2131
|
var _a;
|
|
1574
|
-
|
|
2132
|
+
const message = createBaseColumnExistenceResponse();
|
|
1575
2133
|
message.result = (_a = object.result) !== null && _a !== void 0 ? _a : false;
|
|
1576
2134
|
return message;
|
|
1577
2135
|
},
|
|
1578
2136
|
};
|
|
2137
|
+
function createBaseGetDatabaseTypeResponse() {
|
|
2138
|
+
return { result: "" };
|
|
2139
|
+
}
|
|
2140
|
+
exports.GetDatabaseTypeResponse = {
|
|
2141
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2142
|
+
if (message.result !== "") {
|
|
2143
|
+
writer.uint32(10).string(message.result);
|
|
2144
|
+
}
|
|
2145
|
+
return writer;
|
|
2146
|
+
},
|
|
2147
|
+
decode(input, length) {
|
|
2148
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
2149
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2150
|
+
const message = createBaseGetDatabaseTypeResponse();
|
|
2151
|
+
while (reader.pos < end) {
|
|
2152
|
+
const tag = reader.uint32();
|
|
2153
|
+
switch (tag >>> 3) {
|
|
2154
|
+
case 1:
|
|
2155
|
+
if (tag !== 10) {
|
|
2156
|
+
break;
|
|
2157
|
+
}
|
|
2158
|
+
message.result = reader.string();
|
|
2159
|
+
continue;
|
|
2160
|
+
}
|
|
2161
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2162
|
+
break;
|
|
2163
|
+
}
|
|
2164
|
+
reader.skipType(tag & 7);
|
|
2165
|
+
}
|
|
2166
|
+
return message;
|
|
2167
|
+
},
|
|
2168
|
+
fromJSON(object) {
|
|
2169
|
+
return { result: isSet(object.result) ? globalThis.String(object.result) : "" };
|
|
2170
|
+
},
|
|
2171
|
+
toJSON(message) {
|
|
2172
|
+
const obj = {};
|
|
2173
|
+
if (message.result !== "") {
|
|
2174
|
+
obj.result = message.result;
|
|
2175
|
+
}
|
|
2176
|
+
return obj;
|
|
2177
|
+
},
|
|
2178
|
+
create(base) {
|
|
2179
|
+
return exports.GetDatabaseTypeResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2180
|
+
},
|
|
2181
|
+
fromPartial(object) {
|
|
2182
|
+
var _a;
|
|
2183
|
+
const message = createBaseGetDatabaseTypeResponse();
|
|
2184
|
+
message.result = (_a = object.result) !== null && _a !== void 0 ? _a : "";
|
|
2185
|
+
return message;
|
|
2186
|
+
},
|
|
2187
|
+
};
|
|
1579
2188
|
exports.DatabaseProviderDefinition = {
|
|
1580
|
-
name:
|
|
1581
|
-
fullName:
|
|
2189
|
+
name: "DatabaseProvider",
|
|
2190
|
+
fullName: "database.DatabaseProvider",
|
|
1582
2191
|
methods: {
|
|
1583
2192
|
createSchemaFromAdapter: {
|
|
1584
|
-
name:
|
|
2193
|
+
name: "CreateSchemaFromAdapter",
|
|
1585
2194
|
requestType: exports.CreateSchemaRequest,
|
|
1586
2195
|
requestStream: false,
|
|
1587
2196
|
responseType: exports.Schema,
|
|
@@ -1589,7 +2198,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1589
2198
|
options: {},
|
|
1590
2199
|
},
|
|
1591
2200
|
getSchema: {
|
|
1592
|
-
name:
|
|
2201
|
+
name: "GetSchema",
|
|
1593
2202
|
requestType: exports.GetSchemaRequest,
|
|
1594
2203
|
requestStream: false,
|
|
1595
2204
|
responseType: exports.Schema,
|
|
@@ -1597,7 +2206,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1597
2206
|
options: {},
|
|
1598
2207
|
},
|
|
1599
2208
|
getSchemas: {
|
|
1600
|
-
name:
|
|
2209
|
+
name: "GetSchemas",
|
|
1601
2210
|
requestType: exports.GetSchemasRequest,
|
|
1602
2211
|
requestStream: false,
|
|
1603
2212
|
responseType: exports.GetSchemasResponse,
|
|
@@ -1605,7 +2214,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1605
2214
|
options: {},
|
|
1606
2215
|
},
|
|
1607
2216
|
deleteSchema: {
|
|
1608
|
-
name:
|
|
2217
|
+
name: "DeleteSchema",
|
|
1609
2218
|
requestType: exports.DropCollectionRequest,
|
|
1610
2219
|
requestStream: false,
|
|
1611
2220
|
responseType: exports.DropCollectionResponse,
|
|
@@ -1613,7 +2222,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1613
2222
|
options: {},
|
|
1614
2223
|
},
|
|
1615
2224
|
setSchemaExtension: {
|
|
1616
|
-
name:
|
|
2225
|
+
name: "SetSchemaExtension",
|
|
1617
2226
|
requestType: exports.SchemaExtension,
|
|
1618
2227
|
requestStream: false,
|
|
1619
2228
|
responseType: exports.Schema,
|
|
@@ -1621,16 +2230,24 @@ exports.DatabaseProviderDefinition = {
|
|
|
1621
2230
|
options: {},
|
|
1622
2231
|
},
|
|
1623
2232
|
migrate: {
|
|
1624
|
-
name:
|
|
2233
|
+
name: "Migrate",
|
|
1625
2234
|
requestType: exports.MigrateRequest,
|
|
1626
2235
|
requestStream: false,
|
|
1627
2236
|
responseType: empty_1.Empty,
|
|
1628
2237
|
responseStream: false,
|
|
1629
2238
|
options: {},
|
|
1630
2239
|
},
|
|
2240
|
+
getDatabaseType: {
|
|
2241
|
+
name: "GetDatabaseType",
|
|
2242
|
+
requestType: empty_1.Empty,
|
|
2243
|
+
requestStream: false,
|
|
2244
|
+
responseType: exports.GetDatabaseTypeResponse,
|
|
2245
|
+
responseStream: false,
|
|
2246
|
+
options: {},
|
|
2247
|
+
},
|
|
1631
2248
|
/** Database queries */
|
|
1632
2249
|
findOne: {
|
|
1633
|
-
name:
|
|
2250
|
+
name: "findOne",
|
|
1634
2251
|
requestType: exports.FindOneRequest,
|
|
1635
2252
|
requestStream: false,
|
|
1636
2253
|
responseType: exports.QueryResponse,
|
|
@@ -1638,7 +2255,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1638
2255
|
options: {},
|
|
1639
2256
|
},
|
|
1640
2257
|
findMany: {
|
|
1641
|
-
name:
|
|
2258
|
+
name: "findMany",
|
|
1642
2259
|
requestType: exports.FindRequest,
|
|
1643
2260
|
requestStream: false,
|
|
1644
2261
|
responseType: exports.QueryResponse,
|
|
@@ -1646,7 +2263,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1646
2263
|
options: {},
|
|
1647
2264
|
},
|
|
1648
2265
|
create: {
|
|
1649
|
-
name:
|
|
2266
|
+
name: "create",
|
|
1650
2267
|
requestType: exports.QueryRequest,
|
|
1651
2268
|
requestStream: false,
|
|
1652
2269
|
responseType: exports.QueryResponse,
|
|
@@ -1654,7 +2271,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1654
2271
|
options: {},
|
|
1655
2272
|
},
|
|
1656
2273
|
createMany: {
|
|
1657
|
-
name:
|
|
2274
|
+
name: "createMany",
|
|
1658
2275
|
requestType: exports.QueryRequest,
|
|
1659
2276
|
requestStream: false,
|
|
1660
2277
|
responseType: exports.QueryResponse,
|
|
@@ -1662,7 +2279,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1662
2279
|
options: {},
|
|
1663
2280
|
},
|
|
1664
2281
|
deleteOne: {
|
|
1665
|
-
name:
|
|
2282
|
+
name: "deleteOne",
|
|
1666
2283
|
requestType: exports.QueryRequest,
|
|
1667
2284
|
requestStream: false,
|
|
1668
2285
|
responseType: exports.QueryResponse,
|
|
@@ -1670,7 +2287,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1670
2287
|
options: {},
|
|
1671
2288
|
},
|
|
1672
2289
|
deleteMany: {
|
|
1673
|
-
name:
|
|
2290
|
+
name: "deleteMany",
|
|
1674
2291
|
requestType: exports.QueryRequest,
|
|
1675
2292
|
requestStream: false,
|
|
1676
2293
|
responseType: exports.QueryResponse,
|
|
@@ -1678,7 +2295,15 @@ exports.DatabaseProviderDefinition = {
|
|
|
1678
2295
|
options: {},
|
|
1679
2296
|
},
|
|
1680
2297
|
findByIdAndUpdate: {
|
|
1681
|
-
name:
|
|
2298
|
+
name: "findByIdAndUpdate",
|
|
2299
|
+
requestType: exports.UpdateRequest,
|
|
2300
|
+
requestStream: false,
|
|
2301
|
+
responseType: exports.QueryResponse,
|
|
2302
|
+
responseStream: false,
|
|
2303
|
+
options: {},
|
|
2304
|
+
},
|
|
2305
|
+
findByIdAndReplace: {
|
|
2306
|
+
name: "findByIdAndReplace",
|
|
1682
2307
|
requestType: exports.UpdateRequest,
|
|
1683
2308
|
requestStream: false,
|
|
1684
2309
|
responseType: exports.QueryResponse,
|
|
@@ -1686,7 +2311,23 @@ exports.DatabaseProviderDefinition = {
|
|
|
1686
2311
|
options: {},
|
|
1687
2312
|
},
|
|
1688
2313
|
updateMany: {
|
|
1689
|
-
name:
|
|
2314
|
+
name: "updateMany",
|
|
2315
|
+
requestType: exports.UpdateManyRequest,
|
|
2316
|
+
requestStream: false,
|
|
2317
|
+
responseType: exports.QueryResponse,
|
|
2318
|
+
responseStream: false,
|
|
2319
|
+
options: {},
|
|
2320
|
+
},
|
|
2321
|
+
updateOne: {
|
|
2322
|
+
name: "updateOne",
|
|
2323
|
+
requestType: exports.UpdateManyRequest,
|
|
2324
|
+
requestStream: false,
|
|
2325
|
+
responseType: exports.QueryResponse,
|
|
2326
|
+
responseStream: false,
|
|
2327
|
+
options: {},
|
|
2328
|
+
},
|
|
2329
|
+
replaceOne: {
|
|
2330
|
+
name: "replaceOne",
|
|
1690
2331
|
requestType: exports.UpdateManyRequest,
|
|
1691
2332
|
requestStream: false,
|
|
1692
2333
|
responseType: exports.QueryResponse,
|
|
@@ -1694,7 +2335,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1694
2335
|
options: {},
|
|
1695
2336
|
},
|
|
1696
2337
|
countDocuments: {
|
|
1697
|
-
name:
|
|
2338
|
+
name: "countDocuments",
|
|
1698
2339
|
requestType: exports.QueryRequest,
|
|
1699
2340
|
requestStream: false,
|
|
1700
2341
|
responseType: exports.QueryResponse,
|
|
@@ -1702,15 +2343,31 @@ exports.DatabaseProviderDefinition = {
|
|
|
1702
2343
|
options: {},
|
|
1703
2344
|
},
|
|
1704
2345
|
rawQuery: {
|
|
1705
|
-
name:
|
|
2346
|
+
name: "rawQuery",
|
|
1706
2347
|
requestType: exports.RawQueryRequest,
|
|
1707
2348
|
requestStream: false,
|
|
1708
2349
|
responseType: exports.QueryResponse,
|
|
1709
2350
|
responseStream: false,
|
|
1710
2351
|
options: {},
|
|
1711
2352
|
},
|
|
2353
|
+
createView: {
|
|
2354
|
+
name: "createView",
|
|
2355
|
+
requestType: exports.CreateViewRequest,
|
|
2356
|
+
requestStream: false,
|
|
2357
|
+
responseType: empty_1.Empty,
|
|
2358
|
+
responseStream: false,
|
|
2359
|
+
options: {},
|
|
2360
|
+
},
|
|
2361
|
+
deleteView: {
|
|
2362
|
+
name: "deleteView",
|
|
2363
|
+
requestType: exports.DeleteViewRequest,
|
|
2364
|
+
requestStream: false,
|
|
2365
|
+
responseType: empty_1.Empty,
|
|
2366
|
+
responseStream: false,
|
|
2367
|
+
options: {},
|
|
2368
|
+
},
|
|
1712
2369
|
columnExistence: {
|
|
1713
|
-
name:
|
|
2370
|
+
name: "columnExistence",
|
|
1714
2371
|
requestType: exports.ColumnExistenceRequest,
|
|
1715
2372
|
requestStream: false,
|
|
1716
2373
|
responseType: exports.ColumnExistenceResponse,
|
|
@@ -1720,7 +2377,7 @@ exports.DatabaseProviderDefinition = {
|
|
|
1720
2377
|
},
|
|
1721
2378
|
};
|
|
1722
2379
|
function isObject(value) {
|
|
1723
|
-
return typeof value ===
|
|
2380
|
+
return typeof value === "object" && value !== null;
|
|
1724
2381
|
}
|
|
1725
2382
|
function isSet(value) {
|
|
1726
2383
|
return value !== null && value !== undefined;
|