@zextras/carbonio-shell-ui 13.0.0-devel.1763543674093 → 13.0.0-devel.1764238584212
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/boot/app/app-dependant-exports.d.ts +0 -2
- package/lib/boot/app/app-dependant-exports.js +0 -2
- package/lib/boot/app/app-dependant-exports.js.map +1 -1
- package/lib/lib.d.ts +0 -4
- package/lib/lib.js.map +1 -1
- package/lib/types/network/index.d.ts +2 -72
- package/lib/types/network/index.js.map +1 -1
- package/package.json +1 -1
- package/lib/network/edit-settings.d.ts +0 -26
- package/lib/network/edit-settings.js +0 -156
- package/lib/network/edit-settings.js.map +0 -1
- package/lib/types/network/entities.d.ts +0 -47
- package/lib/types/network/entities.js +0 -3
- package/lib/types/network/entities.js.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getEditSettingsForApp } from '../../network/edit-settings';
|
|
2
1
|
import type { AppActions as StoreAppSetters } from '../../store/app';
|
|
3
2
|
import { getAppHook, getApp, getAppContext, getAppContextHook } from '../../store/app';
|
|
4
3
|
import { addBoard } from '../../store/boards';
|
|
@@ -14,7 +13,6 @@ export type AppDependantExports = {
|
|
|
14
13
|
addPrimaryAccessoryView: (data: Partial<PrimaryAccessoryView>) => ReturnType<StoreAppSetters['addPrimaryAccessoryView']>;
|
|
15
14
|
addSecondaryAccessoryView: (data: Partial<SecondaryAccessoryView>) => ReturnType<StoreAppSetters['addSecondaryAccessoryView']>;
|
|
16
15
|
registerComponents: ReturnType<IntegrationActions['registerComponents']>;
|
|
17
|
-
editSettings: ReturnType<typeof getEditSettingsForApp>;
|
|
18
16
|
getI18n: ReturnType<typeof getI18n>;
|
|
19
17
|
t: ReturnType<typeof getTFunction>;
|
|
20
18
|
useAppContext: ReturnType<typeof getAppContextHook>;
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.getAppDependantExports = void 0;
|
|
9
|
-
const edit_settings_1 = require("../../network/edit-settings");
|
|
10
9
|
const app_1 = require("../../store/app");
|
|
11
10
|
const utils_1 = require("../../store/app/utils");
|
|
12
11
|
const boards_1 = require("../../store/boards");
|
|
@@ -24,7 +23,6 @@ const getAppDependantExports = (pkg) => {
|
|
|
24
23
|
addPrimaryAccessoryView: (data) => appStore.addPrimaryAccessoryView((0, utils_1.normalizePrimaryAccessoryView)(data, pkg)),
|
|
25
24
|
addSecondaryAccessoryView: (data) => appStore.addSecondaryAccessoryView((0, utils_1.normalizeSecondaryAccessoryView)(data, pkg)),
|
|
26
25
|
registerComponents: integrations.registerComponents(pkg.name),
|
|
27
|
-
editSettings: (0, edit_settings_1.getEditSettingsForApp)(pkg.name),
|
|
28
26
|
getI18n: (0, hooks_1.getI18n)(pkg.name),
|
|
29
27
|
t: (0, hooks_1.getTFunction)(pkg.name),
|
|
30
28
|
useAppContext: (0, app_1.getAppContextHook)(pkg.name),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-dependant-exports.js","sourceRoot":"","sources":["../../../src/boot/app/app-dependant-exports.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;
|
|
1
|
+
{"version":3,"file":"app-dependant-exports.js","sourceRoot":"","sources":["../../../src/boot/app/app-dependant-exports.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,yCAAoG;AACpG,iDAO+B;AAC/B,+CAA8C;AAC9C,kDAA+D;AAE/D,0DAAsE;AAiC/D,MAAM,sBAAsB,GAAG,CAAC,GAAmB,EAAuB,EAAE;IAClF,MAAM,QAAQ,GAAG,iBAAW,CAAC,QAAQ,EAAE,CAAC;IACxC,MAAM,YAAY,GAAG,4BAAoB,CAAC,QAAQ,EAAE,CAAC;IACrD,OAAO;QACN,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC;QAC/C,QAAQ,EAAE,CAAC,KAAkC,EAAE,EAA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;KAC5B,CAAC;AACH,CAAC,CAAC;AAzBW,QAAA,sBAAsB,0BAyBjC"}
|
package/lib/lib.d.ts
CHANGED
|
@@ -25,10 +25,6 @@ export declare const addUtilityView: AppDependantExports['addUtilityView'];
|
|
|
25
25
|
export declare const addPrimaryAccessoryView: AppDependantExports['addPrimaryAccessoryView'];
|
|
26
26
|
export declare const addSecondaryAccessoryView: AppDependantExports['addSecondaryAccessoryView'];
|
|
27
27
|
export declare const registerComponents: AppDependantExports['registerComponents'];
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated See documentation of editSettings function in ./network/edit-settings
|
|
30
|
-
*/
|
|
31
|
-
export declare const editSettings: AppDependantExports['editSettings'];
|
|
32
28
|
export declare const getI18n: AppDependantExports['getI18n'];
|
|
33
29
|
export declare const t: AppDependantExports['t'];
|
|
34
30
|
export declare const useAppContext: AppDependantExports['useAppContext'];
|
package/lib/lib.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAmBH,8DAA8D;AAC9D,8CAA4B;AAC5B,wEAAsD;AACtD,gEAA8C;
|
|
1
|
+
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAmBH,8DAA8D;AAC9D,8CAA4B;AAC5B,wEAAsD;AACtD,gEAA8C;AAgF9C,yBAAuB"}
|
|
@@ -1,71 +1,13 @@
|
|
|
1
1
|
import type { AccountSettingsPrefs } from '@zextras/carbonio-ui-soap-lib';
|
|
2
|
-
import type {
|
|
3
|
-
import type { SoapBody, SoapContext, SoapFault } from './soap';
|
|
2
|
+
import type { SoapBody, SoapFault } from './soap';
|
|
4
3
|
import type { JSNS } from '../../constants';
|
|
5
4
|
import type { Exactify, RequireAtLeastOne, ValueOf } from '../../utils/typeUtils';
|
|
6
|
-
import type {
|
|
5
|
+
import type { Identity, IdentityAttrs } from '../account';
|
|
7
6
|
export * from './soap';
|
|
8
|
-
export type ZimletPkgDescription = {
|
|
9
|
-
zimlet: Array<{
|
|
10
|
-
name: string;
|
|
11
|
-
label: string;
|
|
12
|
-
description: string;
|
|
13
|
-
version: string;
|
|
14
|
-
zapp?: 'true';
|
|
15
|
-
'zapp-main'?: string;
|
|
16
|
-
'zapp-version'?: string;
|
|
17
|
-
'zapp-handlers'?: string;
|
|
18
|
-
'zapp-style'?: string;
|
|
19
|
-
'zapp-theme'?: string;
|
|
20
|
-
'zapp-serviceworker-extension'?: string;
|
|
21
|
-
}>;
|
|
22
|
-
zimletContext: Array<{
|
|
23
|
-
baseUrl: string;
|
|
24
|
-
presence: 'enabled';
|
|
25
|
-
priority: number;
|
|
26
|
-
}>;
|
|
27
|
-
};
|
|
28
|
-
export type GetInfoResponse = {
|
|
29
|
-
name: string;
|
|
30
|
-
id: string;
|
|
31
|
-
attrs: {
|
|
32
|
-
_attrs: {
|
|
33
|
-
displayName: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
prefs: {
|
|
37
|
-
_attrs: AccountSettingsPrefs;
|
|
38
|
-
};
|
|
39
|
-
signatures: {
|
|
40
|
-
signature: Array<Signature>;
|
|
41
|
-
};
|
|
42
|
-
identities: {
|
|
43
|
-
identity: Array<Identity>;
|
|
44
|
-
};
|
|
45
|
-
zimlets: {
|
|
46
|
-
zimlet: Array<ZimletPkgDescription>;
|
|
47
|
-
};
|
|
48
|
-
props: {
|
|
49
|
-
prop: Array<ZimletProp>;
|
|
50
|
-
};
|
|
51
|
-
version: string;
|
|
52
|
-
rights: AccountRights;
|
|
53
|
-
lifetime: number;
|
|
54
|
-
};
|
|
55
7
|
export type PropsMods = Record<string, {
|
|
56
8
|
app: string;
|
|
57
9
|
value: unknown;
|
|
58
10
|
}>;
|
|
59
|
-
export type PermissionsMods = {
|
|
60
|
-
freeBusy: {
|
|
61
|
-
current: AccountACEInfo[];
|
|
62
|
-
new: AccountACEInfo;
|
|
63
|
-
};
|
|
64
|
-
inviteRight: {
|
|
65
|
-
current: AccountACEInfo[];
|
|
66
|
-
new: AccountACEInfo;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
11
|
export type CreateIdentityResponse = {
|
|
70
12
|
identity: [Identity];
|
|
71
13
|
};
|
|
@@ -73,12 +15,6 @@ export type ModifyIdentityResponse = Record<string, never>;
|
|
|
73
15
|
export type DeleteIdentityResponse = Record<string, never>;
|
|
74
16
|
export type ModifyPropertiesResponse = Record<string, never>;
|
|
75
17
|
export type ModifyPrefsResponse = Record<string, never>;
|
|
76
|
-
export type RevokeRightsResponse = {
|
|
77
|
-
ace?: AccountACEInfo[];
|
|
78
|
-
};
|
|
79
|
-
export type GrantRightsResponse = {
|
|
80
|
-
ace?: AccountACEInfo[];
|
|
81
|
-
};
|
|
82
18
|
export type IdentityMods = {
|
|
83
19
|
modifyList?: Record<string, {
|
|
84
20
|
id: string;
|
|
@@ -93,16 +29,10 @@ export type PrefsMods = Record<string, unknown> & AccountSettingsPrefs;
|
|
|
93
29
|
export interface Mods extends Record<string, Record<string, unknown> | undefined> {
|
|
94
30
|
props?: PropsMods;
|
|
95
31
|
prefs?: PrefsMods;
|
|
96
|
-
permissions?: PermissionsMods;
|
|
97
32
|
identity?: IdentityMods;
|
|
98
33
|
}
|
|
99
34
|
export type AddMod = <ModsType extends keyof Mods = keyof Mods, TypeKey extends keyof NonNullable<Mods[ModsType]> = keyof NonNullable<Mods[ModsType]>>(type: ModsType, key: TypeKey, value: NonNullable<Mods[ModsType]>[TypeKey]) => void;
|
|
100
35
|
export type RemoveMod = (type: keyof Mods, key: keyof NonNullable<Mods[typeof type]>) => void;
|
|
101
|
-
export type NetworkState = SoapContext & {
|
|
102
|
-
noOpTimeout?: NodeJS.Timeout;
|
|
103
|
-
pollingInterval: number;
|
|
104
|
-
seq: number;
|
|
105
|
-
};
|
|
106
36
|
export type ModifyPrefsRequest = SoapBody<{
|
|
107
37
|
_attrs: AccountSettingsPrefs;
|
|
108
38
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/network/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/network/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AASH,yCAAuB"}
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Mods, CreateIdentityResponse, ModifyPropertiesResponse, ModifyPrefsResponse, ModifyIdentityResponse, RevokeRightsResponse, DeleteIdentityResponse, GrantRightsResponse } from '../types/network';
|
|
2
|
-
export type EditSettingsBatchResponse = {
|
|
3
|
-
ModifyPropertiesResponse?: ModifyPropertiesResponse[];
|
|
4
|
-
ModifyPrefsResponse?: ModifyPrefsResponse[];
|
|
5
|
-
ModifyIdentityResponse?: ModifyIdentityResponse[];
|
|
6
|
-
DeleteIdentityResponse?: DeleteIdentityResponse[];
|
|
7
|
-
CreateIdentityResponse?: CreateIdentityResponse[];
|
|
8
|
-
RevokeRightsResponse?: RevokeRightsResponse[];
|
|
9
|
-
GrantRightsResponse?: GrantRightsResponse[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use a specific soap fetch request per module instead.
|
|
13
|
-
*
|
|
14
|
-
* The edit settings function is performing a xml request which leads to network errors due to
|
|
15
|
-
* the content, and it is highly linking shell with modules.
|
|
16
|
-
* When the data are not related to the account, the management of the settings should be internal
|
|
17
|
-
* to the module itself. When the data to update are something strictly related to the account, and
|
|
18
|
-
* are or might be useful to other modules, the network update should be performed by the module itself,
|
|
19
|
-
* and then be propagated to other modules, to let every module interested in those data to react to the update.
|
|
20
|
-
*
|
|
21
|
-
* See SHELL-226, SHELL-222 to see how to propagate the update of settings to all other modules.
|
|
22
|
-
*/
|
|
23
|
-
export declare const editSettings: (mods: Partial<Mods>, appId?: string) => Promise<EditSettingsBatchResponse>;
|
|
24
|
-
export declare const getEditSettingsForApp: (app: string) => (mods: Mods) => Promise<EditSettingsBatchResponse & {
|
|
25
|
-
type: "fulfilled";
|
|
26
|
-
}>;
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
|
|
4
|
-
*
|
|
5
|
-
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.getEditSettingsForApp = exports.editSettings = void 0;
|
|
9
|
-
const carbonio_ui_soap_lib_1 = require("@zextras/carbonio-ui-soap-lib");
|
|
10
|
-
const lodash_1 = require("lodash");
|
|
11
|
-
const constants_1 = require("../constants");
|
|
12
|
-
const account_1 = require("../store/account");
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use a specific soap fetch request per module instead.
|
|
15
|
-
*
|
|
16
|
-
* The edit settings function is performing a xml request which leads to network errors due to
|
|
17
|
-
* the content, and it is highly linking shell with modules.
|
|
18
|
-
* When the data are not related to the account, the management of the settings should be internal
|
|
19
|
-
* to the module itself. When the data to update are something strictly related to the account, and
|
|
20
|
-
* are or might be useful to other modules, the network update should be performed by the module itself,
|
|
21
|
-
* and then be propagated to other modules, to let every module interested in those data to react to the update.
|
|
22
|
-
*
|
|
23
|
-
* See SHELL-226, SHELL-222 to see how to propagate the update of settings to all other modules.
|
|
24
|
-
*/
|
|
25
|
-
const editSettings = (mods, appId = constants_1.SHELL_APP_ID) => (0, carbonio_ui_soap_lib_1.legacyXmlSoapFetch)('Batch', `<BatchRequest xmlns="urn:zimbra" onerror="stop">${mods.props
|
|
26
|
-
? `<ModifyPropertiesRequest xmlns="urn:zimbraAccount">${(0, lodash_1.map)(mods.props, (prop, key) => `<prop name="${key}" zimlet="${prop.app ?? appId}">${prop.value}</prop>`)}</ModifyPropertiesRequest>`
|
|
27
|
-
: ''}${mods.prefs
|
|
28
|
-
? `<ModifyPrefsRequest xmlns="urn:zimbraAccount">${(0, lodash_1.map)(mods.prefs, (pref, key) => (0, lodash_1.isArray)(pref)
|
|
29
|
-
? (0, lodash_1.map)(pref, (p) => `<pref name="${key}">${p}</pref>`).join('')
|
|
30
|
-
: `<pref name="${key}">${pref}</pref>`).join('')}</ModifyPrefsRequest>`
|
|
31
|
-
: ''}${mods.identity?.modifyList
|
|
32
|
-
? (0, lodash_1.map)(mods.identity.modifyList, (item) => `<ModifyIdentityRequest xmlns="urn:zimbraAccount" requestId="0"><identity id="${item.id}">${(0, lodash_1.map)(item.prefs, (value, key) => `<a name="${key}">${value}</a>`).join('')}</identity></ModifyIdentityRequest>`).join('')
|
|
33
|
-
: ''}${mods.identity?.deleteList
|
|
34
|
-
? (0, lodash_1.map)(mods.identity.deleteList, (item) => `<DeleteIdentityRequest xmlns="urn:zimbraAccount" requestId="0"><identity id="${item}"/></DeleteIdentityRequest>`).join('')
|
|
35
|
-
: ''}${mods.identity?.createList
|
|
36
|
-
? (0, lodash_1.map)(mods.identity.createList, (item, index) => `<CreateIdentityRequest xmlns="urn:zimbraAccount" requestId="${index}"><identity name="${item.prefs.zimbraPrefIdentityName}"><a name="zimbraPrefIdentityName">${item.prefs.zimbraPrefIdentityName}</a><a name="zimbraPrefFromDisplay">${item.prefs.zimbraPrefFromDisplay}</a><a name="zimbraPrefFromAddress">${item.prefs.zimbraPrefFromAddress}</a><a name="zimbraPrefFromAddressType">sendAs</a><a name="zimbraPrefReplyToEnabled">${item.prefs.zimbraPrefReplyToEnabled}</a><a name="zimbraPrefReplyToDisplay">${item.prefs.zimbraPrefReplyToDisplay}</a><a name="zimbraPrefReplyToAddress">${item.prefs.zimbraPrefReplyToAddress}</a><a name="zimbraPrefDefaultSignatureId">${item.prefs.zimbraPrefDefaultSignatureId}</a><a name="zimbraPrefForwardReplySignatureId">${item.prefs.zimbraPrefForwardReplySignatureId}</a><a name="zimbraPrefWhenSentToEnabled">${item.prefs.zimbraPrefWhenSentToEnabled}</a><a name="zimbraPrefWhenInFoldersEnabled">${item.prefs.zimbraPrefWhenInFoldersEnabled}</a></identity></CreateIdentityRequest>`).join('')
|
|
37
|
-
: ''}${mods.permissions
|
|
38
|
-
? `<RevokeRightsRequest xmlns="urn:zimbraAccount" requestId="0">${mods.permissions.freeBusy
|
|
39
|
-
? (0, lodash_1.map)(mods.permissions.freeBusy.current, (right) => {
|
|
40
|
-
if (right.gt === 'dom')
|
|
41
|
-
return `<ace right="viewFreeBusy" gt="${right.gt}" zid="${right.zid}" d="zextras.com"/>`;
|
|
42
|
-
if (right.gt === 'all' && right.deny)
|
|
43
|
-
return `<ace right="viewFreeBusy" gt="${right.gt}" zid="${right.zid}" deny="1"/>`;
|
|
44
|
-
if (right.gt === 'usr')
|
|
45
|
-
return `<ace right="viewFreeBusy" gt="${right.gt}" zid="${right.zid}" d="${right.d}"/>`;
|
|
46
|
-
return `<ace right="viewFreeBusy" gt="${right.gt}" zid="${right.zid}" />`;
|
|
47
|
-
}).join('')
|
|
48
|
-
: ''}${mods.permissions.inviteRight
|
|
49
|
-
? (0, lodash_1.map)(mods.permissions.inviteRight.current, (right) => {
|
|
50
|
-
if (right.gt === 'all' && right.deny)
|
|
51
|
-
return `<ace right="invite" gt="${right.gt}" zid="${right.zid}" deny="1"/>`;
|
|
52
|
-
if (right.gt === 'usr')
|
|
53
|
-
return `<ace right="invite" gt="${right.gt}" zid="${right.zid}" d="${right.d}"/>`;
|
|
54
|
-
return `<ace right="invite" gt="${right.gt}" zid="${right.zid}" />`;
|
|
55
|
-
}).join('')
|
|
56
|
-
: ''}</RevokeRightsRequest><GrantRightsRequest xmlns="urn:zimbraAccount" requestId="1">${mods.permissions.freeBusy
|
|
57
|
-
? `${(() => {
|
|
58
|
-
if (mods.permissions.freeBusy.new.gt === 'dom') {
|
|
59
|
-
return `<ace right="viewFreeBusy" gt="${mods.permissions.freeBusy.new.gt}" d="zextras.com"/>`;
|
|
60
|
-
}
|
|
61
|
-
if (mods.permissions.freeBusy.new.gt === 'all' &&
|
|
62
|
-
mods.permissions.freeBusy.new.deny) {
|
|
63
|
-
return `<ace right="viewFreeBusy" gt="${mods.permissions.freeBusy.new.gt}" deny="1"/>`;
|
|
64
|
-
}
|
|
65
|
-
if (mods.permissions.freeBusy.new.gt === 'usr') {
|
|
66
|
-
return (0, lodash_1.map)(mods.permissions.freeBusy.new.d, (u) =>
|
|
67
|
-
// FIXME: usage differs from the declaration of the AccountACE
|
|
68
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
69
|
-
// @ts-ignore
|
|
70
|
-
`<ace right="viewFreeBusy" gt="${mods.permissions?.freeBusy.new.gt}" d="${u.email}"/>`).join('');
|
|
71
|
-
}
|
|
72
|
-
return `<ace right="viewFreeBusy" gt="${mods.permissions.freeBusy.new.gt}" />`;
|
|
73
|
-
})()}`
|
|
74
|
-
: ''}${mods.permissions.inviteRight
|
|
75
|
-
? `${(() => {
|
|
76
|
-
if (mods.permissions.inviteRight.new.gt === 'all' &&
|
|
77
|
-
mods.permissions.inviteRight.new.deny) {
|
|
78
|
-
return `<ace right="invite" gt="${mods.permissions.inviteRight.new.gt}" deny="1"/>`;
|
|
79
|
-
}
|
|
80
|
-
if (mods.permissions.inviteRight.new.gt === 'usr') {
|
|
81
|
-
return (0, lodash_1.map)(mods.permissions.inviteRight.new.d, (u) =>
|
|
82
|
-
// FIXME: usage differs from the declaration of the AccountACE
|
|
83
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
`<ace right="invite" gt="${mods.permissions?.inviteRight.new.gt}" d="${u.email}"/>`).join('');
|
|
86
|
-
}
|
|
87
|
-
return `<ace right="invite" gt="${mods.permissions?.inviteRight.new.gt}" />`;
|
|
88
|
-
})()}`
|
|
89
|
-
: ''}
|
|
90
|
-
</GrantRightsRequest>`
|
|
91
|
-
: ''}</BatchRequest>`).then((r) => {
|
|
92
|
-
account_1.useAccountStore.setState((s) => ({
|
|
93
|
-
settings: {
|
|
94
|
-
...s.settings,
|
|
95
|
-
prefs: (0, lodash_1.reduce)(mods.prefs, (acc, pref, key) => ({
|
|
96
|
-
...acc,
|
|
97
|
-
[key]: pref
|
|
98
|
-
}), s.settings.prefs),
|
|
99
|
-
props: (0, lodash_1.reduce)(mods.props, (acc, { app, value }, key) => {
|
|
100
|
-
const propIndex = (0, lodash_1.findIndex)(acc, (p) => p.name === key && p.zimlet === app);
|
|
101
|
-
if (propIndex >= 0) {
|
|
102
|
-
// eslint-disable-next-line no-param-reassign
|
|
103
|
-
acc[propIndex] = {
|
|
104
|
-
name: key,
|
|
105
|
-
zimlet: app,
|
|
106
|
-
_content: value
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
acc.push({
|
|
111
|
-
name: key,
|
|
112
|
-
zimlet: app,
|
|
113
|
-
_content: value
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return acc;
|
|
117
|
-
}, s.settings.props)
|
|
118
|
-
},
|
|
119
|
-
account: {
|
|
120
|
-
...s.account,
|
|
121
|
-
displayName: (0, lodash_1.find)(mods?.identity?.modifyList, (item) => item.id === s?.account?.id)?.prefs
|
|
122
|
-
.zimbraPrefIdentityName || s.account?.displayName,
|
|
123
|
-
identities: {
|
|
124
|
-
identity: typeof s.account !== 'undefined'
|
|
125
|
-
? (0, lodash_1.reduce)(mods?.identity?.modifyList, (acc, { id, prefs }) => {
|
|
126
|
-
const propIndex = (0, lodash_1.findIndex)(acc, (itemMods, indexAccount) => acc[indexAccount].id === id);
|
|
127
|
-
if (propIndex > -1) {
|
|
128
|
-
// eslint-disable-next-line no-param-reassign
|
|
129
|
-
acc[propIndex]._attrs = {
|
|
130
|
-
...acc[propIndex]._attrs,
|
|
131
|
-
...prefs
|
|
132
|
-
};
|
|
133
|
-
if (prefs.zimbraPrefIdentityName && acc[propIndex].name !== 'DEFAULT') {
|
|
134
|
-
// eslint-disable-next-line no-param-reassign
|
|
135
|
-
acc[propIndex].name = prefs.zimbraPrefIdentityName;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
return acc;
|
|
139
|
-
}, [
|
|
140
|
-
...(0, lodash_1.filter)(s.account.identities.identity, (item) => !mods?.identity?.deleteList?.includes(item.id)).filter((i) => i.name !== 'DEFAULT'),
|
|
141
|
-
...(0, lodash_1.map)(r?.CreateIdentityResponse, (item) => item.identity[0]),
|
|
142
|
-
...(0, lodash_1.filter)(s.account.identities.identity, (item) => !mods?.identity?.deleteList?.includes(item.id)).filter((i) => i.name === 'DEFAULT')
|
|
143
|
-
])
|
|
144
|
-
: undefined
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}));
|
|
148
|
-
return r;
|
|
149
|
-
});
|
|
150
|
-
exports.editSettings = editSettings;
|
|
151
|
-
const getEditSettingsForApp = (app) => (mods) => (0, exports.editSettings)(mods, app).then((r) => ({
|
|
152
|
-
...r,
|
|
153
|
-
type: 'fulfilled'
|
|
154
|
-
}));
|
|
155
|
-
exports.getEditSettingsForApp = getEditSettingsForApp;
|
|
156
|
-
//# sourceMappingURL=edit-settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edit-settings.js","sourceRoot":"","sources":["../../src/network/edit-settings.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,wEAAmE;AACnE,mCAAuE;AAEvE,4CAA4C;AAC5C,8CAAmD;AAuBnD;;;;;;;;;;;GAWG;AACI,MAAM,YAAY,GAAG,CAC3B,IAAmB,EACnB,QAAgB,wBAAY,EACS,EAAE,CACvC,IAAA,yCAAkB,EACjB,OAAO,EACP,mDACC,IAAI,CAAC,KAAK;IACT,CAAC,CAAC,sDAAsD,IAAA,YAAG,EACzD,IAAI,CAAC,KAAK,EACV,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,eAAe,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As' | 'sendOnBehalfOf' | 'viewFreeBusy';
|
|
3
|
-
/** Specify Access Control Entries */
|
|
4
|
-
export interface AccountACEInfo {
|
|
5
|
-
/** Zimbra ID of the grantee */
|
|
6
|
-
zid?: string;
|
|
7
|
-
/**
|
|
8
|
-
* The type of grantee:
|
|
9
|
-
* usr - Zimbra user
|
|
10
|
-
* grp - Zimbra group(distribution list)
|
|
11
|
-
* all - all authenticated users
|
|
12
|
-
* gst - non-Zimbra email address and password (not yet supported)
|
|
13
|
-
* key - external user with an accesskey
|
|
14
|
-
* pub - public authenticated and unauthenticated access
|
|
15
|
-
* If the value is:
|
|
16
|
-
* usr - either \{zimbra-id\} or \{grantee-name\} is required
|
|
17
|
-
* grp - either \{zimbra-id\} or \{grantee-name\} is required
|
|
18
|
-
* all - \{zimbra-id\}, \{grantee-name\} and \{password\} are ignored
|
|
19
|
-
* gst - \{zimbra-id\} is ignored, \{grantee-name\} is required, \{password\} is optional
|
|
20
|
-
* key - \{zimbra-id\} is ignored, \{grantee-name\} is required
|
|
21
|
-
* pub - \{zimbra-id\}, \{grantee-name\} and \{password\} are ignored
|
|
22
|
-
* For usr and grp:
|
|
23
|
-
* if \{zimbra-id\} is provided, server will lookup the entry by \{zimbra-id\} and
|
|
24
|
-
* if \{zimbra-id\} is not provided, server will lookup the grantee by \{grantee-type\} and \{grantee-name\}
|
|
25
|
-
* if the lookup fails, NO_SUCH_ACCOUNT/NO_SUCH_DISTRIBUTION_LIST will be thrown.
|
|
26
|
-
* If \{grantee-type\} == key:
|
|
27
|
-
* if key is given, server will use that as the access key for this grant
|
|
28
|
-
* if key is not given, server will generate an access key
|
|
29
|
-
* If chkgt is "1 (true)", INVALID_REQUEST will be thrown if wrong grantee type is specified.
|
|
30
|
-
*/
|
|
31
|
-
gt: GranteeType;
|
|
32
|
-
/** Right */
|
|
33
|
-
right: Right;
|
|
34
|
-
/**
|
|
35
|
-
* Name or email address of the grantee.
|
|
36
|
-
* Not present if \{grantee-type\} is "all" or "pub"
|
|
37
|
-
*/
|
|
38
|
-
d?: string;
|
|
39
|
-
/** Optional access key when \{grantee-type\} is "key" */
|
|
40
|
-
key?: string;
|
|
41
|
-
/** Password when \{grantee-type\} is "gst" (not yet supported) */
|
|
42
|
-
pw?: string;
|
|
43
|
-
/** "1" if a right is specifically denied or "0" (default) */
|
|
44
|
-
deny?: boolean;
|
|
45
|
-
/** "1 (true)" if check grantee type or "0 (false)" (default) */
|
|
46
|
-
chkgt?: boolean;
|
|
47
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../src/types/network/entities.ts"],"names":[],"mappings":""}
|