@keystrokehq/moonclerk 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/list-customers.cjs +36 -36
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +95 -3
- package/dist/actions/list-customers.d.cts.map +1 -1
- package/dist/actions/list-customers.d.mts +95 -3
- package/dist/actions/list-customers.d.mts.map +1 -1
- package/dist/actions/list-customers.mjs +36 -36
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-discounts.cjs +3 -3
- package/dist/actions/list-discounts.cjs.map +1 -1
- package/dist/actions/list-discounts.d.cts +40 -3
- package/dist/actions/list-discounts.d.cts.map +1 -1
- package/dist/actions/list-discounts.d.mts +40 -3
- package/dist/actions/list-discounts.d.mts.map +1 -1
- package/dist/actions/list-discounts.mjs +3 -3
- package/dist/actions/list-discounts.mjs.map +1 -1
- package/dist/actions/list-forms.cjs +8 -8
- package/dist/actions/list-forms.cjs.map +1 -1
- package/dist/actions/list-forms.d.cts +22 -3
- package/dist/actions/list-forms.d.cts.map +1 -1
- package/dist/actions/list-forms.d.mts +22 -3
- package/dist/actions/list-forms.d.mts.map +1 -1
- package/dist/actions/list-forms.mjs +8 -8
- package/dist/actions/list-forms.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +29 -29
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +70 -3
- package/dist/actions/list-payments.d.cts.map +1 -1
- package/dist/actions/list-payments.d.mts +70 -3
- package/dist/actions/list-payments.d.mts.map +1 -1
- package/dist/actions/list-payments.mjs +29 -29
- package/dist/actions/list-payments.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 +46 -3
- package/dist/actions/list-subscriptions.d.cts.map +1 -1
- package/dist/actions/list-subscriptions.d.mts +46 -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/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-discounts.cjs","names":["z","action"],"sources":["../../src/actions/list-discounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListDiscountsInput
|
|
1
|
+
{"version":3,"file":"list-discounts.cjs","names":["z","action"],"sources":["../../src/actions/list-discounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListDiscountsInput = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter by subscription status.\").optional(),\n form_id: z.number().int().describe(\"Filter discounts by associated MoonClerk form ID.\").optional(),\n checkout_to: z.string().describe(\"Filter customers created on or before this date (YYYY-MM-DD).\").optional(),\n checkout_from: z.string().describe(\"Filter customers created on or after this date (YYYY-MM-DD).\").optional(),\n next_payment_to: z.string().describe(\"Filter subscriptions due to bill on or before this date (YYYY-MM-DD).\").optional(),\n next_payment_from: z.string().describe(\"Filter subscriptions due to bill on or after this date (YYYY-MM-DD).\").optional(),\n}).describe(\"Optional filters for listing discounts via customers endpoint.\");\nexport const MoonclerkListDiscountsOutput = z.object({\n discounts: z.array(z.object({\n coupon: z.object({\n code: z.string().describe(\"Coupon code.\").nullable(),\n currency: z.string().describe(\"Currency code for amount_off, e.g., 'USD'.\").nullable().optional(),\n duration: z.string().describe(\"Duration of the coupon, e.g., 'once' or 'repeating'.\").nullable(),\n redeem_by: z.string().describe(\"ISO 8601 date by which the coupon must be redeemed.\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents (nullable if percent_off is used).\").nullable().optional(),\n percent_off: z.number().int().describe(\"Percentage off for the coupon (nullable if amount_off is used).\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed by the coupon.\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Number of months the coupon is valid for (for repeating coupons).\").nullable().optional(),\n}).describe(\"Details of the coupon applied.\"),\n ends_at: z.string().describe(\"ISO 8601 timestamp when the discount ends.\").nullable().optional(),\n starts_at: z.string().describe(\"ISO 8601 timestamp when the discount starts.\").nullable().optional(),\n customer_id: z.number().int().describe(\"ID of the customer with this discount.\").nullable(),\n}).describe(\"Represents a discount applied to a customer.\")).describe(\"List of discount entries.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListDiscounts = action(\"MOONCLERK_LIST_DISCOUNTS\", {\n slug: \"moonclerk-list-discounts\",\n name: \"List Discounts\",\n description: \"Tool to retrieve a list of all discounts applied to customers. Use after authenticating API credentials.\",\n input: MoonclerkListDiscountsInput,\n output: MoonclerkListDiscountsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAY;EAAW;EAAY;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC5G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,S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C,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,CAAC,SAAS,2BAA2B,EACjG,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-discounts.d.ts
|
|
4
|
-
declare const MoonclerkListDiscountsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoonclerkListDiscountsInput: z.ZodObject<{
|
|
5
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
active: "active";
|
|
7
|
+
canceled: "canceled";
|
|
8
|
+
expired: "expired";
|
|
9
|
+
past_due: "past_due";
|
|
10
|
+
pending: "pending";
|
|
11
|
+
unpaid: "unpaid";
|
|
12
|
+
}>>;
|
|
13
|
+
form_id: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
checkout_to: z.ZodOptional<z.ZodString>;
|
|
15
|
+
checkout_from: z.ZodOptional<z.ZodString>;
|
|
16
|
+
next_payment_to: z.ZodOptional<z.ZodString>;
|
|
17
|
+
next_payment_from: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const MoonclerkListDiscountsOutput: z.ZodObject<{
|
|
20
|
+
discounts: z.ZodArray<z.ZodObject<{
|
|
21
|
+
coupon: z.ZodObject<{
|
|
22
|
+
code: z.ZodNullable<z.ZodString>;
|
|
23
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
duration: z.ZodNullable<z.ZodString>;
|
|
25
|
+
redeem_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
amount_off: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
percent_off: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
max_redemptions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
duration_in_months: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
customer_id: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const moonclerkListDiscounts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
status?: "active" | "canceled" | "expired" | "past_due" | "pending" | "unpaid" | undefined;
|
|
38
|
+
form_id?: number | undefined;
|
|
39
|
+
checkout_to?: string | undefined;
|
|
40
|
+
checkout_from?: string | undefined;
|
|
41
|
+
next_payment_to?: string | undefined;
|
|
42
|
+
next_payment_from?: string | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { moonclerkListDiscounts };
|
|
9
46
|
//# sourceMappingURL=list-discounts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-discounts.d.cts","names":[],"sources":["../../src/actions/list-discounts.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"list-discounts.d.cts","names":[],"sources":["../../src/actions/list-discounts.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-discounts.d.ts
|
|
4
|
-
declare const MoonclerkListDiscountsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoonclerkListDiscountsInput: z.ZodObject<{
|
|
5
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
active: "active";
|
|
7
|
+
canceled: "canceled";
|
|
8
|
+
expired: "expired";
|
|
9
|
+
past_due: "past_due";
|
|
10
|
+
pending: "pending";
|
|
11
|
+
unpaid: "unpaid";
|
|
12
|
+
}>>;
|
|
13
|
+
form_id: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
checkout_to: z.ZodOptional<z.ZodString>;
|
|
15
|
+
checkout_from: z.ZodOptional<z.ZodString>;
|
|
16
|
+
next_payment_to: z.ZodOptional<z.ZodString>;
|
|
17
|
+
next_payment_from: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const MoonclerkListDiscountsOutput: z.ZodObject<{
|
|
20
|
+
discounts: z.ZodArray<z.ZodObject<{
|
|
21
|
+
coupon: z.ZodObject<{
|
|
22
|
+
code: z.ZodNullable<z.ZodString>;
|
|
23
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
duration: z.ZodNullable<z.ZodString>;
|
|
25
|
+
redeem_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
amount_off: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
percent_off: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
+
max_redemptions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
duration_in_months: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
customer_id: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const moonclerkListDiscounts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
status?: "active" | "canceled" | "expired" | "past_due" | "pending" | "unpaid" | undefined;
|
|
38
|
+
form_id?: number | undefined;
|
|
39
|
+
checkout_to?: string | undefined;
|
|
40
|
+
checkout_from?: string | undefined;
|
|
41
|
+
next_payment_to?: string | undefined;
|
|
42
|
+
next_payment_from?: string | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { moonclerkListDiscounts };
|
|
9
46
|
//# sourceMappingURL=list-discounts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-discounts.d.mts","names":[],"sources":["../../src/actions/list-discounts.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"list-discounts.d.mts","names":[],"sources":["../../src/actions/list-discounts.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -21,9 +21,9 @@ const moonclerkListDiscounts = action("MOONCLERK_LIST_DISCOUNTS", {
|
|
|
21
21
|
}).describe("Optional filters for listing discounts via customers endpoint."),
|
|
22
22
|
output: z.object({ discounts: z.array(z.object({
|
|
23
23
|
coupon: z.object({
|
|
24
|
-
code: z.string().describe("Coupon code."),
|
|
24
|
+
code: z.string().describe("Coupon code.").nullable(),
|
|
25
25
|
currency: z.string().describe("Currency code for amount_off, e.g., 'USD'.").nullable().optional(),
|
|
26
|
-
duration: z.string().describe("Duration of the coupon, e.g., 'once' or 'repeating'."),
|
|
26
|
+
duration: z.string().describe("Duration of the coupon, e.g., 'once' or 'repeating'.").nullable(),
|
|
27
27
|
redeem_by: z.string().describe("ISO 8601 date by which the coupon must be redeemed.").nullable().optional(),
|
|
28
28
|
amount_off: z.number().int().describe("Amount off in cents (nullable if percent_off is used).").nullable().optional(),
|
|
29
29
|
percent_off: z.number().int().describe("Percentage off for the coupon (nullable if amount_off is used).").nullable().optional(),
|
|
@@ -32,7 +32,7 @@ const moonclerkListDiscounts = action("MOONCLERK_LIST_DISCOUNTS", {
|
|
|
32
32
|
}).describe("Details of the coupon applied."),
|
|
33
33
|
ends_at: z.string().describe("ISO 8601 timestamp when the discount ends.").nullable().optional(),
|
|
34
34
|
starts_at: z.string().describe("ISO 8601 timestamp when the discount starts.").nullable().optional(),
|
|
35
|
-
customer_id: z.number().int().describe("ID of the customer with this discount.")
|
|
35
|
+
customer_id: z.number().int().describe("ID of the customer with this discount.").nullable()
|
|
36
36
|
}).describe("Represents a discount applied to a customer.")).describe("List of discount entries.") }).describe("Data from the action execution")
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-discounts.mjs","names":[],"sources":["../../src/actions/list-discounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListDiscountsInput
|
|
1
|
+
{"version":3,"file":"list-discounts.mjs","names":[],"sources":["../../src/actions/list-discounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListDiscountsInput = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter by subscription status.\").optional(),\n form_id: z.number().int().describe(\"Filter discounts by associated MoonClerk form ID.\").optional(),\n checkout_to: z.string().describe(\"Filter customers created on or before this date (YYYY-MM-DD).\").optional(),\n checkout_from: z.string().describe(\"Filter customers created on or after this date (YYYY-MM-DD).\").optional(),\n next_payment_to: z.string().describe(\"Filter subscriptions due to bill on or before this date (YYYY-MM-DD).\").optional(),\n next_payment_from: z.string().describe(\"Filter subscriptions due to bill on or after this date (YYYY-MM-DD).\").optional(),\n}).describe(\"Optional filters for listing discounts via customers endpoint.\");\nexport const MoonclerkListDiscountsOutput = z.object({\n discounts: z.array(z.object({\n coupon: z.object({\n code: z.string().describe(\"Coupon code.\").nullable(),\n currency: z.string().describe(\"Currency code for amount_off, e.g., 'USD'.\").nullable().optional(),\n duration: z.string().describe(\"Duration of the coupon, e.g., 'once' or 'repeating'.\").nullable(),\n redeem_by: z.string().describe(\"ISO 8601 date by which the coupon must be redeemed.\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents (nullable if percent_off is used).\").nullable().optional(),\n percent_off: z.number().int().describe(\"Percentage off for the coupon (nullable if amount_off is used).\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed by the coupon.\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Number of months the coupon is valid for (for repeating coupons).\").nullable().optional(),\n}).describe(\"Details of the coupon applied.\"),\n ends_at: z.string().describe(\"ISO 8601 timestamp when the discount ends.\").nullable().optional(),\n starts_at: z.string().describe(\"ISO 8601 timestamp when the discount starts.\").nullable().optional(),\n customer_id: z.number().int().describe(\"ID of the customer with this discount.\").nullable(),\n}).describe(\"Represents a discount applied to a customer.\")).describe(\"List of discount entries.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListDiscounts = action(\"MOONCLERK_LIST_DISCOUNTS\", {\n slug: \"moonclerk-list-discounts\",\n name: \"List Discounts\",\n description: \"Tool to retrieve a list of all discounts applied to customers. Use after authenticating API credentials.\",\n input: MoonclerkListDiscountsInput,\n output: MoonclerkListDiscountsO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CAAC,CAAC,SAAS;GAC9H,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACvH,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzI,CAAC,CAAC,CAAC,SAAS,gCAAgC;EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,CAAC,SAAS,2BAA2B,EACjG,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
|
|
@@ -7,16 +7,16 @@ const MoonclerkListFormsInput = zod.z.object({
|
|
|
7
7
|
}).describe("Request parameters for listing payment forms.");
|
|
8
8
|
const MoonclerkListFormsOutput = zod.z.object({
|
|
9
9
|
meta: zod.z.object({
|
|
10
|
-
per_page: zod.z.number().int().describe("Number of forms returned per page"),
|
|
11
|
-
total_count: zod.z.number().int().describe("Total number of forms available"),
|
|
12
|
-
total_pages: zod.z.number().int().describe("Total number of pages"),
|
|
13
|
-
current_page: zod.z.number().int().describe("Current page number")
|
|
10
|
+
per_page: zod.z.number().int().describe("Number of forms returned per page").nullable(),
|
|
11
|
+
total_count: zod.z.number().int().describe("Total number of forms available").nullable(),
|
|
12
|
+
total_pages: zod.z.number().int().describe("Total number of pages").nullable(),
|
|
13
|
+
current_page: zod.z.number().int().describe("Current page number").nullable()
|
|
14
14
|
}).describe("Pagination details for a paged list response.").nullable().optional(),
|
|
15
15
|
forms: zod.z.array(zod.z.object({
|
|
16
|
-
id: zod.z.string().describe("Unique identifier for the form"),
|
|
17
|
-
name: zod.z.string().describe("Name of the form"),
|
|
18
|
-
created_at: zod.z.string().describe("Timestamp when the form was created"),
|
|
19
|
-
updated_at: zod.z.string().describe("Timestamp when the form was last updated")
|
|
16
|
+
id: zod.z.string().describe("Unique identifier for the form").nullable(),
|
|
17
|
+
name: zod.z.string().describe("Name of the form").nullable(),
|
|
18
|
+
created_at: zod.z.string().describe("Timestamp when the form was created").nullable(),
|
|
19
|
+
updated_at: zod.z.string().describe("Timestamp when the form was last updated").nullable()
|
|
20
20
|
}).describe("A representation of a MoonClerk payment form.")).describe("List of payment forms returned from MoonClerk API")
|
|
21
21
|
}).describe("Data from the action execution");
|
|
22
22
|
const moonclerkListForms = require_action.action("MOONCLERK_LIST_FORMS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListFormsInput
|
|
1
|
+
{"version":3,"file":"list-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListFormsInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve, starting at 1\").optional(),\n per_page: z.number().int().describe(\"Number of forms per page\").optional(),\n}).describe(\"Request parameters for listing payment forms.\");\nexport const MoonclerkListFormsOutput = z.object({\n meta: z.object({\n per_page: z.number().int().describe(\"Number of forms returned per page\").nullable(),\n total_count: z.number().int().describe(\"Total number of forms available\").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 details for a paged list response.\").nullable().optional(),\n forms: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the form\").nullable(),\n name: z.string().describe(\"Name of the form\").nullable(),\n created_at: z.string().describe(\"Timestamp when the form was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the form was last updated\").nullable(),\n}).describe(\"A representation of a MoonClerk payment form.\")).describe(\"List of payment forms returned from MoonClerk API\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListForms = action(\"MOONCLERK_LIST_FORMS\", {\n slug: \"moonclerk-list-forms\",\n name: \"List Payment Forms\",\n description: \"Tool to retrieve a list of all payment forms. Use after authenticating to inspect available payment forms.\",\n input: MoonclerkListFormsInput,\n output: MoonclerkListFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO;EACf,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC1H,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-forms.d.ts
|
|
4
|
-
declare const MoonclerkListFormsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoonclerkListFormsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const MoonclerkListFormsOutput: z.ZodObject<{
|
|
9
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>>>;
|
|
15
|
+
forms: z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
19
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const moonclerkListForms: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
page?: number | undefined;
|
|
24
|
+
per_page?: number | undefined;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { moonclerkListForms };
|
|
9
28
|
//# sourceMappingURL=list-forms.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-forms.d.cts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-forms.d.cts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAexB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-forms.d.ts
|
|
4
|
-
declare const MoonclerkListFormsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoonclerkListFormsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const MoonclerkListFormsOutput: z.ZodObject<{
|
|
9
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
per_page: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
current_page: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>>>;
|
|
15
|
+
forms: z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
19
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const moonclerkListForms: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
page?: number | undefined;
|
|
24
|
+
per_page?: number | undefined;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { moonclerkListForms };
|
|
9
28
|
//# sourceMappingURL=list-forms.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-forms.d.mts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-forms.d.mts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAexB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -10,16 +10,16 @@ const moonclerkListForms = action("MOONCLERK_LIST_FORMS", {
|
|
|
10
10
|
}).describe("Request parameters for listing payment forms."),
|
|
11
11
|
output: z.object({
|
|
12
12
|
meta: z.object({
|
|
13
|
-
per_page: z.number().int().describe("Number of forms returned per page"),
|
|
14
|
-
total_count: z.number().int().describe("Total number of forms available"),
|
|
15
|
-
total_pages: z.number().int().describe("Total number of pages"),
|
|
16
|
-
current_page: z.number().int().describe("Current page number")
|
|
13
|
+
per_page: z.number().int().describe("Number of forms returned per page").nullable(),
|
|
14
|
+
total_count: z.number().int().describe("Total number of forms available").nullable(),
|
|
15
|
+
total_pages: z.number().int().describe("Total number of pages").nullable(),
|
|
16
|
+
current_page: z.number().int().describe("Current page number").nullable()
|
|
17
17
|
}).describe("Pagination details for a paged list response.").nullable().optional(),
|
|
18
18
|
forms: z.array(z.object({
|
|
19
|
-
id: z.string().describe("Unique identifier for the form"),
|
|
20
|
-
name: z.string().describe("Name of the form"),
|
|
21
|
-
created_at: z.string().describe("Timestamp when the form was created"),
|
|
22
|
-
updated_at: z.string().describe("Timestamp when the form was last updated")
|
|
19
|
+
id: z.string().describe("Unique identifier for the form").nullable(),
|
|
20
|
+
name: z.string().describe("Name of the form").nullable(),
|
|
21
|
+
created_at: z.string().describe("Timestamp when the form was created").nullable(),
|
|
22
|
+
updated_at: z.string().describe("Timestamp when the form was last updated").nullable()
|
|
23
23
|
}).describe("A representation of a MoonClerk payment form.")).describe("List of payment forms returned from MoonClerk API")
|
|
24
24
|
}).describe("Data from the action execution")
|
|
25
25
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-forms.mjs","names":[],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListFormsInput
|
|
1
|
+
{"version":3,"file":"list-forms.mjs","names":[],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListFormsInput = z.object({\n page: z.number().int().describe(\"Page number to retrieve, starting at 1\").optional(),\n per_page: z.number().int().describe(\"Number of forms per page\").optional(),\n}).describe(\"Request parameters for listing payment forms.\");\nexport const MoonclerkListFormsOutput = z.object({\n meta: z.object({\n per_page: z.number().int().describe(\"Number of forms returned per page\").nullable(),\n total_count: z.number().int().describe(\"Total number of forms available\").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 details for a paged list response.\").nullable().optional(),\n forms: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the form\").nullable(),\n name: z.string().describe(\"Name of the form\").nullable(),\n created_at: z.string().describe(\"Timestamp when the form was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the form was last updated\").nullable(),\n}).describe(\"A representation of a MoonClerk payment form.\")).describe(\"List of payment forms returned from MoonClerk API\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListForms = action(\"MOONCLERK_LIST_FORMS\", {\n slug: \"moonclerk-list-forms\",\n name: \"List Payment Forms\",\n description: \"Tool to retrieve a list of all payment forms. Use after authenticating to inspect available payment forms.\",\n input: MoonclerkListFormsInput,\n output: MoonclerkListFormsOutput,\n});\n"],"mappings":";;AAuBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,+CAoBH;CACP,QApBsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO;GACf,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAClF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GACzE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1E,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;GACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,mDAAmD;CAC1H,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
|
|
@@ -13,51 +13,51 @@ const MoonclerkListPaymentsInput = zod.z.object({
|
|
|
13
13
|
customer_id: zod.z.number().int().describe("MoonClerk customer ID to filter payments (e.g., 12742)").optional()
|
|
14
14
|
}).describe("Parameters to filter the payments list.");
|
|
15
15
|
const MoonclerkListPaymentsOutput = zod.z.object({ payments: zod.z.array(zod.z.object({
|
|
16
|
-
id: zod.z.number().int().describe("Unique payment identifier"),
|
|
17
|
-
fee: zod.z.number().int().describe("Stripe fee in cents"),
|
|
18
|
-
date: zod.z.string().describe("Payment date in UTC ISO 8601 format"),
|
|
19
|
-
name: zod.z.string().describe("Payer's name"),
|
|
20
|
-
email: zod.z.string().describe("Payer's email address"),
|
|
21
|
-
amount: zod.z.number().int().describe("Payment amount in cents"),
|
|
16
|
+
id: zod.z.number().int().describe("Unique payment identifier").nullable(),
|
|
17
|
+
fee: zod.z.number().int().describe("Stripe fee in cents").nullable(),
|
|
18
|
+
date: zod.z.string().describe("Payment date in UTC ISO 8601 format").nullable(),
|
|
19
|
+
name: zod.z.string().describe("Payer's name").nullable(),
|
|
20
|
+
email: zod.z.string().describe("Payer's email address").nullable(),
|
|
21
|
+
amount: zod.z.number().int().describe("Payment amount in cents").nullable(),
|
|
22
22
|
coupon: zod.z.object({
|
|
23
|
-
code: zod.z.string().describe("Coupon code"),
|
|
24
|
-
currency: zod.z.string().describe("Currency of the coupon"),
|
|
25
|
-
duration: zod.z.string().describe("Duration of the coupon, e.g., once"),
|
|
23
|
+
code: zod.z.string().describe("Coupon code").nullable(),
|
|
24
|
+
currency: zod.z.string().describe("Currency of the coupon").nullable(),
|
|
25
|
+
duration: zod.z.string().describe("Duration of the coupon, e.g., once").nullable(),
|
|
26
26
|
redeem_by: zod.z.string().describe("Coupon redemption deadline (UTC date)").nullable().optional(),
|
|
27
|
-
amount_off: zod.z.number().int().describe("Amount off in cents"),
|
|
27
|
+
amount_off: zod.z.number().int().describe("Amount off in cents").nullable(),
|
|
28
28
|
percent_off: zod.z.number().int().describe("Percentage off if applicable").nullable().optional(),
|
|
29
29
|
max_redemptions: zod.z.number().int().describe("Maximum number of redemptions allowed").nullable().optional(),
|
|
30
30
|
duration_in_months: zod.z.number().int().describe("Duration in months if applicable").nullable().optional()
|
|
31
|
-
}).describe("Applied coupon details if any").optional(),
|
|
31
|
+
}).describe("Applied coupon details if any").nullable().optional(),
|
|
32
32
|
status: zod.z.enum([
|
|
33
33
|
"successful",
|
|
34
34
|
"refunded",
|
|
35
35
|
"failed"
|
|
36
|
-
]).describe("Payment status"),
|
|
37
|
-
form_id: zod.z.number().int().describe("MoonClerk form ID that generated the payment"),
|
|
36
|
+
]).describe("Payment status").nullable(),
|
|
37
|
+
form_id: zod.z.number().int().describe("MoonClerk form ID that generated the payment").nullable(),
|
|
38
38
|
checkout: zod.z.object({
|
|
39
|
-
fee: zod.z.number().int().describe("Stripe fee in cents"),
|
|
40
|
-
date: zod.z.string().describe("Checkout date in UTC ISO 8601 format"),
|
|
41
|
-
token: zod.z.string().describe("Checkout token"),
|
|
42
|
-
total: zod.z.number().int().describe("Total amount in cents"),
|
|
43
|
-
subtotal: zod.z.number().int().describe("Subtotal in cents before fees and coupons"),
|
|
44
|
-
amount_due: zod.z.number().int().describe("Amount due in cents"),
|
|
45
|
-
coupon_code: zod.z.string().describe("Applied coupon code"),
|
|
46
|
-
coupon_amount: zod.z.number().int().describe("Coupon amount in cents"),
|
|
47
|
-
upfront_amount: zod.z.number().int().describe("Upfront amount in cents"),
|
|
39
|
+
fee: zod.z.number().int().describe("Stripe fee in cents").nullable(),
|
|
40
|
+
date: zod.z.string().describe("Checkout date in UTC ISO 8601 format").nullable(),
|
|
41
|
+
token: zod.z.string().describe("Checkout token").nullable(),
|
|
42
|
+
total: zod.z.number().int().describe("Total amount in cents").nullable(),
|
|
43
|
+
subtotal: zod.z.number().int().describe("Subtotal in cents before fees and coupons").nullable(),
|
|
44
|
+
amount_due: zod.z.number().int().describe("Amount due in cents").nullable(),
|
|
45
|
+
coupon_code: zod.z.string().describe("Applied coupon code").nullable(),
|
|
46
|
+
coupon_amount: zod.z.number().int().describe("Coupon amount in cents").nullable(),
|
|
47
|
+
upfront_amount: zod.z.number().int().describe("Upfront amount in cents").nullable(),
|
|
48
48
|
trial_period_days: zod.z.number().int().describe("Number of trial days if applicable").nullable().optional()
|
|
49
|
-
}).describe("Checkout details for one-time checkouts").optional(),
|
|
50
|
-
currency: zod.z.string().describe("Currency code, e.g., USD"),
|
|
49
|
+
}).describe("Checkout details for one-time checkouts").nullable().optional(),
|
|
50
|
+
currency: zod.z.string().describe("Currency code, e.g., USD").nullable(),
|
|
51
51
|
custom_id: zod.z.string().describe("Custom identifier passed during integration").nullable().optional(),
|
|
52
52
|
customer_id: zod.z.number().int().describe("MoonClerk customer ID if part of recurring checkout").nullable().optional(),
|
|
53
53
|
custom_fields: zod.z.object({}).describe("Mapping of custom field keys to values").nullable().optional(),
|
|
54
54
|
payment_method: zod.z.object({
|
|
55
|
-
type: zod.z.string().describe("Payment method type, e.g., card"),
|
|
56
|
-
brand: zod.z.string().describe("Brand of the card, e.g., Visa"),
|
|
57
|
-
last4: zod.z.string().describe("Last 4 digits of the card")
|
|
55
|
+
type: zod.z.string().describe("Payment method type, e.g., card").nullable(),
|
|
56
|
+
brand: zod.z.string().describe("Brand of the card, e.g., Visa").nullable(),
|
|
57
|
+
last4: zod.z.string().describe("Last 4 digits of the card").nullable()
|
|
58
58
|
}).describe("Payment method details"),
|
|
59
|
-
amount_refunded: zod.z.number().int().describe("Total refunded amount in cents"),
|
|
60
|
-
charge_reference: zod.z.string().describe("Stripe charge reference"),
|
|
59
|
+
amount_refunded: zod.z.number().int().describe("Total refunded amount in cents").nullable(),
|
|
60
|
+
charge_reference: zod.z.string().describe("Stripe charge reference").nullable(),
|
|
61
61
|
invoice_reference: zod.z.string().describe("Stripe invoice reference if applicable").nullable().optional(),
|
|
62
62
|
amount_description: zod.z.string().describe("Description of the payment amount option").nullable().optional(),
|
|
63
63
|
customer_reference: zod.z.string().describe("Stripe customer reference if applicable").nullable().optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListPaymentsInput
|
|
1
|
+
{"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListPaymentsInput = z.object({\n status: z.enum([\"successful\", \"refunded\", \"failed\"]).describe(\"Filter payments by status. Valid values: successful, refunded, failed\").optional(),\n date_to: z.string().describe(\"Include payments charged on or before this date (YYYY-MM-DD)\").optional(),\n form_id: z.number().int().describe(\"MoonClerk form ID to filter payments (e.g., 5346)\").optional(),\n date_from: z.string().describe(\"Include payments charged on or after this date (YYYY-MM-DD)\").optional(),\n customer_id: z.number().int().describe(\"MoonClerk customer ID to filter payments (e.g., 12742)\").optional(),\n}).describe(\"Parameters to filter the payments list.\");\nexport const MoonclerkListPaymentsOutput = z.object({\n payments: z.array(z.object({\n id: z.number().int().describe(\"Unique payment identifier\").nullable(),\n fee: z.number().int().describe(\"Stripe fee in cents\").nullable(),\n date: z.string().describe(\"Payment date in UTC ISO 8601 format\").nullable(),\n name: z.string().describe(\"Payer's name\").nullable(),\n email: z.string().describe(\"Payer's email address\").nullable(),\n amount: z.number().int().describe(\"Payment amount in cents\").nullable(),\n coupon: z.object({\n code: z.string().describe(\"Coupon code\").nullable(),\n currency: z.string().describe(\"Currency of the coupon\").nullable(),\n duration: z.string().describe(\"Duration of the coupon, e.g., once\").nullable(),\n redeem_by: z.string().describe(\"Coupon redemption deadline (UTC date)\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents\").nullable(),\n percent_off: z.number().int().describe(\"Percentage off if applicable\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Duration in months if applicable\").nullable().optional(),\n}).describe(\"Applied coupon details if any\").nullable().optional(),\n status: z.enum([\"successful\", \"refunded\", \"failed\"]).describe(\"Payment status\").nullable(),\n form_id: z.number().int().describe(\"MoonClerk form ID that generated the payment\").nullable(),\n checkout: z.object({\n fee: z.number().int().describe(\"Stripe fee in cents\").nullable(),\n date: z.string().describe(\"Checkout date in UTC ISO 8601 format\").nullable(),\n token: z.string().describe(\"Checkout token\").nullable(),\n total: z.number().int().describe(\"Total amount in cents\").nullable(),\n subtotal: z.number().int().describe(\"Subtotal in cents before fees and coupons\").nullable(),\n amount_due: z.number().int().describe(\"Amount due in cents\").nullable(),\n coupon_code: z.string().describe(\"Applied coupon code\").nullable(),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents\").nullable(),\n upfront_amount: z.number().int().describe(\"Upfront amount in cents\").nullable(),\n trial_period_days: z.number().int().describe(\"Number of trial days if applicable\").nullable().optional(),\n}).describe(\"Checkout details for one-time checkouts\").nullable().optional(),\n currency: z.string().describe(\"Currency code, e.g., USD\").nullable(),\n custom_id: z.string().describe(\"Custom identifier passed during integration\").nullable().optional(),\n customer_id: z.number().int().describe(\"MoonClerk customer ID if part of recurring checkout\").nullable().optional(),\n custom_fields: z.object({}).describe(\"Mapping of custom field keys to values\").nullable().optional(),\n payment_method: z.object({\n type: z.string().describe(\"Payment method type, e.g., card\").nullable(),\n brand: z.string().describe(\"Brand of the card, e.g., Visa\").nullable(),\n last4: z.string().describe(\"Last 4 digits of the card\").nullable(),\n}).describe(\"Payment method details\"),\n amount_refunded: z.number().int().describe(\"Total refunded amount in cents\").nullable(),\n charge_reference: z.string().describe(\"Stripe charge reference\").nullable(),\n invoice_reference: z.string().describe(\"Stripe invoice reference if applicable\").nullable().optional(),\n amount_description: z.string().describe(\"Description of the payment amount option\").nullable().optional(),\n customer_reference: z.string().describe(\"Stripe customer reference if applicable\").nullable().optional(),\n})).describe(\"List of payments matching the filters\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListPayments = action(\"MOONCLERK_LIST_PAYMENTS\", {\n slug: \"moonclerk-list-payments\",\n name: \"List Payments\",\n description: \"Tool to list payments. Use when you need to retrieve all payments or filter by form, customer, date range, or status after authenticating.\",\n input: MoonclerkListPaymentsInput,\n output: MoonclerkListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAY;CAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAChJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACtG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AA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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,EACpD,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,76 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-payments.d.ts
|
|
4
|
-
declare const MoonclerkListPaymentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoonclerkListPaymentsInput: z.ZodObject<{
|
|
5
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
successful: "successful";
|
|
7
|
+
refunded: "refunded";
|
|
8
|
+
failed: "failed";
|
|
9
|
+
}>>;
|
|
10
|
+
date_to: z.ZodOptional<z.ZodString>;
|
|
11
|
+
form_id: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
date_from: z.ZodOptional<z.ZodString>;
|
|
13
|
+
customer_id: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const MoonclerkListPaymentsOutput: z.ZodObject<{
|
|
16
|
+
payments: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
fee: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
date: z.ZodNullable<z.ZodString>;
|
|
20
|
+
name: z.ZodNullable<z.ZodString>;
|
|
21
|
+
email: z.ZodNullable<z.ZodString>;
|
|
22
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
coupon: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
24
|
+
code: z.ZodNullable<z.ZodString>;
|
|
25
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
26
|
+
duration: z.ZodNullable<z.ZodString>;
|
|
27
|
+
redeem_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
amount_off: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
percent_off: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
|
+
max_redemptions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
duration_in_months: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
34
|
+
successful: "successful";
|
|
35
|
+
refunded: "refunded";
|
|
36
|
+
failed: "failed";
|
|
37
|
+
}>>;
|
|
38
|
+
form_id: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
checkout: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
fee: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
date: z.ZodNullable<z.ZodString>;
|
|
42
|
+
token: z.ZodNullable<z.ZodString>;
|
|
43
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
subtotal: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
amount_due: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
coupon_code: z.ZodNullable<z.ZodString>;
|
|
47
|
+
coupon_amount: z.ZodNullable<z.ZodNumber>;
|
|
48
|
+
upfront_amount: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
trial_period_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
52
|
+
custom_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
customer_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
+
custom_fields: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
55
|
+
payment_method: z.ZodObject<{
|
|
56
|
+
type: z.ZodNullable<z.ZodString>;
|
|
57
|
+
brand: z.ZodNullable<z.ZodString>;
|
|
58
|
+
last4: z.ZodNullable<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
amount_refunded: z.ZodNullable<z.ZodNumber>;
|
|
61
|
+
charge_reference: z.ZodNullable<z.ZodString>;
|
|
62
|
+
invoice_reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
amount_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
customer_reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
declare const moonclerkListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
68
|
+
status?: "successful" | "refunded" | "failed" | undefined;
|
|
69
|
+
date_to?: string | undefined;
|
|
70
|
+
form_id?: number | undefined;
|
|
71
|
+
date_from?: string | undefined;
|
|
72
|
+
customer_id?: number | undefined;
|
|
73
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
74
|
//#endregion
|
|
8
75
|
export { moonclerkListPayments };
|
|
9
76
|
//# sourceMappingURL=list-payments.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiD3B,qBAAA,gCAAqB,wBAAA"}
|