diff options
Diffstat (limited to 'frontend-old/node_modules/@firebase/storage-types')
3 files changed, 0 insertions, 234 deletions
diff --git a/frontend-old/node_modules/@firebase/storage-types/README.md b/frontend-old/node_modules/@firebase/storage-types/README.md deleted file mode 100644 index e5b6411..0000000 --- a/frontend-old/node_modules/@firebase/storage-types/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# @firebase/storage-types - -**This package is not intended for direct usage, and should only be used via the officially supported [firebase](https://www.npmjs.com/package/firebase) package.** diff --git a/frontend-old/node_modules/@firebase/storage-types/index.d.ts b/frontend-old/node_modules/@firebase/storage-types/index.d.ts deleted file mode 100644 index e54c7a6..0000000 --- a/frontend-old/node_modules/@firebase/storage-types/index.d.ts +++ /dev/null @@ -1,202 +0,0 @@ -/** - * @license - * Copyright 2017 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { FirebaseApp } from '@firebase/app-types'; -import { - CompleteFn, - EmulatorMockTokenOptions, - FirebaseError, - NextFn, - Unsubscribe -} from '@firebase/util'; - -export interface FullMetadata extends UploadMetadata { - bucket: string; - fullPath: string; - generation: string; - metageneration: string; - name: string; - size: number; - timeCreated: string; - updated: string; -} - -export interface Reference { - bucket: string; - child(path: string): Reference; - delete(): Promise<void>; - fullPath: string; - getDownloadURL(): Promise<string>; - getMetadata(): Promise<FullMetadata>; - name: string; - parent: Reference | null; - put( - data: Blob | Uint8Array | ArrayBuffer, - metadata?: UploadMetadata - ): UploadTask; - putString( - data: string, - format?: StringFormat, - metadata?: UploadMetadata - ): UploadTask; - root: Reference; - storage: FirebaseStorage; - toString(): string; - updateMetadata(metadata: SettableMetadata): Promise<FullMetadata>; - listAll(): Promise<ListResult>; - list(options?: ListOptions): Promise<ListResult>; -} - -export interface ListResult { - prefixes: Reference[]; - items: Reference[]; - nextPageToken: string | null; -} - -export interface ListOptions { - maxResults?: number | null; - pageToken?: string | null; -} - -export interface SettableMetadata { - cacheControl?: string | null; - contentDisposition?: string | null; - contentEncoding?: string | null; - contentLanguage?: string | null; - contentType?: string | null; - customMetadata?: { - [/* warning: coerced from ? */ key: string]: string; - } | null; -} - -export type StringFormat = string; -export type TaskEvent = string; -export type TaskState = string; - -export interface UploadMetadata extends SettableMetadata { - md5Hash?: string | null; -} - -export interface StorageObserver<T> { - next?: NextFn<T> | null; - error?: (error: FirebaseStorageError) => void | null; - complete?: CompleteFn | null; -} - -export enum StorageErrorCode { - UNKNOWN = 'unknown', - OBJECT_NOT_FOUND = 'object-not-found', - BUCKET_NOT_FOUND = 'bucket-not-found', - PROJECT_NOT_FOUND = 'project-not-found', - QUOTA_EXCEEDED = 'quota-exceeded', - UNAUTHENTICATED = 'unauthenticated', - UNAUTHORIZED = 'unauthorized', - UNAUTHORIZED_APP = 'unauthorized-app', - RETRY_LIMIT_EXCEEDED = 'retry-limit-exceeded', - INVALID_CHECKSUM = 'invalid-checksum', - CANCELED = 'canceled', - INVALID_EVENT_NAME = 'invalid-event-name', - INVALID_URL = 'invalid-url', - INVALID_DEFAULT_BUCKET = 'invalid-default-bucket', - NO_DEFAULT_BUCKET = 'no-default-bucket', - CANNOT_SLICE_BLOB = 'cannot-slice-blob', - SERVER_FILE_WRONG_SIZE = 'server-file-wrong-size', - NO_DOWNLOAD_URL = 'no-download-url', - INVALID_ARGUMENT = 'invalid-argument', - INVALID_ARGUMENT_COUNT = 'invalid-argument-count', - APP_DELETED = 'app-deleted', - INVALID_ROOT_OPERATION = 'invalid-root-operation', - INVALID_FORMAT = 'invalid-format', - INTERNAL_ERROR = 'internal-error', - UNSUPPORTED_ENVIRONMENT = 'unsupported-environment' -} - -export interface FirebaseStorageError extends FirebaseError { - /** - * Stores custom error data unique to the `StorageError`. - */ - customData: { - serverResponse: string | null; - }; - - get status(): number; - set status(status: number); - /** - * Compares a `StorageErrorCode` against this error's code, filtering out the prefix. - */ - _codeEquals(code: StorageErrorCode): boolean; - /** - * Optional response message that was added by the server. - */ - get serverResponse(): null | string; - set serverResponse(serverResponse: string | null); -} -export interface UploadTask { - cancel(): boolean; - catch(onRejected: (error: FirebaseStorageError) => any): Promise<any>; - on( - event: TaskEvent, - nextOrObserver?: - | StorageObserver<UploadTaskSnapshot> - | null - | ((snapshot: UploadTaskSnapshot) => any), - error?: ((a: FirebaseStorageError) => any) | null, - complete?: Unsubscribe | null - ): Function; - pause(): boolean; - resume(): boolean; - snapshot: UploadTaskSnapshot; - then( - onFulfilled?: ((snapshot: UploadTaskSnapshot) => any) | null, - onRejected?: ((error: FirebaseStorageError) => any) | null - ): Promise<any>; -} - -export interface UploadTaskSnapshot { - bytesTransferred: number; - metadata: FullMetadata; - ref: Reference; - state: TaskState; - task: UploadTask; - totalBytes: number; -} - -export class FirebaseStorage { - private constructor(); - - app: FirebaseApp; - maxOperationRetryTime: number; - maxUploadRetryTime: number; - ref(path?: string): Reference; - refFromURL(url: string): Reference; - setMaxOperationRetryTime(time: number): void; - setMaxUploadRetryTime(time: number): void; - - useEmulator( - host: string, - port: number, - options?: { - mockUserToken?: EmulatorMockTokenOptions | string; - } - ): void; -} - -declare module '@firebase/component' { - interface NameServiceMapping { - 'storage-compat': FirebaseStorage; - } -} diff --git a/frontend-old/node_modules/@firebase/storage-types/package.json b/frontend-old/node_modules/@firebase/storage-types/package.json deleted file mode 100644 index 5addb80..0000000 --- a/frontend-old/node_modules/@firebase/storage-types/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "@firebase/storage-types", - "version": "0.8.3", - "description": "@firebase/storage Types", - "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", - "license": "Apache-2.0", - "scripts": { - "test": "tsc", - "test:ci": "node ../../scripts/run_tests_in_ci.js" - }, - "files": [ - "index.d.ts" - ], - "peerDependencies": { - "@firebase/app-types": "0.x", - "@firebase/util": "1.x" - }, - "repository": { - "directory": "packages/storage-types", - "type": "git", - "url": "git+https://github.com/firebase/firebase-js-sdk.git" - }, - "bugs": { - "url": "https://github.com/firebase/firebase-js-sdk/issues" - }, - "devDependencies": { - "typescript": "5.5.4" - } -} |
