@zextras/carbonio-shell-ui 9.0.1-devel.1737974562289 → 9.0.1-devel.1738160122032
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-direct-exports.d.ts +1 -0
- package/lib/boot/app/app-direct-exports.js +3 -1
- package/lib/boot/app/app-direct-exports.js.map +1 -1
- package/lib/constants/index.d.ts +3 -4
- package/lib/constants/index.js +4 -5
- package/lib/constants/index.js.map +1 -1
- package/lib/lib.d.ts +7 -2
- package/lib/lib.js +0 -1
- package/lib/lib.js.map +1 -1
- package/lib/network/fetch.d.ts +8 -2
- package/lib/network/fetch.js +18 -3
- package/lib/network/fetch.js.map +1 -1
- package/lib/store/app/hooks.d.ts +0 -5
- package/lib/store/app/hooks.js +1 -11
- package/lib/store/app/hooks.js.map +1 -1
- package/lib/types/misc/index.d.ts +0 -28
- package/lib/types/network/index.d.ts +6 -30
- package/lib/types/network/soap.d.ts +1 -0
- package/lib/types/network/soap.js +4 -0
- package/lib/types/network/soap.js.map +1 -1
- package/package.json +1 -1
|
@@ -33,3 +33,4 @@ export { useTracker } from '../../tracker/tracker';
|
|
|
33
33
|
export { AppContextProvider } from './app-context-provider';
|
|
34
34
|
export type { AuthGuardProps } from '../../ui-extras/auth-guard';
|
|
35
35
|
export { AuthGuard } from '../../ui-extras/auth-guard';
|
|
36
|
+
export { soapFetchV2 } from '../../network/fetch';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
var _a, _b;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.goBackHistory = exports.replaceHistory = exports.useCurrentRoute = exports.getCurrentRoute = exports.useReplaceHistoryCallback = exports.useGoBackHistoryCallback = exports.usePushHistoryCallback = exports.useBoardHooks = exports.setCurrentBoard = exports.reopenBoards = exports.expandBoards = exports.minimizeBoards = exports.useBoard = exports.useBoardById = exports.useBoardContextById = exports.getBoardContextById = exports.getBoardById = exports.updateBoardContext = exports.updateBoard = exports.closeBoard = exports.useRefresh = exports.useNotify = exports.updateAccount = exports.updateSettings = exports.useAuthenticated = exports.getUserRights = exports.getUserRight = exports.useUserRights = exports.useUserRight = exports.useUserSettings = exports.useUserSetting = exports.useUserAccounts = exports.useUserAccount = exports.getUserSettings = exports.getUserSetting = exports.getUserAccounts = exports.getUserAccount = exports.removeComponents = exports.removeActions = exports.registerActions = exports.removeFunctions = exports.registerFunctions = exports.getIntegratedFunction = exports.getIntegratedComponent = exports.getActions = exports.getAction = exports.useIntegratedFunction = exports.useIntegratedComponent = exports.useActions = exports.useAction = void 0;
|
|
10
|
-
exports.AuthGuard = exports.AppContextProvider = exports.useTracker = exports.useIsCarbonioCE = exports.upsertApp = exports.removeSecondaryAccessoryView = exports.removePrimaryAccessoryView = exports.removeUtilityView = exports.removeSettingsView = exports.removeBoardView = exports.removeRoute = exports.setRouteVisibility = exports.updatePrimaryBadge = exports.useLocalStorage = exports.getNotificationManager = exports.pushHistory = void 0;
|
|
10
|
+
exports.soapFetchV2 = exports.AuthGuard = exports.AppContextProvider = exports.useTracker = exports.useIsCarbonioCE = exports.upsertApp = exports.removeSecondaryAccessoryView = exports.removePrimaryAccessoryView = exports.removeUtilityView = exports.removeSettingsView = exports.removeBoardView = exports.removeRoute = exports.setRouteVisibility = exports.updatePrimaryBadge = exports.useLocalStorage = exports.getNotificationManager = exports.pushHistory = void 0;
|
|
11
11
|
const app_1 = require("../../store/app");
|
|
12
12
|
const store_1 = require("../../store/integrations/store");
|
|
13
13
|
var hooks_1 = require("../../store/integrations/hooks");
|
|
@@ -87,4 +87,6 @@ var app_context_provider_1 = require("./app-context-provider");
|
|
|
87
87
|
Object.defineProperty(exports, "AppContextProvider", { enumerable: true, get: function () { return app_context_provider_1.AppContextProvider; } });
|
|
88
88
|
var auth_guard_1 = require("../../ui-extras/auth-guard");
|
|
89
89
|
Object.defineProperty(exports, "AuthGuard", { enumerable: true, get: function () { return auth_guard_1.AuthGuard; } });
|
|
90
|
+
var fetch_1 = require("../../network/fetch");
|
|
91
|
+
Object.defineProperty(exports, "soapFetchV2", { enumerable: true, get: function () { return fetch_1.soapFetchV2; } });
|
|
90
92
|
//# sourceMappingURL=app-direct-exports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-direct-exports.js","sourceRoot":"","sources":["../../../src/boot/app/app-direct-exports.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAEH,yCAA8C;AAC9C,0DAAsE;AAEtE,wDAKwC;AAJvC,kGAAA,SAAS,OAAA;AACT,mGAAA,UAAU,OAAA;AACV,+GAAA,sBAAsB,OAAA;AACtB,8GAAA,qBAAqB,OAAA;AAGtB,4DAK0C;AAJzC,oGAAA,SAAS,OAAA;AACT,qGAAA,UAAU,OAAA;AACV,iHAAA,sBAAsB,OAAA;AACtB,gHAAA,qBAAqB,OAAA;AAGT,KAMT,4BAAoB,CAAC,QAAQ,EAAE,EALlC,yBAAiB,yBACjB,uBAAe,uBACf,uBAAe,uBACf,qBAAa,qBACb,wBAAgB,uBACmB;AAEpC,+CAgB6B;AAf5B,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,uGAAA,YAAY,OAAA;AACZ,wGAAA,aAAa,OAAA;AACb,uGAAA,YAAY,OAAA;AACZ,wGAAA,aAAa,OAAA;AACb,2GAAA,gBAAgB,OAAA;AAChB,yGAAA,cAAc,OAAA;AACd,wGAAA,aAAa,OAAA;AAGd,+CAA4D;AAAnD,oGAAA,SAAS,OAAA;AAAE,qGAAA,UAAU,OAAA;AAE9B,6CAc4B;AAb3B,oGAAA,UAAU,OAAA;AACV,qGAAA,WAAW,OAAA;AACX,4GAAA,kBAAkB,OAAA;AAClB,sGAAA,YAAY,OAAA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sBAAsB,OAAA;AAE/B,qEAAoE;AAA3D,kHAAA,eAAe,OAAA;AAEX,KAoBT,iBAAW,CAAC,QAAQ,EAAE,EAnBzB,0BAAkB,0BAClB,0BAAkB,0BAClB,mBAAW,mBACX,uBAAe,uBACf,0BAAkB,0BAClB,yBAAiB,yBACjB,kCAA0B,kCAC1B,oCAA4B;AAC5B;;;;;;;;;GASG;AACH,iBAAS,gBACiB;AAE3B,iDAA0D;AAAjD,wGAAA,eAAe,OAAA;AAIxB,iDAAmD;AAA1C,qGAAA,UAAU,OAAA;AAEnB,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAG3B,yDAAuD;AAA9C,uGAAA,SAAS,OAAA;AAClB,6CAAkD;AAAzC,oGAAA,WAAW,OAAA"}
|
package/lib/constants/index.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import type { DynamicThemeFix } from 'darkreader';
|
|
2
2
|
export declare const SHELL_APP_ID = "carbonio-shell-ui";
|
|
3
3
|
export declare const SETTINGS_APP_ID = "settings";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated This constant is not used and will be deleted in next releases
|
|
6
|
-
*/
|
|
7
|
-
export declare const ACCOUNTS_APP_ID = "accounts";
|
|
8
4
|
export declare const ACTION_TYPES: {
|
|
9
5
|
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
10
6
|
readonly CONVERSATION: "conversation";
|
|
@@ -70,6 +66,9 @@ export declare const SCALING_LIMIT: {
|
|
|
70
66
|
export declare const LOGIN_V3_CONFIG_PATH = "/zx/login/v3/config";
|
|
71
67
|
export declare const DARK_READER_PROP_KEY = "zappDarkreaderMode";
|
|
72
68
|
export declare const SENTRY_SHELL_DSN = "https://0ce2448c05b94f0182c47ae52c7ff52c@feedback.zextras.tools/6";
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated this const does not belong to shell
|
|
71
|
+
*/
|
|
73
72
|
export declare const RESULT_LABEL_TYPE: {
|
|
74
73
|
readonly normal: "normal";
|
|
75
74
|
readonly warning: "warning";
|
package/lib/constants/index.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JSNS = exports.CUSTOM_EVENTS = exports.DELEGATED_SEND_SAVE_TARGET = exports.BOARD_MIN_VISIBILITY = exports.BOARD_CONTAINER_ZINDEX = exports.BOARD_TAB_WIDTH = exports.BOARD_HEADER_HEIGHT = exports.PRIMARY_BAR_WIDTH = exports.HEADER_BAR_HEIGHT = exports.RESULT_LABEL_TYPE = exports.SENTRY_SHELL_DSN = exports.DARK_READER_PROP_KEY = exports.LOGIN_V3_CONFIG_PATH = exports.SCALING_LIMIT = exports.BASE_FONT_SIZE = exports.SCALING_OPTIONS = exports.LOCAL_STORAGE_BOARD_SIZE = exports.LOCAL_STORAGE_LAST_PRIMARY_KEY = exports.LOCAL_STORAGE_SETTINGS_KEY = exports.DARK_READER_VALUES = exports.EMAIL_VALIDATION_REGEX = exports.BASENAME = exports.IS_FOCUS_MODE = exports.darkReaderDynamicThemeFixes = exports.ACTION_TYPES = exports.
|
|
3
|
+
exports.JSNS = exports.CUSTOM_EVENTS = exports.DELEGATED_SEND_SAVE_TARGET = exports.BOARD_MIN_VISIBILITY = exports.BOARD_CONTAINER_ZINDEX = exports.BOARD_TAB_WIDTH = exports.BOARD_HEADER_HEIGHT = exports.PRIMARY_BAR_WIDTH = exports.HEADER_BAR_HEIGHT = exports.RESULT_LABEL_TYPE = exports.SENTRY_SHELL_DSN = exports.DARK_READER_PROP_KEY = exports.LOGIN_V3_CONFIG_PATH = exports.SCALING_LIMIT = exports.BASE_FONT_SIZE = exports.SCALING_OPTIONS = exports.LOCAL_STORAGE_BOARD_SIZE = exports.LOCAL_STORAGE_LAST_PRIMARY_KEY = exports.LOCAL_STORAGE_SETTINGS_KEY = exports.DARK_READER_VALUES = exports.EMAIL_VALIDATION_REGEX = exports.BASENAME = exports.IS_FOCUS_MODE = exports.darkReaderDynamicThemeFixes = exports.ACTION_TYPES = exports.SETTINGS_APP_ID = exports.SHELL_APP_ID = void 0;
|
|
4
4
|
exports.SHELL_APP_ID = 'carbonio-shell-ui';
|
|
5
5
|
exports.SETTINGS_APP_ID = 'settings';
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated This constant is not used and will be deleted in next releases
|
|
8
|
-
*/
|
|
9
|
-
exports.ACCOUNTS_APP_ID = 'accounts';
|
|
10
6
|
exports.ACTION_TYPES = {
|
|
11
7
|
/** @deprecated this action does not belong to shell, and therefore it will be removed in next releases */
|
|
12
8
|
CONVERSATION: 'conversation',
|
|
@@ -78,6 +74,9 @@ exports.SCALING_LIMIT = {
|
|
|
78
74
|
exports.LOGIN_V3_CONFIG_PATH = '/zx/login/v3/config';
|
|
79
75
|
exports.DARK_READER_PROP_KEY = 'zappDarkreaderMode';
|
|
80
76
|
exports.SENTRY_SHELL_DSN = 'https://0ce2448c05b94f0182c47ae52c7ff52c@feedback.zextras.tools/6';
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated this const does not belong to shell
|
|
79
|
+
*/
|
|
81
80
|
exports.RESULT_LABEL_TYPE = {
|
|
82
81
|
normal: 'normal',
|
|
83
82
|
warning: 'warning',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;AAOa,QAAA,YAAY,GAAG,mBAAmB,CAAC;AACnC,QAAA,eAAe,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;AAOa,QAAA,YAAY,GAAG,mBAAmB,CAAC;AACnC,QAAA,eAAe,GAAG,UAAU,CAAC;AAE7B,QAAA,YAAY,GAAG;IAC3B,0GAA0G;IAC1G,YAAY,EAAE,cAAc;IAC5B,0GAA0G;IAC1G,iBAAiB,EAAE,mBAAmB;IACtC,0GAA0G;IAC1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E,mBAAmB;IAC5B,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,gBAAgB;IACtB,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,gBAAgB;CACb,CAAC"}
|
package/lib/lib.d.ts
CHANGED
|
@@ -32,7 +32,13 @@ export declare const registerComponents: AppDependantExports['registerComponents
|
|
|
32
32
|
export declare const editSettings: AppDependantExports['editSettings'];
|
|
33
33
|
export declare const getI18n: AppDependantExports['getI18n'];
|
|
34
34
|
export declare const t: AppDependantExports['t'];
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Use soapFetchV2 instead
|
|
37
|
+
*/
|
|
35
38
|
export declare const soapFetch: AppDependantExports['soapFetch'];
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Use soapFetchV2 instead
|
|
41
|
+
*/
|
|
36
42
|
export declare const xmlSoapFetch: AppDependantExports['xmlSoapFetch'];
|
|
37
43
|
export declare const useAppContext: AppDependantExports['useAppContext'];
|
|
38
44
|
export declare const getAppContext: AppDependantExports['getAppContext'];
|
|
@@ -43,14 +49,13 @@ export declare const addBoard: AppDependantExports['addBoard'];
|
|
|
43
49
|
* @deprecated Use hooks to access to functions which require context
|
|
44
50
|
*/
|
|
45
51
|
export declare const getBridgedFunctions: AppDependantExports['getBridgedFunctions'];
|
|
46
|
-
export * from './boot/app/app-direct-exports';
|
|
47
52
|
export type { PrimaryBarComponentProps, SecondaryBarComponentProps, UtilityBarComponentProps, BoardViewComponentProps, AppViewComponentProps, SettingsViewProps, PrimaryAccessoryViewProps, SecondaryAccessoryViewProps, SettingsSubSection, BadgeInfo } from './types/apps';
|
|
48
53
|
export type { BooleanString, GeneralizedTime, Duration, Account, AccountSettings, AccountSettingsPrefs, Identity, IdentityAttrs } from './types/account';
|
|
49
54
|
export type { Board } from './types/boards';
|
|
50
55
|
export type { BoardHooksContext } from './store/boards/hooks';
|
|
51
56
|
export type { INotificationManager, NotificationConfig, AudioNotificationConfig, PopupNotificationConfig } from './notification/NotificationManager';
|
|
52
57
|
export type { Grant } from './types/misc';
|
|
53
|
-
export type { SuccessSoapResponse, ErrorSoapResponse, ErrorSoapBodyResponse, SoapResponse, SoapLink, SoapFolder, SoapNotify, SoapContext, SoapBody, SoapHeader, SoapFault } from './types/network/soap';
|
|
58
|
+
export type { SuccessSoapResponse, ErrorSoapResponse, ErrorSoapBodyResponse, SoapResponse, SoapLink, SoapFolder, SoapNotify, SoapContext, SoapBody, SoapHeader, SoapFault, RawSoapResponse, RawSoapHeader, RawSoapContext, RawSuccessSoapResponse, RawErrorSoapResponse } from './types/network/soap';
|
|
54
59
|
export type { BatchRequest, BatchResponse } from './types/network';
|
|
55
60
|
export type { Action } from './types/integrations';
|
|
56
61
|
export type { HistoryParams } from './types/misc';
|
package/lib/lib.js
CHANGED
|
@@ -24,6 +24,5 @@ __exportStar(require("./constants"), exports);
|
|
|
24
24
|
__exportStar(require("./ui-extras/app-link"), exports);
|
|
25
25
|
__exportStar(require("./settings/components/settings-header"), exports);
|
|
26
26
|
__exportStar(require("./boot/app/app-direct-exports"), exports);
|
|
27
|
-
__exportStar(require("./boot/app/app-direct-exports"), exports);
|
|
28
27
|
require("./types/theme");
|
|
29
28
|
//# sourceMappingURL=lib.js.map
|
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,uDAAqC;AACrC,wEAAsD;AACtD,gEAA8C;
|
|
1
|
+
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAmBH,8DAA8D;AAC9D,8CAA4B;AAC5B,uDAAqC;AACrC,wEAAsD;AACtD,gEAA8C;AAkG9C,yBAAuB"}
|
package/lib/network/fetch.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SoapBody } from '../types/network';
|
|
1
|
+
import type { RawSoapResponse, SoapBody } from '../types/network';
|
|
2
2
|
export type NoOpRequest = SoapBody<{
|
|
3
3
|
limitToOneBlocked?: 0 | 1;
|
|
4
4
|
wait?: 0 | 1;
|
|
@@ -6,6 +6,12 @@ export type NoOpRequest = SoapBody<{
|
|
|
6
6
|
export type NoOpResponse = SoapBody<{
|
|
7
7
|
waitDisallowed?: boolean;
|
|
8
8
|
}>;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use soapFetchV2 instead
|
|
11
|
+
*/
|
|
9
12
|
export declare const getSoapFetch: (app: string) => <Request, Response extends Record<string, unknown>>(api: string, body: Request, otherAccount?: string, signal?: AbortSignal) => Promise<Response>;
|
|
13
|
+
export declare const soapFetchV2: <Request, Response extends Record<string, unknown>>(api: string, body: Request, otherAccount?: string, signal?: AbortSignal) => Promise<RawSoapResponse<Response>>;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use soapFetchV2 instead
|
|
16
|
+
*/
|
|
10
17
|
export declare const getXmlSoapFetch: (app: string) => <Request, Response extends Record<string, unknown>>(api: string, body: Request, otherAccount?: string) => Promise<Response>;
|
|
11
|
-
export declare const shellSoap: <Request, Response extends Record<string, unknown>>(api: string, body: Request, otherAccount?: string, signal?: AbortSignal) => Promise<Response>;
|
package/lib/network/fetch.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.getXmlSoapFetch = exports.soapFetchV2 = exports.getSoapFetch = void 0;
|
|
9
9
|
const lodash_1 = require("lodash");
|
|
10
10
|
const fetch_utils_1 = require("./fetch-utils");
|
|
11
11
|
const user_agent_1 = require("./user-agent");
|
|
@@ -52,7 +52,7 @@ const normalizeContext = ({ notify: rawNotify, ...context }) => {
|
|
|
52
52
|
}
|
|
53
53
|
return normalizedContext;
|
|
54
54
|
};
|
|
55
|
-
const
|
|
55
|
+
const handleResponseV2 = (res) => {
|
|
56
56
|
const { noOpTimeout } = network_1.useNetworkStore.getState();
|
|
57
57
|
const { usedQuota } = account_1.useAccountStore.getState();
|
|
58
58
|
clearTimeout(noOpTimeout);
|
|
@@ -83,10 +83,16 @@ const handleResponse = (api, res) => {
|
|
|
83
83
|
..._context
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
+
};
|
|
87
|
+
const handleResponse = (api, res) => {
|
|
88
|
+
handleResponseV2(res);
|
|
86
89
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
87
90
|
// @ts-ignore
|
|
88
91
|
return res?.Body?.Fault ? res.Body : res.Body[`${api}Response`];
|
|
89
92
|
};
|
|
93
|
+
/**
|
|
94
|
+
* @deprecated Use soapFetchV2 instead
|
|
95
|
+
*/
|
|
90
96
|
const getSoapFetch = (app) => (api, body, otherAccount, signal) => (0, fetch_utils_1.soapFetch)(api, body, otherAccount, signal)
|
|
91
97
|
// TODO proper error handling
|
|
92
98
|
.then((res) => handleResponse(api, res))
|
|
@@ -95,6 +101,16 @@ const getSoapFetch = (app) => (api, body, otherAccount, signal) => (0, fetch_uti
|
|
|
95
101
|
throw e;
|
|
96
102
|
});
|
|
97
103
|
exports.getSoapFetch = getSoapFetch;
|
|
104
|
+
const soapFetchV2 = async (api, body, otherAccount, signal) => {
|
|
105
|
+
const rawSoapResponse = await (0, fetch_utils_1.soapFetch)(api, body, otherAccount, signal);
|
|
106
|
+
// apply side effects
|
|
107
|
+
handleResponseV2(rawSoapResponse);
|
|
108
|
+
return rawSoapResponse;
|
|
109
|
+
};
|
|
110
|
+
exports.soapFetchV2 = soapFetchV2;
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated Use soapFetchV2 instead
|
|
113
|
+
*/
|
|
98
114
|
const getXmlSoapFetch = (app) => (api, body, otherAccount) => {
|
|
99
115
|
const { zimbraVersion, account } = account_1.useAccountStore.getState();
|
|
100
116
|
return fetch(`/service/soap/${api}Request`, {
|
|
@@ -116,5 +132,4 @@ const getXmlSoapFetch = (app) => (api, body, otherAccount) => {
|
|
|
116
132
|
});
|
|
117
133
|
};
|
|
118
134
|
exports.getXmlSoapFetch = getXmlSoapFetch;
|
|
119
|
-
exports.shellSoap = (0, exports.getSoapFetch)(constants_1.SHELL_APP_ID);
|
|
120
135
|
//# sourceMappingURL=fetch.js.map
|
package/lib/network/fetch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../src/network/fetch.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,mCAA0C;AAE1C,+CAA0C;AAC1C,6CAAyC;AACzC,mCAAoC;AACpC,4CAAiE;AACjE,sDAAgD;AAChD,8CAAmD;AACnD,8CAAmD;AACnD,kDAA4D;AAsB5D,MAAM,SAAS,GAAG,GAAS,EAAE;IAC5B,mEAAmE;IACnE,IAAA,oBAAY,EAAC,wBAAY,CAAC,CACzB,MAAM,EACN,yBAAe,CAAC,QAAQ,EAAE,CAAC,eAAe,KAAK,GAAG;QACjD,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAI,CAAC,IAAI,EAAE,iBAAiB,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;QACrD,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAI,CAAC,IAAI,EAAE,CACvB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,GAAa,EAAE,YAAqB,EAAU,EAAE;IACtE,IAAI,YAAY,EAAE,CAAC;QAClB,OAAO,sBAAsB,YAAY,YAAY,CAAC;IACvD,CAAC;IACD,IAAI,GAAG,EAAE,CAAC;QACT,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;YACd,OAAO,sBAAsB,GAAG,CAAC,IAAI,YAAY,CAAC;QACnD,CAAC;QACD,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC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,CAAC,CAAC,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,CAAC;IACT,CAAC,CAAsB,CAAC;AAC1B,CAAC,CAAC;AA5BU,QAAA,eAAe,mBA4BzB"}
|
package/lib/store/app/hooks.d.ts
CHANGED
|
@@ -2,13 +2,8 @@ import type { AppRoute, CarbonioModule } from '../../types/apps';
|
|
|
2
2
|
export declare const getAppHook: (appId: string) => () => CarbonioModule;
|
|
3
3
|
export declare const useApps: () => Record<string, CarbonioModule>;
|
|
4
4
|
export declare const useAppList: () => Array<CarbonioModule>;
|
|
5
|
-
export declare const getAppList: () => Array<CarbonioModule>;
|
|
6
5
|
export declare const getApp: (appId: string) => () => CarbonioModule | undefined;
|
|
7
|
-
export declare const getApps: () => Record<string, CarbonioModule>;
|
|
8
6
|
export declare const getAppContextHook: (appId: string) => <T>() => T;
|
|
9
7
|
export declare const getAppContext: (appId: string) => () => unknown;
|
|
10
|
-
export declare const getShell: () => CarbonioModule;
|
|
11
8
|
export declare const getRoutes: () => Record<string, AppRoute>;
|
|
12
9
|
export declare const useRoutes: () => Record<string, AppRoute>;
|
|
13
|
-
export declare const getRoute: (id: string) => AppRoute;
|
|
14
|
-
export declare const useRoute: (id: string) => AppRoute;
|
package/lib/store/app/hooks.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.useRoutes = exports.getRoutes = exports.getAppContext = exports.getAppContextHook = exports.getApp = exports.useAppList = exports.useApps = exports.getAppHook = void 0;
|
|
9
9
|
const react_1 = require("react");
|
|
10
10
|
const lodash_1 = require("lodash");
|
|
11
11
|
const store_1 = require("./store");
|
|
@@ -18,24 +18,14 @@ const useAppList = () => {
|
|
|
18
18
|
return (0, react_1.useMemo)(() => (0, lodash_1.sortBy)(apps, (a) => a.priority), [apps]);
|
|
19
19
|
};
|
|
20
20
|
exports.useAppList = useAppList;
|
|
21
|
-
const getAppList = () => (0, lodash_1.sortBy)(store_1.useAppStore.getState().apps, (a) => a.priority);
|
|
22
|
-
exports.getAppList = getAppList;
|
|
23
21
|
const getApp = (appId) => () => store_1.useAppStore.getState().apps[appId];
|
|
24
22
|
exports.getApp = getApp;
|
|
25
|
-
const getApps = () => store_1.useAppStore.getState().apps;
|
|
26
|
-
exports.getApps = getApps;
|
|
27
23
|
const getAppContextHook = (appId) => () => (0, store_1.useAppStore)((s) => s.appContexts[appId]);
|
|
28
24
|
exports.getAppContextHook = getAppContextHook;
|
|
29
25
|
const getAppContext = (appId) => () => store_1.useAppStore.getState().appContexts[appId];
|
|
30
26
|
exports.getAppContext = getAppContext;
|
|
31
|
-
const getShell = () => store_1.useAppStore.getState().shell;
|
|
32
|
-
exports.getShell = getShell;
|
|
33
27
|
const getRoutes = () => store_1.useAppStore.getState().routes;
|
|
34
28
|
exports.getRoutes = getRoutes;
|
|
35
29
|
const useRoutes = () => (0, store_1.useAppStore)((s) => s.routes);
|
|
36
30
|
exports.useRoutes = useRoutes;
|
|
37
|
-
const getRoute = (id) => store_1.useAppStore.getState().routes[id];
|
|
38
|
-
exports.getRoute = getRoute;
|
|
39
|
-
const useRoute = (id) => (0, store_1.useAppStore)((s) => s.routes[id]);
|
|
40
|
-
exports.useRoute = useRoute;
|
|
41
31
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/store/app/hooks.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,iCAAgC;AAEhC,mCAAgC;AAEhC,mCAAsC;AAG/B,MAAM,UAAU,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAmB,EAAE,CACjE,IAAA,mBAAW,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AADtB,QAAA,UA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AC7D,mBAAW,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAD9B,QAAA,aAAa,iBACiB;AAEpC,MAAM,SAAS,GAAG,GAA6B,EAAE,CAAC,mBAAW,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC;AAA1E,QAAA,SAAS,aAAiE;AAEhF,MAAM,SAAS,GAAG,GAA6B,EAAE,CAAC,IAAA,mBAAW,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAAzE,QAAA,SAAS,aAAgE"}
|
|
@@ -21,34 +21,6 @@ export type AccountProps = {
|
|
|
21
21
|
personaLabel?: string;
|
|
22
22
|
identityId?: string;
|
|
23
23
|
};
|
|
24
|
-
/** @deprecated */
|
|
25
|
-
export type IdentityProps = {
|
|
26
|
-
id: string;
|
|
27
|
-
/**
|
|
28
|
-
* Type of the identity
|
|
29
|
-
*/
|
|
30
|
-
flgType: 'primary' | 'persona' | 'IMAP' | 'POP';
|
|
31
|
-
/**
|
|
32
|
-
* Localized description of the type of identity
|
|
33
|
-
*/
|
|
34
|
-
type: string;
|
|
35
|
-
/**
|
|
36
|
-
* is a number while you are creating a new one
|
|
37
|
-
*/
|
|
38
|
-
identityId: string | number;
|
|
39
|
-
fromAddress?: string;
|
|
40
|
-
identityName?: string;
|
|
41
|
-
fromDisplay?: string;
|
|
42
|
-
recoveryAccount?: string;
|
|
43
|
-
replyToDisplay?: string;
|
|
44
|
-
replyToAddress?: string;
|
|
45
|
-
replyToEnabled?: string;
|
|
46
|
-
saveToSent?: string;
|
|
47
|
-
sentMailFolder?: string;
|
|
48
|
-
whenInFoldersEnabled?: string;
|
|
49
|
-
whenSentToEnabled?: string;
|
|
50
|
-
whenSentToAddresses?: string;
|
|
51
|
-
};
|
|
52
24
|
type Meta<T extends Record<string, unknown>> = {
|
|
53
25
|
section?: string;
|
|
54
26
|
_attrs: T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AccountACEInfo } from './entities';
|
|
2
|
-
import type { SoapBody, SoapContext } from './soap';
|
|
2
|
+
import type { SoapBody, SoapContext, SoapFault } from './soap';
|
|
3
3
|
import type { JSNS } from '../../constants';
|
|
4
4
|
import type { Exactify, RequireAtLeastOne, ValueOf } from '../../utils/typeUtils';
|
|
5
5
|
import type { AccountRights, AccountSettingsPrefs, Identity, IdentityAttrs, Signature, ZimletProp } from '../account';
|
|
@@ -65,34 +65,6 @@ export type PermissionsMods = {
|
|
|
65
65
|
new: AccountACEInfo;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated
|
|
70
|
-
*/
|
|
71
|
-
export type CreateIdentityProps = {
|
|
72
|
-
requestId: number;
|
|
73
|
-
/** name of the identity */
|
|
74
|
-
zimbraPrefIdentityName: string | undefined;
|
|
75
|
-
/** personal part of email address put in from header */
|
|
76
|
-
zimbraPrefFromDisplay: string | undefined;
|
|
77
|
-
/** email address to put in from header. Deprecated on data source as of bug 67068. */
|
|
78
|
-
zimbraPrefFromAddress: string | undefined;
|
|
79
|
-
/** Type of the email address from header. (sendAs or sendOnBehalfOf) */
|
|
80
|
-
zimbraPrefFromAddressType: 'sendAs' | 'sendOnBehalfOf';
|
|
81
|
-
/** TRUE if we should set a reply-to header */
|
|
82
|
-
zimbraPrefReplyToEnabled: 'TRUE' | 'FALSE' | undefined;
|
|
83
|
-
/** personal part of email address put in reply-to header */
|
|
84
|
-
zimbraPrefReplyToDisplay: string | undefined;
|
|
85
|
-
/** address to put in reply-to header */
|
|
86
|
-
zimbraPrefReplyToAddress: string | undefined;
|
|
87
|
-
/** default mail signature for account/identity/dataSource */
|
|
88
|
-
zimbraPrefDefaultSignatureId: string | undefined;
|
|
89
|
-
/** forward/reply signature id for account/identity/dataSource */
|
|
90
|
-
zimbraPrefForwardReplySignatureId: string | undefined;
|
|
91
|
-
/** TRUE if we should look at zimbraPrefWhenSentToAddresses (deprecatedSince 5.0 in account) */
|
|
92
|
-
zimbraPrefWhenSentToEnabled: string | undefined;
|
|
93
|
-
/** TRUE if we should look at zimbraPrefWhenInFolderIds (deprecatedSince 5.0 in account) */
|
|
94
|
-
zimbraPrefWhenInFoldersEnabled: string | undefined;
|
|
95
|
-
};
|
|
96
68
|
export type CreateIdentityResponse = {
|
|
97
69
|
identity: [Identity];
|
|
98
70
|
};
|
|
@@ -146,11 +118,13 @@ export type CreateIdentityRequest = SoapBody<{
|
|
|
146
118
|
name?: string;
|
|
147
119
|
_attrs: IdentityAttrs;
|
|
148
120
|
};
|
|
121
|
+
requestId?: string;
|
|
149
122
|
}>;
|
|
150
123
|
export type ModifyIdentityRequest = SoapBody<{
|
|
151
124
|
identity: {
|
|
152
125
|
_attrs?: IdentityAttrs;
|
|
153
126
|
} & RequireAtLeastOne<Pick<Identity, 'id' | 'name'>>;
|
|
127
|
+
requestId?: string;
|
|
154
128
|
}>;
|
|
155
129
|
export type DeleteIdentityRequest = SoapBody<{
|
|
156
130
|
identity: {
|
|
@@ -167,5 +141,7 @@ export type ModifyPropertiesRequest = SoapBody<{
|
|
|
167
141
|
}>;
|
|
168
142
|
}>;
|
|
169
143
|
export type BatchRequest<T extends Exactify<Record<`${string}Request`, unknown>, T> = Record<`${string}Request`, unknown>> = SoapBody<T>;
|
|
170
|
-
export type BatchResponse<T extends Exactify<Record<`${string}Response`, unknown>, T> = Record<`${string}Response`, unknown>> = SoapBody<T
|
|
144
|
+
export type BatchResponse<T extends Exactify<Record<`${string}Response`, unknown>, T> = Record<`${string}Response`, unknown>> = SoapBody<T> & {
|
|
145
|
+
Fault?: SoapFault[];
|
|
146
|
+
};
|
|
171
147
|
export type NameSpace = ValueOf<typeof JSNS>;
|
|
@@ -44,6 +44,7 @@ export type ErrorSoapResponse = {
|
|
|
44
44
|
Header: SoapHeader;
|
|
45
45
|
};
|
|
46
46
|
export type RawSoapResponse<R extends Record<string, unknown>> = RawSuccessSoapResponse<R> | RawErrorSoapResponse;
|
|
47
|
+
export declare function isRawErrorSoapResponse(item: RawSoapResponse<Record<string, unknown>>): item is RawErrorSoapResponse;
|
|
47
48
|
export type SoapResponse<R> = SuccessSoapResponse<R> | ErrorSoapResponse;
|
|
48
49
|
export type SoapRequest<R extends Record<string, unknown>> = {
|
|
49
50
|
Body: Record<string, SoapBody<R>>;
|
|
@@ -5,4 +5,8 @@
|
|
|
5
5
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.isRawErrorSoapResponse = isRawErrorSoapResponse;
|
|
9
|
+
function isRawErrorSoapResponse(item) {
|
|
10
|
+
return item.Body.Fault !== undefined;
|
|
11
|
+
}
|
|
8
12
|
//# sourceMappingURL=soap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"soap.js","sourceRoot":"","sources":["../../../src/types/network/soap.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
|
1
|
+
{"version":3,"file":"soap.js","sourceRoot":"","sources":["../../../src/types/network/soap.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AA6DH,wDAIC;AAJD,SAAgB,sBAAsB,CACrC,IAA8C;IAE9C,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC;AACtC,CAAC"}
|