@airporting/tech-app 0.0.139 → 0.0.141

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)}},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},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}),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})};financeJobs={getStockV1:(params={})=>this.http.request({path:"/v1/finance-jobs/stock",method:"GET",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:(params={})=>this.http.request({path:"/v1/gsheet/stock",method:"GET",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})};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}),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})}}},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 _hooks_useAppConfig__WEBPACK_IMPORTED_MODULE_7__=__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;return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_hooks_useAppConfig__WEBPACK_IMPORTED_MODULE_7__.$,{value:config,children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_tanstack_react_query__WEBPACK_IMPORTED_MODULE_5__.QueryClientProvider,{client:tanstack?.queryClient??new _tanstack_react_query__WEBPACK_IMPORTED_MODULE_5__.QueryClient,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,{}),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:{headers:{Authorization:config.token?`Bearer ${config.token}`:"",From:config.owner}}});return new _src_gen_TechApi_index_ts__WEBPACK_IMPORTED_MODULE_1__.eT(client)}},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}),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})};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}),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 _hooks_useAppConfig__WEBPACK_IMPORTED_MODULE_7__=__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;return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_hooks_useAppConfig__WEBPACK_IMPORTED_MODULE_7__.$,{value:config,children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_tanstack_react_query__WEBPACK_IMPORTED_MODULE_5__.QueryClientProvider,{client:tanstack?.queryClient??new _tanstack_react_query__WEBPACK_IMPORTED_MODULE_5__.QueryClient,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,{}),children]})})})})}}}]);
@@ -0,0 +1,11 @@
1
+ import { DealsResponse, MoveDealPayload } from '@/src/apps/pipeline/types.ts';
2
+ type MoveContext = {
3
+ previous: DealsResponse | undefined;
4
+ };
5
+ /**
6
+ * Changement d'etape d'un deal par glisser-deposer. La carte bouge tout de
7
+ * suite grace a une mise a jour optimiste du cache, restauree telle quelle si
8
+ * l'appel echoue.
9
+ */
10
+ export declare function useMoveDealStage(pipeline: string, status: string): import("@tanstack/react-query").UseMutationResult<unknown, any, MoveDealPayload, MoveContext>;
11
+ export {};
@@ -2,7 +2,10 @@ import { DealItem, DealStageItem } from '@/src/apps/pipeline/types.ts';
2
2
  type Props = {
3
3
  deal: DealItem;
4
4
  stages: DealStageItem[];
5
+ isDragging: boolean;
5
6
  onOpen: (id: number) => void;
7
+ onDragStart: (id: number) => void;
8
+ onDragEnd: () => void;
6
9
  };
7
- export declare function DealCard({ deal, stages, onOpen }: Props): import("react").JSX.Element;
10
+ export declare function DealCard({ deal, stages, isDragging, onOpen, onDragStart, onDragEnd, }: Props): import("react").JSX.Element;
8
11
  export {};
@@ -1,8 +1,10 @@
1
1
  import { DealItem, DealStageItem } from '@/src/apps/pipeline/types.ts';
2
2
  type Props = {
3
+ pipeline: string;
4
+ status: string;
3
5
  stages: DealStageItem[];
4
6
  deals: DealItem[];
5
7
  onOpen: (id: number) => void;
6
8
  };
7
- export declare function KanbanBoard({ stages, deals, onOpen }: Props): import("react").JSX.Element;
9
+ export declare function KanbanBoard({ pipeline, status, stages, deals, onOpen, }: Props): import("react").JSX.Element;
8
10
  export {};
@@ -0,0 +1,8 @@
1
+ import { DealsResponse } from '@/src/apps/pipeline/types.ts';
2
+ /**
3
+ * Deplace un deal vers une autre etape dans la reponse en cache et recalcule
4
+ * les agregats (nombre de deals, montant total) des deux etapes concernees.
5
+ * Sans ce recalcul, le compteur et le total affiches en tete de colonne
6
+ * resteraient faux jusqu'au prochain rafraichissement serveur.
7
+ */
8
+ export declare function moveDealToStage(current: DealsResponse, dealId: number, stageId: number): DealsResponse;
@@ -35,3 +35,7 @@ export type DealsResponse = {
35
35
  stages: DealStageItem[];
36
36
  deals: DealItem[];
37
37
  };
