Initial Commit
This commit is contained in:
17
node_modules/@firebase/installations/dist/src/helpers/buffer-to-base64-url-safe.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/installations/dist/src/helpers/buffer-to-base64-url-safe.d.ts
generated
vendored
Normal file
@@ -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 declare function bufferToBase64UrlSafe(array: Uint8Array): string;
|
||||
19
node_modules/@firebase/installations/dist/src/helpers/extract-app-config.d.ts
generated
vendored
Normal file
19
node_modules/@firebase/installations/dist/src/helpers/extract-app-config.d.ts
generated
vendored
Normal file
@@ -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/installation-impl';
|
||||
export declare function extractAppConfig(app: FirebaseApp): AppConfig;
|
||||
25
node_modules/@firebase/installations/dist/src/helpers/fid-changed.d.ts
generated
vendored
Normal file
25
node_modules/@firebase/installations/dist/src/helpers/fid-changed.d.ts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @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 '../interfaces/installation-impl';
|
||||
import { IdChangeCallbackFn } from '../api';
|
||||
/**
|
||||
* Calls the onIdChange callbacks with the new FID value, and broadcasts the
|
||||
* change to other tabs.
|
||||
*/
|
||||
export declare function fidChanged(appConfig: AppConfig, fid: string): void;
|
||||
export declare function addCallback(appConfig: AppConfig, callback: IdChangeCallbackFn): void;
|
||||
export declare function removeCallback(appConfig: AppConfig, callback: IdChangeCallbackFn): void;
|
||||
23
node_modules/@firebase/installations/dist/src/helpers/generate-fid.d.ts
generated
vendored
Normal file
23
node_modules/@firebase/installations/dist/src/helpers/generate-fid.d.ts
generated
vendored
Normal file
@@ -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.
|
||||
*/
|
||||
export declare const VALID_FID_PATTERN: RegExp;
|
||||
export declare const INVALID_FID = "";
|
||||
/**
|
||||
* Generates a new FID using random values from Web Crypto API.
|
||||
* Returns an empty string if FID generation fails for any reason.
|
||||
*/
|
||||
export declare function generateFid(): string;
|
||||
28
node_modules/@firebase/installations/dist/src/helpers/get-installation-entry.d.ts
generated
vendored
Normal file
28
node_modules/@firebase/installations/dist/src/helpers/get-installation-entry.d.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* @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 { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
|
||||
import { InstallationEntry, RegisteredInstallationEntry } from '../interfaces/installation-entry';
|
||||
export interface InstallationEntryWithRegistrationPromise {
|
||||
installationEntry: InstallationEntry;
|
||||
/** Exist iff the installationEntry is not registered. */
|
||||
registrationPromise?: Promise<RegisteredInstallationEntry>;
|
||||
}
|
||||
/**
|
||||
* Updates and returns the InstallationEntry from the database.
|
||||
* Also triggers a registration request if it is necessary and possible.
|
||||
*/
|
||||
export declare function getInstallationEntry(installations: FirebaseInstallationsImpl): Promise<InstallationEntryWithRegistrationPromise>;
|
||||
32
node_modules/@firebase/installations/dist/src/helpers/idb-manager.d.ts
generated
vendored
Normal file
32
node_modules/@firebase/installations/dist/src/helpers/idb-manager.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @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 '../interfaces/installation-impl';
|
||||
import { InstallationEntry } from '../interfaces/installation-entry';
|
||||
/** Gets record(s) from the objectStore that match the given key. */
|
||||
export declare function get(appConfig: AppConfig): Promise<InstallationEntry | undefined>;
|
||||
/** Assigns or overwrites the record for the given key with the given value. */
|
||||
export declare function set<ValueType extends InstallationEntry>(appConfig: AppConfig, value: ValueType): Promise<ValueType>;
|
||||
/** Removes record(s) from the objectStore that match the given key. */
|
||||
export declare function remove(appConfig: AppConfig): Promise<void>;
|
||||
/**
|
||||
* Atomically updates a record with the result of updateFn, which gets
|
||||
* called with the current value. If newValue is undefined, the record is
|
||||
* deleted instead.
|
||||
* @return Updated value
|
||||
*/
|
||||
export declare function update<ValueType extends InstallationEntry | undefined>(appConfig: AppConfig, updateFn: (previousValue: InstallationEntry | undefined) => ValueType): Promise<ValueType>;
|
||||
export declare function clear(): Promise<void>;
|
||||
25
node_modules/@firebase/installations/dist/src/helpers/refresh-auth-token.d.ts
generated
vendored
Normal file
25
node_modules/@firebase/installations/dist/src/helpers/refresh-auth-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @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 { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
|
||||
import { CompletedAuthToken } from '../interfaces/installation-entry';
|
||||
/**
|
||||
* Returns a valid authentication token for the installation. Generates a new
|
||||
* token if one doesn't exist, is expired or about to expire.
|
||||
*
|
||||
* Should only be called if the Firebase Installation is registered.
|
||||
*/
|
||||
export declare function refreshAuthToken(installations: FirebaseInstallationsImpl, forceRefresh?: boolean): Promise<CompletedAuthToken>;
|
||||
Reference in New Issue
Block a user