@514labs/moose-proto 0.6.457 → 0.6.458
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.
|
@@ -810,7 +810,8 @@ var InfrastructureMap$Type = class extends MessageType3 {
|
|
|
810
810
|
},
|
|
811
811
|
{ no: 16, name: "materialized_views", kind: "map", K: 9, V: { kind: "message", T: () => MaterializedView } },
|
|
812
812
|
{ no: 17, name: "views", kind: "map", K: 9, V: { kind: "message", T: () => View } },
|
|
813
|
-
{ no: 18, name: "workflows", kind: "map", K: 9, V: { kind: "message", T: () => Workflow } }
|
|
813
|
+
{ no: 18, name: "workflows", kind: "map", K: 9, V: { kind: "message", T: () => Workflow } },
|
|
814
|
+
{ no: 20, name: "select_row_policies", kind: "map", K: 9, V: { kind: "message", T: () => SelectRowPolicy } }
|
|
814
815
|
]);
|
|
815
816
|
}
|
|
816
817
|
create(value) {
|
|
@@ -831,6 +832,7 @@ var InfrastructureMap$Type = class extends MessageType3 {
|
|
|
831
832
|
message.materializedViews = {};
|
|
832
833
|
message.views = {};
|
|
833
834
|
message.workflows = {};
|
|
835
|
+
message.selectRowPolicies = {};
|
|
834
836
|
if (value !== void 0)
|
|
835
837
|
reflectionMergePartial3(this, message, value);
|
|
836
838
|
return message;
|
|
@@ -904,6 +906,10 @@ var InfrastructureMap$Type = class extends MessageType3 {
|
|
|
904
906
|
18:
|
|
905
907
|
this.binaryReadMap18(message.workflows, reader, options);
|
|
906
908
|
break;
|
|
909
|
+
case /* map<string, moose.proto.SelectRowPolicy> select_row_policies */
|
|
910
|
+
20:
|
|
911
|
+
this.binaryReadMap20(message.selectRowPolicies, reader, options);
|
|
912
|
+
break;
|
|
907
913
|
default:
|
|
908
914
|
let u = options.readUnknownField;
|
|
909
915
|
if (u === "throw")
|
|
@@ -1153,6 +1159,23 @@ var InfrastructureMap$Type = class extends MessageType3 {
|
|
|
1153
1159
|
}
|
|
1154
1160
|
map[key ?? ""] = val ?? Workflow.create();
|
|
1155
1161
|
}
|
|
1162
|
+
binaryReadMap20(map, reader, options) {
|
|
1163
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
1164
|
+
while (reader.pos < end) {
|
|
1165
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1166
|
+
switch (fieldNo) {
|
|
1167
|
+
case 1:
|
|
1168
|
+
key = reader.string();
|
|
1169
|
+
break;
|
|
1170
|
+
case 2:
|
|
1171
|
+
val = SelectRowPolicy.internalBinaryRead(reader, reader.uint32(), options);
|
|
1172
|
+
break;
|
|
1173
|
+
default:
|
|
1174
|
+
throw new globalThis.Error("unknown map entry field for moose.proto.InfrastructureMap.select_row_policies");
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
map[key ?? ""] = val ?? SelectRowPolicy.create();
|
|
1178
|
+
}
|
|
1156
1179
|
internalBinaryWrite(message, writer, options) {
|
|
1157
1180
|
for (let k of globalThis.Object.keys(message.topics)) {
|
|
1158
1181
|
writer.tag(1, WireType3.LengthDelimited).fork().tag(1, WireType3.LengthDelimited).string(k);
|
|
@@ -1242,6 +1265,12 @@ var InfrastructureMap$Type = class extends MessageType3 {
|
|
|
1242
1265
|
}
|
|
1243
1266
|
if (message.mooseVersion !== "")
|
|
1244
1267
|
writer.tag(19, WireType3.LengthDelimited).string(message.mooseVersion);
|
|
1268
|
+
for (let k of globalThis.Object.keys(message.selectRowPolicies)) {
|
|
1269
|
+
writer.tag(20, WireType3.LengthDelimited).fork().tag(1, WireType3.LengthDelimited).string(k);
|
|
1270
|
+
writer.tag(2, WireType3.LengthDelimited).fork();
|
|
1271
|
+
SelectRowPolicy.internalBinaryWrite(message.selectRowPolicies[k], writer, options);
|
|
1272
|
+
writer.join().join();
|
|
1273
|
+
}
|
|
1245
1274
|
let u = options.writeUnknownFields;
|
|
1246
1275
|
if (u !== false)
|
|
1247
1276
|
(u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4786,6 +4815,14 @@ var InfrastructureSignature$Type = class extends MessageType3 {
|
|
|
4786
4815
|
oneof: "signature",
|
|
4787
4816
|
T: 9
|
|
4788
4817
|
/*ScalarType.STRING*/
|
|
4818
|
+
},
|
|
4819
|
+
{
|
|
4820
|
+
no: 9,
|
|
4821
|
+
name: "select_row_policy_id",
|
|
4822
|
+
kind: "scalar",
|
|
4823
|
+
oneof: "signature",
|
|
4824
|
+
T: 9
|
|
4825
|
+
/*ScalarType.STRING*/
|
|
4789
4826
|
}
|
|
4790
4827
|
]);
|
|
4791
4828
|
}
|
|
@@ -4857,6 +4894,13 @@ var InfrastructureSignature$Type = class extends MessageType3 {
|
|
|
4857
4894
|
viewId: reader.string()
|
|
4858
4895
|
};
|
|
4859
4896
|
break;
|
|
4897
|
+
case /* string select_row_policy_id */
|
|
4898
|
+
9:
|
|
4899
|
+
message.signature = {
|
|
4900
|
+
oneofKind: "selectRowPolicyId",
|
|
4901
|
+
selectRowPolicyId: reader.string()
|
|
4902
|
+
};
|
|
4903
|
+
break;
|
|
4860
4904
|
default:
|
|
4861
4905
|
let u = options.readUnknownField;
|
|
4862
4906
|
if (u === "throw")
|
|
@@ -4885,6 +4929,8 @@ var InfrastructureSignature$Type = class extends MessageType3 {
|
|
|
4885
4929
|
writer.tag(7, WireType3.LengthDelimited).string(message.signature.materializedViewId);
|
|
4886
4930
|
if (message.signature.oneofKind === "viewId")
|
|
4887
4931
|
writer.tag(8, WireType3.LengthDelimited).string(message.signature.viewId);
|
|
4932
|
+
if (message.signature.oneofKind === "selectRowPolicyId")
|
|
4933
|
+
writer.tag(9, WireType3.LengthDelimited).string(message.signature.selectRowPolicyId);
|
|
4888
4934
|
let u = options.writeUnknownFields;
|
|
4889
4935
|
if (u !== false)
|
|
4890
4936
|
(u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5148,6 +5194,91 @@ var Workflow$Type = class extends MessageType3 {
|
|
|
5148
5194
|
}
|
|
5149
5195
|
};
|
|
5150
5196
|
var Workflow = new Workflow$Type();
|
|
5197
|
+
var SelectRowPolicy$Type = class extends MessageType3 {
|
|
5198
|
+
constructor() {
|
|
5199
|
+
super("moose.proto.SelectRowPolicy", [
|
|
5200
|
+
{
|
|
5201
|
+
no: 1,
|
|
5202
|
+
name: "name",
|
|
5203
|
+
kind: "scalar",
|
|
5204
|
+
T: 9
|
|
5205
|
+
/*ScalarType.STRING*/
|
|
5206
|
+
},
|
|
5207
|
+
{ no: 2, name: "tables", kind: "message", repeat: 2, T: () => TableReference },
|
|
5208
|
+
{
|
|
5209
|
+
no: 3,
|
|
5210
|
+
name: "column",
|
|
5211
|
+
kind: "scalar",
|
|
5212
|
+
T: 9
|
|
5213
|
+
/*ScalarType.STRING*/
|
|
5214
|
+
},
|
|
5215
|
+
{
|
|
5216
|
+
no: 4,
|
|
5217
|
+
name: "claim",
|
|
5218
|
+
kind: "scalar",
|
|
5219
|
+
T: 9
|
|
5220
|
+
/*ScalarType.STRING*/
|
|
5221
|
+
}
|
|
5222
|
+
]);
|
|
5223
|
+
}
|
|
5224
|
+
create(value) {
|
|
5225
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
5226
|
+
message.name = "";
|
|
5227
|
+
message.tables = [];
|
|
5228
|
+
message.column = "";
|
|
5229
|
+
message.claim = "";
|
|
5230
|
+
if (value !== void 0)
|
|
5231
|
+
reflectionMergePartial3(this, message, value);
|
|
5232
|
+
return message;
|
|
5233
|
+
}
|
|
5234
|
+
internalBinaryRead(reader, length, options, target) {
|
|
5235
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
5236
|
+
while (reader.pos < end) {
|
|
5237
|
+
let [fieldNo, wireType] = reader.tag();
|
|
5238
|
+
switch (fieldNo) {
|
|
5239
|
+
case /* string name */
|
|
5240
|
+
1:
|
|
5241
|
+
message.name = reader.string();
|
|
5242
|
+
break;
|
|
5243
|
+
case /* repeated moose.proto.TableReference tables */
|
|
5244
|
+
2:
|
|
5245
|
+
message.tables.push(TableReference.internalBinaryRead(reader, reader.uint32(), options));
|
|
5246
|
+
break;
|
|
5247
|
+
case /* string column */
|
|
5248
|
+
3:
|
|
5249
|
+
message.column = reader.string();
|
|
5250
|
+
break;
|
|
5251
|
+
case /* string claim */
|
|
5252
|
+
4:
|
|
5253
|
+
message.claim = reader.string();
|
|
5254
|
+
break;
|
|
5255
|
+
default:
|
|
5256
|
+
let u = options.readUnknownField;
|
|
5257
|
+
if (u === "throw")
|
|
5258
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
5259
|
+
let d = reader.skip(wireType);
|
|
5260
|
+
if (u !== false)
|
|
5261
|
+
(u === true ? UnknownFieldHandler3.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
5262
|
+
}
|
|
5263
|
+
}
|
|
5264
|
+
return message;
|
|
5265
|
+
}
|
|
5266
|
+
internalBinaryWrite(message, writer, options) {
|
|
5267
|
+
if (message.name !== "")
|
|
5268
|
+
writer.tag(1, WireType3.LengthDelimited).string(message.name);
|
|
5269
|
+
for (let i = 0; i < message.tables.length; i++)
|
|
5270
|
+
TableReference.internalBinaryWrite(message.tables[i], writer.tag(2, WireType3.LengthDelimited).fork(), options).join();
|
|
5271
|
+
if (message.column !== "")
|
|
5272
|
+
writer.tag(3, WireType3.LengthDelimited).string(message.column);
|
|
5273
|
+
if (message.claim !== "")
|
|
5274
|
+
writer.tag(4, WireType3.LengthDelimited).string(message.claim);
|
|
5275
|
+
let u = options.writeUnknownFields;
|
|
5276
|
+
if (u !== false)
|
|
5277
|
+
(u == true ? UnknownFieldHandler3.onWrite : u)(this.typeName, message, writer);
|
|
5278
|
+
return writer;
|
|
5279
|
+
}
|
|
5280
|
+
};
|
|
5281
|
+
var SelectRowPolicy = new SelectRowPolicy$Type();
|
|
5151
5282
|
export {
|
|
5152
5283
|
ApiEndpoint,
|
|
5153
5284
|
Column,
|
|
@@ -5185,6 +5316,7 @@ export {
|
|
|
5185
5316
|
SchemaRegistry_Encoding,
|
|
5186
5317
|
SeedFilter,
|
|
5187
5318
|
SelectQuery,
|
|
5319
|
+
SelectRowPolicy,
|
|
5188
5320
|
SimpleColumnType,
|
|
5189
5321
|
SourceLocation,
|
|
5190
5322
|
SqlResource,
|