@keystrokehq/payhere 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/create-hook.cjs +34 -0
- package/dist/actions/create-hook.cjs.map +1 -0
- package/dist/actions/create-hook.d.cts +9 -0
- package/dist/actions/create-hook.d.cts.map +1 -0
- package/dist/actions/create-hook.d.mts +9 -0
- package/dist/actions/create-hook.d.mts.map +1 -0
- package/dist/actions/create-hook.mjs +33 -0
- package/dist/actions/create-hook.mjs.map +1 -0
- package/dist/actions/create-plan.cjs +73 -0
- package/dist/actions/create-plan.cjs.map +1 -0
- package/dist/actions/create-plan.d.cts +9 -0
- package/dist/actions/create-plan.d.cts.map +1 -0
- package/dist/actions/create-plan.d.mts +9 -0
- package/dist/actions/create-plan.d.mts.map +1 -0
- package/dist/actions/create-plan.mjs +72 -0
- package/dist/actions/create-plan.mjs.map +1 -0
- package/dist/actions/delete-hook.cjs +19 -0
- package/dist/actions/delete-hook.cjs.map +1 -0
- package/dist/actions/delete-hook.d.cts +9 -0
- package/dist/actions/delete-hook.d.cts.map +1 -0
- package/dist/actions/delete-hook.d.mts +9 -0
- package/dist/actions/delete-hook.d.mts.map +1 -0
- package/dist/actions/delete-hook.mjs +16 -0
- package/dist/actions/delete-hook.mjs.map +1 -0
- package/dist/actions/get-current-company-stats.cjs +23 -0
- package/dist/actions/get-current-company-stats.cjs.map +1 -0
- package/dist/actions/get-current-company-stats.d.cts +9 -0
- package/dist/actions/get-current-company-stats.d.cts.map +1 -0
- package/dist/actions/get-current-company-stats.d.mts +9 -0
- package/dist/actions/get-current-company-stats.d.mts.map +1 -0
- package/dist/actions/get-current-company-stats.mjs +20 -0
- package/dist/actions/get-current-company-stats.mjs.map +1 -0
- package/dist/actions/get-current-company.cjs +40 -0
- package/dist/actions/get-current-company.cjs.map +1 -0
- package/dist/actions/get-current-company.d.cts +9 -0
- package/dist/actions/get-current-company.d.cts.map +1 -0
- package/dist/actions/get-current-company.d.mts +9 -0
- package/dist/actions/get-current-company.d.mts.map +1 -0
- package/dist/actions/get-current-company.mjs +39 -0
- package/dist/actions/get-current-company.mjs.map +1 -0
- package/dist/actions/get-user.cjs +23 -0
- package/dist/actions/get-user.cjs.map +1 -0
- package/dist/actions/get-user.d.cts +9 -0
- package/dist/actions/get-user.d.cts.map +1 -0
- package/dist/actions/get-user.d.mts +9 -0
- package/dist/actions/get-user.d.mts.map +1 -0
- package/dist/actions/get-user.mjs +20 -0
- package/dist/actions/get-user.mjs.map +1 -0
- package/dist/actions/index.cjs +27 -0
- package/dist/actions/index.d.cts +14 -0
- package/dist/actions/index.d.mts +14 -0
- package/dist/actions/index.mjs +14 -0
- package/dist/actions/list-customers.cjs +40 -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 +39 -0
- package/dist/actions/list-customers.mjs.map +1 -0
- package/dist/actions/list-hooks.cjs +26 -0
- package/dist/actions/list-hooks.cjs.map +1 -0
- package/dist/actions/list-hooks.d.cts +9 -0
- package/dist/actions/list-hooks.d.cts.map +1 -0
- package/dist/actions/list-hooks.d.mts +9 -0
- package/dist/actions/list-hooks.d.mts.map +1 -0
- package/dist/actions/list-hooks.mjs +25 -0
- package/dist/actions/list-hooks.mjs.map +1 -0
- package/dist/actions/list-payments.cjs +48 -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 +47 -0
- package/dist/actions/list-payments.mjs.map +1 -0
- package/dist/actions/list-plans.cjs +60 -0
- package/dist/actions/list-plans.cjs.map +1 -0
- package/dist/actions/list-plans.d.cts +9 -0
- package/dist/actions/list-plans.d.cts.map +1 -0
- package/dist/actions/list-plans.d.mts +9 -0
- package/dist/actions/list-plans.d.mts.map +1 -0
- package/dist/actions/list-plans.mjs +59 -0
- package/dist/actions/list-plans.mjs.map +1 -0
- package/dist/actions/list-subscriptions.cjs +58 -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 +57 -0
- package/dist/actions/list-subscriptions.mjs.map +1 -0
- package/dist/actions/update-current-company.cjs +53 -0
- package/dist/actions/update-current-company.cjs.map +1 -0
- package/dist/actions/update-current-company.d.cts +9 -0
- package/dist/actions/update-current-company.d.cts.map +1 -0
- package/dist/actions/update-current-company.d.mts +9 -0
- package/dist/actions/update-current-company.d.mts.map +1 -0
- package/dist/actions/update-current-company.mjs +52 -0
- package/dist/actions/update-current-company.mjs.map +1 -0
- package/dist/actions/update-plan.cjs +51 -0
- package/dist/actions/update-plan.cjs.map +1 -0
- package/dist/actions/update-plan.d.cts +9 -0
- package/dist/actions/update-plan.d.cts.map +1 -0
- package/dist/actions/update-plan.d.mts +9 -0
- package/dist/actions/update-plan.d.mts.map +1 -0
- package/dist/actions/update-plan.mjs +48 -0
- package/dist/actions/update-plan.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 +32 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.mjs +17 -0
- package/package.json +49 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-current-company.ts
|
|
4
|
+
const PayhereUpdateCurrentCompanyInput = z.object({
|
|
5
|
+
logo: z.object({
|
|
6
|
+
name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
7
|
+
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."),
|
|
8
|
+
mimetype: z.string().describe("The MIME type of the file")
|
|
9
|
+
}).describe("Logo image for the company.").optional(),
|
|
10
|
+
name: z.string().describe("Display name of the company").optional(),
|
|
11
|
+
address: z.string().describe("Company address for receipt display").optional(),
|
|
12
|
+
website: z.string().describe("Company website shown in receipts").optional(),
|
|
13
|
+
legal_name: z.string().describe("Legal name shown on receipts").optional(),
|
|
14
|
+
button_text: z.string().describe("Text color: empty (auto), 'white', or 'black'").optional(),
|
|
15
|
+
button_color: z.string().describe("Hex color for pay button (e.g., #ff6600)").optional(),
|
|
16
|
+
support_email: z.string().describe("Support email displayed in receipts").optional()
|
|
17
|
+
});
|
|
18
|
+
const PayhereUpdateCurrentCompany_CompanyUserSchema = z.object({
|
|
19
|
+
id: z.number().int().describe("User ID").nullable().optional(),
|
|
20
|
+
name: z.string().describe("User name").nullable().optional(),
|
|
21
|
+
role: z.string().describe("User role").nullable().optional(),
|
|
22
|
+
email: z.string().describe("User email address").nullable().optional()
|
|
23
|
+
});
|
|
24
|
+
const payhereUpdateCurrentCompany = action("PAYHERE_UPDATE_CURRENT_COMPANY", {
|
|
25
|
+
slug: "payhere-update-current-company",
|
|
26
|
+
name: "Update Current Company",
|
|
27
|
+
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).",
|
|
28
|
+
input: PayhereUpdateCurrentCompanyInput,
|
|
29
|
+
output: z.object({
|
|
30
|
+
id: z.number().int().describe("Company identifier").nullable().optional(),
|
|
31
|
+
name: z.string().describe("Display name of the company").nullable().optional(),
|
|
32
|
+
plan: z.string().describe("Current subscription plan").nullable().optional(),
|
|
33
|
+
slug: z.string().describe("URL-friendly company identifier").nullable().optional(),
|
|
34
|
+
users: z.array(PayhereUpdateCurrentCompany_CompanyUserSchema).describe("Associated users with their details").nullable().optional(),
|
|
35
|
+
address: z.string().describe("Company address").nullable().optional(),
|
|
36
|
+
website: z.string().describe("Company website URL").nullable().optional(),
|
|
37
|
+
currency: z.string().describe("Company currency").nullable().optional(),
|
|
38
|
+
vat_rate: z.number().describe("VAT rate percentage").nullable().optional(),
|
|
39
|
+
legal_name: z.string().describe("Legal name shown on receipts").nullable().optional(),
|
|
40
|
+
button_text: z.string().describe("Text color setting").nullable().optional(),
|
|
41
|
+
button_color: z.string().describe("Hex color for pay button").nullable().optional(),
|
|
42
|
+
country_code: z.string().describe("Country code for the company").nullable().optional(),
|
|
43
|
+
custom_domain: z.string().describe("Custom domain if configured").nullable().optional(),
|
|
44
|
+
support_email: z.string().describe("Support email address").nullable().optional(),
|
|
45
|
+
vat_registered: z.boolean().describe("VAT registration status").nullable().optional(),
|
|
46
|
+
subscription_status: z.string().describe("Current subscription status").nullable().optional()
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { payhereUpdateCurrentCompany };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=update-current-company.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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});\nexport const PayhereUpdateCurrentCompanyOutput: z.ZodTypeAny = 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});\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":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,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AC,SAAS,CAAC,CAAC,SAAS;EACxE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,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,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-plan.ts
|
|
4
|
+
const PayhereUpdatePlanInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The unique identifier of the plan to update"),
|
|
6
|
+
name: zod.z.string().describe("Display name for the plan").optional(),
|
|
7
|
+
price: zod.z.number().describe("Plan cost (for one-off plans only)").optional(),
|
|
8
|
+
hidden: zod.z.boolean().describe("Exclude plan from payment landing page").optional(),
|
|
9
|
+
currency: zod.z.string().describe("ISO 4217 currency code (for one-off plans only)").optional(),
|
|
10
|
+
show_qty: zod.z.boolean().describe("Enable quantity field on payment form (for one-off plans only)").optional(),
|
|
11
|
+
setup_fee: zod.z.number().describe("Initial one-time charge (for subscription plans only)").optional(),
|
|
12
|
+
billing_day: zod.z.number().int().describe("Monthly charge date (for subscription plans only)").optional(),
|
|
13
|
+
description: zod.z.string().describe("Product/service description shown to customers").optional(),
|
|
14
|
+
success_url: zod.z.string().describe("Post-payment redirect destination").optional(),
|
|
15
|
+
webhook_url: zod.z.string().describe("Endpoint for payment status notifications").optional(),
|
|
16
|
+
cancel_after: zod.z.number().int().describe("Auto-cancel after N payments (for subscription plans only)").optional(),
|
|
17
|
+
receipt_text: zod.z.string().describe("Custom message added to email receipts").optional(),
|
|
18
|
+
pay_button_text: zod.z.string().describe("Button label (e.g., 'Subscribe', 'Donate')").optional(),
|
|
19
|
+
min_billing_cycles: zod.z.number().int().describe("Minimum payments before cancellation (for subscription plans only)").optional()
|
|
20
|
+
}).describe("Request model for updating a plan's configuration and settings.");
|
|
21
|
+
const PayhereUpdatePlanOutput = zod.z.object({
|
|
22
|
+
id: zod.z.string().describe("Unique plan identifier").nullable().optional(),
|
|
23
|
+
name: zod.z.string().describe("Display name").nullable().optional(),
|
|
24
|
+
price: zod.z.number().describe("Plan cost (for one-off plans)").nullable().optional(),
|
|
25
|
+
hidden: zod.z.boolean().describe("Visibility status").nullable().optional(),
|
|
26
|
+
currency: zod.z.string().describe("ISO 4217 currency code").nullable().optional(),
|
|
27
|
+
show_qty: zod.z.boolean().describe("Quantity field status (for one-off plans)").nullable().optional(),
|
|
28
|
+
setup_fee: zod.z.number().describe("Initial charge (for subscriptions)").nullable().optional(),
|
|
29
|
+
created_at: zod.z.string().describe("Timestamp when the plan was created").nullable().optional(),
|
|
30
|
+
updated_at: zod.z.string().describe("Timestamp when the plan was last updated").nullable().optional(),
|
|
31
|
+
billing_day: zod.z.number().int().describe("Monthly charge date (for subscriptions)").nullable().optional(),
|
|
32
|
+
description: zod.z.string().describe("Product/service description").nullable().optional(),
|
|
33
|
+
success_url: zod.z.string().describe("Redirect URL").nullable().optional(),
|
|
34
|
+
webhook_url: zod.z.string().describe("Webhook endpoint").nullable().optional(),
|
|
35
|
+
cancel_after: zod.z.number().int().describe("Auto-cancel setting (for subscriptions)").nullable().optional(),
|
|
36
|
+
payment_type: zod.z.string().describe("Type of plan (one-off or subscription)").nullable().optional(),
|
|
37
|
+
receipt_text: zod.z.string().describe("Custom receipt message").nullable().optional(),
|
|
38
|
+
pay_button_text: zod.z.string().describe("Button label").nullable().optional(),
|
|
39
|
+
min_billing_cycles: zod.z.number().int().describe("Minimum payments (for subscriptions)").nullable().optional()
|
|
40
|
+
}).describe("Response model for updated plan object.");
|
|
41
|
+
const payhereUpdatePlan = require_action.action("PAYHERE_UPDATE_PLAN", {
|
|
42
|
+
slug: "payhere-update-plan",
|
|
43
|
+
name: "Update Plan",
|
|
44
|
+
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.",
|
|
45
|
+
input: PayhereUpdatePlanInput,
|
|
46
|
+
output: PayhereUpdatePlanOutput
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.payhereUpdatePlan = payhereUpdatePlan;
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=update-plan.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).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":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,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,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E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
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-plan.d.ts
|
|
4
|
+
declare const PayhereUpdatePlanInput: z.ZodTypeAny;
|
|
5
|
+
declare const PayhereUpdatePlanOutput: z.ZodTypeAny;
|
|
6
|
+
declare const payhereUpdatePlan: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { payhereUpdatePlan };
|
|
9
|
+
//# sourceMappingURL=update-plan.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-plan.d.cts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAgBuC;AAAA,cACjE,uBAAA,EAAyB,CAAA,CAAE,UAmBc;AAAA,cAEzC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-plan.d.ts
|
|
4
|
+
declare const PayhereUpdatePlanInput: z.ZodTypeAny;
|
|
5
|
+
declare const PayhereUpdatePlanOutput: z.ZodTypeAny;
|
|
6
|
+
declare const payhereUpdatePlan: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { payhereUpdatePlan };
|
|
9
|
+
//# sourceMappingURL=update-plan.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-plan.d.mts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAgBuC;AAAA,cACjE,uBAAA,EAAyB,CAAA,CAAE,UAmBc;AAAA,cAEzC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const payhereUpdatePlan = action("PAYHERE_UPDATE_PLAN", {
|
|
4
|
+
slug: "payhere-update-plan",
|
|
5
|
+
name: "Update Plan",
|
|
6
|
+
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.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
id: z.string().describe("The unique identifier of the plan to update"),
|
|
9
|
+
name: z.string().describe("Display name for the plan").optional(),
|
|
10
|
+
price: z.number().describe("Plan cost (for one-off plans only)").optional(),
|
|
11
|
+
hidden: z.boolean().describe("Exclude plan from payment landing page").optional(),
|
|
12
|
+
currency: z.string().describe("ISO 4217 currency code (for one-off plans only)").optional(),
|
|
13
|
+
show_qty: z.boolean().describe("Enable quantity field on payment form (for one-off plans only)").optional(),
|
|
14
|
+
setup_fee: z.number().describe("Initial one-time charge (for subscription plans only)").optional(),
|
|
15
|
+
billing_day: z.number().int().describe("Monthly charge date (for subscription plans only)").optional(),
|
|
16
|
+
description: z.string().describe("Product/service description shown to customers").optional(),
|
|
17
|
+
success_url: z.string().describe("Post-payment redirect destination").optional(),
|
|
18
|
+
webhook_url: z.string().describe("Endpoint for payment status notifications").optional(),
|
|
19
|
+
cancel_after: z.number().int().describe("Auto-cancel after N payments (for subscription plans only)").optional(),
|
|
20
|
+
receipt_text: z.string().describe("Custom message added to email receipts").optional(),
|
|
21
|
+
pay_button_text: z.string().describe("Button label (e.g., 'Subscribe', 'Donate')").optional(),
|
|
22
|
+
min_billing_cycles: z.number().int().describe("Minimum payments before cancellation (for subscription plans only)").optional()
|
|
23
|
+
}).describe("Request model for updating a plan's configuration and settings."),
|
|
24
|
+
output: z.object({
|
|
25
|
+
id: z.string().describe("Unique plan identifier").nullable().optional(),
|
|
26
|
+
name: z.string().describe("Display name").nullable().optional(),
|
|
27
|
+
price: z.number().describe("Plan cost (for one-off plans)").nullable().optional(),
|
|
28
|
+
hidden: z.boolean().describe("Visibility status").nullable().optional(),
|
|
29
|
+
currency: z.string().describe("ISO 4217 currency code").nullable().optional(),
|
|
30
|
+
show_qty: z.boolean().describe("Quantity field status (for one-off plans)").nullable().optional(),
|
|
31
|
+
setup_fee: z.number().describe("Initial charge (for subscriptions)").nullable().optional(),
|
|
32
|
+
created_at: z.string().describe("Timestamp when the plan was created").nullable().optional(),
|
|
33
|
+
updated_at: z.string().describe("Timestamp when the plan was last updated").nullable().optional(),
|
|
34
|
+
billing_day: z.number().int().describe("Monthly charge date (for subscriptions)").nullable().optional(),
|
|
35
|
+
description: z.string().describe("Product/service description").nullable().optional(),
|
|
36
|
+
success_url: z.string().describe("Redirect URL").nullable().optional(),
|
|
37
|
+
webhook_url: z.string().describe("Webhook endpoint").nullable().optional(),
|
|
38
|
+
cancel_after: z.number().int().describe("Auto-cancel setting (for subscriptions)").nullable().optional(),
|
|
39
|
+
payment_type: z.string().describe("Type of plan (one-off or subscription)").nullable().optional(),
|
|
40
|
+
receipt_text: z.string().describe("Custom receipt message").nullable().optional(),
|
|
41
|
+
pay_button_text: z.string().describe("Button label").nullable().optional(),
|
|
42
|
+
min_billing_cycles: z.number().int().describe("Minimum payments (for subscriptions)").nullable().optional()
|
|
43
|
+
}).describe("Response model for updated plan object.")
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { payhereUpdatePlan };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=update-plan.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).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":";;AA0CA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1CkD,EAAE,OAAO;EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC1E,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO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AC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,iBAAiB,EAAE,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,SAAS,yCAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +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,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +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":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const payhereCatalog = {
|
|
4
|
+
"slug": "payhere",
|
|
5
|
+
"name": "Payhere",
|
|
6
|
+
"description": "Easy payment links for accepting online payments",
|
|
7
|
+
"category": "eCommerce",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/payhere",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.payhereCatalog = payhereCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const payhereCatalog = {\n \"slug\": \"payhere\",\n \"name\": \"Payhere\",\n \"description\": \"Easy payment links for accepting online payments\",\n \"category\": \"eCommerce\",\n \"logo\": \"https://logos.composio.dev/api/payhere\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const payhereCatalog: {
|
|
4
|
+
readonly slug: "payhere";
|
|
5
|
+
readonly name: "Payhere";
|
|
6
|
+
readonly description: "Easy payment links for accepting online payments";
|
|
7
|
+
readonly category: "eCommerce";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/payhere";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { payhereCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const payhereCatalog: {
|
|
4
|
+
readonly slug: "payhere";
|
|
5
|
+
readonly name: "Payhere";
|
|
6
|
+
readonly description: "Easy payment links for accepting online payments";
|
|
7
|
+
readonly category: "eCommerce";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/payhere";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { payhereCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const payhereCatalog = {
|
|
4
|
+
"slug": "payhere",
|
|
5
|
+
"name": "Payhere",
|
|
6
|
+
"description": "Easy payment links for accepting online payments",
|
|
7
|
+
"category": "eCommerce",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/payhere",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { payhereCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const payhereCatalog = {\n \"slug\": \"payhere\",\n \"name\": \"Payhere\",\n \"description\": \"Easy payment links for accepting online payments\",\n \"category\": \"eCommerce\",\n \"logo\": \"https://logos.composio.dev/api/payhere\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "payhere";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executePayhereTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executePayhereTool = executePayhereTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"payhere\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executePayhereTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,mBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "payhere";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executePayhereTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executePayhereTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"payhere\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executePayhereTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,mBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_create_hook = require("./actions/create-hook.cjs");
|
|
5
|
+
const require_create_plan = require("./actions/create-plan.cjs");
|
|
6
|
+
const require_delete_hook = require("./actions/delete-hook.cjs");
|
|
7
|
+
const require_get_current_company = require("./actions/get-current-company.cjs");
|
|
8
|
+
const require_get_current_company_stats = require("./actions/get-current-company-stats.cjs");
|
|
9
|
+
const require_get_user = require("./actions/get-user.cjs");
|
|
10
|
+
const require_list_customers = require("./actions/list-customers.cjs");
|
|
11
|
+
const require_list_hooks = require("./actions/list-hooks.cjs");
|
|
12
|
+
const require_list_payments = require("./actions/list-payments.cjs");
|
|
13
|
+
const require_list_plans = require("./actions/list-plans.cjs");
|
|
14
|
+
const require_list_subscriptions = require("./actions/list-subscriptions.cjs");
|
|
15
|
+
const require_update_current_company = require("./actions/update-current-company.cjs");
|
|
16
|
+
const require_update_plan = require("./actions/update-plan.cjs");
|
|
17
|
+
require("./actions/index.cjs");
|
|
18
|
+
exports.payhere = require_app.payhere;
|
|
19
|
+
exports.payhereCatalog = require_catalog.payhereCatalog;
|
|
20
|
+
exports.payhereCreateHook = require_create_hook.payhereCreateHook;
|
|
21
|
+
exports.payhereCreatePlan = require_create_plan.payhereCreatePlan;
|
|
22
|
+
exports.payhereDeleteHook = require_delete_hook.payhereDeleteHook;
|
|
23
|
+
exports.payhereGetCurrentCompany = require_get_current_company.payhereGetCurrentCompany;
|
|
24
|
+
exports.payhereGetCurrentCompanyStats = require_get_current_company_stats.payhereGetCurrentCompanyStats;
|
|
25
|
+
exports.payhereGetUser = require_get_user.payhereGetUser;
|
|
26
|
+
exports.payhereListCustomers = require_list_customers.payhereListCustomers;
|
|
27
|
+
exports.payhereListHooks = require_list_hooks.payhereListHooks;
|
|
28
|
+
exports.payhereListPayments = require_list_payments.payhereListPayments;
|
|
29
|
+
exports.payhereListPlans = require_list_plans.payhereListPlans;
|
|
30
|
+
exports.payhereListSubscriptions = require_list_subscriptions.payhereListSubscriptions;
|
|
31
|
+
exports.payhereUpdateCurrentCompany = require_update_current_company.payhereUpdateCurrentCompany;
|
|
32
|
+
exports.payhereUpdatePlan = require_update_plan.payhereUpdatePlan;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { payhereCreateHook } from "./actions/create-hook.cjs";
|
|
2
|
+
import { payhereCreatePlan } from "./actions/create-plan.cjs";
|
|
3
|
+
import { payhereDeleteHook } from "./actions/delete-hook.cjs";
|
|
4
|
+
import { payhereGetCurrentCompany } from "./actions/get-current-company.cjs";
|
|
5
|
+
import { payhereGetCurrentCompanyStats } from "./actions/get-current-company-stats.cjs";
|
|
6
|
+
import { payhereGetUser } from "./actions/get-user.cjs";
|
|
7
|
+
import { payhereListCustomers } from "./actions/list-customers.cjs";
|
|
8
|
+
import { payhereListHooks } from "./actions/list-hooks.cjs";
|
|
9
|
+
import { payhereListPayments } from "./actions/list-payments.cjs";
|
|
10
|
+
import { payhereListPlans } from "./actions/list-plans.cjs";
|
|
11
|
+
import { payhereListSubscriptions } from "./actions/list-subscriptions.cjs";
|
|
12
|
+
import { payhereUpdateCurrentCompany } from "./actions/update-current-company.cjs";
|
|
13
|
+
import { payhereUpdatePlan } from "./actions/update-plan.cjs";
|
|
14
|
+
import { payhere } from "./app.cjs";
|
|
15
|
+
import { payhereCatalog } from "./catalog.cjs";
|
|
16
|
+
export { payhere, payhereCatalog, payhereCreateHook, payhereCreatePlan, payhereDeleteHook, payhereGetCurrentCompany, payhereGetCurrentCompanyStats, payhereGetUser, payhereListCustomers, payhereListHooks, payhereListPayments, payhereListPlans, payhereListSubscriptions, payhereUpdateCurrentCompany, payhereUpdatePlan };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { payhereCreateHook } from "./actions/create-hook.mjs";
|
|
2
|
+
import { payhereCreatePlan } from "./actions/create-plan.mjs";
|
|
3
|
+
import { payhereDeleteHook } from "./actions/delete-hook.mjs";
|
|
4
|
+
import { payhereGetCurrentCompany } from "./actions/get-current-company.mjs";
|
|
5
|
+
import { payhereGetCurrentCompanyStats } from "./actions/get-current-company-stats.mjs";
|
|
6
|
+
import { payhereGetUser } from "./actions/get-user.mjs";
|
|
7
|
+
import { payhereListCustomers } from "./actions/list-customers.mjs";
|
|
8
|
+
import { payhereListHooks } from "./actions/list-hooks.mjs";
|
|
9
|
+
import { payhereListPayments } from "./actions/list-payments.mjs";
|
|
10
|
+
import { payhereListPlans } from "./actions/list-plans.mjs";
|
|
11
|
+
import { payhereListSubscriptions } from "./actions/list-subscriptions.mjs";
|
|
12
|
+
import { payhereUpdateCurrentCompany } from "./actions/update-current-company.mjs";
|
|
13
|
+
import { payhereUpdatePlan } from "./actions/update-plan.mjs";
|
|
14
|
+
import { payhere } from "./app.mjs";
|
|
15
|
+
import { payhereCatalog } from "./catalog.mjs";
|
|
16
|
+
export { payhere, payhereCatalog, payhereCreateHook, payhereCreatePlan, payhereDeleteHook, payhereGetCurrentCompany, payhereGetCurrentCompanyStats, payhereGetUser, payhereListCustomers, payhereListHooks, payhereListPayments, payhereListPlans, payhereListSubscriptions, payhereUpdateCurrentCompany, payhereUpdatePlan };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { payhere } from "./app.mjs";
|
|
2
|
+
import { payhereCatalog } from "./catalog.mjs";
|
|
3
|
+
import { payhereCreateHook } from "./actions/create-hook.mjs";
|
|
4
|
+
import { payhereCreatePlan } from "./actions/create-plan.mjs";
|
|
5
|
+
import { payhereDeleteHook } from "./actions/delete-hook.mjs";
|
|
6
|
+
import { payhereGetCurrentCompany } from "./actions/get-current-company.mjs";
|
|
7
|
+
import { payhereGetCurrentCompanyStats } from "./actions/get-current-company-stats.mjs";
|
|
8
|
+
import { payhereGetUser } from "./actions/get-user.mjs";
|
|
9
|
+
import { payhereListCustomers } from "./actions/list-customers.mjs";
|
|
10
|
+
import { payhereListHooks } from "./actions/list-hooks.mjs";
|
|
11
|
+
import { payhereListPayments } from "./actions/list-payments.mjs";
|
|
12
|
+
import { payhereListPlans } from "./actions/list-plans.mjs";
|
|
13
|
+
import { payhereListSubscriptions } from "./actions/list-subscriptions.mjs";
|
|
14
|
+
import { payhereUpdateCurrentCompany } from "./actions/update-current-company.mjs";
|
|
15
|
+
import { payhereUpdatePlan } from "./actions/update-plan.mjs";
|
|
16
|
+
import "./actions/index.mjs";
|
|
17
|
+
export { payhere, payhereCatalog, payhereCreateHook, payhereCreatePlan, payhereDeleteHook, payhereGetCurrentCompany, payhereGetCurrentCompanyStats, payhereGetUser, payhereListCustomers, payhereListHooks, payhereListPayments, payhereListPlans, payhereListSubscriptions, payhereUpdateCurrentCompany, payhereUpdatePlan };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/payhere",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/payhere"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|