@airporting/tech-app 0.0.167 → 0.0.169

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/9669.js CHANGED
@@ -7,4 +7,4 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
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},5893:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(631)},4148:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{h:()=>useApi});var _src_gen_TechApi_index_ts__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9056);var _src_hooks_useAppConfig_ts__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7936);function useApi(){const config=(0,_src_hooks_useAppConfig_ts__WEBPACK_IMPORTED_MODULE_0__.M)();const client=new _src_gen_TechApi_index_ts__WEBPACK_IMPORTED_MODULE_1__.eN({baseUrl:config.api.replace(/\/$/,""),baseApiParams:{headers:{Authorization:config.token?`Bearer ${config.token}`:"",From:config.owner}}});return new _src_gen_TechApi_index_ts__WEBPACK_IMPORTED_MODULE_1__.eT(client)}},9561:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{_:()=>ConsoleQueryProgress});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5893);var _tanstack_react_query__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6197);var _LoadingProgress__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9488);function ConsoleQueryProgress(){const fetching=(0,_tanstack_react_query__WEBPACK_IMPORTED_MODULE_1__.useIsFetching)({predicate:q=>q.getObserversCount()>0&&!q.queryKey.includes("ping")});const mutations=(0,_tanstack_react_query__WEBPACK_IMPORTED_MODULE_1__.useIsMutating)();if(!fetching&&!mutations)return null;return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"console-query-progress",children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_LoadingProgress__WEBPACK_IMPORTED_MODULE_2__.A,{label:mutations?"Mise \xe0 jour en cours…":"Chargement des donn\xe9es…"})})}},9488:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:()=>LoadingProgress});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5893);__webpack_require__(7500);function LoadingProgress({label}){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"loading-progress",role:"status","aria-live":"polite",children:[/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{children:label}),/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("progress",{"aria-label":label})]})}},9056:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{eN:()=>HttpClient,eT:()=>TechApi});class HttpClient{baseUrl="";securityData=null;securityWorker;abortControllers=new Map;customFetch=(...fetchParams)=>fetch(...fetchParams);baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};constructor(apiConfig={}){Object.assign(this,apiConfig)}setSecurityData=data=>{this.securityData=data};encodeQueryParam(key,value){const encodedKey=encodeURIComponent(key);return`${encodedKey}=${encodeURIComponent("number"==typeof value?value:`${value}`)}`}addQueryParam(query,key){return this.encodeQueryParam(key,query[key])}addArrayQueryParam(query,key){const value=query[key];return value.map(v=>this.encodeQueryParam(key,v)).join("&")}toQueryString(rawQuery){const query=rawQuery||{};const keys=Object.keys(query).filter(key=>void 0!==query[key]);return keys.map(key=>Array.isArray(query[key])?this.addArrayQueryParam(query,key):this.addQueryParam(query,key)).join("&")}addQueryParams(rawQuery){const queryString=this.toQueryString(rawQuery);return queryString?`?${queryString}`:""}contentFormatters={["application/json"]:input=>null!==input&&("object"==typeof input||"string"==typeof input)?JSON.stringify(input):input,["application/vnd.api+json"]:input=>null!==input&&("object"==typeof input||"string"==typeof input)?JSON.stringify(input):input,["text/plain"]:input=>null!==input&&"string"!=typeof input?JSON.stringify(input):input,["multipart/form-data"]:input=>{if(input instanceof FormData)return input;return Object.keys(input||{}).reduce((formData,key)=>{const property=input[key];formData.append(key,property instanceof Blob?property:"object"==typeof property&&null!==property?JSON.stringify(property):`${property}`);return formData},new FormData)},["application/x-www-form-urlencoded"]:input=>this.toQueryString(input)};mergeRequestParams(params1,params2){return{...this.baseApiParams,...params1,...params2||{},headers:{...this.baseApiParams.headers||{},...params1.headers||{},...params2&&params2.headers||{}}}}createAbortSignal=cancelToken=>{if(this.abortControllers.has(cancelToken)){const abortController=this.abortControllers.get(cancelToken);if(abortController)return abortController.signal;return}const abortController=new AbortController;this.abortControllers.set(cancelToken,abortController);return abortController.signal};abortRequest=cancelToken=>{const abortController=this.abortControllers.get(cancelToken);if(abortController){abortController.abort();this.abortControllers.delete(cancelToken)}};request=async({body,secure,path,type,query,format,baseUrl,cancelToken,...params})=>{const secureParams=("boolean"==typeof secure?secure:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{};const requestParams=this.mergeRequestParams(params,secureParams);const queryString=query&&this.toQueryString(query);const payloadFormatter=this.contentFormatters[type||"application/json"];const responseFormat=format||requestParams.format;return this.customFetch(`${baseUrl||this.baseUrl||""}${path}${queryString?`?${queryString}`:""}`,{...requestParams,headers:{...requestParams.headers||{},...type&&"multipart/form-data"!==type?{"Content-Type":type}:{}},signal:(cancelToken?this.createAbortSignal(cancelToken):requestParams.signal)||null,body:null==body?null:payloadFormatter(body)}).then(async response=>{const r=response;r.data=null;r.error=null;const responseToParse=responseFormat?response.clone():response;const data=responseFormat?await responseToParse[responseFormat]().then(data=>{if(r.ok)r.data=data;else r.error=data;return r}).catch(e=>{r.error=e;return r}):r;if(cancelToken)this.abortControllers.delete(cancelToken);if(!response.ok)throw data;return data})}}class TechApi{http;constructor(http){this.http=http}status=(params={})=>this.http.request({path:"/status",method:"GET",...params});getDashboard=(params={})=>this.http.request({path:"/dashboard",method:"GET",format:"json",...params});getScrapers=(params={})=>this.http.request({path:"/scrapers",method:"GET",format:"json",...params});getCompanies=(params={})=>this.http.request({path:"/companies",method:"GET",format:"json",...params});webhook={postSmsWebhook:(query,params={})=>this.http.request({path:"/sms/webhook",method:"POST",query:query,...params})};amex={getTransactionsV1:(query,params={})=>this.http.request({path:"/v1/amex/transactions",method:"GET",query:query,...params})};etatSaisie={getLatestV1:(params={})=>this.http.request({path:"/v1/etat-saisie/latest",method:"GET",format:"json",...params}),getDossiersV1:(params={})=>this.http.request({path:"/v1/etat-saisie/dossiers",method:"GET",format:"json",...params}),setManagedV1:({id,...query},data,params={})=>this.http.request({path:`/v1/etat-saisie/dossiers/${id}`,method:"PATCH",body:data,type:"application/json",format:"json",...params}),setConnectorManagedV1:({id,provider,...query},data,params={})=>this.http.request({path:`/v1/etat-saisie/dossiers/${id}/connectors/${provider}`,method:"PATCH",body:data,type:"application/json",format:"json",...params}),setResponsableV1:({id,...query},data,params={})=>this.http.request({path:`/v1/etat-saisie/dossiers/${id}/responsable`,method:"PATCH",body:data,type:"application/json",format:"json",...params}),setReconciliationMuteV1:(data,params={})=>this.http.request({path:"/v1/etat-saisie/reconciliation-mute",method:"PATCH",body:data,type:"application/json",format:"json",...params}),recomputeV1:(params={})=>this.http.request({path:"/v1/etat-saisie/recompute",method:"POST",format:"json",...params})};sales={listLeadsV1:(query,params={})=>this.http.request({path:"/v1/sales/leads",method:"GET",query:query,format:"json",...params}),createLeadV1:(data,params={})=>this.http.request({path:"/v1/sales/leads",method:"POST",body:data,type:"application/json",format:"json",...params}),syncStateV1:(params={})=>this.http.request({path:"/v1/sales/sync-state",method:"GET",format:"json",...params}),getLeadV1:({id,...query},params={})=>this.http.request({path:`/v1/sales/leads/${id}`,method:"GET",format:"json",...params}),updateLeadV1:({id,...query},data,params={})=>this.http.request({path:`/v1/sales/leads/${id}`,method:"PATCH",body:data,type:"application/json",format:"json",...params}),deleteLeadV1:({id,...query},params={})=>this.http.request({path:`/v1/sales/leads/${id}`,method:"DELETE",format:"json",...params}),reconstructV1:({id,...query},params={})=>this.http.request({path:`/v1/sales/leads/${id}/reconstruct`,method:"POST",format:"json",...params}),enrichLeadV1:({id,...query},params={})=>this.http.request({path:`/v1/sales/leads/${id}/enrich`,method:"POST",query:query,format:"json",...params}),setLifecycleV1:({id,...query},data,params={})=>this.http.request({path:`/v1/sales/leads/${id}/lifecycle`,method:"POST",body:data,type:"application/json",format:"json",...params}),addCommentV1:({id,...query},data,params={})=>this.http.request({path:`/v1/sales/leads/${id}/comment`,method:"POST",body:data,type:"application/json",format:"json",...params}),rescanV1:(params={})=>this.http.request({path:"/v1/sales/rescan",method:"POST",format:"json",...params}),recordScanRunV1:(data,params={})=>this.http.request({path:"/v1/sales/scan-runs",method:"POST",body:data,type:"application/json",format:"json",...params}),scanRunSummaryV1:(params={})=>this.http.request({path:"/v1/sales/scan-runs/summary",method:"GET",format:"json",...params}),listDealsV1:(query,params={})=>this.http.request({path:"/v1/sales/deals",method:"GET",query:query,format:"json",...params}),listDealStagesV1:(params={})=>this.http.request({path:"/v1/sales/deal-stages",method:"GET",format:"json",...params}),createDealV1:(data,params={})=>this.http.request({path:"/v1/sales/deals",method:"POST",body:data,type:"application/json",format:"json",...params}),updateDealV1:({id,...query},data,params={})=>this.http.request({path:`/v1/sales/deals/${id}`,method:"PATCH",body:data,type:"application/json",format:"json",...params}),deleteDealV1:({id,...query},params={})=>this.http.request({path:`/v1/sales/deals/${id}`,method:"DELETE",format:"json",...params}),exportDealsV1:(params={})=>this.http.request({path:"/v1/sales/deals/export",method:"POST",format:"json",...params})};financeJobs={getStockV1:(query,params={})=>this.http.request({path:"/v1/finance-jobs/stock",method:"GET",query:query,format:"json",...params}),listTasksV1:(query,params={})=>this.http.request({path:"/v1/finance-jobs/tasks",method:"GET",query:query,format:"json",...params}),unstickV1:({id,...query},params={})=>this.http.request({path:`/v1/finance-jobs/tasks/${id}/unstick`,method:"POST",format:"json",...params}),retryV1:({id,...query},params={})=>this.http.request({path:`/v1/finance-jobs/tasks/${id}/retry`,method:"POST",format:"json",...params}),discardV1:({id,...query},params={})=>this.http.request({path:`/v1/finance-jobs/tasks/${id}/discard`,method:"POST",format:"json",...params}),setOwnerV1:({id,...query},data,params={})=>this.http.request({path:`/v1/finance-jobs/tasks/${id}/owner`,method:"PUT",body:data,type:"application/json",format:"json",...params}),deleteRedisLockV1:({id,...query},params={})=>this.http.request({path:`/v1/finance-jobs/tasks/${id}/redis-lock`,method:"DELETE",format:"json",...params}),runRecipeV1:(data,params={})=>this.http.request({path:"/v1/finance-jobs/run-recipe",method:"POST",body:data,type:"application/json",format:"json",...params}),getRunnersV1:(params={})=>this.http.request({path:"/v1/finance-jobs/runners",method:"GET",format:"json",...params})};github={getJobsRunnersV1:(params={})=>this.http.request({path:"/v1/github/jobs/runners",method:"GET",format:"json",...params}),getLabelsV1:({host,...query},params={})=>this.http.request({path:`/v1/github/labels/${host}`,method:"GET",format:"json",...params}),getJobLogsV1:(query,params={})=>this.http.request({path:"/v1/github/job-logs",method:"GET",query:query,format:"json",...params})};gsheet={getStockV1:(query,params={})=>this.http.request({path:"/v1/gsheet/stock",method:"GET",query:query,format:"json",...params}),listTasksV1:(query,params={})=>this.http.request({path:"/v1/gsheet/tasks",method:"GET",query:query,format:"json",...params}),unstickV1:({id,...query},params={})=>this.http.request({path:`/v1/gsheet/tasks/${id}/unstick`,method:"POST",format:"json",...params}),discardV1:({id,...query},params={})=>this.http.request({path:`/v1/gsheet/tasks/${id}/discard`,method:"POST",format:"json",...params}),setOwnerV1:({id,...query},data,params={})=>this.http.request({path:`/v1/gsheet/tasks/${id}/owner`,method:"PUT",body:data,type:"application/json",format:"json",...params}),deleteRedisLockV1:({id,...query},params={})=>this.http.request({path:`/v1/gsheet/tasks/${id}/redis-lock`,method:"DELETE",format:"json",...params})};connectorToken={getConnectorToken:(params={})=>this.http.request({path:"/internal/connector-token",method:"GET",format:"json",...params})};mcpAccess={getAccessV1:(params={})=>this.http.request({path:"/v1/mcp-access",method:"GET",format:"json",...params}),getAdminsV1:(params={})=>this.http.request({path:"/v1/mcp-access/admins",method:"GET",format:"json",...params}),setAdminsV1:(data,params={})=>this.http.request({path:"/v1/mcp-access/admins",method:"PUT",body:data,type:"application/json",...params}),deleteUserAccessV1:({email,...query},params={})=>this.http.request({path:`/v1/mcp-access/${email}`,method:"DELETE",...params}),setUserAccessV1:({email,...query},data,params={})=>this.http.request({path:`/v1/mcp-access/${email}`,method:"PUT",body:data,type:"application/json",...params})};notion={getKikouV1:(params={})=>this.http.request({path:"/v1/notion/kikou",method:"GET",format:"json",...params})};payfit={getChartV1:(query,params={})=>this.http.request({path:"/v1/payfit/chart",method:"GET",query:query,...params})};synchro={getRunStatsV1:(params={})=>this.http.request({path:"/v1/synchro/run/stats",method:"GET",format:"json",...params}),getTasksV1:(query,params={})=>this.http.request({path:"/v1/synchro/tasks",method:"GET",query:query,format:"json",...params}),getJobsDefaultsV1:(params={})=>this.http.request({path:"/v1/synchro/jobs/defaults",method:"GET",format:"json",...params}),putStopTaskV1:({id,...query},params={})=>this.http.request({path:`/v1/synchro/tasks/stop/${id}`,method:"PUT",...params}),resetOwnerStatsV1:({owner,value,...query},params={})=>this.http.request({path:`/v1/synchro/run/stats/${owner}/${value}`,method:"PUT",...params})};usage={getChargeV1:(query,params={})=>this.http.request({path:"/v1/usage/charge",method:"GET",query:query,format:"json",...params})}}},7936:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{$:()=>AppConfigProvider,M:()=>useAppConfig});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5850);const AppConfigCtx=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);const AppConfigProvider=AppConfigCtx.Provider;function useAppConfig(){const config=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(AppConfigCtx);if(!config)throw new Error("Called `useAppConfig` outside a `<AppConfigProvider />`");return config}},7034:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{C:()=>Providers});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5893);var _airporting_app_front__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1380);var _mantine_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(207);var _mantine_modals__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4142);var _mantine_notifications__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1455);var _tanstack_react_query__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6197);var radash__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9877);var react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(5850);var _components_ConsoleQueryProgress__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9561);var _hooks_useAppConfig__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7936);const theme=(0,_mantine_core__WEBPACK_IMPORTED_MODULE_2__.createTheme)((0,radash__WEBPACK_IMPORTED_MODULE_6__.assign)(_airporting_app_front__WEBPACK_IMPORTED_MODULE_1__.theme,{components:{}}));const cssVarResolver=x=>(0,radash__WEBPACK_IMPORTED_MODULE_6__.assign)(_airporting_app_front__WEBPACK_IMPORTED_MODULE_1__.cssVarResolver(x),{dark:{},light:{},variables:{}});function Providers(props){const{children,config,mantine,tanstack}=props;const[defaultClient]=(0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(()=>new _tanstack_react_query__WEBPACK_IMPORTED_MODULE_5__.QueryClient);return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_hooks_useAppConfig__WEBPACK_IMPORTED_MODULE_9__.$,{value:config,children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_tanstack_react_query__WEBPACK_IMPORTED_MODULE_5__.QueryClientProvider,{client:tanstack?.queryClient??defaultClient,children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.MantineProvider,{theme:theme,cssVariablesResolver:cssVarResolver,defaultColorScheme:mantine?.defaultColorScheme,forceColorScheme:mantine?.forceColorScheme,children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_mantine_modals__WEBPACK_IMPORTED_MODULE_3__.ModalsProvider,{children:[/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_mantine_notifications__WEBPACK_IMPORTED_MODULE_4__.Notifications,{position:"top-right",zIndex:400}),config.consoleLoading&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ConsoleQueryProgress__WEBPACK_IMPORTED_MODULE_8__._,{}),children]})})})})}}}]);
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},5893:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(631)},4148:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{h:()=>useApi});var _src_gen_TechApi_index_ts__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9056);var _src_hooks_useAppConfig_ts__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7936);function useApi(){const config=(0,_src_hooks_useAppConfig_ts__WEBPACK_IMPORTED_MODULE_0__.M)();const client=new _src_gen_TechApi_index_ts__WEBPACK_IMPORTED_MODULE_1__.eN({baseUrl:config.api.replace(/\/$/,""),baseApiParams:{credentials:"include",headers:{From:config.owner}}});return new _src_gen_TechApi_index_ts__WEBPACK_IMPORTED_MODULE_1__.eT(client)}},9561:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{_:()=>ConsoleQueryProgress});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5893);var _tanstack_react_query__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6197);var _LoadingProgress__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9488);function ConsoleQueryProgress(){const fetching=(0,_tanstack_react_query__WEBPACK_IMPORTED_MODULE_1__.useIsFetching)({predicate:q=>q.getObserversCount()>0&&!q.queryKey.includes("ping")});const mutations=(0,_tanstack_react_query__WEBPACK_IMPORTED_MODULE_1__.useIsMutating)();if(!fetching&&!mutations)return null;return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div",{className:"console-query-progress",children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_LoadingProgress__WEBPACK_IMPORTED_MODULE_2__.A,{label:mutations?"Mise \xe0 jour en cours…":"Chargement des donn\xe9es…"})})}},9488:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A:()=>LoadingProgress});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5893);__webpack_require__(7500);function LoadingProgress({label}){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div",{className:"loading-progress",role:"status","aria-live":"polite",children:[/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span",{children:label}),/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("progress",{"aria-label":label})]})}},9056:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{eN:()=>HttpClient,eT:()=>TechApi});class HttpClient{baseUrl="";securityData=null;securityWorker;abortControllers=new Map;customFetch=(...fetchParams)=>fetch(...fetchParams);baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};constructor(apiConfig={}){Object.assign(this,apiConfig)}setSecurityData=data=>{this.securityData=data};encodeQueryParam(key,value){const encodedKey=encodeURIComponent(key);return`${encodedKey}=${encodeURIComponent("number"==typeof value?value:`${value}`)}`}addQueryParam(query,key){return this.encodeQueryParam(key,query[key])}addArrayQueryParam(query,key){const value=query[key];return value.map(v=>this.encodeQueryParam(key,v)).join("&")}toQueryString(rawQuery){const query=rawQuery||{};const keys=Object.keys(query).filter(key=>void 0!==query[key]);return keys.map(key=>Array.isArray(query[key])?this.addArrayQueryParam(query,key):this.addQueryParam(query,key)).join("&")}addQueryParams(rawQuery){const queryString=this.toQueryString(rawQuery);return queryString?`?${queryString}`:""}contentFormatters={["application/json"]:input=>null!==input&&("object"==typeof input||"string"==typeof input)?JSON.stringify(input):input,["application/vnd.api+json"]:input=>null!==input&&("object"==typeof input||"string"==typeof input)?JSON.stringify(input):input,["text/plain"]:input=>null!==input&&"string"!=typeof input?JSON.stringify(input):input,["multipart/form-data"]:input=>{if(input instanceof FormData)return input;return Object.keys(input||{}).reduce((formData,key)=>{const property=input[key];formData.append(key,property instanceof Blob?property:"object"==typeof property&&null!==property?JSON.stringify(property):`${property}`);return formData},new FormData)},["application/x-www-form-urlencoded"]:input=>this.toQueryString(input)};mergeRequestParams(params1,params2){return{...this.baseApiParams,...params1,...params2||{},headers:{...this.baseApiParams.headers||{},...params1.headers||{},...params2&&params2.headers||{}}}}createAbortSignal=cancelToken=>{if(this.abortControllers.has(cancelToken)){const abortController=this.abortControllers.get(cancelToken);if(abortController)return abortController.signal;return}const abortController=new AbortController;this.abortControllers.set(cancelToken,abortController);return abortController.signal};abortRequest=cancelToken=>{const abortController=this.abortControllers.get(cancelToken);if(abortController){abortController.abort();this.abortControllers.delete(cancelToken)}};request=async({body,secure,path,type,query,format,baseUrl,cancelToken,...params})=>{const secureParams=("boolean"==typeof secure?secure:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{};const requestParams=this.mergeRequestParams(params,secureParams);const queryString=query&&this.toQueryString(query);const payloadFormatter=this.contentFormatters[type||"application/json"];const responseFormat=format||requestParams.format;return this.customFetch(`${baseUrl||this.baseUrl||""}${path}${queryString?`?${queryString}`:""}`,{...requestParams,headers:{...requestParams.headers||{},...type&&"multipart/form-data"!==type?{"Content-Type":type}:{}},signal:(cancelToken?this.createAbortSignal(cancelToken):requestParams.signal)||null,body:null==body?null:payloadFormatter(body)}).then(async response=>{const r=response;r.data=null;r.error=null;const responseToParse=responseFormat?response.clone():response;const data=responseFormat?await responseToParse[responseFormat]().then(data=>{if(r.ok)r.data=data;else r.error=data;return r}).catch(e=>{r.error=e;return r}):r;if(cancelToken)this.abortControllers.delete(cancelToken);if(!response.ok)throw data;return data})}}class TechApi{http;constructor(http){this.http=http}status=(params={})=>this.http.request({path:"/status",method:"GET",...params});getDashboard=(params={})=>this.http.request({path:"/dashboard",method:"GET",format:"json",...params});getScrapers=(params={})=>this.http.request({path:"/scrapers",method:"GET",format:"json",...params});getCompanies=(params={})=>this.http.request({path:"/companies",method:"GET",format:"json",...params});webhook={postSmsWebhook:(query,params={})=>this.http.request({path:"/sms/webhook",method:"POST",query:query,...params})};amex={getTransactionsV1:(query,params={})=>this.http.request({path:"/v1/amex/transactions",method:"GET",query:query,...params})};etatSaisie={getLatestV1:(params={})=>this.http.request({path:"/v1/etat-saisie/latest",method:"GET",format:"json",...params}),getDossiersV1:(params={})=>this.http.request({path:"/v1/etat-saisie/dossiers",method:"GET",format:"json",...params}),setManagedV1:({id,...query},data,params={})=>this.http.request({path:`/v1/etat-saisie/dossiers/${id}`,method:"PATCH",body:data,type:"application/json",format:"json",...params}),setConnectorManagedV1:({id,provider,...query},data,params={})=>this.http.request({path:`/v1/etat-saisie/dossiers/${id}/connectors/${provider}`,method:"PATCH",body:data,type:"application/json",format:"json",...params}),setResponsableV1:({id,...query},data,params={})=>this.http.request({path:`/v1/etat-saisie/dossiers/${id}/responsable`,method:"PATCH",body:data,type:"application/json",format:"json",...params}),setReconciliationMuteV1:(data,params={})=>this.http.request({path:"/v1/etat-saisie/reconciliation-mute",method:"PATCH",body:data,type:"application/json",format:"json",...params}),recomputeV1:(params={})=>this.http.request({path:"/v1/etat-saisie/recompute",method:"POST",format:"json",...params})};mcpAccess={getAccessV1:(params={})=>this.http.request({path:"/v1/mcp-access",method:"GET",format:"json",...params}),getAdminsV1:(params={})=>this.http.request({path:"/v1/mcp-access/admins",method:"GET",format:"json",...params}),setAdminsV1:(data,params={})=>this.http.request({path:"/v1/mcp-access/admins",method:"PUT",body:data,type:"application/json",...params}),deleteUserAccessV1:({email,...query},params={})=>this.http.request({path:`/v1/mcp-access/${email}`,method:"DELETE",...params}),setUserAccessV1:({email,...query},data,params={})=>this.http.request({path:`/v1/mcp-access/${email}`,method:"PUT",body:data,type:"application/json",...params})};sales={listLeadsV1:(query,params={})=>this.http.request({path:"/v1/sales/leads",method:"GET",query:query,format:"json",...params}),createLeadV1:(data,params={})=>this.http.request({path:"/v1/sales/leads",method:"POST",body:data,type:"application/json",format:"json",...params}),syncStateV1:(params={})=>this.http.request({path:"/v1/sales/sync-state",method:"GET",format:"json",...params}),getLeadV1:({id,...query},params={})=>this.http.request({path:`/v1/sales/leads/${id}`,method:"GET",format:"json",...params}),updateLeadV1:({id,...query},data,params={})=>this.http.request({path:`/v1/sales/leads/${id}`,method:"PATCH",body:data,type:"application/json",format:"json",...params}),deleteLeadV1:({id,...query},params={})=>this.http.request({path:`/v1/sales/leads/${id}`,method:"DELETE",format:"json",...params}),reconstructV1:({id,...query},params={})=>this.http.request({path:`/v1/sales/leads/${id}/reconstruct`,method:"POST",format:"json",...params}),enrichLeadV1:({id,...query},params={})=>this.http.request({path:`/v1/sales/leads/${id}/enrich`,method:"POST",query:query,format:"json",...params}),setLifecycleV1:({id,...query},data,params={})=>this.http.request({path:`/v1/sales/leads/${id}/lifecycle`,method:"POST",body:data,type:"application/json",format:"json",...params}),addCommentV1:({id,...query},data,params={})=>this.http.request({path:`/v1/sales/leads/${id}/comment`,method:"POST",body:data,type:"application/json",format:"json",...params}),rescanV1:(params={})=>this.http.request({path:"/v1/sales/rescan",method:"POST",format:"json",...params}),recordScanRunV1:(data,params={})=>this.http.request({path:"/v1/sales/scan-runs",method:"POST",body:data,type:"application/json",format:"json",...params}),scanRunSummaryV1:(params={})=>this.http.request({path:"/v1/sales/scan-runs/summary",method:"GET",format:"json",...params}),listDealStagesV1:(params={})=>this.http.request({path:"/v1/sales/deal-stages",method:"GET",format:"json",...params}),listDealsV1:(query,params={})=>this.http.request({path:"/v1/sales/deals",method:"GET",query:query,format:"json",...params}),createDealV1:(data,params={})=>this.http.request({path:"/v1/sales/deals",method:"POST",body:data,type:"application/json",format:"json",...params}),updateDealV1:({id,...query},data,params={})=>this.http.request({path:`/v1/sales/deals/${id}`,method:"PATCH",body:data,type:"application/json",format:"json",...params}),deleteDealV1:({id,...query},params={})=>this.http.request({path:`/v1/sales/deals/${id}`,method:"DELETE",format:"json",...params}),exportDealsV1:(params={})=>this.http.request({path:"/v1/sales/deals/export",method:"POST",format:"json",...params})};financeJobs={getStockV1:(query,params={})=>this.http.request({path:"/v1/finance-jobs/stock",method:"GET",query:query,format:"json",...params}),listTasksV1:(query,params={})=>this.http.request({path:"/v1/finance-jobs/tasks",method:"GET",query:query,format:"json",...params}),unstickV1:({id,...query},params={})=>this.http.request({path:`/v1/finance-jobs/tasks/${id}/unstick`,method:"POST",format:"json",...params}),retryV1:({id,...query},params={})=>this.http.request({path:`/v1/finance-jobs/tasks/${id}/retry`,method:"POST",format:"json",...params}),discardV1:({id,...query},params={})=>this.http.request({path:`/v1/finance-jobs/tasks/${id}/discard`,method:"POST",format:"json",...params}),setOwnerV1:({id,...query},data,params={})=>this.http.request({path:`/v1/finance-jobs/tasks/${id}/owner`,method:"PUT",body:data,type:"application/json",format:"json",...params}),deleteRedisLockV1:({id,...query},params={})=>this.http.request({path:`/v1/finance-jobs/tasks/${id}/redis-lock`,method:"DELETE",format:"json",...params}),runRecipeV1:(data,params={})=>this.http.request({path:"/v1/finance-jobs/run-recipe",method:"POST",body:data,type:"application/json",format:"json",...params}),getRunnersV1:(params={})=>this.http.request({path:"/v1/finance-jobs/runners",method:"GET",format:"json",...params})};github={getJobsRunnersV1:(params={})=>this.http.request({path:"/v1/github/jobs/runners",method:"GET",format:"json",...params}),getLabelsV1:({host,...query},params={})=>this.http.request({path:`/v1/github/labels/${host}`,method:"GET",format:"json",...params}),getJobLogsV1:(query,params={})=>this.http.request({path:"/v1/github/job-logs",method:"GET",query:query,format:"json",...params})};gsheet={getStockV1:(query,params={})=>this.http.request({path:"/v1/gsheet/stock",method:"GET",query:query,format:"json",...params}),listTasksV1:(query,params={})=>this.http.request({path:"/v1/gsheet/tasks",method:"GET",query:query,format:"json",...params}),unstickV1:({id,...query},params={})=>this.http.request({path:`/v1/gsheet/tasks/${id}/unstick`,method:"POST",format:"json",...params}),discardV1:({id,...query},params={})=>this.http.request({path:`/v1/gsheet/tasks/${id}/discard`,method:"POST",format:"json",...params}),setOwnerV1:({id,...query},data,params={})=>this.http.request({path:`/v1/gsheet/tasks/${id}/owner`,method:"PUT",body:data,type:"application/json",format:"json",...params}),deleteRedisLockV1:({id,...query},params={})=>this.http.request({path:`/v1/gsheet/tasks/${id}/redis-lock`,method:"DELETE",format:"json",...params})};connectorToken={getConnectorToken:(params={})=>this.http.request({path:"/internal/connector-token",method:"GET",format:"json",...params})};notion={getKikouV1:(params={})=>this.http.request({path:"/v1/notion/kikou",method:"GET",format:"json",...params})};payfit={getChartV1:(query,params={})=>this.http.request({path:"/v1/payfit/chart",method:"GET",query:query,...params})};synchro={getRunStatsV1:(params={})=>this.http.request({path:"/v1/synchro/run/stats",method:"GET",format:"json",...params}),getTasksV1:(query,params={})=>this.http.request({path:"/v1/synchro/tasks",method:"GET",query:query,format:"json",...params}),getJobsDefaultsV1:(params={})=>this.http.request({path:"/v1/synchro/jobs/defaults",method:"GET",format:"json",...params}),putStopTaskV1:({id,...query},params={})=>this.http.request({path:`/v1/synchro/tasks/stop/${id}`,method:"PUT",...params}),resetOwnerStatsV1:({owner,value,...query},params={})=>this.http.request({path:`/v1/synchro/run/stats/${owner}/${value}`,method:"PUT",...params})};usage={getChargeV1:(query,params={})=>this.http.request({path:"/v1/usage/charge",method:"GET",query:query,format:"json",...params})}}},7936:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{$:()=>AppConfigProvider,M:()=>useAppConfig});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5850);const AppConfigCtx=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);const AppConfigProvider=AppConfigCtx.Provider;function useAppConfig(){const config=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(AppConfigCtx);if(!config)throw new Error("Called `useAppConfig` outside a `<AppConfigProvider />`");return config}},7034:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{C:()=>Providers});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5893);var _airporting_app_front__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1380);var _mantine_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(207);var _mantine_modals__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4142);var _mantine_notifications__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1455);var _tanstack_react_query__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6197);var radash__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9877);var react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(5850);var _components_ConsoleQueryProgress__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9561);var _hooks_useAppConfig__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7936);const theme=(0,_mantine_core__WEBPACK_IMPORTED_MODULE_2__.createTheme)((0,radash__WEBPACK_IMPORTED_MODULE_6__.assign)(_airporting_app_front__WEBPACK_IMPORTED_MODULE_1__.theme,{components:{}}));const cssVarResolver=x=>(0,radash__WEBPACK_IMPORTED_MODULE_6__.assign)(_airporting_app_front__WEBPACK_IMPORTED_MODULE_1__.cssVarResolver(x),{dark:{},light:{},variables:{}});function Providers(props){const{children,config,mantine,tanstack}=props;const[defaultClient]=(0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(()=>new _tanstack_react_query__WEBPACK_IMPORTED_MODULE_5__.QueryClient);return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_hooks_useAppConfig__WEBPACK_IMPORTED_MODULE_9__.$,{value:config,children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_tanstack_react_query__WEBPACK_IMPORTED_MODULE_5__.QueryClientProvider,{client:tanstack?.queryClient??defaultClient,children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.MantineProvider,{theme:theme,cssVariablesResolver:cssVarResolver,defaultColorScheme:mantine?.defaultColorScheme,forceColorScheme:mantine?.forceColorScheme,children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_mantine_modals__WEBPACK_IMPORTED_MODULE_3__.ModalsProvider,{children:[/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_mantine_notifications__WEBPACK_IMPORTED_MODULE_4__.Notifications,{position:"top-right",zIndex:400}),config.consoleLoading&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_ConsoleQueryProgress__WEBPACK_IMPORTED_MODULE_8__._,{}),children]})})})})}}}]);
@@ -0,0 +1,11 @@
1
+ import type { EtatSaisieReconciliationRow } from '@/src/gen/TechApi';
2
+ export declare function ReconciliationGapBadge({ count }: {
3
+ count: number;
4
+ }): import("react").JSX.Element | null;
5
+ export declare function ReconciliationBalanceCell({ row, historical, }: {
6
+ row: EtatSaisieReconciliationRow;
7
+ historical?: boolean;
8
+ }): import("react").JSX.Element;
9
+ export declare function ReconciliationBalanceNotice({ rows, }: {
10
+ rows: EtatSaisieReconciliationRow[];
11
+ }): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { EtatSaisieBankBalanceReading, EtatSaisieReconciliationRow } from '@/src/gen/TechApi';
2
+ export declare function balanceGap(reading: EtatSaisieBankBalanceReading | null | undefined): number | null;
3
+ export declare function reconciliationGapAlert(row: EtatSaisieReconciliationRow): boolean;
4
+ export declare function reconciliationGapCounts(rows: EtatSaisieReconciliationRow[]): Map<string, number>;
5
+ export declare function maxReconciledGapsByCurrency(rows: EtatSaisieReconciliationRow[]): Map<string, number>;
6
+ export declare function formatBankAmount(amount: number | null, currency: string | null): string;
@@ -86,6 +86,17 @@ export interface EnrichLeadV1Params {
86
86
  id: number;
87
87
  kind: string;
88
88
  }
89
+ export interface EtatSaisieBankBalanceReading {
90
+ accounting_balance: number | null;
91
+ bank_balance: number | null;
92
+ connection_status: string | null;
93
+ currency: string | null;
94
+ current_balance: number | null;
95
+ ecart: number | null;
96
+ last_sync_at: string | null;
97
+ period_end: string;
98
+ period_start: string;
99
+ }
89
100
  export interface EtatSaisieCustomerRow {
90
101
  client: string;
91
102
  devise: string;
@@ -107,7 +118,9 @@ export interface EtatSaisieDossierLine {
107
118
  logo_updated_at: string | null;
108
119
  managed: boolean;
109
120
  management_supplier_invoices_inbox: number | null;
121
+ management_supplier_invoices_inbox_top: EtatSaisiePendingSupplierInvoice[] | null;
110
122
  pending_supplier_invoices: number | null;
123
+ pending_supplier_invoices_top: EtatSaisiePendingSupplierInvoice[] | null;
111
124
  pennylane_company_id: number | null;
112
125
  provision_cp: EtatSaisieProvisionCp;
113
126
  reason: string | null;
@@ -146,11 +159,29 @@ export interface EtatSaisieFactorRow {
146
159
  solde_eur: number;
147
160
  source: string;
148
161
  }
149
- export interface EtatSaisieQualityControl {
150
- detail: string | null;
151
- key: string;
162
+ export interface EtatSaisiePendingSupplierInvoice {
163
+ amount: number | null;
164
+ currency: string | null;
165
+ date: string | null;
166
+ id: number;
167
+ invoice_number: string | null;
152
168
  label: string;
153
- verdict: string;
169
+ status: string | null;
170
+ }
171
+ export interface EtatSaisieProvisionCp {
172
+ /** Solde courant 4282+4382, devise du grand livre. 0 si non mesurable. */
173
+ balance: number;
174
+ /** Clôture à provisionner, ISO YYYY-MM-DD. null si non mesurable. */
175
+ closing_date: string | null;
176
+ /** Date limite de saisie (clôture + un mois). null si non mesurable. */
177
+ deadline: string | null;
178
+ /** Écritures significatives hors à-nouveau, utilisées par le contrôle. */
179
+ entries: EtatSaisieProvisionCpEntry[];
180
+ /** Toutes les écritures des 18 derniers mois, pour le drill. */
181
+ recent_entries: EtatSaisieProvisionCpEntry[];
182
+ status: string;
183
+ /** Dernière écriture de provision dans la fenêtre de clôture. */
184
+ window_entry_date: string | null;
154
185
  }
155
186
  export interface EtatSaisieProvisionCpEntry {
156
187
  account: string;
@@ -162,25 +193,25 @@ export interface EtatSaisieProvisionCpEntry {
162
193
  journal_label: string | null;
163
194
  label: string | null;
164
195
  }
165
- export interface EtatSaisieProvisionCp {
166
- balance: number;
167
- closing_date: string | null;
168
- deadline: string | null;
169
- entries: EtatSaisieProvisionCpEntry[];
170
- status: string;
171
- window_entry_date: string | null;
196
+ export interface EtatSaisieQualityControl {
197
+ detail: string | null;
198
+ key: string;
199
+ label: string;
200
+ verdict: string;
172
201
  }
173
202
  export interface EtatSaisieReconciliationRow {
174
203
  account_id: number;
175
204
  account_name: string | null;
176
205
  airporting_company_id: number;
177
206
  bank_label: string | null;
207
+ current_balance_reading: EtatSaisieBankBalanceReading | null;
178
208
  dossier: string;
179
209
  establishment_id: number | null;
180
210
  last_movement_date: string | null;
181
211
  last_reconciled_period_end: string | null;
182
212
  managed: boolean;
183
213
  muted: boolean;
214
+ reconciled_balance_reading: EtatSaisieBankBalanceReading | null;
184
215
  source: string;
185
216
  unreconciled_since: string | null;
186
217
  }
@@ -441,10 +472,15 @@ export interface GetLeadV1Params {
441
472
  id: number;
442
473
  }
443
474
  export interface GetMcpAccessResponse {
475
+ /** Droits publies (manuel + socle), ce que lit le Worker. */
444
476
  accessMap: object;
445
477
  admins: string[];
446
478
  canEdit: boolean;
447
479
  configuredDossiers: object;
480
+ /** Socle deduit des responsables de la Console compta. */
481
+ derivedMap: object;
482
+ /** Droits saisis a la main, seuls editables. */
483
+ manualMap: object;
448
484
  mcpNames: string[];
449
485
  multiDossierMcps: string[];
450
486
  users: {
@@ -466,7 +502,7 @@ export interface GetRunStatsResponse {
466
502
  currentJobsCounters: UsersRunStatsResponse;
467
503
  }
468
504
  export interface GetSalesDealStagesResponse {
469
- stages: SalesDealStageWithPipelineItem[];
505
+ stages: SalesDealStageRef[];
470
506
  }
471
507
  export interface GetSalesDealsResponse {
472
508
  deals: SalesDealItem[];
@@ -740,7 +776,7 @@ export interface SalesDealStageItem {
740
776
  order_nr: number;
741
777
  total_value: number;
742
778
  }
743
- export interface SalesDealStageWithPipelineItem {
779
+ export interface SalesDealStageRef {
744
780
  id: number;
745
781
  name: string;
746
782
  order_nr: number;
@@ -1168,6 +1204,92 @@ export declare namespace EtatSaisie {
1168
1204
  type ResponseBody = RecomputeEtatSaisieResponse;
1169
1205
  }
1170
1206
  }
1207
+ export declare namespace McpAccess {
1208
+ /**
1209
+ * No description
1210
+ * @tags McpAccess
1211
+ * @name GetAccessV1
1212
+ * @request GET:/v1/mcp-access
1213
+ * @response `200` `GetMcpAccessResponse`
1214
+ */
1215
+ namespace GetAccessV1 {
1216
+ type RequestParams = {};
1217
+ type RequestQuery = {};
1218
+ type RequestBody = never;
1219
+ type RequestHeaders = {
1220
+ from: string;
1221
+ };
1222
+ type ResponseBody = GetMcpAccessResponse;
1223
+ }
1224
+ /**
1225
+ * No description
1226
+ * @tags McpAccess
1227
+ * @name GetAdminsV1
1228
+ * @request GET:/v1/mcp-access/admins
1229
+ * @response `200` `GetAdminsResponse`
1230
+ */
1231
+ namespace GetAdminsV1 {
1232
+ type RequestParams = {};
1233
+ type RequestQuery = {};
1234
+ type RequestBody = never;
1235
+ type RequestHeaders = {
1236
+ from: string;
1237
+ };
1238
+ type ResponseBody = GetAdminsResponse;
1239
+ }
1240
+ /**
1241
+ * No description
1242
+ * @tags McpAccess
1243
+ * @name SetAdminsV1
1244
+ * @request PUT:/v1/mcp-access/admins
1245
+ * @response `200` `void`
1246
+ */
1247
+ namespace SetAdminsV1 {
1248
+ type RequestParams = {};
1249
+ type RequestQuery = {};
1250
+ type RequestBody = SetAdminsBody;
1251
+ type RequestHeaders = {
1252
+ from: string;
1253
+ };
1254
+ type ResponseBody = void;
1255
+ }
1256
+ /**
1257
+ * No description
1258
+ * @tags McpAccess
1259
+ * @name DeleteUserAccessV1
1260
+ * @request DELETE:/v1/mcp-access/{email}
1261
+ * @response `200` `void`
1262
+ */
1263
+ namespace DeleteUserAccessV1 {
1264
+ type RequestParams = {
1265
+ email: string;
1266
+ };
1267
+ type RequestQuery = {};
1268
+ type RequestBody = never;
1269
+ type RequestHeaders = {
1270
+ from: string;
1271
+ };
1272
+ type ResponseBody = void;
1273
+ }
1274
+ /**
1275
+ * No description
1276
+ * @tags McpAccess
1277
+ * @name SetUserAccessV1
1278
+ * @request PUT:/v1/mcp-access/{email}
1279
+ * @response `200` `void`
1280
+ */
1281
+ namespace SetUserAccessV1 {
1282
+ type RequestParams = {
1283
+ email: string;
1284
+ };
1285
+ type RequestQuery = {};
1286
+ type RequestBody = SetUserAccessBody;
1287
+ type RequestHeaders = {
1288
+ from: string;
1289
+ };
1290
+ type ResponseBody = void;
1291
+ }
1292
+ }
1171
1293
  export declare namespace Sales {
1172
1294
  /**
1173
1295
  * No description
@@ -1379,6 +1501,20 @@ export declare namespace Sales {
1379
1501
  type RequestHeaders = {};
1380
1502
  type ResponseBody = ScanRunSummaryResponse;
1381
1503
  }
1504
+ /**
1505
+ * No description
1506
+ * @tags Sales
1507
+ * @name ListDealStagesV1
1508
+ * @request GET:/v1/sales/deal-stages
1509
+ * @response `200` `GetSalesDealStagesResponse`
1510
+ */
1511
+ namespace ListDealStagesV1 {
1512
+ type RequestParams = {};
1513
+ type RequestQuery = {};
1514
+ type RequestBody = never;
1515
+ type RequestHeaders = {};
1516
+ type ResponseBody = GetSalesDealStagesResponse;
1517
+ }
1382
1518
  /**
1383
1519
  * No description
1384
1520
  * @tags Sales
@@ -1396,20 +1532,6 @@ export declare namespace Sales {
1396
1532
  type RequestHeaders = {};
1397
1533
  type ResponseBody = GetSalesDealsResponse;
1398
1534
  }
1399
- /**
1400
- * No description
1401
- * @tags Sales
1402
- * @name ListDealStagesV1
1403
- * @request GET:/v1/sales/deal-stages
1404
- * @response `200` `GetSalesDealStagesResponse`
1405
- */
1406
- namespace ListDealStagesV1 {
1407
- type RequestParams = {};
1408
- type RequestQuery = {};
1409
- type RequestBody = never;
1410
- type RequestHeaders = {};
1411
- type ResponseBody = GetSalesDealStagesResponse;
1412
- }
1413
1535
  /**
1414
1536
  * No description
1415
1537
  * @tags Sales
@@ -1795,92 +1917,6 @@ export declare namespace ConnectorToken {
1795
1917
  type ResponseBody = object;
1796
1918
  }
1797
1919
  }
1798
- export declare namespace McpAccess {
1799
- /**
1800
- * No description
1801
- * @tags McpAccess
1802
- * @name GetAccessV1
1803
- * @request GET:/v1/mcp-access
1804
- * @response `200` `GetMcpAccessResponse`
1805
- */
1806
- namespace GetAccessV1 {
1807
- type RequestParams = {};
1808
- type RequestQuery = {};
1809
- type RequestBody = never;
1810
- type RequestHeaders = {
1811
- from: string;
1812
- };
1813
- type ResponseBody = GetMcpAccessResponse;
1814
- }
1815
- /**
1816
- * No description
1817
- * @tags McpAccess
1818
- * @name GetAdminsV1
1819
- * @request GET:/v1/mcp-access/admins
1820
- * @response `200` `GetAdminsResponse`
1821
- */
1822
- namespace GetAdminsV1 {
1823
- type RequestParams = {};
1824
- type RequestQuery = {};
1825
- type RequestBody = never;
1826
- type RequestHeaders = {
1827
- from: string;
1828
- };
1829
- type ResponseBody = GetAdminsResponse;
1830
- }
1831
- /**
1832
- * No description
1833
- * @tags McpAccess
1834
- * @name SetAdminsV1
1835
- * @request PUT:/v1/mcp-access/admins
1836
- * @response `200` `void`
1837
- */
1838
- namespace SetAdminsV1 {
1839
- type RequestParams = {};
1840
- type RequestQuery = {};
1841
- type RequestBody = SetAdminsBody;
1842
- type RequestHeaders = {
1843
- from: string;
1844
- };
1845
- type ResponseBody = void;
1846
- }
1847
- /**
1848
- * No description
1849
- * @tags McpAccess
1850
- * @name DeleteUserAccessV1
1851
- * @request DELETE:/v1/mcp-access/{email}
1852
- * @response `200` `void`
1853
- */
1854
- namespace DeleteUserAccessV1 {
1855
- type RequestParams = {
1856
- email: string;
1857
- };
1858
- type RequestQuery = {};
1859
- type RequestBody = never;
1860
- type RequestHeaders = {
1861
- from: string;
1862
- };
1863
- type ResponseBody = void;
1864
- }
1865
- /**
1866
- * No description
1867
- * @tags McpAccess
1868
- * @name SetUserAccessV1
1869
- * @request PUT:/v1/mcp-access/{email}
1870
- * @response `200` `void`
1871
- */
1872
- namespace SetUserAccessV1 {
1873
- type RequestParams = {
1874
- email: string;
1875
- };
1876
- type RequestQuery = {};
1877
- type RequestBody = SetUserAccessBody;
1878
- type RequestHeaders = {
1879
- from: string;
1880
- };
1881
- type ResponseBody = void;
1882
- }
1883
- }
1884
1920
  export declare namespace Notion {
1885
1921
  /**
1886
1922
  * No description
@@ -2214,6 +2250,53 @@ export declare class TechApi<SecurityDataType extends unknown> {
2214
2250
  */
2215
2251
  recomputeV1: (params?: RequestParams) => Promise<HttpResponse<RecomputeEtatSaisieResponse, any>>;
2216
2252
  };
2253
+ mcpAccess: {
2254
+ /**
2255
+ * No description
2256
+ *
2257
+ * @tags McpAccess
2258
+ * @name GetAccessV1
2259
+ * @request GET:/v1/mcp-access
2260
+ * @response `200` `GetMcpAccessResponse`
2261
+ */
2262
+ getAccessV1: (params?: RequestParams) => Promise<HttpResponse<GetMcpAccessResponse, any>>;
2263
+ /**
2264
+ * No description
2265
+ *
2266
+ * @tags McpAccess
2267
+ * @name GetAdminsV1
2268
+ * @request GET:/v1/mcp-access/admins
2269
+ * @response `200` `GetAdminsResponse`
2270
+ */
2271
+ getAdminsV1: (params?: RequestParams) => Promise<HttpResponse<GetAdminsResponse, any>>;
2272
+ /**
2273
+ * No description
2274
+ *
2275
+ * @tags McpAccess
2276
+ * @name SetAdminsV1
2277
+ * @request PUT:/v1/mcp-access/admins
2278
+ * @response `200` `void`
2279
+ */
2280
+ setAdminsV1: (data: SetAdminsBody, params?: RequestParams) => Promise<HttpResponse<void, any>>;
2281
+ /**
2282
+ * No description
2283
+ *
2284
+ * @tags McpAccess
2285
+ * @name DeleteUserAccessV1
2286
+ * @request DELETE:/v1/mcp-access/{email}
2287
+ * @response `200` `void`
2288
+ */
2289
+ deleteUserAccessV1: ({ email, ...query }: DeleteUserAccessV1Params, params?: RequestParams) => Promise<HttpResponse<void, any>>;
2290
+ /**
2291
+ * No description
2292
+ *
2293
+ * @tags McpAccess
2294
+ * @name SetUserAccessV1
2295
+ * @request PUT:/v1/mcp-access/{email}
2296
+ * @response `200` `void`
2297
+ */
2298
+ setUserAccessV1: ({ email, ...query }: SetUserAccessV1Params, data: SetUserAccessBody, params?: RequestParams) => Promise<HttpResponse<void, any>>;
2299
+ };
2217
2300
  sales: {
2218
2301
  /**
2219
2302
  * No description
@@ -2336,20 +2419,20 @@ export declare class TechApi<SecurityDataType extends unknown> {
2336
2419
  * No description
2337
2420
  *
2338
2421
  * @tags Sales
2339
- * @name ListDealsV1
2340
- * @request GET:/v1/sales/deals
2341
- * @response `200` `GetSalesDealsResponse`
2422
+ * @name ListDealStagesV1
2423
+ * @request GET:/v1/sales/deal-stages
2424
+ * @response `200` `GetSalesDealStagesResponse`
2342
2425
  */
2343
- listDealsV1: (query: ListDealsV1Params, params?: RequestParams) => Promise<HttpResponse<GetSalesDealsResponse, any>>;
2426
+ listDealStagesV1: (params?: RequestParams) => Promise<HttpResponse<GetSalesDealStagesResponse, any>>;
2344
2427
  /**
2345
2428
  * No description
2346
2429
  *
2347
2430
  * @tags Sales
2348
- * @name ListDealStagesV1
2349
- * @request GET:/v1/sales/deal-stages
2350
- * @response `200` `GetSalesDealStagesResponse`
2431
+ * @name ListDealsV1
2432
+ * @request GET:/v1/sales/deals
2433
+ * @response `200` `GetSalesDealsResponse`
2351
2434
  */
2352
- listDealStagesV1: (params?: RequestParams) => Promise<HttpResponse<GetSalesDealStagesResponse, any>>;
2435
+ listDealsV1: (query: ListDealsV1Params, params?: RequestParams) => Promise<HttpResponse<GetSalesDealsResponse, any>>;
2353
2436
  /**
2354
2437
  * No description
2355
2438
  *
@@ -2566,53 +2649,6 @@ export declare class TechApi<SecurityDataType extends unknown> {
2566
2649
  */
2567
2650
  getConnectorToken: (params?: RequestParams) => Promise<HttpResponse<object, any>>;
2568
2651
  };
2569
- mcpAccess: {
2570
- /**
2571
- * No description
2572
- *
2573
- * @tags McpAccess
2574
- * @name GetAccessV1
2575
- * @request GET:/v1/mcp-access
2576
- * @response `200` `GetMcpAccessResponse`
2577
- */
2578
- getAccessV1: (params?: RequestParams) => Promise<HttpResponse<GetMcpAccessResponse, any>>;
2579
- /**
2580
- * No description
2581
- *
2582
- * @tags McpAccess
2583
- * @name GetAdminsV1
2584
- * @request GET:/v1/mcp-access/admins
2585
- * @response `200` `GetAdminsResponse`
2586
- */
2587
- getAdminsV1: (params?: RequestParams) => Promise<HttpResponse<GetAdminsResponse, any>>;
2588
- /**
2589
- * No description
2590
- *
2591
- * @tags McpAccess
2592
- * @name SetAdminsV1
2593
- * @request PUT:/v1/mcp-access/admins
2594
- * @response `200` `void`
2595
- */
2596
- setAdminsV1: (data: SetAdminsBody, params?: RequestParams) => Promise<HttpResponse<void, any>>;
2597
- /**
2598
- * No description
2599
- *
2600
- * @tags McpAccess
2601
- * @name DeleteUserAccessV1
2602
- * @request DELETE:/v1/mcp-access/{email}
2603
- * @response `200` `void`
2604
- */
2605
- deleteUserAccessV1: ({ email, ...query }: DeleteUserAccessV1Params, params?: RequestParams) => Promise<HttpResponse<void, any>>;
2606
- /**
2607
- * No description
2608
- *
2609
- * @tags McpAccess
2610
- * @name SetUserAccessV1
2611
- * @request PUT:/v1/mcp-access/{email}
2612
- * @response `200` `void`
2613
- */
2614
- setUserAccessV1: ({ email, ...query }: SetUserAccessV1Params, data: SetUserAccessBody, params?: RequestParams) => Promise<HttpResponse<void, any>>;
2615
- };
2616
2652
  notion: {
2617
2653
  /**
2618
2654
  * No description
Binary file