UNPKG

@azure/storage-file-share

Version:
165 lines 4.7 kB
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.PathStylePorts = exports.StorageFileLoggingAllowedQueryParameters = exports.StorageFileLoggingAllowedHeaderNames = exports.FileAttributesNone = exports.FileAttributesPreserve = exports.ETagAny = exports.ETagNone = exports.HeaderConstants = exports.HttpUrlConnection = exports.URLConstants = exports.StorageOAuthScopes = exports.REQUEST_TIMEOUT = exports.DEFAULT_HIGH_LEVEL_CONCURRENCY = exports.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = exports.FILE_RANGE_MAX_SIZE_BYTES = exports.FILE_MAX_SIZE_BYTES = exports.SERVICE_VERSION = exports.SDK_VERSION = void 0; exports.SDK_VERSION = "12.30.0"; exports.SERVICE_VERSION = "2026-02-06"; exports.FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB exports.FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB exports.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5; exports.DEFAULT_HIGH_LEVEL_CONCURRENCY = 5; exports.REQUEST_TIMEOUT = 100 * 1000; // In ms /** * The OAuth scope to use with Azure Storage. */ exports.StorageOAuthScopes = "https://storage.azure.com/.default"; exports.URLConstants = { Parameters: { FORCE_BROWSER_NO_CACHE: "_", SHARE_SNAPSHOT: "sharesnapshot", SIGNATURE: "sig", TIMEOUT: "timeout", }, }; exports.HttpUrlConnection = { HTTP_CONFLICT: 409, HTTP_NOT_FOUND: 404, HTTP_PRECON_FAILED: 412, HTTP_RANGE_NOT_SATISFIABLE: 416, }; exports.HeaderConstants = { AUTHORIZATION: "authorization", AUTHORIZATION_SCHEME: "Bearer", CONTENT_ENCODING: "content-encoding", CONTENT_LANGUAGE: "content-language", CONTENT_LENGTH: "content-length", CONTENT_MD5: "content-md5", CONTENT_TYPE: "content-type", COOKIE: "Cookie", DATE: "date", IF_MATCH: "if-match", IF_MODIFIED_SINCE: "if-modified-since", IF_NONE_MATCH: "if-none-match", IF_UNMODIFIED_SINCE: "if-unmodified-since", PREFIX_FOR_STORAGE: "x-ms-", RANGE: "Range", USER_AGENT: "User-Agent", X_MS_CLIENT_REQUEST_ID: "x-ms-client-request-id", X_MS_COPY_SOURCE: "x-ms-copy-source", X_MS_CopySourceErrorCode: "x-ms-copy-source-error-code", X_MS_DATE: "x-ms-date", }; exports.ETagNone = ""; exports.ETagAny = "*"; exports.FileAttributesPreserve = "Preserve"; exports.FileAttributesNone = "None"; exports.StorageFileLoggingAllowedHeaderNames = [ "Access-Control-Allow-Origin", "Cache-Control", "Content-Length", "Content-Type", "Date", "Request-Id", "traceparent", "Transfer-Encoding", "User-Agent", "x-ms-client-request-id", "x-ms-date", "x-ms-error-code", "x-ms-request-id", "x-ms-return-client-request-id", "x-ms-version", "Accept-Ranges", "Content-Disposition", "Content-Encoding", "Content-Language", "Content-MD5", "Content-Range", "ETag", "Last-Modified", "Server", "Vary", "x-ms-content-crc64", "x-ms-copy-action", "x-ms-copy-completion-time", "x-ms-copy-id", "x-ms-copy-progress", "x-ms-copy-status", "x-ms-has-immutability-policy", "x-ms-has-legal-hold", "x-ms-lease-state", "x-ms-lease-status", "x-ms-range", "x-ms-request-server-encrypted", "x-ms-server-encrypted", "x-ms-snapshot", "x-ms-source-range", "x-ms-cache-control", "x-ms-content-disposition", "x-ms-content-encoding", "x-ms-content-language", "x-ms-content-length", "x-ms-content-md5", "x-ms-content-type", "x-ms-copy-source-error-code", "x-ms-copy-source-status-code", "x-ms-file-attributes", "x-ms-file-change-time", "x-ms-file-creation-time", "x-ms-file-id", "x-ms-file-last-write-time", "x-ms-file-parent-id", "x-ms-handle-id", "x-ms-number-of-handles-closed", "x-ms-recursive", "x-ms-share-quota", "x-ms-type", "x-ms-write", ]; exports.StorageFileLoggingAllowedQueryParameters = [ "comp", "maxresults", "rscc", "rscd", "rsce", "rscl", "rsct", "se", "si", "sip", "sp", "spr", "sr", "srt", "ss", "st", "sv", "copyid", "restype", ]; /// List of ports used for path style addressing. /// Path style addressing means that storage account is put in URI's Path segment in instead of in host. exports.PathStylePorts = [ "10000", "10001", "10002", "10003", "10004", "10100", "10101", "10102", "10103", "10104", "11000", "11001", "11002", "11003", "11004", "11100", "11101", "11102", "11103", "11104", ]; //# sourceMappingURL=constants.js.map