diff --git a/package-lock.json b/package-lock.json index cf1c7bcaa..f1293ea9b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "@nextcloud/moment": "^1.3.1", "@nextcloud/paths": "^2.2.1", "@nextcloud/router": "^3.0.1", - "@nextcloud/sharing": "^0.2.2", + "@nextcloud/sharing": "^0.2.3", "@nextcloud/vue": "^8.18.0", "@shortcm/qr-image": "^9.0.4", "@vueuse/core": "^11.0.3", diff --git a/package.json b/package.json index dfb660bd4..fd312dc7b 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@nextcloud/moment": "^1.3.1", "@nextcloud/paths": "^2.2.1", "@nextcloud/router": "^3.0.1", - "@nextcloud/sharing": "^0.2.2", + "@nextcloud/sharing": "^0.2.3", "@nextcloud/vue": "^8.18.0", "@shortcm/qr-image": "^9.0.4", "@vueuse/core": "^11.0.3", diff --git a/src/models/constants.d.ts b/src/models/constants.d.ts index b6634927e..e69bfbbde 100644 --- a/src/models/constants.d.ts +++ b/src/models/constants.d.ts @@ -2,7 +2,7 @@ * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ -import { Type } from '@nextcloud/sharing'; +import { ShareType } from '@nextcloud/sharing'; export type DefaultGroup = string; export type DefaultChart = string; export type CircleConfig = number; @@ -32,7 +32,7 @@ export declare const PUBLIC_CIRCLE_CONFIG: { export declare const CIRCLES_MEMBER_GROUPING: { id: string; label: string; - share: Type; + share: ShareType; type: number; }[]; export declare const SHARES_TYPES_MEMBER_MAP: {}; diff --git a/src/models/constants.ts b/src/models/constants.ts index 27ebd5c1d..38d2e1eca 100644 --- a/src/models/constants.ts +++ b/src/models/constants.ts @@ -5,7 +5,7 @@ /// import { translate as t } from '@nextcloud/l10n' -import { Type } from '@nextcloud/sharing' +import { ShareType } from '@nextcloud/sharing' export type DefaultGroup = string export type DefaultChart = string @@ -115,47 +115,47 @@ export const PUBLIC_CIRCLE_CONFIG = { // sorting of the members list export const CIRCLES_MEMBER_GROUPING = [ { - id: `picker-${Type.SHARE_TYPE_USER}`, + id: `picker-${ShareType.User}`, label: t('contacts', 'users'), - share: Type.SHARE_TYPE_USER, + share: ShareType.User, type: MEMBER_TYPE_USER, }, { - id: `picker-${Type.SHARE_TYPE_GROUP}`, + id: `picker-${ShareType.Group}`, label: t('contacts', 'groups'), - share: Type.SHARE_TYPE_GROUP, + share: ShareType.Group, type: MEMBER_TYPE_GROUP, }, // TODO: implement federated // { - // id: `picker-${Type.SHARE_TYPE_REMOTE}`, + // id: `picker-${ShareType.Remote}`, // label: t('contacts', 'federated users'), - // share: Type.SHARE_TYPE_REMOTE, + // share: ShareType.Remote, // type: MEMBER_TYPE_USER // }, // { - // id: `picker-${Type.SHARE_TYPE_REMOTE_GROUP}`, + // id: `picker-${ShareType.RemoteGroup}`, // label: t('contacts', 'federated groups'), - // share: Type.SHARE_TYPE_REMOTE_GROUP, + // share: ShareType.RemoteGroup, // type: MEMBER_TYPE_GROUP // }, { - id: `picker-${Type.SHARE_TYPE_CIRCLE}`, + id: `picker-${ShareType.Team}`, label: t('contacts', 'teams'), - share: Type.SHARE_TYPE_CIRCLE, + share: ShareType.Team, type: MEMBER_TYPE_CIRCLE, }, { - id: `picker-${Type.SHARE_TYPE_EMAIL}`, + id: `picker-${ShareType.Email}`, label: t('contacts', 'email addresses'), - share: Type.SHARE_TYPE_EMAIL, + share: ShareType.Email, type: MEMBER_TYPE_MAIL, }, // TODO: implement SHARE_TYPE_CONTACT { id: 'picker-contact', label: t('contacts', 'teams'), - share: Type.SHARE_TYPE_EMAIL, + share: ShareType.Email, type: MEMBER_TYPE_CONTACT, }, ]