@airporting/integrations-app 0.4.31 → 0.4.33
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/README.md +74 -2
- package/dist/mf/{18.js → 1018.js} +3 -3
- package/dist/mf/{235.js → 1330.js} +2 -2
- package/dist/mf/1600.js +1 -0
- package/dist/mf/1857.js +1 -0
- package/dist/mf/{70.js → 2070.js} +3 -3
- package/dist/mf/3.js +1 -0
- package/dist/mf/{134.js → 3134.js} +2 -2
- package/dist/mf/{330.js → 3235.js} +2 -2
- package/dist/mf/{473.js → 3711.js} +2 -2
- package/dist/mf/4447.js +1 -0
- package/dist/mf/{756.js → 4756.js} +4 -4
- package/dist/mf/4810.js +1 -0
- package/dist/mf/5475.js +1 -0
- package/dist/mf/{616.js → 5616.js} +2 -2
- package/dist/mf/5625.js +1 -0
- package/dist/mf/5741.js +1 -0
- package/dist/mf/6082.js +1 -0
- package/dist/mf/6092.js +10 -0
- package/dist/mf/6124.js +1 -0
- package/dist/mf/6702.js +1 -0
- package/dist/mf/7285.js +1 -0
- package/dist/mf/{286.js → 7286.js} +3 -3
- package/dist/mf/7476.js +1 -0
- package/dist/mf/7493.js +6 -0
- package/dist/mf/7493.js.LICENSE.txt +13 -0
- package/dist/mf/8170.js +18 -0
- package/dist/mf/8473.js +10 -0
- package/dist/mf/{637.js → 8637.js} +3 -3
- package/dist/mf/8949.js +10 -0
- package/dist/mf/8978.js +33 -0
- package/dist/mf/{37.js → 9037.js} +3 -3
- package/dist/mf/9110.js +1 -0
- package/dist/mf/{755.js → 9430.js} +2 -2
- package/dist/mf/9666.js +10 -0
- package/dist/mf/9666.js.LICENSE.txt +9 -0
- package/dist/mf/9758.js +1 -0
- package/dist/mf/@mf-types/compiled-types/api/connectors/connectorAddMutation.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/connectors/connectorCatalogQuery.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/connectors/connectorDeleteMutation.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroDetailQuery.d.ts +2 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobConfigQuery.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobRunMutation.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobSaveMutation.d.ts +5 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroListQuery.d.ts +2 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroRunMutation.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroScheduleMutations.d.ts +21 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroSpreadsheetsQuery.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroToggleMutation.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/types.d.ts +67 -0
- package/dist/mf/@mf-types/compiled-types/api/useApiSynchro.d.ts +6 -0
- package/dist/mf/@mf-types/compiled-types/components/InlineLoader.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/components/connectors/connector-menu.component.d.ts +7 -0
- package/dist/mf/@mf-types/compiled-types/components/connectors/delete-active-connector-modal.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/components/connectors/is-delete-confirm-input.d.ts +6 -0
- package/dist/mf/@mf-types/compiled-types/components/connectors/list.catalog.component.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/inputs/InputDateBoundary.d.ts +12 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/inputs/InputGsheetsSelector.d.ts +11 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.dynamic-form.d.ts +29 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.functions.d.ts +7 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.history.d.ts +6 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.job-config-modal.d.ts +9 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.list.d.ts +8 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.schedule.d.ts +8 -0
- package/dist/mf/@mf-types/compiled-types/gen/IntegrationsApi.d.ts +120 -4
- package/dist/mf/@mf-types/compiled-types/hooks/useAppConfigConnectorSingle.d.ts +1 -1
- package/dist/mf/@mf-types/compiled-types/hooks/useAppConfigSynchro.d.ts +9 -0
- package/dist/mf/@mf-types/compiled-types/providersSynchro.d.ts +15 -0
- package/dist/mf/@mf-types/compiled-types/synchro.app.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/synchro.d.ts +2 -0
- package/dist/mf/__federation_expose_connectors.js +2 -2
- package/dist/mf/__federation_expose_single_connector.js +2 -2
- package/dist/mf/__federation_expose_synchronisation.js +10 -0
- package/dist/mf/__federation_expose_synchronisation.js.LICENSE.txt +9 -0
- package/dist/mf/index.js +4 -5
- package/dist/mf/integrations_app.js +4 -5
- package/dist/mf/mf-manifest.json +133 -30
- package/dist/mf/mf-stats.json +189 -41
- package/package.json +7 -6
- package/dist/mf/124.js +0 -1
- package/dist/mf/170.js +0 -18
- package/dist/mf/285.js +0 -1
- package/dist/mf/447.js +0 -1
- package/dist/mf/475.js +0 -1
- package/dist/mf/476.js +0 -1
- package/dist/mf/600.js +0 -1
- package/dist/mf/625.js +0 -1
- package/dist/mf/666.js +0 -10
- package/dist/mf/702.js +0 -1
- package/dist/mf/711.js +0 -10
- package/dist/mf/741.js +0 -1
- package/dist/mf/857.js +0 -1
- package/dist/mf/949.js +0 -10
- package/dist/mf/978.js +0 -33
- package/dist/mf/@mf-types/connectors.d.ts +0 -2
- package/dist/mf/@mf-types/single-connector.d.ts +0 -2
- package/dist/mf/@mf-types.d.ts +0 -3
- package/dist/mf/@mf-types.zip +0 -0
- /package/dist/mf/{18.js.LICENSE.txt → 1018.js.LICENSE.txt} +0 -0
- /package/dist/mf/{235.js.LICENSE.txt → 1330.js.LICENSE.txt} +0 -0
- /package/dist/mf/{70.css → 2070.css} +0 -0
- /package/dist/mf/{70.js.LICENSE.txt → 2070.js.LICENSE.txt} +0 -0
- /package/dist/mf/{134.js.LICENSE.txt → 3134.js.LICENSE.txt} +0 -0
- /package/dist/mf/{330.js.LICENSE.txt → 3235.js.LICENSE.txt} +0 -0
- /package/dist/mf/{473.js.LICENSE.txt → 3711.js.LICENSE.txt} +0 -0
- /package/dist/mf/{756.js.LICENSE.txt → 4756.js.LICENSE.txt} +0 -0
- /package/dist/mf/{616.js.LICENSE.txt → 5616.js.LICENSE.txt} +0 -0
- /package/dist/mf/{666.js.LICENSE.txt → 6092.js.LICENSE.txt} +0 -0
- /package/dist/mf/{286.js.LICENSE.txt → 7286.js.LICENSE.txt} +0 -0
- /package/dist/mf/{170.js.LICENSE.txt → 8170.js.LICENSE.txt} +0 -0
- /package/dist/mf/{711.js.LICENSE.txt → 8473.js.LICENSE.txt} +0 -0
- /package/dist/mf/{637.js.LICENSE.txt → 8637.js.LICENSE.txt} +0 -0
- /package/dist/mf/{949.js.LICENSE.txt → 8949.js.LICENSE.txt} +0 -0
- /package/dist/mf/{978.js.LICENSE.txt → 8978.js.LICENSE.txt} +0 -0
- /package/dist/mf/{37.js.LICENSE.txt → 9037.js.LICENSE.txt} +0 -0
package/dist/mf/9666.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*! For license information please see 9666.js.LICENSE.txt */
|
|
2
|
+
"use strict";(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["9666"],{9698:function(__unused_webpack_module,exports){/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function jsxProd(type,config,maybeKey){var key=null;void 0!==maybeKey&&(key=""+maybeKey);void 0!==config.key&&(key=""+config.key);if("key"in config){maybeKey={};for(var propName in config)"key"!==propName&&(maybeKey[propName]=config[propName])}else maybeKey=config;config=maybeKey.ref;return{$$typeof:REACT_ELEMENT_TYPE,type:type,key:key,ref:void 0!==config?config:null,props:maybeKey}}exports.Fragment=REACT_FRAGMENT_TYPE;exports.jsx=jsxProd;exports.jsxs=jsxProd},4848:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(9698)},2004:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{updateContextModal:()=>events_updateContextModal,closeAllModals:()=>closeAllModals,updateModal:()=>events_updateModal,ModalsProvider:()=>ModalsProvider,openContextModal:()=>events_openContextModal,openConfirmModal:()=>events_openConfirmModal,closeModal:()=>events_closeModal,modals:()=>events_modals,openModal:()=>events_openModal,useModals:()=>useModals});var jsx_runtime=__webpack_require__(4848);var index_js_=__webpack_require__(8556);var index_mjs_=__webpack_require__(2773);var esm_index_mjs_=__webpack_require__(2667);"use client";const ModalsContext=(0,index_js_.createContext)(null);ModalsContext.displayName="@mantine/modals/ModalsContext";"use client";function useModals(){const ctx=(0,index_js_.useContext)(ModalsContext);if(!ctx)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return ctx}"use client";function ConfirmModal({id,cancelProps,confirmProps,labels={cancel:"",confirm:""},closeOnConfirm=true,closeOnCancel=true,groupProps,onCancel,onConfirm,children}){const{cancel:cancelLabel,confirm:confirmLabel}=labels;const ctx=useModals();const handleCancel=event=>{"function"==typeof cancelProps?.onClick&&cancelProps?.onClick(event);"function"==typeof onCancel&&onCancel();closeOnCancel&&ctx.closeModal(id)};const handleConfirm=event=>{"function"==typeof confirmProps?.onClick&&confirmProps?.onClick(event);"function"==typeof onConfirm&&onConfirm();closeOnConfirm&&ctx.closeModal(id)};return/* @__PURE__ */(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[children&&/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{mb:"md",children}),/* @__PURE__ */(0,jsx_runtime.jsxs)(index_mjs_.Group,{mt:children?0:"md",justify:"flex-end",...groupProps,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Button,{variant:"default",...cancelProps,onClick:handleCancel,children:cancelProps?.children||cancelLabel}),/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Button,{...confirmProps,onClick:handleConfirm,children:confirmProps?.children||confirmLabel})]})]})}"use client";const[useModalsEvents,createEvent]=(0,index_mjs_.createUseExternalEvents)("mantine-modals");const events_openModal=payload=>{const id=payload.modalId||(0,esm_index_mjs_.randomId)();createEvent("openModal")({...payload,modalId:id});return id};const events_openConfirmModal=payload=>{const id=payload.modalId||(0,esm_index_mjs_.randomId)();createEvent("openConfirmModal")({...payload,modalId:id});return id};const events_openContextModal=payload=>{const id=payload.modalId||(0,esm_index_mjs_.randomId)();createEvent("openContextModal")({...payload,modalId:id});return id};const events_closeModal=createEvent("closeModal");const closeAllModals=createEvent("closeAllModals");const events_updateModal=payload=>createEvent("updateModal")(payload);const events_updateContextModal=payload=>createEvent("updateContextModal")(payload);const events_modals={open:events_openModal,close:events_closeModal,closeAll:closeAllModals,openConfirmModal:events_openConfirmModal,openContextModal:events_openContextModal,updateModal:events_updateModal,updateContextModal:events_updateContextModal};"use client";function handleCloseModal(modal,canceled){if(canceled&&"confirm"===modal.type)modal.props.onCancel?.();modal.props.onClose?.()}function modalsReducer(state,action){switch(action.type){case"OPEN":return{current:action.modal,modals:[...state.modals,action.modal]};case"CLOSE":{const modal=state.modals.find(m=>m.id===action.modalId);if(!modal)return state;handleCloseModal(modal,action.canceled);const remainingModals=state.modals.filter(m=>m.id!==action.modalId);return{current:remainingModals[remainingModals.length-1]||state.current,modals:remainingModals}}case"CLOSE_ALL":if(!state.modals.length)return state;state.modals.concat().reverse().forEach(modal=>{handleCloseModal(modal,action.canceled)});return{current:state.current,modals:[]};case"UPDATE":{const{modalId,newProps}=action;const updatedModals=state.modals.map(modal=>{if(modal.id!==modalId)return modal;if("content"===modal.type||"confirm"===modal.type)return{...modal,props:{...modal.props,...newProps}};if("context"===modal.type)return{...modal,props:{...modal.props,...newProps,innerProps:{...modal.props.innerProps,...newProps.innerProps}}};return modal});const currentModal=state.current?.id===modalId?updatedModals.find(modal=>modal.id===modalId)||state.current:state.current;return{...state,modals:updatedModals,current:currentModal}}default:return state}}"use client";function separateConfirmModalProps(props){if(!props)return{confirmProps:{},modalProps:{}};const{id,children,onCancel,onConfirm,closeOnConfirm,closeOnCancel,cancelProps,confirmProps,groupProps,labels,...others}=props;return{confirmProps:{id,children,onCancel,onConfirm,closeOnConfirm,closeOnCancel,cancelProps,confirmProps,groupProps,labels},modalProps:{id,...others}}}function ModalsProvider({children,modalProps,labels,modals}){const[state,dispatch]=(0,index_js_.useReducer)(modalsReducer,{modals:[],current:null});const stateRef=(0,index_js_.useRef)(state);stateRef.current=state;const closeAll=(0,index_js_.useCallback)(canceled=>{dispatch({type:"CLOSE_ALL",canceled})},[stateRef,dispatch]);const openModal=(0,index_js_.useCallback)(({modalId,...props})=>{const id=modalId||(0,esm_index_mjs_.randomId)();dispatch({type:"OPEN",modal:{id,type:"content",props}});return id},[dispatch]);const openConfirmModal=(0,index_js_.useCallback)(({modalId,...props})=>{const id=modalId||(0,esm_index_mjs_.randomId)();dispatch({type:"OPEN",modal:{id,type:"confirm",props}});return id},[dispatch]);const openContextModal=(0,index_js_.useCallback)((modal,{modalId,...props})=>{const id=modalId||(0,esm_index_mjs_.randomId)();dispatch({type:"OPEN",modal:{id,type:"context",props,ctx:modal}});return id},[dispatch]);const closeModal=(0,index_js_.useCallback)((id,canceled)=>{dispatch({type:"CLOSE",modalId:id,canceled})},[stateRef,dispatch]);const updateModal=(0,index_js_.useCallback)(({modalId,...newProps})=>{dispatch({type:"UPDATE",modalId,newProps})},[dispatch]);const updateContextModal=(0,index_js_.useCallback)(({modalId,...newProps})=>{dispatch({type:"UPDATE",modalId,newProps})},[dispatch]);useModalsEvents({openModal,openConfirmModal,openContextModal:({modal,...payload})=>openContextModal(modal,payload),closeModal,closeContextModal:closeModal,closeAllModals:closeAll,updateModal,updateContextModal});const ctx={modalProps:modalProps||{},modals:state.modals,openModal,openConfirmModal,openContextModal,closeModal,closeContextModal:closeModal,closeAll,updateModal,updateContextModal};const getCurrentModal=()=>{const currentModal=stateRef.current.current;switch(currentModal?.type){case"context":{const{innerProps,...rest}=currentModal.props;const ContextModal=modals[currentModal.ctx];return{modalProps:rest,content:/* @__PURE__ */(0,jsx_runtime.jsx)(ContextModal,{innerProps,context:ctx,id:currentModal.id})}}case"confirm":{const{modalProps:separatedModalProps,confirmProps:separatedConfirmProps}=separateConfirmModalProps(currentModal.props);return{modalProps:separatedModalProps,content:/* @__PURE__ */(0,jsx_runtime.jsx)(ConfirmModal,{...separatedConfirmProps,id:currentModal.id,labels:currentModal.props.labels||labels})}}case"content":{const{children:currentModalChildren,...rest}=currentModal.props;return{modalProps:rest,content:currentModalChildren}}default:return{modalProps:{},content:null}}};const{modalProps:currentModalProps,content}=getCurrentModal();return/* @__PURE__ */(0,jsx_runtime.jsxs)(ModalsContext.Provider,{value:ctx,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Modal,{zIndex:(0,index_mjs_.getDefaultZIndex)("modal")+1,...modalProps,...currentModalProps,opened:state.modals.length>0,onClose:()=>closeModal(state.current?.id),children:content}),children]})}}}]);
|
package/dist/mf/9758.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["9758"],{1053:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{default:()=>ht});const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="ARRAYBUFFER not supported by this environment",e="UINT8ARRAY not supported by this environment";function r(t,n,e,r){let i,s,o;const h=n||[0],u=(e=e||0)>>>3,w=-1===r?3:0;for(i=0;i<t.length;i+=1)o=i+u,s=o>>>2,h.length<=s&&h.push(0),h[s]|=t[i]<<8*(w+o%4*r);return{value:h,binLen:8*t.length+e}}function i(i,s,o){switch(s){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(i){case"HEX":return function(t,n,e){return function(t,n,e,r){let i,s,o,h;if(0!=t.length%2)throw new Error("String of HEX type must be in byte increments");const u=n||[0],w=(e=e||0)>>>3,c=-1===r?3:0;for(i=0;i<t.length;i+=2){if(s=parseInt(t.substr(i,2),16),isNaN(s))throw new Error("String of HEX type contains invalid characters");for(h=(i>>>1)+w,o=h>>>2;u.length<=o;)u.push(0);u[o]|=s<<8*(c+h%4*r)}return{value:u,binLen:4*t.length+e}}(t,n,e,o)};case"TEXT":return function(t,n,e){return function(t,n,e,r,i){let s,o,h,u,w,c,f,a,l=0;const A=e||[0],E=(r=r||0)>>>3;if("UTF8"===n)for(f=-1===i?3:0,h=0;h<t.length;h+=1)for(s=t.charCodeAt(h),o=[],128>s?o.push(s):2048>s?(o.push(192|s>>>6),o.push(128|63&s)):55296>s||57344<=s?o.push(224|s>>>12,128|s>>>6&63,128|63&s):(h+=1,s=65536+((1023&s)<<10|1023&t.charCodeAt(h)),o.push(240|s>>>18,128|s>>>12&63,128|s>>>6&63,128|63&s)),u=0;u<o.length;u+=1){for(c=l+E,w=c>>>2;A.length<=w;)A.push(0);A[w]|=o[u]<<8*(f+c%4*i),l+=1}else for(f=-1===i?2:0,a="UTF16LE"===n&&1!==i||"UTF16LE"!==n&&1===i,h=0;h<t.length;h+=1){for(s=t.charCodeAt(h),!0===a&&(u=255&s,s=u<<8|s>>>8),c=l+E,w=c>>>2;A.length<=w;)A.push(0);A[w]|=s<<8*(f+c%4*i),l+=2}return{value:A,binLen:8*l+r}}(t,s,n,e,o)};case"B64":return function(n,e,r){return function(n,e,r,i){let s,o,h,u,w,c,f,a=0;const l=e||[0],A=(r=r||0)>>>3,E=-1===i?3:0,H=n.indexOf("=");if(-1===n.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(n=n.replace(/=/g,""),-1!==H&&H<n.length)throw new Error("Invalid '=' found in base-64 string");for(o=0;o<n.length;o+=4){for(w=n.substr(o,4),u=0,h=0;h<w.length;h+=1)s=t.indexOf(w.charAt(h)),u|=s<<18-6*h;for(h=0;h<w.length-1;h+=1){for(f=a+A,c=f>>>2;l.length<=c;)l.push(0);l[c]|=(u>>>16-8*h&255)<<8*(E+f%4*i),a+=1}}return{value:l,binLen:8*a+r}}(n,e,r,o)};case"BYTES":return function(t,n,e){return function(t,n,e,r){let i,s,o,h;const u=n||[0],w=(e=e||0)>>>3,c=-1===r?3:0;for(s=0;s<t.length;s+=1)i=t.charCodeAt(s),h=s+w,o=h>>>2,u.length<=o&&u.push(0),u[o]|=i<<8*(c+h%4*r);return{value:u,binLen:8*t.length+e}}(t,n,e,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error(n)}return function(t,n,e){return function(t,n,e,i){return r(new Uint8Array(t),n,e,i)}(t,n,e,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error(e)}return function(t,n,e){return r(t,n,e,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function s(r,i,s,o){switch(r){case"HEX":return function(t){return function(t,n,e,r){const i="0123456789abcdef";let s,o,h="";const u=n/8,w=-1===e?3:0;for(s=0;s<u;s+=1)o=t[s>>>2]>>>8*(w+s%4*e),h+=i.charAt(o>>>4&15)+i.charAt(15&o);return r.outputUpper?h.toUpperCase():h}(t,i,s,o)};case"B64":return function(n){return function(n,e,r,i){let s,o,h,u,w,c="";const f=e/8,a=-1===r?3:0;for(s=0;s<f;s+=3)for(u=s+1<f?n[s+1>>>2]:0,w=s+2<f?n[s+2>>>2]:0,h=(n[s>>>2]>>>8*(a+s%4*r)&255)<<16|(u>>>8*(a+(s+1)%4*r)&255)<<8|w>>>8*(a+(s+2)%4*r)&255,o=0;o<4;o+=1)c+=8*s+6*o<=e?t.charAt(h>>>6*(3-o)&63):i.b64Pad;return c}(n,i,s,o)};case"BYTES":return function(t){return function(t,n,e){let r,i,s="";const o=n/8,h=-1===e?3:0;for(r=0;r<o;r+=1)i=t[r>>>2]>>>8*(h+r%4*e)&255,s+=String.fromCharCode(i);return s}(t,i,s)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error(n)}return function(t){return function(t,n,e){let r;const i=n/8,s=new ArrayBuffer(i),o=new Uint8Array(s),h=-1===e?3:0;for(r=0;r<i;r+=1)o[r]=t[r>>>2]>>>8*(h+r%4*e)&255;return s}(t,i,s)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error(e)}return function(t){return function(t,n,e){let r;const i=n/8,s=-1===e?3:0,o=new Uint8Array(i);for(r=0;r<i;r+=1)o[r]=t[r>>>2]>>>8*(s+r%4*e)&255;return o}(t,i,s)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}const o=0x100000000,h=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],u=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4],w=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],c="Chosen SHA variant is not supported",f="Cannot set numRounds with MAC";function a(t,n){let e,r;const i=t.binLen>>>3,s=n.binLen>>>3,o=i<<3,h=4-i<<3;if(i%4!=0){for(e=0;e<s;e+=4)r=i+e>>>2,t.value[r]|=n.value[e>>>2]<<o,t.value.push(0),t.value[r+1]|=n.value[e>>>2]>>>h;return(t.value.length<<2)-4>=s+i&&t.value.pop(),{value:t.value,binLen:t.binLen+n.binLen}}return{value:t.value.concat(n.value),binLen:t.binLen+n.binLen}}function l(t){const n={outputUpper:!1,b64Pad:"=",outputLen:-1},e=t||{},r="Output length must be a multiple of 8";if(n.outputUpper=e.outputUpper||!1,e.b64Pad&&(n.b64Pad=e.b64Pad),e.outputLen){if(e.outputLen%8!=0)throw new Error(r);n.outputLen=e.outputLen}else if(e.shakeLen){if(e.shakeLen%8!=0)throw new Error(r);n.outputLen=e.shakeLen}if("boolean"!=typeof n.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof n.b64Pad)throw new Error("Invalid b64Pad formatting option");return n}function A(t,n,e,r){const s=t+" must include a value and format";if(!n){if(!r)throw new Error(s);return r}if(void 0===n.value||!n.format)throw new Error(s);return i(n.format,n.encoding||"UTF8",e)(n.value)}class E{constructor(t,n,e){const r=e||{};if(this.t=n,this.i=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=t,this.h=[],this.u=0,this.l=!1,this.A=0,this.H=!1,this.S=[],this.p=[]}update(t){let n,e=0;const r=this.m>>>5,i=this.C(t,this.h,this.u),s=i.binLen,o=i.value,h=s>>>5;for(n=0;n<h;n+=r)e+this.m<=s&&(this.U=this.v(o.slice(n,n+r),this.U),e+=this.m);return this.A+=e,this.h=o.slice(e>>>5),this.u=s%this.m,this.l=!0,this}getHash(t,n){let e,r,i=this.R;const o=l(n);if(this.K){if(-1===o.outputLen)throw new Error("Output length must be specified in options");i=o.outputLen}const h=s(t,i,this.T,o);if(this.H&&this.g)return h(this.g(o));for(r=this.F(this.h.slice(),this.u,this.A,this.L(this.U),i),e=1;e<this.numRounds;e+=1)this.K&&i%32!=0&&(r[r.length-1]&=0xffffff>>>24-i%32),r=this.F(r,i,0,this.B(this.o),i);return h(r)}setHMACKey(t,n,e){if(!this.M)throw new Error("Variant does not support HMAC");if(this.l)throw new Error("Cannot set MAC key after calling update");const r=i(n,(e||{}).encoding||"UTF8",this.T);this.k(r(t))}k(t){const n=this.m>>>3,e=n/4-1;let r;if(1!==this.numRounds)throw new Error(f);if(this.H)throw new Error("MAC key already set");for(n<t.binLen/8&&(t.value=this.F(t.value,t.binLen,0,this.B(this.o),this.R));t.value.length<=e;)t.value.push(0);for(r=0;r<=e;r+=1)this.S[r]=0x36363636^t.value[r],this.p[r]=0x5c5c5c5c^t.value[r];this.U=this.v(this.S,this.U),this.A=this.m,this.H=!0}getHMAC(t,n){const e=l(n);return s(t,this.R,this.T,e)(this.Y())}Y(){let t;if(!this.H)throw new Error("Cannot call getHMAC without first setting MAC key");const n=this.F(this.h.slice(),this.u,this.A,this.L(this.U),this.R);return t=this.v(this.p,this.B(this.o)),t=this.F(n,this.R,this.m,t,this.R)}}function H(t,n){return t<<n|t>>>32-n}function S(t,n){return t>>>n|t<<32-n}function b(t,n){return t>>>n}function p(t,n,e){return t^n^e}function d(t,n,e){return t&n^~t&e}function m(t,n,e){return t&n^t&e^n&e}function C(t){return S(t,2)^S(t,13)^S(t,22)}function y(t,n){const e=(65535&t)+(65535&n);return(65535&(t>>>16)+(n>>>16)+(e>>>16))<<16|65535&e}function U(t,n,e,r){const i=(65535&t)+(65535&n)+(65535&e)+(65535&r);return(65535&(t>>>16)+(n>>>16)+(e>>>16)+(r>>>16)+(i>>>16))<<16|65535&i}function v(t,n,e,r,i){const s=(65535&t)+(65535&n)+(65535&e)+(65535&r)+(65535&i);return(65535&(t>>>16)+(n>>>16)+(e>>>16)+(r>>>16)+(i>>>16)+(s>>>16))<<16|65535&s}function R(t){return S(t,7)^S(t,18)^b(t,3)}function K(t){return S(t,6)^S(t,11)^S(t,25)}function T(t){return[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]}function g(t,n){let e,r,i,s,o,h,u;const w=[];for(e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],u=0;u<80;u+=1)w[u]=u<16?t[u]:H(w[u-3]^w[u-8]^w[u-14]^w[u-16],1),h=u<20?v(H(e,5),d(r,i,s),o,0x5a827999,w[u]):u<40?v(H(e,5),p(r,i,s),o,0x6ed9eba1,w[u]):u<60?v(H(e,5),m(r,i,s),o,0x8f1bbcdc,w[u]):v(H(e,5),p(r,i,s),o,0xca62c1d6,w[u]),o=s,s=i,i=H(r,30),r=e,e=h;return n[0]=y(e,n[0]),n[1]=y(r,n[1]),n[2]=y(i,n[2]),n[3]=y(s,n[3]),n[4]=y(o,n[4]),n}function F(t,n,e,r){let i;const s=15+(n+65>>>9<<4),h=n+e;for(;t.length<=s;)t.push(0);for(t[n>>>5]|=128<<24-n%32,t[s]=0|h,t[s-1]=h/o|0,i=0;i<t.length;i+=16)r=g(t.slice(i,i+16),r);return r}let L=class extends E{constructor(t,n,e){if("SHA-1"!==t)throw new Error(c);super(t,n,e);const r=e||{};this.M=!0,this.g=this.Y,this.T=-1,this.C=i(this.t,this.i,this.T),this.v=g,this.L=function(t){return t.slice()},this.B=T,this.F=F,this.U=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.m=512,this.R=160,this.K=!1,r.hmacKey&&this.k(A("hmacKey",r.hmacKey,this.T))}};function B(t){return"SHA-224"==t?u.slice():w.slice()}function M(t,n){let e,r,i,s,o,u,w,c,f,a,l;const A=[];for(e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],u=n[5],w=n[6],c=n[7],l=0;l<64;l+=1)A[l]=l<16?t[l]:U(S(E=A[l-2],17)^S(E,19)^b(E,10),A[l-7],R(A[l-15]),A[l-16]),f=v(c,K(o),d(o,u,w),h[l],A[l]),a=y(C(e),m(e,r,i)),c=w,w=u,u=o,o=y(s,f),s=i,i=r,r=e,e=y(f,a);var E;return n[0]=y(e,n[0]),n[1]=y(r,n[1]),n[2]=y(i,n[2]),n[3]=y(s,n[3]),n[4]=y(o,n[4]),n[5]=y(u,n[5]),n[6]=y(w,n[6]),n[7]=y(c,n[7]),n}let k=class extends E{constructor(t,n,e){if("SHA-224"!==t&&"SHA-256"!==t)throw new Error(c);super(t,n,e);const r=e||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=i(this.t,this.i,this.T),this.v=M,this.L=function(t){return t.slice()},this.B=B,this.F=function(n,e,r,i){return function(t,n,e,r,i){let s;const u=15+(n+65>>>9<<4),w=n+e;for(;t.length<=u;)t.push(0);for(t[n>>>5]|=128<<24-n%32,t[u]=0|w,t[u-1]=w/o|0,s=0;s<t.length;s+=16)r=M(t.slice(s,s+16),r);return"SHA-224"===i?[r[0],r[1],r[2],r[3],r[4],r[5],r[6]]:r}(n,e,r,i,t)},this.U=B(t),this.m=512,this.R="SHA-224"===t?224:256,this.K=!1,r.hmacKey&&this.k(A("hmacKey",r.hmacKey,this.T))}};class Y{constructor(t,n){this.N=t,this.I=n}}function N(t,n){let e;return n>32?(e=64-n,new Y(t.I<<n|t.N>>>e,t.N<<n|t.I>>>e)):0!==n?(e=32-n,new Y(t.N<<n|t.I>>>e,t.I<<n|t.N>>>e)):t}function I(t,n){let e;return n<32?(e=32-n,new Y(t.N>>>n|t.I<<e,t.I>>>n|t.N<<e)):(e=64-n,new Y(t.I>>>n|t.N<<e,t.N>>>n|t.I<<e))}function X(t,n){return new Y(t.N>>>n,t.I>>>n|t.N<<32-n)}function z(t,n,e){return new Y(t.N&n.N^t.N&e.N^n.N&e.N,t.I&n.I^t.I&e.I^n.I&e.I)}function x(t){const n=I(t,28),e=I(t,34),r=I(t,39);return new Y(n.N^e.N^r.N,n.I^e.I^r.I)}function _(t,n){let e,r;e=(65535&t.I)+(65535&n.I),r=(t.I>>>16)+(n.I>>>16)+(e>>>16);const i=(65535&r)<<16|65535&e;e=(65535&t.N)+(65535&n.N)+(r>>>16),r=(t.N>>>16)+(n.N>>>16)+(e>>>16);return new Y((65535&r)<<16|65535&e,i)}function O(t,n,e,r){let i,s;i=(65535&t.I)+(65535&n.I)+(65535&e.I)+(65535&r.I),s=(t.I>>>16)+(n.I>>>16)+(e.I>>>16)+(r.I>>>16)+(i>>>16);const o=(65535&s)<<16|65535&i;i=(65535&t.N)+(65535&n.N)+(65535&e.N)+(65535&r.N)+(s>>>16),s=(t.N>>>16)+(n.N>>>16)+(e.N>>>16)+(r.N>>>16)+(i>>>16);return new Y((65535&s)<<16|65535&i,o)}function P(t,n,e,r,i){let s,o;s=(65535&t.I)+(65535&n.I)+(65535&e.I)+(65535&r.I)+(65535&i.I),o=(t.I>>>16)+(n.I>>>16)+(e.I>>>16)+(r.I>>>16)+(i.I>>>16)+(s>>>16);const h=(65535&o)<<16|65535&s;s=(65535&t.N)+(65535&n.N)+(65535&e.N)+(65535&r.N)+(65535&i.N)+(o>>>16),o=(t.N>>>16)+(n.N>>>16)+(e.N>>>16)+(r.N>>>16)+(i.N>>>16)+(s>>>16);return new Y((65535&o)<<16|65535&s,h)}function V(t,n){return new Y(t.N^n.N,t.I^n.I)}function Z(t){const n=I(t,19),e=I(t,61),r=X(t,6);return new Y(n.N^e.N^r.N,n.I^e.I^r.I)}function j(t){const n=I(t,1),e=I(t,8),r=X(t,7);return new Y(n.N^e.N^r.N,n.I^e.I^r.I)}function q(t){const n=I(t,14),e=I(t,18),r=I(t,41);return new Y(n.N^e.N^r.N,n.I^e.I^r.I)}const D=[new Y(h[0],0xd728ae22),new Y(h[1],0x23ef65cd),new Y(h[2],0xec4d3b2f),new Y(h[3],0x8189dbbc),new Y(h[4],0xf348b538),new Y(h[5],0xb605d019),new Y(h[6],0xaf194f9b),new Y(h[7],0xda6d8118),new Y(h[8],0xa3030242),new Y(h[9],0x45706fbe),new Y(h[10],0x4ee4b28c),new Y(h[11],0xd5ffb4e2),new Y(h[12],0xf27b896f),new Y(h[13],0x3b1696b1),new Y(h[14],0x25c71235),new Y(h[15],0xcf692694),new Y(h[16],0x9ef14ad2),new Y(h[17],0x384f25e3),new Y(h[18],0x8b8cd5b5),new Y(h[19],0x77ac9c65),new Y(h[20],0x592b0275),new Y(h[21],0x6ea6e483),new Y(h[22],0xbd41fbd4),new Y(h[23],0x831153b5),new Y(h[24],0xee66dfab),new Y(h[25],0x2db43210),new Y(h[26],0x98fb213f),new Y(h[27],0xbeef0ee4),new Y(h[28],0x3da88fc2),new Y(h[29],0x930aa725),new Y(h[30],0xe003826f),new Y(h[31],0xa0e6e70),new Y(h[32],0x46d22ffc),new Y(h[33],0x5c26c926),new Y(h[34],0x5ac42aed),new Y(h[35],0x9d95b3df),new Y(h[36],0x8baf63de),new Y(h[37],0x3c77b2a8),new Y(h[38],0x47edaee6),new Y(h[39],0x1482353b),new Y(h[40],0x4cf10364),new Y(h[41],0xbc423001),new Y(h[42],0xd0f89791),new Y(h[43],0x654be30),new Y(h[44],0xd6ef5218),new Y(h[45],0x5565a910),new Y(h[46],0x5771202a),new Y(h[47],0x32bbd1b8),new Y(h[48],0xb8d2d0c8),new Y(h[49],0x5141ab53),new Y(h[50],0xdf8eeb99),new Y(h[51],0xe19b48a8),new Y(h[52],0xc5c95a63),new Y(h[53],0xe3418acb),new Y(h[54],0x7763e373),new Y(h[55],0xd6b2b8a3),new Y(h[56],0x5defb2fc),new Y(h[57],0x43172f60),new Y(h[58],0xa1f0ab72),new Y(h[59],0x1a6439ec),new Y(h[60],0x23631e28),new Y(h[61],0xde82bde9),new Y(h[62],0xb2c67915),new Y(h[63],0xe372532b),new Y(0xca273ece,0xea26619c),new Y(0xd186b8c7,0x21c0c207),new Y(0xeada7dd6,0xcde0eb1e),new Y(0xf57d4f7f,0xee6ed178),new Y(0x6f067aa,0x72176fba),new Y(0xa637dc5,0xa2c898a6),new Y(0x113f9804,0xbef90dae),new Y(0x1b710b35,0x131c471b),new Y(0x28db77f5,0x23047d84),new Y(0x32caab7b,0x40c72493),new Y(0x3c9ebe0a,0x15c9bebc),new Y(0x431d67c4,0x9c100d4c),new Y(0x4cc5d4be,0xcb3e42b6),new Y(0x597f299c,0xfc657e2a),new Y(0x5fcb6fab,0x3ad6faec),new Y(0x6c44198c,0x4a475817)];function G(t){return"SHA-384"===t?[new Y(0xcbbb9d5d,u[0]),new Y(0x629a292a,u[1]),new Y(0x9159015a,u[2]),new Y(0x152fecd8,u[3]),new Y(0x67332667,u[4]),new Y(0x98eb44a87,u[5]),new Y(0xdb0c2e0d,u[6]),new Y(0x47b5481d,u[7])]:[new Y(w[0],0xf3bcc908),new Y(w[1],0x84caa73b),new Y(w[2],0xfe94f82b),new Y(w[3],0x5f1d36f1),new Y(w[4],0xade682d1),new Y(w[5],0x2b3e6c1f),new Y(w[6],0xfb41bd6b),new Y(w[7],0x137e2179)]}function J(t,n){let e,r,i,s,o,h,u,w,c,f,a,l;const A=[];for(e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],h=n[5],u=n[6],w=n[7],a=0;a<80;a+=1)a<16?(l=2*a,A[a]=new Y(t[l],t[l+1])):A[a]=O(Z(A[a-2]),A[a-7],j(A[a-15]),A[a-16]),c=P(w,q(o),(H=h,S=u,new Y((E=o).N&H.N^~E.N&S.N,E.I&H.I^~E.I&S.I)),D[a],A[a]),f=_(x(e),z(e,r,i)),w=u,u=h,h=o,o=_(s,c),s=i,i=r,r=e,e=_(c,f);var E,H,S;return n[0]=_(e,n[0]),n[1]=_(r,n[1]),n[2]=_(i,n[2]),n[3]=_(s,n[3]),n[4]=_(o,n[4]),n[5]=_(h,n[5]),n[6]=_(u,n[6]),n[7]=_(w,n[7]),n}let Q=class extends E{constructor(t,n,e){if("SHA-384"!==t&&"SHA-512"!==t)throw new Error(c);super(t,n,e);const r=e||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=i(this.t,this.i,this.T),this.v=J,this.L=function(t){return t.slice()},this.B=G,this.F=function(n,e,r,i){return function(t,n,e,r,i){let s;const u=31+(n+129>>>10<<5),w=n+e;for(;t.length<=u;)t.push(0);for(t[n>>>5]|=128<<24-n%32,t[u]=0|w,t[u-1]=w/o|0,s=0;s<t.length;s+=32)r=J(t.slice(s,s+32),r);return"SHA-384"===i?[r[0].N,r[0].I,r[1].N,r[1].I,r[2].N,r[2].I,r[3].N,r[3].I,r[4].N,r[4].I,r[5].N,r[5].I]:[r[0].N,r[0].I,r[1].N,r[1].I,r[2].N,r[2].I,r[3].N,r[3].I,r[4].N,r[4].I,r[5].N,r[5].I,r[6].N,r[6].I,r[7].N,r[7].I]}(n,e,r,i,t)},this.U=G(t),this.m=1024,this.R="SHA-384"===t?384:512,this.K=!1,r.hmacKey&&this.k(A("hmacKey",r.hmacKey,this.T))}};const W=[new Y(0,1),new Y(0,32898),new Y(0x80000000,32906),new Y(0x80000000,0x80008000),new Y(0,32907),new Y(0,0x80000001),new Y(0x80000000,0x80008081),new Y(0x80000000,32777),new Y(0,138),new Y(0,136),new Y(0,0x80008009),new Y(0,0x8000000a),new Y(0,0x8000808b),new Y(0x80000000,139),new Y(0x80000000,32905),new Y(0x80000000,32771),new Y(0x80000000,32770),new Y(0x80000000,128),new Y(0,32778),new Y(0x80000000,0x8000000a),new Y(0x80000000,0x80008081),new Y(0x80000000,32896),new Y(0,0x80000001),new Y(0x80000000,0x80008008)],$=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function tt(t){let n;const e=[];for(n=0;n<5;n+=1)e[n]=[new Y(0,0),new Y(0,0),new Y(0,0),new Y(0,0),new Y(0,0)];return e}function nt(t){let n;const e=[];for(n=0;n<5;n+=1)e[n]=t[n].slice();return e}function et(t,n){let e,r,i,s;const o=[],h=[];if(null!==t)for(r=0;r<t.length;r+=2)n[(r>>>1)%5][(r>>>1)/5|0]=V(n[(r>>>1)%5][(r>>>1)/5|0],new Y(t[r+1],t[r]));for(e=0;e<24;e+=1){for(s=tt(),r=0;r<5;r+=1)o[r]=(u=n[r][0],w=n[r][1],c=n[r][2],f=n[r][3],a=n[r][4],new Y(u.N^w.N^c.N^f.N^a.N,u.I^w.I^c.I^f.I^a.I));for(r=0;r<5;r+=1)h[r]=V(o[(r+4)%5],N(o[(r+1)%5],1));for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)n[r][i]=V(n[r][i],h[r]);for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)s[i][(2*r+3*i)%5]=N(n[r][i],$[r][i]);for(r=0;r<5;r+=1)for(i=0;i<5;i+=1)n[r][i]=V(s[r][i],new Y(~s[(r+1)%5][i].N&s[(r+2)%5][i].N,~s[(r+1)%5][i].I&s[(r+2)%5][i].I));n[0][0]=V(n[0][0],W[e])}var u,w,c,f,a;return n}function rt(t){let n,e,r=0;const i=[0,0],s=[0|t,t/o&2097151];for(n=6;n>=0;n--)e=s[n>>2]>>>8*n&255,0===e&&0===r||(i[r+1>>2]|=e<<8*(r+1),r+=1);return r=0!==r?r:1,i[0]|=r,{value:r+1>4?i:[i[0]],binLen:8+8*r}}function it(t){return a(rt(t.binLen),t)}function st(t,n){let e,r=rt(n);r=a(r,t);const i=n>>>2,s=(i-r.value.length%i)%i;for(e=0;e<s;e++)r.value.push(0);return r.value}let ot=class extends E{constructor(t,n,e){let r=6,s=0;super(t,n,e);const o=e||{};if(1!==this.numRounds){if(o.kmacKey||o.hmacKey)throw new Error(f);if("CSHAKE128"===this.o||"CSHAKE256"===this.o)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.T=1,this.C=i(this.t,this.i,this.T),this.v=et,this.L=nt,this.B=tt,this.U=tt(),this.K=!1,t){case"SHA3-224":this.m=s=1152,this.R=224,this.M=!0,this.g=this.Y;break;case"SHA3-256":this.m=s=1088,this.R=256,this.M=!0,this.g=this.Y;break;case"SHA3-384":this.m=s=832,this.R=384,this.M=!0,this.g=this.Y;break;case"SHA3-512":this.m=s=576,this.R=512,this.M=!0,this.g=this.Y;break;case"SHAKE128":r=31,this.m=s=1344,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"SHAKE256":r=31,this.m=s=1088,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"KMAC128":r=4,this.m=s=1344,this.X(e),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"KMAC256":r=4,this.m=s=1088,this.X(e),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"CSHAKE128":this.m=s=1344,r=this.O(e),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"CSHAKE256":this.m=s=1088,r=this.O(e),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;default:throw new Error(c)}this.F=function(t,n,e,i,o){return function(t,n,e,r,i,s,o){let h,u,w=0;const c=[],f=i>>>5,a=n>>>5;for(h=0;h<a&&n>=i;h+=f)r=et(t.slice(h,h+f),r),n-=i;for(t=t.slice(h),n%=i;t.length<f;)t.push(0);for(h=n>>>3,t[h>>2]^=s<<h%4*8,t[f-1]^=0x80000000,r=et(t,r);32*c.length<o&&(u=r[w%5][w/5|0],c.push(u.I),!(32*c.length>=o));)c.push(u.N),w+=1,0==64*w%i&&(et(null,r),w=0);return c}(t,n,0,i,s,r,o)},o.hmacKey&&this.k(A("hmacKey",o.hmacKey,this.T))}O(t,n){const e=function(t){const n=t||{};return{funcName:A("funcName",n.funcName,1,{value:[],binLen:0}),customization:A("Customization",n.customization,1,{value:[],binLen:0})}}(t||{});n&&(e.funcName=n);const r=a(it(e.funcName),it(e.customization));if(0!==e.customization.binLen||0!==e.funcName.binLen){const t=st(r,this.m>>>3);for(let n=0;n<t.length;n+=this.m>>>5)this.U=this.v(t.slice(n,n+(this.m>>>5)),this.U),this.A+=this.m;return 4}return 31}X(t){const n=function(t){const n=t||{};return{kmacKey:A("kmacKey",n.kmacKey,1),funcName:{value:[0x43414d4b],binLen:32},customization:A("Customization",n.customization,1,{value:[],binLen:0})}}(t||{});this.O(t,n.funcName);const e=st(it(n.kmacKey),this.m>>>3);for(let t=0;t<e.length;t+=this.m>>>5)this.U=this.v(e.slice(t,t+(this.m>>>5)),this.U),this.A+=this.m;this.H=!0}_(t){const n=a({value:this.h.slice(),binLen:this.u},function(t){let n,e,r=0;const i=[0,0],s=[0|t,t/o&2097151];for(n=6;n>=0;n--)e=s[n>>2]>>>8*n&255,0===e&&0===r||(i[r>>2]|=e<<8*r,r+=1);return r=0!==r?r:1,i[r>>2]|=r<<8*r,{value:r+1>4?i:[i[0]],binLen:8+8*r}}(t.outputLen));return this.F(n.value,n.binLen,this.A,this.L(this.U),t.outputLen)}};class ht{constructor(t,n,e){if("SHA-1"==t)this.P=new L(t,n,e);else if("SHA-224"==t||"SHA-256"==t)this.P=new k(t,n,e);else if("SHA-384"==t||"SHA-512"==t)this.P=new Q(t,n,e);else{if("SHA3-224"!=t&&"SHA3-256"!=t&&"SHA3-384"!=t&&"SHA3-512"!=t&&"SHAKE128"!=t&&"SHAKE256"!=t&&"CSHAKE128"!=t&&"CSHAKE256"!=t&&"KMAC128"!=t&&"KMAC256"!=t)throw new Error(c);this.P=new ot(t,n,e)}}update(t){return this.P.update(t),this}getHash(t,n){return this.P.getHash(t,n)}setHMACKey(t,n,e){this.P.setHMACKey(t,n,e)}getHMAC(t,n){return this.P.getHMAC(t,n)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useConnectorAddMutation(): import("@tanstack/react-query").UseMutationResult<import("../../gen/IntegrationsApi").ConnectorAddResponse, Error, number, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useConnectorCatalogQuery(): import("@tanstack/react-query").UseQueryResult<import("../../gen/IntegrationsApi").ConnectorCatalogResponse, Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useConnectorDeleteMutation(): import("@tanstack/react-query").UseMutationResult<void, Error, number, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useSynchroJobConfigQuery(recipeId: number | null, jobId: number | null): import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useSynchroRunMutation(): import("@tanstack/react-query").UseMutationResult<any, Error, number, unknown>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type ScheduleData = {
|
|
2
|
+
days: string[];
|
|
3
|
+
hour: number;
|
|
4
|
+
minute: number;
|
|
5
|
+
frequency?: string;
|
|
6
|
+
tasks: string[];
|
|
7
|
+
};
|
|
8
|
+
export declare function useCreateScheduleMutation(): import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
9
|
+
recipeCustomerId: number;
|
|
10
|
+
data: ScheduleData;
|
|
11
|
+
}, unknown>;
|
|
12
|
+
export declare function useUpdateScheduleMutation(): import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
13
|
+
recipeCustomerId: number;
|
|
14
|
+
scheduleId: number;
|
|
15
|
+
data: ScheduleData;
|
|
16
|
+
}, unknown>;
|
|
17
|
+
export declare function useDeleteScheduleMutation(): import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
18
|
+
recipeCustomerId: number;
|
|
19
|
+
scheduleId: number;
|
|
20
|
+
}, unknown>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export type RecipeTask = {
|
|
2
|
+
id: number;
|
|
3
|
+
recipe_customer_id: number;
|
|
4
|
+
job_name_fr: string;
|
|
5
|
+
startedAt: string | null;
|
|
6
|
+
finishedAt: string | null;
|
|
7
|
+
runDuration: number | null;
|
|
8
|
+
finished: boolean;
|
|
9
|
+
error: boolean;
|
|
10
|
+
trace_count: number;
|
|
11
|
+
github_job: string | null;
|
|
12
|
+
grafana_url: string | null;
|
|
13
|
+
connector_from?: ConnectorInfo;
|
|
14
|
+
connector_to?: ConnectorInfo;
|
|
15
|
+
};
|
|
16
|
+
export type RecipeJob = {
|
|
17
|
+
id: number;
|
|
18
|
+
task: string;
|
|
19
|
+
task_fr: string;
|
|
20
|
+
order: number;
|
|
21
|
+
/** Current config values — expected to match ConnectorConfigResponse shape once backend is ready */
|
|
22
|
+
settings: Record<string, unknown> | null;
|
|
23
|
+
active: boolean;
|
|
24
|
+
lastTask?: RecipeTask;
|
|
25
|
+
connector_from?: ConnectorInfo;
|
|
26
|
+
connector_to?: ConnectorInfo;
|
|
27
|
+
};
|
|
28
|
+
export type RecipeSchedule = {
|
|
29
|
+
id: number;
|
|
30
|
+
days: string[];
|
|
31
|
+
hour: number | null;
|
|
32
|
+
minute: number | null;
|
|
33
|
+
frequency: string | null;
|
|
34
|
+
tasks: string[];
|
|
35
|
+
draft: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type ConnectorInfo = {
|
|
38
|
+
id: number;
|
|
39
|
+
name: string;
|
|
40
|
+
codename: string;
|
|
41
|
+
logo_key: string | null;
|
|
42
|
+
};
|
|
43
|
+
export type Recipe = {
|
|
44
|
+
id: number;
|
|
45
|
+
name: string;
|
|
46
|
+
description: string | null;
|
|
47
|
+
connector_id_from: number;
|
|
48
|
+
connector_id_to: number;
|
|
49
|
+
connector_from?: ConnectorInfo;
|
|
50
|
+
connector_to?: ConnectorInfo;
|
|
51
|
+
};
|
|
52
|
+
export type RecipeCustomer = {
|
|
53
|
+
id: number;
|
|
54
|
+
company_id: string;
|
|
55
|
+
recipe_id: number;
|
|
56
|
+
active: boolean;
|
|
57
|
+
recipe: Recipe;
|
|
58
|
+
lastTask?: RecipeTask;
|
|
59
|
+
};
|
|
60
|
+
export type RecipeDetail = {
|
|
61
|
+
id: number;
|
|
62
|
+
active: boolean;
|
|
63
|
+
recipe: Recipe;
|
|
64
|
+
jobs: RecipeJob[];
|
|
65
|
+
schedules: RecipeSchedule[];
|
|
66
|
+
tasks: RecipeTask[];
|
|
67
|
+
};
|
package/dist/mf/@mf-types/compiled-types/components/connectors/delete-active-connector-modal.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function openDeleteActiveConnectorModal(name: string, onConfirm: () => void): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validates the user input from the "type DELETE to confirm" modal.
|
|
3
|
+
* Strict equality (case-sensitive, no trim) to force a deliberate gesture
|
|
4
|
+
* and prevent accidental autocorrect / lowercase matches.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isDeleteConfirmInput(input: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ListCatalogComponent(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type DateBoundaryValue = string;
|
|
2
|
+
type Props = {
|
|
3
|
+
label?: string | null;
|
|
4
|
+
help?: string | null;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
value: DateBoundaryValue | null;
|
|
8
|
+
onChange: (value: DateBoundaryValue) => void;
|
|
9
|
+
variant: 'start' | 'end';
|
|
10
|
+
};
|
|
11
|
+
export declare function InputDateBoundary({ label, help, required, disabled, value, onChange, variant, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
label?: string | null;
|
|
3
|
+
help?: string | null;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
value: string | null;
|
|
7
|
+
onChange: (value: string | null) => void;
|
|
8
|
+
error?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function InputGsheetsSelector({ label, help, required, disabled, value, onChange, error, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type FieldConfig = {
|
|
2
|
+
type: string | null;
|
|
3
|
+
name: string | null;
|
|
4
|
+
label?: string | null;
|
|
5
|
+
help?: string | null;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
full?: any;
|
|
11
|
+
};
|
|
12
|
+
type Section = {
|
|
13
|
+
fields: FieldConfig[];
|
|
14
|
+
};
|
|
15
|
+
type Props = {
|
|
16
|
+
config: {
|
|
17
|
+
data?: {
|
|
18
|
+
sections: Section[];
|
|
19
|
+
initialData: Record<string, any>;
|
|
20
|
+
};
|
|
21
|
+
isPending: boolean;
|
|
22
|
+
};
|
|
23
|
+
save: {
|
|
24
|
+
mutate: (values: any) => void;
|
|
25
|
+
isPending: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare function SynchroDynamicForm({ config, save }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RecipeDetail, RecipeJob } from '@/src/api/synchro/types.ts';
|
|
2
|
+
type Props = {
|
|
3
|
+
detail: RecipeDetail;
|
|
4
|
+
onConfigJob: (job: RecipeJob) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function SynchroFunctions({ detail, onConfigJob }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RecipeJob } from '@/src/api/synchro/types.ts';
|
|
2
|
+
type Props = {
|
|
3
|
+
job: RecipeJob | null;
|
|
4
|
+
recipeId: number;
|
|
5
|
+
opened: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function JobConfigModal({ job, recipeId, opened, onClose }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RecipeCustomer } from '@/src/api/synchro/types.ts';
|
|
2
|
+
type Props = {
|
|
3
|
+
recipes: RecipeCustomer[];
|
|
4
|
+
selectedId: number | null;
|
|
5
|
+
onSelect: (id: number) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function SynchroList({ recipes, selectedId, onSelect }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RecipeJob, RecipeSchedule } from '@/src/api/synchro/types.ts';
|
|
2
|
+
type Props = {
|
|
3
|
+
schedules: RecipeSchedule[];
|
|
4
|
+
jobs: RecipeJob[];
|
|
5
|
+
recipeCustomerId: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function SynchroSchedules({ schedules, jobs, recipeCustomerId }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
export interface AddConnectorV1Params {
|
|
2
|
+
cid: string;
|
|
3
|
+
}
|
|
4
|
+
export interface CatalogItem {
|
|
5
|
+
codename: string;
|
|
6
|
+
description_fr: string | null;
|
|
7
|
+
id: number;
|
|
8
|
+
logo_key: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
original_codename: string;
|
|
11
|
+
sharing_method: string;
|
|
12
|
+
type: {
|
|
13
|
+
codename: string;
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface ConnectorAddRequest {
|
|
19
|
+
connector_id: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ConnectorAddResponse {
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ConnectorCatalogResponse {
|
|
26
|
+
list: CatalogItem[];
|
|
27
|
+
}
|
|
1
28
|
export interface ConnectorConfigResponse {
|
|
2
29
|
initialData: object;
|
|
3
30
|
sections: FormSectionConfig[];
|
|
@@ -42,9 +69,16 @@ export interface ConnectorsStatsResponse {
|
|
|
42
69
|
maintenance: number;
|
|
43
70
|
ok: number;
|
|
44
71
|
}
|
|
72
|
+
export interface DeleteConnectorV1Params {
|
|
73
|
+
cid: string;
|
|
74
|
+
connector: number;
|
|
75
|
+
}
|
|
45
76
|
export interface FormSectionConfig {
|
|
46
77
|
fields: object[];
|
|
47
78
|
}
|
|
79
|
+
export interface GetCatalogConnectorsV1Params {
|
|
80
|
+
cid: string;
|
|
81
|
+
}
|
|
48
82
|
export interface GetConnectorConfigV1Params {
|
|
49
83
|
cid: string;
|
|
50
84
|
connector: number;
|
|
@@ -118,6 +152,40 @@ export declare namespace Connectors {
|
|
|
118
152
|
type RequestHeaders = {};
|
|
119
153
|
type ResponseBody = ConnectorsListResponse;
|
|
120
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* No description
|
|
157
|
+
* @tags Connectors
|
|
158
|
+
* @name GetCatalogConnectorsV1
|
|
159
|
+
* @request GET:/v1/connectors/{cid}/catalog
|
|
160
|
+
* @secure
|
|
161
|
+
* @response `200` `ConnectorCatalogResponse`
|
|
162
|
+
*/
|
|
163
|
+
namespace GetCatalogConnectorsV1 {
|
|
164
|
+
type RequestParams = {
|
|
165
|
+
cid: string;
|
|
166
|
+
};
|
|
167
|
+
type RequestQuery = {};
|
|
168
|
+
type RequestBody = never;
|
|
169
|
+
type RequestHeaders = {};
|
|
170
|
+
type ResponseBody = ConnectorCatalogResponse;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* No description
|
|
174
|
+
* @tags Connectors
|
|
175
|
+
* @name AddConnectorV1
|
|
176
|
+
* @request POST:/v1/connectors/{cid}/add
|
|
177
|
+
* @secure
|
|
178
|
+
* @response `201` `ConnectorAddResponse`
|
|
179
|
+
*/
|
|
180
|
+
namespace AddConnectorV1 {
|
|
181
|
+
type RequestParams = {
|
|
182
|
+
cid: string;
|
|
183
|
+
};
|
|
184
|
+
type RequestQuery = {};
|
|
185
|
+
type RequestBody = ConnectorAddRequest;
|
|
186
|
+
type RequestHeaders = {};
|
|
187
|
+
type ResponseBody = ConnectorAddResponse;
|
|
188
|
+
}
|
|
121
189
|
/**
|
|
122
190
|
* No description
|
|
123
191
|
* @tags Connectors
|
|
@@ -169,10 +237,28 @@ export declare namespace Connectors {
|
|
|
169
237
|
type RequestHeaders = {};
|
|
170
238
|
type ResponseBody = ConnectorSaveDataResponse;
|
|
171
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* No description
|
|
242
|
+
* @tags Connectors
|
|
243
|
+
* @name DeleteConnectorV1
|
|
244
|
+
* @request DELETE:/v1/connectors/{cid}/{connector}
|
|
245
|
+
* @secure
|
|
246
|
+
* @response `200` `void`
|
|
247
|
+
*/
|
|
248
|
+
namespace DeleteConnectorV1 {
|
|
249
|
+
type RequestParams = {
|
|
250
|
+
cid: string;
|
|
251
|
+
connector: number;
|
|
252
|
+
};
|
|
253
|
+
type RequestQuery = {};
|
|
254
|
+
type RequestBody = never;
|
|
255
|
+
type RequestHeaders = {};
|
|
256
|
+
type ResponseBody = void;
|
|
257
|
+
}
|
|
172
258
|
}
|
|
173
259
|
export type QueryParamsType = Record<string | number, any>;
|
|
174
|
-
export type ResponseFormat = keyof Omit<Body,
|
|
175
|
-
export interface FullRequestParams extends Omit<RequestInit,
|
|
260
|
+
export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
261
|
+
export interface FullRequestParams extends Omit<RequestInit, 'body'> {
|
|
176
262
|
/** set parameter to `true` for call `securityWorker` for this request */
|
|
177
263
|
secure?: boolean;
|
|
178
264
|
/** request path */
|
|
@@ -190,10 +276,10 @@ export interface FullRequestParams extends Omit<RequestInit, "body"> {
|
|
|
190
276
|
/** request cancellation token */
|
|
191
277
|
cancelToken?: CancelToken;
|
|
192
278
|
}
|
|
193
|
-
export type RequestParams = Omit<FullRequestParams,
|
|
279
|
+
export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
|
|
194
280
|
export interface ApiConfig<SecurityDataType = unknown> {
|
|
195
281
|
baseUrl?: string;
|
|
196
|
-
baseApiParams?: Omit<RequestParams,
|
|
282
|
+
baseApiParams?: Omit<RequestParams, 'baseUrl' | 'cancelToken' | 'signal'>;
|
|
197
283
|
securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
|
|
198
284
|
customFetch?: typeof fetch;
|
|
199
285
|
}
|
|
@@ -279,6 +365,26 @@ export declare class IntegrationsApi<SecurityDataType extends unknown> {
|
|
|
279
365
|
* @response `200` `ConnectorsListResponse`
|
|
280
366
|
*/
|
|
281
367
|
getIllConnectorsV1: ({ cid, ...query }: GetIllConnectorsV1Params, params?: RequestParams) => Promise<HttpResponse<ConnectorsListResponse, any>>;
|
|
368
|
+
/**
|
|
369
|
+
* No description
|
|
370
|
+
*
|
|
371
|
+
* @tags Connectors
|
|
372
|
+
* @name GetCatalogConnectorsV1
|
|
373
|
+
* @request GET:/v1/connectors/{cid}/catalog
|
|
374
|
+
* @secure
|
|
375
|
+
* @response `200` `ConnectorCatalogResponse`
|
|
376
|
+
*/
|
|
377
|
+
getCatalogConnectorsV1: ({ cid, ...query }: GetCatalogConnectorsV1Params, params?: RequestParams) => Promise<HttpResponse<ConnectorCatalogResponse, any>>;
|
|
378
|
+
/**
|
|
379
|
+
* No description
|
|
380
|
+
*
|
|
381
|
+
* @tags Connectors
|
|
382
|
+
* @name AddConnectorV1
|
|
383
|
+
* @request POST:/v1/connectors/{cid}/add
|
|
384
|
+
* @secure
|
|
385
|
+
* @response `201` `ConnectorAddResponse`
|
|
386
|
+
*/
|
|
387
|
+
addConnectorV1: ({ cid, ...query }: AddConnectorV1Params, data: ConnectorAddRequest, params?: RequestParams) => Promise<HttpResponse<ConnectorAddResponse, any>>;
|
|
282
388
|
/**
|
|
283
389
|
* No description
|
|
284
390
|
*
|
|
@@ -306,6 +412,16 @@ export declare class IntegrationsApi<SecurityDataType extends unknown> {
|
|
|
306
412
|
* @response `200` `ConnectorSaveDataResponse`
|
|
307
413
|
*/
|
|
308
414
|
putConnectorDataV1: ({ connector, cid, ...query }: PutConnectorDataV1Params, data: ConnectorSaveDataRequest, params?: RequestParams) => Promise<HttpResponse<ConnectorSaveDataResponse, any>>;
|
|
415
|
+
/**
|
|
416
|
+
* No description
|
|
417
|
+
*
|
|
418
|
+
* @tags Connectors
|
|
419
|
+
* @name DeleteConnectorV1
|
|
420
|
+
* @request DELETE:/v1/connectors/{cid}/{connector}
|
|
421
|
+
* @secure
|
|
422
|
+
* @response `200` `void`
|
|
423
|
+
*/
|
|
424
|
+
deleteConnectorV1: ({ connector, cid, ...query }: DeleteConnectorV1Params, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
309
425
|
};
|
|
310
426
|
}
|
|
311
427
|
export {};
|
|
@@ -5,7 +5,7 @@ export type AppConfigConnectorSingle = {
|
|
|
5
5
|
token: string;
|
|
6
6
|
api: string;
|
|
7
7
|
colorScheme: string;
|
|
8
|
-
connectorItem?:
|
|
8
|
+
connectorItem?: object;
|
|
9
9
|
};
|
|
10
10
|
export declare const AppConfigConnectorSingleProvider: import("react").Provider<AppConfigConnectorSingle | null>;
|
|
11
11
|
export declare function useAppConfigConnectorSingle(): AppConfigConnectorSingle;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type AppConfigSynchro = {
|
|
2
|
+
owner: string;
|
|
3
|
+
company: string;
|
|
4
|
+
token: string;
|
|
5
|
+
api: string;
|
|
6
|
+
colorScheme: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const AppConfigSynchroProvider: import("react").Provider<AppConfigSynchro | null>;
|
|
9
|
+
export declare function useAppConfigSynchro(): AppConfigSynchro;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MantineColorScheme } from '@mantine/core';
|
|
2
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { PropsWithChildren } from 'react';
|
|
4
|
+
import { AppConfigSynchro } from '@/src/hooks/useAppConfigSynchro.tsx';
|
|
5
|
+
export type ProvidersSynchroProps = PropsWithChildren<{
|
|
6
|
+
config: AppConfigSynchro;
|
|
7
|
+
mantine?: {
|
|
8
|
+
defaultColorScheme?: MantineColorScheme;
|
|
9
|
+
forceColorScheme?: Exclude<MantineColorScheme, 'auto'>;
|
|
10
|
+
};
|
|
11
|
+
tanstack?: {
|
|
12
|
+
queryClient?: QueryClient;
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
export declare function ProvidersSynchro(props: ProvidersSynchroProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SynchroApp(): import("react/jsx-runtime").JSX.Element;
|