38
+ export type MoveDealPayload = {
39
+ id: number;
40
+ stage_id: number;
41
+ };
@@ -81,7 +81,7 @@ export interface EnrichLeadResponse {
81
81
  }
82
82
  export interface EnrichLeadV1Params {
83
83
  id: number;
84
- kind?: string;
84
+ kind: string;
85
85
  }
86
86
  export interface EtatSaisieCustomerRow {
87
87
  client: string;
@@ -92,14 +92,9 @@ export interface EtatSaisieCustomerRow {
92
92
  solde_crediteur_eur: number;
93
93
  source: string;
94
94
  }
95
- export interface EtatSaisieQualityControl {
96
- detail: string | null;
97
- key: string;
98
- label: string;
99
- verdict: string;
100
- }
101
95
  export interface EtatSaisieDossierLine {
102
96
  category: string;
97
+ currency: string | null;
103
98
  dossier: string;
104
99
  fiscal_year_end: string | null;
105
100
  gla_active: boolean;
@@ -113,17 +108,19 @@ export interface EtatSaisieDossierLine {
113
108
  reconciliation_refresh_date: string | null;
114
109
  refreshed_at: string | null;
115
110
  responsable: ResponsableOption | null;
116
- slug: string | null;
117
- solde_attente_eur: number;
118
- solde_virements_eur: number;
119
- source: string;
120
111
  score: number | null;
121
112
  score_capped_reason: string | null;
122
113
  score_controls: EtatSaisieQualityControl[];
123
114
  score_label: string | null;
115
+ score_provider: string | null;
124
116
  score_reason: string | null;
117
+ slug: string | null;
118
+ solde_attente_eur: number;
119
+ solde_virements_eur: number;
120
+ source: string;
125
121
  status: string;
126
122
  total_clients_eur: number;
123
+ total_factor_eur: number;
127
124
  total_fournisseurs_eur: number;
128
125
  }
129
126
  export interface EtatSaisieDossierMapItem {
@@ -134,6 +131,21 @@ export interface EtatSaisieDossierMapItem {
134
131
  responsable: ResponsableOption | null;
135
132
  slug: string;
136
133
  }
134
+ export interface EtatSaisieFactorRow {
135
+ compte: string;
136
+ devise: string;
137
+ dossier: string;
138
+ managed: boolean;
139
+ nb_ecritures: number;
140
+ solde_eur: number;
141
+ source: string;
142
+ }
143
+ export interface EtatSaisieQualityControl {
144
+ detail: string | null;
145
+ key: string;
146
+ label: string;
147
+ verdict: string;
148
+ }
137
149
  export interface EtatSaisieReconciliationRow {
138
150
  account_id: number;
139
151
  airporting_company_id: number;
@@ -250,6 +262,11 @@ export interface GetAdminsResponse {
250
262
  admins: string[];
251
263
  canEdit: boolean;
252
264
  }
265
+ export interface GetChargeV1Params {
266
+ at: string;
267
+ trigger: string;
268
+ view: string;
269
+ }
253
270
  export interface GetChartQuery {
254
271
  absoluteMonth?: number;
255
272
  loadedDateAfter?: string;
@@ -316,6 +333,7 @@ export interface GetEtatSaisieLatestResponse {
316
333
  computed_at: string | null;
317
334
  customer_rows: EtatSaisieCustomerRow[];
318
335
  dossier_lines: EtatSaisieDossierLine[];
336
+ factor_rows: EtatSaisieFactorRow[];
319
337
  internal_transfer_rows: EtatSaisieSuspenseRow[];
320
338
  reconciliation_rows: EtatSaisieReconciliationRow[];
321
339
  scan_duration_seconds: number | null;
@@ -362,6 +380,7 @@ export interface GetGsheetDashboardResponse {
362
380
  export interface GetGsheetStockResponse {
363
381
  byOwner: GsheetBreakdownEntry[];
364
382
  byService: GsheetBreakdownEntry[];
383
+ done_today: number;
365
384
  errored: number;
366
385
  oldest: {
367
386
  ageHours: number;
@@ -394,12 +413,15 @@ export interface GetMcpAccessResponse {
394
413
  accessMap: object;
395
414
  admins: string[];
396
415
  canEdit: boolean;
397
- configuredDossiers: Record<string, {
398
- slug: string;
399
- name: string;
400
- }[]>;
416
+ configuredDossiers: object;
401
417
  mcpNames: string[];
402
418
  multiDossierMcps: string[];
419
+ users: {
420
+ email: string;
421
+ firstName: string | null;
422
+ lastName: string | null;
423
+ position: string | null;
424
+ }[];
403
425
  }
404
426
  export interface GetNotionDashboardResponse {
405
427
  bugs: string[][];
@@ -418,6 +440,7 @@ export interface GetSalesDealsResponse {
418
440
  }
419
441
  export interface GetSalesLeadResponse {
420
442
  company: string | null;
443
+ deals: LeadDealItem[];
421
444
  first_name: string | null;
422
445
  id: number;
423
446
  identities: SalesIdentityItem[];
@@ -446,6 +469,12 @@ export interface GetScrapersResponse {
446
469
  sobank: SobankSummary;
447
470
  spendesk: ScraperSpendesk;
448
471
  }
472
+ export interface GetStockV1Params {
473
+ period: string;
474
+ }
475
+ export interface GetStockV1Params2 {
476
+ period: string;
477
+ }
449
478
  export interface GetSynchroDashboardResponse {
450
479
  askedToday: number;
451
480
  errorsToday: number;
@@ -483,6 +512,17 @@ export interface GetTransactionsV1Params {
483
512
  chargeDateBefore?: string;
484
513
  connector?: number;
485
514
  }
515
+ export interface GetUsageChargeResponse {
516
+ buckets: UsageBucket[];
517
+ concurrency: UsageConcurrencyPoint[];
518
+ from: string;
519
+ granularity: string;
520
+ kpis: UsageKpis;
521
+ to: string;
522
+ topCompanies: UsageTopCompany[];
523
+ topJobs: UsageTopJob[];
524
+ view: string;
525
+ }
486
526
  export interface GsheetActionResponse {
487
527
  message?: string;
488
528
  ok: boolean;
@@ -496,16 +536,20 @@ export interface GsheetTaskItem {
496
536
  company_slug: string | null;
497
537
  created: string;
498
538
  done: boolean;
539
+ error: string | null;
540
+ finished_at: string | null;
499
541
  github_job: string | null;
500
542
  id: number;
501
543
  owner: string | null;
502
544
  ready: boolean;
545
+ run_duration: number | null;
503
546
  service: string;
504
547
  spreadsheet: string;
505
548
  started: string | null;
506
549
  state: string;
507
550
  step: string | null;
508
551
  trace_id: string | null;
552
+ trigger_source: string;
509
553
  worksheet: string | null;
510
554
  }
511
555
  export interface JobLogEntry {
@@ -522,20 +566,29 @@ export interface JobsRunnerAssigned {
522
566
  runners: string[];
523
567
  selfhost: boolean;
524
568
  }
569
+ export interface LeadDealItem {
570
+ currency: string;
571
+ id: number;
572
+ pipeline: string | null;
573
+ stage_name: string | null;
574
+ status: string;
575
+ title: string;
576
+ value: number;
577
+ }
525
578
  export interface LeadScanCost {
526
579
  cost_eur: number;
527
580
  last_ran_at: string | null;
528
581
  runs: number;
529
582
  tokens: number;
530
583
  }
531
- export interface ListFinanceJobsTasksResponse {
532
- items: FinanceJobsTaskItem[];
533
- total: number;
534
- }
535
584
  export interface ListDealsV1Params {
536
585
  pipeline: string;
537
586
  status: string;
538
587
  }
588
+ export interface ListFinanceJobsTasksResponse {
589
+ items: FinanceJobsTaskItem[];
590
+ total: number;
591
+ }
539
592
  export interface ListGsheetTasksResponse {
540
593
  items: GsheetTaskItem[];
541
594
  total: number;
@@ -555,6 +608,7 @@ export interface ListTasksV1Params {
555
608
  }
556
609
  export interface ListTasksV1Params2 {
557
610
  owner: string;
611
+ period: string;
558
612
  service: string;
559
613
  skip: string;
560
614
  state: string;
@@ -627,7 +681,7 @@ export interface SalesDealItem {
627
681
  currency: string;
628
682
  expected_close_date: string | null;
629
683
  id: number;
630
- lead: SalesDealLeadItem;
684
+ lead: SalesDealLeadItem | null;
631
685
  lost_at: string | null;
632
686
  lost_reason: string | null;
633
687
  probability: number | null;
@@ -730,6 +784,13 @@ export interface ScraperSpendeskConnector {
730
784
  export interface SetAdminsBody {
731
785
  admins: string[];
732
786
  }
787
+ export interface SetConnectorManagedBody {
788
+ managed: boolean | null;
789
+ }
790
+ export interface SetConnectorManagedV1Params {
791
+ id: number;
792
+ provider: string;
793
+ }
733
794
  export interface SetFinanceJobsOwnerBody {
734
795
  owner: string;
735
796
  }
@@ -751,13 +812,6 @@ export interface SetManagedResponse {
751
812
  export interface SetManagedV1Params {
752
813
  id: number;
753
814
  }
754
- export interface SetConnectorManagedBody {
755
- managed: boolean | null;
756
- }
757
- export interface SetConnectorManagedV1Params {
758
- id: number;
759
- provider: string;
760
- }
761
815
  export interface SetOwnerV1Params {
762
816
  id: number;
763
817
  }
@@ -850,6 +904,72 @@ export interface UpdateSalesLeadBody {
850
904
  phones?: string[];
851
905
  temperature?: string;
852
906
  }
907
+ export interface UsageBucket {
908
+ waitLe15: number;
909
+ waitLe240: number;
910
+ waitLe30: number;
911
+ waitLe5: number;
912
+ waitLe60: number;
913
+ abandonedTasks: number;
914
+ companies: number | null;
915
+ computeHours: number;
916
+ distinctJobs: number | null;
917
+ erroredHours: number;
918
+ erroredTasks: number;
919
+ noopHours: number;
920
+ productiveHours: number;
921
+ rowsSynced: number;
922
+ t: string;
923
+ tasks: number;
924
+ waitMaxMinutes: number | null;
925
+ waitMeasured: number;
926
+ worksheetTasks: number;
927
+ }
928
+ export interface UsageConcurrencyPoint {
929
+ concurrent: number;
930
+ errored: number;
931
+ started: number;
932
+ t: string;
933
+ }
934
+ export interface UsageKpis {
935
+ waitLe15: number;
936
+ waitLe240: number;
937
+ waitLe30: number;
938
+ waitLe5: number;
939
+ waitLe60: number;
940
+ abandonedFabricatedHours: number;
941
+ abandonedTasks: number;
942
+ companies: number;
943
+ computeHours: number;
944
+ distinctJobs: number;
945
+ erroredHours: number;
946
+ erroredTasks: number;
947
+ maxConcurrent: number | null;
948
+ noopHours: number;
949
+ noopTasks: number;
950
+ productiveHours: number;
951
+ rowsSynced: number;
952
+ tasks: number;
953
+ waitMeasured: number;
954
+ worksheetTasks: number;
955
+ }
956
+ export interface UsageTopCompany {
957
+ abandonedTasks: number;
958
+ companyId: number;
959
+ computeHours: number;
960
+ displayName: string | null;
961
+ erroredHours: number;
962
+ slug: string | null;
963
+ tasks: number;
964
+ }
965
+ export interface UsageTopJob {
966
+ abandonedTasks: number;
967
+ companies: number;
968
+ computeHours: number;
969
+ erroredHours: number;
970
+ jobName: string;
971
+ tasks: number;
972
+ }
853
973
  export interface UserItemRunStats {
854
974
  db: number;
855
975
  redis: number;
@@ -944,6 +1064,23 @@ export declare namespace EtatSaisie {
944
1064
  type RequestHeaders = {};
945
1065
  type ResponseBody = SetManagedResponse;
946
1066
  }
1067
+ /**
1068
+ * No description
1069
+ * @tags EtatSaisie
1070
+ * @name SetConnectorManagedV1
1071
+ * @request PATCH:/v1/etat-saisie/dossiers/{id}/connectors/{provider}
1072
+ * @response `200` `SetManagedResponse`
1073
+ */
1074
+ namespace SetConnectorManagedV1 {
1075
+ type RequestParams = {
1076
+ id: number;
1077
+ provider: string;
1078
+ };
1079
+ type RequestQuery = {};
1080
+ type RequestBody = SetConnectorManagedBody;
1081
+ type RequestHeaders = {};
1082
+ type ResponseBody = SetManagedResponse;
1083
+ }
947
1084
  /**
948
1085
  * No description
949
1086
  * @tags EtatSaisie
@@ -960,6 +1097,22 @@ export declare namespace EtatSaisie {
960
1097
  type RequestHeaders = {};
961
1098
  type ResponseBody = SetManagedResponse;
962
1099
  }
1100
+ /**
1101
+ * No description
1102
+ * @tags EtatSaisie
1103
+ * @name SetReconciliationMuteV1
1104
+ * @request PATCH:/v1/etat-saisie/reconciliation-mute
1105
+ * @response `200` `SetManagedResponse`
1106
+ */
1107
+ namespace SetReconciliationMuteV1 {
1108
+ type RequestParams = {};
1109
+ type RequestQuery = {};
1110
+ type RequestBody = SetReconciliationMuteBody;
1111
+ type RequestHeaders = {
1112
+ from: string;
1113
+ };
1114
+ type ResponseBody = SetManagedResponse;
1115
+ }
963
1116
  /**
964
1117
  * No description
965
1118
  * @tags EtatSaisie
@@ -1102,7 +1255,7 @@ export declare namespace Sales {
1102
1255
  id: number;
1103
1256
  };
1104
1257
  type RequestQuery = {
1105
- kind?: string;
1258
+ kind: string;
1106
1259
  };
1107
1260
  type RequestBody = never;
1108
1261
  type RequestHeaders = {};
@@ -1266,7 +1419,9 @@ export declare namespace FinanceJobs {
1266
1419
  */
1267
1420
  namespace GetStockV1 {
1268
1421
  type RequestParams = {};
1269
- type RequestQuery = {};
1422
+ type RequestQuery = {
1423
+ period: string;
1424
+ };
1270
1425
  type RequestBody = never;
1271
1426
  type RequestHeaders = {};
1272
1427
  type ResponseBody = GetFinanceJobsStockResponse;
@@ -1461,7 +1616,9 @@ export declare namespace Gsheet {
1461
1616
  */
1462
1617
  namespace GetStockV1 {
1463
1618
  type RequestParams = {};
1464
- type RequestQuery = {};
1619
+ type RequestQuery = {
1620
+ period: string;
1621
+ };
1465
1622
  type RequestBody = never;
1466
1623
  type RequestHeaders = {};
1467
1624
  type ResponseBody = GetGsheetStockResponse;
@@ -1477,6 +1634,7 @@ export declare namespace Gsheet {
1477
1634
  type RequestParams = {};
1478
1635
  type RequestQuery = {
1479
1636
  owner: string;
1637
+ period: string;
1480
1638
  service: string;
1481
1639
  skip: string;
1482
1640
  state: string;
@@ -1551,6 +1709,22 @@ export declare namespace Gsheet {
1551
1709
  type ResponseBody = DeleteRedisLockResponse;
1552
1710
  }
1553
1711
  }
1712
+ export declare namespace ConnectorToken {
1713
+ /**
1714
+ * No description
1715
+ * @tags InternalConnector
1716
+ * @name GetConnectorToken
1717
+ * @request GET:/internal/connector-token
1718
+ * @response `200` `object`
1719
+ */
1720
+ namespace GetConnectorToken {
1721
+ type RequestParams = {};
1722
+ type RequestQuery = {};
1723
+ type RequestBody = never;
1724
+ type RequestHeaders = {};
1725
+ type ResponseBody = object;
1726
+ }
1727
+ }
1554
1728
  export declare namespace McpAccess {
1555
1729
  /**
1556
1730
  * No description
@@ -1740,6 +1914,26 @@ export declare namespace Synchro {
1740
1914
  type ResponseBody = void;
1741
1915
  }
1742
1916
  }
1917
+ export declare namespace Usage {
1918
+ /**
1919
+ * No description
1920
+ * @tags Usage
1921
+ * @name GetChargeV1
1922
+ * @request GET:/v1/usage/charge
1923
+ * @response `200` `GetUsageChargeResponse`
1924
+ */
1925
+ namespace GetChargeV1 {
1926
+ type RequestParams = {};
1927
+ type RequestQuery = {
1928
+ at: string;
1929
+ trigger: string;
1930
+ view: string;
1931
+ };
1932
+ type RequestBody = never;
1933
+ type RequestHeaders = {};
1934
+ type ResponseBody = GetUsageChargeResponse;
1935
+ }
1936
+ }
1743
1937
  export type QueryParamsType = Record<string | number, any>;
1744
1938
  export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
1745
1939
  export interface FullRequestParams extends Omit<RequestInit, 'body'> {
@@ -1896,14 +2090,14 @@ export declare class TechApi<SecurityDataType extends unknown> {
1896
2090
  */
1897
2091
  setManagedV1: ({ id, ...query }: SetManagedV1Params, data: SetManagedBody, params?: RequestParams) => Promise<HttpResponse<SetManagedResponse, any>>;
1898
2092
  /**
1899
- * Exception « géré » posée sur UN connecteur du dossier (ajouté à la main,
1900
- * cf. le commentaire sur SetConnectorManagedBody).
2093
+ * No description
1901
2094
  *
1902
2095
  * @tags EtatSaisie
1903
2096
  * @name SetConnectorManagedV1
1904
2097
  * @request PATCH:/v1/etat-saisie/dossiers/{id}/connectors/{provider}
2098
+ * @response `200` `SetManagedResponse`
1905
2099
  */
1906
- setConnectorManagedV1: ({ id, provider }: SetConnectorManagedV1Params, data: SetConnectorManagedBody, params?: RequestParams) => Promise<HttpResponse<SetManagedResponse, any>>;
2100
+ setConnectorManagedV1: ({ id, provider, ...query }: SetConnectorManagedV1Params, data: SetConnectorManagedBody, params?: RequestParams) => Promise<HttpResponse<SetManagedResponse, any>>;
1907
2101
  /**
1908
2102
  * No description
1909
2103
  *
@@ -2096,7 +2290,7 @@ export declare class TechApi<SecurityDataType extends unknown> {
2096
2290
  * @request GET:/v1/finance-jobs/stock
2097
2291
  * @response `200` `GetFinanceJobsStockResponse`
2098
2292
  */
2099
- getStockV1: (params?: RequestParams) => Promise<HttpResponse<GetFinanceJobsStockResponse, any>>;
2293
+ getStockV1: (query: GetStockV1Params, params?: RequestParams) => Promise<HttpResponse<GetFinanceJobsStockResponse, any>>;
2100
2294
  /**
2101
2295
  * No description
2102
2296
  *
@@ -2208,7 +2402,7 @@ export declare class TechApi<SecurityDataType extends unknown> {
2208
2402
  * @request GET:/v1/gsheet/stock
2209
2403
  * @response `200` `GetGsheetStockResponse`
2210
2404
  */
2211
- getStockV1: (params?: RequestParams) => Promise<HttpResponse<GetGsheetStockResponse, any>>;
2405
+ getStockV1: (query: GetStockV1Params2, params?: RequestParams) => Promise<HttpResponse<GetGsheetStockResponse, any>>;
2212
2406
  /**
2213
2407
  * No description
2214
2408
  *
@@ -2255,6 +2449,17 @@ export declare class TechApi<SecurityDataType extends unknown> {
2255
2449
  */
2256
2450
  deleteRedisLockV1: ({ id, ...query }: DeleteRedisLockV1Params2, params?: RequestParams) => Promise<HttpResponse<DeleteRedisLockResponse, any>>;
2257
2451
  };
2452
+ connectorToken: {
2453
+ /**
2454
+ * No description
2455
+ *
2456
+ * @tags InternalConnector
2457
+ * @name GetConnectorToken
2458
+ * @request GET:/internal/connector-token
2459
+ * @response `200` `object`
2460
+ */
2461
+ getConnectorToken: (params?: RequestParams) => Promise<HttpResponse<object, any>>;
2462
+ };
2258
2463
  mcpAccess: {
2259
2464
  /**
2260
2465
  * No description
@@ -2362,5 +2567,16 @@ export declare class TechApi<SecurityDataType extends unknown> {
2362
2567
  */
2363
2568
  resetOwnerStatsV1: ({ owner, value, ...query }: ResetOwnerStatsV1Params, params?: RequestParams) => Promise<HttpResponse<void, any>>;
2364
2569
  };
2570
+ usage: {
2571
+ /**
2572
+ * No description
2573
+ *
2574
+ * @tags Usage
2575
+ * @name GetChargeV1
2576
+ * @request GET:/v1/usage/charge
2577
+ * @response `200` `GetUsageChargeResponse`
2578
+ */
2579
+ getChargeV1: (query: GetChargeV1Params, params?: RequestParams) => Promise<HttpResponse<GetUsageChargeResponse, any>>;
2580
+ };
2365
2581
  }
2366
2582
  export {};