@chipmobilesdk/rn-notification 0.5.0 → 0.7.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/CHANGELOG.md +184 -0
- package/README.md +108 -16
- package/lib/commonjs/advanced.js +139 -0
- package/lib/commonjs/advanced.js.map +1 -0
- package/lib/commonjs/channel/migrate.js +246 -0
- package/lib/commonjs/channel/migrate.js.map +1 -0
- package/lib/commonjs/channel/tone-map.js +120 -0
- package/lib/commonjs/channel/tone-map.js.map +1 -0
- package/lib/commonjs/channel/validate-tone.js +61 -0
- package/lib/commonjs/channel/validate-tone.js.map +1 -0
- package/lib/commonjs/contract/channel.js +52 -0
- package/lib/commonjs/contract/channel.js.map +1 -0
- package/lib/commonjs/contract/diagnostics.js +25 -0
- package/lib/commonjs/contract/diagnostics.js.map +1 -0
- package/lib/commonjs/contract/errors.js +126 -0
- package/lib/commonjs/contract/errors.js.map +1 -0
- package/lib/commonjs/contract/hash.js +35 -0
- package/lib/commonjs/contract/hash.js.map +1 -0
- package/lib/commonjs/contract/index.js +94 -0
- package/lib/commonjs/contract/index.js.map +1 -0
- package/lib/commonjs/contract/interaction.js +37 -0
- package/lib/commonjs/contract/interaction.js.map +1 -0
- package/lib/commonjs/contract/notification.js +42 -0
- package/lib/commonjs/contract/notification.js.map +1 -0
- package/lib/commonjs/contract/permission.js +2 -0
- package/lib/commonjs/contract/permission.js.map +1 -0
- package/lib/commonjs/contract/reconcile.js +6 -0
- package/lib/commonjs/contract/reconcile.js.map +1 -0
- package/lib/commonjs/contract/recurrence.js +53 -0
- package/lib/commonjs/contract/recurrence.js.map +1 -0
- package/lib/commonjs/diagnostics/burst.js +89 -0
- package/lib/commonjs/diagnostics/burst.js.map +1 -0
- package/lib/commonjs/diagnostics/events.js +63 -0
- package/lib/commonjs/diagnostics/events.js.map +1 -0
- package/lib/commonjs/diagnostics/redact.js +48 -0
- package/lib/commonjs/diagnostics/redact.js.map +1 -0
- package/lib/commonjs/diagnostics/snapshot.js +68 -0
- package/lib/commonjs/diagnostics/snapshot.js.map +1 -0
- package/lib/commonjs/engine/adapter.js +6 -0
- package/lib/commonjs/engine/adapter.js.map +1 -0
- package/lib/commonjs/engine/codec.js +84 -0
- package/lib/commonjs/engine/codec.js.map +1 -0
- package/lib/commonjs/engine/notify-kit/events.js +148 -0
- package/lib/commonjs/engine/notify-kit/events.js.map +1 -0
- package/lib/commonjs/engine/notify-kit/module.js +119 -0
- package/lib/commonjs/engine/notify-kit/module.js.map +1 -0
- package/lib/commonjs/engine/notify-kit/platform/android.js +159 -0
- package/lib/commonjs/engine/notify-kit/platform/android.js.map +1 -0
- package/lib/commonjs/engine/notify-kit/platform/index.js +57 -0
- package/lib/commonjs/engine/notify-kit/platform/index.js.map +1 -0
- package/lib/commonjs/engine/notify-kit/platform/ios.js +54 -0
- package/lib/commonjs/engine/notify-kit/platform/ios.js.map +1 -0
- package/lib/commonjs/engine/notify-kit/platform/types.js +6 -0
- package/lib/commonjs/engine/notify-kit/platform/types.js.map +1 -0
- package/lib/commonjs/engine/notify-kit-engine.js +260 -0
- package/lib/commonjs/engine/notify-kit-engine.js.map +1 -0
- package/lib/commonjs/index.js +367 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/initialize.js +187 -0
- package/lib/commonjs/initialize.js.map +1 -0
- package/lib/commonjs/interaction/index.js +120 -0
- package/lib/commonjs/interaction/index.js.map +1 -0
- package/lib/commonjs/maintenance/cycle.js +108 -0
- package/lib/commonjs/maintenance/cycle.js.map +1 -0
- package/lib/commonjs/maintenance/permission-refresh.js +39 -0
- package/lib/commonjs/maintenance/permission-refresh.js.map +1 -0
- package/lib/commonjs/maintenance/reanchor.js +99 -0
- package/lib/commonjs/maintenance/reanchor.js.map +1 -0
- package/lib/commonjs/maintenance/toggle.js +50 -0
- package/lib/commonjs/maintenance/toggle.js.map +1 -0
- package/lib/commonjs/maintenance/verify.js +70 -0
- package/lib/commonjs/maintenance/verify.js.map +1 -0
- package/lib/commonjs/maintenance/window-refresh.js +53 -0
- package/lib/commonjs/maintenance/window-refresh.js.map +1 -0
- package/lib/commonjs/notifications.js +161 -0
- package/lib/commonjs/notifications.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/permission/index.js +182 -0
- package/lib/commonjs/permission/index.js.map +1 -0
- package/lib/commonjs/permission/state.js +92 -0
- package/lib/commonjs/permission/state.js.map +1 -0
- package/lib/commonjs/push/envelope.js +141 -0
- package/lib/commonjs/push/envelope.js.map +1 -0
- package/lib/commonjs/push/fcm-provider.js +122 -0
- package/lib/commonjs/push/fcm-provider.js.map +1 -0
- package/lib/commonjs/push/gate.js +162 -0
- package/lib/commonjs/push/gate.js.map +1 -0
- package/lib/commonjs/push/index.js +47 -0
- package/lib/commonjs/push/index.js.map +1 -0
- package/lib/commonjs/push/instructions.js +101 -0
- package/lib/commonjs/push/instructions.js.map +1 -0
- package/lib/commonjs/push/provider-adapter.js +6 -0
- package/lib/commonjs/push/provider-adapter.js.map +1 -0
- package/lib/commonjs/push/signout.js +55 -0
- package/lib/commonjs/push/signout.js.map +1 -0
- package/lib/commonjs/reconcile/chunk.js +49 -0
- package/lib/commonjs/reconcile/chunk.js.map +1 -0
- package/lib/commonjs/reconcile/diff.js +105 -0
- package/lib/commonjs/reconcile/diff.js.map +1 -0
- package/lib/commonjs/reconcile/duplicates.js +60 -0
- package/lib/commonjs/reconcile/duplicates.js.map +1 -0
- package/lib/commonjs/reconcile/index.js +164 -0
- package/lib/commonjs/reconcile/index.js.map +1 -0
- package/lib/commonjs/reconcile/truncate.js +50 -0
- package/lib/commonjs/reconcile/truncate.js.map +1 -0
- package/lib/commonjs/recurrence/clock-guard.js +65 -0
- package/lib/commonjs/recurrence/clock-guard.js.map +1 -0
- package/lib/commonjs/recurrence/expand.js +254 -0
- package/lib/commonjs/recurrence/expand.js.map +1 -0
- package/lib/commonjs/recurrence/index.js +212 -0
- package/lib/commonjs/recurrence/index.js.map +1 -0
- package/lib/commonjs/repeat/expiry.js +41 -0
- package/lib/commonjs/repeat/expiry.js.map +1 -0
- package/lib/commonjs/repeat/index.js +100 -0
- package/lib/commonjs/repeat/index.js.map +1 -0
- package/lib/commonjs/repeat/marker.js +58 -0
- package/lib/commonjs/repeat/marker.js.map +1 -0
- package/lib/commonjs/repeat/place.js +83 -0
- package/lib/commonjs/repeat/place.js.map +1 -0
- package/lib/commonjs/schedule/anchor.js +243 -0
- package/lib/commonjs/schedule/anchor.js.map +1 -0
- package/lib/commonjs/schedule/index.js +142 -0
- package/lib/commonjs/schedule/index.js.map +1 -0
- package/lib/commonjs/schedule/partition.js +59 -0
- package/lib/commonjs/schedule/partition.js.map +1 -0
- package/lib/commonjs/schedule/resolve-moment.js +72 -0
- package/lib/commonjs/schedule/resolve-moment.js.map +1 -0
- package/lib/commonjs/schedule/validate-content.js +101 -0
- package/lib/commonjs/schedule/validate-content.js.map +1 -0
- package/lib/commonjs/schedule/validate-identifier.js +126 -0
- package/lib/commonjs/schedule/validate-identifier.js.map +1 -0
- package/lib/commonjs/schedule/writer.js +44 -0
- package/lib/commonjs/schedule/writer.js.map +1 -0
- package/lib/commonjs/state/caps.js +101 -0
- package/lib/commonjs/state/caps.js.map +1 -0
- package/lib/commonjs/state/dedup-ledger.js +39 -0
- package/lib/commonjs/state/dedup-ledger.js.map +1 -0
- package/lib/commonjs/state/interaction-buffer.js +98 -0
- package/lib/commonjs/state/interaction-buffer.js.map +1 -0
- package/lib/commonjs/state/mmkv-store.js +75 -0
- package/lib/commonjs/state/mmkv-store.js.map +1 -0
- package/lib/commonjs/state/permission-history.js +64 -0
- package/lib/commonjs/state/permission-history.js.map +1 -0
- package/lib/commonjs/state/record.js +269 -0
- package/lib/commonjs/state/record.js.map +1 -0
- package/lib/commonjs/state/reset.js +37 -0
- package/lib/commonjs/state/reset.js.map +1 -0
- package/lib/commonjs/state/series-ledger.js +71 -0
- package/lib/commonjs/state/series-ledger.js.map +1 -0
- package/lib/commonjs/state/store.js +39 -0
- package/lib/commonjs/state/store.js.map +1 -0
- package/lib/commonjs/testing/conformance/index.js +218 -0
- package/lib/commonjs/testing/conformance/index.js.map +1 -0
- package/lib/commonjs/testing/fake-engine.js +338 -0
- package/lib/commonjs/testing/fake-engine.js.map +1 -0
- package/lib/commonjs/testing/fake-provider.js +93 -0
- package/lib/commonjs/testing/fake-provider.js.map +1 -0
- package/lib/commonjs/testing/faults.js +59 -0
- package/lib/commonjs/testing/faults.js.map +1 -0
- package/lib/commonjs/testing/index.js +54 -0
- package/lib/commonjs/testing/index.js.map +1 -0
- package/lib/commonjs/testing/measure.js +298 -0
- package/lib/commonjs/testing/measure.js.map +1 -0
- package/lib/module/advanced.js +29 -0
- package/lib/module/advanced.js.map +1 -0
- package/lib/module/channel/migrate.js +242 -0
- package/lib/module/channel/migrate.js.map +1 -0
- package/lib/module/channel/tone-map.js +112 -0
- package/lib/module/channel/tone-map.js.map +1 -0
- package/lib/module/channel/validate-tone.js +57 -0
- package/lib/module/channel/validate-tone.js.map +1 -0
- package/lib/module/contract/channel.js +48 -0
- package/lib/module/contract/channel.js.map +1 -0
- package/lib/module/contract/diagnostics.js +21 -0
- package/lib/module/contract/diagnostics.js.map +1 -0
- package/lib/module/contract/errors.js +119 -0
- package/lib/module/contract/errors.js.map +1 -0
- package/lib/module/contract/hash.js +29 -0
- package/lib/module/contract/hash.js.map +1 -0
- package/lib/module/contract/index.js +13 -0
- package/lib/module/contract/index.js.map +1 -0
- package/lib/module/contract/interaction.js +33 -0
- package/lib/module/contract/interaction.js.map +1 -0
- package/lib/module/contract/notification.js +38 -0
- package/lib/module/contract/notification.js.map +1 -0
- package/lib/module/contract/permission.js +2 -0
- package/lib/module/contract/permission.js.map +1 -0
- package/lib/module/contract/reconcile.js +4 -0
- package/lib/module/contract/reconcile.js.map +1 -0
- package/lib/module/contract/recurrence.js +49 -0
- package/lib/module/contract/recurrence.js.map +1 -0
- package/lib/module/diagnostics/burst.js +85 -0
- package/lib/module/diagnostics/burst.js.map +1 -0
- package/lib/module/diagnostics/events.js +58 -0
- package/lib/module/diagnostics/events.js.map +1 -0
- package/lib/module/diagnostics/redact.js +44 -0
- package/lib/module/diagnostics/redact.js.map +1 -0
- package/lib/module/diagnostics/snapshot.js +64 -0
- package/lib/module/diagnostics/snapshot.js.map +1 -0
- package/lib/module/engine/adapter.js +4 -0
- package/lib/module/engine/adapter.js.map +1 -0
- package/lib/module/engine/codec.js +79 -0
- package/lib/module/engine/codec.js.map +1 -0
- package/lib/module/engine/notify-kit/events.js +139 -0
- package/lib/module/engine/notify-kit/events.js.map +1 -0
- package/lib/module/engine/notify-kit/module.js +113 -0
- package/lib/module/engine/notify-kit/module.js.map +1 -0
- package/lib/module/engine/notify-kit/platform/android.js +155 -0
- package/lib/module/engine/notify-kit/platform/android.js.map +1 -0
- package/lib/module/engine/notify-kit/platform/index.js +51 -0
- package/lib/module/engine/notify-kit/platform/index.js.map +1 -0
- package/lib/module/engine/notify-kit/platform/ios.js +49 -0
- package/lib/module/engine/notify-kit/platform/ios.js.map +1 -0
- package/lib/module/engine/notify-kit/platform/types.js +4 -0
- package/lib/module/engine/notify-kit/platform/types.js.map +1 -0
- package/lib/module/engine/notify-kit-engine.js +257 -0
- package/lib/module/engine/notify-kit-engine.js.map +1 -0
- package/lib/module/index.js +98 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/initialize.js +182 -0
- package/lib/module/initialize.js.map +1 -0
- package/lib/module/interaction/index.js +116 -0
- package/lib/module/interaction/index.js.map +1 -0
- package/lib/module/maintenance/cycle.js +102 -0
- package/lib/module/maintenance/cycle.js.map +1 -0
- package/lib/module/maintenance/permission-refresh.js +34 -0
- package/lib/module/maintenance/permission-refresh.js.map +1 -0
- package/lib/module/maintenance/reanchor.js +94 -0
- package/lib/module/maintenance/reanchor.js.map +1 -0
- package/lib/module/maintenance/toggle.js +45 -0
- package/lib/module/maintenance/toggle.js.map +1 -0
- package/lib/module/maintenance/verify.js +65 -0
- package/lib/module/maintenance/verify.js.map +1 -0
- package/lib/module/maintenance/window-refresh.js +48 -0
- package/lib/module/maintenance/window-refresh.js.map +1 -0
- package/lib/module/notifications.js +157 -0
- package/lib/module/notifications.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/permission/index.js +178 -0
- package/lib/module/permission/index.js.map +1 -0
- package/lib/module/permission/state.js +83 -0
- package/lib/module/permission/state.js.map +1 -0
- package/lib/module/push/envelope.js +137 -0
- package/lib/module/push/envelope.js.map +1 -0
- package/lib/module/push/fcm-provider.js +119 -0
- package/lib/module/push/fcm-provider.js.map +1 -0
- package/lib/module/push/gate.js +158 -0
- package/lib/module/push/gate.js.map +1 -0
- package/lib/module/push/index.js +16 -0
- package/lib/module/push/index.js.map +1 -0
- package/lib/module/push/instructions.js +97 -0
- package/lib/module/push/instructions.js.map +1 -0
- package/lib/module/push/provider-adapter.js +4 -0
- package/lib/module/push/provider-adapter.js.map +1 -0
- package/lib/module/push/signout.js +51 -0
- package/lib/module/push/signout.js.map +1 -0
- package/lib/module/reconcile/chunk.js +43 -0
- package/lib/module/reconcile/chunk.js.map +1 -0
- package/lib/module/reconcile/diff.js +101 -0
- package/lib/module/reconcile/diff.js.map +1 -0
- package/lib/module/reconcile/duplicates.js +56 -0
- package/lib/module/reconcile/duplicates.js.map +1 -0
- package/lib/module/reconcile/index.js +161 -0
- package/lib/module/reconcile/index.js.map +1 -0
- package/lib/module/reconcile/truncate.js +46 -0
- package/lib/module/reconcile/truncate.js.map +1 -0
- package/lib/module/recurrence/clock-guard.js +60 -0
- package/lib/module/recurrence/clock-guard.js.map +1 -0
- package/lib/module/recurrence/expand.js +248 -0
- package/lib/module/recurrence/expand.js.map +1 -0
- package/lib/module/recurrence/index.js +208 -0
- package/lib/module/recurrence/index.js.map +1 -0
- package/lib/module/repeat/expiry.js +37 -0
- package/lib/module/repeat/expiry.js.map +1 -0
- package/lib/module/repeat/index.js +67 -0
- package/lib/module/repeat/index.js.map +1 -0
- package/lib/module/repeat/marker.js +51 -0
- package/lib/module/repeat/marker.js.map +1 -0
- package/lib/module/repeat/place.js +79 -0
- package/lib/module/repeat/place.js.map +1 -0
- package/lib/module/schedule/anchor.js +234 -0
- package/lib/module/schedule/anchor.js.map +1 -0
- package/lib/module/schedule/index.js +137 -0
- package/lib/module/schedule/index.js.map +1 -0
- package/lib/module/schedule/partition.js +53 -0
- package/lib/module/schedule/partition.js.map +1 -0
- package/lib/module/schedule/resolve-moment.js +66 -0
- package/lib/module/schedule/resolve-moment.js.map +1 -0
- package/lib/module/schedule/validate-content.js +95 -0
- package/lib/module/schedule/validate-content.js.map +1 -0
- package/lib/module/schedule/validate-identifier.js +119 -0
- package/lib/module/schedule/validate-identifier.js.map +1 -0
- package/lib/module/schedule/writer.js +40 -0
- package/lib/module/schedule/writer.js.map +1 -0
- package/lib/module/state/caps.js +96 -0
- package/lib/module/state/caps.js.map +1 -0
- package/lib/module/state/dedup-ledger.js +34 -0
- package/lib/module/state/dedup-ledger.js.map +1 -0
- package/lib/module/state/interaction-buffer.js +92 -0
- package/lib/module/state/interaction-buffer.js.map +1 -0
- package/lib/module/state/mmkv-store.js +71 -0
- package/lib/module/state/mmkv-store.js.map +1 -0
- package/lib/module/state/permission-history.js +56 -0
- package/lib/module/state/permission-history.js.map +1 -0
- package/lib/module/state/record.js +264 -0
- package/lib/module/state/record.js.map +1 -0
- package/lib/module/state/reset.js +32 -0
- package/lib/module/state/reset.js.map +1 -0
- package/lib/module/state/series-ledger.js +62 -0
- package/lib/module/state/series-ledger.js.map +1 -0
- package/lib/module/state/store.js +35 -0
- package/lib/module/state/store.js.map +1 -0
- package/lib/module/testing/conformance/index.js +214 -0
- package/lib/module/testing/conformance/index.js.map +1 -0
- package/lib/module/testing/fake-engine.js +335 -0
- package/lib/module/testing/fake-engine.js.map +1 -0
- package/lib/module/testing/fake-provider.js +89 -0
- package/lib/module/testing/fake-provider.js.map +1 -0
- package/lib/module/testing/faults.js +55 -0
- package/lib/module/testing/faults.js.map +1 -0
- package/lib/module/testing/index.js +19 -0
- package/lib/module/testing/index.js.map +1 -0
- package/lib/module/testing/measure.js +294 -0
- package/lib/module/testing/measure.js.map +1 -0
- package/lib/typescript/commonjs/advanced.d.ts +36 -0
- package/lib/typescript/commonjs/advanced.d.ts.map +1 -0
- package/lib/typescript/commonjs/channel/migrate.d.ts +38 -0
- package/lib/typescript/commonjs/channel/migrate.d.ts.map +1 -0
- package/lib/typescript/commonjs/channel/tone-map.d.ts +34 -0
- package/lib/typescript/commonjs/channel/tone-map.d.ts.map +1 -0
- package/lib/typescript/commonjs/channel/validate-tone.d.ts +23 -0
- package/lib/typescript/commonjs/channel/validate-tone.d.ts.map +1 -0
- package/lib/typescript/commonjs/contract/channel.d.ts +185 -0
- package/lib/typescript/commonjs/contract/channel.d.ts.map +1 -0
- package/lib/typescript/commonjs/contract/diagnostics.d.ts +92 -0
- package/lib/typescript/commonjs/contract/diagnostics.d.ts.map +1 -0
- package/lib/typescript/commonjs/contract/errors.d.ts +91 -0
- package/lib/typescript/commonjs/contract/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/contract/hash.d.ts +14 -0
- package/lib/typescript/commonjs/contract/hash.d.ts.map +1 -0
- package/lib/typescript/commonjs/contract/index.d.ts +10 -0
- package/lib/typescript/commonjs/contract/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/contract/interaction.d.ts +53 -0
- package/lib/typescript/commonjs/contract/interaction.d.ts.map +1 -0
- package/lib/typescript/commonjs/contract/notification.d.ts +110 -0
- package/lib/typescript/commonjs/contract/notification.d.ts.map +1 -0
- package/lib/typescript/commonjs/contract/permission.d.ts +49 -0
- package/lib/typescript/commonjs/contract/permission.d.ts.map +1 -0
- package/lib/typescript/commonjs/contract/reconcile.d.ts +82 -0
- package/lib/typescript/commonjs/contract/reconcile.d.ts.map +1 -0
- package/lib/typescript/commonjs/contract/recurrence.d.ts +118 -0
- package/lib/typescript/commonjs/contract/recurrence.d.ts.map +1 -0
- package/lib/typescript/commonjs/diagnostics/burst.d.ts +39 -0
- package/lib/typescript/commonjs/diagnostics/burst.d.ts.map +1 -0
- package/lib/typescript/commonjs/diagnostics/events.d.ts +28 -0
- package/lib/typescript/commonjs/diagnostics/events.d.ts.map +1 -0
- package/lib/typescript/commonjs/diagnostics/redact.d.ts +22 -0
- package/lib/typescript/commonjs/diagnostics/redact.d.ts.map +1 -0
- package/lib/typescript/commonjs/diagnostics/snapshot.d.ts +40 -0
- package/lib/typescript/commonjs/diagnostics/snapshot.d.ts.map +1 -0
- package/lib/typescript/commonjs/engine/adapter.d.ts +172 -0
- package/lib/typescript/commonjs/engine/adapter.d.ts.map +1 -0
- package/lib/typescript/commonjs/engine/codec.d.ts +20 -0
- package/lib/typescript/commonjs/engine/codec.d.ts.map +1 -0
- package/lib/typescript/commonjs/engine/notify-kit/events.d.ts +37 -0
- package/lib/typescript/commonjs/engine/notify-kit/events.d.ts.map +1 -0
- package/lib/typescript/commonjs/engine/notify-kit/module.d.ts +103 -0
- package/lib/typescript/commonjs/engine/notify-kit/module.d.ts.map +1 -0
- package/lib/typescript/commonjs/engine/notify-kit/platform/android.d.ts +3 -0
- package/lib/typescript/commonjs/engine/notify-kit/platform/android.d.ts.map +1 -0
- package/lib/typescript/commonjs/engine/notify-kit/platform/index.d.ts +12 -0
- package/lib/typescript/commonjs/engine/notify-kit/platform/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/engine/notify-kit/platform/ios.d.ts +3 -0
- package/lib/typescript/commonjs/engine/notify-kit/platform/ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/engine/notify-kit/platform/types.d.ts +33 -0
- package/lib/typescript/commonjs/engine/notify-kit/platform/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/engine/notify-kit-engine.d.ts +25 -0
- package/lib/typescript/commonjs/engine/notify-kit-engine.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +106 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/initialize.d.ts +74 -0
- package/lib/typescript/commonjs/initialize.d.ts.map +1 -0
- package/lib/typescript/commonjs/interaction/index.d.ts +53 -0
- package/lib/typescript/commonjs/interaction/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/maintenance/cycle.d.ts +77 -0
- package/lib/typescript/commonjs/maintenance/cycle.d.ts.map +1 -0
- package/lib/typescript/commonjs/maintenance/permission-refresh.d.ts +19 -0
- package/lib/typescript/commonjs/maintenance/permission-refresh.d.ts.map +1 -0
- package/lib/typescript/commonjs/maintenance/reanchor.d.ts +26 -0
- package/lib/typescript/commonjs/maintenance/reanchor.d.ts.map +1 -0
- package/lib/typescript/commonjs/maintenance/toggle.d.ts +35 -0
- package/lib/typescript/commonjs/maintenance/toggle.d.ts.map +1 -0
- package/lib/typescript/commonjs/maintenance/verify.d.ts +32 -0
- package/lib/typescript/commonjs/maintenance/verify.d.ts.map +1 -0
- package/lib/typescript/commonjs/maintenance/window-refresh.d.ts +29 -0
- package/lib/typescript/commonjs/maintenance/window-refresh.d.ts.map +1 -0
- package/lib/typescript/commonjs/notifications.d.ts +78 -0
- package/lib/typescript/commonjs/notifications.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/permission/index.d.ts +57 -0
- package/lib/typescript/commonjs/permission/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/permission/state.d.ts +41 -0
- package/lib/typescript/commonjs/permission/state.d.ts.map +1 -0
- package/lib/typescript/commonjs/push/envelope.d.ts +33 -0
- package/lib/typescript/commonjs/push/envelope.d.ts.map +1 -0
- package/lib/typescript/commonjs/push/fcm-provider.d.ts +43 -0
- package/lib/typescript/commonjs/push/fcm-provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/push/gate.d.ts +57 -0
- package/lib/typescript/commonjs/push/gate.d.ts.map +1 -0
- package/lib/typescript/commonjs/push/index.d.ts +19 -0
- package/lib/typescript/commonjs/push/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/push/instructions.d.ts +45 -0
- package/lib/typescript/commonjs/push/instructions.d.ts.map +1 -0
- package/lib/typescript/commonjs/push/provider-adapter.d.ts +50 -0
- package/lib/typescript/commonjs/push/provider-adapter.d.ts.map +1 -0
- package/lib/typescript/commonjs/push/signout.d.ts +33 -0
- package/lib/typescript/commonjs/push/signout.d.ts.map +1 -0
- package/lib/typescript/commonjs/reconcile/chunk.d.ts +24 -0
- package/lib/typescript/commonjs/reconcile/chunk.d.ts.map +1 -0
- package/lib/typescript/commonjs/reconcile/diff.d.ts +54 -0
- package/lib/typescript/commonjs/reconcile/diff.d.ts.map +1 -0
- package/lib/typescript/commonjs/reconcile/duplicates.d.ts +32 -0
- package/lib/typescript/commonjs/reconcile/duplicates.d.ts.map +1 -0
- package/lib/typescript/commonjs/reconcile/index.d.ts +35 -0
- package/lib/typescript/commonjs/reconcile/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/reconcile/truncate.d.ts +26 -0
- package/lib/typescript/commonjs/reconcile/truncate.d.ts.map +1 -0
- package/lib/typescript/commonjs/recurrence/clock-guard.d.ts +37 -0
- package/lib/typescript/commonjs/recurrence/clock-guard.d.ts.map +1 -0
- package/lib/typescript/commonjs/recurrence/expand.d.ts +75 -0
- package/lib/typescript/commonjs/recurrence/expand.d.ts.map +1 -0
- package/lib/typescript/commonjs/recurrence/index.d.ts +40 -0
- package/lib/typescript/commonjs/recurrence/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/repeat/expiry.d.ts +23 -0
- package/lib/typescript/commonjs/repeat/expiry.d.ts.map +1 -0
- package/lib/typescript/commonjs/repeat/index.d.ts +49 -0
- package/lib/typescript/commonjs/repeat/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/repeat/marker.d.ts +36 -0
- package/lib/typescript/commonjs/repeat/marker.d.ts.map +1 -0
- package/lib/typescript/commonjs/repeat/place.d.ts +39 -0
- package/lib/typescript/commonjs/repeat/place.d.ts.map +1 -0
- package/lib/typescript/commonjs/schedule/anchor.d.ts +118 -0
- package/lib/typescript/commonjs/schedule/anchor.d.ts.map +1 -0
- package/lib/typescript/commonjs/schedule/index.d.ts +40 -0
- package/lib/typescript/commonjs/schedule/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/schedule/partition.d.ts +29 -0
- package/lib/typescript/commonjs/schedule/partition.d.ts.map +1 -0
- package/lib/typescript/commonjs/schedule/resolve-moment.d.ts +35 -0
- package/lib/typescript/commonjs/schedule/resolve-moment.d.ts.map +1 -0
- package/lib/typescript/commonjs/schedule/validate-content.d.ts +42 -0
- package/lib/typescript/commonjs/schedule/validate-content.d.ts.map +1 -0
- package/lib/typescript/commonjs/schedule/validate-identifier.d.ts +30 -0
- package/lib/typescript/commonjs/schedule/validate-identifier.d.ts.map +1 -0
- package/lib/typescript/commonjs/schedule/writer.d.ts +36 -0
- package/lib/typescript/commonjs/schedule/writer.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/caps.d.ts +51 -0
- package/lib/typescript/commonjs/state/caps.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/dedup-ledger.d.ts +21 -0
- package/lib/typescript/commonjs/state/dedup-ledger.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/interaction-buffer.d.ts +30 -0
- package/lib/typescript/commonjs/state/interaction-buffer.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/mmkv-store.d.ts +33 -0
- package/lib/typescript/commonjs/state/mmkv-store.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/permission-history.d.ts +20 -0
- package/lib/typescript/commonjs/state/permission-history.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/record.d.ts +134 -0
- package/lib/typescript/commonjs/state/record.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/reset.d.ts +22 -0
- package/lib/typescript/commonjs/state/reset.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/series-ledger.d.ts +47 -0
- package/lib/typescript/commonjs/state/series-ledger.d.ts.map +1 -0
- package/lib/typescript/commonjs/state/store.d.ts +20 -0
- package/lib/typescript/commonjs/state/store.d.ts.map +1 -0
- package/lib/typescript/commonjs/testing/conformance/index.d.ts +32 -0
- package/lib/typescript/commonjs/testing/conformance/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/testing/fake-engine.d.ts +91 -0
- package/lib/typescript/commonjs/testing/fake-engine.d.ts.map +1 -0
- package/lib/typescript/commonjs/testing/fake-provider.d.ts +35 -0
- package/lib/typescript/commonjs/testing/fake-provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/testing/faults.d.ts +38 -0
- package/lib/typescript/commonjs/testing/faults.d.ts.map +1 -0
- package/lib/typescript/commonjs/testing/index.d.ts +22 -0
- package/lib/typescript/commonjs/testing/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/testing/measure.d.ts +59 -0
- package/lib/typescript/commonjs/testing/measure.d.ts.map +1 -0
- package/lib/typescript/module/advanced.d.ts +36 -0
- package/lib/typescript/module/advanced.d.ts.map +1 -0
- package/lib/typescript/module/channel/migrate.d.ts +38 -0
- package/lib/typescript/module/channel/migrate.d.ts.map +1 -0
- package/lib/typescript/module/channel/tone-map.d.ts +34 -0
- package/lib/typescript/module/channel/tone-map.d.ts.map +1 -0
- package/lib/typescript/module/channel/validate-tone.d.ts +23 -0
- package/lib/typescript/module/channel/validate-tone.d.ts.map +1 -0
- package/lib/typescript/module/contract/channel.d.ts +185 -0
- package/lib/typescript/module/contract/channel.d.ts.map +1 -0
- package/lib/typescript/module/contract/diagnostics.d.ts +92 -0
- package/lib/typescript/module/contract/diagnostics.d.ts.map +1 -0
- package/lib/typescript/module/contract/errors.d.ts +91 -0
- package/lib/typescript/module/contract/errors.d.ts.map +1 -0
- package/lib/typescript/module/contract/hash.d.ts +14 -0
- package/lib/typescript/module/contract/hash.d.ts.map +1 -0
- package/lib/typescript/module/contract/index.d.ts +10 -0
- package/lib/typescript/module/contract/index.d.ts.map +1 -0
- package/lib/typescript/module/contract/interaction.d.ts +53 -0
- package/lib/typescript/module/contract/interaction.d.ts.map +1 -0
- package/lib/typescript/module/contract/notification.d.ts +110 -0
- package/lib/typescript/module/contract/notification.d.ts.map +1 -0
- package/lib/typescript/module/contract/permission.d.ts +49 -0
- package/lib/typescript/module/contract/permission.d.ts.map +1 -0
- package/lib/typescript/module/contract/reconcile.d.ts +82 -0
- package/lib/typescript/module/contract/reconcile.d.ts.map +1 -0
- package/lib/typescript/module/contract/recurrence.d.ts +118 -0
- package/lib/typescript/module/contract/recurrence.d.ts.map +1 -0
- package/lib/typescript/module/diagnostics/burst.d.ts +39 -0
- package/lib/typescript/module/diagnostics/burst.d.ts.map +1 -0
- package/lib/typescript/module/diagnostics/events.d.ts +28 -0
- package/lib/typescript/module/diagnostics/events.d.ts.map +1 -0
- package/lib/typescript/module/diagnostics/redact.d.ts +22 -0
- package/lib/typescript/module/diagnostics/redact.d.ts.map +1 -0
- package/lib/typescript/module/diagnostics/snapshot.d.ts +40 -0
- package/lib/typescript/module/diagnostics/snapshot.d.ts.map +1 -0
- package/lib/typescript/module/engine/adapter.d.ts +172 -0
- package/lib/typescript/module/engine/adapter.d.ts.map +1 -0
- package/lib/typescript/module/engine/codec.d.ts +20 -0
- package/lib/typescript/module/engine/codec.d.ts.map +1 -0
- package/lib/typescript/module/engine/notify-kit/events.d.ts +37 -0
- package/lib/typescript/module/engine/notify-kit/events.d.ts.map +1 -0
- package/lib/typescript/module/engine/notify-kit/module.d.ts +103 -0
- package/lib/typescript/module/engine/notify-kit/module.d.ts.map +1 -0
- package/lib/typescript/module/engine/notify-kit/platform/android.d.ts +3 -0
- package/lib/typescript/module/engine/notify-kit/platform/android.d.ts.map +1 -0
- package/lib/typescript/module/engine/notify-kit/platform/index.d.ts +12 -0
- package/lib/typescript/module/engine/notify-kit/platform/index.d.ts.map +1 -0
- package/lib/typescript/module/engine/notify-kit/platform/ios.d.ts +3 -0
- package/lib/typescript/module/engine/notify-kit/platform/ios.d.ts.map +1 -0
- package/lib/typescript/module/engine/notify-kit/platform/types.d.ts +33 -0
- package/lib/typescript/module/engine/notify-kit/platform/types.d.ts.map +1 -0
- package/lib/typescript/module/engine/notify-kit-engine.d.ts +25 -0
- package/lib/typescript/module/engine/notify-kit-engine.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +106 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/initialize.d.ts +74 -0
- package/lib/typescript/module/initialize.d.ts.map +1 -0
- package/lib/typescript/module/interaction/index.d.ts +53 -0
- package/lib/typescript/module/interaction/index.d.ts.map +1 -0
- package/lib/typescript/module/maintenance/cycle.d.ts +77 -0
- package/lib/typescript/module/maintenance/cycle.d.ts.map +1 -0
- package/lib/typescript/module/maintenance/permission-refresh.d.ts +19 -0
- package/lib/typescript/module/maintenance/permission-refresh.d.ts.map +1 -0
- package/lib/typescript/module/maintenance/reanchor.d.ts +26 -0
- package/lib/typescript/module/maintenance/reanchor.d.ts.map +1 -0
- package/lib/typescript/module/maintenance/toggle.d.ts +35 -0
- package/lib/typescript/module/maintenance/toggle.d.ts.map +1 -0
- package/lib/typescript/module/maintenance/verify.d.ts +32 -0
- package/lib/typescript/module/maintenance/verify.d.ts.map +1 -0
- package/lib/typescript/module/maintenance/window-refresh.d.ts +29 -0
- package/lib/typescript/module/maintenance/window-refresh.d.ts.map +1 -0
- package/lib/typescript/module/notifications.d.ts +78 -0
- package/lib/typescript/module/notifications.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/permission/index.d.ts +57 -0
- package/lib/typescript/module/permission/index.d.ts.map +1 -0
- package/lib/typescript/module/permission/state.d.ts +41 -0
- package/lib/typescript/module/permission/state.d.ts.map +1 -0
- package/lib/typescript/module/push/envelope.d.ts +33 -0
- package/lib/typescript/module/push/envelope.d.ts.map +1 -0
- package/lib/typescript/module/push/fcm-provider.d.ts +43 -0
- package/lib/typescript/module/push/fcm-provider.d.ts.map +1 -0
- package/lib/typescript/module/push/gate.d.ts +57 -0
- package/lib/typescript/module/push/gate.d.ts.map +1 -0
- package/lib/typescript/module/push/index.d.ts +19 -0
- package/lib/typescript/module/push/index.d.ts.map +1 -0
- package/lib/typescript/module/push/instructions.d.ts +45 -0
- package/lib/typescript/module/push/instructions.d.ts.map +1 -0
- package/lib/typescript/module/push/provider-adapter.d.ts +50 -0
- package/lib/typescript/module/push/provider-adapter.d.ts.map +1 -0
- package/lib/typescript/module/push/signout.d.ts +33 -0
- package/lib/typescript/module/push/signout.d.ts.map +1 -0
- package/lib/typescript/module/reconcile/chunk.d.ts +24 -0
- package/lib/typescript/module/reconcile/chunk.d.ts.map +1 -0
- package/lib/typescript/module/reconcile/diff.d.ts +54 -0
- package/lib/typescript/module/reconcile/diff.d.ts.map +1 -0
- package/lib/typescript/module/reconcile/duplicates.d.ts +32 -0
- package/lib/typescript/module/reconcile/duplicates.d.ts.map +1 -0
- package/lib/typescript/module/reconcile/index.d.ts +35 -0
- package/lib/typescript/module/reconcile/index.d.ts.map +1 -0
- package/lib/typescript/module/reconcile/truncate.d.ts +26 -0
- package/lib/typescript/module/reconcile/truncate.d.ts.map +1 -0
- package/lib/typescript/module/recurrence/clock-guard.d.ts +37 -0
- package/lib/typescript/module/recurrence/clock-guard.d.ts.map +1 -0
- package/lib/typescript/module/recurrence/expand.d.ts +75 -0
- package/lib/typescript/module/recurrence/expand.d.ts.map +1 -0
- package/lib/typescript/module/recurrence/index.d.ts +40 -0
- package/lib/typescript/module/recurrence/index.d.ts.map +1 -0
- package/lib/typescript/module/repeat/expiry.d.ts +23 -0
- package/lib/typescript/module/repeat/expiry.d.ts.map +1 -0
- package/lib/typescript/module/repeat/index.d.ts +49 -0
- package/lib/typescript/module/repeat/index.d.ts.map +1 -0
- package/lib/typescript/module/repeat/marker.d.ts +36 -0
- package/lib/typescript/module/repeat/marker.d.ts.map +1 -0
- package/lib/typescript/module/repeat/place.d.ts +39 -0
- package/lib/typescript/module/repeat/place.d.ts.map +1 -0
- package/lib/typescript/module/schedule/anchor.d.ts +118 -0
- package/lib/typescript/module/schedule/anchor.d.ts.map +1 -0
- package/lib/typescript/module/schedule/index.d.ts +40 -0
- package/lib/typescript/module/schedule/index.d.ts.map +1 -0
- package/lib/typescript/module/schedule/partition.d.ts +29 -0
- package/lib/typescript/module/schedule/partition.d.ts.map +1 -0
- package/lib/typescript/module/schedule/resolve-moment.d.ts +35 -0
- package/lib/typescript/module/schedule/resolve-moment.d.ts.map +1 -0
- package/lib/typescript/module/schedule/validate-content.d.ts +42 -0
- package/lib/typescript/module/schedule/validate-content.d.ts.map +1 -0
- package/lib/typescript/module/schedule/validate-identifier.d.ts +30 -0
- package/lib/typescript/module/schedule/validate-identifier.d.ts.map +1 -0
- package/lib/typescript/module/schedule/writer.d.ts +36 -0
- package/lib/typescript/module/schedule/writer.d.ts.map +1 -0
- package/lib/typescript/module/state/caps.d.ts +51 -0
- package/lib/typescript/module/state/caps.d.ts.map +1 -0
- package/lib/typescript/module/state/dedup-ledger.d.ts +21 -0
- package/lib/typescript/module/state/dedup-ledger.d.ts.map +1 -0
- package/lib/typescript/module/state/interaction-buffer.d.ts +30 -0
- package/lib/typescript/module/state/interaction-buffer.d.ts.map +1 -0
- package/lib/typescript/module/state/mmkv-store.d.ts +33 -0
- package/lib/typescript/module/state/mmkv-store.d.ts.map +1 -0
- package/lib/typescript/module/state/permission-history.d.ts +20 -0
- package/lib/typescript/module/state/permission-history.d.ts.map +1 -0
- package/lib/typescript/module/state/record.d.ts +134 -0
- package/lib/typescript/module/state/record.d.ts.map +1 -0
- package/lib/typescript/module/state/reset.d.ts +22 -0
- package/lib/typescript/module/state/reset.d.ts.map +1 -0
- package/lib/typescript/module/state/series-ledger.d.ts +47 -0
- package/lib/typescript/module/state/series-ledger.d.ts.map +1 -0
- package/lib/typescript/module/state/store.d.ts +20 -0
- package/lib/typescript/module/state/store.d.ts.map +1 -0
- package/lib/typescript/module/testing/conformance/index.d.ts +32 -0
- package/lib/typescript/module/testing/conformance/index.d.ts.map +1 -0
- package/lib/typescript/module/testing/fake-engine.d.ts +91 -0
- package/lib/typescript/module/testing/fake-engine.d.ts.map +1 -0
- package/lib/typescript/module/testing/fake-provider.d.ts +35 -0
- package/lib/typescript/module/testing/fake-provider.d.ts.map +1 -0
- package/lib/typescript/module/testing/faults.d.ts +38 -0
- package/lib/typescript/module/testing/faults.d.ts.map +1 -0
- package/lib/typescript/module/testing/index.d.ts +22 -0
- package/lib/typescript/module/testing/index.d.ts.map +1 -0
- package/lib/typescript/module/testing/measure.d.ts +59 -0
- package/lib/typescript/module/testing/measure.d.ts.map +1 -0
- package/package.json +74 -23
- package/skills/sdk-rn-notification/SKILL.md +6 -5
- package/src/advanced.ts +35 -0
- package/src/channel/migrate.ts +176 -158
- package/src/channel/tone-map.ts +2 -10
- package/src/contract/errors.ts +7 -0
- package/src/contract/hash.ts +26 -0
- package/src/engine/adapter.ts +21 -1
- package/src/engine/notify-kit/events.ts +155 -0
- package/src/engine/notify-kit/module.ts +148 -0
- package/src/engine/notify-kit/platform/android.ts +172 -0
- package/src/engine/notify-kit/platform/index.ts +55 -0
- package/src/engine/notify-kit/platform/ios.ts +54 -0
- package/src/engine/notify-kit/platform/types.ts +40 -0
- package/src/engine/notify-kit-engine.ts +96 -477
- package/src/index.ts +9 -0
- package/src/notifications.ts +195 -0
- package/src/permission/index.ts +65 -4
- package/src/push/fcm-provider.ts +14 -4
- package/src/push/gate.ts +27 -5
- package/src/reconcile/diff.ts +38 -27
- package/src/reconcile/index.ts +13 -4
- package/src/recurrence/index.ts +2 -1
- package/src/repeat/expiry.ts +2 -6
- package/src/repeat/index.ts +45 -1
- package/src/repeat/marker.ts +1 -22
- package/src/repeat/place.ts +74 -35
- package/src/schedule/index.ts +10 -4
- package/src/schedule/partition.ts +0 -19
- package/src/schedule/validate-identifier.ts +8 -6
- package/src/schedule/writer.ts +13 -4
- package/src/state/caps.ts +28 -3
- package/src/state/permission-history.ts +25 -0
- package/src/state/record.ts +110 -20
- package/src/testing/fake-engine.ts +17 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TONE","toneId","version","android","channelId","importance","vibration","badge","bypassDnd","name","loopSound","alarmCategory","ios","categoryId","interruptionLevel","repeatRefused","runConformanceSuite","adapter","options","now","Date","prefix","checks","check","run","outcome","push","passed","detail","error","Error","message","String","id","suffix","at","schedule","overrides","request","content","title","body","tone","moment","resolvedAt","approximate","cancelAll","capabilities","getCapabilities","pendingCeiling","pending","getPending","some","entry","filter","e","undefined","length","anchoring","matching","routing","screen","nested","deep","find","JSON","stringify","before","cancel","after","state","getPermission","includes","report","getRestrictions","batteryOptimization","instants","map","sorted","sort","x","y","supportsRepeatingAlert","repeating","repeatForMs","stops","listRepeatStops","leaked","stop","markerId","silenced","silenceDelivered","hasBackgroundDeliveryHandler","failed"],"sourceRoot":"../../../../src","sources":["testing/conformance/index.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA,MAAMA,IAAkB,GAAG;EAC1BC,MAAM,EAAE,aAAa;EACrBC,OAAO,EAAE,CAAC;EACVC,OAAO,EAAE;IACRC,SAAS,EAAE,gBAAgB;IAC3BC,UAAU,EAAE,SAAS;IACrBC,SAAS,EAAE,KAAK;IAChBC,KAAK,EAAE,KAAK;IACZC,SAAS,EAAE,KAAK;IAChBC,IAAI,EAAE,cAAc;IACpBC,SAAS,EAAE,KAAK;IAChBC,aAAa,EAAE;EAChB,CAAC;EACDC,GAAG,EAAE;IACJC,UAAU,EAAE,aAAa;IACzBC,iBAAiB,EAAE,QAAQ;IAC3BP,KAAK,EAAE,KAAK;IACZQ,aAAa,EAAE;EAChB;AACD,CAAC;AAsBM,eAAeC,mBAAmBA,CACxCC,OAAkC,EAClCC,OAA2B,GAAG,CAAC,CAAC,EACH;EAC7B,MAAMC,GAAG,GAAGD,OAAO,CAACC,GAAG,KAAK,MAAMC,IAAI,CAACD,GAAG,CAAC,CAAC,CAAC;EAC7C,MAAME,MAAM,GAAGH,OAAO,CAACG,MAAM,IAAI,aAAa;EAC9C,MAAMC,MAA0B,GAAG,EAAE;EAErC,MAAMC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,0 +1,338 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createFakeEngine = createFakeEngine;
|
|
7
|
+
var _marker = require("../repeat/marker.js");
|
|
8
|
+
var _codec = require("../engine/codec.js");
|
|
9
|
+
/**
|
|
10
|
+
* In-memory engine for tests.
|
|
11
|
+
*
|
|
12
|
+
* Exists so every decision path is provable with no device, no emulator, and
|
|
13
|
+
* no live provider. Its controls simulate the conditions that are otherwise
|
|
14
|
+
* only reachable on hardware: virtual time, time-zone travel, permission
|
|
15
|
+
* transitions, process death, boot-restoration gaps, and platform truncation.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/** Every platform operation the engine was asked to perform, in order. */
|
|
19
|
+
|
|
20
|
+
/** A notification the fake has delivered to the tray. */
|
|
21
|
+
|
|
22
|
+
function createFakeEngine(options = {}) {
|
|
23
|
+
const scheduled = new Map();
|
|
24
|
+
const channels = new Map();
|
|
25
|
+
const loops = new Map();
|
|
26
|
+
const stops = new Map();
|
|
27
|
+
const tray = new Map();
|
|
28
|
+
let operations = [];
|
|
29
|
+
let listeners = [];
|
|
30
|
+
let deliveryListeners = [];
|
|
31
|
+
let backgroundHandler;
|
|
32
|
+
let backgroundInteractionHandler;
|
|
33
|
+
let initialInteraction;
|
|
34
|
+
let currentTime = options.now ?? Date.UTC(2026, 0, 1, 12, 0, 0);
|
|
35
|
+
let currentZone = options.timeZone ?? 'UTC';
|
|
36
|
+
const permissions = {
|
|
37
|
+
display: options.initialPermissions?.display ?? 'notAsked',
|
|
38
|
+
exactAlarm: options.initialPermissions?.exactAlarm ?? 'notAsked'
|
|
39
|
+
};
|
|
40
|
+
let restrictions = {
|
|
41
|
+
batteryOptimization: 'unrestricted',
|
|
42
|
+
autoStart: 'unrestricted',
|
|
43
|
+
readAt: currentTime
|
|
44
|
+
};
|
|
45
|
+
const capabilities = {
|
|
46
|
+
pendingCeiling: options.pendingCeiling ?? 64,
|
|
47
|
+
supportsExactAlarms: options.supportsExactAlarms ?? true,
|
|
48
|
+
supportsChannels: true,
|
|
49
|
+
supportsTextInputActions: true,
|
|
50
|
+
supportsDoNotDisturbBypass: options.supportsDoNotDisturbBypass ?? true,
|
|
51
|
+
supportsRepeatingAlert: options.supportsRepeatingAlert ?? true,
|
|
52
|
+
backgroundWindowMs: options.backgroundWindowMs ?? 30_000
|
|
53
|
+
};
|
|
54
|
+
const record = (kind, id) => {
|
|
55
|
+
operations.push({
|
|
56
|
+
kind,
|
|
57
|
+
id,
|
|
58
|
+
at: currentTime
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// Through the same data-bag codec the real engine uses, so a field the device
|
|
63
|
+
// would lose is lost here too rather than hidden by a verbatim copy.
|
|
64
|
+
const toPendingEntry = request => {
|
|
65
|
+
const metadata = (0, _codec.unpackData)((0, _codec.packData)(request));
|
|
66
|
+
return {
|
|
67
|
+
id: request.request.id,
|
|
68
|
+
resolvedAt: request.resolvedAt,
|
|
69
|
+
content: request.request.content,
|
|
70
|
+
...metadata,
|
|
71
|
+
// The fake models the device clock's zone directly instead of trusting
|
|
72
|
+
// the caller's, which is how re-anchoring tests simulate a zone change.
|
|
73
|
+
anchoringGeneration: metadata.anchoring === 'wallClock' ? currentZone : undefined
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
return {
|
|
77
|
+
name: 'fake',
|
|
78
|
+
async getCapabilities() {
|
|
79
|
+
return capabilities;
|
|
80
|
+
},
|
|
81
|
+
async schedule(request) {
|
|
82
|
+
record('schedule', request.request.id);
|
|
83
|
+
scheduled.set(request.request.id, toPendingEntry(request));
|
|
84
|
+
loops.set(request.request.id, request.tone.android.loopSound);
|
|
85
|
+
if (request.repeatStop !== undefined) {
|
|
86
|
+
stops.set(request.request.id, request.repeatStop);
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
async cancel(id) {
|
|
90
|
+
record('cancel', id);
|
|
91
|
+
scheduled.delete(id);
|
|
92
|
+
loops.delete(id);
|
|
93
|
+
stops.delete(id);
|
|
94
|
+
tray.delete(id);
|
|
95
|
+
},
|
|
96
|
+
async cancelMany(ids) {
|
|
97
|
+
for (const id of ids) {
|
|
98
|
+
record('cancel', id);
|
|
99
|
+
scheduled.delete(id);
|
|
100
|
+
loops.delete(id);
|
|
101
|
+
stops.delete(id);
|
|
102
|
+
tray.delete(id);
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
async cancelAll() {
|
|
106
|
+
record('cancelAll');
|
|
107
|
+
scheduled.clear();
|
|
108
|
+
loops.clear();
|
|
109
|
+
stops.clear();
|
|
110
|
+
tray.clear();
|
|
111
|
+
},
|
|
112
|
+
async getPending() {
|
|
113
|
+
// Stop markers are package-owned artifacts, not user notifications. A
|
|
114
|
+
// consumer diffing the device against its own intent must never see one.
|
|
115
|
+
return [...scheduled.values()].filter(entry => !(0, _marker.isRepeatStopId)(entry.id)).sort((a, b) => a.resolvedAt - b.resolvedAt);
|
|
116
|
+
},
|
|
117
|
+
async declareTone(tone) {
|
|
118
|
+
record('declareTone', tone.android.channelId);
|
|
119
|
+
const existing = channels.get(tone.android.channelId);
|
|
120
|
+
if (existing === undefined) {
|
|
121
|
+
channels.set(tone.android.channelId, {
|
|
122
|
+
name: tone.android.name,
|
|
123
|
+
description: tone.android.description
|
|
124
|
+
});
|
|
125
|
+
return 'created';
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Android freezes importance, sound, vibration and DND once a channel
|
|
129
|
+
// exists, but re-declaring updates the name and description. The fake
|
|
130
|
+
// mirrors exactly that: labels move, everything else is ignored — which
|
|
131
|
+
// is what makes a label correction free for the user.
|
|
132
|
+
if (existing.name === tone.android.name && existing.description === tone.android.description) {
|
|
133
|
+
return 'unchanged';
|
|
134
|
+
}
|
|
135
|
+
channels.set(tone.android.channelId, {
|
|
136
|
+
name: tone.android.name,
|
|
137
|
+
description: tone.android.description
|
|
138
|
+
});
|
|
139
|
+
return 'labelsRefreshed';
|
|
140
|
+
},
|
|
141
|
+
async retireTone(channelId) {
|
|
142
|
+
record('retireTone', channelId);
|
|
143
|
+
return channels.delete(channelId);
|
|
144
|
+
},
|
|
145
|
+
async declareGroups(_groups) {
|
|
146
|
+
// Groups are presentational; the fake accepts them without recording.
|
|
147
|
+
},
|
|
148
|
+
async listDeclaredChannels() {
|
|
149
|
+
return [...channels.keys()];
|
|
150
|
+
},
|
|
151
|
+
async getPermission(kind) {
|
|
152
|
+
return permissions[kind];
|
|
153
|
+
},
|
|
154
|
+
async requestPermission(kind) {
|
|
155
|
+
if (permissions[kind] === 'notAsked') {
|
|
156
|
+
permissions[kind] = 'granted';
|
|
157
|
+
}
|
|
158
|
+
return permissions[kind];
|
|
159
|
+
},
|
|
160
|
+
async openSettings(_kind) {
|
|
161
|
+
// No-op: the fake cannot open a settings screen, and pretending it did would be a lie.
|
|
162
|
+
},
|
|
163
|
+
async getRestrictions() {
|
|
164
|
+
return {
|
|
165
|
+
...restrictions,
|
|
166
|
+
readAt: currentTime
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
subscribeToInteractions(handler) {
|
|
170
|
+
listeners.push(handler);
|
|
171
|
+
return () => {
|
|
172
|
+
listeners = listeners.filter(l => l !== handler);
|
|
173
|
+
};
|
|
174
|
+
},
|
|
175
|
+
async takeInitialInteraction() {
|
|
176
|
+
const event = initialInteraction;
|
|
177
|
+
initialInteraction = undefined;
|
|
178
|
+
return event;
|
|
179
|
+
},
|
|
180
|
+
async silenceDelivered(id) {
|
|
181
|
+
record('silence', id);
|
|
182
|
+
const entry = tray.get(id);
|
|
183
|
+
// Absent is the ordinary case, not an error: the user handled it before
|
|
184
|
+
// the window ran out.
|
|
185
|
+
if (entry === undefined) return false;
|
|
186
|
+
|
|
187
|
+
// Replaced in place, never removed. A notification that vanished is a
|
|
188
|
+
// worse outcome than one that never sounded.
|
|
189
|
+
tray.set(id, {
|
|
190
|
+
...entry,
|
|
191
|
+
alerting: false
|
|
192
|
+
});
|
|
193
|
+
return true;
|
|
194
|
+
},
|
|
195
|
+
async listRepeatStops() {
|
|
196
|
+
return [...stops.values()].filter(stop => scheduled.has(stop.markerId));
|
|
197
|
+
},
|
|
198
|
+
subscribeToDeliveries(handler) {
|
|
199
|
+
deliveryListeners.push(handler);
|
|
200
|
+
return () => {
|
|
201
|
+
deliveryListeners = deliveryListeners.filter(l => l !== handler);
|
|
202
|
+
};
|
|
203
|
+
},
|
|
204
|
+
registerBackgroundDeliveryHandler(handler, onInteraction) {
|
|
205
|
+
backgroundHandler = handler;
|
|
206
|
+
backgroundInteractionHandler = onInteraction;
|
|
207
|
+
},
|
|
208
|
+
hasBackgroundDeliveryHandler() {
|
|
209
|
+
return backgroundHandler !== undefined;
|
|
210
|
+
},
|
|
211
|
+
// --- FakeControls ------------------------------------------------------
|
|
212
|
+
|
|
213
|
+
get operations() {
|
|
214
|
+
return operations;
|
|
215
|
+
},
|
|
216
|
+
clearOperations() {
|
|
217
|
+
operations = [];
|
|
218
|
+
},
|
|
219
|
+
now() {
|
|
220
|
+
return currentTime;
|
|
221
|
+
},
|
|
222
|
+
advanceTime(ms) {
|
|
223
|
+
currentTime += ms;
|
|
224
|
+
},
|
|
225
|
+
setTime(epochMs) {
|
|
226
|
+
currentTime = epochMs;
|
|
227
|
+
},
|
|
228
|
+
timeZone() {
|
|
229
|
+
return currentZone;
|
|
230
|
+
},
|
|
231
|
+
setTimeZone(zone) {
|
|
232
|
+
currentZone = zone;
|
|
233
|
+
},
|
|
234
|
+
setPermission(kind, state) {
|
|
235
|
+
permissions[kind] = state;
|
|
236
|
+
},
|
|
237
|
+
setRestrictions(report) {
|
|
238
|
+
restrictions = {
|
|
239
|
+
...restrictions,
|
|
240
|
+
...report
|
|
241
|
+
};
|
|
242
|
+
},
|
|
243
|
+
applyPlatformCeiling() {
|
|
244
|
+
const ordered = [...scheduled.values()].sort((a, b) => a.resolvedAt - b.resolvedAt);
|
|
245
|
+
const dropped = ordered.slice(capabilities.pendingCeiling);
|
|
246
|
+
for (const entry of dropped) {
|
|
247
|
+
scheduled.delete(entry.id);
|
|
248
|
+
}
|
|
249
|
+
return dropped.map(entry => entry.id);
|
|
250
|
+
},
|
|
251
|
+
simulateProcessDeath() {
|
|
252
|
+
// Scheduled notifications live in the OS and survive; in-process
|
|
253
|
+
// listeners do not. The background handler does survive, because on a
|
|
254
|
+
// real device it is registered at module scope and the platform starts
|
|
255
|
+
// a fresh process to run it — which is the entire reason repeat expiry
|
|
256
|
+
// depends on it rather than on a foreground subscription.
|
|
257
|
+
listeners = [];
|
|
258
|
+
deliveryListeners = [];
|
|
259
|
+
operations = [];
|
|
260
|
+
},
|
|
261
|
+
simulateBootGap(ids) {
|
|
262
|
+
for (const id of ids) {
|
|
263
|
+
scheduled.delete(id);
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
async emitBackgroundInteraction(event) {
|
|
267
|
+
const background = {
|
|
268
|
+
...event,
|
|
269
|
+
appState: 'background'
|
|
270
|
+
};
|
|
271
|
+
if (listeners.length > 0) {
|
|
272
|
+
for (const listener of [...listeners]) listener(background);
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
await backgroundInteractionHandler?.(background);
|
|
276
|
+
},
|
|
277
|
+
emitInteraction(event) {
|
|
278
|
+
for (const listener of listeners) {
|
|
279
|
+
listener(event);
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
queueInitialInteraction(event) {
|
|
283
|
+
initialInteraction = event;
|
|
284
|
+
},
|
|
285
|
+
channelLabels(channelId) {
|
|
286
|
+
return channels.get(channelId);
|
|
287
|
+
},
|
|
288
|
+
isAlerting(id) {
|
|
289
|
+
return tray.get(id)?.alerting ?? false;
|
|
290
|
+
},
|
|
291
|
+
displayed() {
|
|
292
|
+
return [...tray.entries()].map(([id, entry]) => ({
|
|
293
|
+
id,
|
|
294
|
+
tone: entry.tone,
|
|
295
|
+
alerting: entry.alerting,
|
|
296
|
+
deliveredAt: entry.deliveredAt
|
|
297
|
+
}));
|
|
298
|
+
},
|
|
299
|
+
async deliverDue() {
|
|
300
|
+
const due = [...scheduled.values()].filter(entry => entry.resolvedAt <= currentTime).sort((a, b) => a.resolvedAt - b.resolvedAt);
|
|
301
|
+
const delivered = [];
|
|
302
|
+
for (const entry of due) {
|
|
303
|
+
scheduled.delete(entry.id);
|
|
304
|
+
const stop = stops.get(entry.id);
|
|
305
|
+
if (stop === undefined) {
|
|
306
|
+
// A real notification: it lands in the tray and, if its tone
|
|
307
|
+
// repeats, keeps sounding until something stops it.
|
|
308
|
+
tray.set(entry.id, {
|
|
309
|
+
tone: entry.tone,
|
|
310
|
+
alerting: loops.get(entry.id) ?? false,
|
|
311
|
+
deliveredAt: currentTime
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
const event = {
|
|
315
|
+
notificationId: entry.id,
|
|
316
|
+
occurredAt: currentTime,
|
|
317
|
+
repeatStop: stop
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
// Foreground listeners when the process is alive, the background
|
|
321
|
+
// handler when it is not — the same fork a real device makes.
|
|
322
|
+
if (deliveryListeners.length > 0) {
|
|
323
|
+
for (const listener of deliveryListeners) {
|
|
324
|
+
listener(event);
|
|
325
|
+
}
|
|
326
|
+
} else if (backgroundHandler !== undefined) {
|
|
327
|
+
await backgroundHandler(event);
|
|
328
|
+
}
|
|
329
|
+
delivered.push(entry.id);
|
|
330
|
+
}
|
|
331
|
+
return delivered;
|
|
332
|
+
},
|
|
333
|
+
handleDisplayed(id) {
|
|
334
|
+
tray.delete(id);
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
//# sourceMappingURL=fake-engine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_marker","require","_codec","createFakeEngine","options","scheduled","Map","channels","loops","stops","tray","operations","listeners","deliveryListeners","backgroundHandler","backgroundInteractionHandler","initialInteraction","currentTime","now","Date","UTC","currentZone","timeZone","permissions","display","initialPermissions","exactAlarm","restrictions","batteryOptimization","autoStart","readAt","capabilities","pendingCeiling","supportsExactAlarms","supportsChannels","supportsTextInputActions","supportsDoNotDisturbBypass","supportsRepeatingAlert","backgroundWindowMs","record","kind","id","push","at","toPendingEntry","request","metadata","unpackData","packData","resolvedAt","content","anchoringGeneration","anchoring","undefined","name","getCapabilities","schedule","set","tone","android","loopSound","repeatStop","cancel","delete","cancelMany","ids","cancelAll","clear","getPending","values","filter","entry","isRepeatStopId","sort","a","b","declareTone","channelId","existing","get","description","retireTone","declareGroups","_groups","listDeclaredChannels","keys","getPermission","requestPermission","openSettings","_kind","getRestrictions","subscribeToInteractions","handler","l","takeInitialInteraction","event","silenceDelivered","alerting","listRepeatStops","stop","has","markerId","subscribeToDeliveries","registerBackgroundDeliveryHandler","onInteraction","hasBackgroundDeliveryHandler","clearOperations","advanceTime","ms","setTime","epochMs","setTimeZone","zone","setPermission","state","setRestrictions","report","applyPlatformCeiling","ordered","dropped","slice","map","simulateProcessDeath","simulateBootGap","emitBackgroundInteraction","background","appState","length","listener","emitInteraction","queueInitialInteraction","channelLabels","isAlerting","displayed","entries","deliveredAt","deliverDue","due","delivered","notificationId","occurredAt","handleDisplayed"],"sourceRoot":"../../../src","sources":["testing/fake-engine.ts"],"mappings":";;;;;;AAqBA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA4BA;;AAOA;;AA0EO,SAASE,gBAAgBA,CAACC,OAA0B,GAAG,CAAC,CAAC,EAAc;EAC7E,MAAMC,SAAS,GAAG,IAAIC,GAAG,CAAuB,CAAC;EACjD,MAAMC,QAAQ,GAAG,IAAID,GAAG,CAAiD,CAAC;EAC1E,MAAME,KAAK,GAAG,IAAIF,GAAG,CAAkB,CAAC;EACxC,MAAMG,KAAK,GAAG,IAAIH,GAAG,CAAqB,CAAC;EAC3C,MAAMI,I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G;UAC5B4C,cAAc,EAAEpE,KAAK,CAAC9B,EAAE;UACxBmG,UAAU,EAAE3H,WAAW;UACvB4C,UAAU,EAAEsC;QACb,CAAC;;QAED;QACA;QACA,IAAItF,iBAAiB,CAACkH,MAAM,GAAG,CAAC,EAAE;UACjC,KAAK,MAAMC,QAAQ,IAAInH,iBAAiB,EAAE;YACzCmH,QAAQ,CAACjC,KAAK,CAAC;UAChB;QACD,CAAC,MAAM,IAAIjF,iBAAiB,KAAKuC,SAAS,EAAE;UAC3C,MAAMvC,iBAAiB,CAACiF,KAAK,CAAC;QAC/B;QAEA2C,SAAS,CAAChG,IAAI,CAAC6B,KAAK,CAAC9B,EAAE,CAAC;MACzB;MAEA,OAAOiG,SAAS;IACjB,CAAC;IAEDG,eAAeA,CAACpG,EAAE,EAAE;MACnB/B,IAAI,CAACqD,MAAM,CAACtB,EAAE,CAAC;IAChB;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createFakeProvider = createFakeProvider;
|
|
7
|
+
/**
|
|
8
|
+
* In-memory push provider for tests.
|
|
9
|
+
*
|
|
10
|
+
* Exists so the entire push surface — token lifecycle, receipt in every app
|
|
11
|
+
* state, malformed payloads, redelivery, and provider unavailability — is
|
|
12
|
+
* provable with no live provider and no device.
|
|
13
|
+
*
|
|
14
|
+
* It is also the second adapter that proves the swap costs a consumer nothing:
|
|
15
|
+
* running the full push suite against this instead of the real provider must
|
|
16
|
+
* pass with zero changes to consuming code.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
function createFakeProvider(options = {}) {
|
|
20
|
+
let availability = options.availability ?? 'available';
|
|
21
|
+
let token = options.withholdToken === true ? undefined : options.initialToken ?? 'fake-token-1';
|
|
22
|
+
let invalidated = false;
|
|
23
|
+
let messageHandlers = [];
|
|
24
|
+
let tokenHandlers = [];
|
|
25
|
+
let initial;
|
|
26
|
+
let waiters = [];
|
|
27
|
+
return {
|
|
28
|
+
name: options.name ?? 'fake-provider',
|
|
29
|
+
async getAvailability() {
|
|
30
|
+
return availability;
|
|
31
|
+
},
|
|
32
|
+
async getToken() {
|
|
33
|
+
if (token !== undefined) return token;
|
|
34
|
+
// Waits rather than returning a placeholder — an empty string presented
|
|
35
|
+
// as a token is worse than not answering yet.
|
|
36
|
+
return new Promise(resolve => {
|
|
37
|
+
waiters.push(resolve);
|
|
38
|
+
});
|
|
39
|
+
},
|
|
40
|
+
onTokenChange(handler) {
|
|
41
|
+
tokenHandlers.push(handler);
|
|
42
|
+
return () => {
|
|
43
|
+
tokenHandlers = tokenHandlers.filter(h => h !== handler);
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
async invalidateToken() {
|
|
47
|
+
invalidated = true;
|
|
48
|
+
token = undefined;
|
|
49
|
+
return options.invalidationSucceeds ?? true;
|
|
50
|
+
},
|
|
51
|
+
subscribeToMessages(handler) {
|
|
52
|
+
messageHandlers.push(handler);
|
|
53
|
+
return () => {
|
|
54
|
+
messageHandlers = messageHandlers.filter(h => h !== handler);
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
async takeInitialMessage() {
|
|
58
|
+
const raw = initial;
|
|
59
|
+
initial = undefined;
|
|
60
|
+
return raw;
|
|
61
|
+
},
|
|
62
|
+
// --- FakeProviderControls ---------------------------------------------
|
|
63
|
+
|
|
64
|
+
deliver(raw) {
|
|
65
|
+
for (const handler of messageHandlers) {
|
|
66
|
+
handler(raw);
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
queueInitial(raw) {
|
|
70
|
+
initial = raw;
|
|
71
|
+
},
|
|
72
|
+
rotateToken(next) {
|
|
73
|
+
token = next;
|
|
74
|
+
for (const handler of tokenHandlers) {
|
|
75
|
+
handler(next);
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
releaseToken(next) {
|
|
79
|
+
token = next;
|
|
80
|
+
for (const resolve of waiters) {
|
|
81
|
+
resolve(next);
|
|
82
|
+
}
|
|
83
|
+
waiters = [];
|
|
84
|
+
},
|
|
85
|
+
setAvailability(next) {
|
|
86
|
+
availability = next;
|
|
87
|
+
},
|
|
88
|
+
get invalidated() {
|
|
89
|
+
return invalidated;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=fake-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createFakeProvider","options","availability","token","withholdToken","undefined","initialToken","invalidated","messageHandlers","tokenHandlers","initial","waiters","name","getAvailability","getToken","Promise","resolve","push","onTokenChange","handler","filter","h","invalidateToken","invalidationSucceeds","subscribeToMessages","takeInitialMessage","raw","deliver","queueInitial","rotateToken","next","releaseToken","setAvailability"],"sourceRoot":"../../../src","sources":["testing/fake-provider.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA6BO,SAASA,kBAAkBA,CAACC,OAA4B,GAAG,CAAC,CAAC,EAAgB;EACnF,IAAIC,YAA8B,GAAGD,OAAO,CAACC,YAAY,IAAI,WAAW;EACxE,IAAIC,KAAK,GAAGF,OAAO,CAACG,aAAa,KAAK,IAAI,GAAGC,SAAS,GAAIJ,OAAO,CAACK,YAAY,IAAI,cAAe;EACjG,IAAIC,WAAW,GAAG,KAAK;EACvB,IAAIC,eAA2C,GAAG,EAAE;EACpD,IAAIC,aAA0C,GAAG,EAAE;EACnD,IAAIC,OAA4B;EAChC,IAAIC,OAAoC,GAAG,EAAE;EAE7C,OAAO;IACNC,IAAI,EAAEX,OAAO,CAACW,IAAI,IAAI,eAAe;IAErC,MAAMC,eAAeA,CAAA,EAAG;MACvB,OAAOX,YAAY;IACpB,CAAC;IAED,MAAMY,QAAQA,CAAA,EAAG;MAChB,IAAIX,KAAK,KAAKE,SAAS,EAAE,OAAOF,KAAK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AAMd,OAAO,IAAIL,OAAO,EAAE;QAC9BK,OAAO,CAACc,IAAI,CAAC;MACd;MACAnB,OAAO,GAAG,EAAE;IACb,CAAC;IAEDqB,eAAeA,CAACF,IAAI,EAAE;MACrB5B,YAAY,GAAG4B,IAAI;IACpB,CAAC;IAED,IAAIvB,WAAWA,CAAA,EAAG;MACjB,OAAOA,WAAW;IACnB;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createFaultInjector = createFaultInjector;
|
|
7
|
+
var _errors = require("../contract/errors.js");
|
|
8
|
+
/**
|
|
9
|
+
* Fault injection.
|
|
10
|
+
*
|
|
11
|
+
* Every documented failure condition must be reachable on demand, or the claim
|
|
12
|
+
* that each has its own distinct diagnostic is untestable. This is what the
|
|
13
|
+
* demo app's fault panel and the conformance suite both drive.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Triggers a named condition and records that it fired.
|
|
18
|
+
*
|
|
19
|
+
* Deliberately a thin mechanism: it proves each identifier is reachable and
|
|
20
|
+
* distinct, which is the property under test. Making the *real* condition occur
|
|
21
|
+
* is each module's own test's job.
|
|
22
|
+
*/
|
|
23
|
+
function createFaultInjector(options = {}) {
|
|
24
|
+
const now = options.now ?? (() => Date.now());
|
|
25
|
+
const emit = options.emit ?? (() => {});
|
|
26
|
+
const fired = [];
|
|
27
|
+
return {
|
|
28
|
+
/** Every condition a consumer can reach from the fault panel. */
|
|
29
|
+
available: _errors.ALL_DIAGNOSTIC_CODES,
|
|
30
|
+
inject(kind) {
|
|
31
|
+
const record = {
|
|
32
|
+
code: kind,
|
|
33
|
+
at: now()
|
|
34
|
+
};
|
|
35
|
+
fired.push(record);
|
|
36
|
+
emit(kind, `Injected fault: ${kind}`, {
|
|
37
|
+
injected: true
|
|
38
|
+
});
|
|
39
|
+
return {
|
|
40
|
+
dispose() {
|
|
41
|
+
const index = fired.indexOf(record);
|
|
42
|
+
if (index >= 0) fired.splice(index, 1);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
get fired() {
|
|
47
|
+
return fired;
|
|
48
|
+
},
|
|
49
|
+
/** Which documented conditions have not yet been exercised. */
|
|
50
|
+
unexercised() {
|
|
51
|
+
const seen = new Set(fired.map(record => record.code));
|
|
52
|
+
return _errors.ALL_DIAGNOSTIC_CODES.filter(code => !seen.has(code));
|
|
53
|
+
},
|
|
54
|
+
reset() {
|
|
55
|
+
fired.length = 0;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=faults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_errors","require","createFaultInjector","options","now","Date","emit","fired","available","ALL_DIAGNOSTIC_CODES","inject","kind","record","code","at","push","injected","dispose","index","indexOf","splice","unexercised","seen","Set","map","filter","has","reset","length"],"sourceRoot":"../../../src","sources":["testing/faults.ts"],"mappings":";;;;;;AAQA,IAAAA,OAAA,GAAAC,OAAA;AARA;AACA;AACA;AACA;AACA;AACA;AACA;;AAoBA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,mBAAmBA,CAACC,OAA6B,GAAG,CAAC,CAAC,EAAE;EACvE,MAAMC,GAAG,GAAGD,OAAO,CAACC,GAAG,KAAK,MAAMC,IAAI,CAACD,GAAG,CAAC,CAAC,CAAC;EAC7C,MAAME,IAAI,GAAGH,OAAO,CAACG,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC;EACvC,MAAMC,KAAoB,GAAG,EAAE;EAE/B,OAAO;IACN;IACAC,SAAS,EAAEC,4BAAoB;IAE/BC,MAAMA,CAACC,IAAe,EAAc;MACnC,MAAMC,MAAmB,GAAG;QAAEC,IAAI,EAAEF,IAAI;QAAEG,EAAE,EAAEV,GAAG,CAAC;MAAE,CAAC;MACrDG,KAAK,CAACQ,IAAI,CAACH,MAAM,CAAC;MAClBN,IAAI,CAACK,IAAI,EAAE,mBAAmBA,IAAI,EAAE,EAAE;QAAEK,QAAQ,EAAE;MAAK,CAAC,CAAC;MAEzD,OAAO;QACNC,OAAOA,CAAA,EAAG;UACT,MAAMC,KAAK,GAAGX,KAAK,CAACY,OAAO,CAACP,MAAM,CAAC;UACnC,IAAIM,KAAK,IAAI,CAAC,EAAEX,KAAK,CAACa,MAAM,CAACF,KAAK,EAAE,CAAC,CAAC;QACvC;MACD,CAAC;IACF,CAAC;IAED,IAAIX,KAAKA,CAAA,EAA2B;MACnC,OAAOA,KAAK;IACb,CAAC;IAED;IACAc,WAAWA,CAAA,EAA8B;MACxC,MAAMC,IAAI,GAAG,IAAIC,GAAG,CAAChB,KAAK,CAACiB,GAAG,CAACZ,MAAM,IAAIA,MAAM,CAACC,IAAI,CAAC,CAAC;MACtD,OAAOJ,4BAAoB,CAACgB,MAAM,CAACZ,IAAI,IAAI,CAACS,IAAI,CAACI,GAAG,CAACb,IAAI,CAAC,CAAC;IAC5D,CAAC;IAEDc,KAAKA,CAAA,EAAS;MACbpB,KAAK,CAACqB,MAAM,GAAG,CAAC;IACjB;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "PERF_BUDGETS", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _measure.PERF_BUDGETS;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "createFakeEngine", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _fakeEngine.createFakeEngine;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "createFakeProvider", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _fakeProvider.createFakeProvider;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "createFaultInjector", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _faults.createFaultInjector;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "createMemoryStore", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _store.createMemoryStore;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "runConformanceSuite", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _index.runConformanceSuite;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "runMeasurementHarness", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _measure.runMeasurementHarness;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var _fakeEngine = require("./fake-engine.js");
|
|
49
|
+
var _fakeProvider = require("./fake-provider.js");
|
|
50
|
+
var _faults = require("./faults.js");
|
|
51
|
+
var _index = require("./conformance/index.js");
|
|
52
|
+
var _measure = require("./measure.js");
|
|
53
|
+
var _store = require("../state/store.js");
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_fakeEngine","require","_fakeProvider","_faults","_index","_measure","_store"],"sourceRoot":"../../../src","sources":["testing/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAQA,IAAAK,MAAA,GAAAL,OAAA","ignoreList":[]}
|