@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentio/protos",
|
|
3
|
-
"version": "2.62.0-rc.
|
|
3
|
+
"version": "2.62.0-rc.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -12,11 +12,10 @@
|
|
|
12
12
|
"{lib,src}"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"google-protobuf": "^3.21.2",
|
|
16
15
|
"long": "^5.2.3",
|
|
17
|
-
"nice-grpc": "^2.1.
|
|
16
|
+
"nice-grpc": "^2.1.12",
|
|
18
17
|
"nice-grpc-common": "^2.0.2",
|
|
19
|
-
"protobufjs": "^7.
|
|
18
|
+
"protobufjs": "^7.5.4"
|
|
20
19
|
},
|
|
21
20
|
"engines": {
|
|
22
21
|
"node": ">=20"
|
|
@@ -406,12 +406,50 @@ export interface ProjectConfig {
|
|
|
406
406
|
export interface ExecutionConfig {
|
|
407
407
|
sequential: boolean;
|
|
408
408
|
forceExactBlockTime: boolean;
|
|
409
|
+
handlerOrderInsideTransaction: ExecutionConfig_HandlerOrderInsideTransaction;
|
|
409
410
|
processBindingTimeout: number;
|
|
410
411
|
skipStartBlockValidation: boolean;
|
|
411
412
|
rpcRetryTimes: number;
|
|
412
413
|
ethAbiDecoderConfig?: ExecutionConfig_DecoderWorkerConfig | undefined;
|
|
413
414
|
}
|
|
414
415
|
|
|
416
|
+
export enum ExecutionConfig_HandlerOrderInsideTransaction {
|
|
417
|
+
BY_LOG_INDEX = 0,
|
|
418
|
+
BY_PROCESSOR_AND_LOG_INDEX = 1,
|
|
419
|
+
UNRECOGNIZED = -1,
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export function executionConfig_HandlerOrderInsideTransactionFromJSON(
|
|
423
|
+
object: any,
|
|
424
|
+
): ExecutionConfig_HandlerOrderInsideTransaction {
|
|
425
|
+
switch (object) {
|
|
426
|
+
case 0:
|
|
427
|
+
case "BY_LOG_INDEX":
|
|
428
|
+
return ExecutionConfig_HandlerOrderInsideTransaction.BY_LOG_INDEX;
|
|
429
|
+
case 1:
|
|
430
|
+
case "BY_PROCESSOR_AND_LOG_INDEX":
|
|
431
|
+
return ExecutionConfig_HandlerOrderInsideTransaction.BY_PROCESSOR_AND_LOG_INDEX;
|
|
432
|
+
case -1:
|
|
433
|
+
case "UNRECOGNIZED":
|
|
434
|
+
default:
|
|
435
|
+
return ExecutionConfig_HandlerOrderInsideTransaction.UNRECOGNIZED;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export function executionConfig_HandlerOrderInsideTransactionToJSON(
|
|
440
|
+
object: ExecutionConfig_HandlerOrderInsideTransaction,
|
|
441
|
+
): string {
|
|
442
|
+
switch (object) {
|
|
443
|
+
case ExecutionConfig_HandlerOrderInsideTransaction.BY_LOG_INDEX:
|
|
444
|
+
return "BY_LOG_INDEX";
|
|
445
|
+
case ExecutionConfig_HandlerOrderInsideTransaction.BY_PROCESSOR_AND_LOG_INDEX:
|
|
446
|
+
return "BY_PROCESSOR_AND_LOG_INDEX";
|
|
447
|
+
case ExecutionConfig_HandlerOrderInsideTransaction.UNRECOGNIZED:
|
|
448
|
+
default:
|
|
449
|
+
return "UNRECOGNIZED";
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
415
453
|
export interface ExecutionConfig_DecoderWorkerConfig {
|
|
416
454
|
enabled: boolean;
|
|
417
455
|
workerCount?: number | undefined;
|
|
@@ -428,7 +466,6 @@ export interface ProcessConfigResponse {
|
|
|
428
466
|
templateInstances: TemplateInstance[];
|
|
429
467
|
accountConfigs: AccountConfig[];
|
|
430
468
|
metricConfigs: MetricConfig[];
|
|
431
|
-
eventTrackingConfigs: EventTrackingConfig[];
|
|
432
469
|
exportConfigs: ExportConfig[];
|
|
433
470
|
eventLogConfigs: EventLogConfig[];
|
|
434
471
|
dbSchema: DataBaseSchema | undefined;
|
|
@@ -506,15 +543,6 @@ export interface RetentionConfig {
|
|
|
506
543
|
days: number;
|
|
507
544
|
}
|
|
508
545
|
|
|
509
|
-
export interface EventTrackingConfig {
|
|
510
|
-
eventName: string;
|
|
511
|
-
totalByDay: boolean;
|
|
512
|
-
unique: boolean;
|
|
513
|
-
totalPerEntity: TotalPerEntityAggregation | undefined;
|
|
514
|
-
distinctAggregationByDays: number[];
|
|
515
|
-
retentionConfig: RetentionConfig | undefined;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
546
|
export interface ExportConfig {
|
|
519
547
|
name: string;
|
|
520
548
|
channel: string;
|
|
@@ -1608,6 +1636,7 @@ function createBaseExecutionConfig(): ExecutionConfig {
|
|
|
1608
1636
|
return {
|
|
1609
1637
|
sequential: false,
|
|
1610
1638
|
forceExactBlockTime: false,
|
|
1639
|
+
handlerOrderInsideTransaction: 0,
|
|
1611
1640
|
processBindingTimeout: 0,
|
|
1612
1641
|
skipStartBlockValidation: false,
|
|
1613
1642
|
rpcRetryTimes: 0,
|
|
@@ -1623,6 +1652,9 @@ export const ExecutionConfig = {
|
|
|
1623
1652
|
if (message.forceExactBlockTime !== false) {
|
|
1624
1653
|
writer.uint32(16).bool(message.forceExactBlockTime);
|
|
1625
1654
|
}
|
|
1655
|
+
if (message.handlerOrderInsideTransaction !== 0) {
|
|
1656
|
+
writer.uint32(56).int32(message.handlerOrderInsideTransaction);
|
|
1657
|
+
}
|
|
1626
1658
|
if (message.processBindingTimeout !== 0) {
|
|
1627
1659
|
writer.uint32(24).int32(message.processBindingTimeout);
|
|
1628
1660
|
}
|
|
@@ -1659,6 +1691,13 @@ export const ExecutionConfig = {
|
|
|
1659
1691
|
|
|
1660
1692
|
message.forceExactBlockTime = reader.bool();
|
|
1661
1693
|
continue;
|
|
1694
|
+
case 7:
|
|
1695
|
+
if (tag !== 56) {
|
|
1696
|
+
break;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
message.handlerOrderInsideTransaction = reader.int32() as any;
|
|
1700
|
+
continue;
|
|
1662
1701
|
case 3:
|
|
1663
1702
|
if (tag !== 24) {
|
|
1664
1703
|
break;
|
|
@@ -1700,6 +1739,9 @@ export const ExecutionConfig = {
|
|
|
1700
1739
|
return {
|
|
1701
1740
|
sequential: isSet(object.sequential) ? globalThis.Boolean(object.sequential) : false,
|
|
1702
1741
|
forceExactBlockTime: isSet(object.forceExactBlockTime) ? globalThis.Boolean(object.forceExactBlockTime) : false,
|
|
1742
|
+
handlerOrderInsideTransaction: isSet(object.handlerOrderInsideTransaction)
|
|
1743
|
+
? executionConfig_HandlerOrderInsideTransactionFromJSON(object.handlerOrderInsideTransaction)
|
|
1744
|
+
: 0,
|
|
1703
1745
|
processBindingTimeout: isSet(object.processBindingTimeout) ? globalThis.Number(object.processBindingTimeout) : 0,
|
|
1704
1746
|
skipStartBlockValidation: isSet(object.skipStartBlockValidation)
|
|
1705
1747
|
? globalThis.Boolean(object.skipStartBlockValidation)
|
|
@@ -1719,6 +1761,11 @@ export const ExecutionConfig = {
|
|
|
1719
1761
|
if (message.forceExactBlockTime !== false) {
|
|
1720
1762
|
obj.forceExactBlockTime = message.forceExactBlockTime;
|
|
1721
1763
|
}
|
|
1764
|
+
if (message.handlerOrderInsideTransaction !== 0) {
|
|
1765
|
+
obj.handlerOrderInsideTransaction = executionConfig_HandlerOrderInsideTransactionToJSON(
|
|
1766
|
+
message.handlerOrderInsideTransaction,
|
|
1767
|
+
);
|
|
1768
|
+
}
|
|
1722
1769
|
if (message.processBindingTimeout !== 0) {
|
|
1723
1770
|
obj.processBindingTimeout = Math.round(message.processBindingTimeout);
|
|
1724
1771
|
}
|
|
@@ -1741,6 +1788,7 @@ export const ExecutionConfig = {
|
|
|
1741
1788
|
const message = createBaseExecutionConfig();
|
|
1742
1789
|
message.sequential = object.sequential ?? false;
|
|
1743
1790
|
message.forceExactBlockTime = object.forceExactBlockTime ?? false;
|
|
1791
|
+
message.handlerOrderInsideTransaction = object.handlerOrderInsideTransaction ?? 0;
|
|
1744
1792
|
message.processBindingTimeout = object.processBindingTimeout ?? 0;
|
|
1745
1793
|
message.skipStartBlockValidation = object.skipStartBlockValidation ?? false;
|
|
1746
1794
|
message.rpcRetryTimes = object.rpcRetryTimes ?? 0;
|
|
@@ -1893,7 +1941,6 @@ function createBaseProcessConfigResponse(): ProcessConfigResponse {
|
|
|
1893
1941
|
templateInstances: [],
|
|
1894
1942
|
accountConfigs: [],
|
|
1895
1943
|
metricConfigs: [],
|
|
1896
|
-
eventTrackingConfigs: [],
|
|
1897
1944
|
exportConfigs: [],
|
|
1898
1945
|
eventLogConfigs: [],
|
|
1899
1946
|
dbSchema: undefined,
|
|
@@ -1920,9 +1967,6 @@ export const ProcessConfigResponse = {
|
|
|
1920
1967
|
for (const v of message.metricConfigs) {
|
|
1921
1968
|
MetricConfig.encode(v!, writer.uint32(42).fork()).ldelim();
|
|
1922
1969
|
}
|
|
1923
|
-
for (const v of message.eventTrackingConfigs) {
|
|
1924
|
-
EventTrackingConfig.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
1925
|
-
}
|
|
1926
1970
|
for (const v of message.exportConfigs) {
|
|
1927
1971
|
ExportConfig.encode(v!, writer.uint32(58).fork()).ldelim();
|
|
1928
1972
|
}
|
|
@@ -1984,13 +2028,6 @@ export const ProcessConfigResponse = {
|
|
|
1984
2028
|
|
|
1985
2029
|
message.metricConfigs.push(MetricConfig.decode(reader, reader.uint32()));
|
|
1986
2030
|
continue;
|
|
1987
|
-
case 6:
|
|
1988
|
-
if (tag !== 50) {
|
|
1989
|
-
break;
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
message.eventTrackingConfigs.push(EventTrackingConfig.decode(reader, reader.uint32()));
|
|
1993
|
-
continue;
|
|
1994
2031
|
case 7:
|
|
1995
2032
|
if (tag !== 58) {
|
|
1996
2033
|
break;
|
|
@@ -2037,9 +2074,6 @@ export const ProcessConfigResponse = {
|
|
|
2037
2074
|
metricConfigs: globalThis.Array.isArray(object?.metricConfigs)
|
|
2038
2075
|
? object.metricConfigs.map((e: any) => MetricConfig.fromJSON(e))
|
|
2039
2076
|
: [],
|
|
2040
|
-
eventTrackingConfigs: globalThis.Array.isArray(object?.eventTrackingConfigs)
|
|
2041
|
-
? object.eventTrackingConfigs.map((e: any) => EventTrackingConfig.fromJSON(e))
|
|
2042
|
-
: [],
|
|
2043
2077
|
exportConfigs: globalThis.Array.isArray(object?.exportConfigs)
|
|
2044
2078
|
? object.exportConfigs.map((e: any) => ExportConfig.fromJSON(e))
|
|
2045
2079
|
: [],
|
|
@@ -2070,9 +2104,6 @@ export const ProcessConfigResponse = {
|
|
|
2070
2104
|
if (message.metricConfigs?.length) {
|
|
2071
2105
|
obj.metricConfigs = message.metricConfigs.map((e) => MetricConfig.toJSON(e));
|
|
2072
2106
|
}
|
|
2073
|
-
if (message.eventTrackingConfigs?.length) {
|
|
2074
|
-
obj.eventTrackingConfigs = message.eventTrackingConfigs.map((e) => EventTrackingConfig.toJSON(e));
|
|
2075
|
-
}
|
|
2076
2107
|
if (message.exportConfigs?.length) {
|
|
2077
2108
|
obj.exportConfigs = message.exportConfigs.map((e) => ExportConfig.toJSON(e));
|
|
2078
2109
|
}
|
|
@@ -2100,7 +2131,6 @@ export const ProcessConfigResponse = {
|
|
|
2100
2131
|
message.templateInstances = object.templateInstances?.map((e) => TemplateInstance.fromPartial(e)) || [];
|
|
2101
2132
|
message.accountConfigs = object.accountConfigs?.map((e) => AccountConfig.fromPartial(e)) || [];
|
|
2102
2133
|
message.metricConfigs = object.metricConfigs?.map((e) => MetricConfig.fromPartial(e)) || [];
|
|
2103
|
-
message.eventTrackingConfigs = object.eventTrackingConfigs?.map((e) => EventTrackingConfig.fromPartial(e)) || [];
|
|
2104
2134
|
message.exportConfigs = object.exportConfigs?.map((e) => ExportConfig.fromPartial(e)) || [];
|
|
2105
2135
|
message.eventLogConfigs = object.eventLogConfigs?.map((e) => EventLogConfig.fromPartial(e)) || [];
|
|
2106
2136
|
message.dbSchema = (object.dbSchema !== undefined && object.dbSchema !== null)
|
|
@@ -2755,167 +2785,6 @@ export const RetentionConfig = {
|
|
|
2755
2785
|
},
|
|
2756
2786
|
};
|
|
2757
2787
|
|
|
2758
|
-
function createBaseEventTrackingConfig(): EventTrackingConfig {
|
|
2759
|
-
return {
|
|
2760
|
-
eventName: "",
|
|
2761
|
-
totalByDay: false,
|
|
2762
|
-
unique: false,
|
|
2763
|
-
totalPerEntity: undefined,
|
|
2764
|
-
distinctAggregationByDays: [],
|
|
2765
|
-
retentionConfig: undefined,
|
|
2766
|
-
};
|
|
2767
|
-
}
|
|
2768
|
-
|
|
2769
|
-
export const EventTrackingConfig = {
|
|
2770
|
-
encode(message: EventTrackingConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
2771
|
-
if (message.eventName !== "") {
|
|
2772
|
-
writer.uint32(10).string(message.eventName);
|
|
2773
|
-
}
|
|
2774
|
-
if (message.totalByDay !== false) {
|
|
2775
|
-
writer.uint32(16).bool(message.totalByDay);
|
|
2776
|
-
}
|
|
2777
|
-
if (message.unique !== false) {
|
|
2778
|
-
writer.uint32(24).bool(message.unique);
|
|
2779
|
-
}
|
|
2780
|
-
if (message.totalPerEntity !== undefined) {
|
|
2781
|
-
TotalPerEntityAggregation.encode(message.totalPerEntity, writer.uint32(34).fork()).ldelim();
|
|
2782
|
-
}
|
|
2783
|
-
writer.uint32(42).fork();
|
|
2784
|
-
for (const v of message.distinctAggregationByDays) {
|
|
2785
|
-
writer.int32(v);
|
|
2786
|
-
}
|
|
2787
|
-
writer.ldelim();
|
|
2788
|
-
if (message.retentionConfig !== undefined) {
|
|
2789
|
-
RetentionConfig.encode(message.retentionConfig, writer.uint32(50).fork()).ldelim();
|
|
2790
|
-
}
|
|
2791
|
-
return writer;
|
|
2792
|
-
},
|
|
2793
|
-
|
|
2794
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): EventTrackingConfig {
|
|
2795
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2796
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2797
|
-
const message = createBaseEventTrackingConfig();
|
|
2798
|
-
while (reader.pos < end) {
|
|
2799
|
-
const tag = reader.uint32();
|
|
2800
|
-
switch (tag >>> 3) {
|
|
2801
|
-
case 1:
|
|
2802
|
-
if (tag !== 10) {
|
|
2803
|
-
break;
|
|
2804
|
-
}
|
|
2805
|
-
|
|
2806
|
-
message.eventName = reader.string();
|
|
2807
|
-
continue;
|
|
2808
|
-
case 2:
|
|
2809
|
-
if (tag !== 16) {
|
|
2810
|
-
break;
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
|
-
message.totalByDay = reader.bool();
|
|
2814
|
-
continue;
|
|
2815
|
-
case 3:
|
|
2816
|
-
if (tag !== 24) {
|
|
2817
|
-
break;
|
|
2818
|
-
}
|
|
2819
|
-
|
|
2820
|
-
message.unique = reader.bool();
|
|
2821
|
-
continue;
|
|
2822
|
-
case 4:
|
|
2823
|
-
if (tag !== 34) {
|
|
2824
|
-
break;
|
|
2825
|
-
}
|
|
2826
|
-
|
|
2827
|
-
message.totalPerEntity = TotalPerEntityAggregation.decode(reader, reader.uint32());
|
|
2828
|
-
continue;
|
|
2829
|
-
case 5:
|
|
2830
|
-
if (tag === 40) {
|
|
2831
|
-
message.distinctAggregationByDays.push(reader.int32());
|
|
2832
|
-
|
|
2833
|
-
continue;
|
|
2834
|
-
}
|
|
2835
|
-
|
|
2836
|
-
if (tag === 42) {
|
|
2837
|
-
const end2 = reader.uint32() + reader.pos;
|
|
2838
|
-
while (reader.pos < end2) {
|
|
2839
|
-
message.distinctAggregationByDays.push(reader.int32());
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
continue;
|
|
2843
|
-
}
|
|
2844
|
-
|
|
2845
|
-
break;
|
|
2846
|
-
case 6:
|
|
2847
|
-
if (tag !== 50) {
|
|
2848
|
-
break;
|
|
2849
|
-
}
|
|
2850
|
-
|
|
2851
|
-
message.retentionConfig = RetentionConfig.decode(reader, reader.uint32());
|
|
2852
|
-
continue;
|
|
2853
|
-
}
|
|
2854
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2855
|
-
break;
|
|
2856
|
-
}
|
|
2857
|
-
reader.skipType(tag & 7);
|
|
2858
|
-
}
|
|
2859
|
-
return message;
|
|
2860
|
-
},
|
|
2861
|
-
|
|
2862
|
-
fromJSON(object: any): EventTrackingConfig {
|
|
2863
|
-
return {
|
|
2864
|
-
eventName: isSet(object.eventName) ? globalThis.String(object.eventName) : "",
|
|
2865
|
-
totalByDay: isSet(object.totalByDay) ? globalThis.Boolean(object.totalByDay) : false,
|
|
2866
|
-
unique: isSet(object.unique) ? globalThis.Boolean(object.unique) : false,
|
|
2867
|
-
totalPerEntity: isSet(object.totalPerEntity)
|
|
2868
|
-
? TotalPerEntityAggregation.fromJSON(object.totalPerEntity)
|
|
2869
|
-
: undefined,
|
|
2870
|
-
distinctAggregationByDays: globalThis.Array.isArray(object?.distinctAggregationByDays)
|
|
2871
|
-
? object.distinctAggregationByDays.map((e: any) => globalThis.Number(e))
|
|
2872
|
-
: [],
|
|
2873
|
-
retentionConfig: isSet(object.retentionConfig) ? RetentionConfig.fromJSON(object.retentionConfig) : undefined,
|
|
2874
|
-
};
|
|
2875
|
-
},
|
|
2876
|
-
|
|
2877
|
-
toJSON(message: EventTrackingConfig): unknown {
|
|
2878
|
-
const obj: any = {};
|
|
2879
|
-
if (message.eventName !== "") {
|
|
2880
|
-
obj.eventName = message.eventName;
|
|
2881
|
-
}
|
|
2882
|
-
if (message.totalByDay !== false) {
|
|
2883
|
-
obj.totalByDay = message.totalByDay;
|
|
2884
|
-
}
|
|
2885
|
-
if (message.unique !== false) {
|
|
2886
|
-
obj.unique = message.unique;
|
|
2887
|
-
}
|
|
2888
|
-
if (message.totalPerEntity !== undefined) {
|
|
2889
|
-
obj.totalPerEntity = TotalPerEntityAggregation.toJSON(message.totalPerEntity);
|
|
2890
|
-
}
|
|
2891
|
-
if (message.distinctAggregationByDays?.length) {
|
|
2892
|
-
obj.distinctAggregationByDays = message.distinctAggregationByDays.map((e) => Math.round(e));
|
|
2893
|
-
}
|
|
2894
|
-
if (message.retentionConfig !== undefined) {
|
|
2895
|
-
obj.retentionConfig = RetentionConfig.toJSON(message.retentionConfig);
|
|
2896
|
-
}
|
|
2897
|
-
return obj;
|
|
2898
|
-
},
|
|
2899
|
-
|
|
2900
|
-
create(base?: DeepPartial<EventTrackingConfig>): EventTrackingConfig {
|
|
2901
|
-
return EventTrackingConfig.fromPartial(base ?? {});
|
|
2902
|
-
},
|
|
2903
|
-
fromPartial(object: DeepPartial<EventTrackingConfig>): EventTrackingConfig {
|
|
2904
|
-
const message = createBaseEventTrackingConfig();
|
|
2905
|
-
message.eventName = object.eventName ?? "";
|
|
2906
|
-
message.totalByDay = object.totalByDay ?? false;
|
|
2907
|
-
message.unique = object.unique ?? false;
|
|
2908
|
-
message.totalPerEntity = (object.totalPerEntity !== undefined && object.totalPerEntity !== null)
|
|
2909
|
-
? TotalPerEntityAggregation.fromPartial(object.totalPerEntity)
|
|
2910
|
-
: undefined;
|
|
2911
|
-
message.distinctAggregationByDays = object.distinctAggregationByDays?.map((e) => e) || [];
|
|
2912
|
-
message.retentionConfig = (object.retentionConfig !== undefined && object.retentionConfig !== null)
|
|
2913
|
-
? RetentionConfig.fromPartial(object.retentionConfig)
|
|
2914
|
-
: undefined;
|
|
2915
|
-
return message;
|
|
2916
|
-
},
|
|
2917
|
-
};
|
|
2918
|
-
|
|
2919
2788
|
function createBaseExportConfig(): ExportConfig {
|
|
2920
2789
|
return { name: "", channel: "" };
|
|
2921
2790
|
}
|
|
@@ -220,6 +220,7 @@ export enum NotificationType {
|
|
|
220
220
|
BILLING_INVOICE = 301,
|
|
221
221
|
BILLING_PAYMENT = 302,
|
|
222
222
|
BILLING_SUBSCRIPTION = 303,
|
|
223
|
+
BILLING_USAGE = 304,
|
|
223
224
|
UNRECOGNIZED = -1,
|
|
224
225
|
}
|
|
225
226
|
|
|
@@ -264,6 +265,9 @@ export function notificationTypeFromJSON(object: any): NotificationType {
|
|
|
264
265
|
case 303:
|
|
265
266
|
case "BILLING_SUBSCRIPTION":
|
|
266
267
|
return NotificationType.BILLING_SUBSCRIPTION;
|
|
268
|
+
case 304:
|
|
269
|
+
case "BILLING_USAGE":
|
|
270
|
+
return NotificationType.BILLING_USAGE;
|
|
267
271
|
case -1:
|
|
268
272
|
case "UNRECOGNIZED":
|
|
269
273
|
default:
|
|
@@ -299,6 +303,8 @@ export function notificationTypeToJSON(object: NotificationType): string {
|
|
|
299
303
|
return "BILLING_PAYMENT";
|
|
300
304
|
case NotificationType.BILLING_SUBSCRIPTION:
|
|
301
305
|
return "BILLING_SUBSCRIPTION";
|
|
306
|
+
case NotificationType.BILLING_USAGE:
|
|
307
|
+
return "BILLING_USAGE";
|
|
302
308
|
case NotificationType.UNRECOGNIZED:
|
|
303
309
|
default:
|
|
304
310
|
return "UNRECOGNIZED";
|