@keystrokehq/payhere 0.1.5 → 0.1.6

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.
Files changed (117) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-hook.cjs +1 -0
  4. package/dist/actions/create-hook.cjs.map +1 -1
  5. package/dist/actions/create-hook.d.cts +3 -19
  6. package/dist/actions/create-hook.d.cts.map +1 -1
  7. package/dist/actions/create-hook.d.mts +3 -19
  8. package/dist/actions/create-hook.d.mts.map +1 -1
  9. package/dist/actions/create-hook.mjs +1 -0
  10. package/dist/actions/create-hook.mjs.map +1 -1
  11. package/dist/actions/create-plan.cjs +1 -0
  12. package/dist/actions/create-plan.cjs.map +1 -1
  13. package/dist/actions/create-plan.d.cts +3 -33
  14. package/dist/actions/create-plan.d.cts.map +1 -1
  15. package/dist/actions/create-plan.d.mts +3 -33
  16. package/dist/actions/create-plan.d.mts.map +1 -1
  17. package/dist/actions/create-plan.mjs +1 -0
  18. package/dist/actions/create-plan.mjs.map +1 -1
  19. package/dist/actions/delete-hook.cjs +1 -0
  20. package/dist/actions/delete-hook.cjs.map +1 -1
  21. package/dist/actions/delete-hook.d.cts +3 -17
  22. package/dist/actions/delete-hook.d.cts.map +1 -1
  23. package/dist/actions/delete-hook.d.mts +3 -17
  24. package/dist/actions/delete-hook.d.mts.map +1 -1
  25. package/dist/actions/delete-hook.mjs +1 -0
  26. package/dist/actions/delete-hook.mjs.map +1 -1
  27. package/dist/actions/get-current-company-stats.cjs +1 -0
  28. package/dist/actions/get-current-company-stats.cjs.map +1 -1
  29. package/dist/actions/get-current-company-stats.d.cts +3 -15
  30. package/dist/actions/get-current-company-stats.d.cts.map +1 -1
  31. package/dist/actions/get-current-company-stats.d.mts +3 -15
  32. package/dist/actions/get-current-company-stats.d.mts.map +1 -1
  33. package/dist/actions/get-current-company-stats.mjs +1 -0
  34. package/dist/actions/get-current-company-stats.mjs.map +1 -1
  35. package/dist/actions/get-current-company.cjs +1 -0
  36. package/dist/actions/get-current-company.cjs.map +1 -1
  37. package/dist/actions/get-current-company.d.cts +3 -15
  38. package/dist/actions/get-current-company.d.cts.map +1 -1
  39. package/dist/actions/get-current-company.d.mts +3 -15
  40. package/dist/actions/get-current-company.d.mts.map +1 -1
  41. package/dist/actions/get-current-company.mjs +1 -0
  42. package/dist/actions/get-current-company.mjs.map +1 -1
  43. package/dist/actions/get-user.cjs +1 -0
  44. package/dist/actions/get-user.cjs.map +1 -1
  45. package/dist/actions/get-user.d.cts +3 -15
  46. package/dist/actions/get-user.d.cts.map +1 -1
  47. package/dist/actions/get-user.d.mts +3 -15
  48. package/dist/actions/get-user.d.mts.map +1 -1
  49. package/dist/actions/get-user.mjs +1 -0
  50. package/dist/actions/get-user.mjs.map +1 -1
  51. package/dist/actions/list-customers.cjs +1 -0
  52. package/dist/actions/list-customers.cjs.map +1 -1
  53. package/dist/actions/list-customers.d.cts +3 -18
  54. package/dist/actions/list-customers.d.cts.map +1 -1
  55. package/dist/actions/list-customers.d.mts +3 -18
  56. package/dist/actions/list-customers.d.mts.map +1 -1
  57. package/dist/actions/list-customers.mjs +1 -0
  58. package/dist/actions/list-customers.mjs.map +1 -1
  59. package/dist/actions/list-hooks.cjs +1 -0
  60. package/dist/actions/list-hooks.cjs.map +1 -1
  61. package/dist/actions/list-hooks.d.cts +3 -15
  62. package/dist/actions/list-hooks.d.cts.map +1 -1
  63. package/dist/actions/list-hooks.d.mts +3 -15
  64. package/dist/actions/list-hooks.d.mts.map +1 -1
  65. package/dist/actions/list-hooks.mjs +1 -0
  66. package/dist/actions/list-hooks.mjs.map +1 -1
  67. package/dist/actions/list-payments.cjs +1 -0
  68. package/dist/actions/list-payments.cjs.map +1 -1
  69. package/dist/actions/list-payments.d.cts +3 -18
  70. package/dist/actions/list-payments.d.cts.map +1 -1
  71. package/dist/actions/list-payments.d.mts +3 -18
  72. package/dist/actions/list-payments.d.mts.map +1 -1
  73. package/dist/actions/list-payments.mjs +1 -0
  74. package/dist/actions/list-payments.mjs.map +1 -1
  75. package/dist/actions/list-plans.cjs +1 -0
  76. package/dist/actions/list-plans.cjs.map +1 -1
  77. package/dist/actions/list-plans.d.cts +3 -18
  78. package/dist/actions/list-plans.d.cts.map +1 -1
  79. package/dist/actions/list-plans.d.mts +3 -18
  80. package/dist/actions/list-plans.d.mts.map +1 -1
  81. package/dist/actions/list-plans.mjs +1 -0
  82. package/dist/actions/list-plans.mjs.map +1 -1
  83. package/dist/actions/list-subscriptions.cjs +1 -0
  84. package/dist/actions/list-subscriptions.cjs.map +1 -1
  85. package/dist/actions/list-subscriptions.d.cts +3 -18
  86. package/dist/actions/list-subscriptions.d.cts.map +1 -1
  87. package/dist/actions/list-subscriptions.d.mts +3 -18
  88. package/dist/actions/list-subscriptions.d.mts.map +1 -1
  89. package/dist/actions/list-subscriptions.mjs +1 -0
  90. package/dist/actions/list-subscriptions.mjs.map +1 -1
  91. package/dist/actions/update-current-company.cjs +1 -0
  92. package/dist/actions/update-current-company.cjs.map +1 -1
  93. package/dist/actions/update-current-company.d.cts +3 -28
  94. package/dist/actions/update-current-company.d.cts.map +1 -1
  95. package/dist/actions/update-current-company.d.mts +3 -28
  96. package/dist/actions/update-current-company.d.mts.map +1 -1
  97. package/dist/actions/update-current-company.mjs +1 -0
  98. package/dist/actions/update-current-company.mjs.map +1 -1
  99. package/dist/actions/update-plan.cjs +1 -0
  100. package/dist/actions/update-plan.cjs.map +1 -1
  101. package/dist/actions/update-plan.d.cts +3 -31
  102. package/dist/actions/update-plan.d.cts.map +1 -1
  103. package/dist/actions/update-plan.d.mts +3 -31
  104. package/dist/actions/update-plan.d.mts.map +1 -1
  105. package/dist/actions/update-plan.mjs +1 -0
  106. package/dist/actions/update-plan.mjs.map +1 -1
  107. package/dist/app.cjs +5 -4
  108. package/dist/app.cjs.map +1 -1
  109. package/dist/app.d.cts +4 -6
  110. package/dist/app.d.cts.map +1 -1
  111. package/dist/app.d.mts +4 -6
  112. package/dist/app.d.mts.map +1 -1
  113. package/dist/app.mjs +0 -1
  114. package/dist/app.mjs.map +1 -1
  115. package/dist/index.d.cts +1 -1
  116. package/dist/index.d.mts +1 -1
  117. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"update-plan.cjs","names":["z","action"],"sources":["../../src/actions/update-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereUpdatePlanInput = z.object({\n id: z.string().describe(\"The unique identifier of the plan to update\"),\n name: z.string().describe(\"Display name for the plan\").optional(),\n price: z.number().describe(\"Plan cost (for one-off plans only)\").optional(),\n hidden: z.boolean().describe(\"Exclude plan from payment landing page\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (for one-off plans only)\").optional(),\n show_qty: z.boolean().describe(\"Enable quantity field on payment form (for one-off plans only)\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge (for subscription plans only)\").optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscription plans only)\").optional(),\n description: z.string().describe(\"Product/service description shown to customers\").optional(),\n success_url: z.string().describe(\"Post-payment redirect destination\").optional(),\n webhook_url: z.string().describe(\"Endpoint for payment status notifications\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments (for subscription plans only)\").optional(),\n receipt_text: z.string().describe(\"Custom message added to email receipts\").optional(),\n pay_button_text: z.string().describe(\"Button label (e.g., 'Subscribe', 'Donate')\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments before cancellation (for subscription plans only)\").optional(),\n}).describe(\"Request model for updating a plan's configuration and settings.\");\nexport const PayhereUpdatePlanOutput = z.object({\n id: z.string().describe(\"Unique plan identifier\").nullable().optional(),\n name: z.string().describe(\"Display name\").nullable().optional(),\n price: z.number().describe(\"Plan cost (for one-off plans)\").nullable().optional(),\n hidden: z.boolean().describe(\"Visibility status\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n show_qty: z.boolean().describe(\"Quantity field status (for one-off plans)\").nullable().optional(),\n setup_fee: z.number().describe(\"Initial charge (for subscriptions)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the plan was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the plan was last updated\").nullable().optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscriptions)\").nullable().optional(),\n description: z.string().describe(\"Product/service description\").nullable().optional(),\n success_url: z.string().describe(\"Redirect URL\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook endpoint\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel setting (for subscriptions)\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan (one-off or subscription)\").nullable().optional(),\n receipt_text: z.string().describe(\"Custom receipt message\").nullable().optional(),\n pay_button_text: z.string().describe(\"Button label\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments (for subscriptions)\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated plan object.\");\n\nexport const payhereUpdatePlan = action(\"PAYHERE_UPDATE_PLAN\", {\n slug: \"payhere-update-plan\",\n name: \"Update Plan\",\n description: \"Tool to update an existing plan's configuration and settings. Use when you need to modify plan properties like name, description, pricing, or other settings for both one-off and subscription plans.\",\n input: PayhereUpdatePlanInput,\n output: PayhereUpdatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,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C,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-plan.cjs","names":["z","action"],"sources":["../../src/actions/update-plan.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereUpdatePlanInput = z.object({\n id: z.string().describe(\"The unique identifier of the plan to update\"),\n name: z.string().describe(\"Display name for the plan\").optional(),\n price: z.number().describe(\"Plan cost (for one-off plans only)\").optional(),\n hidden: z.boolean().describe(\"Exclude plan from payment landing page\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (for one-off plans only)\").optional(),\n show_qty: z.boolean().describe(\"Enable quantity field on payment form (for one-off plans only)\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge (for subscription plans only)\").optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscription plans only)\").optional(),\n description: z.string().describe(\"Product/service description shown to customers\").optional(),\n success_url: z.string().describe(\"Post-payment redirect destination\").optional(),\n webhook_url: z.string().describe(\"Endpoint for payment status notifications\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments (for subscription plans only)\").optional(),\n receipt_text: z.string().describe(\"Custom message added to email receipts\").optional(),\n pay_button_text: z.string().describe(\"Button label (e.g., 'Subscribe', 'Donate')\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments before cancellation (for subscription plans only)\").optional(),\n}).describe(\"Request model for updating a plan's configuration and settings.\");\nexport const PayhereUpdatePlanOutput = z.object({\n id: z.string().describe(\"Unique plan identifier\").nullable().optional(),\n name: z.string().describe(\"Display name\").nullable().optional(),\n price: z.number().describe(\"Plan cost (for one-off plans)\").nullable().optional(),\n hidden: z.boolean().describe(\"Visibility status\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n show_qty: z.boolean().describe(\"Quantity field status (for one-off plans)\").nullable().optional(),\n setup_fee: z.number().describe(\"Initial charge (for subscriptions)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the plan was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the plan was last updated\").nullable().optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscriptions)\").nullable().optional(),\n description: z.string().describe(\"Product/service description\").nullable().optional(),\n success_url: z.string().describe(\"Redirect URL\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook endpoint\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel setting (for subscriptions)\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan (one-off or subscription)\").nullable().optional(),\n receipt_text: z.string().describe(\"Custom receipt message\").nullable().optional(),\n pay_button_text: z.string().describe(\"Button label\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments (for subscriptions)\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated plan object.\");\n\nexport const payhereUpdatePlan: AppAction<\n typeof PayhereUpdatePlanInput,\n typeof PayhereUpdatePlanOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_UPDATE_PLAN\", {\n slug: \"payhere-update-plan\",\n name: \"Update Plan\",\n description: \"Tool to update an existing plan's configuration and settings. Use when you need to modify plan properties like name, description, pricing, or other settings for both one-off and subscription plans.\",\n input: PayhereUpdatePlanInput,\n output: PayhereUpdatePlanOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB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C,SAAS;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-plan.d.ts
@@ -38,37 +40,7 @@ declare const PayhereUpdatePlanOutput: z.ZodObject<{
38
40
  pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
41
  min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
42
  }, z.core.$loose>;
41
- declare const payhereUpdatePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
42
- id: string;
43
- name?: string | undefined;
44
- price?: number | undefined;
45
- hidden?: boolean | undefined;
46
- currency?: string | undefined;
47
- show_qty?: boolean | undefined;
48
- setup_fee?: number | undefined;
49
- billing_day?: number | undefined;
50
- description?: string | undefined;
51
- success_url?: string | undefined;
52
- webhook_url?: string | undefined;
53
- cancel_after?: number | undefined;
54
- receipt_text?: string | undefined;
55
- pay_button_text?: string | undefined;
56
- min_billing_cycles?: number | undefined;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
58
- connectionId: z.ZodString;
59
- entityId: z.ZodString;
60
- instanceId: z.ZodString;
61
- }, z.core.$strip>, z.ZodObject<{
62
- subdomain: z.ZodString;
63
- generic_api_key: z.ZodString;
64
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
65
- connectionId: z.ZodString;
66
- entityId: z.ZodString;
67
- instanceId: z.ZodString;
68
- }, z.core.$strip>, z.ZodObject<{
69
- subdomain: z.ZodString;
70
- generic_api_key: z.ZodString;
71
- }, z.core.$strip>>]>;
43
+ declare const payhereUpdatePlan: AppAction<typeof PayhereUpdatePlanInput, typeof PayhereUpdatePlanOutput, typeof payhere.credential>;
72
44
  //#endregion
