@zextras/carbonio-shell-ui 9.0.1-devel.1738148136542 → 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/lib.d.ts +7 -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/types/network/index.d.ts +6 -2
- 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","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B,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/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'];
|
|
@@ -49,7 +55,7 @@ export type { Board } from './types/boards';
|
|
|
49
55
|
export type { BoardHooksContext } from './store/boards/hooks';
|
|
50
56
|
export type { INotificationManager, NotificationConfig, AudioNotificationConfig, PopupNotificationConfig } from './notification/NotificationManager';
|
|
51
57
|
export type { Grant } from './types/misc';
|
|
52
|
-
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';
|
|
53
59
|
export type { BatchRequest, BatchResponse } from './types/network';
|
|
54
60
|
export type { Action } from './types/integrations';
|
|
55
61
|
export type { HistoryParams } from './types/misc';
|
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,GA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E,CAChB,CACC,GAAW,EACX,IAAa,EACb,YAAqB,EACD,EAAE;IACtB,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,yBAAe,CAAC,QAAQ,EAAE,CAAC;IAC9D,OAAO,KAAK,CAAC,iBAAiB,GAAG,SAAS,EAAE;QAC3C,MAAM,EAAE,MAAM;QACd,OAAO,EAAE;YACR,cAAc,EAAE,sBAAsB;SACtC;QACD,IAAI,EAAE;;+DAEsD,sBAAS,cAAc,aAAa,MAAM,aAAa,EAAE,GAAG,aAAa,CACpI,OAAO,EACP,YAAY,CACZ;gBACY,IAAI;mBACD;KAChB,CAAC,CAAC,6BAA6B;SAC9B,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;SAC1B,IAAI,CAAC,CAAC,GAA8B,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;SAClE,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;QACZ,IAAA,kBAAM,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACf,MAAM,CAAC,CAAC;IACT,CAAC,CAAsB,CAAC;AAC1B,CAAC,CAAC;AA5BU,QAAA,eAAe,mBA4BzB"}
|
|
@@ -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';
|
|
@@ -118,11 +118,13 @@ export type CreateIdentityRequest = SoapBody<{
|
|
|
118
118
|
name?: string;
|
|
119
119
|
_attrs: IdentityAttrs;
|
|
120
120
|
};
|
|
121
|
+
requestId?: string;
|
|
121
122
|
}>;
|
|
122
123
|
export type ModifyIdentityRequest = SoapBody<{
|
|
123
124
|
identity: {
|
|
124
125
|
_attrs?: IdentityAttrs;
|
|
125
126
|
} & RequireAtLeastOne<Pick<Identity, 'id' | 'name'>>;
|
|
127
|
+
requestId?: string;
|
|
126
128
|
}>;
|
|
127
129
|
export type DeleteIdentityRequest = SoapBody<{
|
|
128
130
|
identity: {
|
|
@@ -139,5 +141,7 @@ export type ModifyPropertiesRequest = SoapBody<{
|
|
|
139
141
|
}>;
|
|
140
142
|
}>;
|
|
141
143
|
export type BatchRequest<T extends Exactify<Record<`${string}Request`, unknown>, T> = Record<`${string}Request`, unknown>> = SoapBody<T>;
|
|
142
|
-
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
|
+
};
|
|
143
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"}
|