@sentio/runtime 3.9.0-rc.9 → 4.0.0-rc.2

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.
Files changed (53) hide show
  1. package/lib/{chunk-VNWNJ423.js → chunk-63SN5KU2.js} +4198 -26357
  2. package/lib/chunk-63SN5KU2.js.map +1 -0
  3. package/lib/{chunk-L2A6JPIQ.js → chunk-LSYQ34WX.js} +3 -3
  4. package/lib/chunk-LSYQ34WX.js.map +1 -0
  5. package/lib/chunk-MSVN53DI.js +4992 -0
  6. package/lib/chunk-MSVN53DI.js.map +1 -0
  7. package/lib/{getMachineId-bsd-QYFPRONP.js → getMachineId-bsd-OV63RCBF.js} +4 -4
  8. package/lib/getMachineId-bsd-OV63RCBF.js.map +1 -0
  9. package/lib/{getMachineId-darwin-XC67FIUW.js → getMachineId-darwin-7BY3RHHX.js} +4 -4
  10. package/lib/getMachineId-darwin-7BY3RHHX.js.map +1 -0
  11. package/lib/{getMachineId-linux-4G7ZY7LQ.js → getMachineId-linux-SN23MJRK.js} +3 -3
  12. package/lib/getMachineId-linux-SN23MJRK.js.map +1 -0
  13. package/lib/{getMachineId-unsupported-5IH5IW7P.js → getMachineId-unsupported-CQYUAEDB.js} +3 -3
  14. package/lib/getMachineId-unsupported-CQYUAEDB.js.map +1 -0
  15. package/lib/{getMachineId-win-WSA3TUKL.js → getMachineId-win-NL4ZQSDA.js} +4 -4
  16. package/lib/getMachineId-win-NL4ZQSDA.js.map +1 -0
  17. package/lib/index.d.ts +1734 -549
  18. package/lib/index.js +2 -2
  19. package/lib/plugin-D-rx1WCp.d.ts +108 -0
  20. package/lib/processor-runner.js +30992 -10137
  21. package/lib/processor-runner.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/action-server.ts +3 -2
  24. package/src/db-context.ts +58 -45
  25. package/src/endpoints.ts +0 -2
  26. package/src/full-service.ts +35 -382
  27. package/src/gen/google/type/money_pb.ts +41 -0
  28. package/src/gen/processor/protos/processor_pb.ts +3855 -0
  29. package/src/gen/service/common/protos/common_pb.ts +4456 -0
  30. package/src/global-config.ts +3 -2
  31. package/src/logger.ts +13 -5
  32. package/src/plugin.ts +26 -16
  33. package/src/processor-runner-program.ts +0 -1
  34. package/src/processor-runner.ts +29 -25
  35. package/src/service-v3.ts +54 -56
  36. package/src/service.ts +94 -87
  37. package/src/utils.ts +9 -12
  38. package/lib/chunk-EXIISBRV.js +0 -26084
  39. package/lib/chunk-EXIISBRV.js.map +0 -1
  40. package/lib/chunk-L2A6JPIQ.js.map +0 -1
  41. package/lib/chunk-VNWNJ423.js.map +0 -1
  42. package/lib/getMachineId-bsd-QYFPRONP.js.map +0 -1
  43. package/lib/getMachineId-darwin-XC67FIUW.js.map +0 -1
  44. package/lib/getMachineId-linux-4G7ZY7LQ.js.map +0 -1
  45. package/lib/getMachineId-unsupported-5IH5IW7P.js.map +0 -1
  46. package/lib/getMachineId-win-WSA3TUKL.js.map +0 -1
  47. package/lib/processor-MLp_j8IT.d.ts +0 -864
  48. package/src/gen/google/protobuf/empty.ts +0 -56
  49. package/src/gen/google/protobuf/struct.ts +0 -494
  50. package/src/gen/google/protobuf/timestamp.ts +0 -106
  51. package/src/gen/google/type/money.ts +0 -122
  52. package/src/gen/processor/protos/processor.ts +0 -14071
  53. package/src/gen/service/common/protos/common.ts +0 -15157
