@keystrokehq/payhere 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-hook.cjs +1 -0
- package/dist/actions/create-hook.cjs.map +1 -1
- package/dist/actions/create-hook.d.cts +3 -5
- package/dist/actions/create-hook.d.cts.map +1 -1
- package/dist/actions/create-hook.d.mts +3 -5
- package/dist/actions/create-hook.d.mts.map +1 -1
- package/dist/actions/create-hook.mjs +1 -0
- package/dist/actions/create-hook.mjs.map +1 -1
- package/dist/actions/create-plan.cjs +1 -0
- package/dist/actions/create-plan.cjs.map +1 -1
- package/dist/actions/create-plan.d.cts +3 -19
- package/dist/actions/create-plan.d.cts.map +1 -1
- package/dist/actions/create-plan.d.mts +3 -19
- package/dist/actions/create-plan.d.mts.map +1 -1
- package/dist/actions/create-plan.mjs +1 -0
- package/dist/actions/create-plan.mjs.map +1 -1
- package/dist/actions/delete-hook.cjs +1 -0
- package/dist/actions/delete-hook.cjs.map +1 -1
- package/dist/actions/delete-hook.d.cts +3 -3
- package/dist/actions/delete-hook.d.cts.map +1 -1
- package/dist/actions/delete-hook.d.mts +3 -3
- package/dist/actions/delete-hook.d.mts.map +1 -1
- package/dist/actions/delete-hook.mjs +1 -0
- package/dist/actions/delete-hook.mjs.map +1 -1
- package/dist/actions/get-current-company-stats.cjs +1 -0
- package/dist/actions/get-current-company-stats.cjs.map +1 -1
- package/dist/actions/get-current-company-stats.d.cts +3 -1
- package/dist/actions/get-current-company-stats.d.cts.map +1 -1
- package/dist/actions/get-current-company-stats.d.mts +3 -1
- package/dist/actions/get-current-company-stats.d.mts.map +1 -1
- package/dist/actions/get-current-company-stats.mjs +1 -0
- package/dist/actions/get-current-company-stats.mjs.map +1 -1
- package/dist/actions/get-current-company.cjs +1 -0
- package/dist/actions/get-current-company.cjs.map +1 -1
- package/dist/actions/get-current-company.d.cts +3 -1
- package/dist/actions/get-current-company.d.cts.map +1 -1
- package/dist/actions/get-current-company.d.mts +3 -1
- package/dist/actions/get-current-company.d.mts.map +1 -1
- package/dist/actions/get-current-company.mjs +1 -0
- package/dist/actions/get-current-company.mjs.map +1 -1
- package/dist/actions/get-user.cjs +1 -0
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +3 -1
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +3 -1
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +1 -0
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +1 -0
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +3 -4
- package/dist/actions/list-customers.d.cts.map +1 -1
- package/dist/actions/list-customers.d.mts +3 -4
- package/dist/actions/list-customers.d.mts.map +1 -1
- package/dist/actions/list-customers.mjs +1 -0
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-hooks.cjs +1 -0
- package/dist/actions/list-hooks.cjs.map +1 -1
- package/dist/actions/list-hooks.d.cts +3 -1
- package/dist/actions/list-hooks.d.cts.map +1 -1
- package/dist/actions/list-hooks.d.mts +3 -1
- package/dist/actions/list-hooks.d.mts.map +1 -1
- package/dist/actions/list-hooks.mjs +1 -0
- package/dist/actions/list-hooks.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +1 -0
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +3 -4
- package/dist/actions/list-payments.d.cts.map +1 -1
- package/dist/actions/list-payments.d.mts +3 -4
- package/dist/actions/list-payments.d.mts.map +1 -1
- package/dist/actions/list-payments.mjs +1 -0
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +1 -0
- package/dist/actions/list-plans.cjs.map +1 -1
- package/dist/actions/list-plans.d.cts +3 -4
- package/dist/actions/list-plans.d.cts.map +1 -1
- package/dist/actions/list-plans.d.mts +3 -4
- package/dist/actions/list-plans.d.mts.map +1 -1
- package/dist/actions/list-plans.mjs +1 -0
- package/dist/actions/list-plans.mjs.map +1 -1
- package/dist/actions/list-subscriptions.cjs +1 -0
- package/dist/actions/list-subscriptions.cjs.map +1 -1
- package/dist/actions/list-subscriptions.d.cts +3 -4
- package/dist/actions/list-subscriptions.d.cts.map +1 -1
- package/dist/actions/list-subscriptions.d.mts +3 -4
- package/dist/actions/list-subscriptions.d.mts.map +1 -1
- package/dist/actions/list-subscriptions.mjs +1 -0
- package/dist/actions/list-subscriptions.mjs.map +1 -1
- package/dist/actions/update-current-company.cjs +1 -0
- package/dist/actions/update-current-company.cjs.map +1 -1
- package/dist/actions/update-current-company.d.cts +3 -14
- package/dist/actions/update-current-company.d.cts.map +1 -1
- package/dist/actions/update-current-company.d.mts +3 -14
- package/dist/actions/update-current-company.d.mts.map +1 -1
- package/dist/actions/update-current-company.mjs +1 -0
- package/dist/actions/update-current-company.mjs.map +1 -1
- package/dist/actions/update-plan.cjs +1 -0
- package/dist/actions/update-plan.cjs.map +1 -1
- package/dist/actions/update-plan.d.cts +3 -17
- package/dist/actions/update-plan.d.cts.map +1 -1
- package/dist/actions/update-plan.d.mts +3 -17
- package/dist/actions/update-plan.d.mts.map +1 -1
- package/dist/actions/update-plan.mjs +1 -0
- package/dist/actions/update-plan.mjs.map +1 -1
- package/dist/app.cjs +9 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +8 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +8 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +6 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-plans.mjs","names":[],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPlansInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of plans per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing plans with pagination support.\");\nconst PayhereListPlans_PlanItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the plan.\").nullable(),\n qty: z.number().int().describe(\"Available quantity if limited.\").nullable().optional(),\n name: z.string().describe(\"Name of the plan.\").nullable(),\n slug: z.string().describe(\"URL-friendly plan identifier.\").nullable(),\n type: z.string().describe(\"Plan type.\").nullable(),\n price: z.number().describe(\"Price in decimal format.\").nullable(),\n hidden: z.boolean().describe(\"Whether the plan is hidden from public view.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR).\").nullable(),\n show_qty: z.boolean().describe(\"Display quantity selector.\").nullable(),\n setup_fee: z.number().describe(\"One-time setup fee.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable(),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Description of the plan.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether plan has limited quantity.\").nullable(),\n success_url: z.string().describe(\"Redirect URL after successful payment.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL for notifications.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N cycles.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of payment (one-time or recurring).\").nullable(),\n receipt_text: z.string().describe(\"Custom receipt text.\").nullable().optional(),\n custom_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether setup fee is enabled.\").nullable(),\n price_in_cents: z.number().int().describe(\"Price in cents.\").nullable(),\n pay_button_text: z.string().describe(\"Custom text for payment button.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing cycle interval (day, week, month, year).\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Number of trial days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum number of billing cycles.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Allow user to select amount.\").nullable(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single plan object in the response.\");\nconst PayhereListPlans_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number or null if last page.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number or null if first page.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of plans.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for the response.\");\nexport const PayhereListPlansOutput = z.object({\n data: z.array(PayhereListPlans_PlanItemSchema).describe(\"Collection of plan objects.\"),\n meta: PayhereListPlans_PaginationMetaSchema.nullable(),\n}).passthrough().describe(\"Response model for listing plans.\");\n\nexport const payhereListPlans = action(\"PAYHERE_LIST_PLANS\", {\n slug: \"payhere-list-plans\",\n name: \"List Plans\",\n description: \"Tool to list all plans in your PayHere account. Use when you need to retrieve and paginate through available plans.\",\n input: PayhereListPlansInput,\n output: PayhereListPlansOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-plans.mjs","names":[],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereListPlansInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of plans per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing plans with pagination support.\");\nconst PayhereListPlans_PlanItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the plan.\").nullable(),\n qty: z.number().int().describe(\"Available quantity if limited.\").nullable().optional(),\n name: z.string().describe(\"Name of the plan.\").nullable(),\n slug: z.string().describe(\"URL-friendly plan identifier.\").nullable(),\n type: z.string().describe(\"Plan type.\").nullable(),\n price: z.number().describe(\"Price in decimal format.\").nullable(),\n hidden: z.boolean().describe(\"Whether the plan is hidden from public view.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR).\").nullable(),\n show_qty: z.boolean().describe(\"Display quantity selector.\").nullable(),\n setup_fee: z.number().describe(\"One-time setup fee.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable(),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Description of the plan.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether plan has limited quantity.\").nullable(),\n success_url: z.string().describe(\"Redirect URL after successful payment.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL for notifications.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N cycles.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of payment (one-time or recurring).\").nullable(),\n receipt_text: z.string().describe(\"Custom receipt text.\").nullable().optional(),\n custom_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether setup fee is enabled.\").nullable(),\n price_in_cents: z.number().int().describe(\"Price in cents.\").nullable(),\n pay_button_text: z.string().describe(\"Custom text for payment button.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing cycle interval (day, week, month, year).\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Number of trial days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum number of billing cycles.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Allow user to select amount.\").nullable(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single plan object in the response.\");\nconst PayhereListPlans_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number or null if last page.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number or null if first page.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of plans.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for the response.\");\nexport const PayhereListPlansOutput = z.object({\n data: z.array(PayhereListPlans_PlanItemSchema).describe(\"Collection of plan objects.\"),\n meta: PayhereListPlans_PaginationMetaSchema.nullable(),\n}).passthrough().describe(\"Response model for listing plans.\");\n\nexport const payhereListPlans: AppAction<\n typeof PayhereListPlansInput,\n typeof PayhereListPlansOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_LIST_PLANS\", {\n slug: \"payhere-list-plans\",\n name: \"List Plans\",\n description: \"Tool to list all plans in your PayHere account. Use when you need to retrieve and paginate through available plans.\",\n input: PayhereListPlansInput,\n output: PayhereListPlansOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,kCAAkC,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CA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AAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdoC,EAAE,OAAO;EAC7C,MAAM,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,6BAA6B;EACrF,MAAM,sCAAsC,SAAS;CACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-subscriptions.cjs","names":["z","action"],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListSubscriptionsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Defaults to 1 if not specified.\").optional(),\n per_page: z.number().int().describe(\"Number of records returned per page. Defaults to 20 if not specified. Maximum value is 100.\").optional(),\n});\nconst PayhereListSubscriptions_MembershipPlanSchema = z.object({\n id: z.number().int().describe(\"Membership plan identifier\").nullable(),\n name: z.string().describe(\"Membership plan name\").nullable().optional(),\n description: z.string().describe(\"Plan description\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_CustomerSchema = z.object({\n id: z.number().int().describe(\"Customer identifier\").nullable(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_SubscriptionSchema = z.object({\n id: z.number().int().describe(\"Subscription identifier\").nullable(),\n plan: PayhereListSubscriptions_MembershipPlanSchema.nullable().optional(),\n status: z.string().describe(\"Current state (e.g., 'active', 'canceled')\").nullable(),\n customer: PayhereListSubscriptions_CustomerSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data\").nullable().optional(),\n provider: z.string().describe(\"Payment processor name\").nullable(),\n created_at: z.string().describe(\"Record creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Last modification timestamp in ISO 8601 format\").nullable(),\n customer_id: z.number().int().describe(\"Associated customer ID\").nullable(),\n last_charged: z.string().describe(\"Most recent charge timestamp in ISO 8601 format\").nullable().optional(),\n next_charge_at: z.string().describe(\"Scheduled next billing date in ISO 8601 format\").nullable().optional(),\n stripe_plan_id: z.string().describe(\"External Stripe plan reference\").nullable().optional(),\n billing_interval: z.string().describe(\"Frequency unit (e.g., 'month', 'year')\").nullable(),\n membership_plan_id: z.number().int().describe(\"Associated plan ID\").nullable(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing periods\").nullable().optional(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between charges\").nullable(),\n stripe_subscription_id: z.string().describe(\"External Stripe subscription reference\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Following page or null\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page or null\").nullable().optional(),\n total_count: z.number().int().describe(\"Total subscription count\").nullable(),\n total_pages: z.number().int().describe(\"Total available pages\").nullable(),\n current_page: z.number().int().describe(\"Active page number\").nullable(),\n}).passthrough();\nexport const PayhereListSubscriptionsOutput = z.object({\n data: z.array(PayhereListSubscriptions_SubscriptionSchema).describe(\"Collection of subscription objects\"),\n meta: PayhereListSubscriptions_PaginationMetaSchema.nullable(),\n}).passthrough();\n\nexport const payhereListSubscriptions = action(\"PAYHERE_LIST_SUBSCRIPTIONS\", {\n slug: \"payhere-list-subscriptions\",\n name: \"List subscriptions\",\n description: \"Tool to list all subscriptions ordered chronologically by most recent payment first. Use when you need to retrieve subscription data with customer and plan details.\",\n input: PayhereListSubscriptionsInput,\n output: PayhereListSubscriptionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-subscriptions.cjs","names":["z","action"],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereListSubscriptionsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Defaults to 1 if not specified.\").optional(),\n per_page: z.number().int().describe(\"Number of records returned per page. Defaults to 20 if not specified. Maximum value is 100.\").optional(),\n});\nconst PayhereListSubscriptions_MembershipPlanSchema = z.object({\n id: z.number().int().describe(\"Membership plan identifier\").nullable(),\n name: z.string().describe(\"Membership plan name\").nullable().optional(),\n description: z.string().describe(\"Plan description\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_CustomerSchema = z.object({\n id: z.number().int().describe(\"Customer identifier\").nullable(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_SubscriptionSchema = z.object({\n id: z.number().int().describe(\"Subscription identifier\").nullable(),\n plan: PayhereListSubscriptions_MembershipPlanSchema.nullable().optional(),\n status: z.string().describe(\"Current state (e.g., 'active', 'canceled')\").nullable(),\n customer: PayhereListSubscriptions_CustomerSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data\").nullable().optional(),\n provider: z.string().describe(\"Payment processor name\").nullable(),\n created_at: z.string().describe(\"Record creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Last modification timestamp in ISO 8601 format\").nullable(),\n customer_id: z.number().int().describe(\"Associated customer ID\").nullable(),\n last_charged: z.string().describe(\"Most recent charge timestamp in ISO 8601 format\").nullable().optional(),\n next_charge_at: z.string().describe(\"Scheduled next billing date in ISO 8601 format\").nullable().optional(),\n stripe_plan_id: z.string().describe(\"External Stripe plan reference\").nullable().optional(),\n billing_interval: z.string().describe(\"Frequency unit (e.g., 'month', 'year')\").nullable(),\n membership_plan_id: z.number().int().describe(\"Associated plan ID\").nullable(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing periods\").nullable().optional(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between charges\").nullable(),\n stripe_subscription_id: z.string().describe(\"External Stripe subscription reference\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Following page or null\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page or null\").nullable().optional(),\n total_count: z.number().int().describe(\"Total subscription count\").nullable(),\n total_pages: z.number().int().describe(\"Total available pages\").nullable(),\n current_page: z.number().int().describe(\"Active page number\").nullable(),\n}).passthrough();\nexport const PayhereListSubscriptionsOutput = z.object({\n data: z.array(PayhereListSubscriptions_SubscriptionSchema).describe(\"Collection of subscription objects\"),\n meta: PayhereListSubscriptions_PaginationMetaSchema.nullable(),\n}).passthrough();\n\nexport const payhereListSubscriptions: AppAction<\n typeof PayhereListSubscriptionsInput,\n typeof PayhereListSubscriptionsOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_LIST_SUBSCRIPTIONS\", {\n slug: \"payhere-list-subscriptions\",\n name: \"List subscriptions\",\n description: \"Tool to list all subscriptions ordered chronologically by most recent payment first. Use when you need to retrieve subscription data with customer and plan details.\",\n input: PayhereListSubscriptionsInput,\n output: PayhereListSubscriptionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA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AAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,oCAAoC;CACxG,MAAM,8CAA8C,SAAS;AAC/D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { payhere } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-subscriptions.d.ts
|
|
@@ -41,10 +43,7 @@ declare const PayhereListSubscriptionsOutput: z.ZodObject<{
|
|
|
41
43
|
current_page: z.ZodNullable<z.ZodNumber>;
|
|
42
44
|
}, z.core.$loose>>;
|
|
43
45
|
}, z.core.$loose>;
|
|
44
|
-
declare const payhereListSubscriptions:
|
|
45
|
-
page?: number | undefined;
|
|
46
|
-
per_page?: number | undefined;
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
46
|
+
declare const payhereListSubscriptions: AppAction<typeof PayhereListSubscriptionsInput, typeof PayhereListSubscriptionsOutput, typeof payhere.credential>;
|
|
48
47
|
//#endregion
|
|
49
48
|
export { payhereListSubscriptions };
|
|
50
49
|
//# sourceMappingURL=list-subscriptions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-subscriptions.d.cts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-subscriptions.d.cts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { payhere } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-subscriptions.d.ts
|
|
@@ -41,10 +43,7 @@ declare const PayhereListSubscriptionsOutput: z.ZodObject<{
|
|
|
41
43
|
current_page: z.ZodNullable<z.ZodNumber>;
|
|
42
44
|
}, z.core.$loose>>;
|
|
43
45
|
}, z.core.$loose>;
|
|
44
|
-
declare const payhereListSubscriptions:
|
|
45
|
-
page?: number | undefined;
|
|
46
|
-
per_page?: number | undefined;
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
46
|
+
declare const payhereListSubscriptions: AppAction<typeof PayhereListSubscriptionsInput, typeof PayhereListSubscriptionsOutput, typeof payhere.credential>;
|
|
48
47
|
//#endregion
|
|
49
48
|
export { payhereListSubscriptions };
|
|
50
49
|
//# sourceMappingURL=list-subscriptions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-subscriptions.d.mts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-subscriptions.d.mts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-subscriptions.mjs","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListSubscriptionsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Defaults to 1 if not specified.\").optional(),\n per_page: z.number().int().describe(\"Number of records returned per page. Defaults to 20 if not specified. Maximum value is 100.\").optional(),\n});\nconst PayhereListSubscriptions_MembershipPlanSchema = z.object({\n id: z.number().int().describe(\"Membership plan identifier\").nullable(),\n name: z.string().describe(\"Membership plan name\").nullable().optional(),\n description: z.string().describe(\"Plan description\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_CustomerSchema = z.object({\n id: z.number().int().describe(\"Customer identifier\").nullable(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_SubscriptionSchema = z.object({\n id: z.number().int().describe(\"Subscription identifier\").nullable(),\n plan: PayhereListSubscriptions_MembershipPlanSchema.nullable().optional(),\n status: z.string().describe(\"Current state (e.g., 'active', 'canceled')\").nullable(),\n customer: PayhereListSubscriptions_CustomerSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data\").nullable().optional(),\n provider: z.string().describe(\"Payment processor name\").nullable(),\n created_at: z.string().describe(\"Record creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Last modification timestamp in ISO 8601 format\").nullable(),\n customer_id: z.number().int().describe(\"Associated customer ID\").nullable(),\n last_charged: z.string().describe(\"Most recent charge timestamp in ISO 8601 format\").nullable().optional(),\n next_charge_at: z.string().describe(\"Scheduled next billing date in ISO 8601 format\").nullable().optional(),\n stripe_plan_id: z.string().describe(\"External Stripe plan reference\").nullable().optional(),\n billing_interval: z.string().describe(\"Frequency unit (e.g., 'month', 'year')\").nullable(),\n membership_plan_id: z.number().int().describe(\"Associated plan ID\").nullable(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing periods\").nullable().optional(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between charges\").nullable(),\n stripe_subscription_id: z.string().describe(\"External Stripe subscription reference\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Following page or null\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page or null\").nullable().optional(),\n total_count: z.number().int().describe(\"Total subscription count\").nullable(),\n total_pages: z.number().int().describe(\"Total available pages\").nullable(),\n current_page: z.number().int().describe(\"Active page number\").nullable(),\n}).passthrough();\nexport const PayhereListSubscriptionsOutput = z.object({\n data: z.array(PayhereListSubscriptions_SubscriptionSchema).describe(\"Collection of subscription objects\"),\n meta: PayhereListSubscriptions_PaginationMetaSchema.nullable(),\n}).passthrough();\n\nexport const payhereListSubscriptions = action(\"PAYHERE_LIST_SUBSCRIPTIONS\", {\n slug: \"payhere-list-subscriptions\",\n name: \"List subscriptions\",\n description: \"Tool to list all subscriptions ordered chronologically by most recent payment first. Use when you need to retrieve subscription data with customer and plan details.\",\n input: PayhereListSubscriptionsInput,\n output: PayhereListSubscriptionsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-subscriptions.mjs","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereListSubscriptionsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Defaults to 1 if not specified.\").optional(),\n per_page: z.number().int().describe(\"Number of records returned per page. Defaults to 20 if not specified. Maximum value is 100.\").optional(),\n});\nconst PayhereListSubscriptions_MembershipPlanSchema = z.object({\n id: z.number().int().describe(\"Membership plan identifier\").nullable(),\n name: z.string().describe(\"Membership plan name\").nullable().optional(),\n description: z.string().describe(\"Plan description\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_CustomerSchema = z.object({\n id: z.number().int().describe(\"Customer identifier\").nullable(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_SubscriptionSchema = z.object({\n id: z.number().int().describe(\"Subscription identifier\").nullable(),\n plan: PayhereListSubscriptions_MembershipPlanSchema.nullable().optional(),\n status: z.string().describe(\"Current state (e.g., 'active', 'canceled')\").nullable(),\n customer: PayhereListSubscriptions_CustomerSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data\").nullable().optional(),\n provider: z.string().describe(\"Payment processor name\").nullable(),\n created_at: z.string().describe(\"Record creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Last modification timestamp in ISO 8601 format\").nullable(),\n customer_id: z.number().int().describe(\"Associated customer ID\").nullable(),\n last_charged: z.string().describe(\"Most recent charge timestamp in ISO 8601 format\").nullable().optional(),\n next_charge_at: z.string().describe(\"Scheduled next billing date in ISO 8601 format\").nullable().optional(),\n stripe_plan_id: z.string().describe(\"External Stripe plan reference\").nullable().optional(),\n billing_interval: z.string().describe(\"Frequency unit (e.g., 'month', 'year')\").nullable(),\n membership_plan_id: z.number().int().describe(\"Associated plan ID\").nullable(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing periods\").nullable().optional(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between charges\").nullable(),\n stripe_subscription_id: z.string().describe(\"External Stripe subscription reference\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Following page or null\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page or null\").nullable().optional(),\n total_count: z.number().int().describe(\"Total subscription count\").nullable(),\n total_pages: z.number().int().describe(\"Total available pages\").nullable(),\n current_page: z.number().int().describe(\"Active page number\").nullable(),\n}).passthrough();\nexport const PayhereListSubscriptionsOutput = z.object({\n data: z.array(PayhereListSubscriptions_SubscriptionSchema).describe(\"Collection of subscription objects\"),\n meta: PayhereListSubscriptions_PaginationMetaSchema.nullable(),\n}).passthrough();\n\nexport const payhereListSubscriptions: AppAction<\n typeof PayhereListSubscriptionsInput,\n typeof PayhereListSubscriptionsOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_LIST_SUBSCRIPTIONS\", {\n slug: \"payhere-list-subscriptions\",\n name: \"List subscriptions\",\n description: \"Tool to list all subscriptions ordered chronologically by most recent payment first. Use when you need to retrieve subscription data with customer and plan details.\",\n input: PayhereListSubscriptionsInput,\n output: PayhereListSubscriptionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAC9I,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,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C,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,2BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd4C,EAAE,OAAO;EACrD,MAAM,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,oCAAoC;EACxG,MAAM,8CAA8C,SAAS;CAC/D,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-current-company.cjs","names":["z","action"],"sources":["../../src/actions/update-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereUpdateCurrentCompanyInput = z.object({\n logo: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Logo image for the company.\").optional(),\n name: z.string().describe(\"Display name of the company\").optional(),\n address: z.string().describe(\"Company address for receipt display\").optional(),\n website: z.string().describe(\"Company website shown in receipts\").optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").optional(),\n button_text: z.string().describe(\"Text color: empty (auto), 'white', or 'black'\").optional(),\n button_color: z.string().describe(\"Hex color for pay button (e.g., #ff6600)\").optional(),\n support_email: z.string().describe(\"Support email displayed in receipts\").optional(),\n});\nconst PayhereUpdateCurrentCompany_CompanyUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n name: z.string().describe(\"User name\").nullable().optional(),\n role: z.string().describe(\"User role\").nullable().optional(),\n email: z.string().describe(\"User email address\").nullable().optional(),\n}).passthrough();\nexport const PayhereUpdateCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier\").nullable().optional(),\n name: z.string().describe(\"Display name of the company\").nullable().optional(),\n plan: z.string().describe(\"Current subscription plan\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly company identifier\").nullable().optional(),\n users: z.array(PayhereUpdateCurrentCompany_CompanyUserSchema).describe(\"Associated users with their details\").nullable().optional(),\n address: z.string().describe(\"Company address\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n currency: z.string().describe(\"Company currency\").nullable().optional(),\n vat_rate: z.number().describe(\"VAT rate percentage\").nullable().optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting\").nullable().optional(),\n button_color: z.string().describe(\"Hex color for pay button\").nullable().optional(),\n country_code: z.string().describe(\"Country code for the company\").nullable().optional(),\n custom_domain: z.string().describe(\"Custom domain if configured\").nullable().optional(),\n support_email: z.string().describe(\"Support email address\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription status\").nullable().optional(),\n}).passthrough();\n\nexport const payhereUpdateCurrentCompany = action(\"PAYHERE_UPDATE_CURRENT_COMPANY\", {\n slug: \"payhere-update-current-company\",\n name: \"Update Current Company\",\n description: \"Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences (button color and text color).\",\n input: PayhereUpdateCurrentCompanyInput,\n output: PayhereUpdateCurrentCompanyOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-current-company.cjs","names":["z","action"],"sources":["../../src/actions/update-current-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereUpdateCurrentCompanyInput = z.object({\n logo: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Logo image for the company.\").optional(),\n name: z.string().describe(\"Display name of the company\").optional(),\n address: z.string().describe(\"Company address for receipt display\").optional(),\n website: z.string().describe(\"Company website shown in receipts\").optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").optional(),\n button_text: z.string().describe(\"Text color: empty (auto), 'white', or 'black'\").optional(),\n button_color: z.string().describe(\"Hex color for pay button (e.g., #ff6600)\").optional(),\n support_email: z.string().describe(\"Support email displayed in receipts\").optional(),\n});\nconst PayhereUpdateCurrentCompany_CompanyUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n name: z.string().describe(\"User name\").nullable().optional(),\n role: z.string().describe(\"User role\").nullable().optional(),\n email: z.string().describe(\"User email address\").nullable().optional(),\n}).passthrough();\nexport const PayhereUpdateCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier\").nullable().optional(),\n name: z.string().describe(\"Display name of the company\").nullable().optional(),\n plan: z.string().describe(\"Current subscription plan\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly company identifier\").nullable().optional(),\n users: z.array(PayhereUpdateCurrentCompany_CompanyUserSchema).describe(\"Associated users with their details\").nullable().optional(),\n address: z.string().describe(\"Company address\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n currency: z.string().describe(\"Company currency\").nullable().optional(),\n vat_rate: z.number().describe(\"VAT rate percentage\").nullable().optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting\").nullable().optional(),\n button_color: z.string().describe(\"Hex color for pay button\").nullable().optional(),\n country_code: z.string().describe(\"Country code for the company\").nullable().optional(),\n custom_domain: z.string().describe(\"Custom domain if configured\").nullable().optional(),\n support_email: z.string().describe(\"Support email address\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription status\").nullable().optional(),\n}).passthrough();\n\nexport const payhereUpdateCurrentCompany: AppAction<\n typeof PayhereUpdateCurrentCompanyInput,\n typeof PayhereUpdateCurrentCompanyOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_UPDATE_CURRENT_COMPANY\", {\n slug: \"payhere-update-current-company\",\n name: \"Update Current Company\",\n description: \"Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences (button color and text color).\",\n input: PayhereUpdateCurrentCompanyInput,\n output: PayhereUpdateCurrentCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA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,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { payhere } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-current-company.d.ts
|
|
@@ -39,20 +41,7 @@ declare const PayhereUpdateCurrentCompanyOutput: z.ZodObject<{
|
|
|
39
41
|
vat_registered: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
42
|
subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const payhereUpdateCurrentCompany:
|
|
43
|
-
logo?: {
|
|
44
|
-
name: string;
|
|
45
|
-
s3key: string;
|
|
46
|
-
mimetype: string;
|
|
47
|
-
} | undefined;
|
|
48
|
-
name?: string | undefined;
|
|
49
|
-
address?: string | undefined;
|
|
50
|
-
website?: string | undefined;
|
|
51
|
-
legal_name?: string | undefined;
|
|
52
|
-
button_text?: string | undefined;
|
|
53
|
-
button_color?: string | undefined;
|
|
54
|
-
support_email?: string | undefined;
|
|
55
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
44
|
+
declare const payhereUpdateCurrentCompany: AppAction<typeof PayhereUpdateCurrentCompanyInput, typeof PayhereUpdateCurrentCompanyOutput, typeof payhere.credential>;
|
|
56
45
|
//#endregion
|
|
57
46
|
export { payhereUpdateCurrentCompany };
|
|
58
47
|
//# sourceMappingURL=update-current-company.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-current-company.d.cts","names":[],"sources":["../../src/actions/update-current-company.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-current-company.d.cts","names":[],"sources":["../../src/actions/update-current-company.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoBjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { payhere } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-current-company.d.ts
|
|
@@ -39,20 +41,7 @@ declare const PayhereUpdateCurrentCompanyOutput: z.ZodObject<{
|
|
|
39
41
|
vat_registered: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
42
|
subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const payhereUpdateCurrentCompany:
|
|
43
|
-
logo?: {
|
|
44
|
-
name: string;
|
|
45
|
-
s3key: string;
|
|
46
|
-
mimetype: string;
|
|
47
|
-
} | undefined;
|
|
48
|
-
name?: string | undefined;
|
|
49
|
-
address?: string | undefined;
|
|
50
|
-
website?: string | undefined;
|
|
51
|
-
legal_name?: string | undefined;
|
|
52
|
-
button_text?: string | undefined;
|
|
53
|
-
button_color?: string | undefined;
|
|
54
|
-
support_email?: string | undefined;
|
|
55
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
44
|
+
declare const payhereUpdateCurrentCompany: AppAction<typeof PayhereUpdateCurrentCompanyInput, typeof PayhereUpdateCurrentCompanyOutput, typeof payhere.credential>;
|
|
56
45
|
//#endregion
|
|
57
46
|
export { payhereUpdateCurrentCompany };
|
|
58
47
|
//# sourceMappingURL=update-current-company.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-current-company.d.mts","names":[],"sources":["../../src/actions/update-current-company.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-current-company.d.mts","names":[],"sources":["../../src/actions/update-current-company.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoBjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-current-company.mjs","names":[],"sources":["../../src/actions/update-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereUpdateCurrentCompanyInput = z.object({\n logo: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Logo image for the company.\").optional(),\n name: z.string().describe(\"Display name of the company\").optional(),\n address: z.string().describe(\"Company address for receipt display\").optional(),\n website: z.string().describe(\"Company website shown in receipts\").optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").optional(),\n button_text: z.string().describe(\"Text color: empty (auto), 'white', or 'black'\").optional(),\n button_color: z.string().describe(\"Hex color for pay button (e.g., #ff6600)\").optional(),\n support_email: z.string().describe(\"Support email displayed in receipts\").optional(),\n});\nconst PayhereUpdateCurrentCompany_CompanyUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n name: z.string().describe(\"User name\").nullable().optional(),\n role: z.string().describe(\"User role\").nullable().optional(),\n email: z.string().describe(\"User email address\").nullable().optional(),\n}).passthrough();\nexport const PayhereUpdateCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier\").nullable().optional(),\n name: z.string().describe(\"Display name of the company\").nullable().optional(),\n plan: z.string().describe(\"Current subscription plan\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly company identifier\").nullable().optional(),\n users: z.array(PayhereUpdateCurrentCompany_CompanyUserSchema).describe(\"Associated users with their details\").nullable().optional(),\n address: z.string().describe(\"Company address\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n currency: z.string().describe(\"Company currency\").nullable().optional(),\n vat_rate: z.number().describe(\"VAT rate percentage\").nullable().optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting\").nullable().optional(),\n button_color: z.string().describe(\"Hex color for pay button\").nullable().optional(),\n country_code: z.string().describe(\"Country code for the company\").nullable().optional(),\n custom_domain: z.string().describe(\"Custom domain if configured\").nullable().optional(),\n support_email: z.string().describe(\"Support email address\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription status\").nullable().optional(),\n}).passthrough();\n\nexport const payhereUpdateCurrentCompany = action(\"PAYHERE_UPDATE_CURRENT_COMPANY\", {\n slug: \"payhere-update-current-company\",\n name: \"Update Current Company\",\n description: \"Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences (button color and text color).\",\n input: PayhereUpdateCurrentCompanyInput,\n output: PayhereUpdateCurrentCompanyOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-current-company.mjs","names":[],"sources":["../../src/actions/update-current-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereUpdateCurrentCompanyInput = z.object({\n logo: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Logo image for the company.\").optional(),\n name: z.string().describe(\"Display name of the company\").optional(),\n address: z.string().describe(\"Company address for receipt display\").optional(),\n website: z.string().describe(\"Company website shown in receipts\").optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").optional(),\n button_text: z.string().describe(\"Text color: empty (auto), 'white', or 'black'\").optional(),\n button_color: z.string().describe(\"Hex color for pay button (e.g., #ff6600)\").optional(),\n support_email: z.string().describe(\"Support email displayed in receipts\").optional(),\n});\nconst PayhereUpdateCurrentCompany_CompanyUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n name: z.string().describe(\"User name\").nullable().optional(),\n role: z.string().describe(\"User role\").nullable().optional(),\n email: z.string().describe(\"User email address\").nullable().optional(),\n}).passthrough();\nexport const PayhereUpdateCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier\").nullable().optional(),\n name: z.string().describe(\"Display name of the company\").nullable().optional(),\n plan: z.string().describe(\"Current subscription plan\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly company identifier\").nullable().optional(),\n users: z.array(PayhereUpdateCurrentCompany_CompanyUserSchema).describe(\"Associated users with their details\").nullable().optional(),\n address: z.string().describe(\"Company address\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n currency: z.string().describe(\"Company currency\").nullable().optional(),\n vat_rate: z.number().describe(\"VAT rate percentage\").nullable().optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting\").nullable().optional(),\n button_color: z.string().describe(\"Hex color for pay button\").nullable().optional(),\n country_code: z.string().describe(\"Country code for the company\").nullable().optional(),\n custom_domain: z.string().describe(\"Custom domain if configured\").nullable().optional(),\n support_email: z.string().describe(\"Support email address\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription status\").nullable().optional(),\n}).passthrough();\n\nexport const payhereUpdateCurrentCompany: AppAction<\n typeof PayhereUpdateCurrentCompanyInput,\n typeof PayhereUpdateCurrentCompanyOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_UPDATE_CURRENT_COMPANY\", {\n slug: \"payhere-update-current-company\",\n name: \"Update Current Company\",\n description: \"Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences (button color and text color).\",\n input: PayhereUpdate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8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-plan.cjs","names":["z","action"],"sources":["../../src/actions/update-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereUpdatePlanInput = z.object({\n id: z.string().describe(\"The unique identifier of the plan to update\"),\n name: z.string().describe(\"Display name for the plan\").optional(),\n price: z.number().describe(\"Plan cost (for one-off plans only)\").optional(),\n hidden: z.boolean().describe(\"Exclude plan from payment landing page\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (for one-off plans only)\").optional(),\n show_qty: z.boolean().describe(\"Enable quantity field on payment form (for one-off plans only)\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge (for subscription plans only)\").optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscription plans only)\").optional(),\n description: z.string().describe(\"Product/service description shown to customers\").optional(),\n success_url: z.string().describe(\"Post-payment redirect destination\").optional(),\n webhook_url: z.string().describe(\"Endpoint for payment status notifications\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments (for subscription plans only)\").optional(),\n receipt_text: z.string().describe(\"Custom message added to email receipts\").optional(),\n pay_button_text: z.string().describe(\"Button label (e.g., 'Subscribe', 'Donate')\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments before cancellation (for subscription plans only)\").optional(),\n}).describe(\"Request model for updating a plan's configuration and settings.\");\nexport const PayhereUpdatePlanOutput = z.object({\n id: z.string().describe(\"Unique plan identifier\").nullable().optional(),\n name: z.string().describe(\"Display name\").nullable().optional(),\n price: z.number().describe(\"Plan cost (for one-off plans)\").nullable().optional(),\n hidden: z.boolean().describe(\"Visibility status\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n show_qty: z.boolean().describe(\"Quantity field status (for one-off plans)\").nullable().optional(),\n setup_fee: z.number().describe(\"Initial charge (for subscriptions)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the plan was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the plan was last updated\").nullable().optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscriptions)\").nullable().optional(),\n description: z.string().describe(\"Product/service description\").nullable().optional(),\n success_url: z.string().describe(\"Redirect URL\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook endpoint\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel setting (for subscriptions)\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan (one-off or subscription)\").nullable().optional(),\n receipt_text: z.string().describe(\"Custom receipt message\").nullable().optional(),\n pay_button_text: z.string().describe(\"Button label\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments (for subscriptions)\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated plan object.\");\n\nexport const payhereUpdatePlan = action(\"PAYHERE_UPDATE_PLAN\", {\n slug: \"payhere-update-plan\",\n name: \"Update Plan\",\n description: \"Tool to update an existing plan's configuration and settings. Use when you need to modify plan properties like name, description, pricing, or other settings for both one-off and subscription plans.\",\n input: PayhereUpdatePlanInput,\n output: PayhereUpdatePlanOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-plan.cjs","names":["z","action"],"sources":["../../src/actions/update-plan.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereUpdatePlanInput = z.object({\n id: z.string().describe(\"The unique identifier of the plan to update\"),\n name: z.string().describe(\"Display name for the plan\").optional(),\n price: z.number().describe(\"Plan cost (for one-off plans only)\").optional(),\n hidden: z.boolean().describe(\"Exclude plan from payment landing page\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (for one-off plans only)\").optional(),\n show_qty: z.boolean().describe(\"Enable quantity field on payment form (for one-off plans only)\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge (for subscription plans only)\").optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscription plans only)\").optional(),\n description: z.string().describe(\"Product/service description shown to customers\").optional(),\n success_url: z.string().describe(\"Post-payment redirect destination\").optional(),\n webhook_url: z.string().describe(\"Endpoint for payment status notifications\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments (for subscription plans only)\").optional(),\n receipt_text: z.string().describe(\"Custom message added to email receipts\").optional(),\n pay_button_text: z.string().describe(\"Button label (e.g., 'Subscribe', 'Donate')\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments before cancellation (for subscription plans only)\").optional(),\n}).describe(\"Request model for updating a plan's configuration and settings.\");\nexport const PayhereUpdatePlanOutput = z.object({\n id: z.string().describe(\"Unique plan identifier\").nullable().optional(),\n name: z.string().describe(\"Display name\").nullable().optional(),\n price: z.number().describe(\"Plan cost (for one-off plans)\").nullable().optional(),\n hidden: z.boolean().describe(\"Visibility status\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n show_qty: z.boolean().describe(\"Quantity field status (for one-off plans)\").nullable().optional(),\n setup_fee: z.number().describe(\"Initial charge (for subscriptions)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the plan was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the plan was last updated\").nullable().optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscriptions)\").nullable().optional(),\n description: z.string().describe(\"Product/service description\").nullable().optional(),\n success_url: z.string().describe(\"Redirect URL\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook endpoint\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel setting (for subscriptions)\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan (one-off or subscription)\").nullable().optional(),\n receipt_text: z.string().describe(\"Custom receipt message\").nullable().optional(),\n pay_button_text: z.string().describe(\"Button label\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments (for subscriptions)\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated plan object.\");\n\nexport const payhereUpdatePlan: AppAction<\n typeof PayhereUpdatePlanInput,\n typeof PayhereUpdatePlanOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_UPDATE_PLAN\", {\n slug: \"payhere-update-plan\",\n name: \"Update Plan\",\n description: \"Tool to update an existing plan's configuration and settings. Use when you need to modify plan properties like name, description, pricing, or other settings for both one-off and subscription plans.\",\n input: PayhereUpdatePlanInput,\n output: PayhereUpdatePlanOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,OAA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ACzE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { payhere } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-plan.d.ts
|
|
@@ -38,23 +40,7 @@ declare const PayhereUpdatePlanOutput: z.ZodObject<{
|
|
|
38
40
|
pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
41
|
min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const payhereUpdatePlan:
|
|
42
|
-
id: string;
|
|
43
|
-
name?: string | undefined;
|
|
44
|
-
price?: number | undefined;
|
|
45
|
-
hidden?: boolean | undefined;
|
|
46
|
-
currency?: string | undefined;
|
|
47
|
-
show_qty?: boolean | undefined;
|
|
48
|
-
setup_fee?: number | undefined;
|
|
49
|
-
billing_day?: number | undefined;
|
|
50
|
-
description?: string | undefined;
|
|
51
|
-
success_url?: string | undefined;
|
|
52
|
-
webhook_url?: string | undefined;
|
|
53
|
-
cancel_after?: number | undefined;
|
|
54
|
-
receipt_text?: string | undefined;
|
|
55
|
-
pay_button_text?: string | undefined;
|
|
56
|
-
min_billing_cycles?: number | undefined;
|
|
57
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
|
+
declare const payhereUpdatePlan: AppAction<typeof PayhereUpdatePlanInput, typeof PayhereUpdatePlanOutput, typeof payhere.credential>;
|
|
58
44
|
//#endregion
|
|
59
45
|
export { payhereUpdatePlan };
|
|
60
46
|
//# sourceMappingURL=update-plan.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-plan.d.cts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-plan.d.cts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { payhere } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-plan.d.ts
|
|
@@ -38,23 +40,7 @@ declare const PayhereUpdatePlanOutput: z.ZodObject<{
|
|
|
38
40
|
pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
41
|
min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const payhereUpdatePlan:
|
|
42
|
-
id: string;
|
|
43
|
-
name?: string | undefined;
|
|
44
|
-
price?: number | undefined;
|
|
45
|
-
hidden?: boolean | undefined;
|
|
46
|
-
currency?: string | undefined;
|
|
47
|
-
show_qty?: boolean | undefined;
|
|
48
|
-
setup_fee?: number | undefined;
|
|
49
|
-
billing_day?: number | undefined;
|
|
50
|
-
description?: string | undefined;
|
|
51
|
-
success_url?: string | undefined;
|
|
52
|
-
webhook_url?: string | undefined;
|
|
53
|
-
cancel_after?: number | undefined;
|
|
54
|
-
receipt_text?: string | undefined;
|
|
55
|
-
pay_button_text?: string | undefined;
|
|
56
|
-
min_billing_cycles?: number | undefined;
|
|
57
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
|
+
declare const payhereUpdatePlan: AppAction<typeof PayhereUpdatePlanInput, typeof PayhereUpdatePlanOutput, typeof payhere.credential>;
|
|
58
44
|
//#endregion
|
|
59
45
|
export { payhereUpdatePlan };
|
|
60
46
|
//# sourceMappingURL=update-plan.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-plan.d.mts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-plan.d.mts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-plan.mjs","names":[],"sources":["../../src/actions/update-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereUpdatePlanInput = z.object({\n id: z.string().describe(\"The unique identifier of the plan to update\"),\n name: z.string().describe(\"Display name for the plan\").optional(),\n price: z.number().describe(\"Plan cost (for one-off plans only)\").optional(),\n hidden: z.boolean().describe(\"Exclude plan from payment landing page\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (for one-off plans only)\").optional(),\n show_qty: z.boolean().describe(\"Enable quantity field on payment form (for one-off plans only)\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge (for subscription plans only)\").optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscription plans only)\").optional(),\n description: z.string().describe(\"Product/service description shown to customers\").optional(),\n success_url: z.string().describe(\"Post-payment redirect destination\").optional(),\n webhook_url: z.string().describe(\"Endpoint for payment status notifications\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments (for subscription plans only)\").optional(),\n receipt_text: z.string().describe(\"Custom message added to email receipts\").optional(),\n pay_button_text: z.string().describe(\"Button label (e.g., 'Subscribe', 'Donate')\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments before cancellation (for subscription plans only)\").optional(),\n}).describe(\"Request model for updating a plan's configuration and settings.\");\nexport const PayhereUpdatePlanOutput = z.object({\n id: z.string().describe(\"Unique plan identifier\").nullable().optional(),\n name: z.string().describe(\"Display name\").nullable().optional(),\n price: z.number().describe(\"Plan cost (for one-off plans)\").nullable().optional(),\n hidden: z.boolean().describe(\"Visibility status\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n show_qty: z.boolean().describe(\"Quantity field status (for one-off plans)\").nullable().optional(),\n setup_fee: z.number().describe(\"Initial charge (for subscriptions)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the plan was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the plan was last updated\").nullable().optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscriptions)\").nullable().optional(),\n description: z.string().describe(\"Product/service description\").nullable().optional(),\n success_url: z.string().describe(\"Redirect URL\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook endpoint\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel setting (for subscriptions)\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan (one-off or subscription)\").nullable().optional(),\n receipt_text: z.string().describe(\"Custom receipt message\").nullable().optional(),\n pay_button_text: z.string().describe(\"Button label\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments (for subscriptions)\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated plan object.\");\n\nexport const payhereUpdatePlan = action(\"PAYHERE_UPDATE_PLAN\", {\n slug: \"payhere-update-plan\",\n name: \"Update Plan\",\n description: \"Tool to update an existing plan's configuration and settings. Use when you need to modify plan properties like name, description, pricing, or other settings for both one-off and subscription plans.\",\n input: PayhereUpdatePlanInput,\n output: PayhereUpdatePlanOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-plan.mjs","names":[],"sources":["../../src/actions/update-plan.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereUpdatePlanInput = z.object({\n id: z.string().describe(\"The unique identifier of the plan to update\"),\n name: z.string().describe(\"Display name for the plan\").optional(),\n price: z.number().describe(\"Plan cost (for one-off plans only)\").optional(),\n hidden: z.boolean().describe(\"Exclude plan from payment landing page\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (for one-off plans only)\").optional(),\n show_qty: z.boolean().describe(\"Enable quantity field on payment form (for one-off plans only)\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge (for subscription plans only)\").optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscription plans only)\").optional(),\n description: z.string().describe(\"Product/service description shown to customers\").optional(),\n success_url: z.string().describe(\"Post-payment redirect destination\").optional(),\n webhook_url: z.string().describe(\"Endpoint for payment status notifications\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments (for subscription plans only)\").optional(),\n receipt_text: z.string().describe(\"Custom message added to email receipts\").optional(),\n pay_button_text: z.string().describe(\"Button label (e.g., 'Subscribe', 'Donate')\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments before cancellation (for subscription plans only)\").optional(),\n}).describe(\"Request model for updating a plan's configuration and settings.\");\nexport const PayhereUpdatePlanOutput = z.object({\n id: z.string().describe(\"Unique plan identifier\").nullable().optional(),\n name: z.string().describe(\"Display name\").nullable().optional(),\n price: z.number().describe(\"Plan cost (for one-off plans)\").nullable().optional(),\n hidden: z.boolean().describe(\"Visibility status\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n show_qty: z.boolean().describe(\"Quantity field status (for one-off plans)\").nullable().optional(),\n setup_fee: z.number().describe(\"Initial charge (for subscriptions)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the plan was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the plan was last updated\").nullable().optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscriptions)\").nullable().optional(),\n description: z.string().describe(\"Product/service description\").nullable().optional(),\n success_url: z.string().describe(\"Redirect URL\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook endpoint\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel setting (for subscriptions)\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan (one-off or subscription)\").nullable().optional(),\n receipt_text: z.string().describe(\"Custom receipt message\").nullable().optional(),\n pay_button_text: z.string().describe(\"Button label\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments (for subscriptions)\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated plan object.\");\n\nexport const payhereUpdatePlan: AppAction<\n typeof PayhereUpdatePlanInput,\n typeof PayhereUpdatePlanOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_UPDATE_PLAN\", {\n slug: \"payhere-update-plan\",\n name: \"Update Plan\",\n description: \"Tool to update an existing plan's configuration and settings. Use when you need to modify plan properties like name, description, pricing, or other settings for both one-off and subscription plans.\",\n input: PayhereUpdatePlanInput,\n output: PayhereUpdatePlanOutput,\n});\n"],"mappings":";;;AA4CA,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9CoC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,OAA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OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
+
let zod = require("zod");
|
|
1
3
|
//#region src/app.ts
|
|
2
|
-
const
|
|
4
|
+
const credential = {
|
|
5
|
+
subdomain: zod.z.string(),
|
|
6
|
+
generic_api_key: zod.z.string()
|
|
7
|
+
};
|
|
8
|
+
const payhere = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
9
|
slug: "payhere",
|
|
4
|
-
auth: "keystroke"
|
|
10
|
+
auth: "keystroke",
|
|
11
|
+
credential
|
|
5
12
|
});
|
|
6
13
|
//#endregion
|
|
7
14
|
exports.payhere = payhere;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const payhere = defineApp({\n slug: \"payhere\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n subdomain: z.string(),\n generic_api_key: z.string(),\n};\n\nexport const payhere: KeystrokeApp<\"payhere\", typeof credential> = defineApp({\n slug: \"payhere\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,WAAWA,IAAAA,EAAE,OAAO;CACpB,iBAAiBA,IAAAA,EAAE,OAAO;AAC5B;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAgE;CAC3E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
subdomain: z.ZodString;
|
|
7
|
+
generic_api_key: z.ZodString;
|
|
8
|
+
};
|
|
9
|
+
declare const payhere: KeystrokeApp<"payhere", typeof credential>;
|
|
3
10
|
//#endregion
|
|
4
11
|
export { payhere };
|
|
5
12
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;aAGL,CAAA,CAAA,SAAA;mBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
subdomain: z.ZodString;
|
|
7
|
+
generic_api_key: z.ZodString;
|
|
8
|
+
};
|
|
9
|
+
declare const payhere: KeystrokeApp<"payhere", typeof credential>;
|
|
3
10
|
//#endregion
|
|
4
11
|
export { payhere };
|
|
5
12
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;aAGL,CAAA,CAAA,SAAA;mBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const payhere = defineApp({
|
|
4
4
|
slug: "payhere",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: {
|
|
7
|
+
subdomain: z.string(),
|
|
8
|
+
generic_api_key: z.string()
|
|
9
|
+
}
|
|
6
10
|
});
|
|
7
11
|
//#endregion
|
|
8
12
|
export { payhere };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const payhere = defineApp({\n slug: \"payhere\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n subdomain: z.string(),\n generic_api_key: z.string(),\n};\n\nexport const payhere: KeystrokeApp<\"payhere\", typeof credential> = defineApp({\n slug: \"payhere\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,UAAsD,UAAU;CAC3E,MAAM;CACN,MAAM;CACN;EAPA,WAAW,EAAE,OAAO;EACpB,iBAAiB,EAAE,OAAO;CAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { payhere } from "./app.cjs";
|
|
1
2
|
import { payhereCreateHook } from "./actions/create-hook.cjs";
|
|
2
3
|
import { payhereCreatePlan } from "./actions/create-plan.cjs";
|
|
3
4
|
import { payhereDeleteHook } from "./actions/delete-hook.cjs";
|
|
@@ -11,6 +12,5 @@ import { payhereListPlans } from "./actions/list-plans.cjs";
|
|
|
11
12
|
import { payhereListSubscriptions } from "./actions/list-subscriptions.cjs";
|
|
12
13
|
import { payhereUpdateCurrentCompany } from "./actions/update-current-company.cjs";
|
|
13
14
|
import { payhereUpdatePlan } from "./actions/update-plan.cjs";
|
|
14
|
-
import { payhere } from "./app.cjs";
|
|
15
15
|
import { payhereCatalog } from "./catalog.cjs";
|
|
16
16
|
export { payhere, payhereCatalog, payhereCreateHook, payhereCreatePlan, payhereDeleteHook, payhereGetCurrentCompany, payhereGetCurrentCompanyStats, payhereGetUser, payhereListCustomers, payhereListHooks, payhereListPayments, payhereListPlans, payhereListSubscriptions, payhereUpdateCurrentCompany, payhereUpdatePlan };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { payhere } from "./app.mjs";
|
|
1
2
|
import { payhereCreateHook } from "./actions/create-hook.mjs";
|
|
2
3
|
import { payhereCreatePlan } from "./actions/create-plan.mjs";
|
|
3
4
|
import { payhereDeleteHook } from "./actions/delete-hook.mjs";
|
|
@@ -11,6 +12,5 @@ import { payhereListPlans } from "./actions/list-plans.mjs";
|
|
|
11
12
|
import { payhereListSubscriptions } from "./actions/list-subscriptions.mjs";
|
|
12
13
|
import { payhereUpdateCurrentCompany } from "./actions/update-current-company.mjs";
|
|
13
14
|
import { payhereUpdatePlan } from "./actions/update-plan.mjs";
|
|
14
|
-
import { payhere } from "./app.mjs";
|
|
15
15
|
import { payhereCatalog } from "./catalog.mjs";
|
|
16
16
|
export { payhere, payhereCatalog, payhereCreateHook, payhereCreatePlan, payhereDeleteHook, payhereGetCurrentCompany, payhereGetCurrentCompanyStats, payhereGetUser, payhereListCustomers, payhereListHooks, payhereListPayments, payhereListPlans, payhereListSubscriptions, payhereUpdateCurrentCompany, payhereUpdatePlan };
|