73
45
  export { payhereUpdatePlan };
74
46
  //# sourceMappingURL=update-plan.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-plan.d.cts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"update-plan.d.cts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-plan.d.ts
@@ -38,37 +40,7 @@ declare const PayhereUpdatePlanOutput: z.ZodObject<{
38
40
  pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
41
  min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
42
  }, z.core.$loose>;
41
- declare const payhereUpdatePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
42
- id: string;
43
- name?: string | undefined;
44
- price?: number | undefined;
45
- hidden?: boolean | undefined;
46
- currency?: string | undefined;
47
- show_qty?: boolean | undefined;
48
- setup_fee?: number | undefined;
49
- billing_day?: number | undefined;
50
- description?: string | undefined;
51
- success_url?: string | undefined;
52
- webhook_url?: string | undefined;
53
- cancel_after?: number | undefined;
54
- receipt_text?: string | undefined;
55
- pay_button_text?: string | undefined;
56
- min_billing_cycles?: number | undefined;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
58
- connectionId: z.ZodString;
59
- entityId: z.ZodString;
60
- instanceId: z.ZodString;
61
- }, z.core.$strip>, z.ZodObject<{
62
- subdomain: z.ZodString;
63
- generic_api_key: z.ZodString;
64
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
65
- connectionId: z.ZodString;
66
- entityId: z.ZodString;
67
- instanceId: z.ZodString;
68
- }, z.core.$strip>, z.ZodObject<{
69
- subdomain: z.ZodString;
70
- generic_api_key: z.ZodString;
71
- }, z.core.$strip>>]>;
43
+ declare const payhereUpdatePlan: AppAction<typeof PayhereUpdatePlanInput, typeof PayhereUpdatePlanOutput, typeof payhere.credential>;
72
44
  //#endregion
