@geolonia/geonicdb-sdk 0.19.3 → 0.20.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/README.md +7 -5
- package/geonicdb.cjs.map +2 -2
- package/geonicdb.d.ts +11 -4
- package/geonicdb.iife.js.map +2 -2
- package/geonicdb.mjs.map +2 -2
- package/package.json +1 -1
- package/react/index.d.ts +7 -2
package/geonicdb.d.ts
CHANGED
|
@@ -481,14 +481,21 @@ export interface RegisterWebPushSubscriptionOptions extends WebPushSubscribeOpti
|
|
|
481
481
|
/** NGSI-LD `q` filter (ignored for NGSIv2). */
|
|
482
482
|
q?: string;
|
|
483
483
|
/**
|
|
484
|
-
* Override the localStorage key used for idempotency. Default
|
|
485
|
-
* baseUrl
|
|
484
|
+
* Override the localStorage key used for idempotency. Default is
|
|
485
|
+
* `buildWebPushSubscriptionStorageKey(baseUrl, tenant, protocol)` — it does
|
|
486
|
+
* **not** include login principal. On a shared browser (kiosk, shared profile)
|
|
487
|
+
* or when registering multiple distinct filters from the same origin, pass a
|
|
488
|
+
* key that still includes that default scope plus app-managed suffixes
|
|
489
|
+
* (e.g. `` `${buildWebPushSubscriptionStorageKey(...)}:${userId}:${filterId}` ``).
|
|
490
|
+
* See docs/SDK.md → Web Push (#3097).
|
|
486
491
|
*/
|
|
487
492
|
storageKey?: string;
|
|
488
493
|
}
|
|
489
494
|
/**
|
|
490
|
-
* Build the default localStorage key for a Web Push GeonicDB subscription id
|
|
491
|
-
*
|
|
495
|
+
* Build the default localStorage key for a Web Push GeonicDB subscription id
|
|
496
|
+
* (`baseUrl` + `tenant` + `protocol` only — not principal). Exported so callers
|
|
497
|
+
* can append user/filter suffixes for shared-browser isolation (#3097) or clear
|
|
498
|
+
* the persisted id.
|
|
492
499
|
*/
|
|
493
500
|
export declare function buildWebPushSubscriptionStorageKey(baseUrl: string, tenant: string, protocol: WebPushRegisterProtocol): string;
|
|
494
501
|
/**
|