@keystrokehq/payhere 0.1.0 → 0.1.3
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 +10 -10
- package/dist/actions/create-hook.cjs.map +1 -1
- package/dist/actions/create-hook.d.cts +26 -3
- package/dist/actions/create-hook.d.cts.map +1 -1
- package/dist/actions/create-hook.d.mts +26 -3
- package/dist/actions/create-hook.d.mts.map +1 -1
- package/dist/actions/create-hook.mjs +10 -10
- package/dist/actions/create-hook.mjs.map +1 -1
- package/dist/actions/create-plan.cjs +2 -2
- package/dist/actions/create-plan.cjs.map +1 -1
- package/dist/actions/create-plan.d.cts +80 -3
- package/dist/actions/create-plan.d.cts.map +1 -1
- package/dist/actions/create-plan.d.mts +80 -3
- package/dist/actions/create-plan.d.mts.map +1 -1
- package/dist/actions/create-plan.mjs +2 -2
- package/dist/actions/create-plan.mjs.map +1 -1
- package/dist/actions/delete-hook.cjs +3 -3
- package/dist/actions/delete-hook.cjs.map +1 -1
- package/dist/actions/delete-hook.d.cts +10 -3
- package/dist/actions/delete-hook.d.cts.map +1 -1
- package/dist/actions/delete-hook.d.mts +10 -3
- package/dist/actions/delete-hook.d.mts.map +1 -1
- package/dist/actions/delete-hook.mjs +3 -3
- package/dist/actions/delete-hook.mjs.map +1 -1
- package/dist/actions/get-current-company-stats.cjs +7 -7
- package/dist/actions/get-current-company-stats.cjs.map +1 -1
- package/dist/actions/get-current-company-stats.d.cts +10 -3
- package/dist/actions/get-current-company-stats.d.cts.map +1 -1
- package/dist/actions/get-current-company-stats.d.mts +10 -3
- package/dist/actions/get-current-company-stats.d.mts.map +1 -1
- package/dist/actions/get-current-company-stats.mjs +7 -7
- package/dist/actions/get-current-company-stats.mjs.map +1 -1
- package/dist/actions/get-current-company.cjs +2 -2
- package/dist/actions/get-current-company.cjs.map +1 -1
- package/dist/actions/get-current-company.d.cts +26 -3
- package/dist/actions/get-current-company.d.cts.map +1 -1
- package/dist/actions/get-current-company.d.mts +26 -3
- package/dist/actions/get-current-company.d.mts.map +1 -1
- package/dist/actions/get-current-company.mjs +2 -2
- package/dist/actions/get-current-company.mjs.map +1 -1
- package/dist/actions/get-user.cjs +7 -7
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +10 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +10 -3
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +7 -7
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +13 -13
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +27 -3
- package/dist/actions/list-customers.d.cts.map +1 -1
- package/dist/actions/list-customers.d.mts +27 -3
- package/dist/actions/list-customers.d.mts.map +1 -1
- package/dist/actions/list-customers.mjs +13 -13
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-hooks.cjs +10 -10
- package/dist/actions/list-hooks.cjs.map +1 -1
- package/dist/actions/list-hooks.d.cts +14 -3
- package/dist/actions/list-hooks.d.cts.map +1 -1
- package/dist/actions/list-hooks.d.mts +14 -3
- package/dist/actions/list-hooks.d.mts.map +1 -1
- package/dist/actions/list-hooks.mjs +10 -10
- package/dist/actions/list-hooks.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +23 -23
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +36 -3
- package/dist/actions/list-payments.d.cts.map +1 -1
- package/dist/actions/list-payments.d.mts +36 -3
- package/dist/actions/list-payments.d.mts.map +1 -1
- package/dist/actions/list-payments.mjs +23 -23
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +22 -22
- package/dist/actions/list-plans.cjs.map +1 -1
- package/dist/actions/list-plans.d.cts +48 -3
- package/dist/actions/list-plans.d.cts.map +1 -1
- package/dist/actions/list-plans.d.mts +48 -3
- package/dist/actions/list-plans.d.mts.map +1 -1
- package/dist/actions/list-plans.mjs +22 -22
- package/dist/actions/list-plans.mjs.map +1 -1
- package/dist/actions/list-subscriptions.cjs +20 -20
- package/dist/actions/list-subscriptions.cjs.map +1 -1
- package/dist/actions/list-subscriptions.d.cts +44 -3
- package/dist/actions/list-subscriptions.d.cts.map +1 -1
- package/dist/actions/list-subscriptions.d.mts +44 -3
- package/dist/actions/list-subscriptions.d.mts.map +1 -1
- package/dist/actions/list-subscriptions.mjs +20 -20
- package/dist/actions/list-subscriptions.mjs.map +1 -1
- package/dist/actions/update-current-company.cjs +2 -2
- package/dist/actions/update-current-company.cjs.map +1 -1
- package/dist/actions/update-current-company.d.cts +52 -3
- package/dist/actions/update-current-company.d.cts.map +1 -1
- package/dist/actions/update-current-company.d.mts +52 -3
- package/dist/actions/update-current-company.d.mts.map +1 -1
- package/dist/actions/update-current-company.mjs +2 -2
- package/dist/actions/update-current-company.mjs.map +1 -1
- package/dist/actions/update-plan.cjs +1 -1
- package/dist/actions/update-plan.cjs.map +1 -1
- package/dist/actions/update-plan.d.cts +54 -3
- package/dist/actions/update-plan.d.cts.map +1 -1
- package/dist/actions/update-plan.d.mts +54 -3
- package/dist/actions/update-plan.d.mts.map +1 -1
- package/dist/actions/update-plan.mjs +1 -1
- package/dist/actions/update-plan.mjs.map +1 -1
- package/dist/catalog.cjs +14 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +13 -0
- package/dist/catalog.d.mts +13 -0
- package/dist/catalog.mjs +14 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-subscriptions.d.ts
|
|
4
|
-
declare const PayhereListSubscriptionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PayhereListSubscriptionsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PayhereListSubscriptionsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$loose>>>;
|
|
16
|
+
status: z.ZodNullable<z.ZodString>;
|
|
17
|
+
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
24
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
25
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
26
|
+
customer_id: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
last_charged: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
next_charge_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
stripe_plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
billing_interval: z.ZodNullable<z.ZodString>;
|
|
31
|
+
membership_plan_id: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
billing_interval_count: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
stripe_subscription_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
37
|
+
next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
|
+
prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
|
+
}, z.core.$loose>;
|
|
44
|
+
declare const payhereListSubscriptions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
48
|
//#endregion
|
|
8
49
|
export { payhereListSubscriptions };
|
|
9
50
|
//# sourceMappingURL=list-subscriptions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-subscriptions.d.mts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"list-subscriptions.d.mts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -6,41 +6,41 @@ const PayhereListSubscriptionsInput = z.object({
|
|
|
6
6
|
per_page: z.number().int().describe("Number of records returned per page. Defaults to 20 if not specified. Maximum value is 100.").optional()
|
|
7
7
|
});
|
|
8
8
|
const PayhereListSubscriptions_MembershipPlanSchema = z.object({
|
|
9
|
-
id: z.number().int().describe("Membership plan identifier"),
|
|
9
|
+
id: z.number().int().describe("Membership plan identifier").nullable(),
|
|
10
10
|
name: z.string().describe("Membership plan name").nullable().optional(),
|
|
11
11
|
description: z.string().describe("Plan description").nullable().optional()
|
|
12
|
-
});
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const PayhereListSubscriptions_CustomerSchema = z.object({
|
|
14
|
-
id: z.number().int().describe("Customer identifier"),
|
|
14
|
+
id: z.number().int().describe("Customer identifier").nullable(),
|
|
15
15
|
name: z.string().describe("Customer name").nullable().optional(),
|
|
16
16
|
email: z.string().describe("Customer email address").nullable().optional()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const PayhereListSubscriptions_SubscriptionSchema = z.object({
|
|
19
|
-
id: z.number().int().describe("Subscription identifier"),
|
|
19
|
+
id: z.number().int().describe("Subscription identifier").nullable(),
|
|
20
20
|
plan: PayhereListSubscriptions_MembershipPlanSchema.nullable().optional(),
|
|
21
|
-
status: z.string().describe("Current state (e.g., 'active', 'canceled')"),
|
|
21
|
+
status: z.string().describe("Current state (e.g., 'active', 'canceled')").nullable(),
|
|
22
22
|
customer: PayhereListSubscriptions_CustomerSchema.nullable().optional(),
|
|
23
|
-
metadata: z.
|
|
24
|
-
provider: z.string().describe("Payment processor name"),
|
|
25
|
-
created_at: z.string().describe("Record creation timestamp in ISO 8601 format"),
|
|
26
|
-
updated_at: z.string().describe("Last modification timestamp in ISO 8601 format"),
|
|
27
|
-
customer_id: z.number().int().describe("Associated customer ID"),
|
|
23
|
+
metadata: z.record(z.string(), z.unknown()).describe("Custom key-value data").nullable().optional(),
|
|
24
|
+
provider: z.string().describe("Payment processor name").nullable(),
|
|
25
|
+
created_at: z.string().describe("Record creation timestamp in ISO 8601 format").nullable(),
|
|
26
|
+
updated_at: z.string().describe("Last modification timestamp in ISO 8601 format").nullable(),
|
|
27
|
+
customer_id: z.number().int().describe("Associated customer ID").nullable(),
|
|
28
28
|
last_charged: z.string().describe("Most recent charge timestamp in ISO 8601 format").nullable().optional(),
|
|
29
29
|
next_charge_at: z.string().describe("Scheduled next billing date in ISO 8601 format").nullable().optional(),
|
|
30
30
|
stripe_plan_id: z.string().describe("External Stripe plan reference").nullable().optional(),
|
|
31
|
-
billing_interval: z.string().describe("Frequency unit (e.g., 'month', 'year')"),
|
|
32
|
-
membership_plan_id: z.number().int().describe("Associated plan ID"),
|
|
31
|
+
billing_interval: z.string().describe("Frequency unit (e.g., 'month', 'year')").nullable(),
|
|
32
|
+
membership_plan_id: z.number().int().describe("Associated plan ID").nullable(),
|
|
33
33
|
min_billing_cycles: z.number().int().describe("Minimum billing periods").nullable().optional(),
|
|
34
|
-
billing_interval_count: z.number().int().describe("Number of intervals between charges"),
|
|
34
|
+
billing_interval_count: z.number().int().describe("Number of intervals between charges").nullable(),
|
|
35
35
|
stripe_subscription_id: z.string().describe("External Stripe subscription reference").nullable().optional()
|
|
36
|
-
});
|
|
36
|
+
}).passthrough();
|
|
37
37
|
const PayhereListSubscriptions_PaginationMetaSchema = z.object({
|
|
38
38
|
next_page: z.number().int().describe("Following page or null").nullable().optional(),
|
|
39
39
|
prev_page: z.number().int().describe("Previous page or null").nullable().optional(),
|
|
40
|
-
total_count: z.number().int().describe("Total subscription count"),
|
|
41
|
-
total_pages: z.number().int().describe("Total available pages"),
|
|
42
|
-
current_page: z.number().int().describe("Active page number")
|
|
43
|
-
});
|
|
40
|
+
total_count: z.number().int().describe("Total subscription count").nullable(),
|
|
41
|
+
total_pages: z.number().int().describe("Total available pages").nullable(),
|
|
42
|
+
current_page: z.number().int().describe("Active page number").nullable()
|
|
43
|
+
}).passthrough();
|
|
44
44
|
const payhereListSubscriptions = action("PAYHERE_LIST_SUBSCRIPTIONS", {
|
|
45
45
|
slug: "payhere-list-subscriptions",
|
|
46
46
|
name: "List subscriptions",
|
|
@@ -49,7 +49,7 @@ const payhereListSubscriptions = action("PAYHERE_LIST_SUBSCRIPTIONS", {
|
|
|
49
49
|
output: z.object({
|
|
50
50
|
data: z.array(PayhereListSubscriptions_SubscriptionSchema).describe("Collection of subscription objects"),
|
|
51
51
|
meta: PayhereListSubscriptions_PaginationMetaSchema.nullable()
|
|
52
|
-
})
|
|
52
|
+
}).passthrough()
|
|
53
53
|
});
|
|
54
54
|
//#endregion
|
|
55
55
|
export { payhereListSubscriptions };
|
|
@@ -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
|
|
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":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;C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,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACzE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,oCAAoC;EACxG,MAAM,8CAA8C,SAAS;CAC/D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -20,7 +20,7 @@ const PayhereUpdateCurrentCompany_CompanyUserSchema = zod.z.object({
|
|
|
20
20
|
name: zod.z.string().describe("User name").nullable().optional(),
|
|
21
21
|
role: zod.z.string().describe("User role").nullable().optional(),
|
|
22
22
|
email: zod.z.string().describe("User email address").nullable().optional()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const PayhereUpdateCurrentCompanyOutput = zod.z.object({
|
|
25
25
|
id: zod.z.number().int().describe("Company identifier").nullable().optional(),
|
|
26
26
|
name: zod.z.string().describe("Display name of the company").nullable().optional(),
|
|
@@ -39,7 +39,7 @@ const PayhereUpdateCurrentCompanyOutput = zod.z.object({
|
|
|
39
39
|
support_email: zod.z.string().describe("Support email address").nullable().optional(),
|
|
40
40
|
vat_registered: zod.z.boolean().describe("VAT registration status").nullable().optional(),
|
|
41
41
|
subscription_status: zod.z.string().describe("Current subscription status").nullable().optional()
|
|
42
|
-
});
|
|
42
|
+
}).passthrough();
|
|
43
43
|
const payhereUpdateCurrentCompany = require_action.action("PAYHERE_UPDATE_CURRENT_COMPANY", {
|
|
44
44
|
slug: "payhere-update-current-company",
|
|
45
45
|
name: "Update Current Company",
|
|
@@ -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
|
|
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":";;;AAIA,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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CAAC,SAAS;CACpF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,58 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-current-company.d.ts
|
|
4
|
-
declare const PayhereUpdateCurrentCompanyInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PayhereUpdateCurrentCompanyInput: z.ZodObject<{
|
|
5
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
s3key: z.ZodString;
|
|
8
|
+
mimetype: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
address: z.ZodOptional<z.ZodString>;
|
|
12
|
+
website: z.ZodOptional<z.ZodString>;
|
|
13
|
+
legal_name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
button_text: z.ZodOptional<z.ZodString>;
|
|
15
|
+
button_color: z.ZodOptional<z.ZodString>;
|
|
16
|
+
support_email: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const PayhereUpdateCurrentCompanyOutput: z.ZodObject<{
|
|
19
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$loose>>>>;
|
|
29
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
vat_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
legal_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
button_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
support_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
vat_registered: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
|
+
subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
}, z.core.$loose>;
|
|
42
|
+
declare const payhereUpdateCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
56
|
//#endregion
|
|
8
57
|
export { payhereUpdateCurrentCompany };
|
|
9
58
|
//# 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":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"update-current-company.d.cts","names":[],"sources":["../../src/actions/update-current-company.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoBjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -1,9 +1,58 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-current-company.d.ts
|
|
4
|
-
declare const PayhereUpdateCurrentCompanyInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PayhereUpdateCurrentCompanyInput: z.ZodObject<{
|
|
5
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
s3key: z.ZodString;
|
|
8
|
+
mimetype: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
address: z.ZodOptional<z.ZodString>;
|
|
12
|
+
website: z.ZodOptional<z.ZodString>;
|
|
13
|
+
legal_name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
button_text: z.ZodOptional<z.ZodString>;
|
|
15
|
+
button_color: z.ZodOptional<z.ZodString>;
|
|
16
|
+
support_email: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const PayhereUpdateCurrentCompanyOutput: z.ZodObject<{
|
|
19
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
}, z.core.$loose>>>>;
|
|
29
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
vat_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
legal_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
button_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
custom_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
support_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
vat_registered: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
|
+
subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
}, z.core.$loose>;
|
|
42
|
+
declare const payhereUpdateCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
56
|
//#endregion
|
|
8
57
|
export { payhereUpdateCurrentCompany };
|
|
9
58
|
//# 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":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"update-current-company.d.mts","names":[],"sources":["../../src/actions/update-current-company.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoBjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -20,7 +20,7 @@ const PayhereUpdateCurrentCompany_CompanyUserSchema = z.object({
|
|
|
20
20
|
name: z.string().describe("User name").nullable().optional(),
|
|
21
21
|
role: z.string().describe("User role").nullable().optional(),
|
|
22
22
|
email: z.string().describe("User email address").nullable().optional()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const payhereUpdateCurrentCompany = action("PAYHERE_UPDATE_CURRENT_COMPANY", {
|
|
25
25
|
slug: "payhere-update-current-company",
|
|
26
26
|
name: "Update Current Company",
|
|
@@ -44,7 +44,7 @@ const payhereUpdateCurrentCompany = action("PAYHERE_UPDATE_CURRENT_COMPANY", {
|
|
|
44
44
|
support_email: z.string().describe("Support email address").nullable().optional(),
|
|
45
45
|
vat_registered: z.boolean().describe("VAT registration status").nullable().optional(),
|
|
46
46
|
subscription_status: z.string().describe("Current subscription status").nullable().optional()
|
|
47
|
-
})
|
|
47
|
+
}).passthrough()
|
|
48
48
|
});
|
|
49
49
|
//#endregion
|
|
50
50
|
export { payhereUpdateCurrentCompany };
|
|
@@ -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
|
|
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":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,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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AC,YAOO;AACV,CAAC"}
|
|
@@ -37,7 +37,7 @@ const PayhereUpdatePlanOutput = zod.z.object({
|
|
|
37
37
|
receipt_text: zod.z.string().describe("Custom receipt message").nullable().optional(),
|
|
38
38
|
pay_button_text: zod.z.string().describe("Button label").nullable().optional(),
|
|
39
39
|
min_billing_cycles: zod.z.number().int().describe("Minimum payments (for subscriptions)").nullable().optional()
|
|
40
|
-
}).describe("Response model for updated plan object.");
|
|
40
|
+
}).passthrough().describe("Response model for updated plan object.");
|
|
41
41
|
const payhereUpdatePlan = require_action.action("PAYHERE_UPDATE_PLAN", {
|
|
42
42
|
slug: "payhere-update-plan",
|
|
43
43
|
name: "Update Plan",
|
|
@@ -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
|
|
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: PayhereUp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C,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,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,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,60 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-plan.d.ts
|
|
4
|
-
declare const PayhereUpdatePlanInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PayhereUpdatePlanInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
10
|
+
show_qty: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
setup_fee: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
billing_day: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
15
|
+
webhook_url: z.ZodOptional<z.ZodString>;
|
|
16
|
+
cancel_after: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
receipt_text: z.ZodOptional<z.ZodString>;
|
|
18
|
+
pay_button_text: z.ZodOptional<z.ZodString>;
|
|
19
|
+
min_billing_cycles: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const PayhereUpdatePlanOutput: z.ZodObject<{
|
|
22
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
show_qty: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
+
setup_fee: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
billing_day: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
success_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
cancel_after: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
payment_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
receipt_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
+
}, z.core.$loose>;
|
|
41
|
+
declare const payhereUpdatePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
58
|
//#endregion
|
|
8
59
|
export { payhereUpdatePlan };
|
|
9
60
|
//# sourceMappingURL=update-plan.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-plan.d.cts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"update-plan.d.cts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,60 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-plan.d.ts
|
|
4
|
-
declare const PayhereUpdatePlanInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PayhereUpdatePlanInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
10
|
+
show_qty: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
setup_fee: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
billing_day: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
success_url: z.ZodOptional<z.ZodString>;
|
|
15
|
+
webhook_url: z.ZodOptional<z.ZodString>;
|
|
16
|
+
cancel_after: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
receipt_text: z.ZodOptional<z.ZodString>;
|
|
18
|
+
pay_button_text: z.ZodOptional<z.ZodString>;
|
|
19
|
+
min_billing_cycles: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const PayhereUpdatePlanOutput: z.ZodObject<{
|
|
22
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
hidden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
show_qty: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
+
setup_fee: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
billing_day: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
success_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
cancel_after: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
payment_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
receipt_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
+
}, z.core.$loose>;
|
|
41
|
+
declare const payhereUpdatePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
58
|
//#endregion
|
|
8
59
|
export { payhereUpdatePlan };
|
|
9
60
|
//# sourceMappingURL=update-plan.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-plan.d.mts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"update-plan.d.mts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -40,7 +40,7 @@ const payhereUpdatePlan = action("PAYHERE_UPDATE_PLAN", {
|
|
|
40
40
|
receipt_text: z.string().describe("Custom receipt message").nullable().optional(),
|
|
41
41
|
pay_button_text: z.string().describe("Button label").nullable().optional(),
|
|
42
42
|
min_billing_cycles: z.number().int().describe("Minimum payments (for subscriptions)").nullable().optional()
|
|
43
|
-
}).describe("Response model for updated plan object.")
|
|
43
|
+
}).passthrough().describe("Response model for updated plan object.")
|
|
44
44
|
});
|
|
45
45
|
//#endregion
|
|
46
46
|
export { payhereUpdatePlan };
|