@tryfinch/finch-api-mcp 6.27.0 → 6.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -3
- package/compat.d.mts +52 -0
- package/compat.d.mts.map +1 -0
- package/compat.d.ts +52 -0
- package/compat.d.ts.map +1 -0
- package/compat.js +342 -0
- package/compat.js.map +1 -0
- package/compat.mjs +332 -0
- package/compat.mjs.map +1 -0
- package/dynamic-tools.d.mts +12 -0
- package/dynamic-tools.d.mts.map +1 -0
- package/dynamic-tools.d.ts +12 -0
- package/dynamic-tools.d.ts.map +1 -0
- package/dynamic-tools.js +133 -0
- package/dynamic-tools.js.map +1 -0
- package/dynamic-tools.mjs +130 -0
- package/dynamic-tools.mjs.map +1 -0
- package/index.js +40 -116
- package/index.js.map +1 -1
- package/index.mjs +42 -115
- package/index.mjs.map +1 -1
- package/options.d.mts +11 -0
- package/options.d.mts.map +1 -0
- package/options.d.ts +11 -0
- package/options.d.ts.map +1 -0
- package/options.js +337 -0
- package/options.js.map +1 -0
- package/options.mjs +331 -0
- package/options.mjs.map +1 -0
- package/package.json +6 -3
- package/server.d.mts +9 -2
- package/server.d.mts.map +1 -1
- package/server.d.ts +9 -2
- package/server.d.ts.map +1 -1
- package/server.js +34 -11
- package/server.js.map +1 -1
- package/server.mjs +31 -9
- package/server.mjs.map +1 -1
- package/src/compat.ts +429 -0
- package/src/dynamic-tools.ts +152 -0
- package/src/index.ts +42 -130
- package/src/options.ts +361 -0
- package/src/server.ts +46 -11
- package/src/tools/access-tokens/create-access-tokens.ts +2 -2
- package/src/tools/account/disconnect-account.ts +1 -2
- package/src/tools/account/introspect-account.ts +1 -2
- package/src/tools/connect/sessions/new-connect-sessions.ts +2 -2
- package/src/tools/connect/sessions/reauthenticate-connect-sessions.ts +2 -2
- package/src/tools/hris/benefits/create-hris-benefits.ts +38 -3
- package/src/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.ts +2 -2
- package/src/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.ts +2 -2
- package/src/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.ts +2 -2
- package/src/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.ts +2 -2
- package/src/tools/hris/benefits/list-hris-benefits.ts +1 -2
- package/src/tools/hris/benefits/list-supported-benefits-hris-benefits.ts +1 -2
- package/src/tools/hris/benefits/retrieve-hris-benefits.ts +2 -2
- package/src/tools/hris/benefits/update-hris-benefits.ts +2 -2
- package/src/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.ts +2 -2
- package/src/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.ts +2 -2
- package/src/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.ts +2 -2
- package/src/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.ts +1 -2
- package/src/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.ts +2 -2
- package/src/tools/hris/company/retrieve-hris-company.ts +1 -2
- package/src/tools/hris/directory/list-hris-directory.ts +2 -2
- package/src/tools/hris/directory/list-individuals-hris-directory.ts +2 -2
- package/src/tools/hris/documents/list-hris-documents.ts +2 -2
- package/src/tools/hris/documents/retreive-hris-documents.ts +2 -2
- package/src/tools/hris/employments/retrieve-many-hris-employments.ts +2 -2
- package/src/tools/hris/individuals/retrieve-many-hris-individuals.ts +2 -2
- package/src/tools/hris/pay-statements/retrieve-many-hris-pay-statements.ts +2 -2
- package/src/tools/hris/payments/list-hris-payments.ts +2 -2
- package/src/tools/index.ts +16 -6
- package/src/tools/jobs/automated/create-jobs-automated.ts +2 -2
- package/src/tools/jobs/automated/list-jobs-automated.ts +2 -2
- package/src/tools/jobs/automated/retrieve-jobs-automated.ts +2 -2
- package/src/tools/jobs/manual/retrieve-jobs-manual.ts +2 -2
- package/src/tools/payroll/pay-groups/list-payroll-pay-groups.ts +2 -2
- package/src/tools/payroll/pay-groups/retrieve-payroll-pay-groups.ts +2 -2
- package/src/tools/providers/list-providers.ts +1 -2
- package/src/tools/request-forwarding/forward-request-forwarding.ts +2 -2
- package/src/tools/sandbox/company/update-sandbox-company.ts +42 -37
- package/src/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.ts +2 -2
- package/src/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.ts +7 -2
- package/src/tools/sandbox/connections/create-sandbox-connections.ts +2 -2
- package/src/tools/sandbox/directory/create-sandbox-directory.ts +82 -74
- package/src/tools/sandbox/employment/update-sandbox-employment.ts +62 -54
- package/src/tools/sandbox/individual/update-sandbox-individual.ts +19 -14
- package/src/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.ts +1 -2
- package/src/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.ts +2 -2
- package/src/tools/sandbox/jobs/create-sandbox-jobs.ts +2 -2
- package/src/tools/sandbox/payment/create-sandbox-payment.ts +49 -41
- package/tools/access-tokens/create-access-tokens.d.mts +10 -2
- package/tools/access-tokens/create-access-tokens.d.mts.map +1 -1
- package/tools/access-tokens/create-access-tokens.d.ts +10 -2
- package/tools/access-tokens/create-access-tokens.d.ts.map +1 -1
- package/tools/access-tokens/create-access-tokens.js +1 -1
- package/tools/access-tokens/create-access-tokens.js.map +1 -1
- package/tools/access-tokens/create-access-tokens.mjs +1 -1
- package/tools/access-tokens/create-access-tokens.mjs.map +1 -1
- package/tools/account/disconnect-account.d.mts +10 -2
- package/tools/account/disconnect-account.d.mts.map +1 -1
- package/tools/account/disconnect-account.d.ts +10 -2
- package/tools/account/disconnect-account.d.ts.map +1 -1
- package/tools/account/disconnect-account.js +0 -1
- package/tools/account/disconnect-account.js.map +1 -1
- package/tools/account/disconnect-account.mjs +0 -1
- package/tools/account/disconnect-account.mjs.map +1 -1
- package/tools/account/introspect-account.d.mts +10 -2
- package/tools/account/introspect-account.d.mts.map +1 -1
- package/tools/account/introspect-account.d.ts +10 -2
- package/tools/account/introspect-account.d.ts.map +1 -1
- package/tools/account/introspect-account.js +0 -1
- package/tools/account/introspect-account.js.map +1 -1
- package/tools/account/introspect-account.mjs +0 -1
- package/tools/account/introspect-account.mjs.map +1 -1
- package/tools/connect/sessions/new-connect-sessions.d.mts +10 -2
- package/tools/connect/sessions/new-connect-sessions.d.mts.map +1 -1
- package/tools/connect/sessions/new-connect-sessions.d.ts +10 -2
- package/tools/connect/sessions/new-connect-sessions.d.ts.map +1 -1
- package/tools/connect/sessions/new-connect-sessions.js +1 -1
- package/tools/connect/sessions/new-connect-sessions.js.map +1 -1
- package/tools/connect/sessions/new-connect-sessions.mjs +1 -1
- package/tools/connect/sessions/new-connect-sessions.mjs.map +1 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts +10 -2
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.mts.map +1 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts +10 -2
- package/tools/connect/sessions/reauthenticate-connect-sessions.d.ts.map +1 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.js +1 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.js.map +1 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.mjs +1 -1
- package/tools/connect/sessions/reauthenticate-connect-sessions.mjs.map +1 -1
- package/tools/hris/benefits/create-hris-benefits.d.mts +10 -2
- package/tools/hris/benefits/create-hris-benefits.d.mts.map +1 -1
- package/tools/hris/benefits/create-hris-benefits.d.ts +10 -2
- package/tools/hris/benefits/create-hris-benefits.d.ts.map +1 -1
- package/tools/hris/benefits/create-hris-benefits.js +37 -2
- package/tools/hris/benefits/create-hris-benefits.js.map +1 -1
- package/tools/hris/benefits/create-hris-benefits.mjs +37 -2
- package/tools/hris/benefits/create-hris-benefits.mjs.map +1 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts +10 -2
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.mts.map +1 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts +10 -2
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.d.ts.map +1 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.js.map +1 -1
- package/tools/hris/benefits/individuals/enroll-many-benefits-hris-individuals.mjs.map +1 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts +10 -2
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.mts.map +1 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts +10 -2
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.d.ts.map +1 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js +1 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.js.map +1 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs +1 -1
- package/tools/hris/benefits/individuals/enrolled-ids-benefits-hris-individuals.mjs.map +1 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts +10 -2
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.mts.map +1 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts +10 -2
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.d.ts.map +1 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.js.map +1 -1
- package/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.mjs.map +1 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts +10 -2
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.mts.map +1 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts +10 -2
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.d.ts.map +1 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.js.map +1 -1
- package/tools/hris/benefits/individuals/unenroll-many-benefits-hris-individuals.mjs.map +1 -1
- package/tools/hris/benefits/list-hris-benefits.d.mts +10 -2
- package/tools/hris/benefits/list-hris-benefits.d.mts.map +1 -1
- package/tools/hris/benefits/list-hris-benefits.d.ts +10 -2
- package/tools/hris/benefits/list-hris-benefits.d.ts.map +1 -1
- package/tools/hris/benefits/list-hris-benefits.js +0 -1
- package/tools/hris/benefits/list-hris-benefits.js.map +1 -1
- package/tools/hris/benefits/list-hris-benefits.mjs +0 -1
- package/tools/hris/benefits/list-hris-benefits.mjs.map +1 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts +10 -2
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.mts.map +1 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts +10 -2
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.d.ts.map +1 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.js +0 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.js.map +1 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs +0 -1
- package/tools/hris/benefits/list-supported-benefits-hris-benefits.mjs.map +1 -1
- package/tools/hris/benefits/retrieve-hris-benefits.d.mts +10 -2
- package/tools/hris/benefits/retrieve-hris-benefits.d.mts.map +1 -1
- package/tools/hris/benefits/retrieve-hris-benefits.d.ts +10 -2
- package/tools/hris/benefits/retrieve-hris-benefits.d.ts.map +1 -1
- package/tools/hris/benefits/retrieve-hris-benefits.js +1 -1
- package/tools/hris/benefits/retrieve-hris-benefits.js.map +1 -1
- package/tools/hris/benefits/retrieve-hris-benefits.mjs +1 -1
- package/tools/hris/benefits/retrieve-hris-benefits.mjs.map +1 -1
- package/tools/hris/benefits/update-hris-benefits.d.mts +10 -2
- package/tools/hris/benefits/update-hris-benefits.d.mts.map +1 -1
- package/tools/hris/benefits/update-hris-benefits.d.ts +10 -2
- package/tools/hris/benefits/update-hris-benefits.d.ts.map +1 -1
- package/tools/hris/benefits/update-hris-benefits.js.map +1 -1
- package/tools/hris/benefits/update-hris-benefits.mjs.map +1 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts +10 -2
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.mts.map +1 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts +10 -2
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.d.ts.map +1 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js +1 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.js.map +1 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs +1 -1
- package/tools/hris/company/pay-statement-item/list-company-hris-pay-statement-item.mjs.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts +10 -2
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.mts.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts +10 -2
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.d.ts.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js +1 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.js.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs +1 -1
- package/tools/hris/company/pay-statement-item/rules/create-pay-statement-item-company-hris-rules.mjs.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts +10 -2
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.mts.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts +10 -2
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.d.ts.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js +1 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.js.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs +1 -1
- package/tools/hris/company/pay-statement-item/rules/delete-pay-statement-item-company-hris-rules.mjs.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts +10 -2
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.mts.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts +10 -2
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.d.ts.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js +0 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.js.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs +0 -1
- package/tools/hris/company/pay-statement-item/rules/list-pay-statement-item-company-hris-rules.mjs.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts +10 -2
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.mts.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts +10 -2
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.d.ts.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.js.map +1 -1
- package/tools/hris/company/pay-statement-item/rules/update-pay-statement-item-company-hris-rules.mjs.map +1 -1
- package/tools/hris/company/retrieve-hris-company.d.mts +10 -2
- package/tools/hris/company/retrieve-hris-company.d.mts.map +1 -1
- package/tools/hris/company/retrieve-hris-company.d.ts +10 -2
- package/tools/hris/company/retrieve-hris-company.d.ts.map +1 -1
- package/tools/hris/company/retrieve-hris-company.js +0 -1
- package/tools/hris/company/retrieve-hris-company.js.map +1 -1
- package/tools/hris/company/retrieve-hris-company.mjs +0 -1
- package/tools/hris/company/retrieve-hris-company.mjs.map +1 -1
- package/tools/hris/directory/list-hris-directory.d.mts +10 -2
- package/tools/hris/directory/list-hris-directory.d.mts.map +1 -1
- package/tools/hris/directory/list-hris-directory.d.ts +10 -2
- package/tools/hris/directory/list-hris-directory.d.ts.map +1 -1
- package/tools/hris/directory/list-hris-directory.js +1 -1
- package/tools/hris/directory/list-hris-directory.js.map +1 -1
- package/tools/hris/directory/list-hris-directory.mjs +1 -1
- package/tools/hris/directory/list-hris-directory.mjs.map +1 -1
- package/tools/hris/directory/list-individuals-hris-directory.d.mts +10 -2
- package/tools/hris/directory/list-individuals-hris-directory.d.mts.map +1 -1
- package/tools/hris/directory/list-individuals-hris-directory.d.ts +10 -2
- package/tools/hris/directory/list-individuals-hris-directory.d.ts.map +1 -1
- package/tools/hris/directory/list-individuals-hris-directory.js +1 -1
- package/tools/hris/directory/list-individuals-hris-directory.js.map +1 -1
- package/tools/hris/directory/list-individuals-hris-directory.mjs +1 -1
- package/tools/hris/directory/list-individuals-hris-directory.mjs.map +1 -1
- package/tools/hris/documents/list-hris-documents.d.mts +10 -2
- package/tools/hris/documents/list-hris-documents.d.mts.map +1 -1
- package/tools/hris/documents/list-hris-documents.d.ts +10 -2
- package/tools/hris/documents/list-hris-documents.d.ts.map +1 -1
- package/tools/hris/documents/list-hris-documents.js +1 -1
- package/tools/hris/documents/list-hris-documents.js.map +1 -1
- package/tools/hris/documents/list-hris-documents.mjs +1 -1
- package/tools/hris/documents/list-hris-documents.mjs.map +1 -1
- package/tools/hris/documents/retreive-hris-documents.d.mts +10 -2
- package/tools/hris/documents/retreive-hris-documents.d.mts.map +1 -1
- package/tools/hris/documents/retreive-hris-documents.d.ts +10 -2
- package/tools/hris/documents/retreive-hris-documents.d.ts.map +1 -1
- package/tools/hris/documents/retreive-hris-documents.js +1 -1
- package/tools/hris/documents/retreive-hris-documents.js.map +1 -1
- package/tools/hris/documents/retreive-hris-documents.mjs +1 -1
- package/tools/hris/documents/retreive-hris-documents.mjs.map +1 -1
- package/tools/hris/employments/retrieve-many-hris-employments.d.mts +10 -2
- package/tools/hris/employments/retrieve-many-hris-employments.d.mts.map +1 -1
- package/tools/hris/employments/retrieve-many-hris-employments.d.ts +10 -2
- package/tools/hris/employments/retrieve-many-hris-employments.d.ts.map +1 -1
- package/tools/hris/employments/retrieve-many-hris-employments.js +1 -1
- package/tools/hris/employments/retrieve-many-hris-employments.js.map +1 -1
- package/tools/hris/employments/retrieve-many-hris-employments.mjs +1 -1
- package/tools/hris/employments/retrieve-many-hris-employments.mjs.map +1 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts +10 -2
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.mts.map +1 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts +10 -2
- package/tools/hris/individuals/retrieve-many-hris-individuals.d.ts.map +1 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.js +1 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.js.map +1 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.mjs +1 -1
- package/tools/hris/individuals/retrieve-many-hris-individuals.mjs.map +1 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts +10 -2
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.mts.map +1 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts +10 -2
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.d.ts.map +1 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js +1 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.js.map +1 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs +1 -1
- package/tools/hris/pay-statements/retrieve-many-hris-pay-statements.mjs.map +1 -1
- package/tools/hris/payments/list-hris-payments.d.mts +10 -2
- package/tools/hris/payments/list-hris-payments.d.mts.map +1 -1
- package/tools/hris/payments/list-hris-payments.d.ts +10 -2
- package/tools/hris/payments/list-hris-payments.d.ts.map +1 -1
- package/tools/hris/payments/list-hris-payments.js +1 -1
- package/tools/hris/payments/list-hris-payments.js.map +1 -1
- package/tools/hris/payments/list-hris-payments.mjs +1 -1
- package/tools/hris/payments/list-hris-payments.mjs.map +1 -1
- package/tools/index.d.mts +1 -1
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +13 -7
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +11 -5
- package/tools/index.mjs.map +1 -1
- package/tools/jobs/automated/create-jobs-automated.d.mts +10 -2
- package/tools/jobs/automated/create-jobs-automated.d.mts.map +1 -1
- package/tools/jobs/automated/create-jobs-automated.d.ts +10 -2
- package/tools/jobs/automated/create-jobs-automated.d.ts.map +1 -1
- package/tools/jobs/automated/create-jobs-automated.js +1 -1
- package/tools/jobs/automated/create-jobs-automated.js.map +1 -1
- package/tools/jobs/automated/create-jobs-automated.mjs +1 -1
- package/tools/jobs/automated/create-jobs-automated.mjs.map +1 -1
- package/tools/jobs/automated/list-jobs-automated.d.mts +10 -2
- package/tools/jobs/automated/list-jobs-automated.d.mts.map +1 -1
- package/tools/jobs/automated/list-jobs-automated.d.ts +10 -2
- package/tools/jobs/automated/list-jobs-automated.d.ts.map +1 -1
- package/tools/jobs/automated/list-jobs-automated.js +1 -1
- package/tools/jobs/automated/list-jobs-automated.js.map +1 -1
- package/tools/jobs/automated/list-jobs-automated.mjs +1 -1
- package/tools/jobs/automated/list-jobs-automated.mjs.map +1 -1
- package/tools/jobs/automated/retrieve-jobs-automated.d.mts +10 -2
- package/tools/jobs/automated/retrieve-jobs-automated.d.mts.map +1 -1
- package/tools/jobs/automated/retrieve-jobs-automated.d.ts +10 -2
- package/tools/jobs/automated/retrieve-jobs-automated.d.ts.map +1 -1
- package/tools/jobs/automated/retrieve-jobs-automated.js +1 -1
- package/tools/jobs/automated/retrieve-jobs-automated.js.map +1 -1
- package/tools/jobs/automated/retrieve-jobs-automated.mjs +1 -1
- package/tools/jobs/automated/retrieve-jobs-automated.mjs.map +1 -1
- package/tools/jobs/manual/retrieve-jobs-manual.d.mts +10 -2
- package/tools/jobs/manual/retrieve-jobs-manual.d.mts.map +1 -1
- package/tools/jobs/manual/retrieve-jobs-manual.d.ts +10 -2
- package/tools/jobs/manual/retrieve-jobs-manual.d.ts.map +1 -1
- package/tools/jobs/manual/retrieve-jobs-manual.js +1 -1
- package/tools/jobs/manual/retrieve-jobs-manual.js.map +1 -1
- package/tools/jobs/manual/retrieve-jobs-manual.mjs +1 -1
- package/tools/jobs/manual/retrieve-jobs-manual.mjs.map +1 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts +10 -2
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.mts.map +1 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts +10 -2
- package/tools/payroll/pay-groups/list-payroll-pay-groups.d.ts.map +1 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.js +1 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.js.map +1 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs +1 -1
- package/tools/payroll/pay-groups/list-payroll-pay-groups.mjs.map +1 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts +10 -2
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.mts.map +1 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts +10 -2
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.d.ts.map +1 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js +1 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.js.map +1 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs +1 -1
- package/tools/payroll/pay-groups/retrieve-payroll-pay-groups.mjs.map +1 -1
- package/tools/providers/list-providers.d.mts +10 -2
- package/tools/providers/list-providers.d.mts.map +1 -1
- package/tools/providers/list-providers.d.ts +10 -2
- package/tools/providers/list-providers.d.ts.map +1 -1
- package/tools/providers/list-providers.js +0 -1
- package/tools/providers/list-providers.js.map +1 -1
- package/tools/providers/list-providers.mjs +0 -1
- package/tools/providers/list-providers.mjs.map +1 -1
- package/tools/request-forwarding/forward-request-forwarding.d.mts +10 -2
- package/tools/request-forwarding/forward-request-forwarding.d.mts.map +1 -1
- package/tools/request-forwarding/forward-request-forwarding.d.ts +10 -2
- package/tools/request-forwarding/forward-request-forwarding.d.ts.map +1 -1
- package/tools/request-forwarding/forward-request-forwarding.js +1 -1
- package/tools/request-forwarding/forward-request-forwarding.js.map +1 -1
- package/tools/request-forwarding/forward-request-forwarding.mjs +1 -1
- package/tools/request-forwarding/forward-request-forwarding.mjs.map +1 -1
- package/tools/sandbox/company/update-sandbox-company.d.mts +10 -2
- package/tools/sandbox/company/update-sandbox-company.d.mts.map +1 -1
- package/tools/sandbox/company/update-sandbox-company.d.ts +10 -2
- package/tools/sandbox/company/update-sandbox-company.d.ts.map +1 -1
- package/tools/sandbox/company/update-sandbox-company.js +41 -36
- package/tools/sandbox/company/update-sandbox-company.js.map +1 -1
- package/tools/sandbox/company/update-sandbox-company.mjs +41 -36
- package/tools/sandbox/company/update-sandbox-company.mjs.map +1 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts +10 -2
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.mts.map +1 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts +10 -2
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.d.ts.map +1 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js +1 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.js.map +1 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs +1 -1
- package/tools/sandbox/connections/accounts/create-connections-sandbox-accounts.mjs.map +1 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts +10 -2
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.mts.map +1 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts +10 -2
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.d.ts.map +1 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js +6 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.js.map +1 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs +6 -1
- package/tools/sandbox/connections/accounts/update-connections-sandbox-accounts.mjs.map +1 -1
- package/tools/sandbox/connections/create-sandbox-connections.d.mts +10 -2
- package/tools/sandbox/connections/create-sandbox-connections.d.mts.map +1 -1
- package/tools/sandbox/connections/create-sandbox-connections.d.ts +10 -2
- package/tools/sandbox/connections/create-sandbox-connections.d.ts.map +1 -1
- package/tools/sandbox/connections/create-sandbox-connections.js +1 -1
- package/tools/sandbox/connections/create-sandbox-connections.js.map +1 -1
- package/tools/sandbox/connections/create-sandbox-connections.mjs +1 -1
- package/tools/sandbox/connections/create-sandbox-connections.mjs.map +1 -1
- package/tools/sandbox/directory/create-sandbox-directory.d.mts +10 -2
- package/tools/sandbox/directory/create-sandbox-directory.d.mts.map +1 -1
- package/tools/sandbox/directory/create-sandbox-directory.d.ts +10 -2
- package/tools/sandbox/directory/create-sandbox-directory.d.ts.map +1 -1
- package/tools/sandbox/directory/create-sandbox-directory.js +79 -71
- package/tools/sandbox/directory/create-sandbox-directory.js.map +1 -1
- package/tools/sandbox/directory/create-sandbox-directory.mjs +79 -71
- package/tools/sandbox/directory/create-sandbox-directory.mjs.map +1 -1
- package/tools/sandbox/employment/update-sandbox-employment.d.mts +10 -2
- package/tools/sandbox/employment/update-sandbox-employment.d.mts.map +1 -1
- package/tools/sandbox/employment/update-sandbox-employment.d.ts +10 -2
- package/tools/sandbox/employment/update-sandbox-employment.d.ts.map +1 -1
- package/tools/sandbox/employment/update-sandbox-employment.js +60 -52
- package/tools/sandbox/employment/update-sandbox-employment.js.map +1 -1
- package/tools/sandbox/employment/update-sandbox-employment.mjs +60 -52
- package/tools/sandbox/employment/update-sandbox-employment.mjs.map +1 -1
- package/tools/sandbox/individual/update-sandbox-individual.d.mts +10 -2
- package/tools/sandbox/individual/update-sandbox-individual.d.mts.map +1 -1
- package/tools/sandbox/individual/update-sandbox-individual.d.ts +10 -2
- package/tools/sandbox/individual/update-sandbox-individual.d.ts.map +1 -1
- package/tools/sandbox/individual/update-sandbox-individual.js +16 -11
- package/tools/sandbox/individual/update-sandbox-individual.js.map +1 -1
- package/tools/sandbox/individual/update-sandbox-individual.mjs +16 -11
- package/tools/sandbox/individual/update-sandbox-individual.mjs.map +1 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts +10 -2
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.mts.map +1 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts +10 -2
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.d.ts.map +1 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js +0 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.js.map +1 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs +0 -1
- package/tools/sandbox/jobs/configuration/retrieve-jobs-sandbox-configuration.mjs.map +1 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts +10 -2
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.mts.map +1 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts +10 -2
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.d.ts.map +1 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js +1 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.js.map +1 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs +1 -1
- package/tools/sandbox/jobs/configuration/update-jobs-sandbox-configuration.mjs.map +1 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.d.mts +10 -2
- package/tools/sandbox/jobs/create-sandbox-jobs.d.mts.map +1 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.d.ts +10 -2
- package/tools/sandbox/jobs/create-sandbox-jobs.d.ts.map +1 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.js +1 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.js.map +1 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.mjs +1 -1
- package/tools/sandbox/jobs/create-sandbox-jobs.mjs.map +1 -1
- package/tools/sandbox/payment/create-sandbox-payment.d.mts +10 -2
- package/tools/sandbox/payment/create-sandbox-payment.d.mts.map +1 -1
- package/tools/sandbox/payment/create-sandbox-payment.d.ts +10 -2
- package/tools/sandbox/payment/create-sandbox-payment.d.ts.map +1 -1
- package/tools/sandbox/payment/create-sandbox-payment.js +48 -40
- package/tools/sandbox/payment/create-sandbox-payment.js.map +1 -1
- package/tools/sandbox/payment/create-sandbox-payment.mjs +48 -40
- package/tools/sandbox/payment/create-sandbox-payment.mjs.map +1 -1
|
@@ -19,8 +19,7 @@ export const tool: Tool = {
|
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export const handler = (client: Finch, args:
|
|
23
|
-
const {} = args;
|
|
22
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
24
23
|
return client.account.introspect();
|
|
25
24
|
};
|
|
26
25
|
|
|
@@ -75,8 +75,8 @@ export const tool: Tool = {
|
|
|
75
75
|
},
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
export const handler = (client: Finch, args:
|
|
79
|
-
const
|
|
78
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
79
|
+
const body = args as any;
|
|
80
80
|
return client.connect.sessions.new(body);
|
|
81
81
|
};
|
|
82
82
|
|
|
@@ -52,8 +52,8 @@ export const tool: Tool = {
|
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
export const handler = (client: Finch, args:
|
|
56
|
-
const
|
|
55
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
56
|
+
const body = args as any;
|
|
57
57
|
return client.connect.sessions.reauthenticate(body);
|
|
58
58
|
};
|
|
59
59
|
|
|
@@ -17,6 +17,33 @@ export const tool: Tool = {
|
|
|
17
17
|
inputSchema: {
|
|
18
18
|
type: 'object',
|
|
19
19
|
properties: {
|
|
20
|
+
company_contribution: {
|
|
21
|
+
type: 'object',
|
|
22
|
+
title: 'BenefitCompanyMatchContribution',
|
|
23
|
+
description: 'The company match for this benefit.',
|
|
24
|
+
properties: {
|
|
25
|
+
tiers: {
|
|
26
|
+
type: 'array',
|
|
27
|
+
items: {
|
|
28
|
+
type: 'object',
|
|
29
|
+
properties: {
|
|
30
|
+
match: {
|
|
31
|
+
type: 'integer',
|
|
32
|
+
},
|
|
33
|
+
threshold: {
|
|
34
|
+
type: 'integer',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
required: [],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
type: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
enum: ['match'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
required: [],
|
|
46
|
+
},
|
|
20
47
|
description: {
|
|
21
48
|
type: 'string',
|
|
22
49
|
title: 'BenefitDescription',
|
|
@@ -24,12 +51,20 @@ export const tool: Tool = {
|
|
|
24
51
|
'Name of the benefit as it appears in the provider and pay statements. Recommend limiting this to <30 characters due to limitations in specific providers (e.g. Justworks).',
|
|
25
52
|
},
|
|
26
53
|
frequency: {
|
|
54
|
+
$ref: '#/$defs/benefit_frequency',
|
|
55
|
+
},
|
|
56
|
+
type: {
|
|
57
|
+
$ref: '#/$defs/benefit_type',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
$defs: {
|
|
61
|
+
benefit_frequency: {
|
|
27
62
|
type: 'string',
|
|
28
63
|
title: 'BenefitFrequency',
|
|
29
64
|
description: 'The frequency of the benefit deduction/contribution.',
|
|
30
65
|
enum: ['one_time', 'every_paycheck', 'monthly'],
|
|
31
66
|
},
|
|
32
|
-
|
|
67
|
+
benefit_type: {
|
|
33
68
|
type: 'string',
|
|
34
69
|
title: 'BenefitType',
|
|
35
70
|
description: 'Type of benefit.',
|
|
@@ -59,8 +94,8 @@ export const tool: Tool = {
|
|
|
59
94
|
},
|
|
60
95
|
};
|
|
61
96
|
|
|
62
|
-
export const handler = (client: Finch, args:
|
|
63
|
-
const
|
|
97
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
98
|
+
const body = args as any;
|
|
64
99
|
return client.hris.benefits.create(body);
|
|
65
100
|
};
|
|
66
101
|
|
|
@@ -93,8 +93,8 @@ export const tool: Tool = {
|
|
|
93
93
|
},
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
export const handler = (client: Finch, args:
|
|
97
|
-
const { benefit_id, ...body } = args;
|
|
96
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
97
|
+
const { benefit_id, ...body } = args as any;
|
|
98
98
|
return client.hris.benefits.individuals.enrollMany(benefit_id, body['individuals']);
|
|
99
99
|
};
|
|
100
100
|
|
|
@@ -23,8 +23,8 @@ export const tool: Tool = {
|
|
|
23
23
|
},
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
export const handler = (client: Finch, args:
|
|
27
|
-
const { benefit_id } = args;
|
|
26
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
27
|
+
const { benefit_id, ...body } = args as any;
|
|
28
28
|
return client.hris.benefits.individuals.enrolledIds(benefit_id);
|
|
29
29
|
};
|
|
30
30
|
|
package/src/tools/hris/benefits/individuals/retrieve-many-benefits-benefits-hris-individuals.ts
CHANGED
|
@@ -28,8 +28,8 @@ export const tool: Tool = {
|
|
|
28
28
|
},
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
export const handler = (client: Finch, args:
|
|
32
|
-
const { benefit_id, ...body } = args;
|
|
31
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
32
|
+
const { benefit_id, ...body } = args as any;
|
|
33
33
|
return client.hris.benefits.individuals.retrieveManyBenefits(benefit_id, body);
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -30,8 +30,8 @@ export const tool: Tool = {
|
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export const handler = (client: Finch, args:
|
|
34
|
-
const { benefit_id, ...body } = args;
|
|
33
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
34
|
+
const { benefit_id, ...body } = args as any;
|
|
35
35
|
return client.hris.benefits.individuals.unenrollMany(benefit_id, body);
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -19,8 +19,7 @@ export const tool: Tool = {
|
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export const handler = (client: Finch, args:
|
|
23
|
-
const {} = args;
|
|
22
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
24
23
|
return client.hris.benefits.list();
|
|
25
24
|
};
|
|
26
25
|
|
|
@@ -19,8 +19,7 @@ export const tool: Tool = {
|
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export const handler = (client: Finch, args:
|
|
23
|
-
const {} = args;
|
|
22
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
24
23
|
return client.hris.benefits.listSupportedBenefits();
|
|
25
24
|
};
|
|
26
25
|
|
|
@@ -23,8 +23,8 @@ export const tool: Tool = {
|
|
|
23
23
|
},
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
export const handler = (client: Finch, args:
|
|
27
|
-
const { benefit_id } = args;
|
|
26
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
27
|
+
const { benefit_id, ...body } = args as any;
|
|
28
28
|
return client.hris.benefits.retrieve(benefit_id);
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -27,8 +27,8 @@ export const tool: Tool = {
|
|
|
27
27
|
},
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export const handler = (client: Finch, args:
|
|
31
|
-
const { benefit_id, ...body } = args;
|
|
30
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
31
|
+
const { benefit_id, ...body } = args as any;
|
|
32
32
|
return client.hris.benefits.update(benefit_id, body);
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -50,8 +50,8 @@ export const tool: Tool = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
export const handler = (client: Finch, args:
|
|
54
|
-
const
|
|
53
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
54
|
+
const body = args as any;
|
|
55
55
|
return client.hris.company.payStatementItem.list(body);
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -70,8 +70,8 @@ export const tool: Tool = {
|
|
|
70
70
|
},
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
export const handler = (client: Finch, args:
|
|
74
|
-
const
|
|
73
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
74
|
+
const body = args as any;
|
|
75
75
|
return client.hris.company.payStatementItem.rules.create(body);
|
|
76
76
|
};
|
|
77
77
|
|
|
@@ -24,8 +24,8 @@ export const tool: Tool = {
|
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export const handler = (client: Finch, args:
|
|
28
|
-
const { rule_id } = args;
|
|
27
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
28
|
+
const { rule_id, ...body } = args as any;
|
|
29
29
|
return client.hris.company.payStatementItem.rules.delete(rule_id);
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -20,8 +20,7 @@ export const tool: Tool = {
|
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
export const handler = (client: Finch, args:
|
|
24
|
-
const {} = args;
|
|
23
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
25
24
|
return client.hris.company.payStatementItem.rules.list();
|
|
26
25
|
};
|
|
27
26
|
|
|
@@ -27,8 +27,8 @@ export const tool: Tool = {
|
|
|
27
27
|
},
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export const handler = (client: Finch, args:
|
|
31
|
-
const { rule_id, ...body } = args;
|
|
30
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
31
|
+
const { rule_id, ...body } = args as any;
|
|
32
32
|
return client.hris.company.payStatementItem.rules.update(rule_id, body);
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -19,8 +19,7 @@ export const tool: Tool = {
|
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export const handler = (client: Finch, args:
|
|
23
|
-
const {} = args;
|
|
22
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
24
23
|
return client.hris.company.retrieve();
|
|
25
24
|
};
|
|
26
25
|
|
|
@@ -28,8 +28,8 @@ export const tool: Tool = {
|
|
|
28
28
|
},
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
export const handler = (client: Finch, args:
|
|
32
|
-
const
|
|
31
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
32
|
+
const body = args as any;
|
|
33
33
|
return client.hris.directory.list(body);
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -28,8 +28,8 @@ export const tool: Tool = {
|
|
|
28
28
|
},
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
export const handler = (client: Finch, args:
|
|
32
|
-
const
|
|
31
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
32
|
+
const body = args as any;
|
|
33
33
|
return client.hris.directory.listIndividuals(body);
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -45,8 +45,8 @@ export const tool: Tool = {
|
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export const handler = (client: Finch, args:
|
|
49
|
-
const
|
|
48
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
49
|
+
const body = args as any;
|
|
50
50
|
return client.hris.documents.list(body);
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -24,8 +24,8 @@ export const tool: Tool = {
|
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export const handler = (client: Finch, args:
|
|
28
|
-
const { document_id } = args;
|
|
27
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
28
|
+
const { document_id, ...body } = args as any;
|
|
29
29
|
return client.hris.documents.retreive(document_id);
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -35,8 +35,8 @@ export const tool: Tool = {
|
|
|
35
35
|
},
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
export const handler = (client: Finch, args:
|
|
39
|
-
const
|
|
38
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
39
|
+
const body = args as any;
|
|
40
40
|
return client.hris.employments.retrieveMany(body);
|
|
41
41
|
};
|
|
42
42
|
|
|
@@ -44,8 +44,8 @@ export const tool: Tool = {
|
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
export const handler = (client: Finch, args:
|
|
48
|
-
const
|
|
47
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
48
|
+
const body = args as any;
|
|
49
49
|
return client.hris.individuals.retrieveMany(body);
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -43,8 +43,8 @@ export const tool: Tool = {
|
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
export const handler = (client: Finch, args:
|
|
47
|
-
const
|
|
46
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
47
|
+
const body = args as any;
|
|
48
48
|
return client.hris.payStatements.retrieveMany(body);
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -30,8 +30,8 @@ export const tool: Tool = {
|
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export const handler = (client: Finch, args:
|
|
34
|
-
const
|
|
33
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
34
|
+
const body = args as any;
|
|
35
35
|
return client.hris.payments.list(body);
|
|
36
36
|
};
|
|
37
37
|
|
package/src/tools/index.ts
CHANGED
|
@@ -51,7 +51,7 @@ import list_payroll_pay_groups from './payroll/pay-groups/list-payroll-pay-group
|
|
|
51
51
|
import new_connect_sessions from './connect/sessions/new-connect-sessions';
|
|
52
52
|
import reauthenticate_connect_sessions from './connect/sessions/reauthenticate-connect-sessions';
|
|
53
53
|
|
|
54
|
-
export type HandlerFunction = (client: Finch, args:
|
|
54
|
+
export type HandlerFunction = (client: Finch, args: Record<string, unknown> | undefined) => Promise<any>;
|
|
55
55
|
|
|
56
56
|
export type Metadata = {
|
|
57
57
|
resource: string;
|
|
@@ -126,22 +126,32 @@ export type Filter = {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
export function query(filters: Filter[], endpoints: Endpoint[]): Endpoint[] {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
const allExcludes = filters.every((filter) => filter.op === 'exclude');
|
|
129
|
+
const allExcludes = filters.length > 0 && filters.every((filter) => filter.op === 'exclude');
|
|
130
|
+
const unmatchedFilters = new Set(filters);
|
|
133
131
|
|
|
134
|
-
|
|
132
|
+
const filtered = endpoints.filter((endpoint: Endpoint) => {
|
|
135
133
|
let included = false || allExcludes;
|
|
136
134
|
|
|
137
135
|
for (const filter of filters) {
|
|
138
136
|
if (match(filter, endpoint)) {
|
|
137
|
+
unmatchedFilters.delete(filter);
|
|
139
138
|
included = filter.op === 'include';
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
return included;
|
|
144
143
|
});
|
|
144
|
+
|
|
145
|
+
// Check if any filters didn't match
|
|
146
|
+
if (unmatchedFilters.size > 0) {
|
|
147
|
+
throw new Error(
|
|
148
|
+
`The following filters did not match any endpoints: ${[...unmatchedFilters]
|
|
149
|
+
.map((f) => `${f.type}=${f.value}`)
|
|
150
|
+
.join(', ')}`,
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return filtered;
|
|
145
155
|
}
|
|
146
156
|
|
|
147
157
|
function match({ type, value }: Filter, endpoint: Endpoint): boolean {
|
|
@@ -51,8 +51,8 @@ export const tool: Tool = {
|
|
|
51
51
|
},
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
export const handler = (client: Finch, args:
|
|
55
|
-
const
|
|
54
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
55
|
+
const body = args as any;
|
|
56
56
|
return client.jobs.automated.create(body);
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -29,8 +29,8 @@ export const tool: Tool = {
|
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
export const handler = (client: Finch, args:
|
|
33
|
-
const
|
|
32
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
33
|
+
const body = args as any;
|
|
34
34
|
return client.jobs.automated.list(body);
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -23,8 +23,8 @@ export const tool: Tool = {
|
|
|
23
23
|
},
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
export const handler = (client: Finch, args:
|
|
27
|
-
const { job_id } = args;
|
|
26
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
27
|
+
const { job_id, ...body } = args as any;
|
|
28
28
|
return client.jobs.automated.retrieve(job_id);
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -24,8 +24,8 @@ export const tool: Tool = {
|
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export const handler = (client: Finch, args:
|
|
28
|
-
const { job_id } = args;
|
|
27
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
28
|
+
const { job_id, ...body } = args as any;
|
|
29
29
|
return client.jobs.manual.retrieve(job_id);
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -29,8 +29,8 @@ export const tool: Tool = {
|
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
export const handler = (client: Finch, args:
|
|
33
|
-
const
|
|
32
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
33
|
+
const body = args as any;
|
|
34
34
|
return client.payroll.payGroups.list(body);
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -23,8 +23,8 @@ export const tool: Tool = {
|
|
|
23
23
|
},
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
export const handler = (client: Finch, args:
|
|
27
|
-
const { pay_group_id } = args;
|
|
26
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
27
|
+
const { pay_group_id, ...body } = args as any;
|
|
28
28
|
return client.payroll.payGroups.retrieve(pay_group_id);
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -46,8 +46,8 @@ export const tool: Tool = {
|
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
export const handler = (client: Finch, args:
|
|
50
|
-
const
|
|
49
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
50
|
+
const body = args as any;
|
|
51
51
|
return client.requestForwarding.forward(body);
|
|
52
52
|
};
|
|
53
53
|
|
|
@@ -101,41 +101,7 @@ export const tool: Tool = {
|
|
|
101
101
|
locations: {
|
|
102
102
|
type: 'array',
|
|
103
103
|
items: {
|
|
104
|
-
|
|
105
|
-
title: 'Location',
|
|
106
|
-
properties: {
|
|
107
|
-
city: {
|
|
108
|
-
type: 'string',
|
|
109
|
-
description: 'City, district, suburb, town, or village.',
|
|
110
|
-
},
|
|
111
|
-
country: {
|
|
112
|
-
type: 'string',
|
|
113
|
-
description: 'The 2-letter ISO 3166 country code.',
|
|
114
|
-
},
|
|
115
|
-
line1: {
|
|
116
|
-
type: 'string',
|
|
117
|
-
description: 'Street address or PO box.',
|
|
118
|
-
},
|
|
119
|
-
line2: {
|
|
120
|
-
type: 'string',
|
|
121
|
-
description: 'Apartment, suite, unit, or building.',
|
|
122
|
-
},
|
|
123
|
-
name: {
|
|
124
|
-
type: 'string',
|
|
125
|
-
},
|
|
126
|
-
postal_code: {
|
|
127
|
-
type: 'string',
|
|
128
|
-
description: 'The postal code or zip code.',
|
|
129
|
-
},
|
|
130
|
-
source_id: {
|
|
131
|
-
type: 'string',
|
|
132
|
-
},
|
|
133
|
-
state: {
|
|
134
|
-
type: 'string',
|
|
135
|
-
description: 'The state code.',
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
required: [],
|
|
104
|
+
$ref: '#/$defs/location',
|
|
139
105
|
},
|
|
140
106
|
},
|
|
141
107
|
primary_email: {
|
|
@@ -148,11 +114,50 @@ export const tool: Tool = {
|
|
|
148
114
|
'The phone number of the main administrator on the account. Format: E.164, with extension where applicable, e.g. `+NNNNNNNNNNN xExtension`',
|
|
149
115
|
},
|
|
150
116
|
},
|
|
117
|
+
$defs: {
|
|
118
|
+
location: {
|
|
119
|
+
type: 'object',
|
|
120
|
+
title: 'Location',
|
|
121
|
+
properties: {
|
|
122
|
+
city: {
|
|
123
|
+
type: 'string',
|
|
124
|
+
description: 'City, district, suburb, town, or village.',
|
|
125
|
+
},
|
|
126
|
+
country: {
|
|
127
|
+
type: 'string',
|
|
128
|
+
description: 'The 2-letter ISO 3166 country code.',
|
|
129
|
+
},
|
|
130
|
+
line1: {
|
|
131
|
+
type: 'string',
|
|
132
|
+
description: 'Street address or PO box.',
|
|
133
|
+
},
|
|
134
|
+
line2: {
|
|
135
|
+
type: 'string',
|
|
136
|
+
description: 'Apartment, suite, unit, or building.',
|
|
137
|
+
},
|
|
138
|
+
postal_code: {
|
|
139
|
+
type: 'string',
|
|
140
|
+
description: 'The postal code or zip code.',
|
|
141
|
+
},
|
|
142
|
+
state: {
|
|
143
|
+
type: 'string',
|
|
144
|
+
description: 'The state code.',
|
|
145
|
+
},
|
|
146
|
+
name: {
|
|
147
|
+
type: 'string',
|
|
148
|
+
},
|
|
149
|
+
source_id: {
|
|
150
|
+
type: 'string',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
required: ['city', 'country', 'line1', 'line2', 'postal_code', 'state'],
|
|
154
|
+
},
|
|
155
|
+
},
|
|
151
156
|
},
|
|
152
157
|
};
|
|
153
158
|
|
|
154
|
-
export const handler = (client: Finch, args:
|
|
155
|
-
const
|
|
159
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
160
|
+
const body = args as any;
|
|
156
161
|
return client.sandbox.company.update(body);
|
|
157
162
|
};
|
|
158
163
|
|
|
@@ -40,8 +40,8 @@ export const tool: Tool = {
|
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
export const handler = (client: Finch, args:
|
|
44
|
-
const
|
|
43
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
44
|
+
const body = args as any;
|
|
45
45
|
return client.sandbox.connections.accounts.create(body);
|
|
46
46
|
};
|
|
47
47
|
|
|
@@ -18,6 +18,11 @@ export const tool: Tool = {
|
|
|
18
18
|
type: 'object',
|
|
19
19
|
properties: {
|
|
20
20
|
connection_status: {
|
|
21
|
+
$ref: '#/$defs/connection_status_type',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
$defs: {
|
|
25
|
+
connection_status_type: {
|
|
21
26
|
type: 'string',
|
|
22
27
|
title: 'ConnectionStatus',
|
|
23
28
|
enum: ['pending', 'processing', 'connected', 'error_no_account_setup', 'error_permissions', 'reauth'],
|
|
@@ -26,8 +31,8 @@ export const tool: Tool = {
|
|
|
26
31
|
},
|
|
27
32
|
};
|
|
28
33
|
|
|
29
|
-
export const handler = (client: Finch, args:
|
|
30
|
-
const
|
|
34
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
35
|
+
const body = args as any;
|
|
31
36
|
return client.sandbox.connections.accounts.update(body);
|
|
32
37
|
};
|
|
33
38
|
|
|
@@ -40,8 +40,8 @@ export const tool: Tool = {
|
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
export const handler = (client: Finch, args:
|
|
44
|
-
const
|
|
43
|
+
export const handler = (client: Finch, args: Record<string, unknown> | undefined) => {
|
|
44
|
+
const body = args as any;
|
|
45
45
|
return client.sandbox.connections.create(body);
|
|
46
46
|
};
|
|
47
47
|
|