@oomol-lab/open-connector 1.9.0 → 1.9.1
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/assets/open-connector/catalog/apps/agentearth.json +441 -0
- package/assets/open-connector/catalog/apps/appgrowing_mcp.json +863 -0
- package/assets/open-connector/catalog/apps/arcmira.json +610 -0
- package/assets/open-connector/catalog/apps/bainiu.json +654 -0
- package/assets/open-connector/catalog/apps/chaport.json +331 -0
- package/assets/open-connector/catalog/apps/cnb.json +1408 -0
- package/assets/open-connector/catalog/apps/crtsh.json +123 -0
- package/assets/open-connector/catalog/apps/eastmoney_miaoxiang.json +406 -0
- package/assets/open-connector/catalog/apps/fastmoss_mcp.json +876 -876
- package/assets/open-connector/catalog/apps/ftshare.json +1162 -0
- package/assets/open-connector/catalog/apps/fusion-api.json +143 -0
- package/assets/open-connector/catalog/apps/fxbaogao.json +308 -0
- package/assets/open-connector/catalog/apps/github.json +38 -3
- package/assets/open-connector/catalog/apps/hrmos_kintai.json +7519 -0
- package/assets/open-connector/catalog/apps/humor_api.json +351 -0
- package/assets/open-connector/catalog/apps/kaonavi.json +1723 -0
- package/assets/open-connector/catalog/apps/linear_mcp.json +882 -22
- package/assets/open-connector/catalog/apps/listinggood.json +362 -0
- package/assets/open-connector/catalog/apps/notion_mcp.json +338 -1
- package/assets/open-connector/catalog/apps/outlook.json +414 -0
- package/assets/open-connector/catalog/apps/porteden.json +1258 -0
- package/assets/open-connector/catalog/apps/qiuxiaoce.json +915 -0
- package/assets/open-connector/catalog/apps/qqmusic.json +1834 -0
- package/assets/open-connector/catalog/apps/rakuraku_seisan.json +217 -0
- package/assets/open-connector/catalog/apps/redfox.json +9661 -897
- package/assets/open-connector/catalog/apps/salesforce.json +4907 -0
- package/assets/open-connector/catalog/apps/sansan.json +4594 -0
- package/assets/open-connector/catalog/apps/smarthr.json +8071 -0
- package/assets/open-connector/catalog/apps/smooth.json +914 -0
- package/assets/open-connector/catalog/apps/tapd.json +727 -0
- package/assets/open-connector/catalog/apps/tencent_meeting_mcp.json +1301 -0
- package/assets/open-connector/catalog/apps/threatfox.json +203 -0
- package/assets/open-connector/catalog/apps/tradebee.json +915 -0
- package/assets/open-connector/catalog/apps/twittrapi.json +4914 -0
- package/assets/open-connector/catalog/apps/urlhaus.json +246 -0
- package/assets/open-connector/catalog/apps/weread.json +1514 -0
- package/assets/open-connector/catalog/apps/whatsapp.json +12 -0
- package/assets/open-connector/catalog/apps/zhiliaobiaoxun.json +812 -0
- package/assets/open-connector/catalog/apps-index.json +1 -1
- package/package.json +2 -1
- package/src/connection-service.js +55 -11
- package/src/core/provider-error-codes.d.ts +9 -0
- package/src/core/provider-error-codes.js +13 -0
- package/src/core/request.d.ts +2 -0
- package/src/core/request.js +11 -2
- package/src/mail/imap-smtp/protocol.js +4 -3
- package/src/oauth/oauth-flow-service.js +1 -0
- package/src/oauth/oauth-token.d.ts +2 -0
- package/src/providers/17track/runtime.js +17 -20
- package/src/providers/action-contracts.generated.d.ts +36 -6
- package/src/providers/agentearth/actions.d.ts +2 -0
- package/src/providers/agentearth/actions.js +100 -0
- package/src/providers/agentearth/executors.d.ts +4 -0
- package/src/providers/agentearth/executors.js +109 -0
- package/src/providers/appgrowing_mcp/actions.d.ts +2 -0
- package/src/providers/appgrowing_mcp/actions.js +175 -0
- package/src/providers/appgrowing_mcp/executors.d.ts +4 -0
- package/src/providers/appgrowing_mcp/executors.js +66 -0
- package/src/providers/arcmira/executors.d.ts +3 -0
- package/src/providers/arcmira/executors.js +8 -0
- package/src/providers/arcmira/runtime.d.ts +6 -0
- package/src/providers/arcmira/runtime.js +41 -0
- package/src/providers/bainiu/actions.d.ts +2 -0
- package/src/providers/bainiu/actions.js +108 -0
- package/src/providers/bainiu/executors.d.ts +4 -0
- package/src/providers/bainiu/executors.js +113 -0
- package/src/providers/baixiao/executors.js +1 -1
- package/src/providers/bing_webmaster/executors.js +1 -1
- package/src/providers/chaport/actions.d.ts +2 -0
- package/src/providers/chaport/actions.js +70 -0
- package/src/providers/chaport/executors.d.ts +4 -0
- package/src/providers/chaport/executors.js +128 -0
- package/src/providers/clickup/runtime.js +49 -52
- package/src/providers/cnb/actions.d.ts +2 -0
- package/src/providers/cnb/actions.js +341 -0
- package/src/providers/cnb/executors.d.ts +4 -0
- package/src/providers/cnb/executors.js +135 -0
- package/src/providers/coupontools/runtime.js +11 -14
- package/src/providers/crtsh/executors.d.ts +3 -0
- package/src/providers/crtsh/executors.js +19 -0
- package/src/providers/crtsh/runtime.d.ts +17 -0
- package/src/providers/crtsh/runtime.js +84 -0
- package/src/providers/eastmoney_miaoxiang/actions.d.ts +2 -0
- package/src/providers/eastmoney_miaoxiang/actions.js +95 -0
- package/src/providers/eastmoney_miaoxiang/executors.d.ts +4 -0
- package/src/providers/eastmoney_miaoxiang/executors.js +81 -0
- package/src/providers/fastmoss_mcp/actions-content.d.ts +2 -0
- package/src/providers/fastmoss_mcp/actions-content.js +140 -0
- package/src/providers/fastmoss_mcp/actions-creator.d.ts +2 -0
- package/src/providers/fastmoss_mcp/actions-creator.js +154 -0
- package/src/providers/fastmoss_mcp/actions-product.d.ts +2 -0
- package/src/providers/fastmoss_mcp/actions-product.js +167 -0
- package/src/providers/fastmoss_mcp/actions-research.d.ts +2 -0
- package/src/providers/fastmoss_mcp/actions-research.js +174 -0
- package/src/providers/fastmoss_mcp/actions-shop.d.ts +2 -0
- package/src/providers/fastmoss_mcp/actions-shop.js +142 -0
- package/src/providers/fastmoss_mcp/actions.js +11 -12
- package/src/providers/fastmoss_mcp/schemas.d.ts +51 -0
- package/src/providers/fastmoss_mcp/schemas.js +52 -0
- package/src/providers/ftshare/actions.d.ts +2 -0
- package/src/providers/ftshare/actions.js +124 -0
- package/src/providers/ftshare/executors.d.ts +4 -0
- package/src/providers/ftshare/executors.js +102 -0
- package/src/providers/fusion-api/operations.js +37 -0
- package/src/providers/fxbaogao/actions.d.ts +2 -0
- package/src/providers/fxbaogao/actions.js +74 -0
- package/src/providers/fxbaogao/executors.d.ts +4 -0
- package/src/providers/fxbaogao/executors.js +155 -0
- package/src/providers/github/app-installation.d.ts +37 -0
- package/src/providers/github/app-installation.js +233 -0
- package/src/providers/github/executors.js +93 -15
- package/src/providers/github/runtime-repository.js +21 -1
- package/src/providers/github/runtime-shared.d.ts +2 -0
- package/src/providers/github/runtime-shared.js +1 -0
- package/src/providers/googledrive/runtime-request.js +3 -3
- package/src/providers/hrmos_kintai/actions.d.ts +2 -0
- package/src/providers/hrmos_kintai/actions.js +139 -0
- package/src/providers/hrmos_kintai/attendance-actions.d.ts +2 -0
- package/src/providers/hrmos_kintai/attendance-actions.js +276 -0
- package/src/providers/hrmos_kintai/business-actions.d.ts +2 -0
- package/src/providers/hrmos_kintai/business-actions.js +143 -0
- package/src/providers/hrmos_kintai/business-schemas.d.ts +4 -0
- package/src/providers/hrmos_kintai/business-schemas.js +320 -0
- package/src/providers/hrmos_kintai/executors.d.ts +4 -0
- package/src/providers/hrmos_kintai/executors.js +61 -0
- package/src/providers/hrmos_kintai/export-actions.d.ts +2 -0
- package/src/providers/hrmos_kintai/export-actions.js +58 -0
- package/src/providers/hrmos_kintai/operations.d.ts +9 -0
- package/src/providers/hrmos_kintai/operations.js +278 -0
- package/src/providers/hrmos_kintai/runtime.d.ts +10 -0
- package/src/providers/hrmos_kintai/runtime.js +217 -0
- package/src/providers/hrmos_kintai/schemas.d.ts +10 -0
- package/src/providers/hrmos_kintai/schemas.js +70 -0
- package/src/providers/humor_api/actions.d.ts +2 -0
- package/src/providers/humor_api/actions.js +96 -0
- package/src/providers/humor_api/executors.d.ts +4 -0
- package/src/providers/humor_api/executors.js +76 -0
- package/src/providers/kaonavi/actions.d.ts +4 -0
- package/src/providers/kaonavi/actions.js +144 -0
- package/src/providers/kaonavi/additional-actions.d.ts +10 -0
- package/src/providers/kaonavi/additional-actions.js +203 -0
- package/src/providers/kaonavi/executors.d.ts +4 -0
- package/src/providers/kaonavi/executors.js +69 -0
- package/src/providers/kaonavi/runtime.d.ts +4 -0
- package/src/providers/kaonavi/runtime.js +69 -0
- package/src/providers/linear_mcp/actions.d.ts +14 -0
- package/src/providers/linear_mcp/actions.js +134 -0
- package/src/providers/linear_mcp/runtime-mcp.d.ts +7 -1
- package/src/providers/linear_mcp/runtime-mcp.js +140 -28
- package/src/providers/linkfox/runtime.js +48 -51
- package/src/providers/listinggood/actions.d.ts +2 -0
- package/src/providers/listinggood/actions.js +95 -0
- package/src/providers/listinggood/executors.d.ts +4 -0
- package/src/providers/listinggood/executors.js +99 -0
- package/src/providers/mcp-tools.d.ts +3 -0
- package/src/providers/mcp-tools.js +5 -4
- package/src/providers/notion_mcp/executors.js +53 -24
- package/src/providers/notion_mcp/mcp-response.d.ts +26 -0
- package/src/providers/notion_mcp/mcp-response.js +95 -0
- package/src/providers/omise/executors.js +1 -1
- package/src/providers/outlook/executors.js +35 -2
- package/src/providers/porteden/actions.d.ts +2 -0
- package/src/providers/porteden/actions.js +162 -0
- package/src/providers/porteden/executors.d.ts +4 -0
- package/src/providers/porteden/executors.js +140 -0
- package/src/providers/provider-runtime.d.ts +3 -2
- package/src/providers/pushover/runtime.js +28 -31
- package/src/providers/qianfan/runtime.js +16 -19
- package/src/providers/qiuxiaoce/actions.d.ts +2 -0
- package/src/providers/qiuxiaoce/actions.js +248 -0
- package/src/providers/qiuxiaoce/executors.d.ts +4 -0
- package/src/providers/qiuxiaoce/executors.js +76 -0
- package/src/providers/qiuxiaoce/routes.d.ts +1 -0
- package/src/providers/qiuxiaoce/routes.js +20 -0
- package/src/providers/qqmusic/actions.d.ts +2 -0
- package/src/providers/qqmusic/actions.js +229 -0
- package/src/providers/qqmusic/executors.d.ts +4 -0
- package/src/providers/qqmusic/executors.js +92 -0
- package/src/providers/qqmusic/report-schema.d.ts +4 -0
- package/src/providers/qqmusic/report-schema.js +119 -0
- package/src/providers/rakuraku_seisan/actions.d.ts +2 -0
- package/src/providers/rakuraku_seisan/actions.js +50 -0
- package/src/providers/rakuraku_seisan/executors.d.ts +4 -0
- package/src/providers/rakuraku_seisan/executors.js +40 -0
- package/src/providers/rakuraku_seisan/runtime.d.ts +8 -0
- package/src/providers/rakuraku_seisan/runtime.js +251 -0
- package/src/providers/redfox/actions-account.d.ts +2 -0
- package/src/providers/redfox/actions-account.js +24 -0
- package/src/providers/redfox/actions-autohome.d.ts +2 -0
- package/src/providers/redfox/actions-autohome.js +51 -0
- package/src/providers/redfox/actions-baijiahao.d.ts +2 -0
- package/src/providers/redfox/actions-baijiahao.js +58 -0
- package/src/providers/redfox/actions-bilibili.d.ts +2 -0
- package/src/providers/redfox/actions-bilibili.js +67 -0
- package/src/providers/redfox/actions-dongchedi.d.ts +2 -0
- package/src/providers/redfox/actions-dongchedi.js +49 -0
- package/src/providers/redfox/actions-douyin.d.ts +2 -0
- package/src/providers/redfox/actions-douyin.js +297 -0
- package/src/providers/redfox/actions-generation.d.ts +2 -0
- package/src/providers/redfox/actions-generation.js +293 -0
- package/src/providers/redfox/actions-instagram.d.ts +2 -0
- package/src/providers/redfox/actions-instagram.js +49 -0
- package/src/providers/redfox/actions-kuaishou.d.ts +2 -0
- package/src/providers/redfox/actions-kuaishou.js +53 -0
- package/src/providers/redfox/actions-search.d.ts +2 -0
- package/src/providers/redfox/actions-search.js +125 -0
- package/src/providers/redfox/actions-tiktok.d.ts +2 -0
- package/src/providers/redfox/actions-tiktok.js +136 -0
- package/src/providers/redfox/actions-tools.d.ts +2 -0
- package/src/providers/redfox/actions-tools.js +151 -0
- package/src/providers/redfox/actions-toutiao.d.ts +2 -0
- package/src/providers/redfox/actions-toutiao.js +68 -0
- package/src/providers/redfox/actions-transcription.d.ts +2 -0
- package/src/providers/redfox/actions-transcription.js +165 -0
- package/src/providers/redfox/actions-wechat-channel.d.ts +2 -0
- package/src/providers/redfox/actions-wechat-channel.js +63 -0
- package/src/providers/redfox/actions-wechat.d.ts +2 -0
- package/src/providers/redfox/actions-wechat.js +302 -0
- package/src/providers/redfox/actions-weibo.d.ts +2 -0
- package/src/providers/redfox/actions-weibo.js +61 -0
- package/src/providers/redfox/actions-x.d.ts +2 -0
- package/src/providers/redfox/actions-x.js +126 -0
- package/src/providers/redfox/actions-xiaohongshu.d.ts +2 -0
- package/src/providers/redfox/actions-xiaohongshu.js +244 -0
- package/src/providers/redfox/actions-yiche.d.ts +2 -0
- package/src/providers/redfox/actions-yiche.js +59 -0
- package/src/providers/redfox/actions-youtube.d.ts +2 -0
- package/src/providers/redfox/actions-youtube.js +64 -0
- package/src/providers/redfox/actions-zhihu.d.ts +2 -0
- package/src/providers/redfox/actions-zhihu.js +26 -0
- package/src/providers/redfox/actions.d.ts +2 -0
- package/src/providers/redfox/actions.js +49 -0
- package/src/providers/redfox/executors.d.ts +2 -14
- package/src/providers/redfox/executors.js +28 -551
- package/src/providers/redfox/routes.d.ts +11 -0
- package/src/providers/redfox/routes.js +329 -0
- package/src/providers/redfox/runtime.d.ts +6 -0
- package/src/providers/redfox/runtime.js +151 -0
- package/src/providers/redfox/schemas.d.ts +9 -0
- package/src/providers/redfox/schemas.js +40 -0
- package/src/providers/registry.generated.js +30 -0
- package/src/providers/salesforce/context.d.ts +16 -0
- package/src/providers/salesforce/context.js +58 -0
- package/src/providers/salesforce/executors.d.ts +5 -0
- package/src/providers/salesforce/executors.js +54 -0
- package/src/providers/salesforce/media.d.ts +9 -0
- package/src/providers/salesforce/media.js +66 -0
- package/src/providers/salesforce/oauth.d.ts +2 -0
- package/src/providers/salesforce/oauth.js +89 -0
- package/src/providers/salesforce/runtime-analytics.d.ts +2 -0
- package/src/providers/salesforce/runtime-analytics.js +60 -0
- package/src/providers/salesforce/runtime-automation.d.ts +2 -0
- package/src/providers/salesforce/runtime-automation.js +64 -0
- package/src/providers/salesforce/runtime-base.d.ts +2 -0
- package/src/providers/salesforce/runtime-base.js +51 -0
- package/src/providers/salesforce/runtime-bulk.d.ts +2 -0
- package/src/providers/salesforce/runtime-bulk.js +98 -0
- package/src/providers/salesforce/runtime-data.d.ts +2 -0
- package/src/providers/salesforce/runtime-data.js +207 -0
- package/src/providers/salesforce/runtime-files.d.ts +2 -0
- package/src/providers/salesforce/runtime-files.js +108 -0
- package/src/providers/salesforce/transport.d.ts +9 -0
- package/src/providers/salesforce/transport.js +65 -0
- package/src/providers/sansan/actions.d.ts +2 -0
- package/src/providers/sansan/actions.js +165 -0
- package/src/providers/sansan/admin-actions.d.ts +2 -0
- package/src/providers/sansan/admin-actions.js +181 -0
- package/src/providers/sansan/admin.d.ts +2 -0
- package/src/providers/sansan/admin.js +42 -0
- package/src/providers/sansan/business-actions.d.ts +2 -0
- package/src/providers/sansan/business-actions.js +160 -0
- package/src/providers/sansan/business.d.ts +2 -0
- package/src/providers/sansan/business.js +51 -0
- package/src/providers/sansan/executors.d.ts +4 -0
- package/src/providers/sansan/executors.js +59 -0
- package/src/providers/sansan/file-schema.d.ts +2 -0
- package/src/providers/sansan/file-schema.js +8 -0
- package/src/providers/sansan/files.d.ts +11 -0
- package/src/providers/sansan/files.js +49 -0
- package/src/providers/sansan/organization-actions.d.ts +2 -0
- package/src/providers/sansan/organization-actions.js +198 -0
- package/src/providers/sansan/organization-columns.d.ts +2 -0
- package/src/providers/sansan/organization-columns.js +33 -0
- package/src/providers/sansan/organization.d.ts +2 -0
- package/src/providers/sansan/organization.js +88 -0
- package/src/providers/sansan/read.d.ts +2 -0
- package/src/providers/sansan/read.js +25 -0
- package/src/providers/sansan/request.d.ts +22 -0
- package/src/providers/sansan/request.js +94 -0
- package/src/providers/sansan/schemas.d.ts +7 -0
- package/src/providers/sansan/schemas.js +72 -0
- package/src/providers/shopee/runtime.d.ts +33 -29
- package/src/providers/shopee/runtime.js +166 -169
- package/src/providers/smarthr/actions.d.ts +2 -0
- package/src/providers/smarthr/actions.js +286 -0
- package/src/providers/smarthr/employee-runtime.d.ts +1 -0
- package/src/providers/smarthr/employee-runtime.js +63 -0
- package/src/providers/smarthr/employee-schema.d.ts +3 -0
- package/src/providers/smarthr/employee-schema.js +222 -0
- package/src/providers/smarthr/executors.d.ts +4 -0
- package/src/providers/smarthr/executors.js +35 -0
- package/src/providers/smarthr/pagination.d.ts +1 -0
- package/src/providers/smarthr/pagination.js +84 -0
- package/src/providers/smarthr/resource-routes.d.ts +16 -0
- package/src/providers/smarthr/resource-routes.js +163 -0
- package/src/providers/smarthr/runtime.d.ts +13 -0
- package/src/providers/smarthr/runtime.js +242 -0
- package/src/providers/smarthr/supplemental-actions.d.ts +2 -0
- package/src/providers/smarthr/supplemental-actions.js +541 -0
- package/src/providers/smooth/actions.d.ts +2 -0
- package/src/providers/smooth/actions.js +138 -0
- package/src/providers/smooth/executors.d.ts +4 -0
- package/src/providers/smooth/executors.js +102 -0
- package/src/providers/tapd/actions.d.ts +8 -0
- package/src/providers/tapd/actions.js +89 -0
- package/src/providers/tapd/executors.d.ts +4 -0
- package/src/providers/tapd/executors.js +137 -0
- package/src/providers/teable/runtime.js +12 -15
- package/src/providers/tencent_meeting_mcp/actions.d.ts +2 -0
- package/src/providers/tencent_meeting_mcp/actions.js +420 -0
- package/src/providers/tencent_meeting_mcp/executors.d.ts +4 -0
- package/src/providers/tencent_meeting_mcp/executors.js +117 -0
- package/src/providers/threatfox/executors.d.ts +4 -0
- package/src/providers/threatfox/executors.js +40 -0
- package/src/providers/threatfox/runtime.d.ts +15 -0
- package/src/providers/threatfox/runtime.js +128 -0
- package/src/providers/ticket_tailor/runtime.js +1 -1
- package/src/providers/ticketmaster/runtime.js +3 -6
- package/src/providers/timelinesai/runtime.js +13 -16
- package/src/providers/tradebee/actions.d.ts +2 -0
- package/src/providers/tradebee/actions.js +176 -0
- package/src/providers/tradebee/executors.d.ts +4 -0
- package/src/providers/tradebee/executors.js +83 -0
- package/src/providers/twittrapi/executors.d.ts +4 -0
- package/src/providers/twittrapi/executors.js +17 -0
- package/src/providers/twittrapi/runtime.d.ts +12 -0
- package/src/providers/twittrapi/runtime.js +203 -0
- package/src/providers/urlhaus/executors.d.ts +4 -0
- package/src/providers/urlhaus/executors.js +40 -0
- package/src/providers/urlhaus/runtime.d.ts +15 -0
- package/src/providers/urlhaus/runtime.js +142 -0
- package/src/providers/wangdian/runtime.js +16 -19
- package/src/providers/weread/actions.d.ts +2 -0
- package/src/providers/weread/actions.js +424 -0
- package/src/providers/weread/executors.d.ts +4 -0
- package/src/providers/weread/executors.js +98 -0
- package/src/providers/whatsapp/runtime.js +6 -1
- package/src/providers/workast/runtime.js +12 -17
- package/src/providers/youzan/runtime.js +21 -24
- package/src/providers/zenkit/runtime.js +13 -19
- package/src/providers/zhiliaobiaoxun/actions.d.ts +2 -0
- package/src/providers/zhiliaobiaoxun/actions.js +138 -0
- package/src/providers/zhiliaobiaoxun/executors.d.ts +4 -0
- package/src/providers/zhiliaobiaoxun/executors.js +78 -0
- package/src/server/api/auth.d.ts +2 -0
- package/src/server/api/auth.js +2 -1
- package/src/server/api/console-catalog-routes.d.ts +17 -0
- package/src/server/api/console-catalog-routes.js +88 -0
- package/src/server/api/console-oauth-routes.d.ts +18 -0
- package/src/server/api/console-oauth-routes.js +298 -0
- package/src/server/api/docs-routes.d.ts +12 -0
- package/src/server/api/docs-routes.js +38 -0
- package/src/server/api/http-utils.d.ts +1 -0
- package/src/server/api/http-utils.js +8 -0
- package/src/server/api/marketplace-routes.d.ts +7 -0
- package/src/server/api/marketplace-routes.js +62 -0
- package/src/server/api/mcp-routes.d.ts +18 -0
- package/src/server/api/mcp-routes.js +37 -0
- package/src/server/api/policy-routes.d.ts +13 -0
- package/src/server/api/policy-routes.js +50 -0
- package/src/server/api/policy-snapshot.d.ts +14 -0
- package/src/server/api/policy-snapshot.js +30 -0
- package/src/server/api/run-log-routes.d.ts +7 -0
- package/src/server/api/run-log-routes.js +70 -0
- package/src/server/api/runtime-api.d.ts +0 -7
- package/src/server/api/runtime-api.js +0 -13
- package/src/server/api/runtime-app-routes.d.ts +10 -0
- package/src/server/api/runtime-app-routes.js +72 -0
- package/src/server/api/runtime-catalog-routes.d.ts +37 -0
- package/src/server/api/runtime-catalog-routes.js +133 -0
- package/src/server/api/runtime-execution-routes.d.ts +16 -0
- package/src/server/api/runtime-execution-routes.js +198 -0
- package/src/server/api/saas-oauth-routes.d.ts +9 -0
- package/src/server/api/saas-oauth-routes.js +27 -0
- package/src/server/api/saas-project-routes.d.ts +7 -0
- package/src/server/api/saas-project-routes.js +16 -0
- package/src/server/api/transit-file-routes.d.ts +9 -0
- package/src/server/api/transit-file-routes.js +49 -0
- package/src/server/api/trigger-routes.d.ts +15 -0
- package/src/server/api/trigger-routes.js +48 -0
- package/src/server/connect-app.d.ts +1 -0
- package/src/server/connect-app.js +3 -1
- package/src/server/connect-server.d.ts +3 -54
- package/src/server/connect-server.js +95 -1148
- package/src/providers/fastmoss_mcp/official-tools.json +0 -2922
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { s } from "../../core/json-schema.js";
|
|
2
|
+
const dealPurchaseSchema = s.object("Supplier payment-notice data.", {
|
|
3
|
+
id: s.integer("Record ID."),
|
|
4
|
+
business_partner_id: s.integer("Business partner ID."),
|
|
5
|
+
partner_number: s.string("Business partner number."),
|
|
6
|
+
postal_code: s.string("Postal code."),
|
|
7
|
+
prefectural_id: s.integer("Prefecture ID."),
|
|
8
|
+
city: s.string("City, district and street address."),
|
|
9
|
+
building: s.string("Building name."),
|
|
10
|
+
branch: s.string("Department."),
|
|
11
|
+
appointment: s.string("Job title."),
|
|
12
|
+
person: s.string("Billing or payment contact person."),
|
|
13
|
+
pay_type: s.integer("Rate type: 0 hourly with adjustments, 10 single hourly rate, 1 monthly with adjustments, 11 single monthly rate."),
|
|
14
|
+
monthly_price: s.integer("Monthly rate."),
|
|
15
|
+
min_hour: s.integer("Lower bound of base working hours."),
|
|
16
|
+
max_hour: s.integer("Upper bound of base working hours."),
|
|
17
|
+
surplus: s.integer("Excess-hours rate."),
|
|
18
|
+
surplus_fractional_price: s.integer("Amount used to round the excess-hours rate."),
|
|
19
|
+
surplus_fractional: s.integer("Excess-rate rounding: 1 up, 2 down, 3 nearest."),
|
|
20
|
+
deduction: s.integer("Deduction amount or rate in the contract settlement settings."),
|
|
21
|
+
deduction_fractional_price: s.integer("Amount used to round deductions."),
|
|
22
|
+
deduction_fractional: s.integer("Deduction rounding: 1 up, 2 down, 3 nearest."),
|
|
23
|
+
fractional_total: s.integer("Daily total working-time rounding: 0 none, 1 up, 2 down."),
|
|
24
|
+
fractional_minute_total: s.integer("Rounding interval in minutes for daily total working time."),
|
|
25
|
+
fractional_start_at: s.integer("Clock-in rounding mode. 0 none, 1 up, 2 down."),
|
|
26
|
+
fractional_minute_start_at: s.integer("Clock-in rounding interval in minutes."),
|
|
27
|
+
fractional_end_at: s.integer("Clock-out rounding mode. 0 none, 1 up, 2 down."),
|
|
28
|
+
fractional_minute_end_at: s.integer("Clock-out rounding interval in minutes."),
|
|
29
|
+
fractional: s.integer("Settlement rounding mode."),
|
|
30
|
+
fractional_minute: s.integer("Settlement rounding interval in minutes."),
|
|
31
|
+
subject: s.string("Document subject."),
|
|
32
|
+
show_year_month: s.boolean("Document show year and month."),
|
|
33
|
+
show_work_time: s.boolean("Document show working time."),
|
|
34
|
+
memo: s.string("Document memo."),
|
|
35
|
+
hourly_price: s.integer("Regular hourly rate."),
|
|
36
|
+
late_night_price: s.integer("Regular late-night hourly rate."),
|
|
37
|
+
overtime_price: s.integer("Overtime hourly rate."),
|
|
38
|
+
overtime_late_night_price: s.integer("Late-night overtime hourly rate."),
|
|
39
|
+
over_60_hour_price: s.integer("Hourly rate for overtime beyond 60 hours."),
|
|
40
|
+
over_60_hour_late_night_price: s.integer("Late-night hourly rate for overtime beyond 60 hours."),
|
|
41
|
+
holiday_1_price: s.integer("Non-statutory holiday hourly rate."),
|
|
42
|
+
holiday_1_late_night_price: s.integer("Non-statutory holiday late-night hourly rate."),
|
|
43
|
+
holiday_2_price: s.integer("Statutory holiday hourly rate."),
|
|
44
|
+
holiday_2_late_night_price: s.integer("Statutory holiday late-night hourly rate."),
|
|
45
|
+
}, { required: [] });
|
|
46
|
+
const dealPurchaseInvoiceSchema = s.object("Supplier purchase-invoice data.", {
|
|
47
|
+
id: s.integer("Record ID."),
|
|
48
|
+
business_partner_id: s.integer("Business partner ID."),
|
|
49
|
+
partner_number: s.string("Business partner number."),
|
|
50
|
+
postal_code: s.string("Postal code."),
|
|
51
|
+
prefectural_id: s.integer("Prefecture ID."),
|
|
52
|
+
city: s.string("City, district and street address."),
|
|
53
|
+
building: s.string("Building name."),
|
|
54
|
+
branch: s.string("Department."),
|
|
55
|
+
appointment: s.string("Job title."),
|
|
56
|
+
person: s.string("Billing or payment contact person."),
|
|
57
|
+
pay_type: s.integer("Rate type: 0 hourly with adjustments, 10 single hourly rate, 1 monthly with adjustments, 11 single monthly rate."),
|
|
58
|
+
monthly_price: s.integer("Monthly rate."),
|
|
59
|
+
min_hour: s.integer("Lower bound of base working hours."),
|
|
60
|
+
max_hour: s.integer("Upper bound of base working hours."),
|
|
61
|
+
surplus: s.integer("Excess-hours rate."),
|
|
62
|
+
surplus_fractional_price: s.integer("Amount used to round the excess-hours rate."),
|
|
63
|
+
surplus_fractional: s.integer("Excess-rate rounding: 1 up, 2 down, 3 nearest."),
|
|
64
|
+
deduction: s.integer("Deduction amount or rate in the contract settlement settings."),
|
|
65
|
+
deduction_fractional_price: s.integer("Amount used to round deductions."),
|
|
66
|
+
deduction_fractional: s.integer("Deduction rounding: 1 up, 2 down, 3 nearest."),
|
|
67
|
+
fractional_total: s.integer("Daily total working-time rounding: 0 none, 1 up, 2 down."),
|
|
68
|
+
fractional_minute_total: s.integer("Rounding interval in minutes for daily total working time."),
|
|
69
|
+
fractional_start_at: s.integer("Clock-in rounding mode. 0 none, 1 up, 2 down."),
|
|
70
|
+
fractional_minute_start_at: s.integer("Clock-in rounding interval in minutes."),
|
|
71
|
+
fractional_end_at: s.integer("Clock-out rounding mode. 0 none, 1 up, 2 down."),
|
|
72
|
+
fractional_minute_end_at: s.integer("Clock-out rounding interval in minutes."),
|
|
73
|
+
fractional: s.integer("Settlement rounding mode."),
|
|
74
|
+
fractional_minute: s.integer("Settlement rounding interval in minutes."),
|
|
75
|
+
subject: s.string("Document subject."),
|
|
76
|
+
show_year_month: s.boolean("Document show year and month."),
|
|
77
|
+
show_work_time: s.boolean("Document show working time."),
|
|
78
|
+
memo: s.string("Document memo."),
|
|
79
|
+
hourly_price: s.integer("Regular hourly rate."),
|
|
80
|
+
late_night_price: s.integer("Regular late-night hourly rate."),
|
|
81
|
+
overtime_price: s.integer("Overtime hourly rate."),
|
|
82
|
+
overtime_late_night_price: s.integer("Late-night overtime hourly rate."),
|
|
83
|
+
over_60_hour_price: s.integer("Hourly rate for overtime beyond 60 hours."),
|
|
84
|
+
over_60_hour_late_night_price: s.integer("Late-night hourly rate for overtime beyond 60 hours."),
|
|
85
|
+
holiday_1_price: s.integer("Non-statutory holiday hourly rate."),
|
|
86
|
+
holiday_1_late_night_price: s.integer("Non-statutory holiday late-night hourly rate."),
|
|
87
|
+
holiday_2_price: s.integer("Statutory holiday hourly rate."),
|
|
88
|
+
holiday_2_late_night_price: s.integer("Statutory holiday late-night hourly rate."),
|
|
89
|
+
}, { required: [] });
|
|
90
|
+
const contractApproverSchema = s.object("Contract approver assignment.", {
|
|
91
|
+
id: s.integer("Record ID."),
|
|
92
|
+
deal_contract_id: s.integer("Contract ID."),
|
|
93
|
+
user_id: s.integer("Employee ID."),
|
|
94
|
+
deal_enabled: s.boolean("Whether this contract approver is enabled."),
|
|
95
|
+
}, { required: [] });
|
|
96
|
+
export const contractSchema = {
|
|
97
|
+
minProperties: 1,
|
|
98
|
+
...s.object("Contract data, including rates, settlement, supplier documents and approvers.", {
|
|
99
|
+
id: s.integer("Record ID."),
|
|
100
|
+
business_partner_id: s.integer("Business partner ID."),
|
|
101
|
+
user_id: s.integer("Employee ID."),
|
|
102
|
+
contract_number: s.string("Contract number."),
|
|
103
|
+
contract_category: s.string("Contract category: contract, delegation, semi_delegation, regular_use_type_temping, registration_type_temping, introduction_plan_temping, maintenance or other."),
|
|
104
|
+
partner_number: s.string("Business partner number."),
|
|
105
|
+
postal_code: s.string("Postal code."),
|
|
106
|
+
prefectural_id: s.integer("Prefecture ID."),
|
|
107
|
+
city: s.string("City, district and street address."),
|
|
108
|
+
building: s.string("Building name."),
|
|
109
|
+
branch: s.string("Department."),
|
|
110
|
+
appointment: s.string("Job title."),
|
|
111
|
+
person: s.string("Billing or payment contact person."),
|
|
112
|
+
contract_notes: s.string("Contract notes."),
|
|
113
|
+
start_at: s.string("Contract start date.", { format: "date" }),
|
|
114
|
+
end_at: s.string("Contract end date.", { format: "date" }),
|
|
115
|
+
work_type: s.integer("Work report mode: 0 daily arrival/departure times, 1 monthly working hours only."),
|
|
116
|
+
pay_type: s.integer("Rate type: 0 hourly with adjustments, 10 single hourly rate, 1 monthly with adjustments, 11 single monthly rate."),
|
|
117
|
+
hourly_price: s.nullableInteger("Regular hourly rate."),
|
|
118
|
+
monthly_price: s.integer("Monthly rate."),
|
|
119
|
+
late_night_price: s.nullableInteger("Regular late-night hourly rate."),
|
|
120
|
+
overtime_price: s.nullableInteger("Overtime hourly rate."),
|
|
121
|
+
overtime_late_night_price: s.nullableInteger("Late-night overtime hourly rate."),
|
|
122
|
+
over_60_hour_price: s.nullableInteger("Hourly rate for overtime beyond 60 hours."),
|
|
123
|
+
over_60_hour_late_night_price: s.nullableInteger("Late-night hourly rate for overtime beyond 60 hours."),
|
|
124
|
+
holiday_1_price: s.nullableInteger("Non-statutory holiday hourly rate."),
|
|
125
|
+
holiday_1_late_night_price: s.nullableInteger("Non-statutory holiday late-night hourly rate."),
|
|
126
|
+
holiday_2_price: s.nullableInteger("Statutory holiday hourly rate."),
|
|
127
|
+
holiday_2_late_night_price: s.nullableInteger("Statutory holiday late-night hourly rate."),
|
|
128
|
+
min_hour: s.integer("Lower bound of base working hours."),
|
|
129
|
+
max_hour: s.integer("Upper bound of base working hours."),
|
|
130
|
+
surplus: s.integer("Excess-hours rate."),
|
|
131
|
+
surplus_fractional_price: s.integer("Amount used to round the excess-hours rate."),
|
|
132
|
+
surplus_fractional: s.integer("Excess-rate rounding: 1 up, 2 down, 3 nearest."),
|
|
133
|
+
deduction: s.integer("Deduction amount or rate in the contract settlement settings."),
|
|
134
|
+
deduction_fractional_price: s.integer("Amount used to round deductions."),
|
|
135
|
+
deduction_fractional: s.integer("Deduction rounding: 1 up, 2 down, 3 nearest."),
|
|
136
|
+
cutoff_date: s.integer("Billing cutoff day."),
|
|
137
|
+
pay_cycle: s.integer("Payment cycle: 0 current month, 1 next month, 2 two months later, 3 three months later."),
|
|
138
|
+
pay_date: s.integer("Payment day; 31 means month-end."),
|
|
139
|
+
fractional_total: s.integer("Daily total working-time rounding: 0 none, 2 down."),
|
|
140
|
+
fractional_minute_total: s.integer("Rounding interval in minutes for daily total working time."),
|
|
141
|
+
fractional_start_at: s.integer("Clock-in rounding mode. 1 up, 2 down, 3 nearest."),
|
|
142
|
+
fractional_minute_start_at: s.integer("Clock-in rounding interval in minutes."),
|
|
143
|
+
fractional_end_at: s.integer("Clock-out rounding mode. 1 up, 2 down, 3 nearest."),
|
|
144
|
+
fractional_minute_end_at: s.integer("Clock-out rounding interval in minutes."),
|
|
145
|
+
fractional: s.integer("Contract settlement rounding mode."),
|
|
146
|
+
fractional_minute: s.integer("Contract settlement rounding interval in minutes."),
|
|
147
|
+
subject: s.string("Document subject."),
|
|
148
|
+
show_year_month: s.boolean("Document show year and month."),
|
|
149
|
+
show_work_time: s.boolean("Document show working time."),
|
|
150
|
+
memo: s.string("Document memo."),
|
|
151
|
+
deal_purchase: { ...dealPurchaseSchema, description: "Supplier payment-notice settings." },
|
|
152
|
+
deal_purchase_invoice: {
|
|
153
|
+
...dealPurchaseInvoiceSchema,
|
|
154
|
+
description: "Supplier purchase-invoice settings.",
|
|
155
|
+
},
|
|
156
|
+
deal_contract_user_approvers: s.array("Contract approver assignments.", contractApproverSchema),
|
|
157
|
+
}, { required: [] }),
|
|
158
|
+
};
|
|
159
|
+
export const businessPartnerSchema = {
|
|
160
|
+
minProperties: 1,
|
|
161
|
+
...s.object("Business partner data. HRMOS validates required fields according to corporation or individual status; retain all applicable document settings.", {
|
|
162
|
+
id: s.integer("Record ID."),
|
|
163
|
+
last_name: s.string("Individual partner or contact family name."),
|
|
164
|
+
first_name: s.string("Individual partner or contact given name."),
|
|
165
|
+
last_name_kana: s.string("Individual partner family name in Katakana."),
|
|
166
|
+
first_name_kana: s.string("Individual partner given name in Katakana."),
|
|
167
|
+
lodgment_id: s.integer("Workplace ID."),
|
|
168
|
+
configuration: s.integer("Position of the legal entity designation: 0 none, 1 before the name, 2 after the name."),
|
|
169
|
+
configuration_label: s.integer("Legal entity designation ID: 1 stock company, 2 limited company, 3 religious corporation, 4 foundation, 5 association, 6 social welfare, 7 school, 8 medical, 9 public-interest corporation, 10 NPO, 11 LLC, 12 general partnership, 13 limited partnership, 14 general association, 15 public-interest association, 16 special association, 17 general foundation, 18 public-interest foundation, 19 special foundation, 20 legal professional, 21 tax accountant, 22 labor/social security attorney, 23 judicial scrivener corporation."),
|
|
170
|
+
deal_report_mail_subject: s.string("Consolidated billing email subject."),
|
|
171
|
+
deal_report_mail_body: s.string("Consolidated billing email body."),
|
|
172
|
+
name: s.string("Business partner name; required fields depend on whether the partner is a corporation or an individual."),
|
|
173
|
+
name_kana: s.string("Business partner name in Katakana."),
|
|
174
|
+
partner_number: s.string("Business partner number."),
|
|
175
|
+
invoice_code: s.string("Qualified invoice issuer registration number."),
|
|
176
|
+
postal_code: s.string("Postal code."),
|
|
177
|
+
prefectural_id: s.integer("Prefecture ID."),
|
|
178
|
+
city: s.string("City, district and street address."),
|
|
179
|
+
building: s.string("Building name."),
|
|
180
|
+
branch: s.string("Department."),
|
|
181
|
+
appointment: s.string("Job title."),
|
|
182
|
+
person: s.string("Billing or payment contact person."),
|
|
183
|
+
tel: s.string("Telephone number."),
|
|
184
|
+
email: s.string("Email address."),
|
|
185
|
+
cc_email: s.string("CC email address."),
|
|
186
|
+
fractional_total: s.integer("Daily total working-time rounding: 0 none, 1 up, 2 down."),
|
|
187
|
+
fractional_minute_total: s.integer("Rounding interval in minutes for daily total working time."),
|
|
188
|
+
fractional_start_at: s.integer("Clock-in rounding mode. 1 up, 2 down, 3 nearest."),
|
|
189
|
+
fractional_minute_start_at: s.integer("Clock-in rounding interval in minutes."),
|
|
190
|
+
fractional_end_at: s.integer("Clock-out rounding mode. 1 up, 2 down, 3 nearest."),
|
|
191
|
+
fractional_minute_end_at: s.integer("Clock-out rounding interval in minutes."),
|
|
192
|
+
invoice_create: s.integer("Whether to create sales invoices: 0 no, 1 yes."),
|
|
193
|
+
fractional: s.integer("Settlement rounding mode."),
|
|
194
|
+
fractional_minute: s.integer("Settlement rounding interval in minutes."),
|
|
195
|
+
cutoff_date: s.integer("Billing cutoff day."),
|
|
196
|
+
pay_cycle: s.integer("Payment cycle: 0 current month, 1 next month, 2 two months later, 3 three months later."),
|
|
197
|
+
pay_date: s.integer("Payment day; 31 means month-end."),
|
|
198
|
+
deal_document_purchases: s.array("Payment-notice attachments: purchase, work or expense.", {
|
|
199
|
+
...s.string("Document type."),
|
|
200
|
+
enum: ["purchase", "work", "expense"],
|
|
201
|
+
}),
|
|
202
|
+
purchase_tax_type: {
|
|
203
|
+
...s.string("Payment notice tax treatment: included or excluded."),
|
|
204
|
+
enum: ["included", "excluded"],
|
|
205
|
+
},
|
|
206
|
+
purchase_withholding: s.boolean("Payment notice withholding tax flag."),
|
|
207
|
+
purchase_subject: s.string("Payment notice subject."),
|
|
208
|
+
purchase_show_year_month: s.boolean("Payment notice show year and month."),
|
|
209
|
+
purchase_show_work_time: s.boolean("Payment notice show working time."),
|
|
210
|
+
purchase_main: s.string("Payment notice monthly base-work item label."),
|
|
211
|
+
purchase_deduction: s.string("Payment notice monthly deduction item label."),
|
|
212
|
+
purchase_surplus: s.string("Payment notice monthly excess-hours item label."),
|
|
213
|
+
purchase_username_view: s.boolean("Payment notice show employee name on monthly items."),
|
|
214
|
+
purchase_monthly_only_one: s.string("Payment notice single monthly rate item label."),
|
|
215
|
+
purchase_monthly_only_one_username_view: s.boolean("Payment notice show employee name on single monthly rate items."),
|
|
216
|
+
purchase_hourly_main: s.string("Payment notice regular hourly item label."),
|
|
217
|
+
purchase_late_night: s.string("Payment notice regular late-night item label."),
|
|
218
|
+
purchase_overtime: s.string("Payment notice overtime item label."),
|
|
219
|
+
purchase_overtime_late_night: s.string("Payment notice late-night overtime item label."),
|
|
220
|
+
purchase_over_60_hour: s.string("Payment notice overtime beyond 60 hours item label."),
|
|
221
|
+
purchase_over_60_hour_late_night: s.string("Payment notice late-night overtime beyond 60 hours item label."),
|
|
222
|
+
purchase_holiday_1: s.string("Payment notice non-statutory holiday item label."),
|
|
223
|
+
purchase_holiday_1_late_night: s.string("Payment notice non-statutory holiday late-night item label."),
|
|
224
|
+
purchase_holiday_2: s.string("Payment notice statutory holiday item label."),
|
|
225
|
+
purchase_holiday_2_late_night: s.string("Payment notice statutory holiday late-night item label."),
|
|
226
|
+
purchase_hourly_username_view: s.boolean("Payment notice show employee name on hourly items."),
|
|
227
|
+
purchase_hourly_only_one: s.string("Payment notice single hourly rate item label."),
|
|
228
|
+
purchase_hourly_only_one_username_view: s.boolean("Payment notice show employee name on single hourly rate items."),
|
|
229
|
+
bank_account: s.string("Document bank account for payment."),
|
|
230
|
+
purchase_notes: s.string("Payment notice notes."),
|
|
231
|
+
purchase_memo: s.string("Payment notice memo."),
|
|
232
|
+
purchase_mail_subject: s.string("Payment notice email subject."),
|
|
233
|
+
purchase_mail_body: s.string("Payment notice email body."),
|
|
234
|
+
deal_document_invoices: s.array("Sales-invoice attachments: invoice, work or expense.", {
|
|
235
|
+
...s.string("Document type."),
|
|
236
|
+
enum: ["invoice", "work", "expense"],
|
|
237
|
+
}),
|
|
238
|
+
deal_document_totals: s.array("Consolidated billing attachments: invoice, work or expense.", {
|
|
239
|
+
...s.string("Document type."),
|
|
240
|
+
enum: ["invoice", "work", "expense"],
|
|
241
|
+
}),
|
|
242
|
+
subject: s.string("Document subject."),
|
|
243
|
+
show_year_month: s.boolean("Document show year and month."),
|
|
244
|
+
show_work_time: s.boolean("Document show working time."),
|
|
245
|
+
invoice_main: s.string("Sales invoice monthly base-work item label."),
|
|
246
|
+
invoice_deduction: s.string("Sales invoice monthly deduction item label."),
|
|
247
|
+
invoice_surplus: s.string("Sales invoice monthly excess-hours item label."),
|
|
248
|
+
invoice_username_view: s.boolean("Sales invoice show employee name on monthly items."),
|
|
249
|
+
invoice_monthly_only_one: s.string("Sales invoice single monthly rate item label."),
|
|
250
|
+
invoice_monthly_only_one_username_view: s.boolean("Sales invoice show employee name on single monthly rate items."),
|
|
251
|
+
invoice_hourly_main: s.string("Sales invoice regular hourly item label."),
|
|
252
|
+
invoice_late_night: s.string("Sales invoice regular late-night item label."),
|
|
253
|
+
invoice_overtime: s.string("Sales invoice overtime item label."),
|
|
254
|
+
invoice_overtime_late_night: s.string("Sales invoice late-night overtime item label."),
|
|
255
|
+
invoice_over_60_hour: s.string("Sales invoice overtime beyond 60 hours item label."),
|
|
256
|
+
invoice_over_60_hour_late_night: s.string("Sales invoice late-night overtime beyond 60 hours item label."),
|
|
257
|
+
invoice_holiday_1: s.string("Sales invoice non-statutory holiday item label."),
|
|
258
|
+
invoice_holiday_1_late_night: s.string("Sales invoice non-statutory holiday late-night item label."),
|
|
259
|
+
invoice_holiday_2: s.string("Sales invoice statutory holiday item label."),
|
|
260
|
+
invoice_holiday_2_late_night: s.string("Sales invoice statutory holiday late-night item label."),
|
|
261
|
+
invoice_hourly_username_view: s.boolean("Sales invoice show employee name on hourly items."),
|
|
262
|
+
invoice_hourly_only_one: s.string("Sales invoice single hourly rate item label."),
|
|
263
|
+
invoice_hourly_only_one_username_view: s.boolean("Sales invoice show employee name on single hourly rate items."),
|
|
264
|
+
invoice_bank_account: s.string("Sales invoice bank account for payment."),
|
|
265
|
+
invoice_notes: s.string("Sales invoice notes."),
|
|
266
|
+
invoice_memo: s.string("Sales invoice memo."),
|
|
267
|
+
mail_subject: s.string("Document email subject."),
|
|
268
|
+
mail_body: s.string("Document email body."),
|
|
269
|
+
purchase_issue_document: {
|
|
270
|
+
...s.string("Document to issue to the supplier."),
|
|
271
|
+
enum: ["purchase", "purchase_invoice"],
|
|
272
|
+
},
|
|
273
|
+
deal_document_purchase_invoices: s.array("Purchase-invoice attachments: purchase_invoice, work or expense.", {
|
|
274
|
+
...s.string("Document type."),
|
|
275
|
+
enum: ["purchase_invoice", "work", "expense"],
|
|
276
|
+
}),
|
|
277
|
+
purchase_invoice_tax_type: {
|
|
278
|
+
...s.string("Purchase invoice tax treatment: included or excluded."),
|
|
279
|
+
enum: ["included", "excluded"],
|
|
280
|
+
},
|
|
281
|
+
purchase_invoice_withholding: s.boolean("Purchase invoice withholding tax flag."),
|
|
282
|
+
purchase_invoice_subject: s.string("Purchase invoice subject."),
|
|
283
|
+
purchase_invoice_show_year_month: s.boolean("Purchase invoice show year and month."),
|
|
284
|
+
purchase_invoice_show_work_time: s.boolean("Purchase invoice show working time."),
|
|
285
|
+
purchase_invoice_main: s.string("Purchase invoice monthly base-work item label."),
|
|
286
|
+
purchase_invoice_deduction: s.string("Purchase invoice monthly deduction item label."),
|
|
287
|
+
purchase_invoice_surplus: s.string("Purchase invoice monthly excess-hours item label."),
|
|
288
|
+
purchase_invoice_username_view: s.boolean("Purchase invoice show employee name on monthly items."),
|
|
289
|
+
purchase_invoice_monthly_only_one: s.string("Purchase invoice single monthly rate item label."),
|
|
290
|
+
purchase_invoice_monthly_only_one_username_view: s.boolean("Purchase invoice show employee name on single monthly rate items."),
|
|
291
|
+
purchase_invoice_hourly_main: s.string("Purchase invoice regular hourly item label."),
|
|
292
|
+
purchase_invoice_late_night: s.string("Purchase invoice regular late-night item label."),
|
|
293
|
+
purchase_invoice_overtime: s.string("Purchase invoice overtime item label."),
|
|
294
|
+
purchase_invoice_overtime_late_night: s.string("Purchase invoice late-night overtime item label."),
|
|
295
|
+
purchase_invoice_over_60_hour: s.string("Purchase invoice overtime beyond 60 hours item label."),
|
|
296
|
+
purchase_invoice_over_60_hour_late_night: s.string("Purchase invoice late-night overtime beyond 60 hours item label."),
|
|
297
|
+
purchase_invoice_holiday_1: s.string("Purchase invoice non-statutory holiday item label."),
|
|
298
|
+
purchase_invoice_holiday_1_late_night: s.string("Purchase invoice non-statutory holiday late-night item label."),
|
|
299
|
+
purchase_invoice_holiday_2: s.string("Purchase invoice statutory holiday item label."),
|
|
300
|
+
purchase_invoice_holiday_2_late_night: s.string("Purchase invoice statutory holiday late-night item label."),
|
|
301
|
+
purchase_invoice_hourly_username_view: s.boolean("Purchase invoice show employee name on hourly items."),
|
|
302
|
+
purchase_invoice_hourly_only_one: s.string("Purchase invoice single hourly rate item label."),
|
|
303
|
+
purchase_invoice_hourly_only_one_username_view: s.boolean("Purchase invoice show employee name on single hourly rate items."),
|
|
304
|
+
purchase_invoice_bank_account: s.string("Purchase invoice bank account for payment."),
|
|
305
|
+
purchase_invoice_notes: s.string("Purchase invoice notes."),
|
|
306
|
+
purchase_invoice_memo: s.string("Purchase invoice memo."),
|
|
307
|
+
purchase_invoice_mail_subject: s.string("Purchase invoice email subject."),
|
|
308
|
+
purchase_invoice_mail_body: s.string("Purchase invoice email body."),
|
|
309
|
+
close_out: s.integer("Trading status: 0 active, 1 trading ended."),
|
|
310
|
+
notes: s.string("Notes."),
|
|
311
|
+
}, { required: [] }),
|
|
312
|
+
};
|
|
313
|
+
export const businessPartnerUserSchema = s.object("Business partner approval contact data.", {
|
|
314
|
+
id: s.integer("Record ID."),
|
|
315
|
+
first_name: s.string("Individual partner or contact given name."),
|
|
316
|
+
last_name: s.string("Individual partner or contact family name."),
|
|
317
|
+
email: s.string("Email address."),
|
|
318
|
+
branch: s.string("Department."),
|
|
319
|
+
appointment: s.string("Job title."),
|
|
320
|
+
}, { required: ["email", "first_name", "last_name"] });
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CredentialValidators, ProviderExecutors, ProviderProxyExecutor } from "../../core/types.ts";
|
|
2
|
+
export declare const executors: ProviderExecutors;
|
|
3
|
+
export declare const credentialValidators: CredentialValidators;
|
|
4
|
+
export declare const proxy: ProviderProxyExecutor;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineProviderExecutors, defineProviderProxy, mapProviderActionHandlers, providerInputError, requireApiKeyCredential, } from "../provider-runtime.js";
|
|
2
|
+
import { hrmosKintaiActions } from "./actions.js";
|
|
3
|
+
import { authenticate, executeHrmosAction, hrmosBaseUrl, normalizeCompany, readHrmosError } from "./runtime.js";
|
|
4
|
+
export const executors = defineProviderExecutors({
|
|
5
|
+
service: "hrmos_kintai",
|
|
6
|
+
handlers: mapProviderActionHandlers("hrmos_kintai", hrmosKintaiActions, (action) => (input, context) => executeHrmosAction(action.name, input, context)),
|
|
7
|
+
async createContext(context, fetcher) {
|
|
8
|
+
const credential = await requireApiKeyCredential(context, "hrmos_kintai");
|
|
9
|
+
return {
|
|
10
|
+
company: normalizeCompany(credential.values.companyUrl ?? credential.metadata?.companyUrl),
|
|
11
|
+
apiKey: credential.apiKey,
|
|
12
|
+
fetcher,
|
|
13
|
+
signal: context.signal,
|
|
14
|
+
transitFiles: context.transitFiles,
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
export const credentialValidators = {
|
|
19
|
+
async apiKey(input, { fetcher, signal }) {
|
|
20
|
+
const company = normalizeCompany(input.values.companyUrl);
|
|
21
|
+
await authenticate(company, input.apiKey, fetcher, signal, true);
|
|
22
|
+
return {
|
|
23
|
+
profile: { accountId: company, displayName: company },
|
|
24
|
+
grantedScopes: [],
|
|
25
|
+
metadata: { companyUrl: company },
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
export const proxy = defineProviderProxy({
|
|
30
|
+
service: "hrmos_kintai",
|
|
31
|
+
async baseUrl(context) {
|
|
32
|
+
const credential = await requireApiKeyCredential(context, "hrmos_kintai");
|
|
33
|
+
return hrmosBaseUrl(normalizeCompany(credential.values.companyUrl ?? credential.metadata?.companyUrl));
|
|
34
|
+
},
|
|
35
|
+
auth: { type: "none" },
|
|
36
|
+
readError: readHrmosError,
|
|
37
|
+
async customizeRequest({ context, url, headers, fetcher }) {
|
|
38
|
+
const credential = await requireApiKeyCredential(context, "hrmos_kintai");
|
|
39
|
+
const company = normalizeCompany(credential.values.companyUrl ?? credential.metadata?.companyUrl);
|
|
40
|
+
const prefix = new URL(hrmosBaseUrl(company)).pathname;
|
|
41
|
+
if (url.origin !== "https://ieyasu.co" || !url.pathname.startsWith(`${prefix}/`)) {
|
|
42
|
+
throw providerInputError("HRMOS Kintai proxy must stay within the connected company API");
|
|
43
|
+
}
|
|
44
|
+
let relativePath;
|
|
45
|
+
try {
|
|
46
|
+
relativePath = decodeURIComponent(url.pathname.slice(prefix.length));
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
throw providerInputError("HRMOS Kintai proxy path has invalid encoding");
|
|
50
|
+
}
|
|
51
|
+
const segments = relativePath.split("/").filter(Boolean);
|
|
52
|
+
if (segments.some((segment) => segment === "." || segment === ".." || segment.includes("\\"))) {
|
|
53
|
+
throw providerInputError("HRMOS Kintai proxy path must not contain traversal segments");
|
|
54
|
+
}
|
|
55
|
+
if (segments[0] === "authentication") {
|
|
56
|
+
throw providerInputError("HRMOS Kintai authentication endpoints are managed by the connection");
|
|
57
|
+
}
|
|
58
|
+
headers.set("authorization", `Token ${await authenticate(company, credential.apiKey, fetcher, context.signal)}`);
|
|
59
|
+
headers.set("accept", "application/json");
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { s } from "../../core/json-schema.js";
|
|
2
|
+
import { defineProviderAction } from "../../core/provider-definition.js";
|
|
3
|
+
const exportInput = s.actionInput({
|
|
4
|
+
year: s.integer("Four-digit target year.", { minimum: 1000, maximum: 9999 }),
|
|
5
|
+
}, ["year"], "CSV export parameters.");
|
|
6
|
+
const exportOutput = s.actionOutput({
|
|
7
|
+
file: s.actionOutput({
|
|
8
|
+
fileId: s.string("Transit file identifier."),
|
|
9
|
+
name: s.string("CSV file name."),
|
|
10
|
+
mimeType: s.string("Original CSV media type and character encoding when supplied."),
|
|
11
|
+
downloadUrl: s.string("Local transit file download URL."),
|
|
12
|
+
sizeBytes: s.integer("File size in bytes."),
|
|
13
|
+
}, "Downloadable CSV artifact."),
|
|
14
|
+
}, "Exported CSV file.");
|
|
15
|
+
export const exportActions = [
|
|
16
|
+
defineProviderAction("hrmos_kintai", {
|
|
17
|
+
name: "export_dependent_declaration",
|
|
18
|
+
operationType: "read",
|
|
19
|
+
description: "Export dependent declaration as a downloadable CSV file for the specified year.",
|
|
20
|
+
inputSchema: exportInput,
|
|
21
|
+
outputSchema: exportOutput,
|
|
22
|
+
}),
|
|
23
|
+
defineProviderAction("hrmos_kintai", {
|
|
24
|
+
name: "export_next_year_dependent_declaration",
|
|
25
|
+
operationType: "read",
|
|
26
|
+
description: "Export next year dependent declaration as a downloadable CSV file for the specified year.",
|
|
27
|
+
inputSchema: exportInput,
|
|
28
|
+
outputSchema: exportOutput,
|
|
29
|
+
}),
|
|
30
|
+
defineProviderAction("hrmos_kintai", {
|
|
31
|
+
name: "export_insurance_deduction_declaration",
|
|
32
|
+
operationType: "read",
|
|
33
|
+
description: "Export insurance deduction declaration as a downloadable CSV file for the specified year.",
|
|
34
|
+
inputSchema: exportInput,
|
|
35
|
+
outputSchema: exportOutput,
|
|
36
|
+
}),
|
|
37
|
+
defineProviderAction("hrmos_kintai", {
|
|
38
|
+
name: "export_income_deduction_declaration",
|
|
39
|
+
operationType: "read",
|
|
40
|
+
description: "Export income deduction declaration as a downloadable CSV file for the specified year.",
|
|
41
|
+
inputSchema: exportInput,
|
|
42
|
+
outputSchema: exportOutput,
|
|
43
|
+
}),
|
|
44
|
+
defineProviderAction("hrmos_kintai", {
|
|
45
|
+
name: "export_housing_loan_declaration",
|
|
46
|
+
operationType: "read",
|
|
47
|
+
description: "Export housing loan declaration as a downloadable CSV file for the specified year.",
|
|
48
|
+
inputSchema: exportInput,
|
|
49
|
+
outputSchema: exportOutput,
|
|
50
|
+
}),
|
|
51
|
+
defineProviderAction("hrmos_kintai", {
|
|
52
|
+
name: "export_previous_employment_withholding",
|
|
53
|
+
operationType: "read",
|
|
54
|
+
description: "Export previous employment withholding as a downloadable CSV file for the specified year.",
|
|
55
|
+
inputSchema: exportInput,
|
|
56
|
+
outputSchema: exportOutput,
|
|
57
|
+
}),
|
|
58
|
+
];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface HrmosOperation {
|
|
2
|
+
path: string;
|
|
3
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
4
|
+
response: "list" | "record" | "definitions" | "file";
|
|
5
|
+
bodyField?: string;
|
|
6
|
+
aliases?: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export declare const hrmosOperations: Record<string, HrmosOperation>;
|
|
9
|
+
export {};
|