@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,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-hook.d.ts
|
|
4
|
-
declare const PayhereDeleteHookInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PayhereDeleteHookInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PayhereDeleteHookOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const payhereDeleteHook: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
id: number;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { payhereDeleteHook };
|
|
9
16
|
//# sourceMappingURL=delete-hook.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-hook.d.mts","names":[],"sources":["../../src/actions/delete-hook.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"delete-hook.d.mts","names":[],"sources":["../../src/actions/delete-hook.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAGtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -6,9 +6,9 @@ const payhereDeleteHook = action("PAYHERE_DELETE_HOOK", {
|
|
|
6
6
|
description: "Tool to remove a REST hook listener subscription. Use when you need to stop receiving webhook events for a specific hook.",
|
|
7
7
|
input: z.object({ id: z.number().int().describe("The unique identifier of the REST hook to delete") }).describe("Request parameters for deleting a REST hook listener."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
id: z.number().int().describe("The identifier of the REST hook that was deleted"),
|
|
10
|
-
message: z.string().describe("Confirmation message indicating the hook was successfully deleted")
|
|
11
|
-
}).describe("Response schema for deleting a REST hook.")
|
|
9
|
+
id: z.number().int().describe("The identifier of the REST hook that was deleted").nullable(),
|
|
10
|
+
message: z.string().describe("Confirmation message indicating the hook was successfully deleted").nullable()
|
|
11
|
+
}).passthrough().describe("Response schema for deleting a REST hook.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { payhereDeleteHook };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-hook.mjs","names":[],"sources":["../../src/actions/delete-hook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereDeleteHookInput
|
|
1
|
+
{"version":3,"file":"delete-hook.mjs","names":[],"sources":["../../src/actions/delete-hook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereDeleteHookInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the REST hook to delete\"),\n}).describe(\"Request parameters for deleting a REST hook listener.\");\nexport const PayhereDeleteHookOutput = z.object({\n id: z.number().int().describe(\"The identifier of the REST hook that was deleted\").nullable(),\n message: z.string().describe(\"Confirmation message indicating the hook was successfully deleted\").nullable(),\n}).passthrough().describe(\"Response schema for deleting a REST hook.\");\n\nexport const payhereDeleteHook = action(\"PAYHERE_DELETE_HOOK\", {\n slug: \"payhere-delete-hook\",\n name: \"Delete Hook\",\n description: \"Tool to remove a REST hook listener subscription. Use when you need to stop receiving webhook events for a specific hook.\",\n input: PayhereDeleteHookInput,\n output: PayhereDeleteHookOutput,\n});\n"],"mappings":";;AAYA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoC,EAAE,OAAO,EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,uDAUH;CACP,QAVqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -3,13 +3,13 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-current-company-stats.ts
|
|
4
4
|
const PayhereGetCurrentCompanyStatsInput = zod.z.object({}).describe("Request model for retrieving current company payment statistics. No parameters are required.");
|
|
5
5
|
const PayhereGetCurrentCompanyStatsOutput = zod.z.object({
|
|
6
|
-
currency: zod.z.string().describe("Currency code for all monetary amounts (e.g., 'gbp', 'usd')."),
|
|
7
|
-
payments_last_30: zod.z.number().describe("Total payment amount received in the last 30 days."),
|
|
8
|
-
payments_all_time: zod.z.number().describe("Total payment amount received across all time."),
|
|
9
|
-
payments_comparison: zod.z.number().describe("Total payment amount from 30-60 days prior, used for comparison."),
|
|
10
|
-
subscribers_last_30: zod.z.number().int().describe("Number of new subscribers acquired in the last 30 days."),
|
|
11
|
-
subscribers_comparison: zod.z.number().int().describe("Number of new subscribers from the preceding 30-day period (30-60 days ago).")
|
|
12
|
-
}).describe("Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.");
|
|
6
|
+
currency: zod.z.string().describe("Currency code for all monetary amounts (e.g., 'gbp', 'usd').").nullable(),
|
|
7
|
+
payments_last_30: zod.z.number().describe("Total payment amount received in the last 30 days.").nullable(),
|
|
8
|
+
payments_all_time: zod.z.number().describe("Total payment amount received across all time.").nullable(),
|
|
9
|
+
payments_comparison: zod.z.number().describe("Total payment amount from 30-60 days prior, used for comparison.").nullable(),
|
|
10
|
+
subscribers_last_30: zod.z.number().int().describe("Number of new subscribers acquired in the last 30 days.").nullable(),
|
|
11
|
+
subscribers_comparison: zod.z.number().int().describe("Number of new subscribers from the preceding 30-day period (30-60 days ago).").nullable()
|
|
12
|
+
}).passthrough().describe("Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.");
|
|
13
13
|
const payhereGetCurrentCompanyStats = require_action.action("PAYHERE_GET_CURRENT_COMPANY_STATS", {
|
|
14
14
|
slug: "payhere-get-current-company-stats",
|
|
15
15
|
name: "Get Current Company Stats",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-current-company-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyStatsInput
|
|
1
|
+
{"version":3,"file":"get-current-company-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-current-company-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyStatsInput = z.object({}).describe(\"Request model for retrieving current company payment statistics. No parameters are required.\");\nexport const PayhereGetCurrentCompanyStatsOutput = z.object({\n currency: z.string().describe(\"Currency code for all monetary amounts (e.g., 'gbp', 'usd').\").nullable(),\n payments_last_30: z.number().describe(\"Total payment amount received in the last 30 days.\").nullable(),\n payments_all_time: z.number().describe(\"Total payment amount received across all time.\").nullable(),\n payments_comparison: z.number().describe(\"Total payment amount from 30-60 days prior, used for comparison.\").nullable(),\n subscribers_last_30: z.number().int().describe(\"Number of new subscribers acquired in the last 30 days.\").nullable(),\n subscribers_comparison: z.number().int().describe(\"Number of new subscribers from the preceding 30-day period (30-60 days ago).\").nullable(),\n}).passthrough().describe(\"Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.\");\n\nexport const payhereGetCurrentCompanyStats = action(\"PAYHERE_GET_CURRENT_COMPANY_STATS\", {\n slug: \"payhere-get-current-company-stats\",\n name: \"Get Current Company Stats\",\n description: \"Tool to fetch payment statistics for the last 30 days with comparison data from the preceding 30-day period (30-60 days ago). Use when you need to analyze recent payment trends, subscriber growth, or compare current performance against the previous month.\",\n input: PayhereGetCurrentCompanyStatsInput,\n output: PayhereGetCurrentCompanyStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8FAA8F;AACtK,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAClG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACtH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnH,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qHAAqH;AAE/I,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-current-company-stats.d.ts
|
|
4
|
-
declare const PayhereGetCurrentCompanyStatsInput: z.
|
|
5
|
-
declare const PayhereGetCurrentCompanyStatsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PayhereGetCurrentCompanyStatsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PayhereGetCurrentCompanyStatsOutput: z.ZodObject<{
|
|
6
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
7
|
+
payments_last_30: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
payments_all_time: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
payments_comparison: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
subscribers_last_30: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
subscribers_comparison: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const payhereGetCurrentCompanyStats: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { payhereGetCurrentCompanyStats };
|
|
9
16
|
//# sourceMappingURL=get-current-company-stats.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company-stats.d.cts","names":[],"sources":["../../src/actions/get-current-company-stats.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"get-current-company-stats.d.cts","names":[],"sources":["../../src/actions/get-current-company-stats.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cASnC,6BAAA,gCAA6B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-current-company-stats.d.ts
|
|
4
|
-
declare const PayhereGetCurrentCompanyStatsInput: z.
|
|
5
|
-
declare const PayhereGetCurrentCompanyStatsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PayhereGetCurrentCompanyStatsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PayhereGetCurrentCompanyStatsOutput: z.ZodObject<{
|
|
6
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
7
|
+
payments_last_30: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
payments_all_time: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
payments_comparison: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
subscribers_last_30: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
subscribers_comparison: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const payhereGetCurrentCompanyStats: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { payhereGetCurrentCompanyStats };
|
|
9
16
|
//# sourceMappingURL=get-current-company-stats.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company-stats.d.mts","names":[],"sources":["../../src/actions/get-current-company-stats.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"get-current-company-stats.d.mts","names":[],"sources":["../../src/actions/get-current-company-stats.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;cASnC,6BAAA,gCAA6B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -6,13 +6,13 @@ const payhereGetCurrentCompanyStats = action("PAYHERE_GET_CURRENT_COMPANY_STATS"
|
|
|
6
6
|
description: "Tool to fetch payment statistics for the last 30 days with comparison data from the preceding 30-day period (30-60 days ago). Use when you need to analyze recent payment trends, subscriber growth, or compare current performance against the previous month.",
|
|
7
7
|
input: z.object({}).describe("Request model for retrieving current company payment statistics. No parameters are required."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
currency: z.string().describe("Currency code for all monetary amounts (e.g., 'gbp', 'usd')."),
|
|
10
|
-
payments_last_30: z.number().describe("Total payment amount received in the last 30 days."),
|
|
11
|
-
payments_all_time: z.number().describe("Total payment amount received across all time."),
|
|
12
|
-
payments_comparison: z.number().describe("Total payment amount from 30-60 days prior, used for comparison."),
|
|
13
|
-
subscribers_last_30: z.number().int().describe("Number of new subscribers acquired in the last 30 days."),
|
|
14
|
-
subscribers_comparison: z.number().int().describe("Number of new subscribers from the preceding 30-day period (30-60 days ago).")
|
|
15
|
-
}).describe("Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.")
|
|
9
|
+
currency: z.string().describe("Currency code for all monetary amounts (e.g., 'gbp', 'usd').").nullable(),
|
|
10
|
+
payments_last_30: z.number().describe("Total payment amount received in the last 30 days.").nullable(),
|
|
11
|
+
payments_all_time: z.number().describe("Total payment amount received across all time.").nullable(),
|
|
12
|
+
payments_comparison: z.number().describe("Total payment amount from 30-60 days prior, used for comparison.").nullable(),
|
|
13
|
+
subscribers_last_30: z.number().int().describe("Number of new subscribers acquired in the last 30 days.").nullable(),
|
|
14
|
+
subscribers_comparison: z.number().int().describe("Number of new subscribers from the preceding 30-day period (30-60 days ago).").nullable()
|
|
15
|
+
}).passthrough().describe("Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { payhereGetCurrentCompanyStats };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company-stats.mjs","names":[],"sources":["../../src/actions/get-current-company-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyStatsInput
|
|
1
|
+
{"version":3,"file":"get-current-company-stats.mjs","names":[],"sources":["../../src/actions/get-current-company-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyStatsInput = z.object({}).describe(\"Request model for retrieving current company payment statistics. No parameters are required.\");\nexport const PayhereGetCurrentCompanyStatsOutput = z.object({\n currency: z.string().describe(\"Currency code for all monetary amounts (e.g., 'gbp', 'usd').\").nullable(),\n payments_last_30: z.number().describe(\"Total payment amount received in the last 30 days.\").nullable(),\n payments_all_time: z.number().describe(\"Total payment amount received across all time.\").nullable(),\n payments_comparison: z.number().describe(\"Total payment amount from 30-60 days prior, used for comparison.\").nullable(),\n subscribers_last_30: z.number().int().describe(\"Number of new subscribers acquired in the last 30 days.\").nullable(),\n subscribers_comparison: z.number().int().describe(\"Number of new subscribers from the preceding 30-day period (30-60 days ago).\").nullable(),\n}).passthrough().describe(\"Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.\");\n\nexport const payhereGetCurrentCompanyStats = action(\"PAYHERE_GET_CURRENT_COMPANY_STATS\", {\n slug: \"payhere-get-current-company-stats\",\n name: \"Get Current Company Stats\",\n description: \"Tool to fetch payment statistics for the last 30 days with comparison data from the preceding 30-day period (30-60 days ago). Use when you need to analyze recent payment trends, subscriber growth, or compare current performance against the previous month.\",\n input: PayhereGetCurrentCompanyStatsInput,\n output: PayhereGetCurrentCompanyStatsOutput,\n});\n"],"mappings":";;AAcA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdgD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8FAc/D;CACP,QAdiD,EAAE,OAAO;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACrG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAClG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACtH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACnH,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qHAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const PayhereGetCurrentCompany_UserSchema = zod.z.object({
|
|
|
7
7
|
role: zod.z.string().describe("User's role in the company.").nullable().optional(),
|
|
8
8
|
email: zod.z.string().describe("User's email address.").nullable().optional(),
|
|
9
9
|
display_name: zod.z.string().describe("User's display name.").nullable().optional()
|
|
10
|
-
}).describe("User account associated with the company.");
|
|
10
|
+
}).passthrough().describe("User account associated with the company.");
|
|
11
11
|
const PayhereGetCurrentCompanyOutput = zod.z.object({
|
|
12
12
|
id: zod.z.number().int().describe("Company identifier.").nullable().optional(),
|
|
13
13
|
name: zod.z.string().describe("Company display name.").nullable().optional(),
|
|
@@ -26,7 +26,7 @@ const PayhereGetCurrentCompanyOutput = zod.z.object({
|
|
|
26
26
|
stripe_connected: zod.z.boolean().describe("Stripe integration status.").nullable().optional(),
|
|
27
27
|
subscription_status: zod.z.string().describe("Current subscription state.").nullable().optional(),
|
|
28
28
|
gocardless_connected: zod.z.boolean().describe("GoCardless integration status.").nullable().optional()
|
|
29
|
-
}).describe("Response model for company information.");
|
|
29
|
+
}).passthrough().describe("Response model for company information.");
|
|
30
30
|
const payhereGetCurrentCompany = require_action.action("PAYHERE_GET_CURRENT_COMPANY", {
|
|
31
31
|
slug: "payhere-get-current-company",
|
|
32
32
|
name: "Get Current Company",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company.cjs","names":["z","action"],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyInput
|
|
1
|
+
{"version":3,"file":"get-current-company.cjs","names":["z","action"],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyInput = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema = z.object({\n id: z.number().int().describe(\"User identifier.\").nullable().optional(),\n role: z.string().describe(\"User's role in the company.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n display_name: z.string().describe(\"User's display name.\").nullable().optional(),\n}).passthrough().describe(\"User account associated with the company.\");\nexport const PayhereGetCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier.\").nullable().optional(),\n name: z.string().describe(\"Company display name.\").nullable().optional(),\n plan: z.string().describe(\"Subscription plan type.\").nullable().optional(),\n role: z.string().describe(\"Account role (e.g., 'testing').\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly identifier.\").nullable().optional(),\n ready: z.boolean().describe(\"Operational status.\").nullable().optional(),\n users: z.array(PayhereGetCurrentCompany_UserSchema).describe(\"Associated user accounts.\").nullable().optional(),\n currency: z.string().describe(\"ISO currency code.\").nullable().optional(),\n vat_rate: z.string().describe(\"VAT percentage.\").nullable().optional(),\n legal_name: z.string().describe(\"Registered legal name.\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting.\").nullable().optional(),\n button_color: z.string().describe(\"Hex color value.\").nullable().optional(),\n country_code: z.string().describe(\"ISO country code.\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status.\").nullable().optional(),\n stripe_connected: z.boolean().describe(\"Stripe integration status.\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription state.\").nullable().optional(),\n gocardless_connected: z.boolean().describe(\"GoCardless integration status.\").nullable().optional(),\n}).passthrough().describe(\"Response model for company information.\");\n\nexport const payhereGetCurrentCompany = action(\"PAYHERE_GET_CURRENT_COMPANY\", {\n slug: \"payhere-get-current-company\",\n name: \"Get Current Company\",\n description: \"Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.\",\n input: PayhereGetCurrentCompanyInput,\n output: PayhereGetCurrentCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,E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import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-current-company.d.ts
|
|
4
|
-
declare const PayhereGetCurrentCompanyInput: z.
|
|
5
|
-
declare const PayhereGetCurrentCompanyOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PayhereGetCurrentCompanyInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PayhereGetCurrentCompanyOutput: z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
ready: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
vat_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
legal_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
button_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
vat_registered: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
|
+
stripe_connected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
gocardless_connected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
declare const payhereGetCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { payhereGetCurrentCompany };
|
|
9
32
|
//# sourceMappingURL=get-current-company.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company.d.cts","names":[],"sources":["../../src/actions/get-current-company.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"get-current-company.d.cts","names":[],"sources":["../../src/actions/get-current-company.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoB9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-current-company.d.ts
|
|
4
|
-
declare const PayhereGetCurrentCompanyInput: z.
|
|
5
|
-
declare const PayhereGetCurrentCompanyOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PayhereGetCurrentCompanyInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PayhereGetCurrentCompanyOutput: z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
ready: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
vat_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
legal_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
button_color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
vat_registered: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
|
+
stripe_connected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
gocardless_connected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
declare const payhereGetCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { payhereGetCurrentCompany };
|
|
9
32
|
//# sourceMappingURL=get-current-company.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company.d.mts","names":[],"sources":["../../src/actions/get-current-company.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"get-current-company.d.mts","names":[],"sources":["../../src/actions/get-current-company.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoB9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -7,7 +7,7 @@ const PayhereGetCurrentCompany_UserSchema = z.object({
|
|
|
7
7
|
role: z.string().describe("User's role in the company.").nullable().optional(),
|
|
8
8
|
email: z.string().describe("User's email address.").nullable().optional(),
|
|
9
9
|
display_name: z.string().describe("User's display name.").nullable().optional()
|
|
10
|
-
}).describe("User account associated with the company.");
|
|
10
|
+
}).passthrough().describe("User account associated with the company.");
|
|
11
11
|
const payhereGetCurrentCompany = action("PAYHERE_GET_CURRENT_COMPANY", {
|
|
12
12
|
slug: "payhere-get-current-company",
|
|
13
13
|
name: "Get Current Company",
|
|
@@ -31,7 +31,7 @@ const payhereGetCurrentCompany = action("PAYHERE_GET_CURRENT_COMPANY", {
|
|
|
31
31
|
stripe_connected: z.boolean().describe("Stripe integration status.").nullable().optional(),
|
|
32
32
|
subscription_status: z.string().describe("Current subscription state.").nullable().optional(),
|
|
33
33
|
gocardless_connected: z.boolean().describe("GoCardless integration status.").nullable().optional()
|
|
34
|
-
}).describe("Response model for company information.")
|
|
34
|
+
}).passthrough().describe("Response model for company information.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { payhereGetCurrentCompany };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company.mjs","names":[],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyInput
|
|
1
|
+
{"version":3,"file":"get-current-company.mjs","names":[],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyInput = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema = z.object({\n id: z.number().int().describe(\"User identifier.\").nullable().optional(),\n role: z.string().describe(\"User's role in the company.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n display_name: z.string().describe(\"User's display name.\").nullable().optional(),\n}).passthrough().describe(\"User account associated with the company.\");\nexport const PayhereGetCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier.\").nullable().optional(),\n name: z.string().describe(\"Company display name.\").nullable().optional(),\n plan: z.string().describe(\"Subscription plan type.\").nullable().optional(),\n role: z.string().describe(\"Account role (e.g., 'testing').\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly identifier.\").nullable().optional(),\n ready: z.boolean().describe(\"Operational status.\").nullable().optional(),\n users: z.array(PayhereGetCurrentCompany_UserSchema).describe(\"Associated user accounts.\").nullable().optional(),\n currency: z.string().describe(\"ISO currency code.\").nullable().optional(),\n vat_rate: z.string().describe(\"VAT percentage.\").nullable().optional(),\n legal_name: z.string().describe(\"Registered legal name.\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting.\").nullable().optional(),\n button_color: z.string().describe(\"Hex color value.\").nullable().optional(),\n country_code: z.string().describe(\"ISO country code.\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status.\").nullable().optional(),\n stripe_connected: z.boolean().describe(\"Stripe integration status.\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription state.\").nullable().optional(),\n gocardless_connected: z.boolean().describe(\"GoCardless integration status.\").nullable().optional(),\n}).passthrough().describe(\"Response model for company information.\");\n\nexport const payhereGetCurrentCompany = action(\"PAYHERE_GET_CURRENT_COMPANY\", {\n slug: \"payhere-get-current-company\",\n name: \"Get Current Company\",\n description: \"Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.\",\n input: PayhereGetCurrentCompanyInput,\n output: PayhereGetCurrentCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC1J,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAqBrE,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAzB4C,EAAE,OAAO;EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,MAA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S;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -3,13 +3,13 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-user.ts
|
|
4
4
|
const PayhereGetUserInput = zod.z.object({}).describe("Request model for retrieving the currently authenticated user information.\nNo parameters are required.");
|
|
5
5
|
const PayhereGetUserOutput = zod.z.object({
|
|
6
|
-
id: zod.z.number().int().describe("The unique identifier for the user."),
|
|
7
|
-
type: zod.z.string().describe("Resource type identifier (typically 'users')."),
|
|
8
|
-
email: zod.z.string().describe("The user's email address."),
|
|
9
|
-
created_at: zod.z.string().describe("ISO 8601 timestamp when the user account was created."),
|
|
10
|
-
updated_at: zod.z.string().describe("ISO 8601 timestamp of last update to the user account."),
|
|
11
|
-
display_name: zod.z.string().describe("The user's display name.")
|
|
12
|
-
}).describe("Response model for the authenticated user details.");
|
|
6
|
+
id: zod.z.number().int().describe("The unique identifier for the user.").nullable(),
|
|
7
|
+
type: zod.z.string().describe("Resource type identifier (typically 'users').").nullable(),
|
|
8
|
+
email: zod.z.string().describe("The user's email address.").nullable(),
|
|
9
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the user account was created.").nullable(),
|
|
10
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp of last update to the user account.").nullable(),
|
|
11
|
+
display_name: zod.z.string().describe("The user's display name.").nullable()
|
|
12
|
+
}).passthrough().describe("Response model for the authenticated user details.");
|
|
13
13
|
const payhereGetUser = require_action.action("PAYHERE_GET_USER", {
|
|
14
14
|
slug: "payhere-get-user",
|
|
15
15
|
name: "Get User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetUserInput
|
|
1
|
+
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetUserInput = z.object({}).describe(\"Request model for retrieving the currently authenticated user information.\\nNo parameters are required.\");\nexport const PayhereGetUserOutput = z.object({\n id: z.number().int().describe(\"The unique identifier for the user.\").nullable(),\n type: z.string().describe(\"Resource type identifier (typically 'users').\").nullable(),\n email: z.string().describe(\"The user's email address.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the user account was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update to the user account.\").nullable(),\n display_name: z.string().describe(\"The user's display name.\").nullable(),\n}).passthrough().describe(\"Response model for the authenticated user details.\");\n\nexport const payhereGetUser = action(\"PAYHERE_GET_USER\", {\n slug: \"payhere-get-user\",\n name: \"Get User\",\n description: \"Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.\",\n input: PayhereGetUserInput,\n output: PayhereGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAClK,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-user.d.ts
|
|
4
|
-
declare const PayhereGetUserInput: z.
|
|
5
|
-
declare const PayhereGetUserOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PayhereGetUserInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PayhereGetUserOutput: z.ZodObject<{
|
|
6
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
type: z.ZodNullable<z.ZodString>;
|
|
8
|
+
email: z.ZodNullable<z.ZodString>;
|
|
9
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
10
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
11
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const payhereGetUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { payhereGetUser };
|
|
9
16
|
//# sourceMappingURL=get-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.d.cts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"get-user.d.cts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;cASpB,cAAA,gCAAc,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-user.d.ts
|
|
4
|
-
declare const PayhereGetUserInput: z.
|
|
5
|
-
declare const PayhereGetUserOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PayhereGetUserInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PayhereGetUserOutput: z.ZodObject<{
|
|
6
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
type: z.ZodNullable<z.ZodString>;
|
|
8
|
+
email: z.ZodNullable<z.ZodString>;
|
|
9
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
10
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
11
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const payhereGetUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { payhereGetUser };
|
|
9
16
|
//# sourceMappingURL=get-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.d.mts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"get-user.d.mts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;cASpB,cAAA,gCAAc,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -6,13 +6,13 @@ const payhereGetUser = action("PAYHERE_GET_USER", {
|
|
|
6
6
|
description: "Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.",
|
|
7
7
|
input: z.object({}).describe("Request model for retrieving the currently authenticated user information.\nNo parameters are required."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
id: z.number().int().describe("The unique identifier for the user."),
|
|
10
|
-
type: z.string().describe("Resource type identifier (typically 'users')."),
|
|
11
|
-
email: z.string().describe("The user's email address."),
|
|
12
|
-
created_at: z.string().describe("ISO 8601 timestamp when the user account was created."),
|
|
13
|
-
updated_at: z.string().describe("ISO 8601 timestamp of last update to the user account."),
|
|
14
|
-
display_name: z.string().describe("The user's display name.")
|
|
15
|
-
}).describe("Response model for the authenticated user details.")
|
|
9
|
+
id: z.number().int().describe("The unique identifier for the user.").nullable(),
|
|
10
|
+
type: z.string().describe("Resource type identifier (typically 'users').").nullable(),
|
|
11
|
+
email: z.string().describe("The user's email address.").nullable(),
|
|
12
|
+
created_at: z.string().describe("ISO 8601 timestamp when the user account was created.").nullable(),
|
|
13
|
+
updated_at: z.string().describe("ISO 8601 timestamp of last update to the user account.").nullable(),
|
|
14
|
+
display_name: z.string().describe("The user's display name.").nullable()
|
|
15
|
+
}).passthrough().describe("Response model for the authenticated user details.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { payhereGetUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetUserInput
|
|
1
|
+
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetUserInput = z.object({}).describe(\"Request model for retrieving the currently authenticated user information.\\nNo parameters are required.\");\nexport const PayhereGetUserOutput = z.object({\n id: z.number().int().describe(\"The unique identifier for the user.\").nullable(),\n type: z.string().describe(\"Resource type identifier (typically 'users').\").nullable(),\n email: z.string().describe(\"The user's email address.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the user account was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update to the user account.\").nullable(),\n display_name: z.string().describe(\"The user's display name.\").nullable(),\n}).passthrough().describe(\"Response model for the authenticated user details.\");\n\nexport const payhereGetUser = action(\"PAYHERE_GET_USER\", {\n slug: \"payhere-get-user\",\n name: \"Get User\",\n description: \"Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.\",\n input: PayhereGetUserInput,\n output: PayhereGetUserOutput,\n});\n"],"mappings":";;AAcA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAchD;CACP,QAdkC,EAAE,OAAO;EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACnG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -5,28 +5,28 @@ const PayhereListCustomersInput = zod.z.object({
|
|
|
5
5
|
page: zod.z.number().int().describe("Page number for pagination. Use to navigate through paginated results.").optional(),
|
|
6
6
|
per_page: zod.z.number().int().describe("Records per page. Default is 20, maximum is 100.").optional()
|
|
7
7
|
}).describe("Request model for listing customers with pagination options.");
|
|
8
|
-
const PayhereListCustomers_CustomerLocationSchema = zod.z.
|
|
8
|
+
const PayhereListCustomers_CustomerLocationSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Location information for a customer.");
|
|
9
9
|
const PayhereListCustomers_CustomerSchema = zod.z.object({
|
|
10
|
-
id: zod.z.number().int().describe("Unique customer identifier."),
|
|
11
|
-
name: zod.z.string().describe("Customer name."),
|
|
12
|
-
type: zod.z.string().describe("Resource type, always 'customers'."),
|
|
13
|
-
email: zod.z.string().describe("Customer email address."),
|
|
10
|
+
id: zod.z.number().int().describe("Unique customer identifier.").nullable(),
|
|
11
|
+
name: zod.z.string().describe("Customer name.").nullable(),
|
|
12
|
+
type: zod.z.string().describe("Resource type, always 'customers'.").nullable(),
|
|
13
|
+
email: zod.z.string().describe("Customer email address.").nullable(),
|
|
14
14
|
location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),
|
|
15
|
-
created_at: zod.z.string().describe("ISO 8601 timestamp when customer was created."),
|
|
15
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when customer was created.").nullable(),
|
|
16
16
|
ip_address: zod.z.string().describe("IP address of customer if available.").nullable().optional(),
|
|
17
|
-
updated_at: zod.z.string().describe("ISO 8601 timestamp when customer was last updated.")
|
|
18
|
-
}).describe("Individual customer record.");
|
|
17
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when customer was last updated.").nullable()
|
|
18
|
+
}).passthrough().describe("Individual customer record.");
|
|
19
19
|
const PayhereListCustomers_ListCustomersMetaSchema = zod.z.object({
|
|
20
20
|
next_page: zod.z.number().int().describe("Next page number if available.").nullable().optional(),
|
|
21
21
|
prev_page: zod.z.number().int().describe("Previous page number if available.").nullable().optional(),
|
|
22
|
-
total_count: zod.z.number().int().describe("Total number of customers."),
|
|
23
|
-
total_pages: zod.z.number().int().describe("Total number of pages."),
|
|
24
|
-
current_page: zod.z.number().int().describe("Current page number.")
|
|
25
|
-
}).describe("Pagination metadata for the list customers response.");
|
|
22
|
+
total_count: zod.z.number().int().describe("Total number of customers.").nullable(),
|
|
23
|
+
total_pages: zod.z.number().int().describe("Total number of pages.").nullable(),
|
|
24
|
+
current_page: zod.z.number().int().describe("Current page number.").nullable()
|
|
25
|
+
}).passthrough().describe("Pagination metadata for the list customers response.");
|
|
26
26
|
const PayhereListCustomersOutput = zod.z.object({
|
|
27
27
|
data: zod.z.array(PayhereListCustomers_CustomerSchema).describe("List of customers ordered chronologically, most recent first."),
|
|
28
28
|
meta: PayhereListCustomers_ListCustomersMetaSchema.nullable()
|
|
29
|
-
}).describe("Response model for listing customers.");
|
|
29
|
+
}).passthrough().describe("Response model for listing customers.");
|
|
30
30
|
const payhereListCustomers = require_action.action("PAYHERE_LIST_CUSTOMERS", {
|
|
31
31
|
slug: "payhere-list-customers",
|
|
32
32
|
name: "List Customers",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-customers.cjs","names":["z","action"],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListCustomersInput
|
|
1
|
+
{"version":3,"file":"list-customers.cjs","names":["z","action"],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListCustomersInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Use to navigate through paginated results.\").optional(),\n per_page: z.number().int().describe(\"Records per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing customers with pagination options.\");\nconst PayhereListCustomers_CustomerLocationSchema = z.record(z.string(), z.unknown()).describe(\"Location information for a customer.\");\nconst PayhereListCustomers_CustomerSchema = z.object({\n id: z.number().int().describe(\"Unique customer identifier.\").nullable(),\n name: z.string().describe(\"Customer name.\").nullable(),\n type: z.string().describe(\"Resource type, always 'customers'.\").nullable(),\n email: z.string().describe(\"Customer email address.\").nullable(),\n location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when customer was created.\").nullable(),\n ip_address: z.string().describe(\"IP address of customer if available.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when customer was last updated.\").nullable(),\n}).passthrough().describe(\"Individual customer record.\");\nconst PayhereListCustomers_ListCustomersMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of customers.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for the list customers response.\");\nexport const PayhereListCustomersOutput = z.object({\n data: z.array(PayhereListCustomers_CustomerSchema).describe(\"List of customers ordered chronologically, most recent first.\"),\n meta: PayhereListCustomers_ListCustomersMetaSchema.nullable(),\n}).passthrough().describe(\"Response model for listing customers.\");\n\nexport const payhereListCustomers = action(\"PAYHERE_LIST_CUSTOMERS\", {\n slug: \"payhere-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters.\",\n input: PayhereListCustomersInput,\n output: PayhereListCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,8CAA8CA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ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