@@ -1,122 +0,0 @@
1
- /* eslint-disable */
2
- import Long from "long";
3
- import _m0 from "protobufjs/minimal.js";
4
-
5
- export interface Money {
6
- currencyCode: string;
7
- units: bigint;
8
- nanos: number;
9
- }
10
-
11
- function createBaseMoney(): Money {
12
- return { currencyCode: "", units: BigInt("0"), nanos: 0 };
13
- }
14
-
15
- export const Money = {
16
- encode(message: Money, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
17
- if (message.currencyCode !== "") {
18
- writer.uint32(10).string(message.currencyCode);
19
- }
20
- if (message.units !== BigInt("0")) {
21
- if (BigInt.asIntN(64, message.units) !== message.units) {
22
- throw new globalThis.Error("value provided for field message.units of type int64 too large");
23
- }
24
- writer.uint32(16).int64(message.units.toString());
25
- }
26
- if (message.nanos !== 0) {
27
- writer.uint32(24).int32(message.nanos);
28
- }
29
- return writer;
30
- },
31
-
32
- decode(input: _m0.Reader | Uint8Array, length?: number): Money {
33
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
34
- let end = length === undefined ? reader.len : reader.pos + length;
35
- const message = createBaseMoney();
36
- while (reader.pos < end) {
37
- const tag = reader.uint32();
38
- switch (tag >>> 3) {
39
- case 1:
40
- if (tag !== 10) {
41
- break;
42
- }
43
-
44
- message.currencyCode = reader.string();
45
- continue;
46
- case 2:
47
- if (tag !== 16) {
48
- break;
49
- }
50
-
51
- message.units = longToBigint(reader.int64() as Long);
52
- continue;
53
- case 3:
54
- if (tag !== 24) {
55
- break;
56
- }
57
-
58
- message.nanos = reader.int32();
59
- continue;
60
- }
61
- if ((tag & 7) === 4 || tag === 0) {
62
- break;
63
- }
64
- reader.skipType(tag & 7);
65
- }
66
- return message;
67
- },
68
-
69
- fromJSON(object: any): Money {
70
- return {
71
- currencyCode: isSet(object.currencyCode) ? globalThis.String(object.currencyCode) : "",
72
- units: isSet(object.units) ? BigInt(object.units) : BigInt("0"),
73
- nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
74
- };
75
- },
76
-
77
- toJSON(message: Money): unknown {
78
- const obj: any = {};
79
- if (message.currencyCode !== "") {
80
- obj.currencyCode = message.currencyCode;
81
- }
82
- if (message.units !== BigInt("0")) {
83
- obj.units = message.units.toString();
84
- }
85
- if (message.nanos !== 0) {
86
- obj.nanos = Math.round(message.nanos);
87
- }
88
- return obj;
89
- },
90
-
91
- create(base?: DeepPartial<Money>): Money {
92
- return Money.fromPartial(base ?? {});
93
- },
94
- fromPartial(object: DeepPartial<Money>): Money {
95
- const message = createBaseMoney();
96
- message.currencyCode = object.currencyCode ?? "";
97
- message.units = object.units ?? BigInt("0");
98
- message.nanos = object.nanos ?? 0;
99
- return message;
100
- },
101
- };
102
-
103
- type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
104
-
105
- type DeepPartial<T> = T extends Builtin ? T
106
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
107
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
108
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
109
- : Partial<T>;
110
-
111
- function longToBigint(long: Long) {
112
- return BigInt(long.toString());
113
- }
114
-
115
- if (_m0.util.Long !== Long) {
116
- _m0.util.Long = Long as any;
117
- _m0.configure();
118
- }
119
-
120
- function isSet(value: any): boolean {
121
- return value !== null && value !== undefined;
122
- }