@sentio/runtime 2.36.1 → 2.37.0-rc.10
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/db-context.d.ts +142 -0
- package/lib/db-context.d.ts.map +1 -0
- package/lib/db-context.js +50 -0
- package/lib/db-context.js.map +1 -0
- package/lib/full-service.d.ts +158 -2
- package/lib/full-service.d.ts.map +1 -1
- package/lib/full-service.js +2 -2
- package/lib/full-service.js.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +135 -14
- package/lib/gen/processor/protos/processor.d.ts.map +1 -1
- package/lib/gen/processor/protos/processor.js +749 -4
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/gen/service/common/protos/common.d.ts +1 -0
- package/lib/gen/service/common/protos/common.d.ts.map +1 -1
- package/lib/gen/service/common/protos/common.js +15 -0
- package/lib/gen/service/common/protos/common.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/logger.d.ts +1 -1
- package/lib/logger.d.ts.map +1 -1
- package/lib/logger.js +3 -2
- package/lib/logger.js.map +1 -1
- package/lib/logger.test.js.map +1 -1
- package/lib/plugin.d.ts +5 -1
- package/lib/plugin.d.ts.map +1 -1
- package/lib/plugin.js +6 -2
- package/lib/plugin.js.map +1 -1
- package/lib/processor-runner.js +5 -13
- package/lib/processor-runner.js.map +1 -1
- package/lib/service.d.ts +130 -5
- package/lib/service.d.ts.map +1 -1
- package/lib/service.js +38 -12
- package/lib/service.js.map +1 -1
- package/package.json +4 -2
- package/src/db-context.ts +57 -0
- package/src/full-service.ts +4 -3
- package/src/gen/processor/protos/processor.ts +1035 -155
- package/src/gen/service/common/protos/common.ts +17 -0
- package/src/index.ts +1 -0
- package/src/logger.ts +3 -2
- package/src/plugin.ts +8 -2
- package/src/processor-runner.ts +5 -13
- package/src/service.ts +43 -15
@@ -0,0 +1,142 @@
|
|
1
|
+
import { Subject } from 'rxjs';
|
2
|
+
import { DBRequest, DBResponse, DeepPartial } from '@sentio/protos';
|
3
|
+
type Request = Omit<DBRequest, 'opId'>;
|
4
|
+
export declare class StoreContext {
|
5
|
+
private opCounter;
|
6
|
+
private defers;
|
7
|
+
subject: Subject<{
|
8
|
+
processId?: number | undefined;
|
9
|
+
dbRequest?: {
|
10
|
+
opId?: bigint | undefined;
|
11
|
+
get?: {
|
12
|
+
entity?: string | undefined;
|
13
|
+
id?: string | undefined;
|
14
|
+
} | undefined;
|
15
|
+
upsert?: {
|
16
|
+
entity?: string[] | undefined;
|
17
|
+
id?: string[] | undefined;
|
18
|
+
data?: {
|
19
|
+
[x: string]: any;
|
20
|
+
}[] | undefined;
|
21
|
+
} | undefined;
|
22
|
+
delete?: {
|
23
|
+
entity?: string[] | undefined;
|
24
|
+
id?: string[] | undefined;
|
25
|
+
} | undefined;
|
26
|
+
list?: {
|
27
|
+
entity?: string | undefined;
|
28
|
+
limit?: number | undefined;
|
29
|
+
offset?: number | undefined;
|
30
|
+
} | undefined;
|
31
|
+
} | undefined;
|
32
|
+
result?: {
|
33
|
+
gauges?: {
|
34
|
+
metadata?: {
|
35
|
+
address?: string | undefined;
|
36
|
+
contractName?: string | undefined;
|
37
|
+
blockNumber?: bigint | undefined;
|
38
|
+
transactionHash?: string | undefined;
|
39
|
+
chainId?: string | undefined;
|
40
|
+
transactionIndex?: number | undefined;
|
41
|
+
logIndex?: number | undefined;
|
42
|
+
name?: string | undefined;
|
43
|
+
labels?: {
|
44
|
+
[x: string]: string | undefined;
|
45
|
+
} | undefined;
|
46
|
+
} | undefined;
|
47
|
+
metricValue?: {
|
48
|
+
bigDecimal?: string | undefined;
|
49
|
+
doubleValue?: number | undefined;
|
50
|
+
bigInteger?: {
|
51
|
+
negative?: boolean | undefined;
|
52
|
+
data?: Uint8Array | undefined;
|
53
|
+
} | undefined;
|
54
|
+
} | undefined;
|
55
|
+
runtimeInfo?: {
|
56
|
+
from?: import("@sentio/protos").HandlerType | undefined;
|
57
|
+
} | undefined;
|
58
|
+
}[] | undefined;
|
59
|
+
counters?: {
|
60
|
+
metadata?: {
|
61
|
+
address?: string | undefined;
|
62
|
+
contractName?: string | undefined;
|
63
|
+
blockNumber?: bigint | undefined;
|
64
|
+
transactionHash?: string | undefined;
|
65
|
+
chainId?: string | undefined;
|
66
|
+
transactionIndex?: number | undefined;
|
67
|
+
logIndex?: number | undefined;
|
68
|
+
name?: string | undefined;
|
69
|
+
labels?: {
|
70
|
+
[x: string]: string | undefined;
|
71
|
+
} | undefined;
|
72
|
+
} | undefined;
|
73
|
+
metricValue?: {
|
74
|
+
bigDecimal?: string | undefined;
|
75
|
+
doubleValue?: number | undefined;
|
76
|
+
bigInteger?: {
|
77
|
+
negative?: boolean | undefined;
|
78
|
+
data?: Uint8Array | undefined;
|
79
|
+
} | undefined;
|
80
|
+
} | undefined;
|
81
|
+
add?: boolean | undefined;
|
82
|
+
runtimeInfo?: {
|
83
|
+
from?: import("@sentio/protos").HandlerType | undefined;
|
84
|
+
} | undefined;
|
85
|
+
}[] | undefined;
|
86
|
+
events?: {
|
87
|
+
metadata?: {
|
88
|
+
address?: string | undefined;
|
89
|
+
contractName?: string | undefined;
|
90
|
+
blockNumber?: bigint | undefined;
|
91
|
+
transactionHash?: string | undefined;
|
92
|
+
chainId?: string | undefined;
|
93
|
+
transactionIndex?: number | undefined;
|
94
|
+
logIndex?: number | undefined;
|
95
|
+
name?: string | undefined;
|
96
|
+
labels?: {
|
97
|
+
[x: string]: string | undefined;
|
98
|
+
} | undefined;
|
99
|
+
} | undefined;
|
100
|
+
distinctEntityId?: string | undefined;
|
101
|
+
attributes?: {
|
102
|
+
[x: string]: any;
|
103
|
+
} | undefined;
|
104
|
+
severity?: import("@sentio/protos").LogLevel | undefined;
|
105
|
+
message?: string | undefined;
|
106
|
+
runtimeInfo?: {
|
107
|
+
from?: import("@sentio/protos").HandlerType | undefined;
|
108
|
+
} | undefined;
|
109
|
+
noMetric?: boolean | undefined;
|
110
|
+
}[] | undefined;
|
111
|
+
exports?: {
|
112
|
+
metadata?: {
|
113
|
+
address?: string | undefined;
|
114
|
+
contractName?: string | undefined;
|
115
|
+
blockNumber?: bigint | undefined;
|
116
|
+
transactionHash?: string | undefined;
|
117
|
+
chainId?: string | undefined;
|
118
|
+
transactionIndex?: number | undefined;
|
119
|
+
logIndex?: number | undefined;
|
120
|
+
name?: string | undefined;
|
121
|
+
labels?: {
|
122
|
+
[x: string]: string | undefined;
|
123
|
+
} | undefined;
|
124
|
+
} | undefined;
|
125
|
+
payload?: string | undefined;
|
126
|
+
runtimeInfo?: {
|
127
|
+
from?: import("@sentio/protos").HandlerType | undefined;
|
128
|
+
} | undefined;
|
129
|
+
}[] | undefined;
|
130
|
+
states?: {
|
131
|
+
configUpdated?: boolean | undefined;
|
132
|
+
error?: string | undefined;
|
133
|
+
} | undefined;
|
134
|
+
} | undefined;
|
135
|
+
}>;
|
136
|
+
newPromise<T>(opId: bigint): Promise<T>;
|
137
|
+
sendRequest(request: DeepPartial<Request>): Promise<unknown>;
|
138
|
+
result(dbResult: DBResponse): void;
|
139
|
+
error(processId: number, e: any): void;
|
140
|
+
}
|
141
|
+
export {};
|
142
|
+
//# sourceMappingURL=db-context.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"db-context.d.ts","sourceRoot":"","sources":["../src/db-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAwC,MAAM,gBAAgB,CAAA;AAEzG,KAAK,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;AAEtC,qBAAa,YAAY;IACvB,OAAO,CAAC,SAAS,CAAK;IAEtB,OAAO,CAAC,MAAM,CAAuF;IAErG,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAoD;IAE3D,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM;IAM1B,WAAW,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC;IAazC,MAAM,CAAC,QAAQ,EAAE,UAAU;IAc3B,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG;CAWhC"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { Subject } from 'rxjs';
|
2
|
+
import { ProcessResult } from '@sentio/protos';
|
3
|
+
export class StoreContext {
|
4
|
+
opCounter = 0n;
|
5
|
+
defers = new Map();
|
6
|
+
subject = new Subject();
|
7
|
+
newPromise(opId) {
|
8
|
+
return new Promise((resolve, reject) => {
|
9
|
+
this.defers.set(opId, { resolve, reject });
|
10
|
+
});
|
11
|
+
}
|
12
|
+
sendRequest(request) {
|
13
|
+
const opId = this.opCounter++;
|
14
|
+
const promise = this.newPromise(opId);
|
15
|
+
console.debug('sending db request ', opId, request);
|
16
|
+
this.subject.next({
|
17
|
+
dbRequest: {
|
18
|
+
...request,
|
19
|
+
opId
|
20
|
+
}
|
21
|
+
});
|
22
|
+
return promise;
|
23
|
+
}
|
24
|
+
result(dbResult) {
|
25
|
+
const opId = dbResult.opId;
|
26
|
+
const defer = this.defers.get(opId);
|
27
|
+
console.debug('received db result ', opId, dbResult);
|
28
|
+
if (defer) {
|
29
|
+
if (dbResult.error) {
|
30
|
+
defer.reject(dbResult.error);
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
defer.resolve(dbResult.data);
|
34
|
+
}
|
35
|
+
this.defers.delete(opId);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
error(processId, e) {
|
39
|
+
const errorResult = ProcessResult.create({
|
40
|
+
states: {
|
41
|
+
error: e?.toString()
|
42
|
+
}
|
43
|
+
});
|
44
|
+
this.subject.next({
|
45
|
+
result: errorResult,
|
46
|
+
processId
|
47
|
+
});
|
48
|
+
}
|
49
|
+
}
|
50
|
+
//# sourceMappingURL=db-context.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"db-context.js","sourceRoot":"","sources":["../src/db-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAsC,aAAa,EAAyB,MAAM,gBAAgB,CAAA;AAIzG,MAAM,OAAO,YAAY;IACf,SAAS,GAAG,EAAE,CAAA;IAEd,MAAM,GAAG,IAAI,GAAG,EAA6E,CAAA;IAErG,OAAO,GAAG,IAAI,OAAO,EAAsC,CAAA;IAE3D,UAAU,CAAI,IAAY;QACxB,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACxC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAA;QAC5C,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,WAAW,CAAC,OAA6B;QACvC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,EAAE,CAAA;QAC7B,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;QACrC,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAA;QACnD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YAChB,SAAS,EAAE;gBACT,GAAG,OAAO;gBACV,IAAI;aACL;SACF,CAAC,CAAA;QACF,OAAO,OAAO,CAAA;IAChB,CAAC;IAED,MAAM,CAAC,QAAoB;QACzB,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAA;QAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACnC,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;QACpD,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;gBACnB,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;YAC9B,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;YAC9B,CAAC;YACD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QAC1B,CAAC;IACH,CAAC;IAED,KAAK,CAAC,SAAiB,EAAE,CAAM;QAC7B,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC;YACvC,MAAM,EAAE;gBACN,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE;aACrB;SACF,CAAC,CAAA;QACF,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YAChB,MAAM,EAAE,WAAW;YACnB,SAAS;SACV,CAAC,CAAA;IACJ,CAAC;CACF"}
|
package/lib/full-service.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CallContext } from 'nice-grpc';
|
2
|
-
import {
|
2
|
+
import { HandlerType, ProcessBindingsRequest, ProcessStreamRequest, ProcessConfigRequest, ProcessorServiceImplementation, StartRequest } from './gen/processor/protos/processor.js';
|
3
3
|
import { Empty } from '@sentio/protos';
|
4
4
|
export declare class FullProcessorServiceImpl implements ProcessorServiceImplementation {
|
5
5
|
constructor(instance: ProcessorServiceImplementation);
|
@@ -319,6 +319,9 @@ export declare class FullProcessorServiceImpl implements ProcessorServiceImpleme
|
|
319
319
|
} | undefined;
|
320
320
|
}[] | undefined;
|
321
321
|
}[] | undefined;
|
322
|
+
dbSchema?: {
|
323
|
+
gqlSchema?: string | undefined;
|
324
|
+
} | undefined;
|
322
325
|
}>;
|
323
326
|
start(request: StartRequest, context: CallContext): Promise<{}>;
|
324
327
|
stop(request: Empty, context: CallContext): Promise<{}>;
|
@@ -447,11 +450,164 @@ export declare class FullProcessorServiceImpl implements ProcessorServiceImpleme
|
|
447
450
|
}[] | undefined;
|
448
451
|
states?: {
|
449
452
|
configUpdated?: boolean | undefined;
|
453
|
+
error?: string | undefined;
|
450
454
|
} | undefined;
|
451
455
|
} | undefined;
|
452
456
|
configUpdated?: boolean | undefined;
|
453
457
|
}>;
|
454
|
-
processBindingsStream(requests: AsyncIterable<
|
458
|
+
processBindingsStream(requests: AsyncIterable<ProcessStreamRequest>, context: CallContext): AsyncGenerator<{
|
459
|
+
processId?: number | undefined;
|
460
|
+
dbRequest?: {
|
461
|
+
opId?: bigint | undefined;
|
462
|
+
get?: {
|
463
|
+
entity?: string | undefined;
|
464
|
+
id?: string | undefined;
|
465
|
+
} | undefined;
|
466
|
+
upsert?: {
|
467
|
+
entity?: string[] | undefined;
|
468
|
+
id?: string[] | undefined;
|
469
|
+
data?: {
|
470
|
+
[x: string]: any;
|
471
|
+
}[] | undefined;
|
472
|
+
} | undefined;
|
473
|
+
delete?: {
|
474
|
+
entity?: string[] | undefined;
|
475
|
+
id?: string[] | undefined;
|
476
|
+
} | undefined;
|
477
|
+
list?: {
|
478
|
+
entity?: string | undefined;
|
479
|
+
limit?: number | undefined;
|
480
|
+
offset?: number | undefined;
|
481
|
+
} | undefined;
|
482
|
+
} | undefined;
|
483
|
+
result?: {
|
484
|
+
gauges?: {
|
485
|
+
metadata?: {
|
486
|
+
address?: string | undefined;
|
487
|
+
contractName?: string | undefined;
|
488
|
+
blockNumber?: bigint | undefined;
|
489
|
+
transactionHash?: string | undefined;
|
490
|
+
chainId?: string | undefined;
|
491
|
+
transactionIndex?: number | undefined;
|
492
|
+
logIndex?: number | undefined;
|
493
|
+
name?: string | undefined;
|
494
|
+
labels?: {
|
495
|
+
[x: string]: string | undefined;
|
496
|
+
} | undefined;
|
497
|
+
} | undefined;
|
498
|
+
metricValue?: {
|
499
|
+
bigDecimal?: string | undefined;
|
500
|
+
doubleValue?: number | undefined;
|
501
|
+
bigInteger?: {
|
502
|
+
negative?: boolean | undefined;
|
503
|
+
data?: Uint8Array | undefined;
|
504
|
+
} | undefined;
|
505
|
+
} | undefined;
|
506
|
+
runtimeInfo?: {
|
507
|
+
from?: HandlerType | undefined;
|
508
|
+
} | undefined;
|
509
|
+
}[] | undefined;
|
510
|
+
counters?: {
|
511
|
+
metadata?: {
|
512
|
+
address?: string | undefined;
|
513
|
+
contractName?: string | undefined;
|
514
|
+
blockNumber?: bigint | undefined;
|
515
|
+
transactionHash?: string | undefined;
|
516
|
+
chainId?: string | undefined;
|
517
|
+
transactionIndex?: number | undefined;
|
518
|
+
logIndex?: number | undefined;
|
519
|
+
name?: string | undefined;
|
520
|
+
labels?: {
|
521
|
+
[x: string]: string | undefined;
|
522
|
+
} | undefined;
|
523
|
+
} | undefined;
|
524
|
+
metricValue?: {
|
525
|
+
bigDecimal?: string | undefined;
|
526
|
+
doubleValue?: number | undefined;
|
527
|
+
bigInteger?: {
|
528
|
+
negative?: boolean | undefined;
|
529
|
+
data?: Uint8Array | undefined;
|
530
|
+
} | undefined;
|
531
|
+
} | undefined;
|
532
|
+
add?: boolean | undefined;
|
533
|
+
runtimeInfo?: {
|
534
|
+
from?: HandlerType | undefined;
|
535
|
+
} | undefined;
|
536
|
+
}[] | undefined;
|
537
|
+
logs?: {
|
538
|
+
metadata?: {
|
539
|
+
address?: string | undefined;
|
540
|
+
contractName?: string | undefined;
|
541
|
+
blockNumber?: bigint | undefined;
|
542
|
+
transactionHash?: string | undefined;
|
543
|
+
chainId?: string | undefined;
|
544
|
+
transactionIndex?: number | undefined;
|
545
|
+
logIndex?: number | undefined;
|
546
|
+
name?: string | undefined;
|
547
|
+
labels?: {
|
548
|
+
[x: string]: string | undefined;
|
549
|
+
} | undefined;
|
550
|
+
} | undefined;
|
551
|
+
level?: import("./gen/processor/protos/processor.js").LogLevel | undefined;
|
552
|
+
message?: string | undefined;
|
553
|
+
attributes?: string | undefined;
|
554
|
+
attributes2?: {
|
555
|
+
[x: string]: any;
|
556
|
+
} | undefined;
|
557
|
+
runtimeInfo?: {
|
558
|
+
from?: HandlerType | undefined;
|
559
|
+
} | undefined;
|
560
|
+
}[] | undefined;
|
561
|
+
events?: {
|
562
|
+
metadata?: {
|
563
|
+
address?: string | undefined;
|
564
|
+
contractName?: string | undefined;
|
565
|
+
blockNumber?: bigint | undefined;
|
566
|
+
transactionHash?: string | undefined;
|
567
|
+
chainId?: string | undefined;
|
568
|
+
transactionIndex?: number | undefined;
|
569
|
+
logIndex?: number | undefined;
|
570
|
+
name?: string | undefined;
|
571
|
+
labels?: {
|
572
|
+
[x: string]: string | undefined;
|
573
|
+
} | undefined;
|
574
|
+
} | undefined;
|
575
|
+
distinctEntityId?: string | undefined;
|
576
|
+
attributes?: {
|
577
|
+
[x: string]: any;
|
578
|
+
} | undefined;
|
579
|
+
severity?: import("./gen/processor/protos/processor.js").LogLevel | undefined;
|
580
|
+
message?: string | undefined;
|
581
|
+
runtimeInfo?: {
|
582
|
+
from?: HandlerType | undefined;
|
583
|
+
} | undefined;
|
584
|
+
noMetric?: boolean | undefined;
|
585
|
+
}[] | undefined;
|
586
|
+
exports?: {
|
587
|
+
metadata?: {
|
588
|
+
address?: string | undefined;
|
589
|
+
contractName?: string | undefined;
|
590
|
+
blockNumber?: bigint | undefined;
|
591
|
+
transactionHash?: string | undefined;
|
592
|
+
chainId?: string | undefined;
|
593
|
+
transactionIndex?: number | undefined;
|
594
|
+
logIndex?: number | undefined;
|
595
|
+
name?: string | undefined;
|
596
|
+
labels?: {
|
597
|
+
[x: string]: string | undefined;
|
598
|
+
} | undefined;
|
599
|
+
} | undefined;
|
600
|
+
payload?: string | undefined;
|
601
|
+
runtimeInfo?: {
|
602
|
+
from?: HandlerType | undefined;
|
603
|
+
} | undefined;
|
604
|
+
}[] | undefined;
|
605
|
+
states?: {
|
606
|
+
configUpdated?: boolean | undefined;
|
607
|
+
error?: string | undefined;
|
608
|
+
} | undefined;
|
609
|
+
} | undefined;
|
610
|
+
}, void, undefined>;
|
455
611
|
private adjustResult;
|
456
612
|
private adjustDataBinding;
|
457
613
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"full-service.d.ts","sourceRoot":"","sources":["../src/full-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAKvC,OAAO,
|
1
|
+
{"version":3,"file":"full-service.d.ts","sourceRoot":"","sources":["../src/full-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAKvC,OAAO,EAEL,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,8BAA8B,EAC9B,YAAY,EAGb,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAiBtC,qBAAa,wBAAyB,YAAW,8BAA8B;gBACjE,QAAQ,EAAE,8BAA8B;IAWpD,QAAQ,EAAE,8BAA8B,CAAA;IACxC,eAAe,EAAE,MAAM,CAAA;IAEjB,SAAS,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqB7D,KAAK,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW;IAIjD,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;IAIzC,eAAe,CAAC,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8BpE,qBAAqB,CAAC,QAAQ,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKhG,OAAO,CAAC,YAAY;IAEpB,OAAO,CAAC,iBAAiB;CAwB1B"}
|
package/lib/full-service.js
CHANGED
@@ -79,8 +79,8 @@ export class FullProcessorServiceImpl {
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
async *processBindingsStream(requests, context) {
|
82
|
-
throw new Error('Not Implemented for streaming')
|
83
|
-
|
82
|
+
// throw new Error('Not Implemented for streaming')
|
83
|
+
yield* this.instance.processBindingsStream(requests, context);
|
84
84
|
}
|
85
85
|
adjustResult(res) { }
|
86
86
|
adjustDataBinding(dataBinding) {
|
package/lib/full-service.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"full-service.js","sourceRoot":"","sources":["../src/full-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAE9C,sCAAsC;AACtC,OAAO,EAEL,WAAW,
|
1
|
+
{"version":3,"file":"full-service.js","sourceRoot":"","sources":["../src/full-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,MAAM,OAAO,GAA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B,CAAC,CAAC,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB;QACrD,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM;QAC/B,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,mBAAmB,CAC7C,CAAA;AACH,CAAC"}
|
@@ -88,6 +88,7 @@ export interface ProcessConfigResponse {
|
|
88
88
|
eventTrackingConfigs: EventTrackingConfig[];
|
89
89
|
exportConfigs: ExportConfig[];
|
90
90
|
eventLogConfigs: EventLogConfig[];
|
91
|
+
dbSchema: DataBaseSchema | undefined;
|
91
92
|
}
|
92
93
|
export interface ContractConfig {
|
93
94
|
contract: ContractInfo | undefined;
|
@@ -106,6 +107,9 @@ export interface ContractConfig {
|
|
106
107
|
endBlock: bigint;
|
107
108
|
processorType: string;
|
108
109
|
}
|
110
|
+
export interface DataBaseSchema {
|
111
|
+
gqlSchema: string;
|
112
|
+
}
|
109
113
|
export interface TotalPerEntityAggregation {
|
110
114
|
}
|
111
115
|
export declare enum TotalPerEntityAggregation_Type {
|
@@ -325,6 +329,50 @@ export interface ProcessBindingResponse {
|
|
325
329
|
/** @deprecated */
|
326
330
|
configUpdated: boolean;
|
327
331
|
}
|
332
|
+
export interface ProcessStreamRequest {
|
333
|
+
processId: number;
|
334
|
+
binding?: DataBinding | undefined;
|
335
|
+
dbResult?: DBResponse | undefined;
|
336
|
+
}
|
337
|
+
export interface ProcessStreamResponse {
|
338
|
+
processId: number;
|
339
|
+
dbRequest?: DBRequest | undefined;
|
340
|
+
result?: ProcessResult | undefined;
|
341
|
+
}
|
342
|
+
export interface DBResponse {
|
343
|
+
opId: bigint;
|
344
|
+
data?: {
|
345
|
+
[key: string]: any;
|
346
|
+
} | undefined;
|
347
|
+
error?: string | undefined;
|
348
|
+
}
|
349
|
+
export interface DBRequest {
|
350
|
+
opId: bigint;
|
351
|
+
get?: DBRequest_DBGet | undefined;
|
352
|
+
upsert?: DBRequest_DBUpsert | undefined;
|
353
|
+
delete?: DBRequest_DBDelete | undefined;
|
354
|
+
list?: DBRequest_DBList | undefined;
|
355
|
+
}
|
356
|
+
export interface DBRequest_DBGet {
|
357
|
+
entity: string;
|
358
|
+
id: string;
|
359
|
+
}
|
360
|
+
export interface DBRequest_DBList {
|
361
|
+
entity: string;
|
362
|
+
limit: number;
|
363
|
+
offset: number;
|
364
|
+
}
|
365
|
+
export interface DBRequest_DBUpsert {
|
366
|
+
entity: string[];
|
367
|
+
id: string[];
|
368
|
+
data: {
|
369
|
+
[key: string]: any;
|
370
|
+
}[];
|
371
|
+
}
|
372
|
+
export interface DBRequest_DBDelete {
|
373
|
+
entity: string[];
|
374
|
+
id: string[];
|
375
|
+
}
|
328
376
|
export interface Data {
|
329
377
|
/** @deprecated */
|
330
378
|
raw: Uint8Array;
|
@@ -463,6 +511,7 @@ export interface DataBinding {
|
|
463
511
|
}
|
464
512
|
export interface StateResult {
|
465
513
|
configUpdated: boolean;
|
514
|
+
error?: string | undefined;
|
466
515
|
}
|
467
516
|
export interface ProcessResult {
|
468
517
|
gauges: GaugeResult[];
|
@@ -581,6 +630,14 @@ export declare const ContractConfig: {
|
|
581
630
|
create(base?: DeepPartial<ContractConfig>): ContractConfig;
|
582
631
|
fromPartial(object: DeepPartial<ContractConfig>): ContractConfig;
|
583
632
|
};
|
633
|
+
export declare const DataBaseSchema: {
|
634
|
+
encode(message: DataBaseSchema, writer?: _m0.Writer): _m0.Writer;
|
635
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DataBaseSchema;
|
636
|
+
fromJSON(object: any): DataBaseSchema;
|
637
|
+
toJSON(message: DataBaseSchema): unknown;
|
638
|
+
create(base?: DeepPartial<DataBaseSchema>): DataBaseSchema;
|
639
|
+
fromPartial(object: DeepPartial<DataBaseSchema>): DataBaseSchema;
|
640
|
+
};
|
584
641
|
export declare const TotalPerEntityAggregation: {
|
585
642
|
encode(_: TotalPerEntityAggregation, writer?: _m0.Writer): _m0.Writer;
|
586
643
|
decode(input: _m0.Reader | Uint8Array, length?: number): TotalPerEntityAggregation;
|
@@ -909,6 +966,70 @@ export declare const ProcessBindingResponse: {
|
|
909
966
|
create(base?: DeepPartial<ProcessBindingResponse>): ProcessBindingResponse;
|
910
967
|
fromPartial(object: DeepPartial<ProcessBindingResponse>): ProcessBindingResponse;
|
911
968
|
};
|
969
|
+
export declare const ProcessStreamRequest: {
|
970
|
+
encode(message: ProcessStreamRequest, writer?: _m0.Writer): _m0.Writer;
|
971
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamRequest;
|
972
|
+
fromJSON(object: any): ProcessStreamRequest;
|
973
|
+
toJSON(message: ProcessStreamRequest): unknown;
|
974
|
+
create(base?: DeepPartial<ProcessStreamRequest>): ProcessStreamRequest;
|
975
|
+
fromPartial(object: DeepPartial<ProcessStreamRequest>): ProcessStreamRequest;
|
976
|
+
};
|
977
|
+
export declare const ProcessStreamResponse: {
|
978
|
+
encode(message: ProcessStreamResponse, writer?: _m0.Writer): _m0.Writer;
|
979
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamResponse;
|
980
|
+
fromJSON(object: any): ProcessStreamResponse;
|
981
|
+
toJSON(message: ProcessStreamResponse): unknown;
|
982
|
+
create(base?: DeepPartial<ProcessStreamResponse>): ProcessStreamResponse;
|
983
|
+
fromPartial(object: DeepPartial<ProcessStreamResponse>): ProcessStreamResponse;
|
984
|
+
};
|
985
|
+
export declare const DBResponse: {
|
986
|
+
encode(message: DBResponse, writer?: _m0.Writer): _m0.Writer;
|
987
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBResponse;
|
988
|
+
fromJSON(object: any): DBResponse;
|
989
|
+
toJSON(message: DBResponse): unknown;
|
990
|
+
create(base?: DeepPartial<DBResponse>): DBResponse;
|
991
|
+
fromPartial(object: DeepPartial<DBResponse>): DBResponse;
|
992
|
+
};
|
993
|
+
export declare const DBRequest: {
|
994
|
+
encode(message: DBRequest, writer?: _m0.Writer): _m0.Writer;
|
995
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBRequest;
|
996
|
+
fromJSON(object: any): DBRequest;
|
997
|
+
toJSON(message: DBRequest): unknown;
|
998
|
+
create(base?: DeepPartial<DBRequest>): DBRequest;
|
999
|
+
fromPartial(object: DeepPartial<DBRequest>): DBRequest;
|
1000
|
+
};
|
1001
|
+
export declare const DBRequest_DBGet: {
|
1002
|
+
encode(message: DBRequest_DBGet, writer?: _m0.Writer): _m0.Writer;
|
1003
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBRequest_DBGet;
|
1004
|
+
fromJSON(object: any): DBRequest_DBGet;
|
1005
|
+
toJSON(message: DBRequest_DBGet): unknown;
|
1006
|
+
create(base?: DeepPartial<DBRequest_DBGet>): DBRequest_DBGet;
|
1007
|
+
fromPartial(object: DeepPartial<DBRequest_DBGet>): DBRequest_DBGet;
|
1008
|
+
};
|
1009
|
+
export declare const DBRequest_DBList: {
|
1010
|
+
encode(message: DBRequest_DBList, writer?: _m0.Writer): _m0.Writer;
|
1011
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBRequest_DBList;
|
1012
|
+
fromJSON(object: any): DBRequest_DBList;
|
1013
|
+
toJSON(message: DBRequest_DBList): unknown;
|
1014
|
+
create(base?: DeepPartial<DBRequest_DBList>): DBRequest_DBList;
|
1015
|
+
fromPartial(object: DeepPartial<DBRequest_DBList>): DBRequest_DBList;
|
1016
|
+
};
|
1017
|
+
export declare const DBRequest_DBUpsert: {
|
1018
|
+
encode(message: DBRequest_DBUpsert, writer?: _m0.Writer): _m0.Writer;
|
1019
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBRequest_DBUpsert;
|
1020
|
+
fromJSON(object: any): DBRequest_DBUpsert;
|
1021
|
+
toJSON(message: DBRequest_DBUpsert): unknown;
|
1022
|
+
create(base?: DeepPartial<DBRequest_DBUpsert>): DBRequest_DBUpsert;
|
1023
|
+
fromPartial(object: DeepPartial<DBRequest_DBUpsert>): DBRequest_DBUpsert;
|
1024
|
+
};
|
1025
|
+
export declare const DBRequest_DBDelete: {
|
1026
|
+
encode(message: DBRequest_DBDelete, writer?: _m0.Writer): _m0.Writer;
|
1027
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DBRequest_DBDelete;
|
1028
|
+
fromJSON(object: any): DBRequest_DBDelete;
|
1029
|
+
toJSON(message: DBRequest_DBDelete): unknown;
|
1030
|
+
create(base?: DeepPartial<DBRequest_DBDelete>): DBRequest_DBDelete;
|
1031
|
+
fromPartial(object: DeepPartial<DBRequest_DBDelete>): DBRequest_DBDelete;
|
1032
|
+
};
|
912
1033
|
export declare const Data: {
|
913
1034
|
encode(message: Data, writer?: _m0.Writer): _m0.Writer;
|
914
1035
|
decode(input: _m0.Reader | Uint8Array, length?: number): Data;
|
@@ -1221,21 +1342,21 @@ export declare const ProcessorDefinition: {
|
|
1221
1342
|
readonly processBindingsStream: {
|
1222
1343
|
readonly name: "ProcessBindingsStream";
|
1223
1344
|
readonly requestType: {
|
1224
|
-
encode(message:
|
1225
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
1226
|
-
fromJSON(object: any):
|
1227
|
-
toJSON(message:
|
1228
|
-
create(base?: DeepPartial<
|
1229
|
-
fromPartial(object: DeepPartial<
|
1345
|
+
encode(message: ProcessStreamRequest, writer?: _m0.Writer): _m0.Writer;
|
1346
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamRequest;
|
1347
|
+
fromJSON(object: any): ProcessStreamRequest;
|
1348
|
+
toJSON(message: ProcessStreamRequest): unknown;
|
1349
|
+
create(base?: DeepPartial<ProcessStreamRequest>): ProcessStreamRequest;
|
1350
|
+
fromPartial(object: DeepPartial<ProcessStreamRequest>): ProcessStreamRequest;
|
1230
1351
|
};
|
1231
1352
|
readonly requestStream: true;
|
1232
1353
|
readonly responseType: {
|
1233
|
-
encode(message:
|
1234
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
1235
|
-
fromJSON(object: any):
|
1236
|
-
toJSON(message:
|
1237
|
-
create(base?: DeepPartial<
|
1238
|
-
fromPartial(object: DeepPartial<
|
1354
|
+
encode(message: ProcessStreamResponse, writer?: _m0.Writer): _m0.Writer;
|
1355
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessStreamResponse;
|
1356
|
+
fromJSON(object: any): ProcessStreamResponse;
|
1357
|
+
toJSON(message: ProcessStreamResponse): unknown;
|
1358
|
+
create(base?: DeepPartial<ProcessStreamResponse>): ProcessStreamResponse;
|
1359
|
+
fromPartial(object: DeepPartial<ProcessStreamResponse>): ProcessStreamResponse;
|
1239
1360
|
};
|
1240
1361
|
readonly responseStream: true;
|
1241
1362
|
readonly options: {};
|
@@ -1247,14 +1368,14 @@ export interface ProcessorServiceImplementation<CallContextExt = {}> {
|
|
1247
1368
|
stop(request: Empty, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
|
1248
1369
|
getConfig(request: ProcessConfigRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessConfigResponse>>;
|
1249
1370
|
processBindings(request: ProcessBindingsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ProcessBindingResponse>>;
|
1250
|
-
processBindingsStream(request: AsyncIterable<
|
1371
|
+
processBindingsStream(request: AsyncIterable<ProcessStreamRequest>, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<ProcessStreamResponse>>;
|
1251
1372
|
}
|
1252
1373
|
export interface ProcessorClient<CallOptionsExt = {}> {
|
1253
1374
|
start(request: DeepPartial<StartRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
1254
1375
|
stop(request: DeepPartial<Empty>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
1255
1376
|
getConfig(request: DeepPartial<ProcessConfigRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessConfigResponse>;
|
1256
1377
|
processBindings(request: DeepPartial<ProcessBindingsRequest>, options?: CallOptions & CallOptionsExt): Promise<ProcessBindingResponse>;
|
1257
|
-
processBindingsStream(request: AsyncIterable<DeepPartial<
|
1378
|
+
processBindingsStream(request: AsyncIterable<DeepPartial<ProcessStreamRequest>>, options?: CallOptions & CallOptionsExt): AsyncIterable<ProcessStreamResponse>;
|
1258
1379
|
}
|
1259
1380
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
1260
1381
|
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|