@airporting/integrations-app 0.4.188 → 0.4.189
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/dist/mf/2070.css +73 -73
- package/dist/mf/5350.js +1 -0
- package/dist/mf/5741.js +1 -1
- package/dist/mf/5961.js +1 -1
- package/dist/mf/@mf-types/compiled-types/api/ebury/eburyOauth.d.ts +8 -0
- package/dist/mf/@mf-types/compiled-types/components/ebury/EburyConfigPanel.d.ts +5 -0
- package/dist/mf/@mf-types/compiled-types/components/ebury/useEburyOauthPopup.d.ts +10 -0
- package/dist/mf/@mf-types/compiled-types/gen/EburyApi.d.ts +151 -0
- package/dist/mf/__federation_expose_single_connector.js +1 -1
- package/dist/mf/index.js +3 -3
- package/dist/mf/integrations_app.js +3 -3
- package/dist/mf/mf-manifest.json +3 -3
- package/dist/mf/mf-stats.json +13 -13
- package/package.json +1 -1
- package/dist/mf/8810.js +0 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
export interface CallbackV1Params {
|
|
2
|
+
code?: string;
|
|
3
|
+
error?: string;
|
|
4
|
+
state: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DisconnectV1Params {
|
|
7
|
+
cid: string;
|
|
8
|
+
}
|
|
9
|
+
export interface EburyOauthDisconnectResponse {
|
|
10
|
+
disconnected: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface EburyOauthStartResponse {
|
|
13
|
+
url: string;
|
|
14
|
+
}
|
|
15
|
+
export interface EburyOauthStatusResponse {
|
|
16
|
+
accessTokenExpiresAt?: string;
|
|
17
|
+
connected: boolean;
|
|
18
|
+
eburyClientId?: string;
|
|
19
|
+
eburyClientName?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ReadV1Params {
|
|
22
|
+
cid: string;
|
|
23
|
+
resource: string;
|
|
24
|
+
}
|
|
25
|
+
export interface StartV1Params {
|
|
26
|
+
cid: string;
|
|
27
|
+
/** @format uri */
|
|
28
|
+
returnTo: string;
|
|
29
|
+
}
|
|
30
|
+
export interface StatusV1Params {
|
|
31
|
+
cid: string;
|
|
32
|
+
}
|
|
33
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
34
|
+
export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
35
|
+
export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
36
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
37
|
+
secure?: boolean;
|
|
38
|
+
/** request path */
|
|
39
|
+
path: string;
|
|
40
|
+
/** content type of request body */
|
|
41
|
+
type?: ContentType;
|
|
42
|
+
/** query params */
|
|
43
|
+
query?: QueryParamsType;
|
|
44
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
45
|
+
format?: ResponseFormat;
|
|
46
|
+
/** request body */
|
|
47
|
+
body?: unknown;
|
|
48
|
+
/** base url */
|
|
49
|
+
baseUrl?: string;
|
|
50
|
+
/** request cancellation token */
|
|
51
|
+
cancelToken?: CancelToken;
|
|
52
|
+
}
|
|
53
|
+
export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
|
|
54
|
+
export interface ApiConfig<SecurityDataType = unknown> {
|
|
55
|
+
baseUrl?: string;
|
|
56
|
+
baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
|
|
57
|
+
securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
|
|
58
|
+
customFetch?: typeof fetch;
|
|
59
|
+
}
|
|
60
|
+
export interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {
|
|
61
|
+
data: D;
|
|
62
|
+
error: E;
|
|
63
|
+
}
|
|
64
|
+
type CancelToken = Symbol | string | number;
|
|
65
|
+
export declare enum ContentType {
|
|
66
|
+
Json = "application/json",
|
|
67
|
+
JsonApi = "application/vnd.api+json",
|
|
68
|
+
FormData = "multipart/form-data",
|
|
69
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
70
|
+
Text = "text/plain"
|
|
71
|
+
}
|
|
72
|
+
export declare class HttpClient<SecurityDataType = unknown> {
|
|
73
|
+
baseUrl: string;
|
|
74
|
+
private securityData;
|
|
75
|
+
private securityWorker?;
|
|
76
|
+
private abortControllers;
|
|
77
|
+
private customFetch;
|
|
78
|
+
private baseApiParams;
|
|
79
|
+
constructor(apiConfig?: ApiConfig<SecurityDataType>);
|
|
80
|
+
setSecurityData: (data: SecurityDataType | null) => void;
|
|
81
|
+
protected encodeQueryParam(key: string, value: any): string;
|
|
82
|
+
protected addQueryParam(query: QueryParamsType, key: string): string;
|
|
83
|
+
protected addArrayQueryParam(query: QueryParamsType, key: string): any;
|
|
84
|
+
protected toQueryString(rawQuery?: QueryParamsType): string;
|
|
85
|
+
protected addQueryParams(rawQuery?: QueryParamsType): string;
|
|
86
|
+
private contentFormatters;
|
|
87
|
+
protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
|
|
88
|
+
protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
|
|
89
|
+
abortRequest: (cancelToken: CancelToken) => void;
|
|
90
|
+
request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @title Ebury
|
|
94
|
+
* @version 1
|
|
95
|
+
* @contact
|
|
96
|
+
*/
|
|
97
|
+
export declare class EburyApi<SecurityDataType extends unknown> {
|
|
98
|
+
http: HttpClient<SecurityDataType>;
|
|
99
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
100
|
+
ebury: {
|
|
101
|
+
/**
|
|
102
|
+
* No description
|
|
103
|
+
*
|
|
104
|
+
* @tags Ebury
|
|
105
|
+
* @name StartV1
|
|
106
|
+
* @request GET:/v1/ebury/{cid}/oauth/start
|
|
107
|
+
* @secure
|
|
108
|
+
* @response `200` `EburyOauthStartResponse`
|
|
109
|
+
*/
|
|
110
|
+
startV1: ({ cid, ...query }: StartV1Params, params?: RequestParams) => Promise<HttpResponse<EburyOauthStartResponse, any>>;
|
|
111
|
+
/**
|
|
112
|
+
* No description
|
|
113
|
+
*
|
|
114
|
+
* @tags Ebury
|
|
115
|
+
* @name StatusV1
|
|
116
|
+
* @request GET:/v1/ebury/{cid}/oauth/status
|
|
117
|
+
* @secure
|
|
118
|
+
* @response `200` `EburyOauthStatusResponse`
|
|
119
|
+
*/
|
|
120
|
+
statusV1: ({ cid, ...query }: StatusV1Params, params?: RequestParams) => Promise<HttpResponse<EburyOauthStatusResponse, any>>;
|
|
121
|
+
/**
|
|
122
|
+
* No description
|
|
123
|
+
*
|
|
124
|
+
* @tags Ebury
|
|
125
|
+
* @name DisconnectV1
|
|
126
|
+
* @request DELETE:/v1/ebury/{cid}/oauth
|
|
127
|
+
* @secure
|
|
128
|
+
* @response `200` `EburyOauthDisconnectResponse`
|
|
129
|
+
*/
|
|
130
|
+
disconnectV1: ({ cid, ...query }: DisconnectV1Params, params?: RequestParams) => Promise<HttpResponse<EburyOauthDisconnectResponse, any>>;
|
|
131
|
+
/**
|
|
132
|
+
* No description
|
|
133
|
+
*
|
|
134
|
+
* @tags Ebury
|
|
135
|
+
* @name CallbackV1
|
|
136
|
+
* @request GET:/v1/ebury/callback
|
|
137
|
+
* @response `200` `void`
|
|
138
|
+
*/
|
|
139
|
+
callbackV1: (query: CallbackV1Params, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
140
|
+
/**
|
|
141
|
+
* No description
|
|
142
|
+
*
|
|
143
|
+
* @tags Ebury
|
|
144
|
+
* @name ReadV1
|
|
145
|
+
* @request GET:/v1/ebury/{cid}/data/{resource}
|
|
146
|
+
* @response `200` `void`
|
|
147
|
+
*/
|
|
148
|
+
readV1: ({ cid, resource, ...query }: ReadV1Params, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["4821"],{466:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{default:()=>SingleConnector});var jsx_runtime=__webpack_require__(4848);var index_js_=__webpack_require__(8556);var single_connector_app=__webpack_require__(
|
|
1
|
+
"use strict";(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["4821"],{466:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{default:()=>SingleConnector});var jsx_runtime=__webpack_require__(4848);var index_js_=__webpack_require__(8556);var single_connector_app=__webpack_require__(5477);var dist_index_js_=__webpack_require__(4259);var index_mjs_=__webpack_require__(2773);var esm_index_mjs_=__webpack_require__(4931);var modern_index_js_=__webpack_require__(7714);var dist_esm_index_mjs_=__webpack_require__(4449);var useAppConfigConnectorSingle=__webpack_require__(4613);const theme=(0,index_mjs_.createTheme)((0,dist_esm_index_mjs_.assign)(dist_index_js_.theme,{components:{}}));const cssVarResolver=x=>(0,dist_esm_index_mjs_.assign)(dist_index_js_.cssVarResolver(x),{dark:{},light:{},variables:{}});function ProvidersSingleConnector(props){const[queryClient]=(0,index_js_.useState)(()=>props.tanstack?.queryClient??new modern_index_js_.QueryClient);const{children,config,mantine,tanstack}=props;return/*#__PURE__*/(0,jsx_runtime.jsx)(useAppConfigConnectorSingle.a,{value:config,children:/*#__PURE__*/(0,jsx_runtime.jsx)(modern_index_js_.QueryClientProvider,{client:queryClient,children:/*#__PURE__*/(0,jsx_runtime.jsxs)(index_mjs_.MantineProvider,{theme:theme,cssVariablesResolver:cssVarResolver,defaultColorScheme:mantine?.defaultColorScheme,forceColorScheme:mantine?.forceColorScheme,children:[/*#__PURE__*/(0,jsx_runtime.jsx)(esm_index_mjs_.Notifications,{}),/*#__PURE__*/(0,jsx_runtime.jsx)(dist_index_js_.RevealTokenProvider,{children:children})]})})})}var locales=__webpack_require__(108);(0,locales.o)();function SingleConnector(props){return/*#__PURE__*/(0,jsx_runtime.jsx)(index_js_.StrictMode,{children:/*#__PURE__*/(0,jsx_runtime.jsx)(ProvidersSingleConnector,{...props,children:/*#__PURE__*/(0,jsx_runtime.jsx)(single_connector_app.d,{})})})}},4613:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{C:()=>useAppConfigConnectorSingle,a:()=>AppConfigConnectorSingleProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8556);const AppConfigCtx=/*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);const AppConfigConnectorSingleProvider=AppConfigCtx.Provider;function useAppConfigConnectorSingle(){const config=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(AppConfigCtx);if(!config)throw new Error("Called `useAppConfig` outside a `<AppConfigConnectorSingleProvider />`");return config}}}]);
|