@backendrelay/core 1.1.0 → 2.0.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/dist/standalone/index.js +1 -1
- package/dist/standalone/index.umd.cjs +1 -1
- package/node_modules/@backendrelay/admin/dist/commonjs/__types__/typeUtils.d.ts +20 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/__types__/typeUtils.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/__types__/typeUtils.js +5 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/__types__/typeUtils.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/__types__/typesTests.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/__types__/typesTests.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/__types__/typesTests.js +88 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/__types__/typesTests.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/byop.live.e2e.test.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/byop.live.e2e.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/byop.live.e2e.test.js +131 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/byop.live.e2e.test.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/config.test.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/config.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/config.test.js +65 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/config.test.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/index.d.ts +725 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/index.js +1159 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/index.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/live.e2e.test.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/live.e2e.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/live.e2e.test.js +91 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/live.e2e.test.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/package.json +3 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/polyfill.d.ts +17 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/polyfill.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/polyfill.js +26 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/polyfill.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/removed-features.test.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/removed-features.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/removed-features.test.js +50 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/removed-features.test.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/storage-upload.test.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/storage-upload.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/storage-upload.test.js +33 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/storage-upload.test.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/subscribe.d.ts +39 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/subscribe.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/subscribe.js +306 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/subscribe.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/version.d.ts +3 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/version.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/version.js +5 -0
- package/node_modules/@backendrelay/admin/dist/commonjs/version.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/__types__/typeUtils.d.ts +20 -0
- package/node_modules/@backendrelay/admin/dist/esm/__types__/typeUtils.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/__types__/typeUtils.js +4 -0
- package/node_modules/@backendrelay/admin/dist/esm/__types__/typeUtils.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/__types__/typesTests.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/esm/__types__/typesTests.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/__types__/typesTests.js +86 -0
- package/node_modules/@backendrelay/admin/dist/esm/__types__/typesTests.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/byop.live.e2e.test.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/esm/byop.live.e2e.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/byop.live.e2e.test.js +129 -0
- package/node_modules/@backendrelay/admin/dist/esm/byop.live.e2e.test.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/config.test.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/esm/config.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/config.test.js +63 -0
- package/node_modules/@backendrelay/admin/dist/esm/config.test.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/index.d.ts +725 -0
- package/node_modules/@backendrelay/admin/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/index.js +1146 -0
- package/node_modules/@backendrelay/admin/dist/esm/index.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/live.e2e.test.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/esm/live.e2e.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/live.e2e.test.js +89 -0
- package/node_modules/@backendrelay/admin/dist/esm/live.e2e.test.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/package.json +3 -0
- package/node_modules/@backendrelay/admin/dist/esm/polyfill.d.ts +17 -0
- package/node_modules/@backendrelay/admin/dist/esm/polyfill.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/polyfill.js +22 -0
- package/node_modules/@backendrelay/admin/dist/esm/polyfill.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/removed-features.test.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/esm/removed-features.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/removed-features.test.js +48 -0
- package/node_modules/@backendrelay/admin/dist/esm/removed-features.test.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/storage-upload.test.d.ts +2 -0
- package/node_modules/@backendrelay/admin/dist/esm/storage-upload.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/storage-upload.test.js +31 -0
- package/node_modules/@backendrelay/admin/dist/esm/storage-upload.test.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/subscribe.d.ts +39 -0
- package/node_modules/@backendrelay/admin/dist/esm/subscribe.d.ts.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/subscribe.js +300 -0
- package/node_modules/@backendrelay/admin/dist/esm/subscribe.js.map +1 -0
- package/node_modules/@backendrelay/admin/dist/esm/version.d.ts +3 -0
- package/node_modules/@backendrelay/admin/dist/esm/version.d.ts.map +1 -0
- package/{src/version.ts → node_modules/@backendrelay/admin/dist/esm/version.js} +1 -1
- package/node_modules/@backendrelay/admin/dist/esm/version.js.map +1 -0
- package/node_modules/@backendrelay/admin/package.json +52 -0
- package/node_modules/@backendrelay/functions/README.md +131 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/__types__/typeUtils.d.ts +3 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/__types__/typeUtils.d.ts.map +1 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/__types__/typeUtils.js +3 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/__types__/typeUtils.js.map +1 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/__types__/typesTests.d.ts +2 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/__types__/typesTests.d.ts.map +1 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/__types__/typesTests.js +51 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/__types__/typesTests.js.map +1 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/index.d.ts +230 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/index.js +415 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/index.js.map +1 -0
- package/node_modules/@backendrelay/functions/dist/commonjs/package.json +3 -0
- package/node_modules/@backendrelay/functions/dist/esm/__types__/typeUtils.d.ts +3 -0
- package/node_modules/@backendrelay/functions/dist/esm/__types__/typeUtils.d.ts.map +1 -0
- package/node_modules/@backendrelay/functions/dist/esm/__types__/typeUtils.js +2 -0
- package/node_modules/@backendrelay/functions/dist/esm/__types__/typeUtils.js.map +1 -0
- package/node_modules/@backendrelay/functions/dist/esm/__types__/typesTests.d.ts +2 -0
- package/node_modules/@backendrelay/functions/dist/esm/__types__/typesTests.d.ts.map +1 -0
- package/node_modules/@backendrelay/functions/dist/esm/__types__/typesTests.js +49 -0
- package/node_modules/@backendrelay/functions/dist/esm/__types__/typesTests.js.map +1 -0
- package/node_modules/@backendrelay/functions/dist/esm/index.d.ts +230 -0
- package/node_modules/@backendrelay/functions/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/functions/dist/esm/index.js +403 -0
- package/node_modules/@backendrelay/functions/dist/esm/index.js.map +1 -0
- package/node_modules/@backendrelay/functions/dist/esm/package.json +3 -0
- package/node_modules/@backendrelay/functions/package.json +49 -0
- package/node_modules/@backendrelay/hatchet/dist/commonjs/index.d.ts +43 -0
- package/node_modules/@backendrelay/hatchet/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/hatchet/dist/commonjs/index.js +63 -0
- package/node_modules/@backendrelay/hatchet/dist/commonjs/index.js.map +1 -0
- package/node_modules/@backendrelay/hatchet/dist/commonjs/package.json +3 -0
- package/node_modules/@backendrelay/hatchet/dist/esm/index.d.ts +43 -0
- package/node_modules/@backendrelay/hatchet/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/hatchet/dist/esm/index.js +59 -0
- package/node_modules/@backendrelay/hatchet/dist/esm/index.js.map +1 -0
- package/node_modules/@backendrelay/hatchet/dist/esm/package.json +3 -0
- package/node_modules/@backendrelay/hatchet/package.json +46 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/ProgressPromise.d.ts +18 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/ProgressPromise.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/ProgressPromise.js +77 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/ProgressPromise.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/apps.d.ts +99 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/apps.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/apps.js +177 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/apps.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/auth.d.ts +7 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/auth.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/auth.js +15 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/auth.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/http.d.ts +3 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/http.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/http.js +46 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/http.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/perms.d.ts +13 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/perms.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/perms.js +25 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/perms.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/platform-api.d.ts +285 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/platform-api.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/platform-api.js +426 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/platform-api.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/schema-coerce.d.ts +24 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/schema-coerce.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/schema-coerce.js +108 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/schema-coerce.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/schema.d.ts +188 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/schema.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/schema.js +412 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api/schema.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api.d.ts +9 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api.js +12 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/api.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/backupDownload.d.ts +89 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/backupDownload.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/backupDownload.js +357 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/backupDownload.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/backups.d.ts +146 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/backups.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/backups.js +251 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/backups.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/clerk.d.ts +2 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/clerk.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/clerk.js +29 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/clerk.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/consts.d.ts +11 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/consts.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/consts.js +17 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/consts.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/crypto.d.ts +4 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/crypto.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/crypto.js +26 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/crypto.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/index.d.ts +19 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/index.js +76 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/index.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/migrationUtils.d.ts +4 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/migrationUtils.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/migrationUtils.js +52 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/migrationUtils.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/migrations.d.ts +99 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/migrations.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/migrations.js +597 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/migrations.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/oauth.d.ts +98 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/oauth.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/oauth.js +275 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/oauth.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/oauthCommon.d.ts +12 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/oauthCommon.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/oauthCommon.js +26 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/oauthCommon.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/package.json +3 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/perms.d.ts +3 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/perms.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/perms.js +66 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/perms.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/privateFields.d.ts +13 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/privateFields.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/privateFields.js +31 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/privateFields.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/relationships.d.ts +7 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/relationships.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/relationships.js +46 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/relationships.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/schema.d.ts +161 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/schema.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/schema.js +174 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/schema.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/serverOAuth.d.ts +25 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/serverOAuth.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/serverOAuth.js +68 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/serverOAuth.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/typescript-schema.d.ts +17 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/typescript-schema.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/typescript-schema.js +314 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/typescript-schema.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/util.d.ts +13 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/util.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/util.js +55 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/util.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/version.d.ts +3 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/version.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/version.js +5 -0
- package/node_modules/@backendrelay/platform/dist/commonjs/version.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/ProgressPromise.d.ts +18 -0
- package/node_modules/@backendrelay/platform/dist/esm/ProgressPromise.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/ProgressPromise.js +73 -0
- package/node_modules/@backendrelay/platform/dist/esm/ProgressPromise.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/apps.d.ts +99 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/apps.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/apps.js +165 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/apps.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/auth.d.ts +7 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/auth.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/auth.js +12 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/auth.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/http.d.ts +3 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/http.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/http.js +39 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/http.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/perms.d.ts +13 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/perms.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/perms.js +21 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/perms.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/platform-api.d.ts +285 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/platform-api.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/platform-api.js +421 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/platform-api.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/schema-coerce.d.ts +24 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/schema-coerce.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/schema-coerce.js +99 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/schema-coerce.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/schema.d.ts +188 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/schema.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/schema.js +393 -0
- package/node_modules/@backendrelay/platform/dist/esm/api/schema.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api.d.ts +9 -0
- package/node_modules/@backendrelay/platform/dist/esm/api.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/api.js +4 -0
- package/node_modules/@backendrelay/platform/dist/esm/api.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/backupDownload.d.ts +89 -0
- package/node_modules/@backendrelay/platform/dist/esm/backupDownload.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/backupDownload.js +354 -0
- package/node_modules/@backendrelay/platform/dist/esm/backupDownload.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/backups.d.ts +146 -0
- package/node_modules/@backendrelay/platform/dist/esm/backups.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/backups.js +240 -0
- package/node_modules/@backendrelay/platform/dist/esm/backups.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/clerk.d.ts +2 -0
- package/node_modules/@backendrelay/platform/dist/esm/clerk.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/clerk.js +26 -0
- package/node_modules/@backendrelay/platform/dist/esm/clerk.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/consts.d.ts +11 -0
- package/node_modules/@backendrelay/platform/dist/esm/consts.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/consts.js +13 -0
- package/node_modules/@backendrelay/platform/dist/esm/consts.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/crypto.d.ts +4 -0
- package/node_modules/@backendrelay/platform/dist/esm/crypto.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/crypto.js +21 -0
- package/node_modules/@backendrelay/platform/dist/esm/crypto.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/index.d.ts +19 -0
- package/node_modules/@backendrelay/platform/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/index.js +18 -0
- package/node_modules/@backendrelay/platform/dist/esm/index.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/migrationUtils.d.ts +4 -0
- package/node_modules/@backendrelay/platform/dist/esm/migrationUtils.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/migrationUtils.js +47 -0
- package/node_modules/@backendrelay/platform/dist/esm/migrationUtils.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/migrations.d.ts +99 -0
- package/node_modules/@backendrelay/platform/dist/esm/migrations.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/migrations.js +588 -0
- package/node_modules/@backendrelay/platform/dist/esm/migrations.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/oauth.d.ts +98 -0
- package/node_modules/@backendrelay/platform/dist/esm/oauth.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/oauth.js +266 -0
- package/node_modules/@backendrelay/platform/dist/esm/oauth.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/oauthCommon.d.ts +12 -0
- package/node_modules/@backendrelay/platform/dist/esm/oauthCommon.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/oauthCommon.js +22 -0
- package/node_modules/@backendrelay/platform/dist/esm/oauthCommon.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/package.json +3 -0
- package/node_modules/@backendrelay/platform/dist/esm/perms.d.ts +3 -0
- package/node_modules/@backendrelay/platform/dist/esm/perms.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/perms.js +62 -0
- package/node_modules/@backendrelay/platform/dist/esm/perms.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/privateFields.d.ts +13 -0
- package/node_modules/@backendrelay/platform/dist/esm/privateFields.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/privateFields.js +28 -0
- package/node_modules/@backendrelay/platform/dist/esm/privateFields.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/relationships.d.ts +7 -0
- package/node_modules/@backendrelay/platform/dist/esm/relationships.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/relationships.js +43 -0
- package/node_modules/@backendrelay/platform/dist/esm/relationships.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/schema.d.ts +161 -0
- package/node_modules/@backendrelay/platform/dist/esm/schema.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/schema.js +158 -0
- package/node_modules/@backendrelay/platform/dist/esm/schema.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/serverOAuth.d.ts +25 -0
- package/node_modules/@backendrelay/platform/dist/esm/serverOAuth.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/serverOAuth.js +64 -0
- package/node_modules/@backendrelay/platform/dist/esm/serverOAuth.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/typescript-schema.d.ts +17 -0
- package/node_modules/@backendrelay/platform/dist/esm/typescript-schema.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/typescript-schema.js +310 -0
- package/node_modules/@backendrelay/platform/dist/esm/typescript-schema.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/util.d.ts +13 -0
- package/node_modules/@backendrelay/platform/dist/esm/util.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/util.js +46 -0
- package/node_modules/@backendrelay/platform/dist/esm/util.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/version.d.ts +3 -0
- package/node_modules/@backendrelay/platform/dist/esm/version.d.ts.map +1 -0
- package/node_modules/@backendrelay/platform/dist/esm/version.js +3 -0
- package/node_modules/@backendrelay/platform/dist/esm/version.js.map +1 -0
- package/node_modules/@backendrelay/platform/dist/standalone/index.js +13738 -0
- package/node_modules/@backendrelay/platform/dist/standalone/index.umd.cjs +72 -0
- package/node_modules/@backendrelay/platform/package.json +51 -0
- package/node_modules/@backendrelay/resumable-stream/dist/commonjs/index.d.ts +67 -0
- package/node_modules/@backendrelay/resumable-stream/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/resumable-stream/dist/commonjs/index.js +129 -0
- package/node_modules/@backendrelay/resumable-stream/dist/commonjs/index.js.map +1 -0
- package/node_modules/@backendrelay/resumable-stream/dist/commonjs/package.json +3 -0
- package/node_modules/@backendrelay/resumable-stream/dist/esm/index.d.ts +67 -0
- package/node_modules/@backendrelay/resumable-stream/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/resumable-stream/dist/esm/index.js +126 -0
- package/node_modules/@backendrelay/resumable-stream/dist/esm/index.js.map +1 -0
- package/node_modules/@backendrelay/resumable-stream/dist/esm/package.json +3 -0
- package/node_modules/@backendrelay/resumable-stream/dist/standalone/index.js +4354 -0
- package/node_modules/@backendrelay/resumable-stream/dist/standalone/index.umd.cjs +6 -0
- package/node_modules/@backendrelay/resumable-stream/package.json +47 -0
- package/node_modules/@backendrelay/rules/README.md +34 -0
- package/node_modules/@backendrelay/rules/dist/commonjs/index.d.ts +117 -0
- package/node_modules/@backendrelay/rules/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/rules/dist/commonjs/index.js +68 -0
- package/node_modules/@backendrelay/rules/dist/commonjs/index.js.map +1 -0
- package/node_modules/@backendrelay/rules/dist/commonjs/package.json +3 -0
- package/node_modules/@backendrelay/rules/dist/esm/index.d.ts +117 -0
- package/node_modules/@backendrelay/rules/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/rules/dist/esm/index.js +64 -0
- package/node_modules/@backendrelay/rules/dist/esm/index.js.map +1 -0
- package/node_modules/@backendrelay/rules/dist/esm/package.json +3 -0
- package/node_modules/@backendrelay/rules/package.json +46 -0
- package/node_modules/@backendrelay/test/README.md +75 -0
- package/node_modules/@backendrelay/test/dist/commonjs/index.d.ts +74 -0
- package/node_modules/@backendrelay/test/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/test/dist/commonjs/index.js +197 -0
- package/node_modules/@backendrelay/test/dist/commonjs/index.js.map +1 -0
- package/node_modules/@backendrelay/test/dist/commonjs/live.e2e.test.d.ts +2 -0
- package/node_modules/@backendrelay/test/dist/commonjs/live.e2e.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/test/dist/commonjs/live.e2e.test.js +45 -0
- package/node_modules/@backendrelay/test/dist/commonjs/live.e2e.test.js.map +1 -0
- package/node_modules/@backendrelay/test/dist/commonjs/package.json +3 -0
- package/node_modules/@backendrelay/test/dist/esm/index.d.ts +74 -0
- package/node_modules/@backendrelay/test/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/test/dist/esm/index.js +192 -0
- package/node_modules/@backendrelay/test/dist/esm/index.js.map +1 -0
- package/node_modules/@backendrelay/test/dist/esm/live.e2e.test.d.ts +2 -0
- package/node_modules/@backendrelay/test/dist/esm/live.e2e.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/test/dist/esm/live.e2e.test.js +43 -0
- package/node_modules/@backendrelay/test/dist/esm/live.e2e.test.js.map +1 -0
- package/node_modules/@backendrelay/test/dist/esm/package.json +3 -0
- package/node_modules/@backendrelay/test/package.json +49 -0
- package/node_modules/@backendrelay/version/dist/commonjs/index.d.ts +3 -0
- package/node_modules/@backendrelay/version/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/version/dist/commonjs/index.js +6 -0
- package/node_modules/@backendrelay/version/dist/commonjs/index.js.map +1 -0
- package/node_modules/@backendrelay/version/dist/commonjs/package.json +3 -0
- package/node_modules/@backendrelay/version/dist/commonjs/version.d.ts +3 -0
- package/node_modules/@backendrelay/version/dist/commonjs/version.d.ts.map +1 -0
- package/node_modules/@backendrelay/version/dist/commonjs/version.js +10 -0
- package/node_modules/@backendrelay/version/dist/commonjs/version.js.map +1 -0
- package/node_modules/@backendrelay/version/dist/esm/index.d.ts +3 -0
- package/node_modules/@backendrelay/version/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/version/dist/esm/index.js +3 -0
- package/node_modules/@backendrelay/version/dist/esm/index.js.map +1 -0
- package/node_modules/@backendrelay/version/dist/esm/package.json +3 -0
- package/node_modules/@backendrelay/version/dist/esm/version.d.ts +3 -0
- package/node_modules/@backendrelay/version/dist/esm/version.d.ts.map +1 -0
- package/node_modules/@backendrelay/version/dist/esm/version.js +7 -0
- package/node_modules/@backendrelay/version/dist/esm/version.js.map +1 -0
- package/node_modules/@backendrelay/version/dist/standalone/index.js +4 -0
- package/node_modules/@backendrelay/version/dist/standalone/index.umd.cjs +1 -0
- package/node_modules/@backendrelay/version/package.json +44 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/__types__/typeUtils.d.ts +12 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/__types__/typeUtils.d.ts.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/__types__/typeUtils.js +5 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/__types__/typeUtils.js.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/__types__/typesTests.d.ts +2 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/__types__/typesTests.d.ts.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/__types__/typesTests.js +82 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/__types__/typesTests.js.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/index.d.ts +607 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/index.js +830 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/index.js.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/live.e2e.test.d.ts +2 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/live.e2e.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/live.e2e.test.js +139 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/live.e2e.test.js.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/commonjs/package.json +3 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/__types__/typeUtils.d.ts +12 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/__types__/typeUtils.d.ts.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/__types__/typeUtils.js +4 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/__types__/typeUtils.js.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/__types__/typesTests.d.ts +2 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/__types__/typesTests.d.ts.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/__types__/typesTests.js +80 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/__types__/typesTests.js.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/index.d.ts +607 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/index.js +825 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/index.js.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/live.e2e.test.d.ts +2 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/live.e2e.test.d.ts.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/live.e2e.test.js +137 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/live.e2e.test.js.map +1 -0
- package/node_modules/@backendrelay/webhooks/dist/esm/package.json +3 -0
- package/node_modules/@backendrelay/webhooks/package.json +46 -0
- package/package.json +129 -56
- package/subpaths/admin/index.cjs +1 -0
- package/subpaths/admin/index.d.ts +1 -0
- package/subpaths/admin/index.mjs +3 -0
- package/subpaths/functions/index.cjs +1 -0
- package/subpaths/functions/index.d.ts +1 -0
- package/subpaths/functions/index.mjs +3 -0
- package/subpaths/hatchet/index.cjs +1 -0
- package/subpaths/hatchet/index.d.ts +1 -0
- package/subpaths/hatchet/index.mjs +3 -0
- package/subpaths/platform/index.cjs +1 -0
- package/subpaths/platform/index.d.ts +1 -0
- package/subpaths/platform/index.mjs +3 -0
- package/subpaths/resumable-stream/index.cjs +1 -0
- package/subpaths/resumable-stream/index.d.ts +1 -0
- package/subpaths/resumable-stream/index.mjs +3 -0
- package/subpaths/rules/index.cjs +1 -0
- package/subpaths/rules/index.d.ts +1 -0
- package/subpaths/rules/index.mjs +3 -0
- package/subpaths/test/index.cjs +1 -0
- package/subpaths/test/index.d.ts +1 -0
- package/subpaths/test/index.mjs +3 -0
- package/subpaths/version/index.cjs +1 -0
- package/subpaths/version/index.d.ts +1 -0
- package/subpaths/version/index.mjs +3 -0
- package/subpaths/webhooks/index.cjs +1 -0
- package/subpaths/webhooks/index.d.ts +1 -0
- package/subpaths/webhooks/index.mjs +3 -0
- package/.tshy/build.json +0 -8
- package/.tshy/commonjs.json +0 -16
- package/.tshy/esm.json +0 -15
- package/__example__/standalone.esm.html +0 -23
- package/__example__/standalone.umd.html +0 -21
- package/__tests__/src/Connection.test.ts +0 -292
- package/__tests__/src/IndexedDBStorage.test.ts +0 -96
- package/__tests__/src/Reactor.test.ts +0 -1179
- package/__tests__/src/auth-extra-fields.e2e.test.ts +0 -160
- package/__tests__/src/byop.e2e.test.ts +0 -762
- package/__tests__/src/config.test.ts +0 -85
- package/__tests__/src/cookieSync.e2e.test.ts +0 -163
- package/__tests__/src/data/movies/attrs.json +0 -145
- package/__tests__/src/data/movies/triples.json +0 -1507
- package/__tests__/src/data/zeneca/attrs.json +0 -251
- package/__tests__/src/data/zeneca/triples.json +0 -15854
- package/__tests__/src/datalog.test.ts +0 -175
- package/__tests__/src/devtool.test.ts +0 -23
- package/__tests__/src/framework.test.ts +0 -173
- package/__tests__/src/infiniteQuery.e2e.test.ts +0 -467
- package/__tests__/src/instaml.test.ts +0 -1593
- package/__tests__/src/instaql.bench.ts +0 -34
- package/__tests__/src/instaql.test.ts +0 -1497
- package/__tests__/src/instaqlInference.test.ts +0 -243
- package/__tests__/src/presence.test.ts +0 -49
- package/__tests__/src/queryValidation.test.ts +0 -1101
- package/__tests__/src/schema.test.ts +0 -653
- package/__tests__/src/serializeSchema.test.ts +0 -123
- package/__tests__/src/simple.e2e.test.ts +0 -133
- package/__tests__/src/storage-upload.test.ts +0 -37
- package/__tests__/src/store.test.ts +0 -960
- package/__tests__/src/syncTable.e2e.test.ts +0 -245
- package/__tests__/src/syncTable.test.ts +0 -235
- package/__tests__/src/transactionValidation.test.ts +0 -450
- package/__tests__/src/typeUtils.ts +0 -39
- package/__tests__/src/upstream-improvements.e2e.test.ts +0 -54
- package/__tests__/src/utils/MutationStorage.test.ts +0 -77
- package/__tests__/src/utils/PersistedObject.test.ts +0 -569
- package/__tests__/src/utils/dates.test.ts +0 -111
- package/__tests__/src/utils/e2e.ts +0 -100
- package/__tests__/src/utils/msw.ts +0 -3
- package/__tests__/src/utils/object.test.ts +0 -78
- package/__tests__/src/utils/weakHash.test.ts +0 -68
- package/__tests__/src/utils/weakHashLegacy.test.ts +0 -22
- package/__tests__/src/vite.env.d.ts +0 -1
- package/src/BackendRelayError.ts +0 -50
- package/src/Connection.ts +0 -361
- package/src/InMemoryStorage.ts +0 -34
- package/src/IndexedDBStorage.ts +0 -398
- package/src/Reactor.js +0 -1541
- package/src/StorageAPI.ts +0 -147
- package/src/Stream.ts +0 -1252
- package/src/SyncTable.ts +0 -750
- package/src/WindowNetworkListener.js +0 -19
- package/src/__types__/fieldsTypeTest.ts +0 -111
- package/src/__types__/typeUtils.ts +0 -39
- package/src/__types__/useDatesTypeTest.ts +0 -66
- package/src/attrTypes.ts +0 -37
- package/src/authAPI.ts +0 -205
- package/src/clientTypes.ts +0 -28
- package/src/coreTypes.ts +0 -58
- package/src/createRouteHandler.ts +0 -68
- package/src/datalog.js +0 -116
- package/src/devtool.ts +0 -179
- package/src/framework.ts +0 -450
- package/src/helperTypes.ts +0 -117
- package/src/index.ts +0 -1293
- package/src/infiniteQuery.ts +0 -599
- package/src/instaml.ts +0 -676
- package/src/instaql.ts +0 -999
- package/src/instatx.ts +0 -265
- package/src/model/instaqlResult.js +0 -25
- package/src/parseSchemaFromJSON.ts +0 -176
- package/src/presence.ts +0 -123
- package/src/presenceTypes.ts +0 -19
- package/src/queryTypes.ts +0 -749
- package/src/queryValidation.ts +0 -598
- package/src/reactorAuth.js +0 -236
- package/src/reactorEvents.js +0 -414
- package/src/reactorMutations.js +0 -354
- package/src/reactorRooms.js +0 -297
- package/src/reactorStorage.js +0 -180
- package/src/reactorSubs.js +0 -275
- package/src/reactorTransport.js +0 -391
- package/src/reactorTypes.ts +0 -41
- package/src/routeHandlerProtocol.ts +0 -25
- package/src/rulesTypes.ts +0 -132
- package/src/sanityCheckQueries.ts +0 -191
- package/src/schema.ts +0 -206
- package/src/schemaTypes.ts +0 -664
- package/src/store.ts +0 -1165
- package/src/transactionValidation.ts +0 -204
- package/src/urls.ts +0 -50
- package/src/utils/Deferred.ts +0 -20
- package/src/utils/MutationStorage.ts +0 -89
- package/src/utils/PersistedObject.ts +0 -612
- package/src/utils/dates.ts +0 -269
- package/src/utils/error.ts +0 -9
- package/src/utils/fetch.ts +0 -131
- package/src/utils/flags.ts +0 -14
- package/src/utils/id.ts +0 -28
- package/src/utils/linkIndex.ts +0 -33
- package/src/utils/log.ts +0 -23
- package/src/utils/object.js +0 -180
- package/src/utils/pgtime.ts +0 -199
- package/src/utils/pick.js +0 -9
- package/src/utils/strings.ts +0 -19
- package/src/utils/weakHash.ts +0 -77
- package/src/utils/weakHashLegacy.ts +0 -75
- package/src/warningToggle.ts +0 -5
- package/tsconfig.cjs.dev.json +0 -15
- package/tsconfig.dev.json +0 -14
- package/tsconfig.json +0 -13
- package/tsconfig.test.json +0 -5
- package/vite.config.ts +0 -19
- package/vitest.config.ts +0 -54
package/src/reactorStorage.js
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
import * as s from './store.ts';
|
|
3
|
-
import { PersistedObject } from './utils/PersistedObject.ts';
|
|
4
|
-
import { MutationStorage } from './utils/MutationStorage.ts';
|
|
5
|
-
|
|
6
|
-
/** @typedef {import('./utils/PersistedObject.ts').StoreInterfaceClass} StoreInterfaceClass */
|
|
7
|
-
/** @typedef {import('./utils/log.ts').Logger} Logger */
|
|
8
|
-
/** @typedef {import('./reactorTypes.ts').QuerySub} QuerySub */
|
|
9
|
-
/** @typedef {import('./reactorTypes.ts').QuerySubInStorage} QuerySubInStorage */
|
|
10
|
-
|
|
11
|
-
export const writeStreamsKey = 'writeStreams';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @param {QuerySubInStorage} x
|
|
15
|
-
* @param {boolean | null | undefined} useDateObjects
|
|
16
|
-
* @returns {QuerySub}
|
|
17
|
-
*/
|
|
18
|
-
export function querySubFromStorage(x, useDateObjects) {
|
|
19
|
-
const v = typeof x === 'string' ? JSON.parse(x) : x;
|
|
20
|
-
|
|
21
|
-
if (v?.result?.store) {
|
|
22
|
-
const attrsStore = s.attrsStoreFromJSON(
|
|
23
|
-
v.result.attrsStore,
|
|
24
|
-
v.result.store,
|
|
25
|
-
);
|
|
26
|
-
if (attrsStore) {
|
|
27
|
-
const storeJSON = v.result.store;
|
|
28
|
-
v.result.store = s.fromJSON(attrsStore, {
|
|
29
|
-
...storeJSON,
|
|
30
|
-
useDateObjects: useDateObjects,
|
|
31
|
-
});
|
|
32
|
-
v.result.attrsStore = attrsStore;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return v;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @param {string} _key
|
|
42
|
-
* @param {QuerySub} sub
|
|
43
|
-
* @returns QuerySubInStorage
|
|
44
|
-
*/
|
|
45
|
-
export function querySubToStorage(_key, sub) {
|
|
46
|
-
const { result, ...rest } = sub;
|
|
47
|
-
const jsonSub = /** @type {import('./reactorTypes.ts').QuerySubInStorage} */ (
|
|
48
|
-
rest
|
|
49
|
-
);
|
|
50
|
-
if (result) {
|
|
51
|
-
/** @type {import('./reactorTypes.ts').QuerySubResultInStorage} */
|
|
52
|
-
const jsonResult = {
|
|
53
|
-
...result,
|
|
54
|
-
store: s.toJSON(result.store),
|
|
55
|
-
attrsStore: result.attrsStore.toJSON(),
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
jsonSub.result = jsonResult;
|
|
59
|
-
}
|
|
60
|
-
return jsonSub;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function identity(_key, x) {
|
|
64
|
-
return x;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function onMergeQuerySub(_k, storageSub, inMemorySub) {
|
|
68
|
-
const storageResult = storageSub?.result;
|
|
69
|
-
const memoryResult = inMemorySub?.result;
|
|
70
|
-
if (storageResult && !memoryResult && inMemorySub) {
|
|
71
|
-
inMemorySub.result = storageResult;
|
|
72
|
-
}
|
|
73
|
-
return inMemorySub || storageSub;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function mergeKv(_key, storageV, inMemoryV) {
|
|
77
|
-
return inMemoryV || storageV;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* The querySubs store: one entry per query hash, with serialized stores and
|
|
82
|
-
* size measured in triples.
|
|
83
|
-
*
|
|
84
|
-
* @param {Object} opts
|
|
85
|
-
* @param {string} opts.appId
|
|
86
|
-
* @param {StoreInterfaceClass} opts.Storage
|
|
87
|
-
* @param {Logger} opts.log
|
|
88
|
-
* @param {boolean | null | undefined} opts.useDateObjects
|
|
89
|
-
* @returns {PersistedObject<string, QuerySub, QuerySubInStorage>}
|
|
90
|
-
*/
|
|
91
|
-
export function createQuerySubsStore({ appId, Storage, log, useDateObjects }) {
|
|
92
|
-
return new PersistedObject({
|
|
93
|
-
persister: new Storage(appId, 'querySubs'),
|
|
94
|
-
merge: onMergeQuerySub,
|
|
95
|
-
serialize: querySubToStorage,
|
|
96
|
-
parse: (_key, x) => querySubFromStorage(x, useDateObjects),
|
|
97
|
-
// objectSize
|
|
98
|
-
objectSize: (x) => x?.result?.store?.triples?.length ?? 0,
|
|
99
|
-
logger: log,
|
|
100
|
-
preloadEntryCount: 10,
|
|
101
|
-
gc: {
|
|
102
|
-
maxAgeMs: 1000 * 60 * 60 * 24 * 7 * 52, // 1 year
|
|
103
|
-
maxEntries: 1000,
|
|
104
|
-
// Size of each query is the number of triples
|
|
105
|
-
maxSize: 1_000_000, // 1 million triples
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* The kv store: app-wide key/value persistence (current user, local ids,
|
|
112
|
-
* write streams, cookie-sync timestamps).
|
|
113
|
-
*
|
|
114
|
-
* @param {Object} opts
|
|
115
|
-
* @param {string} opts.appId
|
|
116
|
-
* @param {StoreInterfaceClass} opts.Storage
|
|
117
|
-
* @param {Logger} opts.log
|
|
118
|
-
* @returns {PersistedObject}
|
|
119
|
-
*/
|
|
120
|
-
export function createKvStore({ appId, Storage, log }) {
|
|
121
|
-
return new PersistedObject({
|
|
122
|
-
persister: new Storage(appId, 'kv'),
|
|
123
|
-
merge: mergeKv,
|
|
124
|
-
serialize: identity,
|
|
125
|
-
parse: identity,
|
|
126
|
-
objectSize: () => 0,
|
|
127
|
-
logger: log,
|
|
128
|
-
saveThrottleMs: 100,
|
|
129
|
-
idleCallbackMaxWaitMs: 100,
|
|
130
|
-
// Don't GC the kv store
|
|
131
|
-
gc: null,
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* The pending-mutations store.
|
|
137
|
-
*
|
|
138
|
-
* One key per pending mutation so each save writes a single small row
|
|
139
|
-
* instead of rewriting the whole map. A frozen tab can otherwise park
|
|
140
|
-
* the store lock mid-save and block sibling tabs from booting.
|
|
141
|
-
*
|
|
142
|
-
* @param {Object} opts
|
|
143
|
-
* @param {string} opts.appId
|
|
144
|
-
* @param {StoreInterfaceClass} opts.Storage
|
|
145
|
-
* @param {Logger} opts.log
|
|
146
|
-
* @param {() => boolean} opts.isIgnoringStoredMutations
|
|
147
|
-
* @param {(eventId: string) => void} opts.onRecoveredMutation
|
|
148
|
-
* @returns {PersistedObject}
|
|
149
|
-
*/
|
|
150
|
-
export function createMutationsStore({
|
|
151
|
-
appId,
|
|
152
|
-
Storage,
|
|
153
|
-
log,
|
|
154
|
-
isIgnoringStoredMutations,
|
|
155
|
-
onRecoveredMutation,
|
|
156
|
-
}) {
|
|
157
|
-
return new PersistedObject({
|
|
158
|
-
persister: new MutationStorage(appId, Storage),
|
|
159
|
-
merge: (eventId, storageV, inMemoryV) => {
|
|
160
|
-
// A storage read started before an auth change must not revive the old
|
|
161
|
-
// user's mutations after their in-memory queue has been cleared.
|
|
162
|
-
if (isIgnoringStoredMutations()) return inMemoryV;
|
|
163
|
-
// A mutation in storage that no in-memory write claimed came from a
|
|
164
|
-
// previous session (or another tab). If the server never confirmed it,
|
|
165
|
-
// re-send it once the full set has loaded.
|
|
166
|
-
if (storageV && !inMemoryV && !storageV['tx-id']) {
|
|
167
|
-
onRecoveredMutation(eventId);
|
|
168
|
-
}
|
|
169
|
-
return inMemoryV || storageV;
|
|
170
|
-
},
|
|
171
|
-
serialize: identity,
|
|
172
|
-
parse: identity,
|
|
173
|
-
objectSize: () => 0,
|
|
174
|
-
logger: log,
|
|
175
|
-
saveThrottleMs: 100,
|
|
176
|
-
idleCallbackMaxWaitMs: 100,
|
|
177
|
-
// Don't GC the mutations store
|
|
178
|
-
gc: null,
|
|
179
|
-
});
|
|
180
|
-
}
|
package/src/reactorSubs.js
DELETED
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
import weakHash from './utils/weakHash.ts';
|
|
3
|
-
import weakHashLegacy from './utils/weakHashLegacy.ts';
|
|
4
|
-
import instaql from './instaql.ts';
|
|
5
|
-
import * as s from './store.ts';
|
|
6
|
-
import uuid from './utils/id.ts';
|
|
7
|
-
import { extractTriples } from './model/instaqlResult.js';
|
|
8
|
-
import { areObjectsDeepEqual } from './utils/object.js';
|
|
9
|
-
import { BackendRelayError } from './BackendRelayError.ts';
|
|
10
|
-
|
|
11
|
-
export const QUERY_ONCE_TIMEOUT = 30_000;
|
|
12
|
-
|
|
13
|
-
export function getPreviousResult(reactor, q) {
|
|
14
|
-
const hash = weakHash(q);
|
|
15
|
-
return reactor.dataForQuery(hash)?.data;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Does the same thing as add-query-ok
|
|
20
|
-
* but called as a result of receiving query info from ssr
|
|
21
|
-
* @param {any} q
|
|
22
|
-
* @param {{ triples: any; pageInfo: any; }} result
|
|
23
|
-
* @param {boolean} enableCardinalityInference
|
|
24
|
-
*/
|
|
25
|
-
export function addQueryData(reactor, q, result, enableCardinalityInference) {
|
|
26
|
-
if (!reactor.attrs) {
|
|
27
|
-
throw new Error('Attrs in reactor have not been set');
|
|
28
|
-
}
|
|
29
|
-
const queryHash = weakHash(q);
|
|
30
|
-
const attrsStore = reactor.ensureAttrs();
|
|
31
|
-
const store = s.createStore(
|
|
32
|
-
reactor.attrs,
|
|
33
|
-
result.triples,
|
|
34
|
-
enableCardinalityInference,
|
|
35
|
-
reactor.config.useDateObjects,
|
|
36
|
-
);
|
|
37
|
-
reactor.querySubs.updateInPlace((prev) => {
|
|
38
|
-
prev[queryHash] = {
|
|
39
|
-
result: {
|
|
40
|
-
store,
|
|
41
|
-
attrsStore,
|
|
42
|
-
pageInfo: result.pageInfo,
|
|
43
|
-
processedTxId: undefined,
|
|
44
|
-
isExternal: true,
|
|
45
|
-
},
|
|
46
|
-
q,
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
reactor._cleanupPendingMutationsQueries();
|
|
50
|
-
reactor.notifyOne(queryHash);
|
|
51
|
-
reactor.notifyOneQueryOnce(queryHash);
|
|
52
|
-
reactor._cleanupPendingMutationsTimeout();
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function startQuerySub(reactor, q, hash) {
|
|
56
|
-
const eventId = uuid();
|
|
57
|
-
reactor.querySubs.updateInPlace((prev) => {
|
|
58
|
-
if (!prev[hash]) {
|
|
59
|
-
// Legacy hash migration (sync): if a preloaded entry sits under the
|
|
60
|
-
// old hash, move it to the new key so the placeholder line below
|
|
61
|
-
// becomes a no-op and currentValue[hash] keeps its cached result.
|
|
62
|
-
const legacyHash = weakHashLegacy(q);
|
|
63
|
-
if (legacyHash !== hash && prev[legacyHash]) {
|
|
64
|
-
prev[hash] = prev[legacyHash];
|
|
65
|
-
delete prev[legacyHash];
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
prev[hash] = prev[hash] || { q, result: null, eventId };
|
|
69
|
-
prev[hash].lastAccessed = Date.now();
|
|
70
|
-
});
|
|
71
|
-
reactor._tryMigrateLegacyQuerySub(q, hash);
|
|
72
|
-
reactor._trySendAuthed(eventId, { op: 'add-query', q });
|
|
73
|
-
|
|
74
|
-
return eventId;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// Legacy hash migration (async): covers entries that weren't preloaded
|
|
78
|
-
// into currentValue. Actively loads the legacy key from storage, moves
|
|
79
|
-
// its result onto the new key, and notifies subscribers. Safe to remove
|
|
80
|
-
// a few releases after v1.0.39.
|
|
81
|
-
export async function tryMigrateLegacyQuerySub(reactor, q, newHash) {
|
|
82
|
-
const legacyHash = weakHashLegacy(q);
|
|
83
|
-
if (legacyHash === newHash) return;
|
|
84
|
-
await reactor.querySubs.waitForKeyToLoad(legacyHash);
|
|
85
|
-
const legacy = reactor.querySubs.currentValue[legacyHash];
|
|
86
|
-
if (!legacy) return;
|
|
87
|
-
let migratedResult = false;
|
|
88
|
-
reactor.querySubs.updateInPlace((prev) => {
|
|
89
|
-
const existing = prev[newHash];
|
|
90
|
-
if (existing && !existing.result && legacy.result) {
|
|
91
|
-
existing.result = legacy.result;
|
|
92
|
-
migratedResult = true;
|
|
93
|
-
} else if (!existing) {
|
|
94
|
-
prev[newHash] = legacy;
|
|
95
|
-
migratedResult = !!legacy.result;
|
|
96
|
-
}
|
|
97
|
-
delete prev[legacyHash];
|
|
98
|
-
});
|
|
99
|
-
if (migratedResult) reactor.notifyOne(newHash);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export function completeQueryOnce(reactor, q, hash, dfd) {
|
|
103
|
-
if (!reactor.queryOnceDfds[hash]) return;
|
|
104
|
-
|
|
105
|
-
reactor.queryOnceDfds[hash] = reactor.queryOnceDfds[hash].filter(
|
|
106
|
-
(r) => r.dfd !== dfd,
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
reactor._cleanupQuery(q, hash);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export function unsubQuery(reactor, q, hash, cb) {
|
|
113
|
-
if (!reactor.queryCbs[hash]) return;
|
|
114
|
-
|
|
115
|
-
reactor.queryCbs[hash] = reactor.queryCbs[hash].filter((r) => r.cb !== cb);
|
|
116
|
-
|
|
117
|
-
reactor._cleanupQuery(q, hash);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export function hasQueryListeners(reactor, hash) {
|
|
121
|
-
return !!(
|
|
122
|
-
reactor.queryCbs[hash]?.length || reactor.queryOnceDfds[hash]?.length
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export function cleanupQuery(reactor, q, hash) {
|
|
127
|
-
const hasListeners = reactor._hasQueryListeners(hash);
|
|
128
|
-
if (hasListeners) return;
|
|
129
|
-
delete reactor.queryCbs[hash];
|
|
130
|
-
delete reactor.queryOnceDfds[hash];
|
|
131
|
-
delete reactor._dataForQueryCache[hash];
|
|
132
|
-
reactor.querySubs.unloadKey(hash);
|
|
133
|
-
|
|
134
|
-
reactor._trySendAuthed(uuid(), { op: 'remove-query', q });
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export function notifyQueryOnceError(reactor, q, hash, eventId, e) {
|
|
138
|
-
const r = reactor.queryOnceDfds[hash]?.find((r) => r.eventId === eventId);
|
|
139
|
-
if (!r) return;
|
|
140
|
-
r.dfd.reject(e);
|
|
141
|
-
reactor._completeQueryOnce(q, hash, r.dfd);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/** Runs instaql on a query and a store */
|
|
145
|
-
export function dataForQuery(reactor, hash, applyOptimistic = true) {
|
|
146
|
-
const errorMessage = reactor._errorMessage;
|
|
147
|
-
if (errorMessage) {
|
|
148
|
-
return { error: errorMessage };
|
|
149
|
-
}
|
|
150
|
-
if (!reactor.querySubs) return;
|
|
151
|
-
if (!reactor._pendingMutationsReady) return;
|
|
152
|
-
const querySubVersion = reactor.querySubs.version();
|
|
153
|
-
const querySubs = reactor.querySubs.currentValue;
|
|
154
|
-
const pendingMutationsVersion = reactor.mutations.version();
|
|
155
|
-
const pendingMutations = reactor._pendingMutations();
|
|
156
|
-
|
|
157
|
-
const { q, result } = querySubs[hash] || {};
|
|
158
|
-
if (!result) return;
|
|
159
|
-
|
|
160
|
-
const cached = reactor._dataForQueryCache[hash];
|
|
161
|
-
if (
|
|
162
|
-
cached &&
|
|
163
|
-
querySubVersion === cached.querySubVersion &&
|
|
164
|
-
pendingMutationsVersion === cached.pendingMutationsVersion
|
|
165
|
-
) {
|
|
166
|
-
return cached;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
let store = result.store;
|
|
170
|
-
let attrsStore = result.attrsStore;
|
|
171
|
-
const { pageInfo, aggregate, processedTxId } = result;
|
|
172
|
-
const mutations = reactor._rewriteMutationsSorted(
|
|
173
|
-
attrsStore,
|
|
174
|
-
pendingMutations,
|
|
175
|
-
);
|
|
176
|
-
if (applyOptimistic) {
|
|
177
|
-
const optimisticResult = reactor._applyOptimisticUpdates(
|
|
178
|
-
store,
|
|
179
|
-
attrsStore,
|
|
180
|
-
mutations,
|
|
181
|
-
processedTxId,
|
|
182
|
-
);
|
|
183
|
-
|
|
184
|
-
store = optimisticResult.store;
|
|
185
|
-
attrsStore = optimisticResult.attrsStore;
|
|
186
|
-
}
|
|
187
|
-
const resp = instaql(
|
|
188
|
-
{ store: store, attrsStore: attrsStore, pageInfo, aggregate },
|
|
189
|
-
q,
|
|
190
|
-
);
|
|
191
|
-
|
|
192
|
-
return { data: resp, querySubVersion, pendingMutationsVersion };
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/** Re-run instaql and call all callbacks with new data */
|
|
196
|
-
export function notifyOne(reactor, hash) {
|
|
197
|
-
const cbs = reactor.queryCbs[hash] ?? [];
|
|
198
|
-
const prevData = reactor._dataForQueryCache[hash]?.data;
|
|
199
|
-
const resp = reactor.dataForQuery(hash);
|
|
200
|
-
|
|
201
|
-
if (!resp?.data) return;
|
|
202
|
-
reactor._dataForQueryCache[hash] = resp;
|
|
203
|
-
if (areObjectsDeepEqual(resp.data, prevData)) return;
|
|
204
|
-
|
|
205
|
-
cbs.forEach((r) => r.cb(resp.data));
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export function notifyOneQueryOnce(reactor, hash) {
|
|
209
|
-
const dfds = reactor.queryOnceDfds[hash] ?? [];
|
|
210
|
-
const data = reactor.dataForQuery(hash)?.data;
|
|
211
|
-
|
|
212
|
-
dfds.forEach((r) => {
|
|
213
|
-
reactor._completeQueryOnce(r.q, hash, r.dfd);
|
|
214
|
-
r.dfd.resolve(data);
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Resolves the one-shot request identified by `client-event-id` with the
|
|
220
|
-
* server's fresh result. Unlike `notifyOneQueryOnce`, this never reads a
|
|
221
|
-
* subscription's cached result and never touches an existing subscription.
|
|
222
|
-
*/
|
|
223
|
-
export function completeQueryOnceWithResult(reactor, q, msg) {
|
|
224
|
-
const hash = weakHash(q);
|
|
225
|
-
const dfds = reactor.queryOnceDfds[hash] ?? [];
|
|
226
|
-
const eventId = msg['client-event-id'];
|
|
227
|
-
const pending = dfds.filter((r) => r.eventId === eventId);
|
|
228
|
-
if (!pending.length) return;
|
|
229
|
-
|
|
230
|
-
reactor.queryOnceDfds[hash] = dfds.filter((r) => r.eventId !== eventId);
|
|
231
|
-
|
|
232
|
-
const result = msg.result;
|
|
233
|
-
const pageInfo = result?.[0]?.data?.['page-info'];
|
|
234
|
-
const aggregate = result?.[0]?.data?.['aggregate'];
|
|
235
|
-
const attrsStore = reactor.ensureAttrs();
|
|
236
|
-
const enableCardinalityInference =
|
|
237
|
-
Boolean(reactor.config.schema) &&
|
|
238
|
-
('cardinalityInference' in reactor.config
|
|
239
|
-
? Boolean(reactor.config.cardinalityInference)
|
|
240
|
-
: true);
|
|
241
|
-
const store = s.createStore(
|
|
242
|
-
attrsStore,
|
|
243
|
-
extractTriples(result),
|
|
244
|
-
enableCardinalityInference,
|
|
245
|
-
reactor.config.useDateObjects,
|
|
246
|
-
);
|
|
247
|
-
const data = instaql({ store, attrsStore, pageInfo, aggregate }, q);
|
|
248
|
-
|
|
249
|
-
pending.forEach((request) => request.dfd.resolve(data));
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
export function notifyQueryError(reactor, hash, error) {
|
|
253
|
-
// Clear the dedupe cache so the next successful result re-notifies
|
|
254
|
-
// subscribers even if the data is unchanged from before the error
|
|
255
|
-
delete reactor._dataForQueryCache[hash];
|
|
256
|
-
const cbs = reactor.queryCbs[hash] || [];
|
|
257
|
-
cbs.forEach((r) => r.cb({ error }));
|
|
258
|
-
reactor._notifyError(
|
|
259
|
-
new BackendRelayError(
|
|
260
|
-
error?.message || 'Query failed.',
|
|
261
|
-
error?.hint,
|
|
262
|
-
error?.traceId,
|
|
263
|
-
),
|
|
264
|
-
);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/** Re-compute all subscriptions */
|
|
268
|
-
export function notifyAll(reactor) {
|
|
269
|
-
Object.keys(reactor.queryCbs).forEach((hash) => {
|
|
270
|
-
reactor.querySubs
|
|
271
|
-
.waitForKeyToLoad(hash)
|
|
272
|
-
.then(() => reactor.notifyOne(hash))
|
|
273
|
-
.catch(() => reactor.notifyOne(hash));
|
|
274
|
-
});
|
|
275
|
-
}
|