73
45
  export { payhereUpdatePlan };
74
46
  //# sourceMappingURL=update-plan.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-plan.d.mts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"update-plan.d.mts","names":[],"sources":["../../src/actions/update-plan.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAqBvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const payhereUpdatePlan = action("PAYHERE_UPDATE_PLAN", {
@@ -1 +1 @@
1
- {"version":3,"file":"update-plan.mjs","names":[],"sources":["../../src/actions/update-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereUpdatePlanInput = z.object({\n id: z.string().describe(\"The unique identifier of the plan to update\"),\n name: z.string().describe(\"Display name for the plan\").optional(),\n price: z.number().describe(\"Plan cost (for one-off plans only)\").optional(),\n hidden: z.boolean().describe(\"Exclude plan from payment landing page\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (for one-off plans only)\").optional(),\n show_qty: z.boolean().describe(\"Enable quantity field on payment form (for one-off plans only)\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge (for subscription plans only)\").optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscription plans only)\").optional(),\n description: z.string().describe(\"Product/service description shown to customers\").optional(),\n success_url: z.string().describe(\"Post-payment redirect destination\").optional(),\n webhook_url: z.string().describe(\"Endpoint for payment status notifications\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments (for subscription plans only)\").optional(),\n receipt_text: z.string().describe(\"Custom message added to email receipts\").optional(),\n pay_button_text: z.string().describe(\"Button label (e.g., 'Subscribe', 'Donate')\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments before cancellation (for subscription plans only)\").optional(),\n}).describe(\"Request model for updating a plan's configuration and settings.\");\nexport const PayhereUpdatePlanOutput = z.object({\n id: z.string().describe(\"Unique plan identifier\").nullable().optional(),\n name: z.string().describe(\"Display name\").nullable().optional(),\n price: z.number().describe(\"Plan cost (for one-off plans)\").nullable().optional(),\n hidden: z.boolean().describe(\"Visibility status\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n show_qty: z.boolean().describe(\"Quantity field status (for one-off plans)\").nullable().optional(),\n setup_fee: z.number().describe(\"Initial charge (for subscriptions)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the plan was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the plan was last updated\").nullable().optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscriptions)\").nullable().optional(),\n description: z.string().describe(\"Product/service description\").nullable().optional(),\n success_url: z.string().describe(\"Redirect URL\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook endpoint\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel setting (for subscriptions)\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan (one-off or subscription)\").nullable().optional(),\n receipt_text: z.string().describe(\"Custom receipt message\").nullable().optional(),\n pay_button_text: z.string().describe(\"Button label\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments (for subscriptions)\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated plan object.\");\n\nexport const payhereUpdatePlan = action(\"PAYHERE_UPDATE_PLAN\", {\n slug: \"payhere-update-plan\",\n name: \"Update Plan\",\n description: \"Tool to update an existing plan's configuration and settings. Use when you need to modify plan properties like name, description, pricing, or other settings for both one-off and subscription plans.\",\n input: PayhereUpdatePlanInput,\n output: PayhereUpdatePlanOutput,\n});\n"],"mappings":";;AA0CA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1CoC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC1E,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAC/G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACrF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC5F,oBAAoB,EAAE,OAAO,CAAC,CAAC,I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CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-plan.mjs","names":[],"sources":["../../src/actions/update-plan.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereUpdatePlanInput = z.object({\n id: z.string().describe(\"The unique identifier of the plan to update\"),\n name: z.string().describe(\"Display name for the plan\").optional(),\n price: z.number().describe(\"Plan cost (for one-off plans only)\").optional(),\n hidden: z.boolean().describe(\"Exclude plan from payment landing page\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (for one-off plans only)\").optional(),\n show_qty: z.boolean().describe(\"Enable quantity field on payment form (for one-off plans only)\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge (for subscription plans only)\").optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscription plans only)\").optional(),\n description: z.string().describe(\"Product/service description shown to customers\").optional(),\n success_url: z.string().describe(\"Post-payment redirect destination\").optional(),\n webhook_url: z.string().describe(\"Endpoint for payment status notifications\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments (for subscription plans only)\").optional(),\n receipt_text: z.string().describe(\"Custom message added to email receipts\").optional(),\n pay_button_text: z.string().describe(\"Button label (e.g., 'Subscribe', 'Donate')\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments before cancellation (for subscription plans only)\").optional(),\n}).describe(\"Request model for updating a plan's configuration and settings.\");\nexport const PayhereUpdatePlanOutput = z.object({\n id: z.string().describe(\"Unique plan identifier\").nullable().optional(),\n name: z.string().describe(\"Display name\").nullable().optional(),\n price: z.number().describe(\"Plan cost (for one-off plans)\").nullable().optional(),\n hidden: z.boolean().describe(\"Visibility status\").nullable().optional(),\n currency: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n show_qty: z.boolean().describe(\"Quantity field status (for one-off plans)\").nullable().optional(),\n setup_fee: z.number().describe(\"Initial charge (for subscriptions)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the plan was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the plan was last updated\").nullable().optional(),\n billing_day: z.number().int().describe(\"Monthly charge date (for subscriptions)\").nullable().optional(),\n description: z.string().describe(\"Product/service description\").nullable().optional(),\n success_url: z.string().describe(\"Redirect URL\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook endpoint\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel setting (for subscriptions)\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan (one-off or subscription)\").nullable().optional(),\n receipt_text: z.string().describe(\"Custom receipt message\").nullable().optional(),\n pay_button_text: z.string().describe(\"Button label\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum payments (for subscriptions)\").nullable().optional(),\n}).passthrough().describe(\"Response model for updated plan object.\");\n\nexport const payhereUpdatePlan: AppAction<\n typeof PayhereUpdatePlanInput,\n typeof PayhereUpdatePlanOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_UPDATE_PLAN\", {\n slug: \"payhere-update-plan\",\n name: \"Update Plan\",\n description: \"Tool to update an existing plan's configuration and settings. Use when you need to modify plan properties like name, description, pricing, or other settings for both one-off and subscription plans.\",\n input: PayhereUpdatePlanInput,\n output: PayhereUpdatePlanOutput,\n});\n"],"mappings":";;;AA4CA,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9CoC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC1E,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAC/G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACrF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC5F,oBAAoB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CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,13 +1,14 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
2
  let zod = require("zod");
3
3
  //#region src/app.ts
4
+ const credential = {
5
+ subdomain: zod.z.string(),
6
+ generic_api_key: zod.z.string()
7
+ };
4
8
  const payhere = (0, _keystrokehq_keystroke_app.defineApp)({
5
9
  slug: "payhere",
6
10
  auth: "keystroke",
7
- credential: {
8
- subdomain: zod.z.string(),
9
- generic_api_key: zod.z.string()
10
- }
11
+ credential
11
12
  });
12
13
  //#endregion
13
14
  exports.payhere = payhere;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const payhere = defineApp({\n slug: \"payhere\",\n auth: \"keystroke\",\n credential: {\n subdomain: z.string(),\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;CACN,YAAY;EACV,WAAWA,IAAAA,EAAE,OAAO;EACpB,iBAAiBA,IAAAA,EAAE,OAAO;CAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n subdomain: z.string(),\n generic_api_key: z.string(),\n};\n\nexport const payhere: KeystrokeApp<\"payhere\", typeof credential> = defineApp({\n slug: \"payhere\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,WAAWA,IAAAA,EAAE,OAAO;CACpB,iBAAiBA,IAAAA,EAAE,OAAO;AAC5B;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAgE;CAC3E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,14 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const payhere: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  subdomain: z.ZodString;
10
7
  generic_api_key: z.ZodString;
11
- }, z.core.$strip>>>;
8
+ };
9
+ declare const payhere: KeystrokeApp<"payhere", typeof credential>;
12
10
  //#endregion
13
11
  export { payhere };
14
12
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,OAAA,6BAAO,GAAA,+BAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;aAGL,CAAA,CAAA,SAAA;mBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,14 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const payhere: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  subdomain: z.ZodString;
10
7
  generic_api_key: z.ZodString;
11
- }, z.core.$strip>>>;
8
+ };
9
+ declare const payhere: KeystrokeApp<"payhere", typeof credential>;
12
10
  //#endregion
