@sentio/protos 2.62.0-rc.2 → 2.62.0-rc.4
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/lib/processor/protos/processor.d.ts +8 -17
- package/lib/processor/protos/processor.d.ts.map +1 -1
- package/lib/processor/protos/processor.js +48 -163
- package/lib/processor/protos/processor.js.map +1 -1
- package/lib/service/common/protos/common.d.ts +1 -0
- package/lib/service/common/protos/common.d.ts.map +1 -1
- package/lib/service/common/protos/common.js +6 -0
- package/lib/service/common/protos/common.js.map +1 -1
- package/package.json +3 -4
- package/src/processor/protos/processor.ts +58 -189
- package/src/service/common/protos/common.ts +6 -0
|
@@ -377,6 +377,37 @@ export function logLevelToJSON(object) {
|
|
|
377
377
|
return "UNRECOGNIZED";
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
+
export var ExecutionConfig_HandlerOrderInsideTransaction;
|
|
381
|
+
(function (ExecutionConfig_HandlerOrderInsideTransaction) {
|
|
382
|
+
ExecutionConfig_HandlerOrderInsideTransaction[ExecutionConfig_HandlerOrderInsideTransaction["BY_LOG_INDEX"] = 0] = "BY_LOG_INDEX";
|
|
383
|
+
ExecutionConfig_HandlerOrderInsideTransaction[ExecutionConfig_HandlerOrderInsideTransaction["BY_PROCESSOR_AND_LOG_INDEX"] = 1] = "BY_PROCESSOR_AND_LOG_INDEX";
|
|
384
|
+
ExecutionConfig_HandlerOrderInsideTransaction[ExecutionConfig_HandlerOrderInsideTransaction["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
385
|
+
})(ExecutionConfig_HandlerOrderInsideTransaction || (ExecutionConfig_HandlerOrderInsideTransaction = {}));
|
|
386
|
+
export function executionConfig_HandlerOrderInsideTransactionFromJSON(object) {
|
|
387
|
+
switch (object) {
|
|
388
|
+
case 0:
|
|
389
|
+
case "BY_LOG_INDEX":
|
|
390
|
+
return ExecutionConfig_HandlerOrderInsideTransaction.BY_LOG_INDEX;
|
|
391
|
+
case 1:
|
|
392
|
+
case "BY_PROCESSOR_AND_LOG_INDEX":
|
|
393
|
+
return ExecutionConfig_HandlerOrderInsideTransaction.BY_PROCESSOR_AND_LOG_INDEX;
|
|
394
|
+
case -1:
|
|
395
|
+
case "UNRECOGNIZED":
|
|
396
|
+
default:
|
|
397
|
+
return ExecutionConfig_HandlerOrderInsideTransaction.UNRECOGNIZED;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
export function executionConfig_HandlerOrderInsideTransactionToJSON(object) {
|
|
401
|
+
switch (object) {
|
|
402
|
+
case ExecutionConfig_HandlerOrderInsideTransaction.BY_LOG_INDEX:
|
|
403
|
+
return "BY_LOG_INDEX";
|
|
404
|
+
case ExecutionConfig_HandlerOrderInsideTransaction.BY_PROCESSOR_AND_LOG_INDEX:
|
|
405
|
+
return "BY_PROCESSOR_AND_LOG_INDEX";
|
|
406
|
+
case ExecutionConfig_HandlerOrderInsideTransaction.UNRECOGNIZED:
|
|
407
|
+
default:
|
|
408
|
+
return "UNRECOGNIZED";
|
|
409
|
+
}
|
|
410
|
+
}
|
|
380
411
|
export var TotalPerEntityAggregation_Type;
|
|
381
412
|
(function (TotalPerEntityAggregation_Type) {
|
|
382
413
|
TotalPerEntityAggregation_Type[TotalPerEntityAggregation_Type["AVG"] = 0] = "AVG";
|
|
@@ -735,6 +766,7 @@ function createBaseExecutionConfig() {
|
|
|
735
766
|
return {
|
|
736
767
|
sequential: false,
|
|
737
768
|
forceExactBlockTime: false,
|
|
769
|
+
handlerOrderInsideTransaction: 0,
|
|
738
770
|
processBindingTimeout: 0,
|
|
739
771
|
skipStartBlockValidation: false,
|
|
740
772
|
rpcRetryTimes: 0,
|
|
@@ -749,6 +781,9 @@ export const ExecutionConfig = {
|
|
|
749
781
|
if (message.forceExactBlockTime !== false) {
|
|
750
782
|
writer.uint32(16).bool(message.forceExactBlockTime);
|
|
751
783
|
}
|
|
784
|
+
if (message.handlerOrderInsideTransaction !== 0) {
|
|
785
|
+
writer.uint32(56).int32(message.handlerOrderInsideTransaction);
|
|
786
|
+
}
|
|
752
787
|
if (message.processBindingTimeout !== 0) {
|
|
753
788
|
writer.uint32(24).int32(message.processBindingTimeout);
|
|
754
789
|
}
|
|
@@ -782,6 +817,12 @@ export const ExecutionConfig = {
|
|
|
782
817
|
}
|
|
783
818
|
message.forceExactBlockTime = reader.bool();
|
|
784
819
|
continue;
|
|
820
|
+
case 7:
|
|
821
|
+
if (tag !== 56) {
|
|
822
|
+
break;
|
|
823
|
+
}
|
|
824
|
+
message.handlerOrderInsideTransaction = reader.int32();
|
|
825
|
+
continue;
|
|
785
826
|
case 3:
|
|
786
827
|
if (tag !== 24) {
|
|
787
828
|
break;
|
|
@@ -818,6 +859,9 @@ export const ExecutionConfig = {
|
|
|
818
859
|
return {
|
|
819
860
|
sequential: isSet(object.sequential) ? globalThis.Boolean(object.sequential) : false,
|
|
820
861
|
forceExactBlockTime: isSet(object.forceExactBlockTime) ? globalThis.Boolean(object.forceExactBlockTime) : false,
|
|
862
|
+
handlerOrderInsideTransaction: isSet(object.handlerOrderInsideTransaction)
|
|
863
|
+
? executionConfig_HandlerOrderInsideTransactionFromJSON(object.handlerOrderInsideTransaction)
|
|
864
|
+
: 0,
|
|
821
865
|
processBindingTimeout: isSet(object.processBindingTimeout) ? globalThis.Number(object.processBindingTimeout) : 0,
|
|
822
866
|
skipStartBlockValidation: isSet(object.skipStartBlockValidation)
|
|
823
867
|
? globalThis.Boolean(object.skipStartBlockValidation)
|
|
@@ -836,6 +880,9 @@ export const ExecutionConfig = {
|
|
|
836
880
|
if (message.forceExactBlockTime !== false) {
|
|
837
881
|
obj.forceExactBlockTime = message.forceExactBlockTime;
|
|
838
882
|
}
|
|
883
|
+
if (message.handlerOrderInsideTransaction !== 0) {
|
|
884
|
+
obj.handlerOrderInsideTransaction = executionConfig_HandlerOrderInsideTransactionToJSON(message.handlerOrderInsideTransaction);
|
|
885
|
+
}
|
|
839
886
|
if (message.processBindingTimeout !== 0) {
|
|
840
887
|
obj.processBindingTimeout = Math.round(message.processBindingTimeout);
|
|
841
888
|
}
|
|
@@ -857,6 +904,7 @@ export const ExecutionConfig = {
|
|
|
857
904
|
const message = createBaseExecutionConfig();
|
|
858
905
|
message.sequential = object.sequential ?? false;
|
|
859
906
|
message.forceExactBlockTime = object.forceExactBlockTime ?? false;
|
|
907
|
+
message.handlerOrderInsideTransaction = object.handlerOrderInsideTransaction ?? 0;
|
|
860
908
|
message.processBindingTimeout = object.processBindingTimeout ?? 0;
|
|
861
909
|
message.skipStartBlockValidation = object.skipStartBlockValidation ?? false;
|
|
862
910
|
message.rpcRetryTimes = object.rpcRetryTimes ?? 0;
|
|
@@ -993,7 +1041,6 @@ function createBaseProcessConfigResponse() {
|
|
|
993
1041
|
templateInstances: [],
|
|
994
1042
|
accountConfigs: [],
|
|
995
1043
|
metricConfigs: [],
|
|
996
|
-
eventTrackingConfigs: [],
|
|
997
1044
|
exportConfigs: [],
|
|
998
1045
|
eventLogConfigs: [],
|
|
999
1046
|
dbSchema: undefined,
|
|
@@ -1019,9 +1066,6 @@ export const ProcessConfigResponse = {
|
|
|
1019
1066
|
for (const v of message.metricConfigs) {
|
|
1020
1067
|
MetricConfig.encode(v, writer.uint32(42).fork()).ldelim();
|
|
1021
1068
|
}
|
|
1022
|
-
for (const v of message.eventTrackingConfigs) {
|
|
1023
|
-
EventTrackingConfig.encode(v, writer.uint32(50).fork()).ldelim();
|
|
1024
|
-
}
|
|
1025
1069
|
for (const v of message.exportConfigs) {
|
|
1026
1070
|
ExportConfig.encode(v, writer.uint32(58).fork()).ldelim();
|
|
1027
1071
|
}
|
|
@@ -1076,12 +1120,6 @@ export const ProcessConfigResponse = {
|
|
|
1076
1120
|
}
|
|
1077
1121
|
message.metricConfigs.push(MetricConfig.decode(reader, reader.uint32()));
|
|
1078
1122
|
continue;
|
|
1079
|
-
case 6:
|
|
1080
|
-
if (tag !== 50) {
|
|
1081
|
-
break;
|
|
1082
|
-
}
|
|
1083
|
-
message.eventTrackingConfigs.push(EventTrackingConfig.decode(reader, reader.uint32()));
|
|
1084
|
-
continue;
|
|
1085
1123
|
case 7:
|
|
1086
1124
|
if (tag !== 58) {
|
|
1087
1125
|
break;
|
|
@@ -1124,9 +1162,6 @@ export const ProcessConfigResponse = {
|
|
|
1124
1162
|
metricConfigs: globalThis.Array.isArray(object?.metricConfigs)
|
|
1125
1163
|
? object.metricConfigs.map((e) => MetricConfig.fromJSON(e))
|
|
1126
1164
|
: [],
|
|
1127
|
-
eventTrackingConfigs: globalThis.Array.isArray(object?.eventTrackingConfigs)
|
|
1128
|
-
? object.eventTrackingConfigs.map((e) => EventTrackingConfig.fromJSON(e))
|
|
1129
|
-
: [],
|
|
1130
1165
|
exportConfigs: globalThis.Array.isArray(object?.exportConfigs)
|
|
1131
1166
|
? object.exportConfigs.map((e) => ExportConfig.fromJSON(e))
|
|
1132
1167
|
: [],
|
|
@@ -1156,9 +1191,6 @@ export const ProcessConfigResponse = {
|
|
|
1156
1191
|
if (message.metricConfigs?.length) {
|
|
1157
1192
|
obj.metricConfigs = message.metricConfigs.map((e) => MetricConfig.toJSON(e));
|
|
1158
1193
|
}
|
|
1159
|
-
if (message.eventTrackingConfigs?.length) {
|
|
1160
|
-
obj.eventTrackingConfigs = message.eventTrackingConfigs.map((e) => EventTrackingConfig.toJSON(e));
|
|
1161
|
-
}
|
|
1162
1194
|
if (message.exportConfigs?.length) {
|
|
1163
1195
|
obj.exportConfigs = message.exportConfigs.map((e) => ExportConfig.toJSON(e));
|
|
1164
1196
|
}
|
|
@@ -1185,7 +1217,6 @@ export const ProcessConfigResponse = {
|
|
|
1185
1217
|
message.templateInstances = object.templateInstances?.map((e) => TemplateInstance.fromPartial(e)) || [];
|
|
1186
1218
|
message.accountConfigs = object.accountConfigs?.map((e) => AccountConfig.fromPartial(e)) || [];
|
|
1187
1219
|
message.metricConfigs = object.metricConfigs?.map((e) => MetricConfig.fromPartial(e)) || [];
|
|
1188
|
-
message.eventTrackingConfigs = object.eventTrackingConfigs?.map((e) => EventTrackingConfig.fromPartial(e)) || [];
|
|
1189
1220
|
message.exportConfigs = object.exportConfigs?.map((e) => ExportConfig.fromPartial(e)) || [];
|
|
1190
1221
|
message.eventLogConfigs = object.eventLogConfigs?.map((e) => EventLogConfig.fromPartial(e)) || [];
|
|
1191
1222
|
message.dbSchema = (object.dbSchema !== undefined && object.dbSchema !== null)
|
|
@@ -1785,152 +1816,6 @@ export const RetentionConfig = {
|
|
|
1785
1816
|
return message;
|
|
1786
1817
|
},
|
|
1787
1818
|
};
|
|
1788
|
-
function createBaseEventTrackingConfig() {
|
|
1789
|
-
return {
|
|
1790
|
-
eventName: "",
|
|
1791
|
-
totalByDay: false,
|
|
1792
|
-
unique: false,
|
|
1793
|
-
totalPerEntity: undefined,
|
|
1794
|
-
distinctAggregationByDays: [],
|
|
1795
|
-
retentionConfig: undefined,
|
|
1796
|
-
};
|
|
1797
|
-
}
|
|
1798
|
-
export const EventTrackingConfig = {
|
|
1799
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1800
|
-
if (message.eventName !== "") {
|
|
1801
|
-
writer.uint32(10).string(message.eventName);
|
|
1802
|
-
}
|
|
1803
|
-
if (message.totalByDay !== false) {
|
|
1804
|
-
writer.uint32(16).bool(message.totalByDay);
|
|
1805
|
-
}
|
|
1806
|
-
if (message.unique !== false) {
|
|
1807
|
-
writer.uint32(24).bool(message.unique);
|
|
1808
|
-
}
|
|
1809
|
-
if (message.totalPerEntity !== undefined) {
|
|
1810
|
-
TotalPerEntityAggregation.encode(message.totalPerEntity, writer.uint32(34).fork()).ldelim();
|
|
1811
|
-
}
|
|
1812
|
-
writer.uint32(42).fork();
|
|
1813
|
-
for (const v of message.distinctAggregationByDays) {
|
|
1814
|
-
writer.int32(v);
|
|
1815
|
-
}
|
|
1816
|
-
writer.ldelim();
|
|
1817
|
-
if (message.retentionConfig !== undefined) {
|
|
1818
|
-
RetentionConfig.encode(message.retentionConfig, writer.uint32(50).fork()).ldelim();
|
|
1819
|
-
}
|
|
1820
|
-
return writer;
|
|
1821
|
-
},
|
|
1822
|
-
decode(input, length) {
|
|
1823
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1824
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1825
|
-
const message = createBaseEventTrackingConfig();
|
|
1826
|
-
while (reader.pos < end) {
|
|
1827
|
-
const tag = reader.uint32();
|
|
1828
|
-
switch (tag >>> 3) {
|
|
1829
|
-
case 1:
|
|
1830
|
-
if (tag !== 10) {
|
|
1831
|
-
break;
|
|
1832
|
-
}
|
|
1833
|
-
message.eventName = reader.string();
|
|
1834
|
-
continue;
|
|
1835
|
-
case 2:
|
|
1836
|
-
if (tag !== 16) {
|
|
1837
|
-
break;
|
|
1838
|
-
}
|
|
1839
|
-
message.totalByDay = reader.bool();
|
|
1840
|
-
continue;
|
|
1841
|
-
case 3:
|
|
1842
|
-
if (tag !== 24) {
|
|
1843
|
-
break;
|
|
1844
|
-
}
|
|
1845
|
-
message.unique = reader.bool();
|
|
1846
|
-
continue;
|
|
1847
|
-
case 4:
|
|
1848
|
-
if (tag !== 34) {
|
|
1849
|
-
break;
|
|
1850
|
-
}
|
|
1851
|
-
message.totalPerEntity = TotalPerEntityAggregation.decode(reader, reader.uint32());
|
|
1852
|
-
continue;
|
|
1853
|
-
case 5:
|
|
1854
|
-
if (tag === 40) {
|
|
1855
|
-
message.distinctAggregationByDays.push(reader.int32());
|
|
1856
|
-
continue;
|
|
1857
|
-
}
|
|
1858
|
-
if (tag === 42) {
|
|
1859
|
-
const end2 = reader.uint32() + reader.pos;
|
|
1860
|
-
while (reader.pos < end2) {
|
|
1861
|
-
message.distinctAggregationByDays.push(reader.int32());
|
|
1862
|
-
}
|
|
1863
|
-
continue;
|
|
1864
|
-
}
|
|
1865
|
-
break;
|
|
1866
|
-
case 6:
|
|
1867
|
-
if (tag !== 50) {
|
|
1868
|
-
break;
|
|
1869
|
-
}
|
|
1870
|
-
message.retentionConfig = RetentionConfig.decode(reader, reader.uint32());
|
|
1871
|
-
continue;
|
|
1872
|
-
}
|
|
1873
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1874
|
-
break;
|
|
1875
|
-
}
|
|
1876
|
-
reader.skipType(tag & 7);
|
|
1877
|
-
}
|
|
1878
|
-
return message;
|
|
1879
|
-
},
|
|
1880
|
-
fromJSON(object) {
|
|
1881
|
-
return {
|
|
1882
|
-
eventName: isSet(object.eventName) ? globalThis.String(object.eventName) : "",
|
|
1883
|
-
totalByDay: isSet(object.totalByDay) ? globalThis.Boolean(object.totalByDay) : false,
|
|
1884
|
-
unique: isSet(object.unique) ? globalThis.Boolean(object.unique) : false,
|
|
1885
|
-
totalPerEntity: isSet(object.totalPerEntity)
|
|
1886
|
-
? TotalPerEntityAggregation.fromJSON(object.totalPerEntity)
|
|
1887
|
-
: undefined,
|
|
1888
|
-
distinctAggregationByDays: globalThis.Array.isArray(object?.distinctAggregationByDays)
|
|
1889
|
-
? object.distinctAggregationByDays.map((e) => globalThis.Number(e))
|
|
1890
|
-
: [],
|
|
1891
|
-
retentionConfig: isSet(object.retentionConfig) ? RetentionConfig.fromJSON(object.retentionConfig) : undefined,
|
|
1892
|
-
};
|
|
1893
|
-
},
|
|
1894
|
-
toJSON(message) {
|
|
1895
|
-
const obj = {};
|
|
1896
|
-
if (message.eventName !== "") {
|
|
1897
|
-
obj.eventName = message.eventName;
|
|
1898
|
-
}
|
|
1899
|
-
if (message.totalByDay !== false) {
|
|
1900
|
-
obj.totalByDay = message.totalByDay;
|
|
1901
|
-
}
|
|
1902
|
-
if (message.unique !== false) {
|
|
1903
|
-
obj.unique = message.unique;
|
|
1904
|
-
}
|
|
1905
|
-
if (message.totalPerEntity !== undefined) {
|
|
1906
|
-
obj.totalPerEntity = TotalPerEntityAggregation.toJSON(message.totalPerEntity);
|
|
1907
|
-
}
|
|
1908
|
-
if (message.distinctAggregationByDays?.length) {
|
|
1909
|
-
obj.distinctAggregationByDays = message.distinctAggregationByDays.map((e) => Math.round(e));
|
|
1910
|
-
}
|
|
1911
|
-
if (message.retentionConfig !== undefined) {
|
|
1912
|
-
obj.retentionConfig = RetentionConfig.toJSON(message.retentionConfig);
|
|
1913
|
-
}
|
|
1914
|
-
return obj;
|
|
1915
|
-
},
|
|
1916
|
-
create(base) {
|
|
1917
|
-
return EventTrackingConfig.fromPartial(base ?? {});
|
|
1918
|
-
},
|
|
1919
|
-
fromPartial(object) {
|
|
1920
|
-
const message = createBaseEventTrackingConfig();
|
|
1921
|
-
message.eventName = object.eventName ?? "";
|
|
1922
|
-
message.totalByDay = object.totalByDay ?? false;
|
|
1923
|
-
message.unique = object.unique ?? false;
|
|
1924
|
-
message.totalPerEntity = (object.totalPerEntity !== undefined && object.totalPerEntity !== null)
|
|
1925
|
-
? TotalPerEntityAggregation.fromPartial(object.totalPerEntity)
|
|
1926
|
-
: undefined;
|
|
1927
|
-
message.distinctAggregationByDays = object.distinctAggregationByDays?.map((e) => e) || [];
|
|
1928
|
-
message.retentionConfig = (object.retentionConfig !== undefined && object.retentionConfig !== null)
|
|
1929
|
-
? RetentionConfig.fromPartial(object.retentionConfig)
|
|
1930
|
-
: undefined;
|
|
1931
|
-
return message;
|
|
1932
|
-
},
|
|
1933
|
-
};
|
|
1934
1819
|
function createBaseExportConfig() {
|
|
1935
1820
|
return { name: "", channel: "" };
|
|
1936
1821
|
}
|