diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-09 11:15:19 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-09 11:15:19 +0800 |
| commit | 8eff962cab608341a6f2fedc640a0e32d96f26e2 (patch) | |
| tree | 05534d1a720ddc3691d346c69b4972555820a061 /frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers | |
pain
Diffstat (limited to 'frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers')
12 files changed, 269 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/array-base64-translator.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/array-base64-translator.d.ts new file mode 100644 index 0000000..27e3eab --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/externalizePayload.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/externalizePayload.d.ts new file mode 100644 index 0000000..efc668b --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/extract-app-config.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/extract-app-config.d.ts new file mode 100644 index 0000000..306196f --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/is-console-message.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/is-console-message.d.ts new file mode 100644 index 0000000..3e53ab1 --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/logToFirelog.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/logToFirelog.d.ts new file mode 100644 index 0000000..64f04cc --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/logToScion.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/logToScion.d.ts new file mode 100644 index 0000000..400d38c --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/migrate-old-database.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/migrate-old-database.d.ts new file mode 100644 index 0000000..f1e879b --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/register.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/register.d.ts new file mode 100644 index 0000000..0efe2cd --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/registerDefaultSw.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/registerDefaultSw.d.ts new file mode 100644 index 0000000..fe0618e --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/sleep.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/sleep.d.ts new file mode 100644 index 0000000..f51e6cd --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/updateSwReg.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/updateSwReg.d.ts new file mode 100644 index 0000000..6e461e6 --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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/esm/src/helpers/updateVapidKey.d.ts b/frontend-old/node_modules/@firebase/messaging/dist/esm/src/helpers/updateVapidKey.d.ts new file mode 100644 index 0000000..293f9e6 --- /dev/null +++ b/frontend-old/node_modules/@firebase/messaging/dist/esm/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>; |
