summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/messaging/dist/esm/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-old/node_modules/@firebase/messaging/dist/esm/src/util')
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/constants.d.ts40
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/errors.d.ts57
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/sw-types.d.ts90
3 files changed, 0 insertions, 187 deletions
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/constants.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/constants.d.ts
deleted file mode 100644
index f5a2358..0000000
--- a/frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/constants.d.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * @license
- * Copyright 2019 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-export declare const DEFAULT_SW_PATH = "/firebase-messaging-sw.js";
-export declare const DEFAULT_SW_SCOPE = "/firebase-cloud-messaging-push-scope";
-export declare const DEFAULT_VAPID_KEY = "BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4";
-export declare const ENDPOINT = "https://fcmregistrations.googleapis.com/v1";
-/** Key of FCM Payload in Notification's data field. */
-export declare const FCM_MSG = "FCM_MSG";
-export declare const CONSOLE_CAMPAIGN_ID = "google.c.a.c_id";
-export declare const CONSOLE_CAMPAIGN_NAME = "google.c.a.c_l";
-export declare const CONSOLE_CAMPAIGN_TIME = "google.c.a.ts";
-/** Set to '1' if Analytics is enabled for the campaign */
-export declare const CONSOLE_CAMPAIGN_ANALYTICS_ENABLED = "google.c.a.e";
-export declare const TAG = "FirebaseMessaging: ";
-export declare const MAX_NUMBER_OF_EVENTS_PER_LOG_REQUEST = 1000;
-export declare const MAX_RETRIES = 3;
-export declare const LOG_INTERVAL_IN_MS = 86400000;
-export declare const DEFAULT_BACKOFF_TIME_MS = 5000;
-export declare const DEFAULT_REGISTRATION_TIMEOUT = 10000;
-export declare const FCM_LOG_SOURCE = 1249;
-export declare const SDK_PLATFORM_WEB = 3;
-export declare const EVENT_MESSAGE_DELIVERED = 1;
-export declare enum MessageType {
- DATA_MESSAGE = 1,
- DISPLAY_NOTIFICATION = 3
-}
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/errors.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/errors.d.ts
deleted file mode 100644
index e985fff..0000000
--- a/frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/errors.d.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * @license
- * Copyright 2017 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { ErrorFactory, ErrorMap } from '@firebase/util';
-export declare const enum ErrorCode {
- MISSING_APP_CONFIG_VALUES = "missing-app-config-values",
- AVAILABLE_IN_WINDOW = "only-available-in-window",
- AVAILABLE_IN_SW = "only-available-in-sw",
- PERMISSION_DEFAULT = "permission-default",
- PERMISSION_BLOCKED = "permission-blocked",
- UNSUPPORTED_BROWSER = "unsupported-browser",
- INDEXED_DB_UNSUPPORTED = "indexed-db-unsupported",
- FAILED_DEFAULT_REGISTRATION = "failed-service-worker-registration",
- TOKEN_SUBSCRIBE_FAILED = "token-subscribe-failed",
- TOKEN_SUBSCRIBE_NO_TOKEN = "token-subscribe-no-token",
- TOKEN_UNSUBSCRIBE_FAILED = "token-unsubscribe-failed",
- TOKEN_UPDATE_FAILED = "token-update-failed",
- TOKEN_UPDATE_NO_TOKEN = "token-update-no-token",
- INVALID_BG_HANDLER = "invalid-bg-handler",
- USE_SW_AFTER_GET_TOKEN = "use-sw-after-get-token",
- INVALID_SW_REGISTRATION = "invalid-sw-registration",
- USE_VAPID_KEY_AFTER_GET_TOKEN = "use-vapid-key-after-get-token",
- INVALID_VAPID_KEY = "invalid-vapid-key"
-}
-export declare const ERROR_MAP: ErrorMap<ErrorCode>;
-interface ErrorParams {
- [ErrorCode.MISSING_APP_CONFIG_VALUES]: {
- valueName: string;
- };
- [ErrorCode.FAILED_DEFAULT_REGISTRATION]: {
- browserErrorMessage: string;
- };
- [ErrorCode.TOKEN_SUBSCRIBE_FAILED]: {
- errorInfo: string;
- };
- [ErrorCode.TOKEN_UNSUBSCRIBE_FAILED]: {
- errorInfo: string;
- };
- [ErrorCode.TOKEN_UPDATE_FAILED]: {
- errorInfo: string;
- };
-}
-export declare const ERROR_FACTORY: ErrorFactory<ErrorCode, ErrorParams>;
-export {};
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/sw-types.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/sw-types.d.ts
deleted file mode 100644
index b7abd9a..0000000
--- a/frontend-old/node_modules/@firebase/messaging/dist/esm/src/util/sw-types.d.ts
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * @license
- * Copyright 2018 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Subset of Web Worker types from lib.webworker.d.ts
- * https://github.com/Microsoft/TypeScript/blob/master/lib/lib.webworker.d.ts
- *
- * Since it's not possible to have both "dom" and "webworker" libs in a single project, we have to
- * manually declare the web worker types we need.
- */
-export interface ServiceWorkerGlobalScope {
- readonly location: WorkerLocation;
- readonly clients: Clients;
- readonly registration: ServiceWorkerRegistration;
- addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
-}
-export interface ServiceWorkerGlobalScopeEventMap {
- notificationclick: NotificationEvent;
- push: PushEvent;
- pushsubscriptionchange: PushSubscriptionChangeEvent;
-}
-export interface Client {
- readonly id: string;
- readonly type: ClientTypes;
- readonly url: string;
- postMessage(message: any, transfer?: Transferable[]): void;
-}
-export interface ClientQueryOptions {
- includeReserved?: boolean;
- includeUncontrolled?: boolean;
- type?: ClientTypes;
-}
-export interface WindowClient extends Client {
- readonly focused: boolean;
- readonly visibilityState: DocumentVisibilityState;
- focus(): Promise<WindowClient>;
- navigate(url: string): Promise<WindowClient>;
-}
-export interface Clients {
- claim(): Promise<void>;
- get(id: string): Promise<any>;
- matchAll(options?: ClientQueryOptions): Promise<Client[]>;
- openWindow(url: string): Promise<WindowClient | null>;
-}
-export interface ExtendableEvent extends Event {
- waitUntil(f: Promise<any>): void;
-}
-export interface NotificationEvent extends ExtendableEvent {
- readonly action: string;
- readonly notification: Notification;
-}
-interface PushMessageData {
- arrayBuffer(): ArrayBuffer;
- blob(): Blob;
- json(): any;
- text(): string;
-}
-export interface PushEvent extends ExtendableEvent {
- readonly data: PushMessageData | null;
-}
-export interface PushSubscriptionChangeEvent extends ExtendableEvent {
- readonly newSubscription: PushSubscription | null;
- readonly oldSubscription: PushSubscription | null;
-}
-interface WorkerLocation {
- readonly hash: string;
- readonly host: string;
- readonly hostname: string;
- readonly href: string;
- readonly origin: string;
- readonly pathname: string;
- readonly port: string;
- readonly protocol: string;
- readonly search: string;
- toString(): string;
-}
-export {};