envio 2.28.0-alpha.3 → 2.28.0
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/package.json +6 -6
- package/src/Batch.res +146 -0
- package/src/Batch.res.js +129 -0
- package/src/FetchState.res +15 -0
- package/src/FetchState.res.js +20 -0
- package/src/Hasura.res +3 -19
- package/src/Hasura.res.js +6 -16
- package/src/InternalConfig.res +10 -0
- package/src/Persistence.res +25 -6
- package/src/Persistence.res.js +18 -3
- package/src/PgStorage.res +16 -8
- package/src/PgStorage.res.js +9 -6
- package/src/Throttler.res +4 -1
- package/src/Throttler.res.js +2 -1
- package/src/Utils.res +7 -0
- package/src/Utils.res.js +6 -1
- package/src/bindings/Postgres.res +1 -1
- package/src/db/InternalTable.gen.ts +0 -7
- package/src/db/InternalTable.res +140 -75
- package/src/db/InternalTable.res.js +104 -73
- package/src/sources/EventRouter.res +113 -0
- package/src/sources/EventRouter.res.js +125 -0
- package/src/sources/HyperSync.res +15 -7
- package/src/sources/HyperSync.res.js +48 -15
- package/src/sources/HyperSyncClient.res +4 -3
- package/src/sources/HyperSyncClient.res.js +6 -1
- package/src/sources/RpcSource.res +748 -0
- package/src/sources/RpcSource.res.js +697 -0
|
@@ -447,10 +447,9 @@ type t = {
|
|
|
447
447
|
streamEvents: (~query: query, ~config: streamConfig) => promise<eventStream>,
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
@module("@envio-dev/hypersync-client") @scope("HypersyncClient") external
|
|
451
|
-
|
|
450
|
+
@module("@envio-dev/hypersync-client") @scope("HypersyncClient") external make: cfg => t = "new"
|
|
452
451
|
let make = (~url, ~apiToken, ~httpReqTimeoutMillis, ~maxNumRetries) =>
|
|
453
|
-
|
|
452
|
+
make({
|
|
454
453
|
url,
|
|
455
454
|
enableChecksumAddresses: true,
|
|
456
455
|
bearerToken: apiToken,
|
|
@@ -503,4 +502,6 @@ module Decoder = {
|
|
|
503
502
|
|
|
504
503
|
@module("@envio-dev/hypersync-client") @scope("Decoder")
|
|
505
504
|
external fromSignatures: array<string> => t = "fromSignatures"
|
|
505
|
+
// Keep the @envio-dev/hypersync-client import inside of the package
|
|
506
|
+
let fromSignatures = fromSignatures
|
|
506
507
|
}
|
|
@@ -88,8 +88,13 @@ function toUnderlying(_d) {
|
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
function fromSignatures(prim) {
|
|
92
|
+
return HypersyncClient.Decoder.fromSignatures(prim);
|
|
93
|
+
}
|
|
94
|
+
|
|
91
95
|
var Decoder = {
|
|
92
|
-
toUnderlying: toUnderlying
|
|
96
|
+
toUnderlying: toUnderlying,
|
|
97
|
+
fromSignatures: fromSignatures
|
|
93
98
|
};
|
|
94
99
|
|
|
95
100
|
exports.QueryTypes = QueryTypes;
|