@protobase/schema 0.45.19 → 0.45.20
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/devices-path.d.ts +6 -0
- package/dist/devices-path.js +7 -0
- package/dist/internal.d.ts +3 -1
- package/dist/internal.js +3 -1
- package/dist/push-record.d.ts +14 -0
- package/dist/push-record.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/devices-path.d.ts
|
|
2
|
+
/** The name of the device id in a device's path. */
|
|
3
|
+
export declare const deviceIdParam = "id";
|
|
4
|
+
/** The path of the caller's devices under the API's system path (`/api`), or of one of them by its id. */
|
|
5
|
+
export declare const devicesPath: (systemPath: string, id?: string) => string;
|
|
6
|
+
//#endregion
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/devices-path.ts
|
|
2
|
+
/** The name of the device id in a device's path. */
|
|
3
|
+
const deviceIdParam = "id";
|
|
4
|
+
/** The path of the caller's devices under the API's system path (`/api`), or of one of them by its id. */
|
|
5
|
+
const devicesPath = (systemPath, id) => `${systemPath}/notifications/devices${id === void 0 ? "" : `/${encodeURIComponent(id)}`}`;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { deviceIdParam, devicesPath };
|
package/dist/internal.d.ts
CHANGED
|
@@ -29,4 +29,6 @@ import { apiOriginMeta } from "./api-origin-meta.js";
|
|
|
29
29
|
import { MobileReleaseAnswer, mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, releaseManifestFile } from "./mobile-release-address.js";
|
|
30
30
|
import { authBasePath } from "./auth-base-path.js";
|
|
31
31
|
import { capacitorOrigin } from "./capacitor-origins.js";
|
|
32
|
-
|
|
32
|
+
import { pushRecord, serviceWorkerFile } from "./push-record.js";
|
|
33
|
+
import { deviceIdParam, devicesPath } from "./devices-path.js";
|
|
34
|
+
export { type AddressCheck, type FormulaNode, type Locale, type MobileReleaseAnswer, type PluginHost, type PluginRequirement, type PropShapes, type RefShape, type SearchTerm, actionConditionError, actionInputErrors, addressErrors, addressPlaceholders, apiOriginMeta, appHrefError, applyAssistantEvent, authBasePath, boardErrors, bottomBarFor, capacitorOrigin, cardPhotoLimit, chartFields, checkEventFilter, checkedAccept, checkedProvider, datesErrors, decodeKey, defaultRecentLimit, deviceIdParam, devicesPath, displayFields, emptyAssistantState, encodeKey, fieldRefsIn, fillAddress, hrefField, hrefPlaceholders, inRange, isFieldRef, isGroupChart, isLocale, layoutItems, leavesApp, linkActionError, locales, markFieldRefs, matchedSearchField, matchesSearch, mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, navRecentErrors, parseCapability, parseFormula, parseSize, parseTable, pickLocale, pluginProblem, promptError, promptFields, pruneByShape, pushRecord, readEventStream, redactSecrets, releaseManifestFile, renderPrompt, searchTerms, serviceWorkerFile, shapes, shownInputs, statusTones, tableDisplay, termMatches, unmarkFieldRefs, updateSetErrors, updateValues, viewOfList, webhookResources };
|
package/dist/internal.js
CHANGED
|
@@ -29,4 +29,6 @@ import { apiOriginMeta } from "./api-origin-meta.js";
|
|
|
29
29
|
import { mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, releaseManifestFile } from "./mobile-release-address.js";
|
|
30
30
|
import { authBasePath } from "./auth-base-path.js";
|
|
31
31
|
import { capacitorOrigin } from "./capacitor-origins.js";
|
|
32
|
-
|
|
32
|
+
import { pushRecord, serviceWorkerFile } from "./push-record.js";
|
|
33
|
+
import { deviceIdParam, devicesPath } from "./devices-path.js";
|
|
34
|
+
export { actionConditionError, actionInputErrors, addressErrors, addressPlaceholders, apiOriginMeta, appHrefError, applyAssistantEvent, authBasePath, boardErrors, bottomBarFor, capacitorOrigin, cardPhotoLimit, chartFields, checkEventFilter, checkedAccept, checkedProvider, datesErrors, decodeKey, defaultRecentLimit, deviceIdParam, devicesPath, displayFields, emptyAssistantState, encodeKey, fieldRefsIn, fillAddress, hrefField, hrefPlaceholders, inRange, isFieldRef, isGroupChart, isLocale, layoutItems, leavesApp, linkActionError, locales, markFieldRefs, matchedSearchField, matchesSearch, mobileReleaseBasePath, mobileReleaseParams, mobileReleasePath, mobileReleaseQuery, mobileReleasesPath, navRecentErrors, parseCapability, parseFormula, parseSize, parseTable, pickLocale, pluginProblem, promptError, promptFields, pruneByShape, pushRecord, readEventStream, redactSecrets, releaseManifestFile, renderPrompt, searchTerms, serviceWorkerFile, shapes, shownInputs, statusTones, tableDisplay, termMatches, unmarkFieldRefs, updateSetErrors, updateValues, viewOfList, webhookResources };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/push-record.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Where a browser keeps which user its push subscription is registered for, the record the push helper writes and the
|
|
4
|
+
* service worker reads before it shows a push: an IndexedDB database, its store and the one key. The record is
|
|
5
|
+
* `{ userId, endpoint, appName, deviceId?, renew? }`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const pushRecord: {
|
|
8
|
+
readonly database: "protobase-push";
|
|
9
|
+
readonly store: "registration";
|
|
10
|
+
readonly key: "current";
|
|
11
|
+
};
|
|
12
|
+
/** The service worker's file, at the root of the app's origin so it may answer all of it. */
|
|
13
|
+
export declare const serviceWorkerFile = "protobase.sw.js";
|
|
14
|
+
//#endregion
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/push-record.ts
|
|
2
|
+
/**
|
|
3
|
+
* Where a browser keeps which user its push subscription is registered for, the record the push helper writes and the
|
|
4
|
+
* service worker reads before it shows a push: an IndexedDB database, its store and the one key. The record is
|
|
5
|
+
* `{ userId, endpoint, appName, deviceId?, renew? }`.
|
|
6
|
+
*/
|
|
7
|
+
const pushRecord = {
|
|
8
|
+
database: "protobase-push",
|
|
9
|
+
store: "registration",
|
|
10
|
+
key: "current"
|
|
11
|
+
};
|
|
12
|
+
/** The service worker's file, at the root of the app's origin so it may answer all of it. */
|
|
13
|
+
const serviceWorkerFile = "protobase.sw.js";
|
|
14
|
+
//#endregion
|
|
15
|
+
export { pushRecord, serviceWorkerFile };
|