@514labs/moose-proto 0.6.347 → 0.6.348

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.
@@ -412,6 +412,7 @@ declare class InfrastructureMap$Type extends MessageType<InfrastructureMap> {
412
412
  private binaryReadMap13;
413
413
  private binaryReadMap16;
414
414
  private binaryReadMap17;
415
+ private binaryReadMap18;
415
416
  internalBinaryWrite(message: InfrastructureMap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
416
417
  }
417
418
  /**
@@ -508,6 +509,14 @@ interface InfrastructureMap {
508
509
  views: {
509
510
  [key: string]: View;
510
511
  };
512
+ /**
513
+ * Workflow definitions
514
+ *
515
+ * @generated from protobuf field: map<string, moose.proto.Workflow> workflows = 18
516
+ */
517
+ workflows: {
518
+ [key: string]: Workflow;
519
+ };
511
520
  }
512
521
  /**
513
522
  * @generated MessageType for protobuf message moose.proto.InfrastructureMap
@@ -2057,5 +2066,50 @@ interface WebAppMetadata {
2057
2066
  * @generated MessageType for protobuf message moose.proto.WebAppMetadata
2058
2067
  */
2059
2068
  declare const WebAppMetadata: WebAppMetadata$Type;
2069
+ declare class Workflow$Type extends MessageType<Workflow> {
2070
+ constructor();
2071
+ create(value?: PartialMessage<Workflow>): Workflow;
2072
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Workflow): Workflow;
2073
+ internalBinaryWrite(message: Workflow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2074
+ }
2075
+ /**
2076
+ * @generated from protobuf message moose.proto.Workflow
2077
+ */
2078
+ interface Workflow {
2079
+ /**
2080
+ * Unique workflow identifier
2081
+ *
2082
+ * @generated from protobuf field: string name = 1
2083
+ */
2084
+ name: string;
2085
+ /**
2086
+ * Cron schedule for automatic execution
2087
+ *
2088
+ * @generated from protobuf field: string schedule = 2
2089
+ */
2090
+ schedule: string;
2091
+ /**
2092
+ * Number of retry attempts on failure
2093
+ *
2094
+ * @generated from protobuf field: uint32 retries = 3
2095
+ */
2096
+ retries: number;
2097
+ /**
2098
+ * Workflow timeout
2099
+ *
2100
+ * @generated from protobuf field: string timeout = 4
2101
+ */
2102
+ timeout: string;
2103
+ /**
2104
+ * Programming language of the workflow
2105
+ *
2106
+ * @generated from protobuf field: string language = 5
2107
+ */
2108
+ language: string;
2109
+ }
2110
+ /**
2111
+ * @generated MessageType for protobuf message moose.proto.Workflow
2112
+ */
2113
+ declare const Workflow: Workflow$Type;
2060
2114
 
2061
- export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SelectQuery, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableIndex, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata };
2115
+ export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SelectQuery, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableIndex, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
@@ -412,6 +412,7 @@ declare class InfrastructureMap$Type extends MessageType<InfrastructureMap> {
412
412
  private binaryReadMap13;
413
413
  private binaryReadMap16;
414
414
  private binaryReadMap17;
415
+ private binaryReadMap18;
415
416
  internalBinaryWrite(message: InfrastructureMap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
416
417
  }
417
418
  /**
@@ -508,6 +509,14 @@ interface InfrastructureMap {
508
509
  views: {
509
510
  [key: string]: View;
510
511
  };
512
+ /**
513
+ * Workflow definitions
514
+ *
515
+ * @generated from protobuf field: map<string, moose.proto.Workflow> workflows = 18
516
+ */
517
+ workflows: {
518
+ [key: string]: Workflow;
519
+ };
511
520
  }
512
521
  /**
513
522
  * @generated MessageType for protobuf message moose.proto.InfrastructureMap
@@ -2057,5 +2066,50 @@ interface WebAppMetadata {
2057
2066
  * @generated MessageType for protobuf message moose.proto.WebAppMetadata
2058
2067
  */
2059
2068
  declare const WebAppMetadata: WebAppMetadata$Type;
2069
+ declare class Workflow$Type extends MessageType<Workflow> {
2070
+ constructor();
2071
+ create(value?: PartialMessage<Workflow>): Workflow;
2072
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Workflow): Workflow;
2073
+ internalBinaryWrite(message: Workflow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2074
+ }
2075
+ /**
2076
+ * @generated from protobuf message moose.proto.Workflow
2077
+ */
2078
+ interface Workflow {
2079
+ /**
2080
+ * Unique workflow identifier
2081
+ *
2082
+ * @generated from protobuf field: string name = 1
2083
+ */
2084
+ name: string;
2085
+ /**
2086
+ * Cron schedule for automatic execution
2087
+ *
2088
+ * @generated from protobuf field: string schedule = 2
2089
+ */
2090
+ schedule: string;
2091
+ /**
2092
+ * Number of retry attempts on failure
2093
+ *
2094
+ * @generated from protobuf field: uint32 retries = 3
2095
+ */
2096
+ retries: number;
2097
+ /**
2098
+ * Workflow timeout
2099
+ *
2100
+ * @generated from protobuf field: string timeout = 4
2101
+ */
2102
+ timeout: string;
2103
+ /**
2104
+ * Programming language of the workflow
2105
+ *
2106
+ * @generated from protobuf field: string language = 5
2107
+ */
2108
+ language: string;
2109
+ }
2110
+ /**
2111
+ * @generated MessageType for protobuf message moose.proto.Workflow
2112
+ */
2113
+ declare const Workflow: Workflow$Type;
2060
2114
 
