mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
1 line
No EOL
5.1 KiB
Text
1 line
No EOL
5.1 KiB
Text
{"version":3,"file":"types-CVC8uzLj.chunk.mjs","sources":["../build/frontend/apps/files_external/src/types.ts"],"sourcesContent":["/*!\n * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { mdiCheckNetworkOutline, mdiCloseNetworkOutline, mdiHelpNetworkOutline, mdiNetworkOffOutline, mdiNetworkOutline } from '@mdi/js'\nimport { t } from '@nextcloud/l10n'\n\nexport const Visibility = Object.freeze({\n\tNone: 0,\n\tPersonal: 1,\n\tAdmin: 2,\n\tDefault: 3,\n})\n\nexport const ConfigurationType = Object.freeze({\n\tString: 0,\n\tBoolean: 1,\n\tPassword: 2,\n})\n\nexport const ConfigurationFlag = Object.freeze({\n\tNone: 0,\n\tOptional: 1,\n\tUserProvided: 2,\n\tHidden: 4,\n})\n\nexport const StorageStatus = Object.freeze({\n\tSuccess: 0,\n\tError: 1,\n\tIndeterminate: 2,\n\tIncompleteConf: 3,\n\tUnauthorized: 4,\n\tTimeout: 5,\n\tNetworkError: 6,\n})\n\nexport const MountOptionsCheckFilesystem = Object.freeze({\n\t/**\n\t * Never check the underlying filesystem for updates\n\t */\n\tNever: 0,\n\n\t/**\n\t * check the underlying filesystem for updates once every request for each file\n\t */\n\tOncePerRequest: 1,\n\n\t/**\n\t * Always check the underlying filesystem for updates\n\t */\n\tAlways: 2,\n})\n\nexport const StorageStatusIcons = Object.freeze({\n\t[StorageStatus.Success]: mdiCheckNetworkOutline,\n\t[StorageStatus.Error]: mdiCloseNetworkOutline,\n\t[StorageStatus.Indeterminate]: mdiNetworkOutline,\n\t[StorageStatus.IncompleteConf]: mdiHelpNetworkOutline,\n\t[StorageStatus.Unauthorized]: mdiCloseNetworkOutline,\n\t[StorageStatus.Timeout]: mdiNetworkOffOutline,\n\t[StorageStatus.NetworkError]: mdiNetworkOffOutline,\n})\n\nexport const StorageStatusMessage = Object.freeze({\n\t[StorageStatus.Success]: t('files_external', 'Connected'),\n\t[StorageStatus.Error]: t('files_external', 'Error'),\n\t[StorageStatus.Indeterminate]: t('files_external', 'Indeterminate'),\n\t[StorageStatus.IncompleteConf]: t('files_external', 'Incomplete configuration'),\n\t[StorageStatus.Unauthorized]: t('files_external', 'Unauthorized'),\n\t[StorageStatus.Timeout]: t('files_external', 'Timeout'),\n\t[StorageStatus.NetworkError]: t('files_external', 'Network error'),\n})\n\nexport interface IConfigurationOption {\n\t/**\n\t * Bitmask of ConfigurationFlag\n\t *\n\t * @see ConfigurationFlag\n\t */\n\tflags: number\n\t/**\n\t * Type of the configuration option\n\t *\n\t * @see ConfigurationType\n\t */\n\ttype: typeof ConfigurationType[keyof typeof ConfigurationType]\n\t/**\n\t * Visible name of the configuration option\n\t */\n\tvalue: string\n\t/**\n\t * Optional tooltip for the configuration option\n\t */\n\ttooltip?: string\n}\n\nexport interface IAuthMechanism {\n\tname: string\n\tidentifier: string\n\tidentifierAliases: string[]\n\tscheme: string\n\t/**\n\t * The visibility of this auth mechanism\n\t *\n\t * @see Visibility\n\t */\n\tvisibility: number\n\tconfiguration: Record<string, IConfigurationOption>\n}\n\nexport interface IBackend {\n\tname: string\n\tidentifier: string\n\tidentifierAliases: string[]\n\tauthSchemes: Record<string, boolean>\n\tpriority: number\n\tconfiguration: Record<string, IConfigurationOption>\n}\n\nexport interface IMountOptions {\n\tencrypt: boolean\n\tpreviews: boolean\n\tenable_sharing: boolean\n\t/**\n\t * @see MountOptionsCheckFilesystem\n\t */\n\tfilesystem_check_changes: typeof MountOptionsCheckFilesystem[keyof typeof MountOptionsCheckFilesystem]\n\tencoding_compatibility: boolean\n\treadonly: boolean\n}\n\nexport interface IStorage {\n\tid?: number\n\n\tmountPoint: string\n\tbackend: string\n\tauthMechanism: string\n\tbackendOptions: Record<string, string | boolean>\n\tpriority?: number\n\tapplicableUsers?: string[]\n\tapplicableGroups?: string[]\n\tmountOptions?: Record<string, unknown>\n\t/**\n\t * @see StorageStatus\n\t */\n\tstatus?: typeof StorageStatus[keyof typeof StorageStatus]\n\tstatusMessage?: string\n\tuserProvided: boolean\n\ttype: 'personal' | 'system'\n}\n"],"names":["ConfigurationType","ConfigurationFlag","StorageStatus","MountOptionsCheckFilesystem","StorageStatusIcons","mdiCheckNetworkOutline","mdiCloseNetworkOutline","mdiNetworkOutline","mdiHelpNetworkOutline","mdiNetworkOffOutline","StorageStatusMessage","t"],"mappings":"uIAeO,MAAMA,EAAoB,OAAO,OAAO,CAC9C,OAAQ,EACR,QAAS,EACT,SAAU,CACX,CAAC,EAEYC,EAAoB,OAAO,OAAO,CAC9C,KAAM,EACN,SAAU,EACV,aAAc,EACd,OAAQ,CACT,CAAC,EAEYC,EAAgB,OAAO,OAAO,CAC1C,QAAS,EACT,MAAO,EACP,cAAe,EACf,eAAgB,EAChB,aAAc,EACd,QAAS,EACT,aAAc,CACf,CAAC,EAEYC,EAA8B,OAAO,OAAO,CAIxD,MAAO,EAKP,eAAgB,EAKhB,OAAQ,CACT,CAAC,EAEYC,EAAqB,OAAO,OAAO,CAC/C,CAACF,EAAc,OAAO,EAAGG,EACzB,CAACH,EAAc,KAAK,EAAGI,EACvB,CAACJ,EAAc,aAAa,EAAGK,EAC/B,CAACL,EAAc,cAAc,EAAGM,EAChC,CAACN,EAAc,YAAY,EAAGI,EAC9B,CAACJ,EAAc,OAAO,EAAGO,EACzB,CAACP,EAAc,YAAY,EAAGO,CAC/B,CAAC,EAEYC,EAAuB,OAAO,OAAO,CACjD,CAACR,EAAc,OAAO,EAAGS,EAAE,iBAAkB,WAAW,EACxD,CAACT,EAAc,KAAK,EAAGS,EAAE,iBAAkB,OAAO,EAClD,CAACT,EAAc,aAAa,EAAGS,EAAE,iBAAkB,eAAe,EAClE,CAACT,EAAc,cAAc,EAAGS,EAAE,iBAAkB,0BAA0B,EAC9E,CAACT,EAAc,YAAY,EAAGS,EAAE,iBAAkB,cAAc,EAChE,CAACT,EAAc,OAAO,EAAGS,EAAE,iBAAkB,SAAS,EACtD,CAACT,EAAc,YAAY,EAAGS,EAAE,iBAAkB,eAAe,CAClE,CAAC"} |