summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/messaging/dist/src
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-old/node_modules/@firebase/messaging/dist/src')
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/api.d.ts101
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/api/deleteToken.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/api/getToken.d.ts19
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/api/isSupported.d.ts30
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/api/onBackgroundMessage.d.ts19
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/api/onMessage.d.ts19
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/api/setDeliveryMetricsExportedToBigQueryEnabled.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/array-base64-translator.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/externalizePayload.d.ts19
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/extract-app-config.d.ts19
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/is-console-message.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/logToFirelog.d.ts30
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/logToScion.d.ts19
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/migrate-old-database.d.ts51
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/register.d.ts23
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/registerDefaultSw.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/sleep.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/updateSwReg.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/helpers/updateVapidKey.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/index.d.ts32
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/index.sw.d.ts26
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/app-config.d.ts24
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/internal-dependencies.d.ts27
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/internal-message-payload.d.ts65
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/logging-types.d.ts60
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/public-types.d.ts144
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/token-details.d.ts32
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/internals/idb-manager.d.ts27
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/internals/requests.d.ts35
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/internals/token-manager.d.ts23
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/listeners/sw-listeners.d.ts21
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/listeners/window-listener.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/messaging-service.d.ts36
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/testing/compare-headers.d.ts22
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/firebase-dependencies.d.ts25
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/logging-object.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/messaging-service.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/service-worker.d.ts83
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/token-details.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/testing/setup.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/testing/sinon-types.d.ts19
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/tsdoc-metadata.json11
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/util/constants.d.ts40
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/util/errors.d.ts57
-rw-r--r--frontend-old/node_modules/@firebase/messaging/dist/src/util/sw-types.d.ts90
45 files changed, 1481 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/api.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/api.d.ts
new file mode 100644
index 0000000..b2f938b
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/api.d.ts
@@ -0,0 +1,101 @@
+/**
+ * @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 { FirebaseApp } from '@firebase/app';
+import { GetTokenOptions, MessagePayload, Messaging } from './interfaces/public-types';
+import { NextFn, Observer, Unsubscribe } from '@firebase/util';
+/**
+ * Retrieves a Firebase Cloud Messaging instance.
+ *
+ * @returns The Firebase Cloud Messaging instance associated with the provided firebase app.
+ *
+ * @public
+ */
+export declare function getMessagingInWindow(app?: FirebaseApp): Messaging;
+/**
+ * Retrieves a Firebase Cloud Messaging instance.
+ *
+ * @returns The Firebase Cloud Messaging instance associated with the provided firebase app.
+ *
+ * @public
+ */
+export declare function getMessagingInSw(app?: FirebaseApp): Messaging;
+/**
+ * Subscribes the {@link Messaging} instance to push notifications. Returns a Firebase Cloud
+ * Messaging registration token that can be used to send push messages to that {@link Messaging}
+ * instance.
+ *
+ * If notification permission isn't already granted, this method asks the user for permission. The
+ * returned promise rejects if the user does not allow the app to show notifications.
+ *
+ * @param messaging - The {@link Messaging} instance.
+ * @param options - Provides an optional vapid key and an optional service worker registration.
+ *
+ * @returns The promise resolves with an FCM registration token.
+ *
+ * @public
+ */
+export declare function getToken(messaging: Messaging, options?: GetTokenOptions): Promise<string>;
+/**
+ * Deletes the registration token associated with this {@link Messaging} instance and unsubscribes
+ * the {@link Messaging} instance from the push subscription.
+ *
+ * @param messaging - The {@link Messaging} instance.
+ *
+ * @returns The promise resolves when the token has been successfully deleted.
+ *
+ * @public
+ */
+export declare function deleteToken(messaging: Messaging): Promise<boolean>;
+/**
+ * When a push message is received and the user is currently on a page for your origin, the
+ * message is passed to the page and an `onMessage()` event is dispatched with the payload of
+ * the push message.
+ *
+ *
+ * @param messaging - The {@link Messaging} instance.
+ * @param nextOrObserver - This function, or observer object with `next` defined,
+ * is called when a message is received and the user is currently viewing your page.
+ * @returns To stop listening for messages execute this returned function.
+ *
+ * @public
+ */
+export declare function onMessage(messaging: Messaging, nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+/**
+ * Called when a message is received while the app is in the background. An app is considered to be
+ * in the background if no active window is displayed.
+ *
+ * @param messaging - The {@link Messaging} instance.
+ * @param nextOrObserver - This function, or observer object with `next` defined, is called when a
+ * message is received and the app is currently in the background.
+ *
+ * @returns To stop listening for messages execute this returned function
+ *
+ * @public
+ */
+export declare function onBackgroundMessage(messaging: Messaging, nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
+/**
+ * Enables or disables Firebase Cloud Messaging message delivery metrics export to BigQuery. By
+ * default, message delivery metrics are not exported to BigQuery. Use this method to enable or
+ * disable the export at runtime.
+ *
+ * @param messaging - The `FirebaseMessaging` instance.
+ * @param enable - Whether Firebase Cloud Messaging should export message delivery metrics to
+ * BigQuery.
+ *
+ * @public
+ */
+export declare function experimentalSetDeliveryMetricsExportedToBigQueryEnabled(messaging: Messaging, enable: boolean): void;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/api/deleteToken.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/api/deleteToken.d.ts
new file mode 100644
index 0000000..569c729
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/api/deleteToken.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @license
+ * Copyright 2020 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 { MessagingService } from '../messaging-service';
+export declare function deleteToken(messaging: MessagingService): Promise<boolean>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/api/getToken.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/api/getToken.d.ts
new file mode 100644
index 0000000..564d570
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/api/getToken.d.ts
@@ -0,0 +1,19 @@
+/**
+ * @license
+ * Copyright 2020 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 { MessagingService } from '../messaging-service';
+import { GetTokenOptions } from '../interfaces/public-types';
+export declare function getToken(messaging: MessagingService, options?: GetTokenOptions): Promise<string>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/api/isSupported.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/api/isSupported.d.ts
new file mode 100644
index 0000000..635bc29
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/api/isSupported.d.ts
@@ -0,0 +1,30 @@
+/**
+ * @license
+ * Copyright 2020 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.
+ */
+/**
+ * Checks if all required APIs exist in the browser.
+ * @returns a Promise that resolves to a boolean.
+ *
+ * @public
+ */
+export declare function isWindowSupported(): Promise<boolean>;
+/**
+ * Checks whether all required APIs exist within SW Context
+ * @returns a Promise that resolves to a boolean.
+ *
+ * @public
+ */
+export declare function isSwSupported(): Promise<boolean>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/api/onBackgroundMessage.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/api/onBackgroundMessage.d.ts
new file mode 100644
index 0000000..b427b38
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/api/onBackgroundMessage.d.ts
@@ -0,0 +1,19 @@
+/**
+ * @license
+ * Copyright 2020 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 { MessagePayload, NextFn, Observer, Unsubscribe } from '../interfaces/public-types';
+import { MessagingService } from '../messaging-service';
+export declare function onBackgroundMessage(messaging: MessagingService, nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/api/onMessage.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/api/onMessage.d.ts
new file mode 100644
index 0000000..89ad796
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/api/onMessage.d.ts
@@ -0,0 +1,19 @@
+/**
+ * @license
+ * Copyright 2020 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 { MessagePayload, NextFn, Observer, Unsubscribe } from '../interfaces/public-types';
+import { MessagingService } from '../messaging-service';
+export declare function onMessage(messaging: MessagingService, nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/api/setDeliveryMetricsExportedToBigQueryEnabled.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/api/setDeliveryMetricsExportedToBigQueryEnabled.d.ts
new file mode 100644
index 0000000..f368339
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/api/setDeliveryMetricsExportedToBigQueryEnabled.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @license
+ * Copyright 2020 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 { Messaging } from '../interfaces/public-types';
+export declare function _setDeliveryMetricsExportedToBigQueryEnabled(messaging: Messaging, enable: boolean): void;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/array-base64-translator.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/array-base64-translator.d.ts
new file mode 100644
index 0000000..27e3eab
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/array-base64-translator.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @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.
+ */
+export declare function arrayToBase64(array: Uint8Array | ArrayBuffer): string;
+export declare function base64ToArray(base64String: string): Uint8Array;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/externalizePayload.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/externalizePayload.d.ts
new file mode 100644
index 0000000..efc668b
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/externalizePayload.d.ts
@@ -0,0 +1,19 @@
+/**
+ * @license
+ * Copyright 2020 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 { MessagePayload } from '../interfaces/public-types';
+import { MessagePayloadInternal } from '../interfaces/internal-message-payload';
+export declare function externalizePayload(internalPayload: MessagePayloadInternal): MessagePayload;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/extract-app-config.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/extract-app-config.d.ts
new file mode 100644
index 0000000..306196f
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/extract-app-config.d.ts
@@ -0,0 +1,19 @@
+/**
+ * @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.
+ */
+import { FirebaseApp } from '@firebase/app';
+import { AppConfig } from '../interfaces/app-config';
+export declare function extractAppConfig(app: FirebaseApp): AppConfig;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/is-console-message.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/is-console-message.d.ts
new file mode 100644
index 0000000..3e53ab1
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/is-console-message.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @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.
+ */
+import { ConsoleMessageData } from '../interfaces/internal-message-payload';
+export declare function isConsoleMessage(data: unknown): data is ConsoleMessageData;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/logToFirelog.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/logToFirelog.d.ts
new file mode 100644
index 0000000..64f04cc
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/logToFirelog.d.ts
@@ -0,0 +1,30 @@
+/**
+ * @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.
+ */
+import { LogEvent, LogRequest } from '../interfaces/logging-types';
+import { MessagePayloadInternal } from '../interfaces/internal-message-payload';
+import { MessagingService } from '../messaging-service';
+export declare function startLoggingService(messaging: MessagingService): void;
+/**
+ *
+ * @param messaging the messaging instance.
+ * @param offsetInMs this method execute after `offsetInMs` elapsed .
+ */
+export declare function _processQueue(messaging: MessagingService, offsetInMs: number): void;
+export declare function _dispatchLogEvents(messaging: MessagingService): Promise<void>;
+export declare function stageLog(messaging: MessagingService, internalPayload: MessagePayloadInternal): Promise<void>;
+export declare function _createLogRequest(logEventQueue: LogEvent[]): LogRequest;
+export declare function _mergeStrings(s1: string, s2: string): string;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/logToScion.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/logToScion.d.ts
new file mode 100644
index 0000000..400d38c
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/logToScion.d.ts
@@ -0,0 +1,19 @@
+/**
+ * @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.
+ */
+import { ConsoleMessageData, MessageType } from '../interfaces/internal-message-payload';
+import { MessagingService } from '../messaging-service';
+export declare function logToScion(messaging: MessagingService, messageType: MessageType, data: ConsoleMessageData): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/migrate-old-database.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/migrate-old-database.d.ts
new file mode 100644
index 0000000..f1e879b
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/migrate-old-database.d.ts
@@ -0,0 +1,51 @@
+/**
+ * @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.
+ */
+import { TokenDetails } from '../interfaces/token-details';
+export interface V2TokenDetails {
+ fcmToken: string;
+ swScope: string;
+ vapidKey: string | Uint8Array;
+ subscription: PushSubscription;
+ fcmSenderId: string;
+ fcmPushSet: string;
+ createTime?: number;
+ endpoint?: string;
+ auth?: string;
+ p256dh?: string;
+}
+export interface V3TokenDetails {
+ fcmToken: string;
+ swScope: string;
+ vapidKey: Uint8Array;
+ fcmSenderId: string;
+ fcmPushSet: string;
+ endpoint: string;
+ auth: ArrayBuffer;
+ p256dh: ArrayBuffer;
+ createTime: number;
+}
+export interface V4TokenDetails {
+ fcmToken: string;
+ swScope: string;
+ vapidKey: Uint8Array;
+ fcmSenderId: string;
+ endpoint: string;
+ auth: ArrayBufferLike;
+ p256dh: ArrayBufferLike;
+ createTime: number;
+}
+export declare function migrateOldDatabase(senderId: string): Promise<TokenDetails | null>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/register.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/register.d.ts
new file mode 100644
index 0000000..0efe2cd
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/register.d.ts
@@ -0,0 +1,23 @@
+/**
+ * @license
+ * Copyright 2020 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 function registerMessagingInWindow(): void;
+/**
+ * The messaging instance registered in sw is named differently than that of in client. This is
+ * because both `registerMessagingInWindow` and `registerMessagingInSw` would be called in
+ * `messaging-compat` and component with the same name can only be registered once.
+ */
+export declare function registerMessagingInSw(): void;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/registerDefaultSw.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/registerDefaultSw.d.ts
new file mode 100644
index 0000000..fe0618e
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/registerDefaultSw.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @license
+ * Copyright 2020 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 { MessagingService } from '../messaging-service';
+export declare function registerDefaultSw(messaging: MessagingService): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/sleep.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/sleep.d.ts
new file mode 100644
index 0000000..f51e6cd
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/sleep.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @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.
+ */
+/** Returns a promise that resolves after given time passes. */
+export declare function sleep(ms: number): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/updateSwReg.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/updateSwReg.d.ts
new file mode 100644
index 0000000..6e461e6
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/updateSwReg.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @license
+ * Copyright 2020 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 { MessagingService } from '../messaging-service';
+export declare function updateSwReg(messaging: MessagingService, swRegistration?: ServiceWorkerRegistration | undefined): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/updateVapidKey.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/updateVapidKey.d.ts
new file mode 100644
index 0000000..293f9e6
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/helpers/updateVapidKey.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @license
+ * Copyright 2020 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 { MessagingService } from '../messaging-service';
+export declare function updateVapidKey(messaging: MessagingService, vapidKey?: string | undefined): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/index.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/index.d.ts
new file mode 100644
index 0000000..ac3c137
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/index.d.ts
@@ -0,0 +1,32 @@
+/**
+ * The Firebase Cloud Messaging Web SDK.
+ * This SDK does not work in a Node.js environment.
+ *
+ * @packageDocumentation
+ */
+/**
+ * @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 '@firebase/installations';
+import { Messaging } from './interfaces/public-types';
+export { getToken, deleteToken, onMessage, getMessagingInWindow as getMessaging } from './api';
+export { isWindowSupported as isSupported } from './api/isSupported';
+export * from './interfaces/public-types';
+declare module '@firebase/component' {
+ interface NameServiceMapping {
+ 'messaging': Messaging;
+ }
+}
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/index.sw.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/index.sw.d.ts
new file mode 100644
index 0000000..58ba7fa
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/index.sw.d.ts
@@ -0,0 +1,26 @@
+/**
+ * @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 '@firebase/installations';
+import { Messaging } from './interfaces/public-types';
+export * from './interfaces/public-types';
+export { onBackgroundMessage, getMessagingInSw as getMessaging, experimentalSetDeliveryMetricsExportedToBigQueryEnabled } from './api';
+export { isSwSupported as isSupported } from './api/isSupported';
+declare module '@firebase/component' {
+ interface NameServiceMapping {
+ 'messaging-sw': Messaging;
+ }
+}
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/app-config.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/app-config.d.ts
new file mode 100644
index 0000000..6d74827
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/app-config.d.ts
@@ -0,0 +1,24 @@
+/**
+ * @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 interface AppConfig {
+ readonly appName: string;
+ readonly projectId: string;
+ readonly apiKey: string;
+ readonly appId: string;
+ /** Only used for old DB migration. */
+ readonly senderId: string;
+}
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/internal-dependencies.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/internal-dependencies.d.ts
new file mode 100644
index 0000000..05e6d28
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/internal-dependencies.d.ts
@@ -0,0 +1,27 @@
+/**
+ * @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.
+ */
+import { AppConfig } from './app-config';
+import { FirebaseAnalyticsInternalName } from '@firebase/analytics-interop-types';
+import { FirebaseApp } from '@firebase/app';
+import { Provider } from '@firebase/component';
+import { _FirebaseInstallationsInternal } from '@firebase/installations';
+export interface FirebaseInternalDependencies {
+ app: FirebaseApp;
+ appConfig: AppConfig;
+ installations: _FirebaseInstallationsInternal;
+ analyticsProvider: Provider<FirebaseAnalyticsInternalName>;
+}
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/internal-message-payload.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/internal-message-payload.d.ts
new file mode 100644
index 0000000..ce7b48c
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/internal-message-payload.d.ts
@@ -0,0 +1,65 @@
+/**
+ * @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.
+ */
+import { CONSOLE_CAMPAIGN_ANALYTICS_ENABLED, CONSOLE_CAMPAIGN_ID, CONSOLE_CAMPAIGN_NAME, CONSOLE_CAMPAIGN_TIME } from '../util/constants';
+export interface MessagePayloadInternal {
+ notification?: NotificationPayloadInternal;
+ data?: unknown;
+ fcmOptions?: FcmOptionsInternal;
+ messageType?: MessageType;
+ isFirebaseMessaging?: boolean;
+ from: string;
+ fcmMessageId: string;
+ productId: number;
+ collapse_key: string;
+}
+interface NotificationAction {
+ action: string;
+ icon?: string;
+ title: string;
+}
+/**
+ * This interface defines experimental properties of NotificationOptions, that are not part of
+ * the interface in the generated DOM types at https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/179bdd84a944933a3103f29c2274c9f5a857b693/baselines/dom.generated.d.ts#L1012
+ * https://developer.mozilla.org/en-US/docs/Web/API/Notification
+ */
+interface NotificationOptionsExperimental extends NotificationOptions {
+ readonly maxActions?: number;
+ readonly actions?: NotificationAction[];
+ readonly image?: string;
+ readonly renotify?: boolean;
+ readonly timestamp?: EpochTimeStamp;
+ readonly vibrate?: VibratePattern;
+}
+export interface NotificationPayloadInternal extends NotificationOptionsExperimental {
+ title: string;
+ click_action?: string;
+ icon?: string;
+}
+export interface FcmOptionsInternal {
+ link?: string;
+ analytics_label?: string;
+}
+export declare enum MessageType {
+ PUSH_RECEIVED = "push-received",
+ NOTIFICATION_CLICKED = "notification-clicked"
+}
+/** Additional data of a message sent from the FN Console. */
+export interface ConsoleMessageData {
+ [CONSOLE_CAMPAIGN_ID]: string;
+ [CONSOLE_CAMPAIGN_TIME]: string;
+ [CONSOLE_CAMPAIGN_NAME]?: string;
+ [CONSOLE_CAMPAIGN_ANALYTICS_ENABLED]?: '1';
+}
+export {};
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/logging-types.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/logging-types.d.ts
new file mode 100644
index 0000000..6e09f66
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/logging-types.d.ts
@@ -0,0 +1,60 @@
+/**
+ * @license
+ * Copyright 2021 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 interface FcmEvent {
+ project_number: string;
+ message_id: string;
+ instance_id: string;
+ message_type: string;
+ sdk_platform: string;
+ package_name: string;
+ collapse_key: string;
+ event: string;
+ analytics_label?: string;
+}
+/**
+ * A LogRequest represents a batched collection of loggable events sent to firelog, each event to be
+ * processed and sent to Sawmill. Defined as in proto/clientanalytics.proto#LogRequest
+ */
+export interface LogRequest {
+ log_source: string;
+ log_event: LogEvent[];
+}
+export interface LogEvent {
+ event_time_ms: string;
+ source_extension_json_proto3: string;
+ compliance_data: ComplianceData;
+}
+export interface ComplianceData {
+ privacy_context: ExternalPrivacyContext;
+}
+export interface ExternalPrivacyContext {
+ prequest: ExternalPRequestContext;
+}
+export interface ExternalPRequestContext {
+ origin_associated_product_id: number;
+}
+export interface LogResponse {
+ nextRequestWaitMillis: number;
+ logResponseDetails: LogResponseDetails[];
+}
+interface LogResponseDetails {
+ responseAction: UserResponse;
+}
+export declare const enum UserResponse {
+ RESPONSE_ACTION_UNKNOWN = "RESPONSE_ACTION_UNKNOWN",
+ RETRY_REQUEST_LATER = "RETRY_REQUEST_LATER",
+ DELETE_REQUEST = "DELETE_REQUEST"
+}
+export {};
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/public-types.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/public-types.d.ts
new file mode 100644
index 0000000..56019e4
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/public-types.d.ts
@@ -0,0 +1,144 @@
+/**
+ * @license
+ * Copyright 2020 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 { FirebaseApp } from '@firebase/app';
+/**
+ * Display notification details. Details are sent through the
+ * {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
+ *
+ * @public
+ */
+export interface NotificationPayload {
+ /**
+ * The notification's title.
+ */
+ title?: string;
+ /**
+ * The notification's body text.
+ */
+ body?: string;
+ /**
+ * The URL of an image that is downloaded on the device and displayed in the notification.
+ */
+ image?: string;
+ /**
+ * The URL to use for the notification's icon. If you don't send this key in the request,
+ * FCM displays the launcher icon specified in your app manifest.
+ */
+ icon?: string;
+}
+/**
+ * Options for features provided by the FCM SDK for Web. See {@link
+ * https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushfcmoptions |
+ * WebpushFcmOptions}.
+ *
+ * @public
+ */
+export interface FcmOptions {
+ /**
+ * The link to open when the user clicks on the notification.
+ */
+ link?: string;
+ /**
+ * The label associated with the message's analytics data.
+ */
+ analyticsLabel?: string;
+}
+/**
+ * Message payload that contains the notification payload that is represented with
+ * {@link NotificationPayload} and the data payload that contains an arbitrary
+ * number of key-value pairs sent by developers through the
+ * {@link https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#notification | Send API}.
+ *
+ * @public
+ */
+export interface MessagePayload {
+ /**
+ * {@inheritdoc NotificationPayload}
+ */
+ notification?: NotificationPayload;
+ /**
+ * Arbitrary key/value payload.
+ */
+ data?: {
+ [key: string]: string;
+ };
+ /**
+ * {@inheritdoc FcmOptions}
+ */
+ fcmOptions?: FcmOptions;
+ /**
+ * The sender of this message.
+ */
+ from: string;
+ /**
+ * The collapse key of the message. See
+ * {@link https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_and_non-collapsible_messages | Non-collapsible and collapsible messages}
+ */
+ collapseKey: string;
+ /**
+ * The message ID of a message.
+ */
+ messageId: string;
+}
+/**
+ * Options for {@link getToken}.
+ *
+ * @public
+ */
+export interface GetTokenOptions {
+ /**
+ * The public server key provided to push services. The key is used to
+ * authenticate push subscribers to receive push messages only from sending servers that hold
+ * the corresponding private key. If it is not provided, a default VAPID key is used. Note that some
+ * push services (Chrome Push Service) require a non-default VAPID key. Therefore, it is recommended
+ * to generate and import a VAPID key for your project with
+ * {@link https://firebase.google.com/docs/cloud-messaging/js/client#configure_web_credentials_in_your_app | Configure Web Credentials with FCM}.
+ * See
+ * {@link https://developers.google.com/web/fundamentals/push-notifications/web-push-protocol | The Web Push Protocol}
+ * for details on web push services.
+ */
+ vapidKey?: string;
+ /**
+ * The service worker registration for receiving push
+ * messaging. If the registration is not provided explicitly, you need to have a
+ * `firebase-messaging-sw.js` at your root location. See
+ * {@link https://firebase.google.com/docs/cloud-messaging/js/client#access_the_registration_token | Access the registration token}
+ * for more details.
+ */
+ serviceWorkerRegistration?: ServiceWorkerRegistration;
+}
+/**
+ * Public interface of the Firebase Cloud Messaging SDK.
+ *
+ * @public
+ */
+export interface Messaging {
+ /**
+ * The {@link @firebase/app#FirebaseApp} this `Messaging` instance is associated with.
+ */
+ app: FirebaseApp;
+}
+/**
+ * @internal
+ */
+export type _FirebaseMessagingName = 'messaging';
+export { NextFn, Observer, Unsubscribe } from '@firebase/util';
+declare module '@firebase/component' {
+ interface NameServiceMapping {
+ 'messaging': Messaging;
+ }
+}
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/token-details.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/token-details.d.ts
new file mode 100644
index 0000000..cab71a3
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/interfaces/token-details.d.ts
@@ -0,0 +1,32 @@
+/**
+ * @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.
+ */
+export interface TokenDetails {
+ token: string;
+ createTime: number;
+ /** Does not exist in Safari since it's not using Push API. */
+ subscriptionOptions?: SubscriptionOptions;
+}
+/**
+ * Additional options and values required by a Push API subscription.
+ */
+export interface SubscriptionOptions {
+ vapidKey: string;
+ swScope: string;
+ endpoint: string;
+ auth: string;
+ p256dh: string;
+}
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/internals/idb-manager.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/internals/idb-manager.d.ts
new file mode 100644
index 0000000..1aeb64f
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/internals/idb-manager.d.ts
@@ -0,0 +1,27 @@
+/**
+ * @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.
+ */
+import { FirebaseInternalDependencies } from '../interfaces/internal-dependencies';
+import { TokenDetails } from '../interfaces/token-details';
+export declare const DATABASE_NAME = "firebase-messaging-database";
+/** Gets record(s) from the objectStore that match the given key. */
+export declare function dbGet(firebaseDependencies: FirebaseInternalDependencies): Promise<TokenDetails | undefined>;
+/** Assigns or overwrites the record for the given key with the given value. */
+export declare function dbSet(firebaseDependencies: FirebaseInternalDependencies, tokenDetails: TokenDetails): Promise<TokenDetails>;
+/** Removes record(s) from the objectStore that match the given key. */
+export declare function dbRemove(firebaseDependencies: FirebaseInternalDependencies): Promise<void>;
+/** Deletes the DB. Useful for tests. */
+export declare function dbDelete(): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/internals/requests.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/internals/requests.d.ts
new file mode 100644
index 0000000..b21909a
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/internals/requests.d.ts
@@ -0,0 +1,35 @@
+/**
+ * @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.
+ */
+import { SubscriptionOptions, TokenDetails } from '../interfaces/token-details';
+import { FirebaseInternalDependencies } from '../interfaces/internal-dependencies';
+export interface ApiResponse {
+ token?: string;
+ error?: {
+ message: string;
+ };
+}
+export interface ApiRequestBody {
+ web: {
+ endpoint: string;
+ p256dh: string;
+ auth: string;
+ applicationPubKey?: string;
+ };
+}
+export declare function requestGetToken(firebaseDependencies: FirebaseInternalDependencies, subscriptionOptions: SubscriptionOptions): Promise<string>;
+export declare function requestUpdateToken(firebaseDependencies: FirebaseInternalDependencies, tokenDetails: TokenDetails): Promise<string>;
+export declare function requestDeleteToken(firebaseDependencies: FirebaseInternalDependencies, token: string): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/internals/token-manager.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/internals/token-manager.d.ts
new file mode 100644
index 0000000..bc4c50b
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/internals/token-manager.d.ts
@@ -0,0 +1,23 @@
+/**
+ * @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.
+ */
+import { MessagingService } from '../messaging-service';
+export declare function getTokenInternal(messaging: MessagingService): Promise<string>;
+/**
+ * This method deletes the token from the database, unsubscribes the token from FCM, and unregisters
+ * the push subscription if it exists.
+ */
+export declare function deleteTokenInternal(messaging: MessagingService): Promise<boolean>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/listeners/sw-listeners.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/listeners/sw-listeners.d.ts
new file mode 100644
index 0000000..576110e
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/listeners/sw-listeners.d.ts
@@ -0,0 +1,21 @@
+/**
+ * @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 { NotificationEvent, PushEvent, PushSubscriptionChangeEvent } from '../util/sw-types';
+import { MessagingService } from '../messaging-service';
+export declare function onSubChange(event: PushSubscriptionChangeEvent, messaging: MessagingService): Promise<void>;
+export declare function onPush(event: PushEvent, messaging: MessagingService): Promise<void>;
+export declare function onNotificationClick(event: NotificationEvent): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/listeners/window-listener.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/listeners/window-listener.d.ts
new file mode 100644
index 0000000..9412f5d
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/listeners/window-listener.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @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 { MessagingService } from '../messaging-service';
+export declare function messageEventListener(messaging: MessagingService, event: MessageEvent): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/messaging-service.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/messaging-service.d.ts
new file mode 100644
index 0000000..c622a47
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/messaging-service.d.ts
@@ -0,0 +1,36 @@
+/**
+ * @license
+ * Copyright 2020 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 { FirebaseApp, _FirebaseService } from '@firebase/app';
+import { MessagePayload, NextFn, Observer } from './interfaces/public-types';
+import { FirebaseAnalyticsInternalName } from '@firebase/analytics-interop-types';
+import { FirebaseInternalDependencies } from './interfaces/internal-dependencies';
+import { LogEvent } from './interfaces/logging-types';
+import { Provider } from '@firebase/component';
+import { _FirebaseInstallationsInternal } from '@firebase/installations';
+export declare class MessagingService implements _FirebaseService {
+ readonly app: FirebaseApp;
+ readonly firebaseDependencies: FirebaseInternalDependencies;
+ swRegistration?: ServiceWorkerRegistration;
+ vapidKey?: string;
+ deliveryMetricsExportedToBigQueryEnabled: boolean;
+ onBackgroundMessageHandler: NextFn<MessagePayload> | Observer<MessagePayload> | null;
+ onMessageHandler: NextFn<MessagePayload> | Observer<MessagePayload> | null;
+ logEvents: LogEvent[];
+ isLogServiceStarted: boolean;
+ constructor(app: FirebaseApp, installations: _FirebaseInstallationsInternal, analyticsProvider: Provider<FirebaseAnalyticsInternalName>);
+ _delete(): Promise<void>;
+}
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/testing/compare-headers.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/compare-headers.d.ts
new file mode 100644
index 0000000..1a768d1
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/compare-headers.d.ts
@@ -0,0 +1,22 @@
+/**
+ * @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.
+ */
+import './setup';
+declare class HeadersWithEntries extends Headers {
+ entries?(): Iterable<[string, string]>;
+}
+export declare function compareHeaders(expectedHeaders: HeadersWithEntries, actualHeaders: HeadersWithEntries): void;
+export {};
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/firebase-dependencies.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/firebase-dependencies.d.ts
new file mode 100644
index 0000000..8b623d4
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/firebase-dependencies.d.ts
@@ -0,0 +1,25 @@
+/**
+ * @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 { FirebaseAnalyticsInternalName } from '@firebase/analytics-interop-types';
+import { FirebaseInternalDependencies } from '../../interfaces/internal-dependencies';
+import { FirebaseOptions } from '@firebase/app';
+import { Provider } from '@firebase/component';
+import { _FirebaseInstallationsInternal } from '@firebase/installations';
+export declare function getFakeFirebaseDependencies(options?: FirebaseOptions): FirebaseInternalDependencies;
+export declare function getFakeApp(options?: FirebaseOptions): any;
+export declare function getFakeInstallations(): _FirebaseInstallationsInternal;
+export declare function getFakeAnalyticsProvider(): Provider<FirebaseAnalyticsInternalName>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/logging-object.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/logging-object.d.ts
new file mode 100644
index 0000000..02d52f5
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/logging-object.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @license
+ * Copyright 2021 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 { LogEvent, LogResponse } from '../../interfaces/logging-types';
+export declare function getFakeLogEvent(): LogEvent;
+export declare function getSuccessResponse(): LogResponse;
+export declare function getFailedResponse(): LogResponse;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/messaging-service.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/messaging-service.d.ts
new file mode 100644
index 0000000..154a0d9
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/messaging-service.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @license
+ * Copyright 2021 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 { MessagingService } from '../../messaging-service';
+export declare function getFakeMessagingService(): MessagingService;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/service-worker.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/service-worker.d.ts
new file mode 100644
index 0000000..11b3a7d
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/service-worker.d.ts
@@ -0,0 +1,83 @@
+/**
+ * @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.
+ */
+import { ExtendableEvent } from '../../util/sw-types';
+export declare function mockServiceWorker(): void;
+export declare function restoreServiceWorker(): void;
+export declare class FakeServiceWorkerRegistration implements ServiceWorkerRegistration {
+ active: null;
+ installing: null;
+ waiting: null;
+ onupdatefound: null;
+ pushManager: FakePushManager;
+ scope: string;
+ navigationPreload: NavigationPreloadManager;
+ updateViaCache: ServiceWorkerUpdateViaCache;
+ getNotifications(): Promise<never[]>;
+ showNotification(): Promise<void>;
+ update(): Promise<void>;
+ unregister(): Promise<boolean>;
+ addEventListener(): void;
+ removeEventListener(): void;
+ dispatchEvent(): boolean;
+}
+declare class FakePushManager implements PushManager {
+ private subscription;
+ permissionState(): Promise<"granted">;
+ getSubscription(): Promise<FakePushSubscription | null>;
+ subscribe(): Promise<FakePushSubscription>;
+}
+export declare class FakePushSubscription implements PushSubscription {
+ endpoint: string;
+ expirationTime: number;
+ auth: string;
+ p256: string;
+ getKey(name: PushEncryptionKeyName): Uint8Array;
+ unsubscribe(): Promise<boolean>;
+ toJSON: () => PushSubscriptionJSON;
+ options: PushSubscriptionOptions;
+}
+/**
+ * Most of the fields in here are unused / deprecated. They are only added here to match the TS
+ * Event interface.
+ */
+export declare class FakeEvent implements ExtendableEvent {
+ type: string;
+ NONE: 0;
+ AT_TARGET: 2;
+ BUBBLING_PHASE: 3;
+ CAPTURING_PHASE: 1;
+ bubbles: boolean;
+ cancelable: boolean;
+ composed: boolean;
+ timeStamp: number;
+ isTrusted: boolean;
+ eventPhase: 0;
+ target: null;
+ currentTarget: null;
+ srcElement: null;
+ cancelBubble: boolean;
+ defaultPrevented: boolean;
+ returnValue: boolean;
+ preventDefault(): void;
+ stopPropagation(): void;
+ stopImmediatePropagation(): void;
+ initEvent(): void;
+ waitUntil(): void;
+ composedPath(): never[];
+ constructor(type: string, options?: EventInit);
+}
+export {};
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/token-details.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/token-details.d.ts
new file mode 100644
index 0000000..27d7257
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/fakes/token-details.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @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.
+ */
+import { TokenDetails } from '../../interfaces/token-details';
+export declare function getFakeTokenDetails(): TokenDetails;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/testing/setup.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/setup.d.ts
new file mode 100644
index 0000000..1c93d90
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/setup.d.ts
@@ -0,0 +1,17 @@
+/**
+ * @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 {};
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/testing/sinon-types.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/sinon-types.d.ts
new file mode 100644
index 0000000..0466b57
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/testing/sinon-types.d.ts
@@ -0,0 +1,19 @@
+/**
+ * @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.
+ */
+import { SinonSpy, SinonStub } from 'sinon';
+export type Stub<T extends (...args: any) => any> = SinonStub<Parameters<T>, ReturnType<T>>;
+export type Spy<T extends (...args: any) => any> = SinonSpy<Parameters<T>, ReturnType<T>>;
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/tsdoc-metadata.json b/frontend-old/node_modules/@firebase/messaging/dist/src/tsdoc-metadata.json
new file mode 100644
index 0000000..6af1f6a
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/tsdoc-metadata.json
@@ -0,0 +1,11 @@
+// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
+// It should be published with your NPM package. It should not be tracked by Git.
+{
+ "tsdocVersion": "0.12",
+ "toolPackages": [
+ {
+ "packageName": "@microsoft/api-extractor",
+ "packageVersion": "0.1.2"
+ }
+ ]
+}
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/src/util/constants.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/util/constants.d.ts
new file mode 100644
index 0000000..f5a2358
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/util/constants.d.ts
@@ -0,0 +1,40 @@
+/**
+ * @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/src/util/errors.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/util/errors.d.ts
new file mode 100644
index 0000000..e985fff
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/util/errors.d.ts
@@ -0,0 +1,57 @@
+/**
+ * @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/src/util/sw-types.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/src/util/sw-types.d.ts
new file mode 100644
index 0000000..b7abd9a
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/messaging/dist/src/util/sw-types.d.ts
@@ -0,0 +1,90 @@
+/**
+ * @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 {};