@airporting/tech-app 0.0.58 → 0.0.60
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 +1 -1
- package/dist/mf/@mf-types/compiled-types/api/tech/etatSaisie/setResponsableMutation.d.ts +1 -1
- package/dist/mf/@mf-types/compiled-types/api/tech/sales/deleteLeadMutation.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/tech/sales/leadDetailQuery.d.ts +2 -0
- package/dist/mf/@mf-types/compiled-types/api/tech/sales/leadsQuery.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/api/tech/sales/rescanMutation.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/api/tech/sales/updateLeadMutation.d.ts +9 -0
- package/dist/mf/@mf-types/compiled-types/apps/sales/LeadDetailDrawer.d.ts +6 -0
- package/dist/mf/@mf-types/compiled-types/apps/sales/LeadTimeline.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/apps/sales/LeadsTable.d.ts +8 -0
- package/dist/mf/@mf-types/compiled-types/apps/sales/temperature.d.ts +8 -0
- package/dist/mf/@mf-types/compiled-types/apps/sales/types.d.ts +24 -0
- package/dist/mf/@mf-types/compiled-types/apps/sales.app.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/components/icons/IconBraintree.d.ts +2 -0
- package/dist/mf/@mf-types/compiled-types/gen/TechApi/index.d.ts +231 -17
- package/dist/mf/@mf-types/compiled-types/tabs/sales.d.ts +2 -0
- package/dist/mf/@mf-types/sales.d.ts +2 -0
- package/dist/mf/@mf-types.d.ts +2 -2
- package/dist/mf/@mf-types.zip +0 -0
- package/dist/mf/__federation_expose_dashboard.js +1 -1
- package/dist/mf/__federation_expose_etat_saisie.js +1 -1
- package/dist/mf/__federation_expose_sales.js +1 -0
- package/dist/mf/index.js +3 -3
- package/dist/mf/mf-manifest.json +29 -1
- package/dist/mf/mf-stats.json +41 -2
- package/dist/mf/tech_app.js +3 -3
- package/package.json +1 -1
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&¶ms2.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});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}),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}),recomputeV1:(params={})=>this.http.request({path:"/v1/etat-saisie/recompute",method:"POST",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})};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})};sobank={getExportsV1:(query,params={})=>this.http.request({path:"/v1/sobank/exports",method:"GET",query:query,format:"json",...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__(3106);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&¶ms2.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});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}),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}),recomputeV1:(params={})=>this.http.request({path:"/v1/etat-saisie/recompute",method:"POST",format:"json",...params})};sales={listLeadsV1:(params={})=>this.http.request({path:"/v1/sales/leads",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}),rescanV1:(params={})=>this.http.request({path:"/v1/sales/rescan",method:"POST",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})};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})};sobank={getExportsV1:(query,params={})=>this.http.request({path:"/v1/sobank/exports",method:"GET",query:query,format:"json",...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__(3106);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]})})})})}}}]);
|
|
@@ -2,5 +2,5 @@ type SetResponsableVariables = {
|
|
|
2
2
|
id: number;
|
|
3
3
|
notionUserId: number | null;
|
|
4
4
|
};
|
|
5
|
-
export declare function useSetResponsable(): import("@tanstack/react-query").UseMutationResult<import("../../../gen/TechApi/index.ts").
|
|
5
|
+
export declare function useSetResponsable(): import("@tanstack/react-query").UseMutationResult<import("../../../gen/TechApi/index.ts").SetManagedResponse, Error, SetResponsableVariables, unknown>;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDeleteLead(): import("@tanstack/react-query").UseMutationResult<any, any, number, unknown>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type UpdateLeadPayload = {
|
|
2
|
+
temperature?: string;
|
|
3
|
+
next_action?: string | null;
|
|
4
|
+
next_action_due_at?: string | null;
|
|
5
|
+
first_name?: string | null;
|
|
6
|
+
last_name?: string | null;
|
|
7
|
+
company?: string | null;
|
|
8
|
+
};
|
|
9
|
+
export declare function useUpdateLead(id: number): import("@tanstack/react-query").UseMutationResult<any, any, UpdateLeadPayload, unknown>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LeadListItem, Temperature } from '@/src/apps/sales/types.ts';
|
|
2
|
+
type Props = {
|
|
3
|
+
leads: LeadListItem[];
|
|
4
|
+
temperatureFilter: Temperature | null;
|
|
5
|
+
onRowClick: (id: number) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function LeadsTable({ leads, temperatureFilter, onRowClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Temperature } from '@/src/apps/sales/types.ts';
|
|
2
|
+
export type TemperatureMeta = {
|
|
3
|
+
emoji: string;
|
|
4
|
+
label: string;
|
|
5
|
+
order: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const TEMPERATURE_META: Record<Temperature, TemperatureMeta>;
|
|
8
|
+
export declare const TEMPERATURE_ORDER: Temperature[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type Temperature = 'burning' | 'hot' | 'warm' | 'cold' | 'frozen';
|
|
2
|
+
export type LeadListItem = {
|
|
3
|
+
id: number;
|
|
4
|
+
first_name: string | null;
|
|
5
|
+
last_name: string | null;
|
|
6
|
+
company: string | null;
|
|
7
|
+
last_contact_at: string | null;
|
|
8
|
+
temperature: Temperature;
|
|
9
|
+
next_action: string | null;
|
|
10
|
+
next_action_due_at: string | null;
|
|
11
|
+
manual_override: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type InteractionItem = {
|
|
14
|
+
id: number;
|
|
15
|
+
source: string;
|
|
16
|
+
channel: string | null;
|
|
17
|
+
direction: 'inbound' | 'outbound';
|
|
18
|
+
occurred_at: string;
|
|
19
|
+
summary: string | null;
|
|
20
|
+
external_url: string | null;
|
|
21
|
+
};
|
|
22
|
+
export type LeadDetail = LeadListItem & {
|
|
23
|
+
interactions: InteractionItem[];
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SalesApp(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export interface BraintreeConnectorItem {
|
|
2
|
+
isTooOld: boolean;
|
|
3
|
+
lastTime: string;
|
|
4
|
+
merchant: string;
|
|
5
|
+
}
|
|
1
6
|
export interface CompanyItem {
|
|
2
7
|
display_name: string | null;
|
|
3
8
|
id: number;
|
|
@@ -7,6 +12,9 @@ export interface DeleteFinanceJobsRedisLockResponse {
|
|
|
7
12
|
key: string;
|
|
8
13
|
ok: boolean;
|
|
9
14
|
}
|
|
15
|
+
export interface DeleteLeadV1Params {
|
|
16
|
+
id: number;
|
|
17
|
+
}
|
|
10
18
|
export interface DeleteRedisLockResponse {
|
|
11
19
|
existed: boolean;
|
|
12
20
|
key: string;
|
|
@@ -43,17 +51,12 @@ export interface EtatSaisieDossierLine {
|
|
|
43
51
|
reason: string | null;
|
|
44
52
|
responsable: ResponsableOption | null;
|
|
45
53
|
solde_attente_eur: number;
|
|
54
|
+
solde_virements_eur: number;
|
|
46
55
|
source: string;
|
|
47
56
|
status: string;
|
|
48
57
|
total_clients_eur: number;
|
|
49
58
|
total_fournisseurs_eur: number;
|
|
50
59
|
}
|
|
51
|
-
export interface ResponsableOption {
|
|
52
|
-
avatar_url: string;
|
|
53
|
-
email: string;
|
|
54
|
-
id: number;
|
|
55
|
-
name: string;
|
|
56
|
-
}
|
|
57
60
|
export interface EtatSaisieDossierMapItem {
|
|
58
61
|
airporting_id: number;
|
|
59
62
|
display_name: string;
|
|
@@ -200,6 +203,9 @@ export interface GetDashboardBnppResponse {
|
|
|
200
203
|
factorTodayTotal: number;
|
|
201
204
|
globalProblem: boolean;
|
|
202
205
|
}
|
|
206
|
+
export interface GetDashboardBraintreeResponse {
|
|
207
|
+
connectors: BraintreeConnectorItem[];
|
|
208
|
+
}
|
|
203
209
|
export interface GetDashboardPennylaneResponse {
|
|
204
210
|
isTooOld: boolean;
|
|
205
211
|
lastTime: string;
|
|
@@ -207,6 +213,7 @@ export interface GetDashboardPennylaneResponse {
|
|
|
207
213
|
export interface GetDashboardResponse {
|
|
208
214
|
amex: GetDashboardAmexResponse;
|
|
209
215
|
bnpp: GetDashboardBnppResponse;
|
|
216
|
+
braintree: GetDashboardBraintreeResponse;
|
|
210
217
|
gsheet: GetGsheetDashboardResponse;
|
|
211
218
|
notion: GetNotionDashboardResponse;
|
|
212
219
|
payfit: GetPayfitDashboardResponse;
|
|
@@ -223,6 +230,7 @@ export interface GetEtatSaisieLatestResponse {
|
|
|
223
230
|
computed_at: string | null;
|
|
224
231
|
customer_rows: EtatSaisieCustomerRow[];
|
|
225
232
|
dossier_lines: EtatSaisieDossierLine[];
|
|
233
|
+
internal_transfer_rows: EtatSaisieSuspenseRow[];
|
|
226
234
|
scan_duration_seconds: number | null;
|
|
227
235
|
status: string | null;
|
|
228
236
|
summary: EtatSaisieSummary | null;
|
|
@@ -309,6 +317,9 @@ export interface GetJobsDefaultResponse {
|
|
|
309
317
|
export interface GetLabelsV1Params {
|
|
310
318
|
host: string;
|
|
311
319
|
}
|
|
320
|
+
export interface GetLeadV1Params {
|
|
321
|
+
id: number;
|
|
322
|
+
}
|
|
312
323
|
export interface GetNotionDashboardResponse {
|
|
313
324
|
bugs: string[][];
|
|
314
325
|
users: NotionUser[];
|
|
@@ -320,6 +331,21 @@ export interface GetPayfitDashboardResponse {
|
|
|
320
331
|
export interface GetRunStatsResponse {
|
|
321
332
|
currentJobsCounters: UsersRunStatsResponse;
|
|
322
333
|
}
|
|
334
|
+
export interface GetSalesLeadResponse {
|
|
335
|
+
company: string | null;
|
|
336
|
+
first_name: string | null;
|
|
337
|
+
id: number;
|
|
338
|
+
interactions: SalesInteractionItem[];
|
|
339
|
+
last_contact_at: string | null;
|
|
340
|
+
last_name: string | null;
|
|
341
|
+
manual_override: boolean;
|
|
342
|
+
next_action: string | null;
|
|
343
|
+
next_action_due_at: string | null;
|
|
344
|
+
temperature: string;
|
|
345
|
+
}
|
|
346
|
+
export interface GetSalesLeadsResponse {
|
|
347
|
+
leads: SalesLeadListItem[];
|
|
348
|
+
}
|
|
323
349
|
export interface GetSynchroDashboardResponse {
|
|
324
350
|
askedToday: number;
|
|
325
351
|
errorsToday: number;
|
|
@@ -407,6 +433,7 @@ export interface ListTasksV1Params {
|
|
|
407
433
|
company_slug: string;
|
|
408
434
|
job_name: string;
|
|
409
435
|
owner: string;
|
|
436
|
+
period: string;
|
|
410
437
|
skip: string;
|
|
411
438
|
state: string;
|
|
412
439
|
take: string;
|
|
@@ -427,6 +454,9 @@ export interface NotionUser {
|
|
|
427
454
|
email: string;
|
|
428
455
|
name: string;
|
|
429
456
|
}
|
|
457
|
+
export interface OkResponse {
|
|
458
|
+
ok: boolean;
|
|
459
|
+
}
|
|
430
460
|
export interface PayfitDashboardItem {
|
|
431
461
|
siretsCount: number;
|
|
432
462
|
sum: number;
|
|
@@ -441,10 +471,20 @@ export interface RecomputeEtatSaisieResponse {
|
|
|
441
471
|
message: string;
|
|
442
472
|
ok: boolean;
|
|
443
473
|
}
|
|
474
|
+
export interface RescanResponse {
|
|
475
|
+
message: string;
|
|
476
|
+
ok: boolean;
|
|
477
|
+
}
|
|
444
478
|
export interface ResetOwnerStatsV1Params {
|
|
445
479
|
owner: string;
|
|
446
480
|
value: string;
|
|
447
481
|
}
|
|
482
|
+
export interface ResponsableOption {
|
|
483
|
+
avatar_url: string;
|
|
484
|
+
email: string;
|
|
485
|
+
id: number;
|
|
486
|
+
name: string;
|
|
487
|
+
}
|
|
448
488
|
export interface RetryV1Params {
|
|
449
489
|
id: number;
|
|
450
490
|
}
|
|
@@ -456,6 +496,26 @@ export interface RunRecipeResponse {
|
|
|
456
496
|
message?: string;
|
|
457
497
|
ok: boolean;
|
|
458
498
|
}
|
|
499
|
+
export interface SalesInteractionItem {
|
|
500
|
+
channel: string | null;
|
|
501
|
+
direction: string;
|
|
502
|
+
external_url: string | null;
|
|
503
|
+
id: number;
|
|
504
|
+
occurred_at: string;
|
|
505
|
+
source: string;
|
|
506
|
+
summary: string | null;
|
|
507
|
+
}
|
|
508
|
+
export interface SalesLeadListItem {
|
|
509
|
+
company: string | null;
|
|
510
|
+
first_name: string | null;
|
|
511
|
+
id: number;
|
|
512
|
+
last_contact_at: string | null;
|
|
513
|
+
last_name: string | null;
|
|
514
|
+
manual_override: boolean;
|
|
515
|
+
next_action: string | null;
|
|
516
|
+
next_action_due_at: string | null;
|
|
517
|
+
temperature: string;
|
|
518
|
+
}
|
|
459
519
|
export interface SetFinanceJobsOwnerBody {
|
|
460
520
|
owner: string;
|
|
461
521
|
}
|
|
@@ -465,27 +525,24 @@ export interface SetGsheetOwnerBody {
|
|
|
465
525
|
export interface SetManagedBody {
|
|
466
526
|
managed: boolean;
|
|
467
527
|
}
|
|
468
|
-
export interface SetResponsableBody {
|
|
469
|
-
notion_user_id: number | null;
|
|
470
|
-
}
|
|
471
528
|
export interface SetManagedResponse {
|
|
472
529
|
ok: boolean;
|
|
473
530
|
}
|
|
474
|
-
export interface SetResponsableResponse {
|
|
475
|
-
ok: boolean;
|
|
476
|
-
}
|
|
477
531
|
export interface SetManagedV1Params {
|
|
478
532
|
id: number;
|
|
479
533
|
}
|
|
480
|
-
export interface SetResponsableV1Params {
|
|
481
|
-
id: number;
|
|
482
|
-
}
|
|
483
534
|
export interface SetOwnerV1Params {
|
|
484
535
|
id: number;
|
|
485
536
|
}
|
|
486
537
|
export interface SetOwnerV1Params2 {
|
|
487
538
|
id: number;
|
|
488
539
|
}
|
|
540
|
+
export interface SetResponsableBody {
|
|
541
|
+
notion_user_id: number | null;
|
|
542
|
+
}
|
|
543
|
+
export interface SetResponsableV1Params {
|
|
544
|
+
id: number;
|
|
545
|
+
}
|
|
489
546
|
export interface SobankExportItem {
|
|
490
547
|
account: string;
|
|
491
548
|
balance: number;
|
|
@@ -528,6 +585,17 @@ export interface UnstickV1Params {
|
|
|
528
585
|
export interface UnstickV1Params2 {
|
|
529
586
|
id: number;
|
|
530
587
|
}
|
|
588
|
+
export interface UpdateLeadV1Params {
|
|
589
|
+
id: number;
|
|
590
|
+
}
|
|
591
|
+
export interface UpdateSalesLeadBody {
|
|
592
|
+
company?: string | null;
|
|
593
|
+
first_name?: string | null;
|
|
594
|
+
last_name?: string | null;
|
|
595
|
+
next_action?: string | null;
|
|
596
|
+
next_action_due_at?: string | null;
|
|
597
|
+
temperature?: string;
|
|
598
|
+
}
|
|
531
599
|
export interface UserItemRunStats {
|
|
532
600
|
db: number;
|
|
533
601
|
redis: number;
|
|
@@ -622,6 +690,22 @@ export declare namespace EtatSaisie {
|
|
|
622
690
|
type RequestHeaders = {};
|
|
623
691
|
type ResponseBody = SetManagedResponse;
|
|
624
692
|
}
|
|
693
|
+
/**
|
|
694
|
+
* No description
|
|
695
|
+
* @tags EtatSaisie
|
|
696
|
+
* @name SetResponsableV1
|
|
697
|
+
* @request PATCH:/v1/etat-saisie/dossiers/{id}/responsable
|
|
698
|
+
* @response `200` `SetManagedResponse`
|
|
699
|
+
*/
|
|
700
|
+
namespace SetResponsableV1 {
|
|
701
|
+
type RequestParams = {
|
|
702
|
+
id: number;
|
|
703
|
+
};
|
|
704
|
+
type RequestQuery = {};
|
|
705
|
+
type RequestBody = SetResponsableBody;
|
|
706
|
+
type RequestHeaders = {};
|
|
707
|
+
type ResponseBody = SetManagedResponse;
|
|
708
|
+
}
|
|
625
709
|
/**
|
|
626
710
|
* No description
|
|
627
711
|
* @tags EtatSaisie
|
|
@@ -637,6 +721,88 @@ export declare namespace EtatSaisie {
|
|
|
637
721
|
type ResponseBody = RecomputeEtatSaisieResponse;
|
|
638
722
|
}
|
|
639
723
|
}
|
|
724
|
+
export declare namespace Sales {
|
|
725
|
+
/**
|
|
726
|
+
* No description
|
|
727
|
+
* @tags Sales
|
|
728
|
+
* @name ListLeadsV1
|
|
729
|
+
* @request GET:/v1/sales/leads
|
|
730
|
+
* @response `200` `GetSalesLeadsResponse`
|
|
731
|
+
*/
|
|
732
|
+
namespace ListLeadsV1 {
|
|
733
|
+
type RequestParams = {};
|
|
734
|
+
type RequestQuery = {};
|
|
735
|
+
type RequestBody = never;
|
|
736
|
+
type RequestHeaders = {};
|
|
737
|
+
type ResponseBody = GetSalesLeadsResponse;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* No description
|
|
741
|
+
* @tags Sales
|
|
742
|
+
* @name GetLeadV1
|
|
743
|
+
* @request GET:/v1/sales/leads/{id}
|
|
744
|
+
* @response `200` `GetSalesLeadResponse`
|
|
745
|
+
*/
|
|
746
|
+
namespace GetLeadV1 {
|
|
747
|
+
type RequestParams = {
|
|
748
|
+
id: number;
|
|
749
|
+
};
|
|
750
|
+
type RequestQuery = {};
|
|
751
|
+
type RequestBody = never;
|
|
752
|
+
type RequestHeaders = {};
|
|
753
|
+
type ResponseBody = GetSalesLeadResponse;
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* No description
|
|
757
|
+
* @tags Sales
|
|
758
|
+
* @name UpdateLeadV1
|
|
759
|
+
* @request PATCH:/v1/sales/leads/{id}
|
|
760
|
+
* @response `200` `OkResponse`
|
|
761
|
+
*/
|
|
762
|
+
namespace UpdateLeadV1 {
|
|
763
|
+
type RequestParams = {
|
|
764
|
+
id: number;
|
|
765
|
+
};
|
|
766
|
+
type RequestQuery = {};
|
|
767
|
+
type RequestBody = UpdateSalesLeadBody;
|
|
768
|
+
type RequestHeaders = {
|
|
769
|
+
from: string;
|
|
770
|
+
};
|
|
771
|
+
type ResponseBody = OkResponse;
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* No description
|
|
775
|
+
* @tags Sales
|
|
776
|
+
* @name DeleteLeadV1
|
|
777
|
+
* @request DELETE:/v1/sales/leads/{id}
|
|
778
|
+
* @response `200` `OkResponse`
|
|
779
|
+
*/
|
|
780
|
+
namespace DeleteLeadV1 {
|
|
781
|
+
type RequestParams = {
|
|
782
|
+
id: number;
|
|
783
|
+
};
|
|
784
|
+
type RequestQuery = {};
|
|
785
|
+
type RequestBody = never;
|
|
786
|
+
type RequestHeaders = {
|
|
787
|
+
from: string;
|
|
788
|
+
};
|
|
789
|
+
type ResponseBody = OkResponse;
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* No description
|
|
793
|
+
* @tags Sales
|
|
794
|
+
* @name RescanV1
|
|
795
|
+
* @request POST:/v1/sales/rescan
|
|
796
|
+
* @response `201` `RescanResponse`
|
|
797
|
+
*/
|
|
798
|
+
namespace RescanV1 {
|
|
799
|
+
type RequestParams = {};
|
|
800
|
+
type RequestQuery = {};
|
|
801
|
+
type RequestBody = never;
|
|
802
|
+
type RequestHeaders = {};
|
|
803
|
+
type ResponseBody = RescanResponse;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
640
806
|
export declare namespace FinanceJobs {
|
|
641
807
|
/**
|
|
642
808
|
* No description
|
|
@@ -666,6 +832,7 @@ export declare namespace FinanceJobs {
|
|
|
666
832
|
company_slug: string;
|
|
667
833
|
job_name: string;
|
|
668
834
|
owner: string;
|
|
835
|
+
period: string;
|
|
669
836
|
skip: string;
|
|
670
837
|
state: string;
|
|
671
838
|
take: string;
|
|
@@ -1226,9 +1393,9 @@ export declare class TechApi<SecurityDataType extends unknown> {
|
|
|
1226
1393
|
* @tags EtatSaisie
|
|
1227
1394
|
* @name SetResponsableV1
|
|
1228
1395
|
* @request PATCH:/v1/etat-saisie/dossiers/{id}/responsable
|
|
1229
|
-
* @response `200` `
|
|
1396
|
+
* @response `200` `SetManagedResponse`
|
|
1230
1397
|
*/
|
|
1231
|
-
setResponsableV1: ({ id, ...query }: SetResponsableV1Params, data: SetResponsableBody, params?: RequestParams) => Promise<HttpResponse<
|
|
1398
|
+
setResponsableV1: ({ id, ...query }: SetResponsableV1Params, data: SetResponsableBody, params?: RequestParams) => Promise<HttpResponse<SetManagedResponse, any>>;
|
|
1232
1399
|
/**
|
|
1233
1400
|
* No description
|
|
1234
1401
|
*
|
|
@@ -1239,6 +1406,53 @@ export declare class TechApi<SecurityDataType extends unknown> {
|
|
|
1239
1406
|
*/
|
|
1240
1407
|
recomputeV1: (params?: RequestParams) => Promise<HttpResponse<RecomputeEtatSaisieResponse, any>>;
|
|
1241
1408
|
};
|
|
1409
|
+
sales: {
|
|
1410
|
+
/**
|
|
1411
|
+
* No description
|
|
1412
|
+
*
|
|
1413
|
+
* @tags Sales
|
|
1414
|
+
* @name ListLeadsV1
|
|
1415
|
+
* @request GET:/v1/sales/leads
|
|
1416
|
+
* @response `200` `GetSalesLeadsResponse`
|
|
1417
|
+
*/
|
|
1418
|
+
listLeadsV1: (params?: RequestParams) => Promise<HttpResponse<GetSalesLeadsResponse, any>>;
|
|
1419
|
+
/**
|
|
1420
|
+
* No description
|
|
1421
|
+
*
|
|
1422
|
+
* @tags Sales
|
|
1423
|
+
* @name GetLeadV1
|
|
1424
|
+
* @request GET:/v1/sales/leads/{id}
|
|
1425
|
+
* @response `200` `GetSalesLeadResponse`
|
|
1426
|
+
*/
|
|
1427
|
+
getLeadV1: ({ id, ...query }: GetLeadV1Params, params?: RequestParams) => Promise<HttpResponse<GetSalesLeadResponse, any>>;
|
|
1428
|
+
/**
|
|
1429
|
+
* No description
|
|
1430
|
+
*
|
|
1431
|
+
* @tags Sales
|
|
1432
|
+
* @name UpdateLeadV1
|
|
1433
|
+
* @request PATCH:/v1/sales/leads/{id}
|
|
1434
|
+
* @response `200` `OkResponse`
|
|
1435
|
+
*/
|
|
1436
|
+
updateLeadV1: ({ id, ...query }: UpdateLeadV1Params, data: UpdateSalesLeadBody, params?: RequestParams) => Promise<HttpResponse<OkResponse, any>>;
|
|
1437
|
+
/**
|
|
1438
|
+
* No description
|
|
1439
|
+
*
|
|
1440
|
+
* @tags Sales
|
|
1441
|
+
* @name DeleteLeadV1
|
|
1442
|
+
* @request DELETE:/v1/sales/leads/{id}
|
|
1443
|
+
* @response `200` `OkResponse`
|
|
1444
|
+
*/
|
|
1445
|
+
deleteLeadV1: ({ id, ...query }: DeleteLeadV1Params, params?: RequestParams) => Promise<HttpResponse<OkResponse, any>>;
|
|
1446
|
+
/**
|
|
1447
|
+
* No description
|
|
1448
|
+
*
|
|
1449
|
+
* @tags Sales
|
|
1450
|
+
* @name RescanV1
|
|
1451
|
+
* @request POST:/v1/sales/rescan
|
|
1452
|
+
* @response `201` `RescanResponse`
|
|
1453
|
+
*/
|
|
1454
|
+
rescanV1: (params?: RequestParams) => Promise<HttpResponse<RescanResponse, any>>;
|
|
1455
|
+
};
|
|
1242
1456
|
financeJobs: {
|
|
1243
1457
|
/**
|
|
1244
1458
|
* No description
|
package/dist/mf/@mf-types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
export type RemoteKeys = 'REMOTE_ALIAS_IDENTIFIER/amex' | 'REMOTE_ALIAS_IDENTIFIER/bnpp' | 'REMOTE_ALIAS_IDENTIFIER/credmut' | 'REMOTE_ALIAS_IDENTIFIER/dashboard' | 'REMOTE_ALIAS_IDENTIFIER/etat-saisie' | 'REMOTE_ALIAS_IDENTIFIER/finance-jobs' | 'REMOTE_ALIAS_IDENTIFIER/github' | 'REMOTE_ALIAS_IDENTIFIER/payfit' | 'REMOTE_ALIAS_IDENTIFIER/sobank' | 'REMOTE_ALIAS_IDENTIFIER/spendesk' | 'REMOTE_ALIAS_IDENTIFIER/spreadsheet' | 'REMOTE_ALIAS_IDENTIFIER/synchro' | 'REMOTE_ALIAS_IDENTIFIER/wise';
|
|
3
|
-
type PackageType<T> = T extends 'REMOTE_ALIAS_IDENTIFIER/wise' ? typeof import('REMOTE_ALIAS_IDENTIFIER/wise') :T extends 'REMOTE_ALIAS_IDENTIFIER/synchro' ? typeof import('REMOTE_ALIAS_IDENTIFIER/synchro') :T extends 'REMOTE_ALIAS_IDENTIFIER/spreadsheet' ? typeof import('REMOTE_ALIAS_IDENTIFIER/spreadsheet') :T extends 'REMOTE_ALIAS_IDENTIFIER/spendesk' ? typeof import('REMOTE_ALIAS_IDENTIFIER/spendesk') :T extends 'REMOTE_ALIAS_IDENTIFIER/sobank' ? typeof import('REMOTE_ALIAS_IDENTIFIER/sobank') :T extends 'REMOTE_ALIAS_IDENTIFIER/payfit' ? typeof import('REMOTE_ALIAS_IDENTIFIER/payfit') :T extends 'REMOTE_ALIAS_IDENTIFIER/github' ? typeof import('REMOTE_ALIAS_IDENTIFIER/github') :T extends 'REMOTE_ALIAS_IDENTIFIER/finance-jobs' ? typeof import('REMOTE_ALIAS_IDENTIFIER/finance-jobs') :T extends 'REMOTE_ALIAS_IDENTIFIER/etat-saisie' ? typeof import('REMOTE_ALIAS_IDENTIFIER/etat-saisie') :T extends 'REMOTE_ALIAS_IDENTIFIER/dashboard' ? typeof import('REMOTE_ALIAS_IDENTIFIER/dashboard') :T extends 'REMOTE_ALIAS_IDENTIFIER/credmut' ? typeof import('REMOTE_ALIAS_IDENTIFIER/credmut') :T extends 'REMOTE_ALIAS_IDENTIFIER/bnpp' ? typeof import('REMOTE_ALIAS_IDENTIFIER/bnpp') :T extends 'REMOTE_ALIAS_IDENTIFIER/amex' ? typeof import('REMOTE_ALIAS_IDENTIFIER/amex') :any;
|
|
2
|
+
export type RemoteKeys = 'REMOTE_ALIAS_IDENTIFIER/amex' | 'REMOTE_ALIAS_IDENTIFIER/bnpp' | 'REMOTE_ALIAS_IDENTIFIER/credmut' | 'REMOTE_ALIAS_IDENTIFIER/dashboard' | 'REMOTE_ALIAS_IDENTIFIER/etat-saisie' | 'REMOTE_ALIAS_IDENTIFIER/finance-jobs' | 'REMOTE_ALIAS_IDENTIFIER/github' | 'REMOTE_ALIAS_IDENTIFIER/payfit' | 'REMOTE_ALIAS_IDENTIFIER/sales' | 'REMOTE_ALIAS_IDENTIFIER/sobank' | 'REMOTE_ALIAS_IDENTIFIER/spendesk' | 'REMOTE_ALIAS_IDENTIFIER/spreadsheet' | 'REMOTE_ALIAS_IDENTIFIER/synchro' | 'REMOTE_ALIAS_IDENTIFIER/wise';
|
|
3
|
+
type PackageType<T> = T extends 'REMOTE_ALIAS_IDENTIFIER/wise' ? typeof import('REMOTE_ALIAS_IDENTIFIER/wise') :T extends 'REMOTE_ALIAS_IDENTIFIER/synchro' ? typeof import('REMOTE_ALIAS_IDENTIFIER/synchro') :T extends 'REMOTE_ALIAS_IDENTIFIER/spreadsheet' ? typeof import('REMOTE_ALIAS_IDENTIFIER/spreadsheet') :T extends 'REMOTE_ALIAS_IDENTIFIER/spendesk' ? typeof import('REMOTE_ALIAS_IDENTIFIER/spendesk') :T extends 'REMOTE_ALIAS_IDENTIFIER/sobank' ? typeof import('REMOTE_ALIAS_IDENTIFIER/sobank') :T extends 'REMOTE_ALIAS_IDENTIFIER/sales' ? typeof import('REMOTE_ALIAS_IDENTIFIER/sales') :T extends 'REMOTE_ALIAS_IDENTIFIER/payfit' ? typeof import('REMOTE_ALIAS_IDENTIFIER/payfit') :T extends 'REMOTE_ALIAS_IDENTIFIER/github' ? typeof import('REMOTE_ALIAS_IDENTIFIER/github') :T extends 'REMOTE_ALIAS_IDENTIFIER/finance-jobs' ? typeof import('REMOTE_ALIAS_IDENTIFIER/finance-jobs') :T extends 'REMOTE_ALIAS_IDENTIFIER/etat-saisie' ? typeof import('REMOTE_ALIAS_IDENTIFIER/etat-saisie') :T extends 'REMOTE_ALIAS_IDENTIFIER/dashboard' ? typeof import('REMOTE_ALIAS_IDENTIFIER/dashboard') :T extends 'REMOTE_ALIAS_IDENTIFIER/credmut' ? typeof import('REMOTE_ALIAS_IDENTIFIER/credmut') :T extends 'REMOTE_ALIAS_IDENTIFIER/bnpp' ? typeof import('REMOTE_ALIAS_IDENTIFIER/bnpp') :T extends 'REMOTE_ALIAS_IDENTIFIER/amex' ? typeof import('REMOTE_ALIAS_IDENTIFIER/amex') :any;
|
package/dist/mf/@mf-types.zip
CHANGED
|
Binary file
|