@keystrokehq/proabono 0.1.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 +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/anonymize-customer.cjs +31 -0
- package/dist/actions/anonymize-customer.cjs.map +1 -0
- package/dist/actions/anonymize-customer.d.cts +9 -0
- package/dist/actions/anonymize-customer.d.cts.map +1 -0
- package/dist/actions/anonymize-customer.d.mts +9 -0
- package/dist/actions/anonymize-customer.d.mts.map +1 -0
- package/dist/actions/anonymize-customer.mjs +30 -0
- package/dist/actions/anonymize-customer.mjs.map +1 -0
- package/dist/actions/bill-customer.cjs +23 -0
- package/dist/actions/bill-customer.cjs.map +1 -0
- package/dist/actions/bill-customer.d.cts +9 -0
- package/dist/actions/bill-customer.d.cts.map +1 -0
- package/dist/actions/bill-customer.d.mts +9 -0
- package/dist/actions/bill-customer.d.mts.map +1 -0
- package/dist/actions/bill-customer.mjs +20 -0
- package/dist/actions/bill-customer.mjs.map +1 -0
- package/dist/actions/create-customer.cjs +48 -0
- package/dist/actions/create-customer.cjs.map +1 -0
- package/dist/actions/create-customer.d.cts +9 -0
- package/dist/actions/create-customer.d.cts.map +1 -0
- package/dist/actions/create-customer.d.mts +9 -0
- package/dist/actions/create-customer.d.mts.map +1 -0
- package/dist/actions/create-customer.mjs +47 -0
- package/dist/actions/create-customer.mjs.map +1 -0
- package/dist/actions/create-feature.cjs +45 -0
- package/dist/actions/create-feature.cjs.map +1 -0
- package/dist/actions/create-feature.d.cts +9 -0
- package/dist/actions/create-feature.d.cts.map +1 -0
- package/dist/actions/create-feature.d.mts +9 -0
- package/dist/actions/create-feature.d.mts.map +1 -0
- package/dist/actions/create-feature.mjs +44 -0
- package/dist/actions/create-feature.mjs.map +1 -0
- package/dist/actions/delete-customer.cjs +19 -0
- package/dist/actions/delete-customer.cjs.map +1 -0
- package/dist/actions/delete-customer.d.cts +9 -0
- package/dist/actions/delete-customer.d.cts.map +1 -0
- package/dist/actions/delete-customer.d.mts +9 -0
- package/dist/actions/delete-customer.d.mts.map +1 -0
- package/dist/actions/delete-customer.mjs +16 -0
- package/dist/actions/delete-customer.mjs.map +1 -0
- package/dist/actions/delete-offer.cjs +20 -0
- package/dist/actions/delete-offer.cjs.map +1 -0
- package/dist/actions/delete-offer.d.cts +9 -0
- package/dist/actions/delete-offer.d.cts.map +1 -0
- package/dist/actions/delete-offer.d.mts +9 -0
- package/dist/actions/delete-offer.d.mts.map +1 -0
- package/dist/actions/delete-offer.mjs +17 -0
- package/dist/actions/delete-offer.mjs.map +1 -0
- package/dist/actions/delete-pricing-table-offer.cjs +19 -0
- package/dist/actions/delete-pricing-table-offer.cjs.map +1 -0
- package/dist/actions/delete-pricing-table-offer.d.cts +9 -0
- package/dist/actions/delete-pricing-table-offer.d.cts.map +1 -0
- package/dist/actions/delete-pricing-table-offer.d.mts +9 -0
- package/dist/actions/delete-pricing-table-offer.d.mts.map +1 -0
- package/dist/actions/delete-pricing-table-offer.mjs +16 -0
- package/dist/actions/delete-pricing-table-offer.mjs.map +1 -0
- package/dist/actions/delete-pricing-table.cjs +19 -0
- package/dist/actions/delete-pricing-table.cjs.map +1 -0
- package/dist/actions/delete-pricing-table.d.cts +9 -0
- package/dist/actions/delete-pricing-table.d.cts.map +1 -0
- package/dist/actions/delete-pricing-table.d.mts +9 -0
- package/dist/actions/delete-pricing-table.d.mts.map +1 -0
- package/dist/actions/delete-pricing-table.mjs +16 -0
- package/dist/actions/delete-pricing-table.mjs.map +1 -0
- package/dist/actions/delete-subscription-discount.cjs +16 -0
- package/dist/actions/delete-subscription-discount.cjs.map +1 -0
- package/dist/actions/delete-subscription-discount.d.cts +9 -0
- package/dist/actions/delete-subscription-discount.d.cts.map +1 -0
- package/dist/actions/delete-subscription-discount.d.mts +9 -0
- package/dist/actions/delete-subscription-discount.d.mts.map +1 -0
- package/dist/actions/delete-subscription-discount.mjs +13 -0
- package/dist/actions/delete-subscription-discount.mjs.map +1 -0
- package/dist/actions/enable-webhook.cjs +19 -0
- package/dist/actions/enable-webhook.cjs.map +1 -0
- package/dist/actions/enable-webhook.d.cts +9 -0
- package/dist/actions/enable-webhook.d.cts.map +1 -0
- package/dist/actions/enable-webhook.d.mts +9 -0
- package/dist/actions/enable-webhook.d.mts.map +1 -0
- package/dist/actions/enable-webhook.mjs +16 -0
- package/dist/actions/enable-webhook.mjs.map +1 -0
- package/dist/actions/get-customer-billing-address.cjs +28 -0
- package/dist/actions/get-customer-billing-address.cjs.map +1 -0
- package/dist/actions/get-customer-billing-address.d.cts +9 -0
- package/dist/actions/get-customer-billing-address.d.cts.map +1 -0
- package/dist/actions/get-customer-billing-address.d.mts +9 -0
- package/dist/actions/get-customer-billing-address.d.mts.map +1 -0
- package/dist/actions/get-customer-billing-address.mjs +25 -0
- package/dist/actions/get-customer-billing-address.mjs.map +1 -0
- package/dist/actions/get-customer-billing.cjs +37 -0
- package/dist/actions/get-customer-billing.cjs.map +1 -0
- package/dist/actions/get-customer-billing.d.cts +9 -0
- package/dist/actions/get-customer-billing.d.cts.map +1 -0
- package/dist/actions/get-customer-billing.d.mts +9 -0
- package/dist/actions/get-customer-billing.d.mts.map +1 -0
- package/dist/actions/get-customer-billing.mjs +36 -0
- package/dist/actions/get-customer-billing.mjs.map +1 -0
- package/dist/actions/get-customer-by-reference.cjs +35 -0
- package/dist/actions/get-customer-by-reference.cjs.map +1 -0
- package/dist/actions/get-customer-by-reference.d.cts +9 -0
- package/dist/actions/get-customer-by-reference.d.cts.map +1 -0
- package/dist/actions/get-customer-by-reference.d.mts +9 -0
- package/dist/actions/get-customer-by-reference.d.mts.map +1 -0
- package/dist/actions/get-customer-by-reference.mjs +34 -0
- package/dist/actions/get-customer-by-reference.mjs.map +1 -0
- package/dist/actions/get-customer-payment-settings.cjs +23 -0
- package/dist/actions/get-customer-payment-settings.cjs.map +1 -0
- package/dist/actions/get-customer-payment-settings.d.cts +9 -0
- package/dist/actions/get-customer-payment-settings.d.cts.map +1 -0
- package/dist/actions/get-customer-payment-settings.d.mts +9 -0
- package/dist/actions/get-customer-payment-settings.d.mts.map +1 -0
- package/dist/actions/get-customer-payment-settings.mjs +20 -0
- package/dist/actions/get-customer-payment-settings.mjs.map +1 -0
- package/dist/actions/get-customer.cjs +38 -0
- package/dist/actions/get-customer.cjs.map +1 -0
- package/dist/actions/get-customer.d.cts +9 -0
- package/dist/actions/get-customer.d.cts.map +1 -0
- package/dist/actions/get-customer.d.mts +9 -0
- package/dist/actions/get-customer.d.mts.map +1 -0
- package/dist/actions/get-customer.mjs +37 -0
- package/dist/actions/get-customer.mjs.map +1 -0
- package/dist/actions/get-discount.cjs +56 -0
- package/dist/actions/get-discount.cjs.map +1 -0
- package/dist/actions/get-discount.d.cts +9 -0
- package/dist/actions/get-discount.d.cts.map +1 -0
- package/dist/actions/get-discount.d.mts +9 -0
- package/dist/actions/get-discount.d.mts.map +1 -0
- package/dist/actions/get-discount.mjs +55 -0
- package/dist/actions/get-discount.mjs.map +1 -0
- package/dist/actions/get-feature.cjs +34 -0
- package/dist/actions/get-feature.cjs.map +1 -0
- package/dist/actions/get-feature.d.cts +9 -0
- package/dist/actions/get-feature.d.cts.map +1 -0
- package/dist/actions/get-feature.d.mts +9 -0
- package/dist/actions/get-feature.d.mts.map +1 -0
- package/dist/actions/get-feature.mjs +31 -0
- package/dist/actions/get-feature.mjs.map +1 -0
- package/dist/actions/get-invoice.cjs +48 -0
- package/dist/actions/get-invoice.cjs.map +1 -0
- package/dist/actions/get-invoice.d.cts +9 -0
- package/dist/actions/get-invoice.d.cts.map +1 -0
- package/dist/actions/get-invoice.d.mts +9 -0
- package/dist/actions/get-invoice.d.mts.map +1 -0
- package/dist/actions/get-invoice.mjs +47 -0
- package/dist/actions/get-invoice.mjs.map +1 -0
- package/dist/actions/get-offer.cjs +54 -0
- package/dist/actions/get-offer.cjs.map +1 -0
- package/dist/actions/get-offer.d.cts +9 -0
- package/dist/actions/get-offer.d.cts.map +1 -0
- package/dist/actions/get-offer.d.mts +9 -0
- package/dist/actions/get-offer.d.mts.map +1 -0
- package/dist/actions/get-offer.mjs +53 -0
- package/dist/actions/get-offer.mjs.map +1 -0
- package/dist/actions/get-subscription-by-customer.cjs +78 -0
- package/dist/actions/get-subscription-by-customer.cjs.map +1 -0
- package/dist/actions/get-subscription-by-customer.d.cts +9 -0
- package/dist/actions/get-subscription-by-customer.d.cts.map +1 -0
- package/dist/actions/get-subscription-by-customer.d.mts +9 -0
- package/dist/actions/get-subscription-by-customer.d.mts.map +1 -0
- package/dist/actions/get-subscription-by-customer.mjs +77 -0
- package/dist/actions/get-subscription-by-customer.mjs.map +1 -0
- package/dist/actions/get-subscription-creation-quote.cjs +46 -0
- package/dist/actions/get-subscription-creation-quote.cjs.map +1 -0
- package/dist/actions/get-subscription-creation-quote.d.cts +9 -0
- package/dist/actions/get-subscription-creation-quote.d.cts.map +1 -0
- package/dist/actions/get-subscription-creation-quote.d.mts +9 -0
- package/dist/actions/get-subscription-creation-quote.d.mts.map +1 -0
- package/dist/actions/get-subscription-creation-quote.mjs +45 -0
- package/dist/actions/get-subscription-creation-quote.mjs.map +1 -0
- package/dist/actions/get-usage.cjs +34 -0
- package/dist/actions/get-usage.cjs.map +1 -0
- package/dist/actions/get-usage.d.cts +9 -0
- package/dist/actions/get-usage.d.cts.map +1 -0
- package/dist/actions/get-usage.d.mts +9 -0
- package/dist/actions/get-usage.d.mts.map +1 -0
- package/dist/actions/get-usage.mjs +31 -0
- package/dist/actions/get-usage.mjs.map +1 -0
- package/dist/actions/get-usages-for-customer.cjs +48 -0
- package/dist/actions/get-usages-for-customer.cjs.map +1 -0
- package/dist/actions/get-usages-for-customer.d.cts +9 -0
- package/dist/actions/get-usages-for-customer.d.cts.map +1 -0
- package/dist/actions/get-usages-for-customer.d.mts +9 -0
- package/dist/actions/get-usages-for-customer.d.mts.map +1 -0
- package/dist/actions/get-usages-for-customer.mjs +47 -0
- package/dist/actions/get-usages-for-customer.mjs.map +1 -0
- package/dist/actions/index.cjs +129 -0
- package/dist/actions/index.d.cts +65 -0
- package/dist/actions/index.d.mts +65 -0
- package/dist/actions/index.mjs +65 -0
- package/dist/actions/invalidate-customer-by-id.cjs +32 -0
- package/dist/actions/invalidate-customer-by-id.cjs.map +1 -0
- package/dist/actions/invalidate-customer-by-id.d.cts +9 -0
- package/dist/actions/invalidate-customer-by-id.d.cts.map +1 -0
- package/dist/actions/invalidate-customer-by-id.d.mts +9 -0
- package/dist/actions/invalidate-customer-by-id.d.mts.map +1 -0
- package/dist/actions/invalidate-customer-by-id.mjs +31 -0
- package/dist/actions/invalidate-customer-by-id.mjs.map +1 -0
- package/dist/actions/invalidate-customer.cjs +35 -0
- package/dist/actions/invalidate-customer.cjs.map +1 -0
- package/dist/actions/invalidate-customer.d.cts +9 -0
- package/dist/actions/invalidate-customer.d.cts.map +1 -0
- package/dist/actions/invalidate-customer.d.mts +9 -0
- package/dist/actions/invalidate-customer.d.mts.map +1 -0
- package/dist/actions/invalidate-customer.mjs +34 -0
- package/dist/actions/invalidate-customer.mjs.map +1 -0
- package/dist/actions/list-balance-lines.cjs +49 -0
- package/dist/actions/list-balance-lines.cjs.map +1 -0
- package/dist/actions/list-balance-lines.d.cts +9 -0
- package/dist/actions/list-balance-lines.d.cts.map +1 -0
- package/dist/actions/list-balance-lines.d.mts +9 -0
- package/dist/actions/list-balance-lines.d.mts.map +1 -0
- package/dist/actions/list-balance-lines.mjs +48 -0
- package/dist/actions/list-balance-lines.mjs.map +1 -0
- package/dist/actions/list-business-localization.cjs +43 -0
- package/dist/actions/list-business-localization.cjs.map +1 -0
- package/dist/actions/list-business-localization.d.cts +9 -0
- package/dist/actions/list-business-localization.d.cts.map +1 -0
- package/dist/actions/list-business-localization.d.mts +9 -0
- package/dist/actions/list-business-localization.d.mts.map +1 -0
- package/dist/actions/list-business-localization.mjs +42 -0
- package/dist/actions/list-business-localization.mjs.map +1 -0
- package/dist/actions/list-businesses.cjs +44 -0
- package/dist/actions/list-businesses.cjs.map +1 -0
- package/dist/actions/list-businesses.d.cts +9 -0
- package/dist/actions/list-businesses.d.cts.map +1 -0
- package/dist/actions/list-businesses.d.mts +9 -0
- package/dist/actions/list-businesses.d.mts.map +1 -0
- package/dist/actions/list-businesses.mjs +43 -0
- package/dist/actions/list-businesses.mjs.map +1 -0
- package/dist/actions/list-customer-moves.cjs +50 -0
- package/dist/actions/list-customer-moves.cjs.map +1 -0
- package/dist/actions/list-customer-moves.d.cts +9 -0
- package/dist/actions/list-customer-moves.d.cts.map +1 -0
- package/dist/actions/list-customer-moves.d.mts +9 -0
- package/dist/actions/list-customer-moves.d.mts.map +1 -0
- package/dist/actions/list-customer-moves.mjs +49 -0
- package/dist/actions/list-customer-moves.mjs.map +1 -0
- package/dist/actions/list-customers-by-feature.cjs +38 -0
- package/dist/actions/list-customers-by-feature.cjs.map +1 -0
- package/dist/actions/list-customers-by-feature.d.cts +9 -0
- package/dist/actions/list-customers-by-feature.d.cts.map +1 -0
- package/dist/actions/list-customers-by-feature.d.mts +9 -0
- package/dist/actions/list-customers-by-feature.d.mts.map +1 -0
- package/dist/actions/list-customers-by-feature.mjs +37 -0
- package/dist/actions/list-customers-by-feature.mjs.map +1 -0
- package/dist/actions/list-customers.cjs +55 -0
- package/dist/actions/list-customers.cjs.map +1 -0
- package/dist/actions/list-customers.d.cts +9 -0
- package/dist/actions/list-customers.d.cts.map +1 -0
- package/dist/actions/list-customers.d.mts +9 -0
- package/dist/actions/list-customers.d.mts.map +1 -0
- package/dist/actions/list-customers.mjs +54 -0
- package/dist/actions/list-customers.mjs.map +1 -0
- package/dist/actions/list-discounts.cjs +55 -0
- package/dist/actions/list-discounts.cjs.map +1 -0
- package/dist/actions/list-discounts.d.cts +9 -0
- package/dist/actions/list-discounts.d.cts.map +1 -0
- package/dist/actions/list-discounts.d.mts +9 -0
- package/dist/actions/list-discounts.d.mts.map +1 -0
- package/dist/actions/list-discounts.mjs +54 -0
- package/dist/actions/list-discounts.mjs.map +1 -0
- package/dist/actions/list-features.cjs +52 -0
- package/dist/actions/list-features.cjs.map +1 -0
- package/dist/actions/list-features.d.cts +9 -0
- package/dist/actions/list-features.d.cts.map +1 -0
- package/dist/actions/list-features.d.mts +9 -0
- package/dist/actions/list-features.d.mts.map +1 -0
- package/dist/actions/list-features.mjs +51 -0
- package/dist/actions/list-features.mjs.map +1 -0
- package/dist/actions/list-gateway-accounts.cjs +55 -0
- package/dist/actions/list-gateway-accounts.cjs.map +1 -0
- package/dist/actions/list-gateway-accounts.d.cts +9 -0
- package/dist/actions/list-gateway-accounts.d.cts.map +1 -0
- package/dist/actions/list-gateway-accounts.d.mts +9 -0
- package/dist/actions/list-gateway-accounts.d.mts.map +1 -0
- package/dist/actions/list-gateway-accounts.mjs +54 -0
- package/dist/actions/list-gateway-accounts.mjs.map +1 -0
- package/dist/actions/list-gateway-permissions.cjs +52 -0
- package/dist/actions/list-gateway-permissions.cjs.map +1 -0
- package/dist/actions/list-gateway-permissions.d.cts +9 -0
- package/dist/actions/list-gateway-permissions.d.cts.map +1 -0
- package/dist/actions/list-gateway-permissions.d.mts +9 -0
- package/dist/actions/list-gateway-permissions.d.mts.map +1 -0
- package/dist/actions/list-gateway-permissions.mjs +51 -0
- package/dist/actions/list-gateway-permissions.mjs.map +1 -0
- package/dist/actions/list-gateway-requests.cjs +66 -0
- package/dist/actions/list-gateway-requests.cjs.map +1 -0
- package/dist/actions/list-gateway-requests.d.cts +9 -0
- package/dist/actions/list-gateway-requests.d.cts.map +1 -0
- package/dist/actions/list-gateway-requests.d.mts +9 -0
- package/dist/actions/list-gateway-requests.d.mts.map +1 -0
- package/dist/actions/list-gateway-requests.mjs +65 -0
- package/dist/actions/list-gateway-requests.mjs.map +1 -0
- package/dist/actions/list-gateway-transactions.cjs +57 -0
- package/dist/actions/list-gateway-transactions.cjs.map +1 -0
- package/dist/actions/list-gateway-transactions.d.cts +9 -0
- package/dist/actions/list-gateway-transactions.d.cts.map +1 -0
- package/dist/actions/list-gateway-transactions.d.mts +9 -0
- package/dist/actions/list-gateway-transactions.d.mts.map +1 -0
- package/dist/actions/list-gateway-transactions.mjs +56 -0
- package/dist/actions/list-gateway-transactions.mjs.map +1 -0
- package/dist/actions/list-invoice-lines.cjs +37 -0
- package/dist/actions/list-invoice-lines.cjs.map +1 -0
- package/dist/actions/list-invoice-lines.d.cts +9 -0
- package/dist/actions/list-invoice-lines.d.cts.map +1 -0
- package/dist/actions/list-invoice-lines.d.mts +9 -0
- package/dist/actions/list-invoice-lines.d.mts.map +1 -0
- package/dist/actions/list-invoice-lines.mjs +36 -0
- package/dist/actions/list-invoice-lines.mjs.map +1 -0
- package/dist/actions/list-invoices-by-customer.cjs +50 -0
- package/dist/actions/list-invoices-by-customer.cjs.map +1 -0
- package/dist/actions/list-invoices-by-customer.d.cts +9 -0
- package/dist/actions/list-invoices-by-customer.d.cts.map +1 -0
- package/dist/actions/list-invoices-by-customer.d.mts +9 -0
- package/dist/actions/list-invoices-by-customer.d.mts.map +1 -0
- package/dist/actions/list-invoices-by-customer.mjs +49 -0
- package/dist/actions/list-invoices-by-customer.mjs.map +1 -0
- package/dist/actions/list-invoices.cjs +52 -0
- package/dist/actions/list-invoices.cjs.map +1 -0
- package/dist/actions/list-invoices.d.cts +9 -0
- package/dist/actions/list-invoices.d.cts.map +1 -0
- package/dist/actions/list-invoices.d.mts +9 -0
- package/dist/actions/list-invoices.d.mts.map +1 -0
- package/dist/actions/list-invoices.mjs +51 -0
- package/dist/actions/list-invoices.mjs.map +1 -0
- package/dist/actions/list-offers.cjs +55 -0
- package/dist/actions/list-offers.cjs.map +1 -0
- package/dist/actions/list-offers.d.cts +9 -0
- package/dist/actions/list-offers.d.cts.map +1 -0
- package/dist/actions/list-offers.d.mts +9 -0
- package/dist/actions/list-offers.d.mts.map +1 -0
- package/dist/actions/list-offers.mjs +54 -0
- package/dist/actions/list-offers.mjs.map +1 -0
- package/dist/actions/list-payments.cjs +50 -0
- package/dist/actions/list-payments.cjs.map +1 -0
- package/dist/actions/list-payments.d.cts +9 -0
- package/dist/actions/list-payments.d.cts.map +1 -0
- package/dist/actions/list-payments.d.mts +9 -0
- package/dist/actions/list-payments.d.mts.map +1 -0
- package/dist/actions/list-payments.mjs +49 -0
- package/dist/actions/list-payments.mjs.map +1 -0
- package/dist/actions/list-pricing-table-offers.cjs +41 -0
- package/dist/actions/list-pricing-table-offers.cjs.map +1 -0
- package/dist/actions/list-pricing-table-offers.d.cts +9 -0
- package/dist/actions/list-pricing-table-offers.d.cts.map +1 -0
- package/dist/actions/list-pricing-table-offers.d.mts +9 -0
- package/dist/actions/list-pricing-table-offers.d.mts.map +1 -0
- package/dist/actions/list-pricing-table-offers.mjs +40 -0
- package/dist/actions/list-pricing-table-offers.mjs.map +1 -0
- package/dist/actions/list-pricing-tables.cjs +48 -0
- package/dist/actions/list-pricing-tables.cjs.map +1 -0
- package/dist/actions/list-pricing-tables.d.cts +9 -0
- package/dist/actions/list-pricing-tables.d.cts.map +1 -0
- package/dist/actions/list-pricing-tables.d.mts +9 -0
- package/dist/actions/list-pricing-tables.d.mts.map +1 -0
- package/dist/actions/list-pricing-tables.mjs +47 -0
- package/dist/actions/list-pricing-tables.mjs.map +1 -0
- package/dist/actions/list-segment-localizations.cjs +38 -0
- package/dist/actions/list-segment-localizations.cjs.map +1 -0
- package/dist/actions/list-segment-localizations.d.cts +9 -0
- package/dist/actions/list-segment-localizations.d.cts.map +1 -0
- package/dist/actions/list-segment-localizations.d.mts +9 -0
- package/dist/actions/list-segment-localizations.d.mts.map +1 -0
- package/dist/actions/list-segment-localizations.mjs +37 -0
- package/dist/actions/list-segment-localizations.mjs.map +1 -0
- package/dist/actions/list-segments.cjs +53 -0
- package/dist/actions/list-segments.cjs.map +1 -0
- package/dist/actions/list-segments.d.cts +9 -0
- package/dist/actions/list-segments.d.cts.map +1 -0
- package/dist/actions/list-segments.d.mts +9 -0
- package/dist/actions/list-segments.d.mts.map +1 -0
- package/dist/actions/list-segments.mjs +52 -0
- package/dist/actions/list-segments.mjs.map +1 -0
- package/dist/actions/list-subscription-discounts.cjs +47 -0
- package/dist/actions/list-subscription-discounts.cjs.map +1 -0
- package/dist/actions/list-subscription-discounts.d.cts +9 -0
- package/dist/actions/list-subscription-discounts.d.cts.map +1 -0
- package/dist/actions/list-subscription-discounts.d.mts +9 -0
- package/dist/actions/list-subscription-discounts.d.mts.map +1 -0
- package/dist/actions/list-subscription-discounts.mjs +46 -0
- package/dist/actions/list-subscription-discounts.mjs.map +1 -0
- package/dist/actions/list-subscription-features.cjs +46 -0
- package/dist/actions/list-subscription-features.cjs.map +1 -0
- package/dist/actions/list-subscription-features.d.cts +9 -0
- package/dist/actions/list-subscription-features.d.cts.map +1 -0
- package/dist/actions/list-subscription-features.d.mts +9 -0
- package/dist/actions/list-subscription-features.d.mts.map +1 -0
- package/dist/actions/list-subscription-features.mjs +45 -0
- package/dist/actions/list-subscription-features.mjs.map +1 -0
- package/dist/actions/list-subscription-periods.cjs +46 -0
- package/dist/actions/list-subscription-periods.cjs.map +1 -0
- package/dist/actions/list-subscription-periods.d.cts +9 -0
- package/dist/actions/list-subscription-periods.d.cts.map +1 -0
- package/dist/actions/list-subscription-periods.d.mts +9 -0
- package/dist/actions/list-subscription-periods.d.mts.map +1 -0
- package/dist/actions/list-subscription-periods.mjs +45 -0
- package/dist/actions/list-subscription-periods.mjs.map +1 -0
- package/dist/actions/list-subscriptions.cjs +59 -0
- package/dist/actions/list-subscriptions.cjs.map +1 -0
- package/dist/actions/list-subscriptions.d.cts +9 -0
- package/dist/actions/list-subscriptions.d.cts.map +1 -0
- package/dist/actions/list-subscriptions.d.mts +9 -0
- package/dist/actions/list-subscriptions.d.mts.map +1 -0
- package/dist/actions/list-subscriptions.mjs +58 -0
- package/dist/actions/list-subscriptions.mjs.map +1 -0
- package/dist/actions/list-tax-profile-exceptions.cjs +52 -0
- package/dist/actions/list-tax-profile-exceptions.cjs.map +1 -0
- package/dist/actions/list-tax-profile-exceptions.d.cts +9 -0
- package/dist/actions/list-tax-profile-exceptions.d.cts.map +1 -0
- package/dist/actions/list-tax-profile-exceptions.d.mts +9 -0
- package/dist/actions/list-tax-profile-exceptions.d.mts.map +1 -0
- package/dist/actions/list-tax-profile-exceptions.mjs +51 -0
- package/dist/actions/list-tax-profile-exceptions.mjs.map +1 -0
- package/dist/actions/list-tax-profiles.cjs +48 -0
- package/dist/actions/list-tax-profiles.cjs.map +1 -0
- package/dist/actions/list-tax-profiles.d.cts +9 -0
- package/dist/actions/list-tax-profiles.d.cts.map +1 -0
- package/dist/actions/list-tax-profiles.d.mts +9 -0
- package/dist/actions/list-tax-profiles.d.mts.map +1 -0
- package/dist/actions/list-tax-profiles.mjs +47 -0
- package/dist/actions/list-tax-profiles.mjs.map +1 -0
- package/dist/actions/list-upgrade-offers.cjs +72 -0
- package/dist/actions/list-upgrade-offers.cjs.map +1 -0
- package/dist/actions/list-upgrade-offers.d.cts +9 -0
- package/dist/actions/list-upgrade-offers.d.cts.map +1 -0
- package/dist/actions/list-upgrade-offers.d.mts +9 -0
- package/dist/actions/list-upgrade-offers.d.mts.map +1 -0
- package/dist/actions/list-upgrade-offers.mjs +71 -0
- package/dist/actions/list-upgrade-offers.mjs.map +1 -0
- package/dist/actions/list-webhook-notifications.cjs +58 -0
- package/dist/actions/list-webhook-notifications.cjs.map +1 -0
- package/dist/actions/list-webhook-notifications.d.cts +9 -0
- package/dist/actions/list-webhook-notifications.d.cts.map +1 -0
- package/dist/actions/list-webhook-notifications.d.mts +9 -0
- package/dist/actions/list-webhook-notifications.d.mts.map +1 -0
- package/dist/actions/list-webhook-notifications.mjs +57 -0
- package/dist/actions/list-webhook-notifications.mjs.map +1 -0
- package/dist/actions/list-webhooks.cjs +49 -0
- package/dist/actions/list-webhooks.cjs.map +1 -0
- package/dist/actions/list-webhooks.d.cts +9 -0
- package/dist/actions/list-webhooks.d.cts.map +1 -0
- package/dist/actions/list-webhooks.d.mts +9 -0
- package/dist/actions/list-webhooks.d.mts.map +1 -0
- package/dist/actions/list-webhooks.mjs +48 -0
- package/dist/actions/list-webhooks.mjs.map +1 -0
- package/dist/actions/quote-balance-line.cjs +41 -0
- package/dist/actions/quote-balance-line.cjs.map +1 -0
- package/dist/actions/quote-balance-line.d.cts +9 -0
- package/dist/actions/quote-balance-line.d.cts.map +1 -0
- package/dist/actions/quote-balance-line.d.mts +9 -0
- package/dist/actions/quote-balance-line.d.mts.map +1 -0
- package/dist/actions/quote-balance-line.mjs +40 -0
- package/dist/actions/quote-balance-line.mjs.map +1 -0
- package/dist/actions/revoke-customer-links.cjs +31 -0
- package/dist/actions/revoke-customer-links.cjs.map +1 -0
- package/dist/actions/revoke-customer-links.d.cts +9 -0
- package/dist/actions/revoke-customer-links.d.cts.map +1 -0
- package/dist/actions/revoke-customer-links.d.mts +9 -0
- package/dist/actions/revoke-customer-links.d.mts.map +1 -0
- package/dist/actions/revoke-customer-links.mjs +30 -0
- package/dist/actions/revoke-customer-links.mjs.map +1 -0
- package/dist/actions/update-businesses-billing-address.cjs +50 -0
- package/dist/actions/update-businesses-billing-address.cjs.map +1 -0
- package/dist/actions/update-businesses-billing-address.d.cts +9 -0
- package/dist/actions/update-businesses-billing-address.d.cts.map +1 -0
- package/dist/actions/update-businesses-billing-address.d.mts +9 -0
- package/dist/actions/update-businesses-billing-address.d.mts.map +1 -0
- package/dist/actions/update-businesses-billing-address.mjs +49 -0
- package/dist/actions/update-businesses-billing-address.mjs.map +1 -0
- package/dist/actions/update-customer-billing-address.cjs +41 -0
- package/dist/actions/update-customer-billing-address.cjs.map +1 -0
- package/dist/actions/update-customer-billing-address.d.cts +9 -0
- package/dist/actions/update-customer-billing-address.d.cts.map +1 -0
- package/dist/actions/update-customer-billing-address.d.mts +9 -0
- package/dist/actions/update-customer-billing-address.d.mts.map +1 -0
- package/dist/actions/update-customer-billing-address.mjs +38 -0
- package/dist/actions/update-customer-billing-address.mjs.map +1 -0
- package/dist/actions/update-customer-payment-settings.cjs +25 -0
- package/dist/actions/update-customer-payment-settings.cjs.map +1 -0
- package/dist/actions/update-customer-payment-settings.d.cts +9 -0
- package/dist/actions/update-customer-payment-settings.d.cts.map +1 -0
- package/dist/actions/update-customer-payment-settings.d.mts +9 -0
- package/dist/actions/update-customer-payment-settings.d.mts.map +1 -0
- package/dist/actions/update-customer-payment-settings.mjs +22 -0
- package/dist/actions/update-customer-payment-settings.mjs.map +1 -0
- package/dist/actions/update-customer-shipping.cjs +51 -0
- package/dist/actions/update-customer-shipping.cjs.map +1 -0
- package/dist/actions/update-customer-shipping.d.cts +9 -0
- package/dist/actions/update-customer-shipping.d.cts.map +1 -0
- package/dist/actions/update-customer-shipping.d.mts +9 -0
- package/dist/actions/update-customer-shipping.d.mts.map +1 -0
- package/dist/actions/update-customer-shipping.mjs +50 -0
- package/dist/actions/update-customer-shipping.mjs.map +1 -0
- package/dist/actions/update-customer.cjs +46 -0
- package/dist/actions/update-customer.cjs.map +1 -0
- package/dist/actions/update-customer.d.cts +9 -0
- package/dist/actions/update-customer.d.cts.map +1 -0
- package/dist/actions/update-customer.d.mts +9 -0
- package/dist/actions/update-customer.d.mts.map +1 -0
- package/dist/actions/update-customer.mjs +45 -0
- package/dist/actions/update-customer.mjs.map +1 -0
- package/dist/actions/update-feature.cjs +46 -0
- package/dist/actions/update-feature.cjs.map +1 -0
- package/dist/actions/update-feature.d.cts +9 -0
- package/dist/actions/update-feature.d.cts.map +1 -0
- package/dist/actions/update-feature.d.mts +9 -0
- package/dist/actions/update-feature.d.mts.map +1 -0
- package/dist/actions/update-feature.mjs +45 -0
- package/dist/actions/update-feature.mjs.map +1 -0
- package/dist/actions/update-tax-profiles.cjs +39 -0
- package/dist/actions/update-tax-profiles.cjs.map +1 -0
- package/dist/actions/update-tax-profiles.d.cts +9 -0
- package/dist/actions/update-tax-profiles.d.cts.map +1 -0
- package/dist/actions/update-tax-profiles.d.mts +9 -0
- package/dist/actions/update-tax-profiles.d.mts.map +1 -0
- package/dist/actions/update-tax-profiles.mjs +38 -0
- package/dist/actions/update-tax-profiles.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +134 -0
- package/dist/index.d.cts +67 -0
- package/dist/index.d.mts +67 -0
- package/dist/index.mjs +68 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/proabono
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `proabono`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 64
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { proabonoAnonymizeCustomer } from "@keystrokehq/proabono/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "proabono-agent",
|
|
15
|
+
tools: [proabonoAnonymizeCustomer],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.proabono.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeProabonoTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["proabono","executeProabonoTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { proabono } from \"./app\";\nimport { executeProabonoTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return proabono.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeProabonoTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { proabono } from "./app.mjs";
|
|
2
|
+
import { executeProabonoTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return proabono.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeProabonoTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { proabono } from \"./app\";\nimport { executeProabonoTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return proabono.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeProabonoTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/anonymize-customer.ts
|
|
4
|
+
const ProabonoAnonymizeCustomerInput = zod.z.object({ reference_customer: zod.z.string().describe("The unique reference of the customer to anonymize. This is your application's customer reference identifier.") }).describe("Request parameters for anonymizing a customer.");
|
|
5
|
+
const ProabonoAnonymizeCustomer_CustomerLinkSchema = zod.z.object({
|
|
6
|
+
rel: zod.z.string().describe("The relationship type of the link (e.g., 'insite-home', 'insite-collection-offers', 'insite-register').").nullable().optional(),
|
|
7
|
+
href: zod.z.string().describe("The URL of the link, typically an encrypted portal link.").nullable().optional()
|
|
8
|
+
}).describe("A link to a customer portal page.");
|
|
9
|
+
const ProabonoAnonymizeCustomerOutput = zod.z.object({
|
|
10
|
+
Id: zod.z.number().int().describe("The ProAbono internal identifier for the customer.").nullable().optional(),
|
|
11
|
+
Name: zod.z.string().describe("The customer's name, will be '## cleared ##' after anonymization.").nullable().optional(),
|
|
12
|
+
Email: zod.z.string().describe("The customer's email address, cleared during anonymization.").nullable().optional(),
|
|
13
|
+
Links: zod.z.array(ProabonoAnonymizeCustomer_CustomerLinkSchema).describe("Collection of encrypted portal links for customer access.").nullable().optional(),
|
|
14
|
+
Status: zod.z.string().describe("The status of the customer account (e.g., 'Enabled', 'Disabled').").nullable().optional(),
|
|
15
|
+
Currency: zod.z.string().describe("The currency code for this customer (e.g., 'EUR', 'USD').").nullable().optional(),
|
|
16
|
+
Language: zod.z.string().describe("The customer's language preference (e.g., 'en', 'fr').").nullable().optional(),
|
|
17
|
+
IdSegment: zod.z.number().int().describe("The identifier of the segment this customer belongs to.").nullable().optional(),
|
|
18
|
+
ReferenceSegment: zod.z.string().describe("The reference name of the segment.").nullable().optional(),
|
|
19
|
+
ReferenceCustomer: zod.z.string().describe("Your application's customer reference that was anonymized.").nullable().optional()
|
|
20
|
+
}).describe("Response model returned after anonymizing a customer.");
|
|
21
|
+
const proabonoAnonymizeCustomer = require_action.action("PROABONO_ANONYMIZE_CUSTOMER", {
|
|
22
|
+
slug: "proabono-anonymize-customer",
|
|
23
|
+
name: "Anonymize Customer",
|
|
24
|
+
description: "Tool to anonymize a customer for GDPR compliance. Use when you need to permanently remove personal data from a customer record while maintaining the account structure. The customer must have no active subscriptions, all invoices must be settled, and the balance must be empty before anonymization.",
|
|
25
|
+
input: ProabonoAnonymizeCustomerInput,
|
|
26
|
+
output: ProabonoAnonymizeCustomerOutput
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.proabonoAnonymizeCustomer = proabonoAnonymizeCustomer;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=anonymize-customer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anonymize-customer.cjs","names":["z","action"],"sources":["../../src/actions/anonymize-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ProabonoAnonymizeCustomerInput: z.ZodTypeAny = z.object({\n reference_customer: z.string().describe(\"The unique reference of the customer to anonymize. This is your application's customer reference identifier.\"),\n}).describe(\"Request parameters for anonymizing a customer.\");\nconst ProabonoAnonymizeCustomer_CustomerLinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The relationship type of the link (e.g., 'insite-home', 'insite-collection-offers', 'insite-register').\").nullable().optional(),\n href: z.string().describe(\"The URL of the link, typically an encrypted portal link.\").nullable().optional(),\n}).describe(\"A link to a customer portal page.\");\nexport const ProabonoAnonymizeCustomerOutput: z.ZodTypeAny = z.object({\n Id: z.number().int().describe(\"The ProAbono internal identifier for the customer.\").nullable().optional(),\n Name: z.string().describe(\"The customer's name, will be '## cleared ##' after anonymization.\").nullable().optional(),\n Email: z.string().describe(\"The customer's email address, cleared during anonymization.\").nullable().optional(),\n Links: z.array(ProabonoAnonymizeCustomer_CustomerLinkSchema).describe(\"Collection of encrypted portal links for customer access.\").nullable().optional(),\n Status: z.string().describe(\"The status of the customer account (e.g., 'Enabled', 'Disabled').\").nullable().optional(),\n Currency: z.string().describe(\"The currency code for this customer (e.g., 'EUR', 'USD').\").nullable().optional(),\n Language: z.string().describe(\"The customer's language preference (e.g., 'en', 'fr').\").nullable().optional(),\n IdSegment: z.number().int().describe(\"The identifier of the segment this customer belongs to.\").nullable().optional(),\n ReferenceSegment: z.string().describe(\"The reference name of the segment.\").nullable().optional(),\n ReferenceCustomer: z.string().describe(\"Your application's customer reference that was anonymized.\").nullable().optional(),\n}).describe(\"Response model returned after anonymizing a customer.\");\n\nexport const proabonoAnonymizeCustomer = action(\"PROABONO_ANONYMIZE_CUSTOMER\", {\n slug: \"proabono-anonymize-customer\",\n name: \"Anonymize Customer\",\n description: \"Tool to anonymize a customer for GDPR compliance. Use when you need to permanently remove personal data from a customer record while maintaining the account structure. The customer must have no active subscriptions, all invoices must be settled, and the balance must be empty before anonymization.\",\n input: ProabonoAnonymizeCustomerInput,\n output: ProabonoAnonymizeCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,EACxJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,OAAOA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/anonymize-customer.d.ts
|
|
4
|
+
declare const ProabonoAnonymizeCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const ProabonoAnonymizeCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const proabonoAnonymizeCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { proabonoAnonymizeCustomer };
|
|
9
|
+
//# sourceMappingURL=anonymize-customer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anonymize-customer.d.cts","names":[],"sources":["../../src/actions/anonymize-customer.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEc;AAAA,cAKhD,+BAAA,EAAiC,CAAA,CAAE,UAWoB;AAAA,cAEvD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/anonymize-customer.d.ts
|
|
4
|
+
declare const ProabonoAnonymizeCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const ProabonoAnonymizeCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const proabonoAnonymizeCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { proabonoAnonymizeCustomer };
|
|
9
|
+
//# sourceMappingURL=anonymize-customer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anonymize-customer.d.mts","names":[],"sources":["../../src/actions/anonymize-customer.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEc;AAAA,cAKhD,+BAAA,EAAiC,CAAA,CAAE,UAWoB;AAAA,cAEvD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/anonymize-customer.ts
|
|
4
|
+
const ProabonoAnonymizeCustomerInput = z.object({ reference_customer: z.string().describe("The unique reference of the customer to anonymize. This is your application's customer reference identifier.") }).describe("Request parameters for anonymizing a customer.");
|
|
5
|
+
const ProabonoAnonymizeCustomer_CustomerLinkSchema = z.object({
|
|
6
|
+
rel: z.string().describe("The relationship type of the link (e.g., 'insite-home', 'insite-collection-offers', 'insite-register').").nullable().optional(),
|
|
7
|
+
href: z.string().describe("The URL of the link, typically an encrypted portal link.").nullable().optional()
|
|
8
|
+
}).describe("A link to a customer portal page.");
|
|
9
|
+
const proabonoAnonymizeCustomer = action("PROABONO_ANONYMIZE_CUSTOMER", {
|
|
10
|
+
slug: "proabono-anonymize-customer",
|
|
11
|
+
name: "Anonymize Customer",
|
|
12
|
+
description: "Tool to anonymize a customer for GDPR compliance. Use when you need to permanently remove personal data from a customer record while maintaining the account structure. The customer must have no active subscriptions, all invoices must be settled, and the balance must be empty before anonymization.",
|
|
13
|
+
input: ProabonoAnonymizeCustomerInput,
|
|
14
|
+
output: z.object({
|
|
15
|
+
Id: z.number().int().describe("The ProAbono internal identifier for the customer.").nullable().optional(),
|
|
16
|
+
Name: z.string().describe("The customer's name, will be '## cleared ##' after anonymization.").nullable().optional(),
|
|
17
|
+
Email: z.string().describe("The customer's email address, cleared during anonymization.").nullable().optional(),
|
|
18
|
+
Links: z.array(ProabonoAnonymizeCustomer_CustomerLinkSchema).describe("Collection of encrypted portal links for customer access.").nullable().optional(),
|
|
19
|
+
Status: z.string().describe("The status of the customer account (e.g., 'Enabled', 'Disabled').").nullable().optional(),
|
|
20
|
+
Currency: z.string().describe("The currency code for this customer (e.g., 'EUR', 'USD').").nullable().optional(),
|
|
21
|
+
Language: z.string().describe("The customer's language preference (e.g., 'en', 'fr').").nullable().optional(),
|
|
22
|
+
IdSegment: z.number().int().describe("The identifier of the segment this customer belongs to.").nullable().optional(),
|
|
23
|
+
ReferenceSegment: z.string().describe("The reference name of the segment.").nullable().optional(),
|
|
24
|
+
ReferenceCustomer: z.string().describe("Your application's customer reference that was anonymized.").nullable().optional()
|
|
25
|
+
}).describe("Response model returned after anonymizing a customer.")
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { proabonoAnonymizeCustomer };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=anonymize-customer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anonymize-customer.mjs","names":[],"sources":["../../src/actions/anonymize-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ProabonoAnonymizeCustomerInput: z.ZodTypeAny = z.object({\n reference_customer: z.string().describe(\"The unique reference of the customer to anonymize. This is your application's customer reference identifier.\"),\n}).describe(\"Request parameters for anonymizing a customer.\");\nconst ProabonoAnonymizeCustomer_CustomerLinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The relationship type of the link (e.g., 'insite-home', 'insite-collection-offers', 'insite-register').\").nullable().optional(),\n href: z.string().describe(\"The URL of the link, typically an encrypted portal link.\").nullable().optional(),\n}).describe(\"A link to a customer portal page.\");\nexport const ProabonoAnonymizeCustomerOutput: z.ZodTypeAny = z.object({\n Id: z.number().int().describe(\"The ProAbono internal identifier for the customer.\").nullable().optional(),\n Name: z.string().describe(\"The customer's name, will be '## cleared ##' after anonymization.\").nullable().optional(),\n Email: z.string().describe(\"The customer's email address, cleared during anonymization.\").nullable().optional(),\n Links: z.array(ProabonoAnonymizeCustomer_CustomerLinkSchema).describe(\"Collection of encrypted portal links for customer access.\").nullable().optional(),\n Status: z.string().describe(\"The status of the customer account (e.g., 'Enabled', 'Disabled').\").nullable().optional(),\n Currency: z.string().describe(\"The currency code for this customer (e.g., 'EUR', 'USD').\").nullable().optional(),\n Language: z.string().describe(\"The customer's language preference (e.g., 'en', 'fr').\").nullable().optional(),\n IdSegment: z.number().int().describe(\"The identifier of the segment this customer belongs to.\").nullable().optional(),\n ReferenceSegment: z.string().describe(\"The reference name of the segment.\").nullable().optional(),\n ReferenceCustomer: z.string().describe(\"Your application's customer reference that was anonymized.\").nullable().optional(),\n}).describe(\"Response model returned after anonymizing a customer.\");\n\nexport const proabonoAnonymizeCustomer = action(\"PROABONO_ANONYMIZE_CUSTOMER\", {\n slug: \"proabono-anonymize-customer\",\n name: \"Anonymize Customer\",\n description: \"Tool to anonymize a customer for GDPR compliance. Use when you need to permanently remove personal data from a customer record while maintaining the account structure. The customer must have no active subscriptions, all invoices must be settled, and the balance must be empty before anonymization.\",\n input: ProabonoAnonymizeCustomerInput,\n output: ProabonoAnonymizeCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,EACnE,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,EACxJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,+CAA6D,EAAE,OAAO;CAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAc/C,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlB2D,EAAE,OAAO;EACpE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,OAAO,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/bill-customer.ts
|
|
4
|
+
const ProabonoBillCustomerInput = zod.z.object({ ReferenceCustomer: zod.z.string().describe("The unique reference of the customer to bill. This identifier is used to trigger billing and create invoices for pending charges.") }).describe("Request model for billing a customer.");
|
|
5
|
+
const ProabonoBillCustomerOutput = zod.z.object({
|
|
6
|
+
Amount: zod.z.number().describe("Total amount billed").nullable().optional(),
|
|
7
|
+
message: zod.z.string().describe("Additional message or details about the billing operation").nullable().optional(),
|
|
8
|
+
success: zod.z.boolean().describe("Indicates whether the billing operation was successful").nullable().optional(),
|
|
9
|
+
InvoiceId: zod.z.string().describe("Identifier of the invoice generated").nullable().optional(),
|
|
10
|
+
BillingDate: zod.z.string().describe("Date when the billing was processed").nullable().optional(),
|
|
11
|
+
ReferenceCustomer: zod.z.string().describe("Reference of the customer that was billed").nullable().optional()
|
|
12
|
+
}).describe("Response model returned after billing a customer.");
|
|
13
|
+
const proabonoBillCustomer = require_action.action("PROABONO_BILL_CUSTOMER", {
|
|
14
|
+
slug: "proabono-bill-customer",
|
|
15
|
+
name: "Bill Customer",
|
|
16
|
+
description: "Tool to trigger billing for a customer. Use when you need to create invoices for pending charges for a specific customer.",
|
|
17
|
+
input: ProabonoBillCustomerInput,
|
|
18
|
+
output: ProabonoBillCustomerOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.proabonoBillCustomer = proabonoBillCustomer;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=bill-customer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bill-customer.cjs","names":["z","action"],"sources":["../../src/actions/bill-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ProabonoBillCustomerInput: z.ZodTypeAny = z.object({\n ReferenceCustomer: z.string().describe(\"The unique reference of the customer to bill. This identifier is used to trigger billing and create invoices for pending charges.\"),\n}).describe(\"Request model for billing a customer.\");\nexport const ProabonoBillCustomerOutput: z.ZodTypeAny = z.object({\n Amount: z.number().describe(\"Total amount billed\").nullable().optional(),\n message: z.string().describe(\"Additional message or details about the billing operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the billing operation was successful\").nullable().optional(),\n InvoiceId: z.string().describe(\"Identifier of the invoice generated\").nullable().optional(),\n BillingDate: z.string().describe(\"Date when the billing was processed\").nullable().optional(),\n ReferenceCustomer: z.string().describe(\"Reference of the customer that was billed\").nullable().optional(),\n}).describe(\"Response model returned after billing a customer.\");\n\nexport const proabonoBillCustomer = action(\"PROABONO_BILL_CUSTOMER\", {\n slug: \"proabono-bill-customer\",\n name: \"Bill Customer\",\n description: \"Tool to trigger billing for a customer. Use when you need to create invoices for pending charges for a specific customer.\",\n input: ProabonoBillCustomerInput,\n output: ProabonoBillCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,EAC5K,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/bill-customer.d.ts
|
|
4
|
+
declare const ProabonoBillCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const ProabonoBillCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const proabonoBillCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { proabonoBillCustomer };
|
|
9
|
+
//# sourceMappingURL=bill-customer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bill-customer.d.cts","names":[],"sources":["../../src/actions/bill-customer.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEU;AAAA,cACvC,0BAAA,EAA4B,CAAA,CAAE,UAOqB;AAAA,cAEnD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/bill-customer.d.ts
|
|
4
|
+
declare const ProabonoBillCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const ProabonoBillCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const proabonoBillCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { proabonoBillCustomer };
|
|
9
|
+
//# sourceMappingURL=bill-customer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bill-customer.d.mts","names":[],"sources":["../../src/actions/bill-customer.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEU;AAAA,cACvC,0BAAA,EAA4B,CAAA,CAAE,UAOqB;AAAA,cAEnD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const proabonoBillCustomer = action("PROABONO_BILL_CUSTOMER", {
|
|
4
|
+
slug: "proabono-bill-customer",
|
|
5
|
+
name: "Bill Customer",
|
|
6
|
+
description: "Tool to trigger billing for a customer. Use when you need to create invoices for pending charges for a specific customer.",
|
|
7
|
+
input: z.object({ ReferenceCustomer: z.string().describe("The unique reference of the customer to bill. This identifier is used to trigger billing and create invoices for pending charges.") }).describe("Request model for billing a customer."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
Amount: z.number().describe("Total amount billed").nullable().optional(),
|
|
10
|
+
message: z.string().describe("Additional message or details about the billing operation").nullable().optional(),
|
|
11
|
+
success: z.boolean().describe("Indicates whether the billing operation was successful").nullable().optional(),
|
|
12
|
+
InvoiceId: z.string().describe("Identifier of the invoice generated").nullable().optional(),
|
|
13
|
+
BillingDate: z.string().describe("Date when the billing was processed").nullable().optional(),
|
|
14
|
+
ReferenceCustomer: z.string().describe("Reference of the customer that was billed").nullable().optional()
|
|
15
|
+
}).describe("Response model returned after billing a customer.")
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { proabonoBillCustomer };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=bill-customer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bill-customer.mjs","names":[],"sources":["../../src/actions/bill-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ProabonoBillCustomerInput: z.ZodTypeAny = z.object({\n ReferenceCustomer: z.string().describe(\"The unique reference of the customer to bill. This identifier is used to trigger billing and create invoices for pending charges.\"),\n}).describe(\"Request model for billing a customer.\");\nexport const ProabonoBillCustomerOutput: z.ZodTypeAny = z.object({\n Amount: z.number().describe(\"Total amount billed\").nullable().optional(),\n message: z.string().describe(\"Additional message or details about the billing operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the billing operation was successful\").nullable().optional(),\n InvoiceId: z.string().describe(\"Identifier of the invoice generated\").nullable().optional(),\n BillingDate: z.string().describe(\"Date when the billing was processed\").nullable().optional(),\n ReferenceCustomer: z.string().describe(\"Reference of the customer that was billed\").nullable().optional(),\n}).describe(\"Response model returned after billing a customer.\");\n\nexport const proabonoBillCustomer = action(\"PROABONO_BILL_CUSTOMER\", {\n slug: \"proabono-bill-customer\",\n name: \"Bill Customer\",\n description: \"Tool to trigger billing for a customer. Use when you need to create invoices for pending charges for a specific customer.\",\n input: ProabonoBillCustomerInput,\n output: ProabonoBillCustomerOutput,\n});\n"],"mappings":";;AAgBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqD,EAAE,OAAO,EAC9D,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,EAC5K,CAAC,CAAC,CAAC,SAAS,uCAcH;CACP,QAdsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-customer.ts
|
|
4
|
+
const ProabonoCreateCustomerInput = zod.z.object({
|
|
5
|
+
Name: zod.z.string().describe("Display Name of your customer").optional(),
|
|
6
|
+
Email: zod.z.string().describe("Email of your customer"),
|
|
7
|
+
Language: zod.z.string().describe("Language of your customer. By Default, ProAbono will use the language of the segment").optional(),
|
|
8
|
+
Metadata: zod.z.object({}).describe("Custom key-value metadata for the customer (max 5 pairs, 50-char keys, 450-char values)").optional(),
|
|
9
|
+
IdBusiness: zod.z.number().int().describe("Id of your Business"),
|
|
10
|
+
ReferenceSegment: zod.z.string().describe("Reference of the segment in which the customer will be created. Required only if you have more than 1 segment").optional(),
|
|
11
|
+
ReferenceCustomer: zod.z.string().describe("Reference of your customer shared with your application and ProAbono. Use your own id/reference user").optional(),
|
|
12
|
+
ReferenceAffiliation: zod.z.string().describe("Reference of the affiliate").optional()
|
|
13
|
+
});
|
|
14
|
+
const ProabonoCreateCustomer_LinkSchema = zod.z.object({
|
|
15
|
+
rel: zod.z.string().describe("Relationship type of the link").nullable().optional(),
|
|
16
|
+
href: zod.z.string().describe("URL of the related resource").nullable().optional(),
|
|
17
|
+
query: zod.z.string().describe("Query parameter for the related resource").nullable().optional()
|
|
18
|
+
}).describe("Related resource link.");
|
|
19
|
+
const ProabonoCreateCustomerOutput = zod.z.object({
|
|
20
|
+
Id: zod.z.number().int().describe("Unique identifier of the created Customer object").nullable().optional(),
|
|
21
|
+
Name: zod.z.string().describe("Display name of the customer").nullable().optional(),
|
|
22
|
+
Email: zod.z.string().describe("Customer's email address").nullable().optional(),
|
|
23
|
+
Links: zod.z.array(ProabonoCreateCustomer_LinkSchema).describe("Collection of related resource links with rel/href properties").nullable().optional(),
|
|
24
|
+
Status: zod.z.string().describe("Functional state indicating external perspective of customer condition").nullable().optional(),
|
|
25
|
+
Currency: zod.z.string().describe("Currency code for the customer").nullable().optional(),
|
|
26
|
+
Language: zod.z.string().describe("Customer's language preference (ISO 639-1 code)").nullable().optional(),
|
|
27
|
+
Metadata: zod.z.object({}).describe("Optional key-value pairs (max 5 pairs, 50-char keys, 450-char values)").nullable().optional(),
|
|
28
|
+
IdSegment: zod.z.number().int().describe("Associated segment identifier").nullable().optional(),
|
|
29
|
+
DateUpdate: zod.z.string().describe("Most recent modification timestamp in UTC/ISO 8601 format").nullable().optional(),
|
|
30
|
+
IdBusiness: zod.z.number().int().describe("Associated business identifier").nullable().optional(),
|
|
31
|
+
DateCreation: zod.z.string().describe("Creation timestamp in UTC/ISO 8601 format").nullable().optional(),
|
|
32
|
+
IdUserUpdate: zod.z.number().int().describe("User ID who last modified the customer record").nullable().optional(),
|
|
33
|
+
StateCustomer: zod.z.string().describe("Technical state reflecting functional status and lifecycle information").nullable().optional(),
|
|
34
|
+
IdUserCreation: zod.z.number().int().describe("User ID who initially created the customer").nullable().optional(),
|
|
35
|
+
ReferenceSegment: zod.z.string().describe("Reference of the segment the customer belongs to").nullable().optional(),
|
|
36
|
+
ReferenceCustomer: zod.z.string().describe("Shared reference key between ProAbono and your application").nullable().optional()
|
|
37
|
+
});
|
|
38
|
+
const proabonoCreateCustomer = require_action.action("PROABONO_CREATE_CUSTOMER", {
|
|
39
|
+
slug: "proabono-create-customer",
|
|
40
|
+
name: "Create Customer",
|
|
41
|
+
description: "Tool to create or declare a customer in ProAbono via the Backoffice API. Use when you need to register a new customer with billing and subscription management capabilities.",
|
|
42
|
+
input: ProabonoCreateCustomerInput,
|
|
43
|
+
output: ProabonoCreateCustomerOutput
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
exports.proabonoCreateCustomer = proabonoCreateCustomer;
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=create-customer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer.cjs","names":["z","action"],"sources":["../../src/actions/create-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ProabonoCreateCustomerInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"Display Name of your customer\").optional(),\n Email: z.string().describe(\"Email of your customer\"),\n Language: z.string().describe(\"Language of your customer. By Default, ProAbono will use the language of the segment\").optional(),\n Metadata: z.object({}).describe(\"Custom key-value metadata for the customer (max 5 pairs, 50-char keys, 450-char values)\").optional(),\n IdBusiness: z.number().int().describe(\"Id of your Business\"),\n ReferenceSegment: z.string().describe(\"Reference of the segment in which the customer will be created. Required only if you have more than 1 segment\").optional(),\n ReferenceCustomer: z.string().describe(\"Reference of your customer shared with your application and ProAbono. Use your own id/reference user\").optional(),\n ReferenceAffiliation: z.string().describe(\"Reference of the affiliate\").optional(),\n});\nconst ProabonoCreateCustomer_LinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"Relationship type of the link\").nullable().optional(),\n href: z.string().describe(\"URL of the related resource\").nullable().optional(),\n query: z.string().describe(\"Query parameter for the related resource\").nullable().optional(),\n}).describe(\"Related resource link.\");\nexport const ProabonoCreateCustomerOutput: z.ZodTypeAny = z.object({\n Id: z.number().int().describe(\"Unique identifier of the created Customer object\").nullable().optional(),\n Name: z.string().describe(\"Display name of the customer\").nullable().optional(),\n Email: z.string().describe(\"Customer's email address\").nullable().optional(),\n Links: z.array(ProabonoCreateCustomer_LinkSchema).describe(\"Collection of related resource links with rel/href properties\").nullable().optional(),\n Status: z.string().describe(\"Functional state indicating external perspective of customer condition\").nullable().optional(),\n Currency: z.string().describe(\"Currency code for the customer\").nullable().optional(),\n Language: z.string().describe(\"Customer's language preference (ISO 639-1 code)\").nullable().optional(),\n Metadata: z.object({}).describe(\"Optional key-value pairs (max 5 pairs, 50-char keys, 450-char values)\").nullable().optional(),\n IdSegment: z.number().int().describe(\"Associated segment identifier\").nullable().optional(),\n DateUpdate: z.string().describe(\"Most recent modification timestamp in UTC/ISO 8601 format\").nullable().optional(),\n IdBusiness: z.number().int().describe(\"Associated business identifier\").nullable().optional(),\n DateCreation: z.string().describe(\"Creation timestamp in UTC/ISO 8601 format\").nullable().optional(),\n IdUserUpdate: z.number().int().describe(\"User ID who last modified the customer record\").nullable().optional(),\n StateCustomer: z.string().describe(\"Technical state reflecting functional status and lifecycle information\").nullable().optional(),\n IdUserCreation: z.number().int().describe(\"User ID who initially created the customer\").nullable().optional(),\n ReferenceSegment: z.string().describe(\"Reference of the segment the customer belongs to\").nullable().optional(),\n ReferenceCustomer: z.string().describe(\"Shared reference key between ProAbono and your application\").nullable().optional(),\n});\n\nexport const proabonoCreateCustomer = action(\"PROABONO_CREATE_CUSTOMER\", {\n slug: \"proabono-create-customer\",\n name: \"Create Customer\",\n description: \"Tool to create or declare a customer in ProAbono via the Backoffice API. Use when you need to register a new customer with billing and subscription management capabilities.\",\n input: ProabonoCreateCustomerInput,\n output: ProabonoCreateCustomerOutput,\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-customer.d.ts
|
|
4
|
+
declare const ProabonoCreateCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const ProabonoCreateCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const proabonoCreateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { proabonoCreateCustomer };
|
|
9
|
+
//# sourceMappingURL=create-customer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer.d.cts","names":[],"sources":["../../src/actions/create-customer.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAS1C;AAAA,cAMW,4BAAA,EAA8B,CAAA,CAAE,UAkB3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-customer.d.ts
|
|
4
|
+
declare const ProabonoCreateCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const ProabonoCreateCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const proabonoCreateCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { proabonoCreateCustomer };
|
|
9
|
+
//# sourceMappingURL=create-customer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer.d.mts","names":[],"sources":["../../src/actions/create-customer.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAS1C;AAAA,cAMW,4BAAA,EAA8B,CAAA,CAAE,UAkB3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-customer.ts
|
|
4
|
+
const ProabonoCreateCustomerInput = z.object({
|
|
5
|
+
Name: z.string().describe("Display Name of your customer").optional(),
|
|
6
|
+
Email: z.string().describe("Email of your customer"),
|
|
7
|
+
Language: z.string().describe("Language of your customer. By Default, ProAbono will use the language of the segment").optional(),
|
|
8
|
+
Metadata: z.object({}).describe("Custom key-value metadata for the customer (max 5 pairs, 50-char keys, 450-char values)").optional(),
|
|
9
|
+
IdBusiness: z.number().int().describe("Id of your Business"),
|
|
10
|
+
ReferenceSegment: z.string().describe("Reference of the segment in which the customer will be created. Required only if you have more than 1 segment").optional(),
|
|
11
|
+
ReferenceCustomer: z.string().describe("Reference of your customer shared with your application and ProAbono. Use your own id/reference user").optional(),
|
|
12
|
+
ReferenceAffiliation: z.string().describe("Reference of the affiliate").optional()
|
|
13
|
+
});
|
|
14
|
+
const ProabonoCreateCustomer_LinkSchema = z.object({
|
|
15
|
+
rel: z.string().describe("Relationship type of the link").nullable().optional(),
|
|
16
|
+
href: z.string().describe("URL of the related resource").nullable().optional(),
|
|
17
|
+
query: z.string().describe("Query parameter for the related resource").nullable().optional()
|
|
18
|
+
}).describe("Related resource link.");
|
|
19
|
+
const proabonoCreateCustomer = action("PROABONO_CREATE_CUSTOMER", {
|
|
20
|
+
slug: "proabono-create-customer",
|
|
21
|
+
name: "Create Customer",
|
|
22
|
+
description: "Tool to create or declare a customer in ProAbono via the Backoffice API. Use when you need to register a new customer with billing and subscription management capabilities.",
|
|
23
|
+
input: ProabonoCreateCustomerInput,
|
|
24
|
+
output: z.object({
|
|
25
|
+
Id: z.number().int().describe("Unique identifier of the created Customer object").nullable().optional(),
|
|
26
|
+
Name: z.string().describe("Display name of the customer").nullable().optional(),
|
|
27
|
+
Email: z.string().describe("Customer's email address").nullable().optional(),
|
|
28
|
+
Links: z.array(ProabonoCreateCustomer_LinkSchema).describe("Collection of related resource links with rel/href properties").nullable().optional(),
|
|
29
|
+
Status: z.string().describe("Functional state indicating external perspective of customer condition").nullable().optional(),
|
|
30
|
+
Currency: z.string().describe("Currency code for the customer").nullable().optional(),
|
|
31
|
+
Language: z.string().describe("Customer's language preference (ISO 639-1 code)").nullable().optional(),
|
|
32
|
+
Metadata: z.object({}).describe("Optional key-value pairs (max 5 pairs, 50-char keys, 450-char values)").nullable().optional(),
|
|
33
|
+
IdSegment: z.number().int().describe("Associated segment identifier").nullable().optional(),
|
|
34
|
+
DateUpdate: z.string().describe("Most recent modification timestamp in UTC/ISO 8601 format").nullable().optional(),
|
|
35
|
+
IdBusiness: z.number().int().describe("Associated business identifier").nullable().optional(),
|
|
36
|
+
DateCreation: z.string().describe("Creation timestamp in UTC/ISO 8601 format").nullable().optional(),
|
|
37
|
+
IdUserUpdate: z.number().int().describe("User ID who last modified the customer record").nullable().optional(),
|
|
38
|
+
StateCustomer: z.string().describe("Technical state reflecting functional status and lifecycle information").nullable().optional(),
|
|
39
|
+
IdUserCreation: z.number().int().describe("User ID who initially created the customer").nullable().optional(),
|
|
40
|
+
ReferenceSegment: z.string().describe("Reference of the segment the customer belongs to").nullable().optional(),
|
|
41
|
+
ReferenceCustomer: z.string().describe("Shared reference key between ProAbono and your application").nullable().optional()
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { proabonoCreateCustomer };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=create-customer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-customer.mjs","names":[],"sources":["../../src/actions/create-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ProabonoCreateCustomerInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"Display Name of your customer\").optional(),\n Email: z.string().describe(\"Email of your customer\"),\n Language: z.string().describe(\"Language of your customer. By Default, ProAbono will use the language of the segment\").optional(),\n Metadata: z.object({}).describe(\"Custom key-value metadata for the customer (max 5 pairs, 50-char keys, 450-char values)\").optional(),\n IdBusiness: z.number().int().describe(\"Id of your Business\"),\n ReferenceSegment: z.string().describe(\"Reference of the segment in which the customer will be created. Required only if you have more than 1 segment\").optional(),\n ReferenceCustomer: z.string().describe(\"Reference of your customer shared with your application and ProAbono. Use your own id/reference user\").optional(),\n ReferenceAffiliation: z.string().describe(\"Reference of the affiliate\").optional(),\n});\nconst ProabonoCreateCustomer_LinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"Relationship type of the link\").nullable().optional(),\n href: z.string().describe(\"URL of the related resource\").nullable().optional(),\n query: z.string().describe(\"Query parameter for the related resource\").nullable().optional(),\n}).describe(\"Related resource link.\");\nexport const ProabonoCreateCustomerOutput: z.ZodTypeAny = z.object({\n Id: z.number().int().describe(\"Unique identifier of the created Customer object\").nullable().optional(),\n Name: z.string().describe(\"Display name of the customer\").nullable().optional(),\n Email: z.string().describe(\"Customer's email address\").nullable().optional(),\n Links: z.array(ProabonoCreateCustomer_LinkSchema).describe(\"Collection of related resource links with rel/href properties\").nullable().optional(),\n Status: z.string().describe(\"Functional state indicating external perspective of customer condition\").nullable().optional(),\n Currency: z.string().describe(\"Currency code for the customer\").nullable().optional(),\n Language: z.string().describe(\"Customer's language preference (ISO 639-1 code)\").nullable().optional(),\n Metadata: z.object({}).describe(\"Optional key-value pairs (max 5 pairs, 50-char keys, 450-char values)\").nullable().optional(),\n IdSegment: z.number().int().describe(\"Associated segment identifier\").nullable().optional(),\n DateUpdate: z.string().describe(\"Most recent modification timestamp in UTC/ISO 8601 format\").nullable().optional(),\n IdBusiness: z.number().int().describe(\"Associated business identifier\").nullable().optional(),\n DateCreation: z.string().describe(\"Creation timestamp in UTC/ISO 8601 format\").nullable().optional(),\n IdUserUpdate: z.number().int().describe(\"User ID who last modified the customer record\").nullable().optional(),\n StateCustomer: z.string().describe(\"Technical state reflecting functional status and lifecycle information\").nullable().optional(),\n IdUserCreation: z.number().int().describe(\"User ID who initially created the customer\").nullable().optional(),\n ReferenceSegment: z.string().describe(\"Reference of the segment the customer belongs to\").nullable().optional(),\n ReferenceCustomer: z.string().describe(\"Shared reference key between ProAbono and your application\").nullable().optional(),\n});\n\nexport const proabonoCreateCustomer = action(\"PROABONO_CREATE_CUSTOMER\", {\n slug: \"proabono-create-customer\",\n name: \"Create Customer\",\n description: \"Tool to create or declare a customer in ProAbono via the Backoffice API. Use when you need to register a new customer with billing and subscription management capabilities.\",\n input: ProabonoCreateCustomerInput,\n output: ProabonoCreateCustomerOutput,\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-feature.ts
|
|
4
|
+
const ProabonoCreateFeatureInput = zod.z.object({
|
|
5
|
+
Name: zod.z.string().describe("The feature name displayed to users"),
|
|
6
|
+
Order: zod.z.number().int().describe("Display position among other features (lower numbers appear first)").optional(),
|
|
7
|
+
IsVisible: zod.z.boolean().describe("Whether to show this feature in offers and hosted pages").optional(),
|
|
8
|
+
IdBusiness: zod.z.number().int().describe("Your Business identifier"),
|
|
9
|
+
TypeFeature: zod.z.enum([
|
|
10
|
+
"OnOff",
|
|
11
|
+
"Limitation",
|
|
12
|
+
"Consumption"
|
|
13
|
+
]).describe("Feature type: OnOff (boolean feature), Limitation (quota/limit), or Consumption (metered usage)"),
|
|
14
|
+
ReferenceFeature: zod.z.string().describe("Shared key between ProAbono and your system for identifying this feature").optional()
|
|
15
|
+
}).describe("Request model for creating a new feature in ProAbono.");
|
|
16
|
+
const ProabonoCreateFeature_LinkSchema = zod.z.object({
|
|
17
|
+
rel: zod.z.string().describe("Link relation type").nullable().optional(),
|
|
18
|
+
href: zod.z.string().describe("Link URL").nullable().optional()
|
|
19
|
+
}).describe("Navigation link model.");
|
|
20
|
+
const ProabonoCreateFeatureOutput = zod.z.object({
|
|
21
|
+
Id: zod.z.number().int().describe("Feature identifier").nullable().optional(),
|
|
22
|
+
Name: zod.z.string().describe("Feature name").nullable().optional(),
|
|
23
|
+
Links: zod.z.array(ProabonoCreateFeature_LinkSchema).describe("Related resource links").nullable().optional(),
|
|
24
|
+
Order: zod.z.number().int().describe("Display position among features").nullable().optional(),
|
|
25
|
+
IsVisible: zod.z.boolean().describe("Visibility in offers and hosted pages").nullable().optional(),
|
|
26
|
+
StateLife: zod.z.string().describe("Feature lifecycle state").nullable().optional(),
|
|
27
|
+
DateUpdate: zod.z.string().describe("Last modification timestamp").nullable().optional(),
|
|
28
|
+
IdBusiness: zod.z.number().int().describe("Associated business ID").nullable().optional(),
|
|
29
|
+
TypeFeature: zod.z.string().describe("Feature type (OnOff, Limitation, or Consumption)").nullable().optional(),
|
|
30
|
+
DateCreation: zod.z.string().describe("Creation timestamp").nullable().optional(),
|
|
31
|
+
IdUserUpdate: zod.z.number().int().describe("User ID who last modified the feature").nullable().optional(),
|
|
32
|
+
IdUserCreation: zod.z.number().int().describe("User ID who created the feature").nullable().optional(),
|
|
33
|
+
ReferenceFeature: zod.z.string().describe("Shared key between ProAbono and your application").nullable().optional()
|
|
34
|
+
}).describe("Response model for created feature.");
|
|
35
|
+
const proabonoCreateFeature = require_action.action("PROABONO_CREATE_FEATURE", {
|
|
36
|
+
slug: "proabono-create-feature",
|
|
37
|
+
name: "Create Feature",
|
|
38
|
+
description: "Tool to create a new feature in ProAbono via the Backoffice API. Features define capabilities or usage limits that can be attached to offers. Use when you need to define a new feature (OnOff, Limitation, or Consumption type) for your subscription plans.",
|
|
39
|
+
input: ProabonoCreateFeatureInput,
|
|
40
|
+
output: ProabonoCreateFeatureOutput
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.proabonoCreateFeature = proabonoCreateFeature;
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=create-feature.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-feature.cjs","names":["z","action"],"sources":["../../src/actions/create-feature.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ProabonoCreateFeatureInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The feature name displayed to users\"),\n Order: z.number().int().describe(\"Display position among other features (lower numbers appear first)\").optional(),\n IsVisible: z.boolean().describe(\"Whether to show this feature in offers and hosted pages\").optional(),\n IdBusiness: z.number().int().describe(\"Your Business identifier\"),\n TypeFeature: z.enum([\"OnOff\", \"Limitation\", \"Consumption\"]).describe(\"Feature type: OnOff (boolean feature), Limitation (quota/limit), or Consumption (metered usage)\"),\n ReferenceFeature: z.string().describe(\"Shared key between ProAbono and your system for identifying this feature\").optional(),\n}).describe(\"Request model for creating a new feature in ProAbono.\");\nconst ProabonoCreateFeature_LinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"Link relation type\").nullable().optional(),\n href: z.string().describe(\"Link URL\").nullable().optional(),\n}).describe(\"Navigation link model.\");\nexport const ProabonoCreateFeatureOutput: z.ZodTypeAny = z.object({\n Id: z.number().int().describe(\"Feature identifier\").nullable().optional(),\n Name: z.string().describe(\"Feature name\").nullable().optional(),\n Links: z.array(ProabonoCreateFeature_LinkSchema).describe(\"Related resource links\").nullable().optional(),\n Order: z.number().int().describe(\"Display position among features\").nullable().optional(),\n IsVisible: z.boolean().describe(\"Visibility in offers and hosted pages\").nullable().optional(),\n StateLife: z.string().describe(\"Feature lifecycle state\").nullable().optional(),\n DateUpdate: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n IdBusiness: z.number().int().describe(\"Associated business ID\").nullable().optional(),\n TypeFeature: z.string().describe(\"Feature type (OnOff, Limitation, or Consumption)\").nullable().optional(),\n DateCreation: z.string().describe(\"Creation timestamp\").nullable().optional(),\n IdUserUpdate: z.number().int().describe(\"User ID who last modified the feature\").nullable().optional(),\n IdUserCreation: z.number().int().describe(\"User ID who created the feature\").nullable().optional(),\n ReferenceFeature: z.string().describe(\"Shared key between ProAbono and your application\").nullable().optional(),\n}).describe(\"Response model for created feature.\");\n\nexport const proabonoCreateFeature = action(\"PROABONO_CREATE_FEATURE\", {\n slug: \"proabono-create-feature\",\n name: \"Create Feature\",\n description: \"Tool to create a new feature in ProAbono via the Backoffice API. Features define capabilities or usage limits that can be attached to offers. Use when you need to define a new feature (OnOff, Limitation, or Consumption type) for your subscription plans.\",\n input: ProabonoCreateFeatureInput,\n output: ProabonoCreateFeatureOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CAChE,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;CAAa,CAAC,CAAC,CAAC,SAAS,iGAAiG;CACtK,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5D,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpC,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAEjD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-feature.d.ts
|
|
4
|
+
declare const ProabonoCreateFeatureInput: z.ZodTypeAny;
|
|
5
|
+
declare const ProabonoCreateFeatureOutput: z.ZodTypeAny;
|
|
6
|
+
declare const proabonoCreateFeature: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { proabonoCreateFeature };
|
|
9
|
+
//# sourceMappingURL=create-feature.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-feature.d.cts","names":[],"sources":["../../src/actions/create-feature.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAOyB;AAAA,cAKvD,2BAAA,EAA6B,CAAA,CAAE,UAcM;AAAA,cAErC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-feature.d.ts
|
|
4
|
+
declare const ProabonoCreateFeatureInput: z.ZodTypeAny;
|
|
5
|
+
declare const ProabonoCreateFeatureOutput: z.ZodTypeAny;
|
|
6
|
+
declare const proabonoCreateFeature: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { proabonoCreateFeature };
|
|
9
|
+
//# sourceMappingURL=create-feature.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-feature.d.mts","names":[],"sources":["../../src/actions/create-feature.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAOyB;AAAA,cAKvD,2BAAA,EAA6B,CAAA,CAAE,UAcM;AAAA,cAErC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-feature.ts
|
|
4
|
+
const ProabonoCreateFeatureInput = z.object({
|
|
5
|
+
Name: z.string().describe("The feature name displayed to users"),
|
|
6
|
+
Order: z.number().int().describe("Display position among other features (lower numbers appear first)").optional(),
|
|
7
|
+
IsVisible: z.boolean().describe("Whether to show this feature in offers and hosted pages").optional(),
|
|
8
|
+
IdBusiness: z.number().int().describe("Your Business identifier"),
|
|
9
|
+
TypeFeature: z.enum([
|
|
10
|
+
"OnOff",
|
|
11
|
+
"Limitation",
|
|
12
|
+
"Consumption"
|
|
13
|
+
]).describe("Feature type: OnOff (boolean feature), Limitation (quota/limit), or Consumption (metered usage)"),
|
|
14
|
+
ReferenceFeature: z.string().describe("Shared key between ProAbono and your system for identifying this feature").optional()
|
|
15
|
+
}).describe("Request model for creating a new feature in ProAbono.");
|
|
16
|
+
const ProabonoCreateFeature_LinkSchema = z.object({
|
|
17
|
+
rel: z.string().describe("Link relation type").nullable().optional(),
|
|
18
|
+
href: z.string().describe("Link URL").nullable().optional()
|
|
19
|
+
}).describe("Navigation link model.");
|
|
20
|
+
const proabonoCreateFeature = action("PROABONO_CREATE_FEATURE", {
|
|
21
|
+
slug: "proabono-create-feature",
|
|
22
|
+
name: "Create Feature",
|
|
23
|
+
description: "Tool to create a new feature in ProAbono via the Backoffice API. Features define capabilities or usage limits that can be attached to offers. Use when you need to define a new feature (OnOff, Limitation, or Consumption type) for your subscription plans.",
|
|
24
|
+
input: ProabonoCreateFeatureInput,
|
|
25
|
+
output: z.object({
|
|
26
|
+
Id: z.number().int().describe("Feature identifier").nullable().optional(),
|
|
27
|
+
Name: z.string().describe("Feature name").nullable().optional(),
|
|
28
|
+
Links: z.array(ProabonoCreateFeature_LinkSchema).describe("Related resource links").nullable().optional(),
|
|
29
|
+
Order: z.number().int().describe("Display position among features").nullable().optional(),
|
|
30
|
+
IsVisible: z.boolean().describe("Visibility in offers and hosted pages").nullable().optional(),
|
|
31
|
+
StateLife: z.string().describe("Feature lifecycle state").nullable().optional(),
|
|
32
|
+
DateUpdate: z.string().describe("Last modification timestamp").nullable().optional(),
|
|
33
|
+
IdBusiness: z.number().int().describe("Associated business ID").nullable().optional(),
|
|
34
|
+
TypeFeature: z.string().describe("Feature type (OnOff, Limitation, or Consumption)").nullable().optional(),
|
|
35
|
+
DateCreation: z.string().describe("Creation timestamp").nullable().optional(),
|
|
36
|
+
IdUserUpdate: z.number().int().describe("User ID who last modified the feature").nullable().optional(),
|
|
37
|
+
IdUserCreation: z.number().int().describe("User ID who created the feature").nullable().optional(),
|
|
38
|
+
ReferenceFeature: z.string().describe("Shared key between ProAbono and your application").nullable().optional()
|
|
39
|
+
}).describe("Response model for created feature.")
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { proabonoCreateFeature };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=create-feature.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-feature.mjs","names":[],"sources":["../../src/actions/create-feature.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ProabonoCreateFeatureInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The feature name displayed to users\"),\n Order: z.number().int().describe(\"Display position among other features (lower numbers appear first)\").optional(),\n IsVisible: z.boolean().describe(\"Whether to show this feature in offers and hosted pages\").optional(),\n IdBusiness: z.number().int().describe(\"Your Business identifier\"),\n TypeFeature: z.enum([\"OnOff\", \"Limitation\", \"Consumption\"]).describe(\"Feature type: OnOff (boolean feature), Limitation (quota/limit), or Consumption (metered usage)\"),\n ReferenceFeature: z.string().describe(\"Shared key between ProAbono and your system for identifying this feature\").optional(),\n}).describe(\"Request model for creating a new feature in ProAbono.\");\nconst ProabonoCreateFeature_LinkSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"Link relation type\").nullable().optional(),\n href: z.string().describe(\"Link URL\").nullable().optional(),\n}).describe(\"Navigation link model.\");\nexport const ProabonoCreateFeatureOutput: z.ZodTypeAny = z.object({\n Id: z.number().int().describe(\"Feature identifier\").nullable().optional(),\n Name: z.string().describe(\"Feature name\").nullable().optional(),\n Links: z.array(ProabonoCreateFeature_LinkSchema).describe(\"Related resource links\").nullable().optional(),\n Order: z.number().int().describe(\"Display position among features\").nullable().optional(),\n IsVisible: z.boolean().describe(\"Visibility in offers and hosted pages\").nullable().optional(),\n StateLife: z.string().describe(\"Feature lifecycle state\").nullable().optional(),\n DateUpdate: z.string().describe(\"Last modification timestamp\").nullable().optional(),\n IdBusiness: z.number().int().describe(\"Associated business ID\").nullable().optional(),\n TypeFeature: z.string().describe(\"Feature type (OnOff, Limitation, or Consumption)\").nullable().optional(),\n DateCreation: z.string().describe(\"Creation timestamp\").nullable().optional(),\n IdUserUpdate: z.number().int().describe(\"User ID who last modified the feature\").nullable().optional(),\n IdUserCreation: z.number().int().describe(\"User ID who created the feature\").nullable().optional(),\n ReferenceFeature: z.string().describe(\"Shared key between ProAbono and your application\").nullable().optional(),\n}).describe(\"Response model for created feature.\");\n\nexport const proabonoCreateFeature = action(\"PROABONO_CREATE_FEATURE\", {\n slug: \"proabono-create-feature\",\n name: \"Create Feature\",\n description: \"Tool to create a new feature in ProAbono via the Backoffice API. Features define capabilities or usage limits that can be attached to offers. Use when you need to define a new feature (OnOff, Limitation, or Consumption type) for your subscription plans.\",\n input: ProabonoCreateFeatureInput,\n output: ProabonoCreateFeatureOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAChH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CAChE,aAAa,EAAE,KAAK;EAAC;EAAS;EAAc;CAAa,CAAC,CAAC,CAAC,SAAS,iGAAiG;CACtK,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,mCAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5D,CAAC,CAAC,CAAC,SAAS,wBAAwB;AAiBpC,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9D,OAAO,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
|