13
11
  export { payhere };
14
12
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,OAAA,6BAAO,GAAA,+BAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;aAGL,CAAA,CAAA,SAAA;mBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const payhere = defineApp({
5
4
  slug: "payhere",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const payhere = defineApp({\n slug: \"payhere\",\n auth: \"keystroke\",\n credential: {\n subdomain: z.string(),\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;CACN,YAAY;EACV,WAAW,EAAE,OAAO;EACpB,iBAAiB,EAAE,OAAO;CAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n subdomain: z.string(),\n generic_api_key: z.string(),\n};\n\nexport const payhere: KeystrokeApp<\"payhere\", typeof credential> = defineApp({\n slug: \"payhere\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,UAAsD,UAAU;CAC3E,MAAM;CACN,MAAM;CACN;EAPA,WAAW,EAAE,OAAO;EACpB,iBAAiB,EAAE,OAAO;CAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { payhere } from "./app.cjs";
1
2
  import { payhereCreateHook } from "./actions/create-hook.cjs";
2
3
  import { payhereCreatePlan } from "./actions/create-plan.cjs";
3
4
  import { payhereDeleteHook } from "./actions/delete-hook.cjs";
@@ -11,6 +12,5 @@ import { payhereListPlans } from "./actions/list-plans.cjs";
11
12
  import { payhereListSubscriptions } from "./actions/list-subscriptions.cjs";
12
13
  import { payhereUpdateCurrentCompany } from "./actions/update-current-company.cjs";
13
14
  import { payhereUpdatePlan } from "./actions/update-plan.cjs";
14
- import { payhere } from "./app.cjs";
15
15
  import { payhereCatalog } from "./catalog.cjs";
16
16
  export { payhere, payhereCatalog, payhereCreateHook, payhereCreatePlan, payhereDeleteHook, payhereGetCurrentCompany, payhereGetCurrentCompanyStats, payhereGetUser, payhereListCustomers, payhereListHooks, payhereListPayments, payhereListPlans, payhereListSubscriptions, payhereUpdateCurrentCompany, payhereUpdatePlan };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { payhere } from "./app.mjs";
1
2
  import { payhereCreateHook } from "./actions/create-hook.mjs";
2
3
  import { payhereCreatePlan } from "./actions/create-plan.mjs";
3
4
  import { payhereDeleteHook } from "./actions/delete-hook.mjs";
@@ -11,6 +12,5 @@ import { payhereListPlans } from "./actions/list-plans.mjs";
11
12
  import { payhereListSubscriptions } from "./actions/list-subscriptions.mjs";
12
13
  import { payhereUpdateCurrentCompany } from "./actions/update-current-company.mjs";
13
14
  import { payhereUpdatePlan } from "./actions/update-plan.mjs";
14
- import { payhere } from "./app.mjs";
15
15
  import { payhereCatalog } from "./catalog.mjs";
16
16
  export { payhere, payhereCatalog, payhereCreateHook, payhereCreatePlan, payhereDeleteHook, payhereGetCurrentCompany, payhereGetCurrentCompanyStats, payhereGetUser, payhereListCustomers, payhereListHooks, payhereListPayments, payhereListPlans, payhereListSubscriptions, payhereUpdateCurrentCompany, payhereUpdatePlan };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/payhere",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {