@keystrokehq/payhere 0.1.0 → 0.1.2
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 +8 -8
- 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 +8 -8
- package/dist/actions/create-hook.mjs.map +1 -1
- 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.map +1 -1
- package/dist/actions/delete-hook.cjs +2 -2
- 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 +2 -2
- package/dist/actions/delete-hook.mjs.map +1 -1
- package/dist/actions/get-current-company-stats.cjs +6 -6
- 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 +6 -6
- package/dist/actions/get-current-company-stats.mjs.map +1 -1
- 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.map +1 -1
- package/dist/actions/get-user.cjs +6 -6
- 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 +6 -6
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +9 -9
- 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 +9 -9
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-hooks.cjs +8 -8
- 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 +8 -8
- package/dist/actions/list-hooks.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +20 -20
- 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 +20 -20
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +18 -18
- 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 +18 -18
- package/dist/actions/list-plans.mjs.map +1 -1
- package/dist/actions/list-subscriptions.cjs +14 -14
- 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 +14 -14
- package/dist/actions/list-subscriptions.mjs.map +1 -1
- 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.map +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.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,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-plans.d.ts
|
|
4
|
-
declare const PayhereListPlansInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PayhereListPlansInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PayhereListPlansOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
14
|
+
type: z.ZodNullable<z.ZodString>;
|
|
15
|
+
price: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
hidden: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
18
|
+
show_qty: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
setup_fee: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
21
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
billing_day: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
limited_qty: z.ZodNullable<z.ZodBoolean>;
|
|
25
|
+
success_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
cancel_after: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
payment_type: z.ZodNullable<z.ZodString>;
|
|
29
|
+
receipt_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
31
|
+
has_setup_fee: z.ZodNullable<z.ZodBoolean>;
|
|
32
|
+
price_in_cents: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
billing_interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
trial_period_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
user_selects_amount: z.ZodNullable<z.ZodBoolean>;
|
|
38
|
+
billing_interval_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
41
|
+
next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
declare const payhereListPlans: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
49
|
+
page?: number | undefined;
|
|
50
|
+
per_page?: number | undefined;
|
|
51
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { payhereListPlans };
|
|
9
54
|
//# sourceMappingURL=list-plans.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-plans.d.cts","names":[],"sources":["../../src/actions/list-plans.ts"],"mappings":";;;cAIa,qBAAA,
|
|
1
|
+
{"version":3,"file":"list-plans.d.cts","names":[],"sources":["../../src/actions/list-plans.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cA0CrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-plans.d.ts
|
|
4
|
-
declare const PayhereListPlansInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PayhereListPlansInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PayhereListPlansOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
14
|
+
type: z.ZodNullable<z.ZodString>;
|
|
15
|
+
price: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
hidden: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
18
|
+
show_qty: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
setup_fee: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
21
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
billing_day: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
limited_qty: z.ZodNullable<z.ZodBoolean>;
|
|
25
|
+
success_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
cancel_after: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
payment_type: z.ZodNullable<z.ZodString>;
|
|
29
|
+
receipt_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
|
|
31
|
+
has_setup_fee: z.ZodNullable<z.ZodBoolean>;
|
|
32
|
+
price_in_cents: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
billing_interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
trial_period_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
user_selects_amount: z.ZodNullable<z.ZodBoolean>;
|
|
38
|
+
billing_interval_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
41
|
+
next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
+
prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
declare const payhereListPlans: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
49
|
+
page?: number | undefined;
|
|
50
|
+
per_page?: number | undefined;
|
|
51
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { payhereListPlans };
|
|
9
54
|
//# sourceMappingURL=list-plans.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-plans.d.mts","names":[],"sources":["../../src/actions/list-plans.ts"],"mappings":";;;cAIa,qBAAA,
|
|
1
|
+
{"version":3,"file":"list-plans.d.mts","names":[],"sources":["../../src/actions/list-plans.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cA0CrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
|
|
@@ -6,42 +6,42 @@ const PayhereListPlansInput = z.object({
|
|
|
6
6
|
per_page: z.number().int().describe("Number of plans per page. Default is 20, maximum is 100.").optional()
|
|
7
7
|
}).describe("Request model for listing plans with pagination support.");
|
|
8
8
|
const PayhereListPlans_PlanItemSchema = z.object({
|
|
9
|
-
id: z.number().int().describe("Unique identifier for the plan."),
|
|
9
|
+
id: z.number().int().describe("Unique identifier for the plan.").nullable(),
|
|
10
10
|
qty: z.number().int().describe("Available quantity if limited.").nullable().optional(),
|
|
11
|
-
name: z.string().describe("Name of the plan."),
|
|
12
|
-
slug: z.string().describe("URL-friendly plan identifier."),
|
|
13
|
-
type: z.string().describe("Plan type."),
|
|
14
|
-
price: z.number().describe("Price in decimal format."),
|
|
15
|
-
hidden: z.boolean().describe("Whether the plan is hidden from public view."),
|
|
16
|
-
currency: z.string().describe("Currency code (e.g., USD, EUR)."),
|
|
17
|
-
show_qty: z.boolean().describe("Display quantity selector."),
|
|
11
|
+
name: z.string().describe("Name of the plan.").nullable(),
|
|
12
|
+
slug: z.string().describe("URL-friendly plan identifier.").nullable(),
|
|
13
|
+
type: z.string().describe("Plan type.").nullable(),
|
|
14
|
+
price: z.number().describe("Price in decimal format.").nullable(),
|
|
15
|
+
hidden: z.boolean().describe("Whether the plan is hidden from public view.").nullable(),
|
|
16
|
+
currency: z.string().describe("Currency code (e.g., USD, EUR).").nullable(),
|
|
17
|
+
show_qty: z.boolean().describe("Display quantity selector.").nullable(),
|
|
18
18
|
setup_fee: z.number().describe("One-time setup fee.").nullable().optional(),
|
|
19
|
-
created_at: z.string().describe("ISO 8601 timestamp of creation."),
|
|
20
|
-
updated_at: z.string().describe("ISO 8601 timestamp of last update."),
|
|
19
|
+
created_at: z.string().describe("ISO 8601 timestamp of creation.").nullable(),
|
|
20
|
+
updated_at: z.string().describe("ISO 8601 timestamp of last update.").nullable(),
|
|
21
21
|
billing_day: z.number().int().describe("Day of month for billing.").nullable().optional(),
|
|
22
22
|
description: z.string().describe("Description of the plan.").nullable().optional(),
|
|
23
|
-
limited_qty: z.boolean().describe("Whether plan has limited quantity."),
|
|
23
|
+
limited_qty: z.boolean().describe("Whether plan has limited quantity.").nullable(),
|
|
24
24
|
success_url: z.string().describe("Redirect URL after successful payment.").nullable().optional(),
|
|
25
25
|
webhook_url: z.string().describe("Webhook URL for notifications.").nullable().optional(),
|
|
26
26
|
cancel_after: z.number().int().describe("Auto-cancel subscription after N cycles.").nullable().optional(),
|
|
27
|
-
payment_type: z.string().describe("Type of payment (one-time or recurring)."),
|
|
27
|
+
payment_type: z.string().describe("Type of payment (one-time or recurring).").nullable(),
|
|
28
28
|
receipt_text: z.string().describe("Custom receipt text.").nullable().optional(),
|
|
29
29
|
custom_fields: z.array(z.object({})).describe("Custom form fields.").nullable().optional(),
|
|
30
|
-
has_setup_fee: z.boolean().describe("Whether setup fee is enabled."),
|
|
31
|
-
price_in_cents: z.number().int().describe("Price in cents."),
|
|
30
|
+
has_setup_fee: z.boolean().describe("Whether setup fee is enabled.").nullable(),
|
|
31
|
+
price_in_cents: z.number().int().describe("Price in cents.").nullable(),
|
|
32
32
|
pay_button_text: z.string().describe("Custom text for payment button.").nullable().optional(),
|
|
33
33
|
billing_interval: z.string().describe("Billing cycle interval (day, week, month, year).").nullable().optional(),
|
|
34
34
|
trial_period_days: z.number().int().describe("Number of trial days.").nullable().optional(),
|
|
35
35
|
min_billing_cycles: z.number().int().describe("Minimum number of billing cycles.").nullable().optional(),
|
|
36
|
-
user_selects_amount: z.boolean().describe("Allow user to select amount."),
|
|
36
|
+
user_selects_amount: z.boolean().describe("Allow user to select amount.").nullable(),
|
|
37
37
|
billing_interval_count: z.number().int().describe("Number of intervals between billings.").nullable().optional()
|
|
38
38
|
}).describe("Represents a single plan object in the response.");
|
|
39
39
|
const PayhereListPlans_PaginationMetaSchema = z.object({
|
|
40
40
|
next_page: z.number().int().describe("Next page number or null if last page.").nullable().optional(),
|
|
41
41
|
prev_page: z.number().int().describe("Previous page number or null if first page.").nullable().optional(),
|
|
42
|
-
total_count: z.number().int().describe("Total number of plans."),
|
|
43
|
-
total_pages: z.number().int().describe("Total number of pages."),
|
|
44
|
-
current_page: z.number().int().describe("Current page number.")
|
|
42
|
+
total_count: z.number().int().describe("Total number of plans.").nullable(),
|
|
43
|
+
total_pages: z.number().int().describe("Total number of pages.").nullable(),
|
|
44
|
+
current_page: z.number().int().describe("Current page number.").nullable()
|
|
45
45
|
}).describe("Pagination metadata for the response.");
|
|
46
46
|
const payhereListPlans = action("PAYHERE_LIST_PLANS", {
|
|
47
47
|
slug: "payhere-list-plans",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-plans.mjs","names":[],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPlansInput
|
|
1
|
+
{"version":3,"file":"list-plans.mjs","names":[],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPlansInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of plans per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing plans with pagination support.\");\nconst PayhereListPlans_PlanItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the plan.\").nullable(),\n qty: z.number().int().describe(\"Available quantity if limited.\").nullable().optional(),\n name: z.string().describe(\"Name of the plan.\").nullable(),\n slug: z.string().describe(\"URL-friendly plan identifier.\").nullable(),\n type: z.string().describe(\"Plan type.\").nullable(),\n price: z.number().describe(\"Price in decimal format.\").nullable(),\n hidden: z.boolean().describe(\"Whether the plan is hidden from public view.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR).\").nullable(),\n show_qty: z.boolean().describe(\"Display quantity selector.\").nullable(),\n setup_fee: z.number().describe(\"One-time setup fee.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable(),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Description of the plan.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether plan has limited quantity.\").nullable(),\n success_url: z.string().describe(\"Redirect URL after successful payment.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL for notifications.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N cycles.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of payment (one-time or recurring).\").nullable(),\n receipt_text: z.string().describe(\"Custom receipt text.\").nullable().optional(),\n custom_fields: z.array(z.object({})).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether setup fee is enabled.\").nullable(),\n price_in_cents: z.number().int().describe(\"Price in cents.\").nullable(),\n pay_button_text: z.string().describe(\"Custom text for payment button.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing cycle interval (day, week, month, year).\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Number of trial days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum number of billing cycles.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Allow user to select amount.\").nullable(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).describe(\"Represents a single plan object in the response.\");\nconst PayhereListPlans_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number or null if last page.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number or null if first page.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of plans.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).describe(\"Pagination metadata for the response.\");\nexport const PayhereListPlansOutput = z.object({\n data: z.array(PayhereListPlans_PlanItemSchema).describe(\"Collection of plan objects.\"),\n meta: PayhereListPlans_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing plans.\");\n\nexport const payhereListPlans = action(\"PAYHERE_LIST_PLANS\", {\n slug: \"payhere-list-plans\",\n name: \"List Plans\",\n description: \"Tool to list all plans in your PayHere account. Use when you need to retrieve and paginate through available plans.\",\n input: PayhereListPlansInput,\n output: PayhereListPlansOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,kCAAkC,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,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AMnD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoC,EAAE,OAAO;EAC7C,MAAM,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,6BAA6B;EACrF,MAAM,sCAAsC,SAAS;CACvD,CAAC,CAAC,CAAC,SAAS,mCAOF;AACV,CAAC"}
|
|
@@ -6,40 +6,40 @@ const PayhereListSubscriptionsInput = zod.z.object({
|
|
|
6
6
|
per_page: zod.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 = zod.z.object({
|
|
9
|
-
id: zod.z.number().int().describe("Membership plan identifier"),
|
|
9
|
+
id: zod.z.number().int().describe("Membership plan identifier").nullable(),
|
|
10
10
|
name: zod.z.string().describe("Membership plan name").nullable().optional(),
|
|
11
11
|
description: zod.z.string().describe("Plan description").nullable().optional()
|
|
12
12
|
});
|
|
13
13
|
const PayhereListSubscriptions_CustomerSchema = zod.z.object({
|
|
14
|
-
id: zod.z.number().int().describe("Customer identifier"),
|
|
14
|
+
id: zod.z.number().int().describe("Customer identifier").nullable(),
|
|
15
15
|
name: zod.z.string().describe("Customer name").nullable().optional(),
|
|
16
16
|
email: zod.z.string().describe("Customer email address").nullable().optional()
|
|
17
17
|
});
|
|
18
18
|
const PayhereListSubscriptions_SubscriptionSchema = zod.z.object({
|
|
19
|
-
id: zod.z.number().int().describe("Subscription identifier"),
|
|
19
|
+
id: zod.z.number().int().describe("Subscription identifier").nullable(),
|
|
20
20
|
plan: PayhereListSubscriptions_MembershipPlanSchema.nullable().optional(),
|
|
21
|
-
status: zod.z.string().describe("Current state (e.g., 'active', 'canceled')"),
|
|
21
|
+
status: zod.z.string().describe("Current state (e.g., 'active', 'canceled')").nullable(),
|
|
22
22
|
customer: PayhereListSubscriptions_CustomerSchema.nullable().optional(),
|
|
23
23
|
metadata: zod.z.object({}).describe("Custom key-value data").nullable().optional(),
|
|
24
|
-
provider: zod.z.string().describe("Payment processor name"),
|
|
25
|
-
created_at: zod.z.string().describe("Record creation timestamp in ISO 8601 format"),
|
|
26
|
-
updated_at: zod.z.string().describe("Last modification timestamp in ISO 8601 format"),
|
|
27
|
-
customer_id: zod.z.number().int().describe("Associated customer ID"),
|
|
24
|
+
provider: zod.z.string().describe("Payment processor name").nullable(),
|
|
25
|
+
created_at: zod.z.string().describe("Record creation timestamp in ISO 8601 format").nullable(),
|
|
26
|
+
updated_at: zod.z.string().describe("Last modification timestamp in ISO 8601 format").nullable(),
|
|
27
|
+
customer_id: zod.z.number().int().describe("Associated customer ID").nullable(),
|
|
28
28
|
last_charged: zod.z.string().describe("Most recent charge timestamp in ISO 8601 format").nullable().optional(),
|
|
29
29
|
next_charge_at: zod.z.string().describe("Scheduled next billing date in ISO 8601 format").nullable().optional(),
|
|
30
30
|
stripe_plan_id: zod.z.string().describe("External Stripe plan reference").nullable().optional(),
|
|
31
|
-
billing_interval: zod.z.string().describe("Frequency unit (e.g., 'month', 'year')"),
|
|
32
|
-
membership_plan_id: zod.z.number().int().describe("Associated plan ID"),
|
|
31
|
+
billing_interval: zod.z.string().describe("Frequency unit (e.g., 'month', 'year')").nullable(),
|
|
32
|
+
membership_plan_id: zod.z.number().int().describe("Associated plan ID").nullable(),
|
|
33
33
|
min_billing_cycles: zod.z.number().int().describe("Minimum billing periods").nullable().optional(),
|
|
34
|
-
billing_interval_count: zod.z.number().int().describe("Number of intervals between charges"),
|
|
34
|
+
billing_interval_count: zod.z.number().int().describe("Number of intervals between charges").nullable(),
|
|
35
35
|
stripe_subscription_id: zod.z.string().describe("External Stripe subscription reference").nullable().optional()
|
|
36
36
|
});
|
|
37
37
|
const PayhereListSubscriptions_PaginationMetaSchema = zod.z.object({
|
|
38
38
|
next_page: zod.z.number().int().describe("Following page or null").nullable().optional(),
|
|
39
39
|
prev_page: zod.z.number().int().describe("Previous page or null").nullable().optional(),
|
|
40
|
-
total_count: zod.z.number().int().describe("Total subscription count"),
|
|
41
|
-
total_pages: zod.z.number().int().describe("Total available pages"),
|
|
42
|
-
current_page: zod.z.number().int().describe("Active page number")
|
|
40
|
+
total_count: zod.z.number().int().describe("Total subscription count").nullable(),
|
|
41
|
+
total_pages: zod.z.number().int().describe("Total available pages").nullable(),
|
|
42
|
+
current_page: zod.z.number().int().describe("Active page number").nullable()
|
|
43
43
|
});
|
|
44
44
|
const PayhereListSubscriptionsOutput = zod.z.object({
|
|
45
45
|
data: zod.z.array(PayhereListSubscriptions_SubscriptionSchema).describe("Collection of subscription objects"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-subscriptions.cjs","names":["z","action"],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListSubscriptionsInput
|
|
1
|
+
{"version":3,"file":"list-subscriptions.cjs","names":["z","action"],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListSubscriptionsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Defaults to 1 if not specified.\").optional(),\n per_page: z.number().int().describe(\"Number of records returned per page. Defaults to 20 if not specified. Maximum value is 100.\").optional(),\n});\nconst PayhereListSubscriptions_MembershipPlanSchema = z.object({\n id: z.number().int().describe(\"Membership plan identifier\").nullable(),\n name: z.string().describe(\"Membership plan name\").nullable().optional(),\n description: z.string().describe(\"Plan description\").nullable().optional(),\n});\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});\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.object({}).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});\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});\nexport const PayhereListSubscriptionsOutput = z.object({\n data: z.array(PayhereListSubscriptions_SubscriptionSchema).describe(\"Collection of subscription objects\"),\n meta: PayhereListSubscriptions_PaginationMetaSchema.nullable(),\n});\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: PayhereListSubscri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AAS;AAC5G,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACzE,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,oCAAoC;CACxG,MAAM,8CAA8C,SAAS;AAC/D,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -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.$strip>>>;
|
|
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.$strip>>>;
|
|
22
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
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.$strip>>;
|
|
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.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
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.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-subscriptions.d.cts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"list-subscriptions.d.cts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -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.$strip>>>;
|
|
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.$strip>>>;
|
|
22
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
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.$strip>>;
|
|
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.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
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,40 +6,40 @@ 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
|
});
|
|
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
|
});
|
|
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
23
|
metadata: z.object({}).describe("Custom key-value data").nullable().optional(),
|
|
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"),
|
|
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
|
});
|
|
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")
|
|
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
43
|
});
|
|
44
44
|
const payhereListSubscriptions = action("PAYHERE_LIST_SUBSCRIPTIONS", {
|
|
45
45
|
slug: "payhere-list-subscriptions",
|
|
@@ -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});\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});\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.object({}).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});\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});\nexport const PayhereListSubscriptionsOutput = z.object({\n data: z.array(PayhereListSubscriptions_SubscriptionSchema).describe(\"Collection of subscription objects\"),\n meta: PayhereListSubscriptions_PaginationMetaSchema.nullable(),\n});\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;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAC9I,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAA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OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC7E,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAClG,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,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;AAMD,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,CAOU;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-current-company.cjs","names":["z","action"],"sources":["../../src/actions/update-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereUpdateCurrentCompanyInput
|
|
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});\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});\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,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA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