@sentio/runtime 2.59.0-rc.2 → 2.59.0-rc.20
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/{chunk-ZUTD563J.js → chunk-45FF2A6M.js} +756 -67
- package/lib/chunk-45FF2A6M.js.map +1 -0
- package/lib/{chunk-QELD44EL.js → chunk-EPAMG3V5.js} +11 -6
- package/lib/{chunk-QELD44EL.js.map → chunk-EPAMG3V5.js.map} +1 -1
- package/lib/{chunk-BPGFX5S5.js → chunk-GWKJGG55.js} +2 -2
- package/lib/index.d.ts +175 -0
- package/lib/index.js +2 -2
- package/lib/processor-runner.js +3 -3
- package/lib/service-worker.js +3 -3
- package/package.json +1 -1
- package/src/gen/processor/protos/processor.ts +621 -3
- package/src/gen/service/common/protos/common.ts +115 -1
- package/src/metrics.ts +8 -4
- package/src/utils.ts +1 -0
- package/lib/chunk-ZUTD563J.js.map +0 -1
- /package/lib/{chunk-BPGFX5S5.js.map → chunk-GWKJGG55.js.map} +0 -0
@@ -423,6 +423,7 @@ export interface Project {
|
|
423
423
|
/** @deprecated */
|
424
424
|
enableMaterializedView: boolean;
|
425
425
|
defaultTimerange: TimeRangeLite | undefined;
|
426
|
+
communityProject?: CommunityProject | undefined;
|
426
427
|
}
|
427
428
|
|
428
429
|
export enum Project_Visibility {
|
@@ -502,6 +503,11 @@ export interface Project_ProjectMember {
|
|
502
503
|
role: string;
|
503
504
|
}
|
504
505
|
|
506
|
+
export interface CommunityProject {
|
507
|
+
dashAlias: string;
|
508
|
+
curated?: boolean | undefined;
|
509
|
+
}
|
510
|
+
|
505
511
|
export interface ProjectInfo {
|
506
512
|
id: string;
|
507
513
|
displayName: string;
|
@@ -645,6 +651,7 @@ export interface Formula {
|
|
645
651
|
id: string;
|
646
652
|
disabled: boolean;
|
647
653
|
functions: Function[];
|
654
|
+
color: string;
|
648
655
|
}
|
649
656
|
|
650
657
|
export interface Argument {
|
@@ -2838,6 +2845,7 @@ function createBaseProject(): Project {
|
|
2838
2845
|
enableDisk: false,
|
2839
2846
|
enableMaterializedView: false,
|
2840
2847
|
defaultTimerange: undefined,
|
2848
|
+
communityProject: undefined,
|
2841
2849
|
};
|
2842
2850
|
}
|
2843
2851
|
|
@@ -2909,6 +2917,9 @@ export const Project = {
|
|
2909
2917
|
if (message.defaultTimerange !== undefined) {
|
2910
2918
|
TimeRangeLite.encode(message.defaultTimerange, writer.uint32(170).fork()).ldelim();
|
2911
2919
|
}
|
2920
|
+
if (message.communityProject !== undefined) {
|
2921
|
+
CommunityProject.encode(message.communityProject, writer.uint32(178).fork()).ldelim();
|
2922
|
+
}
|
2912
2923
|
return writer;
|
2913
2924
|
},
|
2914
2925
|
|
@@ -3059,6 +3070,13 @@ export const Project = {
|
|
3059
3070
|
|
3060
3071
|
message.defaultTimerange = TimeRangeLite.decode(reader, reader.uint32());
|
3061
3072
|
continue;
|
3073
|
+
case 22:
|
3074
|
+
if (tag !== 178) {
|
3075
|
+
break;
|
3076
|
+
}
|
3077
|
+
|
3078
|
+
message.communityProject = CommunityProject.decode(reader, reader.uint32());
|
3079
|
+
continue;
|
3062
3080
|
}
|
3063
3081
|
if ((tag & 7) === 4 || tag === 0) {
|
3064
3082
|
break;
|
@@ -3096,6 +3114,7 @@ export const Project = {
|
|
3096
3114
|
? globalThis.Boolean(object.enableMaterializedView)
|
3097
3115
|
: false,
|
3098
3116
|
defaultTimerange: isSet(object.defaultTimerange) ? TimeRangeLite.fromJSON(object.defaultTimerange) : undefined,
|
3117
|
+
communityProject: isSet(object.communityProject) ? CommunityProject.fromJSON(object.communityProject) : undefined,
|
3099
3118
|
};
|
3100
3119
|
},
|
3101
3120
|
|
@@ -3161,6 +3180,9 @@ export const Project = {
|
|
3161
3180
|
if (message.defaultTimerange !== undefined) {
|
3162
3181
|
obj.defaultTimerange = TimeRangeLite.toJSON(message.defaultTimerange);
|
3163
3182
|
}
|
3183
|
+
if (message.communityProject !== undefined) {
|
3184
|
+
obj.communityProject = CommunityProject.toJSON(message.communityProject);
|
3185
|
+
}
|
3164
3186
|
return obj;
|
3165
3187
|
},
|
3166
3188
|
|
@@ -3193,6 +3215,9 @@ export const Project = {
|
|
3193
3215
|
message.defaultTimerange = (object.defaultTimerange !== undefined && object.defaultTimerange !== null)
|
3194
3216
|
? TimeRangeLite.fromPartial(object.defaultTimerange)
|
3195
3217
|
: undefined;
|
3218
|
+
message.communityProject = (object.communityProject !== undefined && object.communityProject !== null)
|
3219
|
+
? CommunityProject.fromPartial(object.communityProject)
|
3220
|
+
: undefined;
|
3196
3221
|
return message;
|
3197
3222
|
},
|
3198
3223
|
};
|
@@ -3271,6 +3296,80 @@ export const Project_ProjectMember = {
|
|
3271
3296
|
},
|
3272
3297
|
};
|
3273
3298
|
|
3299
|
+
function createBaseCommunityProject(): CommunityProject {
|
3300
|
+
return { dashAlias: "", curated: undefined };
|
3301
|
+
}
|
3302
|
+
|
3303
|
+
export const CommunityProject = {
|
3304
|
+
encode(message: CommunityProject, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3305
|
+
if (message.dashAlias !== "") {
|
3306
|
+
writer.uint32(10).string(message.dashAlias);
|
3307
|
+
}
|
3308
|
+
if (message.curated !== undefined) {
|
3309
|
+
writer.uint32(16).bool(message.curated);
|
3310
|
+
}
|
3311
|
+
return writer;
|
3312
|
+
},
|
3313
|
+
|
3314
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CommunityProject {
|
3315
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3316
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3317
|
+
const message = createBaseCommunityProject();
|
3318
|
+
while (reader.pos < end) {
|
3319
|
+
const tag = reader.uint32();
|
3320
|
+
switch (tag >>> 3) {
|
3321
|
+
case 1:
|
3322
|
+
if (tag !== 10) {
|
3323
|
+
break;
|
3324
|
+
}
|
3325
|
+
|
3326
|
+
message.dashAlias = reader.string();
|
3327
|
+
continue;
|
3328
|
+
case 2:
|
3329
|
+
if (tag !== 16) {
|
3330
|
+
break;
|
3331
|
+
}
|
3332
|
+
|
3333
|
+
message.curated = reader.bool();
|
3334
|
+
continue;
|
3335
|
+
}
|
3336
|
+
if ((tag & 7) === 4 || tag === 0) {
|
3337
|
+
break;
|
3338
|
+
}
|
3339
|
+
reader.skipType(tag & 7);
|
3340
|
+
}
|
3341
|
+
return message;
|
3342
|
+
},
|
3343
|
+
|
3344
|
+
fromJSON(object: any): CommunityProject {
|
3345
|
+
return {
|
3346
|
+
dashAlias: isSet(object.dashAlias) ? globalThis.String(object.dashAlias) : "",
|
3347
|
+
curated: isSet(object.curated) ? globalThis.Boolean(object.curated) : undefined,
|
3348
|
+
};
|
3349
|
+
},
|
3350
|
+
|
3351
|
+
toJSON(message: CommunityProject): unknown {
|
3352
|
+
const obj: any = {};
|
3353
|
+
if (message.dashAlias !== "") {
|
3354
|
+
obj.dashAlias = message.dashAlias;
|
3355
|
+
}
|
3356
|
+
if (message.curated !== undefined) {
|
3357
|
+
obj.curated = message.curated;
|
3358
|
+
}
|
3359
|
+
return obj;
|
3360
|
+
},
|
3361
|
+
|
3362
|
+
create(base?: DeepPartial<CommunityProject>): CommunityProject {
|
3363
|
+
return CommunityProject.fromPartial(base ?? {});
|
3364
|
+
},
|
3365
|
+
fromPartial(object: DeepPartial<CommunityProject>): CommunityProject {
|
3366
|
+
const message = createBaseCommunityProject();
|
3367
|
+
message.dashAlias = object.dashAlias ?? "";
|
3368
|
+
message.curated = object.curated ?? undefined;
|
3369
|
+
return message;
|
3370
|
+
},
|
3371
|
+
};
|
3372
|
+
|
3274
3373
|
function createBaseProjectInfo(): ProjectInfo {
|
3275
3374
|
return {
|
3276
3375
|
id: "",
|
@@ -5434,7 +5533,7 @@ export const Duration = {
|
|
5434
5533
|
};
|
5435
5534
|
|
5436
5535
|
function createBaseFormula(): Formula {
|
5437
|
-
return { expression: "", alias: "", id: "", disabled: false, functions: [] };
|
5536
|
+
return { expression: "", alias: "", id: "", disabled: false, functions: [], color: "" };
|
5438
5537
|
}
|
5439
5538
|
|
5440
5539
|
export const Formula = {
|
@@ -5454,6 +5553,9 @@ export const Formula = {
|
|
5454
5553
|
for (const v of message.functions) {
|
5455
5554
|
Function.encode(v!, writer.uint32(50).fork()).ldelim();
|
5456
5555
|
}
|
5556
|
+
if (message.color !== "") {
|
5557
|
+
writer.uint32(58).string(message.color);
|
5558
|
+
}
|
5457
5559
|
return writer;
|
5458
5560
|
},
|
5459
5561
|
|
@@ -5499,6 +5601,13 @@ export const Formula = {
|
|
5499
5601
|
|
5500
5602
|
message.functions.push(Function.decode(reader, reader.uint32()));
|
5501
5603
|
continue;
|
5604
|
+
case 7:
|
5605
|
+
if (tag !== 58) {
|
5606
|
+
break;
|
5607
|
+
}
|
5608
|
+
|
5609
|
+
message.color = reader.string();
|
5610
|
+
continue;
|
5502
5611
|
}
|
5503
5612
|
if ((tag & 7) === 4 || tag === 0) {
|
5504
5613
|
break;
|
@@ -5517,6 +5626,7 @@ export const Formula = {
|
|
5517
5626
|
functions: globalThis.Array.isArray(object?.functions)
|
5518
5627
|
? object.functions.map((e: any) => Function.fromJSON(e))
|
5519
5628
|
: [],
|
5629
|
+
color: isSet(object.color) ? globalThis.String(object.color) : "",
|
5520
5630
|
};
|
5521
5631
|
},
|
5522
5632
|
|
@@ -5537,6 +5647,9 @@ export const Formula = {
|
|
5537
5647
|
if (message.functions?.length) {
|
5538
5648
|
obj.functions = message.functions.map((e) => Function.toJSON(e));
|
5539
5649
|
}
|
5650
|
+
if (message.color !== "") {
|
5651
|
+
obj.color = message.color;
|
5652
|
+
}
|
5540
5653
|
return obj;
|
5541
5654
|
},
|
5542
5655
|
|
@@ -5550,6 +5663,7 @@ export const Formula = {
|
|
5550
5663
|
message.id = object.id ?? "";
|
5551
5664
|
message.disabled = object.disabled ?? false;
|
5552
5665
|
message.functions = object.functions?.map((e) => Function.fromPartial(e)) || [];
|
5666
|
+
message.color = object.color ?? "";
|
5553
5667
|
return message;
|
5554
5668
|
},
|
5555
5669
|
};
|
package/src/metrics.ts
CHANGED
@@ -77,25 +77,29 @@ export const dbMetrics = {
|
|
77
77
|
get: new C('store_get_send'),
|
78
78
|
upsert: new C('store_upsert_send'),
|
79
79
|
list: new C('store_list_send'),
|
80
|
-
delete: new C('store_delete_send')
|
80
|
+
delete: new C('store_delete_send'),
|
81
|
+
update: new C('store_update_send')
|
81
82
|
},
|
82
83
|
recv_counts: {
|
83
84
|
get: new C('store_get_recv'),
|
84
85
|
upsert: new C('store_upsert_recv'),
|
85
86
|
list: new C('store_list_recv'),
|
86
|
-
delete: new C('store_delete_recv')
|
87
|
+
delete: new C('store_delete_recv'),
|
88
|
+
update: new C('store_update_recv')
|
87
89
|
},
|
88
90
|
request_times: {
|
89
91
|
get: new C('store_get_time'),
|
90
92
|
upsert: new C('store_upsert_time'),
|
91
93
|
list: new C('store_list_time'),
|
92
|
-
delete: new C('store_delete_time')
|
94
|
+
delete: new C('store_delete_time'),
|
95
|
+
update: new C('store_update_time')
|
93
96
|
},
|
94
97
|
request_errors: {
|
95
98
|
get: new C('store_get_error'),
|
96
99
|
upsert: new C('store_upsert_error'),
|
97
100
|
list: new C('store_list_error'),
|
98
|
-
delete: new C('store_delete_error')
|
101
|
+
delete: new C('store_delete_error'),
|
102
|
+
update: new C('store_update_error')
|
99
103
|
},
|
100
104
|
batched_total_count: new C('batched_total_count'),
|
101
105
|
batched_request_count: new C('batched_request_count'),
|
package/src/utils.ts
CHANGED
@@ -16,6 +16,7 @@ export function mergeProcessResults(results: ProcessResult[]): Required<ProcessR
|
|
16
16
|
res.gauges = res.gauges.concat(r.gauges)
|
17
17
|
res.events = res.events.concat(r.events)
|
18
18
|
res.exports = res.exports.concat(r.exports)
|
19
|
+
res.timeseriesResult = res.timeseriesResult.concat(r.timeseriesResult)
|
19
20
|
res.states = {
|
20
21
|
configUpdated: res.states?.configUpdated || r.states?.configUpdated || false
|
21
22
|
}
|