2061
- export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SelectQuery, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableIndex, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata };
2115
+ export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SelectQuery, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableIndex, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
@@ -69,7 +69,8 @@ __export(infrastructure_map_exports, {
69
69
  Tuple: () => Tuple,
70
70
  View: () => View,
71
71
  WebApp: () => WebApp,
72
- WebAppMetadata: () => WebAppMetadata
72
+ WebAppMetadata: () => WebAppMetadata,
73
+ Workflow: () => Workflow
73
74
  });
74
75
  module.exports = __toCommonJS(infrastructure_map_exports);
75
76
  var import_runtime13 = require("@protobuf-ts/runtime");
@@ -875,7 +876,8 @@ var InfrastructureMap$Type = class extends import_runtime16.MessageType {
875
876
  /*ScalarType.STRING*/
876
877
  },
877
878
  { no: 16, name: "materialized_views", kind: "map", K: 9, V: { kind: "message", T: () => MaterializedView } },
878
- { no: 17, name: "views", kind: "map", K: 9, V: { kind: "message", T: () => View } }
879
+ { no: 17, name: "views", kind: "map", K: 9, V: { kind: "message", T: () => View } },
880
+ { no: 18, name: "workflows", kind: "map", K: 9, V: { kind: "message", T: () => Workflow } }
879
881
  ]);
880
882
  }
881
883
  create(value) {
@@ -894,6 +896,7 @@ var InfrastructureMap$Type = class extends import_runtime16.MessageType {
894
896
  message.defaultDatabase = "";
895
897
  message.materializedViews = {};
896
898
  message.views = {};
899
+ message.workflows = {};
897
900
  if (value !== void 0)
898
901
  (0, import_runtime15.reflectionMergePartial)(this, message, value);
899
902
  return message;
@@ -959,6 +962,10 @@ var InfrastructureMap$Type = class extends import_runtime16.MessageType {
959
962
  17:
960
963
  this.binaryReadMap17(message.views, reader, options);
961
964
  break;
965
+ case /* map<string, moose.proto.Workflow> workflows */
966
+ 18:
967
+ this.binaryReadMap18(message.workflows, reader, options);
968
+ break;
962
969
  default:
963
970
  let u = options.readUnknownField;
964
971
  if (u === "throw")
@@ -1191,6 +1198,23 @@ var InfrastructureMap$Type = class extends import_runtime16.MessageType {
1191
1198
  }
1192
1199
  map[key ?? ""] = val ?? View.create();
1193
1200
  }
1201
+ binaryReadMap18(map, reader, options) {
1202
+ let len = reader.uint32(), end = reader.pos + len, key, val;
1203
+ while (reader.pos < end) {
1204
+ let [fieldNo, wireType] = reader.tag();
1205
+ switch (fieldNo) {
1206
+ case 1:
1207
+ key = reader.string();
1208
+ break;
1209
+ case 2:
1210
+ val = Workflow.internalBinaryRead(reader, reader.uint32(), options);
1211
+ break;
1212
+ default:
1213
+ throw new globalThis.Error("unknown map entry field for moose.proto.InfrastructureMap.workflows");
1214
+ }
1215
+ }
1216
+ map[key ?? ""] = val ?? Workflow.create();
1217
+ }
1194
1218
  internalBinaryWrite(message, writer, options) {
1195
1219
  for (let k of globalThis.Object.keys(message.topics)) {
1196
1220
  writer.tag(1, import_runtime13.WireType.LengthDelimited).fork().tag(1, import_runtime13.WireType.LengthDelimited).string(k);
@@ -1272,6 +1296,12 @@ var InfrastructureMap$Type = class extends import_runtime16.MessageType {
1272
1296
  View.internalBinaryWrite(message.views[k], writer, options);
1273
1297
  writer.join().join();
1274
1298
  }
1299
+ for (let k of globalThis.Object.keys(message.workflows)) {
1300
+ writer.tag(18, import_runtime13.WireType.LengthDelimited).fork().tag(1, import_runtime13.WireType.LengthDelimited).string(k);
1301
+ writer.tag(2, import_runtime13.WireType.LengthDelimited).fork();
1302
+ Workflow.internalBinaryWrite(message.workflows[k], writer, options);
1303
+ writer.join().join();
1304
+ }
1275
1305
  let u = options.writeUnknownFields;
1276
1306
  if (u !== false)
1277
1307
  (u == true ? import_runtime14.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4847,6 +4877,111 @@ var WebAppMetadata$Type = class extends import_runtime16.MessageType {
4847
4877
  }
4848
4878
  };
4849
4879
  var WebAppMetadata = new WebAppMetadata$Type();
4880
+ var Workflow$Type = class extends import_runtime16.MessageType {
4881
+ constructor() {
4882
+ super("moose.proto.Workflow", [
4883
+ {
4884
+ no: 1,
4885
+ name: "name",
4886
+ kind: "scalar",
4887
+ T: 9
4888
+ /*ScalarType.STRING*/
4889
+ },
4890
+ {
4891
+ no: 2,
4892
+ name: "schedule",
4893
+ kind: "scalar",
4894
+ T: 9
4895
+ /*ScalarType.STRING*/
4896
+ },
4897
+ {
4898
+ no: 3,
4899
+ name: "retries",
4900
+ kind: "scalar",
4901
+ T: 13
4902
+ /*ScalarType.UINT32*/
4903
+ },
4904
+ {
4905
+ no: 4,
4906
+ name: "timeout",
4907
+ kind: "scalar",
4908
+ T: 9
4909
+ /*ScalarType.STRING*/
4910
+ },
4911
+ {
4912
+ no: 5,
4913
+ name: "language",
4914
+ kind: "scalar",
4915
+ T: 9
4916
+ /*ScalarType.STRING*/
4917
+ }
4918
+ ]);
4919
+ }
4920
+ create(value) {
4921
+ const message = globalThis.Object.create(this.messagePrototype);
4922
+ message.name = "";
4923
+ message.schedule = "";
4924
+ message.retries = 0;
4925
+ message.timeout = "";
4926
+ message.language = "";
4927
+ if (value !== void 0)
4928
+ (0, import_runtime15.reflectionMergePartial)(this, message, value);
4929
+ return message;
4930
+ }
4931
+ internalBinaryRead(reader, length, options, target) {
4932
+ let message = target ?? this.create(), end = reader.pos + length;
4933
+ while (reader.pos < end) {
4934
+ let [fieldNo, wireType] = reader.tag();
4935
+ switch (fieldNo) {
4936
+ case /* string name */
4937
+ 1:
4938
+ message.name = reader.string();
4939
+ break;
4940
+ case /* string schedule */
4941
+ 2:
4942
+ message.schedule = reader.string();
4943
+ break;
4944
+ case /* uint32 retries */
4945
+ 3:
4946
+ message.retries = reader.uint32();
4947
+ break;
4948
+ case /* string timeout */
4949
+ 4:
4950
+ message.timeout = reader.string();
4951
+ break;
4952
+ case /* string language */
4953
+ 5:
4954
+ message.language = reader.string();
4955
+ break;
4956
+ default:
4957
+ let u = options.readUnknownField;
4958
+ if (u === "throw")
4959
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4960
+ let d = reader.skip(wireType);
4961
+ if (u !== false)
4962
+ (u === true ? import_runtime14.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4963
+ }
4964
+ }
4965
+ return message;
4966
+ }
4967
+ internalBinaryWrite(message, writer, options) {
4968
+ if (message.name !== "")
4969
+ writer.tag(1, import_runtime13.WireType.LengthDelimited).string(message.name);
4970
+ if (message.schedule !== "")
4971
+ writer.tag(2, import_runtime13.WireType.LengthDelimited).string(message.schedule);
4972
+ if (message.retries !== 0)
4973
+ writer.tag(3, import_runtime13.WireType.Varint).uint32(message.retries);
4974
+ if (message.timeout !== "")
4975
+ writer.tag(4, import_runtime13.WireType.LengthDelimited).string(message.timeout);
4976
+ if (message.language !== "")
4977
+ writer.tag(5, import_runtime13.WireType.LengthDelimited).string(message.language);
4978
+ let u = options.writeUnknownFields;
4979
+ if (u !== false)
4980
+ (u == true ? import_runtime14.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4981
+ return writer;
4982
+ }
4983
+ };
4984
+ var Workflow = new Workflow$Type();
4850
4985
  // Annotate the CommonJS export names for ESM import in node:
4851
4986
  0 && (module.exports = {
4852
4987
  ApiEndpoint,
@@ -4898,6 +5033,7 @@ var WebAppMetadata = new WebAppMetadata$Type();
4898
5033
  Tuple,
4899
5034
  View,
4900
5035
  WebApp,
4901
- WebAppMetadata
5036
+ WebAppMetadata,
5037
+ Workflow
4902
5038
  });
4903
5039
  //# sourceMappingURL=infrastructure_map.js.map