@keystrokehq/nasdaq 0.1.4 → 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 (69) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-analyst-ratings.cjs +1 -0
  4. package/dist/actions/get-analyst-ratings.cjs.map +1 -1
  5. package/dist/actions/get-analyst-ratings.d.cts +3 -3
  6. package/dist/actions/get-analyst-ratings.d.cts.map +1 -1
  7. package/dist/actions/get-analyst-ratings.d.mts +3 -3
  8. package/dist/actions/get-analyst-ratings.d.mts.map +1 -1
  9. package/dist/actions/get-analyst-ratings.mjs +1 -0
  10. package/dist/actions/get-analyst-ratings.mjs.map +1 -1
  11. package/dist/actions/get-datatable-metadata.cjs +1 -0
  12. package/dist/actions/get-datatable-metadata.cjs.map +1 -1
  13. package/dist/actions/get-datatable-metadata.d.cts +3 -3
  14. package/dist/actions/get-datatable-metadata.d.cts.map +1 -1
  15. package/dist/actions/get-datatable-metadata.d.mts +3 -3
  16. package/dist/actions/get-datatable-metadata.d.mts.map +1 -1
  17. package/dist/actions/get-datatable-metadata.mjs +1 -0
  18. package/dist/actions/get-datatable-metadata.mjs.map +1 -1
  19. package/dist/actions/get-datatable.cjs +1 -0
  20. package/dist/actions/get-datatable.cjs.map +1 -1
  21. package/dist/actions/get-datatable.d.cts +3 -3
  22. package/dist/actions/get-datatable.d.cts.map +1 -1
  23. package/dist/actions/get-datatable.d.mts +3 -3
  24. package/dist/actions/get-datatable.d.mts.map +1 -1
  25. package/dist/actions/get-datatable.mjs +1 -0
  26. package/dist/actions/get-datatable.mjs.map +1 -1
  27. package/dist/actions/get-dividend-history.cjs +1 -0
  28. package/dist/actions/get-dividend-history.cjs.map +1 -1
  29. package/dist/actions/get-dividend-history.d.cts +3 -5
  30. package/dist/actions/get-dividend-history.d.cts.map +1 -1
  31. package/dist/actions/get-dividend-history.d.mts +3 -5
  32. package/dist/actions/get-dividend-history.d.mts.map +1 -1
  33. package/dist/actions/get-dividend-history.mjs +1 -0
  34. package/dist/actions/get-dividend-history.mjs.map +1 -1
  35. package/dist/actions/get-real-time-quote.cjs +1 -0
  36. package/dist/actions/get-real-time-quote.cjs.map +1 -1
  37. package/dist/actions/get-real-time-quote.d.cts +3 -7
  38. package/dist/actions/get-real-time-quote.d.cts.map +1 -1
  39. package/dist/actions/get-real-time-quote.d.mts +3 -7
  40. package/dist/actions/get-real-time-quote.d.mts.map +1 -1
  41. package/dist/actions/get-real-time-quote.mjs +1 -0
  42. package/dist/actions/get-real-time-quote.mjs.map +1 -1
  43. package/dist/actions/get-table-row.cjs +1 -0
  44. package/dist/actions/get-table-row.cjs.map +1 -1
  45. package/dist/actions/get-table-row.d.cts +3 -7
  46. package/dist/actions/get-table-row.d.cts.map +1 -1
  47. package/dist/actions/get-table-row.d.mts +3 -7
  48. package/dist/actions/get-table-row.d.mts.map +1 -1
  49. package/dist/actions/get-table-row.mjs +1 -0
  50. package/dist/actions/get-table-row.mjs.map +1 -1
  51. package/dist/actions/get-tables-by-date.cjs +1 -0
  52. package/dist/actions/get-tables-by-date.cjs.map +1 -1
  53. package/dist/actions/get-tables-by-date.d.cts +3 -3
  54. package/dist/actions/get-tables-by-date.d.cts.map +1 -1
  55. package/dist/actions/get-tables-by-date.d.mts +3 -3
  56. package/dist/actions/get-tables-by-date.d.mts.map +1 -1
  57. package/dist/actions/get-tables-by-date.mjs +1 -0
  58. package/dist/actions/get-tables-by-date.mjs.map +1 -1
  59. package/dist/app.cjs +5 -2
  60. package/dist/app.cjs.map +1 -1
  61. package/dist/app.d.cts +7 -1
  62. package/dist/app.d.cts.map +1 -1
  63. package/dist/app.d.mts +7 -1
  64. package/dist/app.d.mts.map +1 -1
  65. package/dist/app.mjs +3 -2
  66. package/dist/app.mjs.map +1 -1
  67. package/dist/index.d.cts +1 -1
  68. package/dist/index.d.mts +1 -1
  69. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["nasdaq","executeNasdaqTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { nasdaq } from \"./app\";\nimport { executeNasdaqTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return nasdaq.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNasdaqTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["nasdaq","executeNasdaqTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { nasdaq } from \"./app\";\nimport { executeNasdaqTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof nasdaq.credential> {\n return nasdaq.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNasdaqTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { nasdaq } from \"./app\";\nimport { executeNasdaqTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return nasdaq.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeNasdaqTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { nasdaq } from \"./app\";\nimport { executeNasdaqTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof nasdaq.credential> {\n return nasdaq.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeNasdaqTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-analyst-ratings.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-analyst-ratings.cjs","names":["z","action"],"sources":["../../src/actions/get-analyst-ratings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetAnalystRatingsInput = z.object({\n symbol: z.string().describe(\"The stock ticker symbol (e.g., AAPL, MSFT, AMZN). Returns analyst rating consensus data including buy/hold/sell counts, mean rating scores, and target price estimates with historical trends.\"),\n});\nconst NasdaqGetAnalystRatings_TargetPriceSchema = z.object({\n ticker: z.string().describe(\"The ticker symbol for the company (same as m_ticker).\").nullable().optional(),\n exchange: z.string().describe(\"Exchange where the stock is traded.\").nullable().optional(),\n m_ticker: z.string().describe(\"The ticker symbol for the company.\").nullable().optional(),\n obs_date: z.string().describe(\"Observation date of the target price.\").nullable().optional(),\n comp_name: z.string().describe(\"Company name.\").nullable().optional(),\n tp_cnt_est: z.number().int().describe(\"Number of target price estimates.\").nullable().optional(),\n tp_low_est: z.number().describe(\"Lowest target price estimate.\").nullable().optional(),\n comp_name_2: z.string().describe(\"Company name (secondary).\").nullable().optional(),\n tp_high_est: z.number().describe(\"Highest target price estimate.\").nullable().optional(),\n tp_mean_est: z.number().describe(\"Mean target price estimate.\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD).\").nullable().optional(),\n tp_median_est: z.number().describe(\"Median target price estimate.\").nullable().optional(),\n tp_std_dev_est: z.number().describe(\"Standard deviation of target price estimates.\").nullable().optional(),\n tp_cnt_est_rev_up: z.number().int().describe(\"Number of upward target price revisions.\").nullable().optional(),\n tp_cnt_est_rev_down: z.number().int().describe(\"Number of downward target price revisions.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetAnalystRatings_AnalystRatingSchema = z.object({\n ticker: z.string().describe(\"The ticker symbol for the company (same as m_ticker).\").nullable().optional(),\n exchange: z.string().describe(\"Exchange where the stock is traded.\").nullable().optional(),\n m_ticker: z.string().describe(\"The ticker symbol for the company.\").nullable().optional(),\n comp_name: z.string().describe(\"Company name.\").nullable().optional(),\n tp_cnt_est: z.number().int().describe(\"Number of target price estimates.\").nullable().optional(),\n tp_low_est: z.number().describe(\"Lowest target price estimate.\").nullable().optional(),\n comp_name_2: z.string().describe(\"Company name (secondary).\").nullable().optional(),\n rating_mean: z.number().describe(\"Current mean rating score (1=Strong Buy to 5=Strong Sell).\").nullable().optional(),\n tp_high_est: z.number().describe(\"Highest target price estimate.\").nullable().optional(),\n tp_mean_est: z.number().describe(\"Mean target price estimate.\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD).\").nullable().optional(),\n last_rev_date: z.string().describe(\"Last revision date of the rating.\").nullable().optional(),\n tp_median_est: z.number().describe(\"Median target price estimate.\").nullable().optional(),\n tp_std_dev_est: z.number().describe(\"Standard deviation of target price estimates.\").nullable().optional(),\n rating_cnt_buys: z.number().int().describe(\"Current number of Buy ratings.\").nullable().optional(),\n rating_cnt_holds: z.number().int().describe(\"Current number of Hold ratings.\").nullable().optional(),\n rating_cnt_sells: z.number().int().describe(\"Current number of Sell ratings.\").nullable().optional(),\n tp_cnt_est_rev_up: z.number().int().describe(\"Number of upward target price revisions.\").nullable().optional(),\n rating_mean_1m_ago: z.number().describe(\"Mean rating score 1 month ago.\").nullable().optional(),\n rating_mean_2m_ago: z.number().describe(\"Mean rating score 2 months ago.\").nullable().optional(),\n rating_mean_3m_ago: z.number().describe(\"Mean rating score 3 months ago.\").nullable().optional(),\n tp_cnt_est_rev_down: z.number().int().describe(\"Number of downward target price revisions.\").nullable().optional(),\n rating_cnt_buys_1m_ago: z.number().int().describe(\"Number of Buy ratings 1 month ago.\").nullable().optional(),\n rating_cnt_buys_2m_ago: z.number().int().describe(\"Number of Buy ratings 2 months ago.\").nullable().optional(),\n rating_cnt_buys_3m_ago: z.number().int().describe(\"Number of Buy ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_buys: z.number().int().describe(\"Current number of Strong Buy ratings.\").nullable().optional(),\n rating_cnt_holds_1m_ago: z.number().int().describe(\"Number of Hold ratings 1 month ago.\").nullable().optional(),\n rating_cnt_holds_2m_ago: z.number().int().describe(\"Number of Hold ratings 2 months ago.\").nullable().optional(),\n rating_cnt_holds_3m_ago: z.number().int().describe(\"Number of Hold ratings 3 months ago.\").nullable().optional(),\n rating_cnt_sells_1m_ago: z.number().int().describe(\"Number of Sell ratings 1 month ago.\").nullable().optional(),\n rating_cnt_sells_2m_ago: z.number().int().describe(\"Number of Sell ratings 2 months ago.\").nullable().optional(),\n rating_cnt_sells_3m_ago: z.number().int().describe(\"Number of Sell ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_sells: z.number().int().describe(\"Current number of Strong Sell ratings.\").nullable().optional(),\n rating_cnt_strong_buys_1m_ago: z.number().int().describe(\"Number of Strong Buy ratings 1 month ago.\").nullable().optional(),\n rating_cnt_strong_buys_2m_ago: z.number().int().describe(\"Number of Strong Buy ratings 2 months ago.\").nullable().optional(),\n rating_cnt_strong_buys_3m_ago: z.number().int().describe(\"Number of Strong Buy ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_sells_1m_ago: z.number().int().describe(\"Number of Strong Sell ratings 1 month ago.\").nullable().optional(),\n rating_cnt_strong_sells_2m_ago: z.number().int().describe(\"Number of Strong Sell ratings 2 months ago.\").nullable().optional(),\n rating_cnt_strong_sells_3m_ago: z.number().int().describe(\"Number of Strong Sell ratings 3 months ago.\").nullable().optional(),\n}).passthrough();\nexport const NasdaqGetAnalystRatingsOutput = z.object({\n message: z.string().describe(\"Informational message, typically indicates when no analyst rating or target price data is available for the requested symbol.\").nullable().optional(),\n target_prices: z.array(NasdaqGetAnalystRatings_TargetPriceSchema).describe(\"Historical target price estimates with observation dates, showing how analyst price targets and estimate counts have evolved over time.\").nullable().optional(),\n analyst_ratings: z.array(NasdaqGetAnalystRatings_AnalystRatingSchema).describe(\"Current analyst rating consensus data including rating counts (Strong Buy/Buy/Hold/Sell/Strong Sell) for current and past 3 months, mean rating scores, and target price statistics (mean, median, high, low, std dev).\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetAnalystRatings = action(\"NASDAQ_GET_ANALYST_RATINGS\", {\n slug: \"nasdaq-get-analyst-ratings\",\n name: \"Get Analyst Ratings and Target Prices\",\n description: \"Retrieves comprehensive analyst ratings and target price data for a stock symbol from Zacks Investment Research. Returns current and historical (1-3 months ago) rating counts across all rating categories (Strong Buy, Buy, Hold, Sell, Strong Sell), mean rating scores, and consensus target price estimates including mean, median, high, low, standard deviation, and revision counts. Also provides historical target price data with observation dates showing how analyst estimates have changed over time. Data sources: ZACKS/AR (analyst ratings) and ZACKS/TP (target prices historical data).\",\n input: NasdaqGetAnalystRatingsInput,\n output: NasdaqGetAnalystRatingsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gMAAgM,EAC9N,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,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M;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-analyst-ratings.cjs","names":["z","action"],"sources":["../../src/actions/get-analyst-ratings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetAnalystRatingsInput = z.object({\n symbol: z.string().describe(\"The stock ticker symbol (e.g., AAPL, MSFT, AMZN). Returns analyst rating consensus data including buy/hold/sell counts, mean rating scores, and target price estimates with historical trends.\"),\n});\nconst NasdaqGetAnalystRatings_TargetPriceSchema = z.object({\n ticker: z.string().describe(\"The ticker symbol for the company (same as m_ticker).\").nullable().optional(),\n exchange: z.string().describe(\"Exchange where the stock is traded.\").nullable().optional(),\n m_ticker: z.string().describe(\"The ticker symbol for the company.\").nullable().optional(),\n obs_date: z.string().describe(\"Observation date of the target price.\").nullable().optional(),\n comp_name: z.string().describe(\"Company name.\").nullable().optional(),\n tp_cnt_est: z.number().int().describe(\"Number of target price estimates.\").nullable().optional(),\n tp_low_est: z.number().describe(\"Lowest target price estimate.\").nullable().optional(),\n comp_name_2: z.string().describe(\"Company name (secondary).\").nullable().optional(),\n tp_high_est: z.number().describe(\"Highest target price estimate.\").nullable().optional(),\n tp_mean_est: z.number().describe(\"Mean target price estimate.\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD).\").nullable().optional(),\n tp_median_est: z.number().describe(\"Median target price estimate.\").nullable().optional(),\n tp_std_dev_est: z.number().describe(\"Standard deviation of target price estimates.\").nullable().optional(),\n tp_cnt_est_rev_up: z.number().int().describe(\"Number of upward target price revisions.\").nullable().optional(),\n tp_cnt_est_rev_down: z.number().int().describe(\"Number of downward target price revisions.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetAnalystRatings_AnalystRatingSchema = z.object({\n ticker: z.string().describe(\"The ticker symbol for the company (same as m_ticker).\").nullable().optional(),\n exchange: z.string().describe(\"Exchange where the stock is traded.\").nullable().optional(),\n m_ticker: z.string().describe(\"The ticker symbol for the company.\").nullable().optional(),\n comp_name: z.string().describe(\"Company name.\").nullable().optional(),\n tp_cnt_est: z.number().int().describe(\"Number of target price estimates.\").nullable().optional(),\n tp_low_est: z.number().describe(\"Lowest target price estimate.\").nullable().optional(),\n comp_name_2: z.string().describe(\"Company name (secondary).\").nullable().optional(),\n rating_mean: z.number().describe(\"Current mean rating score (1=Strong Buy to 5=Strong Sell).\").nullable().optional(),\n tp_high_est: z.number().describe(\"Highest target price estimate.\").nullable().optional(),\n tp_mean_est: z.number().describe(\"Mean target price estimate.\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD).\").nullable().optional(),\n last_rev_date: z.string().describe(\"Last revision date of the rating.\").nullable().optional(),\n tp_median_est: z.number().describe(\"Median target price estimate.\").nullable().optional(),\n tp_std_dev_est: z.number().describe(\"Standard deviation of target price estimates.\").nullable().optional(),\n rating_cnt_buys: z.number().int().describe(\"Current number of Buy ratings.\").nullable().optional(),\n rating_cnt_holds: z.number().int().describe(\"Current number of Hold ratings.\").nullable().optional(),\n rating_cnt_sells: z.number().int().describe(\"Current number of Sell ratings.\").nullable().optional(),\n tp_cnt_est_rev_up: z.number().int().describe(\"Number of upward target price revisions.\").nullable().optional(),\n rating_mean_1m_ago: z.number().describe(\"Mean rating score 1 month ago.\").nullable().optional(),\n rating_mean_2m_ago: z.number().describe(\"Mean rating score 2 months ago.\").nullable().optional(),\n rating_mean_3m_ago: z.number().describe(\"Mean rating score 3 months ago.\").nullable().optional(),\n tp_cnt_est_rev_down: z.number().int().describe(\"Number of downward target price revisions.\").nullable().optional(),\n rating_cnt_buys_1m_ago: z.number().int().describe(\"Number of Buy ratings 1 month ago.\").nullable().optional(),\n rating_cnt_buys_2m_ago: z.number().int().describe(\"Number of Buy ratings 2 months ago.\").nullable().optional(),\n rating_cnt_buys_3m_ago: z.number().int().describe(\"Number of Buy ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_buys: z.number().int().describe(\"Current number of Strong Buy ratings.\").nullable().optional(),\n rating_cnt_holds_1m_ago: z.number().int().describe(\"Number of Hold ratings 1 month ago.\").nullable().optional(),\n rating_cnt_holds_2m_ago: z.number().int().describe(\"Number of Hold ratings 2 months ago.\").nullable().optional(),\n rating_cnt_holds_3m_ago: z.number().int().describe(\"Number of Hold ratings 3 months ago.\").nullable().optional(),\n rating_cnt_sells_1m_ago: z.number().int().describe(\"Number of Sell ratings 1 month ago.\").nullable().optional(),\n rating_cnt_sells_2m_ago: z.number().int().describe(\"Number of Sell ratings 2 months ago.\").nullable().optional(),\n rating_cnt_sells_3m_ago: z.number().int().describe(\"Number of Sell ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_sells: z.number().int().describe(\"Current number of Strong Sell ratings.\").nullable().optional(),\n rating_cnt_strong_buys_1m_ago: z.number().int().describe(\"Number of Strong Buy ratings 1 month ago.\").nullable().optional(),\n rating_cnt_strong_buys_2m_ago: z.number().int().describe(\"Number of Strong Buy ratings 2 months ago.\").nullable().optional(),\n rating_cnt_strong_buys_3m_ago: z.number().int().describe(\"Number of Strong Buy ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_sells_1m_ago: z.number().int().describe(\"Number of Strong Sell ratings 1 month ago.\").nullable().optional(),\n rating_cnt_strong_sells_2m_ago: z.number().int().describe(\"Number of Strong Sell ratings 2 months ago.\").nullable().optional(),\n rating_cnt_strong_sells_3m_ago: z.number().int().describe(\"Number of Strong Sell ratings 3 months ago.\").nullable().optional(),\n}).passthrough();\nexport const NasdaqGetAnalystRatingsOutput = z.object({\n message: z.string().describe(\"Informational message, typically indicates when no analyst rating or target price data is available for the requested symbol.\").nullable().optional(),\n target_prices: z.array(NasdaqGetAnalystRatings_TargetPriceSchema).describe(\"Historical target price estimates with observation dates, showing how analyst price targets and estimate counts have evolved over time.\").nullable().optional(),\n analyst_ratings: z.array(NasdaqGetAnalystRatings_AnalystRatingSchema).describe(\"Current analyst rating consensus data including rating counts (Strong Buy/Buy/Hold/Sell/Strong Sell) for current and past 3 months, mean rating scores, and target price statistics (mean, median, high, low, std dev).\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetAnalystRatings: AppAction<\n typeof NasdaqGetAnalystRatingsInput,\n typeof NasdaqGetAnalystRatingsOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_ANALYST_RATINGS\", {\n slug: \"nasdaq-get-analyst-ratings\",\n name: \"Get Analyst Ratings and Target Prices\",\n description: \"Retrieves comprehensive analyst ratings and target price data for a stock symbol from Zacks Investment Research. Returns current and historical (1-3 months ago) rating counts across all rating categories (Strong Buy, Buy, Hold, Sell, Strong Sell), mean rating scores, and consensus target price estimates including mean, median, high, low, standard deviation, and revision counts. Also provides historical target price data with observation dates showing how analyst estimates have changed over time. Data sources: ZACKS/AR (analyst ratings) and ZACKS/TP (target prices historical data).\",\n input: NasdaqGetAnalystRatingsInput,\n output: NasdaqGetAnalystRatingsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gMAAgM,EAC9N,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAA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S,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClL,eAAeA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1O,iBAAiBA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChU,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-analyst-ratings.d.ts
@@ -65,9 +67,7 @@ declare const NasdaqGetAnalystRatingsOutput: z.ZodObject<{
65
67
  rating_cnt_strong_sells_3m_ago: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
68
  }, z.core.$loose>>>>;
67
69
  }, z.core.$loose>;
68
- declare const nasdaqGetAnalystRatings: import("@keystrokehq/action").WorkflowActionDefinition<{
69
- symbol: string;
70
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
70
+ declare const nasdaqGetAnalystRatings: AppAction<typeof NasdaqGetAnalystRatingsInput, typeof NasdaqGetAnalystRatingsOutput, typeof nasdaq.credential>;
71
71
  //#endregion
72
72
  export { nasdaqGetAnalystRatings };
73
73
  //# sourceMappingURL=get-analyst-ratings.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-analyst-ratings.d.cts","names":[],"sources":["../../src/actions/get-analyst-ratings.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cA6D5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-analyst-ratings.d.cts","names":[],"sources":["../../src/actions/get-analyst-ratings.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cA6D5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-analyst-ratings.d.ts
@@ -65,9 +67,7 @@ declare const NasdaqGetAnalystRatingsOutput: z.ZodObject<{
65
67
  rating_cnt_strong_sells_3m_ago: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
68
  }, z.core.$loose>>>>;
67
69
  }, z.core.$loose>;
68
- declare const nasdaqGetAnalystRatings: import("@keystrokehq/action").WorkflowActionDefinition<{
69
- symbol: string;
70
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
70
+ declare const nasdaqGetAnalystRatings: AppAction<typeof NasdaqGetAnalystRatingsInput, typeof NasdaqGetAnalystRatingsOutput, typeof nasdaq.credential>;
71
71
  //#endregion
72
72
  export { nasdaqGetAnalystRatings };
73
73
  //# sourceMappingURL=get-analyst-ratings.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-analyst-ratings.d.mts","names":[],"sources":["../../src/actions/get-analyst-ratings.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cA6D5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"get-analyst-ratings.d.mts","names":[],"sources":["../../src/actions/get-analyst-ratings.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cA6D5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-analyst-ratings.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-analyst-ratings.mjs","names":[],"sources":["../../src/actions/get-analyst-ratings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetAnalystRatingsInput = z.object({\n symbol: z.string().describe(\"The stock ticker symbol (e.g., AAPL, MSFT, AMZN). Returns analyst rating consensus data including buy/hold/sell counts, mean rating scores, and target price estimates with historical trends.\"),\n});\nconst NasdaqGetAnalystRatings_TargetPriceSchema = z.object({\n ticker: z.string().describe(\"The ticker symbol for the company (same as m_ticker).\").nullable().optional(),\n exchange: z.string().describe(\"Exchange where the stock is traded.\").nullable().optional(),\n m_ticker: z.string().describe(\"The ticker symbol for the company.\").nullable().optional(),\n obs_date: z.string().describe(\"Observation date of the target price.\").nullable().optional(),\n comp_name: z.string().describe(\"Company name.\").nullable().optional(),\n tp_cnt_est: z.number().int().describe(\"Number of target price estimates.\").nullable().optional(),\n tp_low_est: z.number().describe(\"Lowest target price estimate.\").nullable().optional(),\n comp_name_2: z.string().describe(\"Company name (secondary).\").nullable().optional(),\n tp_high_est: z.number().describe(\"Highest target price estimate.\").nullable().optional(),\n tp_mean_est: z.number().describe(\"Mean target price estimate.\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD).\").nullable().optional(),\n tp_median_est: z.number().describe(\"Median target price estimate.\").nullable().optional(),\n tp_std_dev_est: z.number().describe(\"Standard deviation of target price estimates.\").nullable().optional(),\n tp_cnt_est_rev_up: z.number().int().describe(\"Number of upward target price revisions.\").nullable().optional(),\n tp_cnt_est_rev_down: z.number().int().describe(\"Number of downward target price revisions.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetAnalystRatings_AnalystRatingSchema = z.object({\n ticker: z.string().describe(\"The ticker symbol for the company (same as m_ticker).\").nullable().optional(),\n exchange: z.string().describe(\"Exchange where the stock is traded.\").nullable().optional(),\n m_ticker: z.string().describe(\"The ticker symbol for the company.\").nullable().optional(),\n comp_name: z.string().describe(\"Company name.\").nullable().optional(),\n tp_cnt_est: z.number().int().describe(\"Number of target price estimates.\").nullable().optional(),\n tp_low_est: z.number().describe(\"Lowest target price estimate.\").nullable().optional(),\n comp_name_2: z.string().describe(\"Company name (secondary).\").nullable().optional(),\n rating_mean: z.number().describe(\"Current mean rating score (1=Strong Buy to 5=Strong Sell).\").nullable().optional(),\n tp_high_est: z.number().describe(\"Highest target price estimate.\").nullable().optional(),\n tp_mean_est: z.number().describe(\"Mean target price estimate.\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD).\").nullable().optional(),\n last_rev_date: z.string().describe(\"Last revision date of the rating.\").nullable().optional(),\n tp_median_est: z.number().describe(\"Median target price estimate.\").nullable().optional(),\n tp_std_dev_est: z.number().describe(\"Standard deviation of target price estimates.\").nullable().optional(),\n rating_cnt_buys: z.number().int().describe(\"Current number of Buy ratings.\").nullable().optional(),\n rating_cnt_holds: z.number().int().describe(\"Current number of Hold ratings.\").nullable().optional(),\n rating_cnt_sells: z.number().int().describe(\"Current number of Sell ratings.\").nullable().optional(),\n tp_cnt_est_rev_up: z.number().int().describe(\"Number of upward target price revisions.\").nullable().optional(),\n rating_mean_1m_ago: z.number().describe(\"Mean rating score 1 month ago.\").nullable().optional(),\n rating_mean_2m_ago: z.number().describe(\"Mean rating score 2 months ago.\").nullable().optional(),\n rating_mean_3m_ago: z.number().describe(\"Mean rating score 3 months ago.\").nullable().optional(),\n tp_cnt_est_rev_down: z.number().int().describe(\"Number of downward target price revisions.\").nullable().optional(),\n rating_cnt_buys_1m_ago: z.number().int().describe(\"Number of Buy ratings 1 month ago.\").nullable().optional(),\n rating_cnt_buys_2m_ago: z.number().int().describe(\"Number of Buy ratings 2 months ago.\").nullable().optional(),\n rating_cnt_buys_3m_ago: z.number().int().describe(\"Number of Buy ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_buys: z.number().int().describe(\"Current number of Strong Buy ratings.\").nullable().optional(),\n rating_cnt_holds_1m_ago: z.number().int().describe(\"Number of Hold ratings 1 month ago.\").nullable().optional(),\n rating_cnt_holds_2m_ago: z.number().int().describe(\"Number of Hold ratings 2 months ago.\").nullable().optional(),\n rating_cnt_holds_3m_ago: z.number().int().describe(\"Number of Hold ratings 3 months ago.\").nullable().optional(),\n rating_cnt_sells_1m_ago: z.number().int().describe(\"Number of Sell ratings 1 month ago.\").nullable().optional(),\n rating_cnt_sells_2m_ago: z.number().int().describe(\"Number of Sell ratings 2 months ago.\").nullable().optional(),\n rating_cnt_sells_3m_ago: z.number().int().describe(\"Number of Sell ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_sells: z.number().int().describe(\"Current number of Strong Sell ratings.\").nullable().optional(),\n rating_cnt_strong_buys_1m_ago: z.number().int().describe(\"Number of Strong Buy ratings 1 month ago.\").nullable().optional(),\n rating_cnt_strong_buys_2m_ago: z.number().int().describe(\"Number of Strong Buy ratings 2 months ago.\").nullable().optional(),\n rating_cnt_strong_buys_3m_ago: z.number().int().describe(\"Number of Strong Buy ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_sells_1m_ago: z.number().int().describe(\"Number of Strong Sell ratings 1 month ago.\").nullable().optional(),\n rating_cnt_strong_sells_2m_ago: z.number().int().describe(\"Number of Strong Sell ratings 2 months ago.\").nullable().optional(),\n rating_cnt_strong_sells_3m_ago: z.number().int().describe(\"Number of Strong Sell ratings 3 months ago.\").nullable().optional(),\n}).passthrough();\nexport const NasdaqGetAnalystRatingsOutput = z.object({\n message: z.string().describe(\"Informational message, typically indicates when no analyst rating or target price data is available for the requested symbol.\").nullable().optional(),\n target_prices: z.array(NasdaqGetAnalystRatings_TargetPriceSchema).describe(\"Historical target price estimates with observation dates, showing how analyst price targets and estimate counts have evolved over time.\").nullable().optional(),\n analyst_ratings: z.array(NasdaqGetAnalystRatings_AnalystRatingSchema).describe(\"Current analyst rating consensus data including rating counts (Strong Buy/Buy/Hold/Sell/Strong Sell) for current and past 3 months, mean rating scores, and target price statistics (mean, median, high, low, std dev).\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetAnalystRatings = action(\"NASDAQ_GET_ANALYST_RATINGS\", {\n slug: \"nasdaq-get-analyst-ratings\",\n name: \"Get Analyst Ratings and Target Prices\",\n description: \"Retrieves comprehensive analyst ratings and target price data for a stock symbol from Zacks Investment Research. Returns current and historical (1-3 months ago) rating counts across all rating categories (Strong Buy, Buy, Hold, Sell, Strong Sell), mean rating scores, and consensus target price estimates including mean, median, high, low, standard deviation, and revision counts. Also provides historical target price data with observation dates showing how analyst estimates have changed over time. Data sources: ZACKS/AR (analyst ratings) and ZACKS/TP (target prices historical data).\",\n input: NasdaqGetAnalystRatingsInput,\n output: NasdaqGetAnalystRatingsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gMAAgM,EAC9N,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,aAAa,EAAE,OAAO,CA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ACV,CAAC"}
1
+ {"version":3,"file":"get-analyst-ratings.mjs","names":[],"sources":["../../src/actions/get-analyst-ratings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetAnalystRatingsInput = z.object({\n symbol: z.string().describe(\"The stock ticker symbol (e.g., AAPL, MSFT, AMZN). Returns analyst rating consensus data including buy/hold/sell counts, mean rating scores, and target price estimates with historical trends.\"),\n});\nconst NasdaqGetAnalystRatings_TargetPriceSchema = z.object({\n ticker: z.string().describe(\"The ticker symbol for the company (same as m_ticker).\").nullable().optional(),\n exchange: z.string().describe(\"Exchange where the stock is traded.\").nullable().optional(),\n m_ticker: z.string().describe(\"The ticker symbol for the company.\").nullable().optional(),\n obs_date: z.string().describe(\"Observation date of the target price.\").nullable().optional(),\n comp_name: z.string().describe(\"Company name.\").nullable().optional(),\n tp_cnt_est: z.number().int().describe(\"Number of target price estimates.\").nullable().optional(),\n tp_low_est: z.number().describe(\"Lowest target price estimate.\").nullable().optional(),\n comp_name_2: z.string().describe(\"Company name (secondary).\").nullable().optional(),\n tp_high_est: z.number().describe(\"Highest target price estimate.\").nullable().optional(),\n tp_mean_est: z.number().describe(\"Mean target price estimate.\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD).\").nullable().optional(),\n tp_median_est: z.number().describe(\"Median target price estimate.\").nullable().optional(),\n tp_std_dev_est: z.number().describe(\"Standard deviation of target price estimates.\").nullable().optional(),\n tp_cnt_est_rev_up: z.number().int().describe(\"Number of upward target price revisions.\").nullable().optional(),\n tp_cnt_est_rev_down: z.number().int().describe(\"Number of downward target price revisions.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetAnalystRatings_AnalystRatingSchema = z.object({\n ticker: z.string().describe(\"The ticker symbol for the company (same as m_ticker).\").nullable().optional(),\n exchange: z.string().describe(\"Exchange where the stock is traded.\").nullable().optional(),\n m_ticker: z.string().describe(\"The ticker symbol for the company.\").nullable().optional(),\n comp_name: z.string().describe(\"Company name.\").nullable().optional(),\n tp_cnt_est: z.number().int().describe(\"Number of target price estimates.\").nullable().optional(),\n tp_low_est: z.number().describe(\"Lowest target price estimate.\").nullable().optional(),\n comp_name_2: z.string().describe(\"Company name (secondary).\").nullable().optional(),\n rating_mean: z.number().describe(\"Current mean rating score (1=Strong Buy to 5=Strong Sell).\").nullable().optional(),\n tp_high_est: z.number().describe(\"Highest target price estimate.\").nullable().optional(),\n tp_mean_est: z.number().describe(\"Mean target price estimate.\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD).\").nullable().optional(),\n last_rev_date: z.string().describe(\"Last revision date of the rating.\").nullable().optional(),\n tp_median_est: z.number().describe(\"Median target price estimate.\").nullable().optional(),\n tp_std_dev_est: z.number().describe(\"Standard deviation of target price estimates.\").nullable().optional(),\n rating_cnt_buys: z.number().int().describe(\"Current number of Buy ratings.\").nullable().optional(),\n rating_cnt_holds: z.number().int().describe(\"Current number of Hold ratings.\").nullable().optional(),\n rating_cnt_sells: z.number().int().describe(\"Current number of Sell ratings.\").nullable().optional(),\n tp_cnt_est_rev_up: z.number().int().describe(\"Number of upward target price revisions.\").nullable().optional(),\n rating_mean_1m_ago: z.number().describe(\"Mean rating score 1 month ago.\").nullable().optional(),\n rating_mean_2m_ago: z.number().describe(\"Mean rating score 2 months ago.\").nullable().optional(),\n rating_mean_3m_ago: z.number().describe(\"Mean rating score 3 months ago.\").nullable().optional(),\n tp_cnt_est_rev_down: z.number().int().describe(\"Number of downward target price revisions.\").nullable().optional(),\n rating_cnt_buys_1m_ago: z.number().int().describe(\"Number of Buy ratings 1 month ago.\").nullable().optional(),\n rating_cnt_buys_2m_ago: z.number().int().describe(\"Number of Buy ratings 2 months ago.\").nullable().optional(),\n rating_cnt_buys_3m_ago: z.number().int().describe(\"Number of Buy ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_buys: z.number().int().describe(\"Current number of Strong Buy ratings.\").nullable().optional(),\n rating_cnt_holds_1m_ago: z.number().int().describe(\"Number of Hold ratings 1 month ago.\").nullable().optional(),\n rating_cnt_holds_2m_ago: z.number().int().describe(\"Number of Hold ratings 2 months ago.\").nullable().optional(),\n rating_cnt_holds_3m_ago: z.number().int().describe(\"Number of Hold ratings 3 months ago.\").nullable().optional(),\n rating_cnt_sells_1m_ago: z.number().int().describe(\"Number of Sell ratings 1 month ago.\").nullable().optional(),\n rating_cnt_sells_2m_ago: z.number().int().describe(\"Number of Sell ratings 2 months ago.\").nullable().optional(),\n rating_cnt_sells_3m_ago: z.number().int().describe(\"Number of Sell ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_sells: z.number().int().describe(\"Current number of Strong Sell ratings.\").nullable().optional(),\n rating_cnt_strong_buys_1m_ago: z.number().int().describe(\"Number of Strong Buy ratings 1 month ago.\").nullable().optional(),\n rating_cnt_strong_buys_2m_ago: z.number().int().describe(\"Number of Strong Buy ratings 2 months ago.\").nullable().optional(),\n rating_cnt_strong_buys_3m_ago: z.number().int().describe(\"Number of Strong Buy ratings 3 months ago.\").nullable().optional(),\n rating_cnt_strong_sells_1m_ago: z.number().int().describe(\"Number of Strong Sell ratings 1 month ago.\").nullable().optional(),\n rating_cnt_strong_sells_2m_ago: z.number().int().describe(\"Number of Strong Sell ratings 2 months ago.\").nullable().optional(),\n rating_cnt_strong_sells_3m_ago: z.number().int().describe(\"Number of Strong Sell ratings 3 months ago.\").nullable().optional(),\n}).passthrough();\nexport const NasdaqGetAnalystRatingsOutput = z.object({\n message: z.string().describe(\"Informational message, typically indicates when no analyst rating or target price data is available for the requested symbol.\").nullable().optional(),\n target_prices: z.array(NasdaqGetAnalystRatings_TargetPriceSchema).describe(\"Historical target price estimates with observation dates, showing how analyst price targets and estimate counts have evolved over time.\").nullable().optional(),\n analyst_ratings: z.array(NasdaqGetAnalystRatings_AnalystRatingSchema).describe(\"Current analyst rating consensus data including rating counts (Strong Buy/Buy/Hold/Sell/Strong Sell) for current and past 3 months, mean rating scores, and target price statistics (mean, median, high, low, std dev).\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetAnalystRatings: AppAction<\n typeof NasdaqGetAnalystRatingsInput,\n typeof NasdaqGetAnalystRatingsOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_ANALYST_RATINGS\", {\n slug: \"nasdaq-get-analyst-ratings\",\n name: \"Get Analyst Ratings and Target Prices\",\n description: \"Retrieves comprehensive analyst ratings and target price data for a stock symbol from Zacks Investment Research. Returns current and historical (1-3 months ago) rating counts across all rating categories (Strong Buy, Buy, Hold, Sell, Strong Sell), mean rating scores, and consensus target price estimates including mean, median, high, low, standard deviation, and revision counts. Also provides historical target price data with observation dates showing how analyst estimates have changed over time. Data sources: ZACKS/AR (analyst ratings) and ZACKS/TP (target prices historical data).\",\n input: NasdaqGetAnalystRatingsInput,\n output: NasdaqGetAnalystRatingsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gMAAgM,EAC9N,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,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AO;EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClL,eAAe,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1O,iBAAiB,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yNAAyN,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChU,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-datatable-metadata.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-datatable-metadata.cjs","names":["z","action"],"sources":["../../src/actions/get-datatable-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetDatatableMetadataInput = z.object({\n datatable_code: z.string().describe(\"The datatable code in format PUBLISHER/TABLE (e.g., 'WIKI/PRICES' for Wikipedia stock prices, 'SHARADAR/SF1' for Core US Fundamentals, 'ZACKS/FC' for Zacks Fundamentals).\"),\n});\nconst NasdaqGetDatatableMetadata_DatatableStatusSchema = z.object({\n status: z.string().describe(\"Current refresh status of the datatable (e.g., 'ON TIME').\").nullable().optional(),\n expected_at: z.string().describe(\"Expected timestamp for the next refresh.\").nullable().optional(),\n refreshed_at: z.string().describe(\"Timestamp when the datatable was last refreshed.\").nullable().optional(),\n update_frequency: z.string().describe(\"Human-readable description of the update frequency (e.g., 'daily', 'weekly').\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatableMetadata_ColumnDefinitionSchema = z.object({\n name: z.string().describe(\"Name of the column.\").nullable(),\n type: z.string().describe(\"Data type of the column (e.g., String, Date, Number).\").nullable(),\n}).passthrough();\nconst NasdaqGetDatatableMetadata_DatatableMetadataSchema = z.object({\n name: z.string().describe(\"Human-readable name of the datatable.\").nullable(),\n status: NasdaqGetDatatableMetadata_DatatableStatusSchema.nullable(),\n columns: z.array(NasdaqGetDatatableMetadata_ColumnDefinitionSchema).describe(\"Array of column definitions describing each field in the datatable.\"),\n filters: z.array(z.string()).describe(\"List of column names that can be used as filters when querying the datatable.\"),\n premium: z.boolean().describe(\"Whether the datatable requires premium/paid subscription access.\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the datatable and its contents.\").nullable().optional(),\n primary_key: z.array(z.string()).describe(\"List of column names that form the primary key for the datatable.\"),\n vendor_code: z.string().describe(\"Vendor/publisher code for the datatable.\").nullable(),\n datatable_code: z.string().describe(\"Full datatable code including vendor prefix.\").nullable(),\n}).passthrough();\nexport const NasdaqGetDatatableMetadataOutput = z.object({\n datatable: NasdaqGetDatatableMetadata_DatatableMetadataSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDatatableMetadata = action(\"NASDAQ_GET_DATATABLE_METADATA\", {\n slug: \"nasdaq-get-datatable-metadata\",\n name: \"Get Datatable Metadata\",\n description: \"Tool to retrieve metadata for a NASDAQ Data Link datatable. Returns complete schema information including column definitions, data types, filterable columns, primary keys, premium status, and refresh schedule. Use when you need to understand the structure and availability of a datatable before querying its data.\",\n input: NasdaqGetDatatableMetadataInput,\n output: NasdaqGetDatatableMetadataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,EAClN,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,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CAAC,YAAY;AAEf,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-datatable-metadata.cjs","names":["z","action"],"sources":["../../src/actions/get-datatable-metadata.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetDatatableMetadataInput = z.object({\n datatable_code: z.string().describe(\"The datatable code in format PUBLISHER/TABLE (e.g., 'WIKI/PRICES' for Wikipedia stock prices, 'SHARADAR/SF1' for Core US Fundamentals, 'ZACKS/FC' for Zacks Fundamentals).\"),\n});\nconst NasdaqGetDatatableMetadata_DatatableStatusSchema = z.object({\n status: z.string().describe(\"Current refresh status of the datatable (e.g., 'ON TIME').\").nullable().optional(),\n expected_at: z.string().describe(\"Expected timestamp for the next refresh.\").nullable().optional(),\n refreshed_at: z.string().describe(\"Timestamp when the datatable was last refreshed.\").nullable().optional(),\n update_frequency: z.string().describe(\"Human-readable description of the update frequency (e.g., 'daily', 'weekly').\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatableMetadata_ColumnDefinitionSchema = z.object({\n name: z.string().describe(\"Name of the column.\").nullable(),\n type: z.string().describe(\"Data type of the column (e.g., String, Date, Number).\").nullable(),\n}).passthrough();\nconst NasdaqGetDatatableMetadata_DatatableMetadataSchema = z.object({\n name: z.string().describe(\"Human-readable name of the datatable.\").nullable(),\n status: NasdaqGetDatatableMetadata_DatatableStatusSchema.nullable(),\n columns: z.array(NasdaqGetDatatableMetadata_ColumnDefinitionSchema).describe(\"Array of column definitions describing each field in the datatable.\"),\n filters: z.array(z.string()).describe(\"List of column names that can be used as filters when querying the datatable.\"),\n premium: z.boolean().describe(\"Whether the datatable requires premium/paid subscription access.\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the datatable and its contents.\").nullable().optional(),\n primary_key: z.array(z.string()).describe(\"List of column names that form the primary key for the datatable.\"),\n vendor_code: z.string().describe(\"Vendor/publisher code for the datatable.\").nullable(),\n datatable_code: z.string().describe(\"Full datatable code including vendor prefix.\").nullable(),\n}).passthrough();\nexport const NasdaqGetDatatableMetadataOutput = z.object({\n datatable: NasdaqGetDatatableMetadata_DatatableMetadataSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDatatableMetadata: AppAction<\n typeof NasdaqGetDatatableMetadataInput,\n typeof NasdaqGetDatatableMetadataOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_DATATABLE_METADATA\", {\n slug: \"nasdaq-get-datatable-metadata\",\n name: \"Get Datatable Metadata\",\n description: \"Tool to retrieve metadata for a NASDAQ Data Link datatable. Returns complete schema information including column definitions, data types, filterable columns, primary keys, premium status, and refresh schedule. Use when you need to understand the structure and availability of a datatable before querying its data.\",\n input: NasdaqGetDatatableMetadataInput,\n output: NasdaqGetDatatableMetadataOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,EAClN,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oDAAoDA,IA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from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-datatable-metadata.d.ts
@@ -25,9 +27,7 @@ declare const NasdaqGetDatatableMetadataOutput: z.ZodObject<{
25
27
  datatable_code: z.ZodNullable<z.ZodString>;
26
28
  }, z.core.$loose>>;
27
29
  }, z.core.$loose>;
28
- declare const nasdaqGetDatatableMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- datatable_code: string;
30
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
+ declare const nasdaqGetDatatableMetadata: AppAction<typeof NasdaqGetDatatableMetadataInput, typeof NasdaqGetDatatableMetadataOutput, typeof nasdaq.credential>;
31
31
  //#endregion
32
32
  export { nasdaqGetDatatableMetadata };
33
33
  //# sourceMappingURL=get-datatable-metadata.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-datatable-metadata.d.cts","names":[],"sources":["../../src/actions/get-datatable-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAwB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"get-datatable-metadata.d.cts","names":[],"sources":["../../src/actions/get-datatable-metadata.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAwB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-datatable-metadata.d.ts
@@ -25,9 +27,7 @@ declare const NasdaqGetDatatableMetadataOutput: z.ZodObject<{
25
27
  datatable_code: z.ZodNullable<z.ZodString>;
26
28
  }, z.core.$loose>>;
27
29
  }, z.core.$loose>;
28
- declare const nasdaqGetDatatableMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- datatable_code: string;
30
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
+ declare const nasdaqGetDatatableMetadata: AppAction<typeof NasdaqGetDatatableMetadataInput, typeof NasdaqGetDatatableMetadataOutput, typeof nasdaq.credential>;
31
31
  //#endregion
32
32
  export { nasdaqGetDatatableMetadata };
33
33
  //# sourceMappingURL=get-datatable-metadata.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-datatable-metadata.d.mts","names":[],"sources":["../../src/actions/get-datatable-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAwB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"get-datatable-metadata.d.mts","names":[],"sources":["../../src/actions/get-datatable-metadata.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAwB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-datatable-metadata.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-datatable-metadata.mjs","names":[],"sources":["../../src/actions/get-datatable-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetDatatableMetadataInput = z.object({\n datatable_code: z.string().describe(\"The datatable code in format PUBLISHER/TABLE (e.g., 'WIKI/PRICES' for Wikipedia stock prices, 'SHARADAR/SF1' for Core US Fundamentals, 'ZACKS/FC' for Zacks Fundamentals).\"),\n});\nconst NasdaqGetDatatableMetadata_DatatableStatusSchema = z.object({\n status: z.string().describe(\"Current refresh status of the datatable (e.g., 'ON TIME').\").nullable().optional(),\n expected_at: z.string().describe(\"Expected timestamp for the next refresh.\").nullable().optional(),\n refreshed_at: z.string().describe(\"Timestamp when the datatable was last refreshed.\").nullable().optional(),\n update_frequency: z.string().describe(\"Human-readable description of the update frequency (e.g., 'daily', 'weekly').\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatableMetadata_ColumnDefinitionSchema = z.object({\n name: z.string().describe(\"Name of the column.\").nullable(),\n type: z.string().describe(\"Data type of the column (e.g., String, Date, Number).\").nullable(),\n}).passthrough();\nconst NasdaqGetDatatableMetadata_DatatableMetadataSchema = z.object({\n name: z.string().describe(\"Human-readable name of the datatable.\").nullable(),\n status: NasdaqGetDatatableMetadata_DatatableStatusSchema.nullable(),\n columns: z.array(NasdaqGetDatatableMetadata_ColumnDefinitionSchema).describe(\"Array of column definitions describing each field in the datatable.\"),\n filters: z.array(z.string()).describe(\"List of column names that can be used as filters when querying the datatable.\"),\n premium: z.boolean().describe(\"Whether the datatable requires premium/paid subscription access.\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the datatable and its contents.\").nullable().optional(),\n primary_key: z.array(z.string()).describe(\"List of column names that form the primary key for the datatable.\"),\n vendor_code: z.string().describe(\"Vendor/publisher code for the datatable.\").nullable(),\n datatable_code: z.string().describe(\"Full datatable code including vendor prefix.\").nullable(),\n}).passthrough();\nexport const NasdaqGetDatatableMetadataOutput = z.object({\n datatable: NasdaqGetDatatableMetadata_DatatableMetadataSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDatatableMetadata = action(\"NASDAQ_GET_DATATABLE_METADATA\", {\n slug: \"nasdaq-get-datatable-metadata\",\n name: \"Get Datatable Metadata\",\n description: \"Tool to retrieve metadata for a NASDAQ Data Link datatable. Returns complete schema information including column definitions, data types, filterable columns, primary keys, premium status, and refresh schedule. Use when you need to understand the structure and availability of a datatable before querying its data.\",\n input: NasdaqGetDatatableMetadataInput,\n output: NasdaqGetDatatableMetadataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO,EACtD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,EAClN,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oDAAoD,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,QAAQ,iDAAiD,SAAS;CAClE,SAAS,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,qEAAqE;CAClJ,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E;CACrH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mEAAmE;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,WAAW,mDAAmD,SAAS,EACzE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-datatable-metadata.mjs","names":[],"sources":["../../src/actions/get-datatable-metadata.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetDatatableMetadataInput = z.object({\n datatable_code: z.string().describe(\"The datatable code in format PUBLISHER/TABLE (e.g., 'WIKI/PRICES' for Wikipedia stock prices, 'SHARADAR/SF1' for Core US Fundamentals, 'ZACKS/FC' for Zacks Fundamentals).\"),\n});\nconst NasdaqGetDatatableMetadata_DatatableStatusSchema = z.object({\n status: z.string().describe(\"Current refresh status of the datatable (e.g., 'ON TIME').\").nullable().optional(),\n expected_at: z.string().describe(\"Expected timestamp for the next refresh.\").nullable().optional(),\n refreshed_at: z.string().describe(\"Timestamp when the datatable was last refreshed.\").nullable().optional(),\n update_frequency: z.string().describe(\"Human-readable description of the update frequency (e.g., 'daily', 'weekly').\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatableMetadata_ColumnDefinitionSchema = z.object({\n name: z.string().describe(\"Name of the column.\").nullable(),\n type: z.string().describe(\"Data type of the column (e.g., String, Date, Number).\").nullable(),\n}).passthrough();\nconst NasdaqGetDatatableMetadata_DatatableMetadataSchema = z.object({\n name: z.string().describe(\"Human-readable name of the datatable.\").nullable(),\n status: NasdaqGetDatatableMetadata_DatatableStatusSchema.nullable(),\n columns: z.array(NasdaqGetDatatableMetadata_ColumnDefinitionSchema).describe(\"Array of column definitions describing each field in the datatable.\"),\n filters: z.array(z.string()).describe(\"List of column names that can be used as filters when querying the datatable.\"),\n premium: z.boolean().describe(\"Whether the datatable requires premium/paid subscription access.\").nullable().optional(),\n description: z.string().describe(\"Detailed description of the datatable and its contents.\").nullable().optional(),\n primary_key: z.array(z.string()).describe(\"List of column names that form the primary key for the datatable.\"),\n vendor_code: z.string().describe(\"Vendor/publisher code for the datatable.\").nullable(),\n datatable_code: z.string().describe(\"Full datatable code including vendor prefix.\").nullable(),\n}).passthrough();\nexport const NasdaqGetDatatableMetadataOutput = z.object({\n datatable: NasdaqGetDatatableMetadata_DatatableMetadataSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDatatableMetadata: AppAction<\n typeof NasdaqGetDatatableMetadataInput,\n typeof NasdaqGetDatatableMetadataOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_DATATABLE_METADATA\", {\n slug: \"nasdaq-get-datatable-metadata\",\n name: \"Get Datatable Metadata\",\n description: \"Tool to retrieve metadata for a NASDAQ Data Link datatable. Returns complete schema information including column definitions, data types, filterable columns, primary keys, premium status, and refresh schedule. Use when you need to understand the structure and availability of a datatable before querying its data.\",\n input: NasdaqGetDatatableMetadataInput,\n output: NasdaqGetDatatableMetadataOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO,EACtD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,EAClN,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,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CAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb8C,EAAE,OAAO,EACvD,WAAW,mDAAmD,SAAS,EACzE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-datatable.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-datatable.cjs","names":["z","action"],"sources":["../../src/actions/get-datatable.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetDatatableInput = z.object({\n datatable_code: z.string().describe(\"The datatable code in format PUBLISHER/TABLE (e.g., 'WIKI/PRICES' for Wikipedia End of Day Stock Prices, 'SHARADAR/SF1' for Core US Fundamentals). This identifies the specific table to export.\"),\n});\nconst NasdaqGetDatatable_FileInfoSchema = z.object({\n link: z.string().describe(\"The downloadable URL for the zipped CSV file containing the bulk export data. This link is valid for 30 minutes. Returns null if the file is still being generated.\").nullable().optional(),\n status: z.string().describe(\"Current file generation status. Possible values: 'fresh' (file is ready and current), 'creating' (file is being generated for the first time), 'regenerating' (file exists but an updated version is being created).\").nullable(),\n data_snapshot_time: z.string().describe(\"Timestamp when file creation began (ISO 8601 format). Indicates the data snapshot point for the export.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatable_DatatableInfoSchema = z.object({\n last_refreshed_time: z.string().describe(\"Timestamp of the most recent data update for this datatable (ISO 8601 format).\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatable_DatatableBulkDownloadSchema = z.object({\n file: NasdaqGetDatatable_FileInfoSchema.nullable(),\n datatable: NasdaqGetDatatable_DatatableInfoSchema.nullable().optional(),\n}).passthrough();\nexport const NasdaqGetDatatableOutput = z.object({\n datatable_bulk_download: NasdaqGetDatatable_DatatableBulkDownloadSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDatatable = action(\"NASDAQ_GET_DATATABLE\", {\n slug: \"nasdaq-get-datatable\",\n name: \"Get Datatable Bulk Export\",\n description: \"Tool to request a bulk export of a NASDAQ Data Link datatable. Returns a download link for a zipped CSV file containing the entire table data, bypassing the standard 10,000 row limit. Use this when you need to download large datasets in full. Check the response status: if 'fresh', the file is ready for download; if 'creating' or 'regenerating', wait and retry the request. The download link is valid for 30 minutes only.\",\n input: NasdaqGetDatatableInput,\n output: NasdaqGetDatatableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACxO,CAAC;AACD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sNAAsN,CAAC,CAAC,SAAS;CAC7P,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAM,kCAAkC,SAAS;CACjD,WAAW,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,yBAAyB,+CAA+C,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-datatable.cjs","names":["z","action"],"sources":["../../src/actions/get-datatable.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetDatatableInput = z.object({\n datatable_code: z.string().describe(\"The datatable code in format PUBLISHER/TABLE (e.g., 'WIKI/PRICES' for Wikipedia End of Day Stock Prices, 'SHARADAR/SF1' for Core US Fundamentals). This identifies the specific table to export.\"),\n});\nconst NasdaqGetDatatable_FileInfoSchema = z.object({\n link: z.string().describe(\"The downloadable URL for the zipped CSV file containing the bulk export data. This link is valid for 30 minutes. Returns null if the file is still being generated.\").nullable().optional(),\n status: z.string().describe(\"Current file generation status. Possible values: 'fresh' (file is ready and current), 'creating' (file is being generated for the first time), 'regenerating' (file exists but an updated version is being created).\").nullable(),\n data_snapshot_time: z.string().describe(\"Timestamp when file creation began (ISO 8601 format). Indicates the data snapshot point for the export.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatable_DatatableInfoSchema = z.object({\n last_refreshed_time: z.string().describe(\"Timestamp of the most recent data update for this datatable (ISO 8601 format).\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatable_DatatableBulkDownloadSchema = z.object({\n file: NasdaqGetDatatable_FileInfoSchema.nullable(),\n datatable: NasdaqGetDatatable_DatatableInfoSchema.nullable().optional(),\n}).passthrough();\nexport const NasdaqGetDatatableOutput = z.object({\n datatable_bulk_download: NasdaqGetDatatable_DatatableBulkDownloadSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDatatable: AppAction<\n typeof NasdaqGetDatatableInput,\n typeof NasdaqGetDatatableOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_DATATABLE\", {\n slug: \"nasdaq-get-datatable\",\n name: \"Get Datatable Bulk Export\",\n description: \"Tool to request a bulk export of a NASDAQ Data Link datatable. Returns a download link for a zipped CSV file containing the entire table data, bypassing the standard 10,000 row limit. Use this when you need to download large datasets in full. Check the response status: if 'fresh', the file is ready for download; if 'creating' or 'regenerating', wait and retry the request. The download link is valid for 30 minutes only.\",\n input: NasdaqGetDatatableInput,\n output: NasdaqGetDatatableOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACxO,CAAC;AACD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sNAAsN,CAAC,CAAC,SAAS;CAC7P,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAM,kCAAkC,SAAS;CACjD,WAAW,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,yBAAyB,+CAA+C,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-datatable.d.ts
@@ -16,9 +18,7 @@ declare const NasdaqGetDatatableOutput: z.ZodObject<{
16
18
  }, z.core.$loose>>>;
17
19
  }, z.core.$loose>>;
18
20
  }, z.core.$loose>;
19
- declare const nasdaqGetDatatable: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- datatable_code: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const nasdaqGetDatatable: AppAction<typeof NasdaqGetDatatableInput, typeof NasdaqGetDatatableOutput, typeof nasdaq.credential>;
22
22
  //#endregion
23
23
  export { nasdaqGetDatatable };
24
24
  //# sourceMappingURL=get-datatable.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-datatable.d.cts","names":[],"sources":["../../src/actions/get-datatable.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-datatable.d.cts","names":[],"sources":["../../src/actions/get-datatable.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-datatable.d.ts
@@ -16,9 +18,7 @@ declare const NasdaqGetDatatableOutput: z.ZodObject<{
16
18
  }, z.core.$loose>>>;
17
19
  }, z.core.$loose>>;
18
20
  }, z.core.$loose>;
19
- declare const nasdaqGetDatatable: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- datatable_code: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const nasdaqGetDatatable: AppAction<typeof NasdaqGetDatatableInput, typeof NasdaqGetDatatableOutput, typeof nasdaq.credential>;
22
22
  //#endregion
23
23
  export { nasdaqGetDatatable };
24
24
  //# sourceMappingURL=get-datatable.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-datatable.d.mts","names":[],"sources":["../../src/actions/get-datatable.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"get-datatable.d.mts","names":[],"sources":["../../src/actions/get-datatable.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAevB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-datatable.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-datatable.mjs","names":[],"sources":["../../src/actions/get-datatable.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetDatatableInput = z.object({\n datatable_code: z.string().describe(\"The datatable code in format PUBLISHER/TABLE (e.g., 'WIKI/PRICES' for Wikipedia End of Day Stock Prices, 'SHARADAR/SF1' for Core US Fundamentals). This identifies the specific table to export.\"),\n});\nconst NasdaqGetDatatable_FileInfoSchema = z.object({\n link: z.string().describe(\"The downloadable URL for the zipped CSV file containing the bulk export data. This link is valid for 30 minutes. Returns null if the file is still being generated.\").nullable().optional(),\n status: z.string().describe(\"Current file generation status. Possible values: 'fresh' (file is ready and current), 'creating' (file is being generated for the first time), 'regenerating' (file exists but an updated version is being created).\").nullable(),\n data_snapshot_time: z.string().describe(\"Timestamp when file creation began (ISO 8601 format). Indicates the data snapshot point for the export.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatable_DatatableInfoSchema = z.object({\n last_refreshed_time: z.string().describe(\"Timestamp of the most recent data update for this datatable (ISO 8601 format).\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatable_DatatableBulkDownloadSchema = z.object({\n file: NasdaqGetDatatable_FileInfoSchema.nullable(),\n datatable: NasdaqGetDatatable_DatatableInfoSchema.nullable().optional(),\n}).passthrough();\nexport const NasdaqGetDatatableOutput = z.object({\n datatable_bulk_download: NasdaqGetDatatable_DatatableBulkDownloadSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDatatable = action(\"NASDAQ_GET_DATATABLE\", {\n slug: \"nasdaq-get-datatable\",\n name: \"Get Datatable Bulk Export\",\n description: \"Tool to request a bulk export of a NASDAQ Data Link datatable. Returns a download link for a zipped CSV file containing the entire table data, bypassing the standard 10,000 row limit. Use this when you need to download large datasets in full. Check the response status: if 'fresh', the file is ready for download; if 'creating' or 'regenerating', wait and retry the request. The download link is valid for 30 minutes only.\",\n input: NasdaqGetDatatableInput,\n output: NasdaqGetDatatableOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACxO,CAAC;AACD,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sNAAsN,CAAC,CAAC,SAAS;CAC7P,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyC,EAAE,OAAO,EACtD,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iDAAiD,EAAE,OAAO;CAC9D,MAAM,kCAAkC,SAAS;CACjD,WAAW,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,yBAAyB,+CAA+C,SAAS,EACnF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-datatable.mjs","names":[],"sources":["../../src/actions/get-datatable.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetDatatableInput = z.object({\n datatable_code: z.string().describe(\"The datatable code in format PUBLISHER/TABLE (e.g., 'WIKI/PRICES' for Wikipedia End of Day Stock Prices, 'SHARADAR/SF1' for Core US Fundamentals). This identifies the specific table to export.\"),\n});\nconst NasdaqGetDatatable_FileInfoSchema = z.object({\n link: z.string().describe(\"The downloadable URL for the zipped CSV file containing the bulk export data. This link is valid for 30 minutes. Returns null if the file is still being generated.\").nullable().optional(),\n status: z.string().describe(\"Current file generation status. Possible values: 'fresh' (file is ready and current), 'creating' (file is being generated for the first time), 'regenerating' (file exists but an updated version is being created).\").nullable(),\n data_snapshot_time: z.string().describe(\"Timestamp when file creation began (ISO 8601 format). Indicates the data snapshot point for the export.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatable_DatatableInfoSchema = z.object({\n last_refreshed_time: z.string().describe(\"Timestamp of the most recent data update for this datatable (ISO 8601 format).\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDatatable_DatatableBulkDownloadSchema = z.object({\n file: NasdaqGetDatatable_FileInfoSchema.nullable(),\n datatable: NasdaqGetDatatable_DatatableInfoSchema.nullable().optional(),\n}).passthrough();\nexport const NasdaqGetDatatableOutput = z.object({\n datatable_bulk_download: NasdaqGetDatatable_DatatableBulkDownloadSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDatatable: AppAction<\n typeof NasdaqGetDatatableInput,\n typeof NasdaqGetDatatableOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_DATATABLE\", {\n slug: \"nasdaq-get-datatable\",\n name: \"Get Datatable Bulk Export\",\n description: \"Tool to request a bulk export of a NASDAQ Data Link datatable. Returns a download link for a zipped CSV file containing the entire table data, bypassing the standard 10,000 row limit. Use this when you need to download large datasets in full. Check the response status: if 'fresh', the file is ready for download; if 'creating' or 'regenerating', wait and retry the request. The download link is valid for 30 minutes only.\",\n input: NasdaqGetDatatableInput,\n output: NasdaqGetDatatableOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACxO,CAAC;AACD,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrN,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sNAAsN,CAAC,CAAC,SAAS;CAC7P,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzK,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyC,EAAE,OAAO,EACtD,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iDAAiD,EAAE,OAAO;CAC9D,MAAM,kCAAkC,SAAS;CACjD,WAAW,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO,EAC/C,yBAAyB,+CAA+C,SAAS,EACnF,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-dividend-history.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-dividend-history.cjs","names":["z","action"],"sources":["../../src/actions/get-dividend-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetDividendHistoryInput = z.object({\n date: z.string().describe(\"Filters the data for a specific date in YYYY-MM-DD format. If not specified, returns all available dates.\").optional(),\n ticker: z.string().describe(\"The stock ticker symbol (e.g., AAPL for Apple Inc.).\"),\n \"qopts.columns\": z.string().default(\"ticker,dimension,calendardate,datekey,dps,divyield,payoutratio,ncfdiv\").describe(\"Comma-separated list of columns to return. Defaults to dividend-related columns: ticker, dimension, calendardate, datekey, dps (dividend per share), divyield (dividend yield), payoutratio (payout ratio), ncfdiv (net cash flow from dividends).\").optional(),\n});\nconst NasdaqGetDividendHistory_MetaSchema = z.object({\n next_cursor_id: z.string().describe(\"The cursor ID to use for fetching the next page of results. If null, it's the last page.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDividendHistory_ColumnSchema = z.object({\n name: z.string().describe(\"Column name\").nullable(),\n type: z.string().describe(\"Column data type\").nullable(),\n}).passthrough();\nconst NasdaqGetDividendHistory_DatatableDataSchema = z.object({\n data: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]).nullable())).describe(\"Array of data rows, each row is an array of values corresponding to the columns\"),\n columns: z.array(NasdaqGetDividendHistory_ColumnSchema).describe(\"Array of column definitions describing the structure of the data\"),\n}).passthrough();\nexport const NasdaqGetDividendHistoryOutput = z.object({\n meta: NasdaqGetDividendHistory_MetaSchema.nullable(),\n datatable: NasdaqGetDividendHistory_DatatableDataSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDividendHistory = action(\"NASDAQ_GET_DIVIDEND_HISTORY\", {\n slug: \"nasdaq-get-dividend-history\",\n name: \"Get Dividend Fundamentals\",\n description: \"Retrieves quarterly dividend-related fundamentals for a specific stock ticker from SHARADAR SF1 database. Returns dividend metrics including DPS (dividend per share), dividend yield, payout ratio, and cash flow from dividends. Data is quarterly (dimension=ARQ) and sourced from company financial statements. Note: This endpoint accesses the premium SHARADAR SF1 database which may require subscription access.\",\n input: NasdaqGetDividendHistoryInput,\n output: NasdaqGetDividendHistoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAChJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAClF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,uEAAuE,CAAC,CAAC,SAAS,oPAAoP,CAAC,CAAC,SAAS;AACvX,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO,EACnD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF;CACjL,SAASA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,kEAAkE;AACrI,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,oCAAoC,SAAS;CACnD,WAAW,6CAA6C,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-dividend-history.cjs","names":["z","action"],"sources":["../../src/actions/get-dividend-history.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetDividendHistoryInput = z.object({\n date: z.string().describe(\"Filters the data for a specific date in YYYY-MM-DD format. If not specified, returns all available dates.\").optional(),\n ticker: z.string().describe(\"The stock ticker symbol (e.g., AAPL for Apple Inc.).\"),\n \"qopts.columns\": z.string().default(\"ticker,dimension,calendardate,datekey,dps,divyield,payoutratio,ncfdiv\").describe(\"Comma-separated list of columns to return. Defaults to dividend-related columns: ticker, dimension, calendardate, datekey, dps (dividend per share), divyield (dividend yield), payoutratio (payout ratio), ncfdiv (net cash flow from dividends).\").optional(),\n});\nconst NasdaqGetDividendHistory_MetaSchema = z.object({\n next_cursor_id: z.string().describe(\"The cursor ID to use for fetching the next page of results. If null, it's the last page.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDividendHistory_ColumnSchema = z.object({\n name: z.string().describe(\"Column name\").nullable(),\n type: z.string().describe(\"Column data type\").nullable(),\n}).passthrough();\nconst NasdaqGetDividendHistory_DatatableDataSchema = z.object({\n data: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]).nullable())).describe(\"Array of data rows, each row is an array of values corresponding to the columns\"),\n columns: z.array(NasdaqGetDividendHistory_ColumnSchema).describe(\"Array of column definitions describing the structure of the data\"),\n}).passthrough();\nexport const NasdaqGetDividendHistoryOutput = z.object({\n meta: NasdaqGetDividendHistory_MetaSchema.nullable(),\n datatable: NasdaqGetDividendHistory_DatatableDataSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDividendHistory: AppAction<\n typeof NasdaqGetDividendHistoryInput,\n typeof NasdaqGetDividendHistoryOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_DIVIDEND_HISTORY\", {\n slug: \"nasdaq-get-dividend-history\",\n name: \"Get Dividend Fundamentals\",\n description: \"Retrieves quarterly dividend-related fundamentals for a specific stock ticker from SHARADAR SF1 database. Returns dividend metrics including DPS (dividend per share), dividend yield, payout ratio, and cash flow from dividends. Data is quarterly (dimension=ARQ) and sourced from company financial statements. Note: This endpoint accesses the premium SHARADAR SF1 database which may require subscription access.\",\n input: NasdaqGetDividendHistoryInput,\n output: NasdaqGetDividendHistoryOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAChJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAClF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,uEAAuE,CAAC,CAAC,SAAS,oPAAoP,CAAC,CAAC,SAAS;AACvX,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO,EACnD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF;CACjL,SAASA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,kEAAkE;AACrI,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,oCAAoC,SAAS;CACnD,WAAW,6CAA6C,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-dividend-history.d.ts
@@ -18,11 +20,7 @@ declare const NasdaqGetDividendHistoryOutput: z.ZodObject<{
18
20
  }, z.core.$loose>>;
19
21
  }, z.core.$loose>>;
20
22
  }, z.core.$loose>;
21
- declare const nasdaqGetDividendHistory: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- ticker: string;
23
- date?: string | undefined;
24
- "qopts.columns"?: string | undefined;
25
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const nasdaqGetDividendHistory: AppAction<typeof NasdaqGetDividendHistoryInput, typeof NasdaqGetDividendHistoryOutput, typeof nasdaq.credential>;
26
24
  //#endregion
27
25
  export { nasdaqGetDividendHistory };
28
26
  //# sourceMappingURL=get-dividend-history.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-dividend-history.d.cts","names":[],"sources":["../../src/actions/get-dividend-history.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAgB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-dividend-history.d.cts","names":[],"sources":["../../src/actions/get-dividend-history.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAgB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-dividend-history.d.ts
@@ -18,11 +20,7 @@ declare const NasdaqGetDividendHistoryOutput: z.ZodObject<{
18
20
  }, z.core.$loose>>;
19
21
  }, z.core.$loose>>;
20
22
  }, z.core.$loose>;
21
- declare const nasdaqGetDividendHistory: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- ticker: string;
23
- date?: string | undefined;
24
- "qopts.columns"?: string | undefined;
25
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const nasdaqGetDividendHistory: AppAction<typeof NasdaqGetDividendHistoryInput, typeof NasdaqGetDividendHistoryOutput, typeof nasdaq.credential>;
26
24
  //#endregion
27
25
  export { nasdaqGetDividendHistory };
28
26
  //# sourceMappingURL=get-dividend-history.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-dividend-history.d.mts","names":[],"sources":["../../src/actions/get-dividend-history.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAgB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-dividend-history.d.mts","names":[],"sources":["../../src/actions/get-dividend-history.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAgB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-dividend-history.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-dividend-history.mjs","names":[],"sources":["../../src/actions/get-dividend-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetDividendHistoryInput = z.object({\n date: z.string().describe(\"Filters the data for a specific date in YYYY-MM-DD format. If not specified, returns all available dates.\").optional(),\n ticker: z.string().describe(\"The stock ticker symbol (e.g., AAPL for Apple Inc.).\"),\n \"qopts.columns\": z.string().default(\"ticker,dimension,calendardate,datekey,dps,divyield,payoutratio,ncfdiv\").describe(\"Comma-separated list of columns to return. Defaults to dividend-related columns: ticker, dimension, calendardate, datekey, dps (dividend per share), divyield (dividend yield), payoutratio (payout ratio), ncfdiv (net cash flow from dividends).\").optional(),\n});\nconst NasdaqGetDividendHistory_MetaSchema = z.object({\n next_cursor_id: z.string().describe(\"The cursor ID to use for fetching the next page of results. If null, it's the last page.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDividendHistory_ColumnSchema = z.object({\n name: z.string().describe(\"Column name\").nullable(),\n type: z.string().describe(\"Column data type\").nullable(),\n}).passthrough();\nconst NasdaqGetDividendHistory_DatatableDataSchema = z.object({\n data: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]).nullable())).describe(\"Array of data rows, each row is an array of values corresponding to the columns\"),\n columns: z.array(NasdaqGetDividendHistory_ColumnSchema).describe(\"Array of column definitions describing the structure of the data\"),\n}).passthrough();\nexport const NasdaqGetDividendHistoryOutput = z.object({\n meta: NasdaqGetDividendHistory_MetaSchema.nullable(),\n datatable: NasdaqGetDividendHistory_DatatableDataSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDividendHistory = action(\"NASDAQ_GET_DIVIDEND_HISTORY\", {\n slug: \"nasdaq-get-dividend-history\",\n name: \"Get Dividend Fundamentals\",\n description: \"Retrieves quarterly dividend-related fundamentals for a specific stock ticker from SHARADAR SF1 database. Returns dividend metrics including DPS (dividend per share), dividend yield, payout ratio, and cash flow from dividends. Data is quarterly (dimension=ARQ) and sourced from company financial statements. Note: This endpoint accesses the premium SHARADAR SF1 database which may require subscription access.\",\n input: NasdaqGetDividendHistoryInput,\n output: NasdaqGetDividendHistoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAChJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAClF,iBAAiB,EAAE,OAAO,CAAC,CAAC,QAAQ,uEAAuE,CAAC,CAAC,SAAS,oPAAoP,CAAC,CAAC,SAAS;AACvX,CAAC;AACD,MAAM,sCAAsC,EAAE,OAAO,EACnD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF;CACjL,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,kEAAkE;AACrI,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,oCAAoC,SAAS;EACnD,WAAW,6CAA6C,SAAS;CACnE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-dividend-history.mjs","names":[],"sources":["../../src/actions/get-dividend-history.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetDividendHistoryInput = z.object({\n date: z.string().describe(\"Filters the data for a specific date in YYYY-MM-DD format. If not specified, returns all available dates.\").optional(),\n ticker: z.string().describe(\"The stock ticker symbol (e.g., AAPL for Apple Inc.).\"),\n \"qopts.columns\": z.string().default(\"ticker,dimension,calendardate,datekey,dps,divyield,payoutratio,ncfdiv\").describe(\"Comma-separated list of columns to return. Defaults to dividend-related columns: ticker, dimension, calendardate, datekey, dps (dividend per share), divyield (dividend yield), payoutratio (payout ratio), ncfdiv (net cash flow from dividends).\").optional(),\n});\nconst NasdaqGetDividendHistory_MetaSchema = z.object({\n next_cursor_id: z.string().describe(\"The cursor ID to use for fetching the next page of results. If null, it's the last page.\").nullable().optional(),\n}).passthrough();\nconst NasdaqGetDividendHistory_ColumnSchema = z.object({\n name: z.string().describe(\"Column name\").nullable(),\n type: z.string().describe(\"Column data type\").nullable(),\n}).passthrough();\nconst NasdaqGetDividendHistory_DatatableDataSchema = z.object({\n data: z.array(z.array(z.union([z.string(), z.number().int(), z.number()]).nullable())).describe(\"Array of data rows, each row is an array of values corresponding to the columns\"),\n columns: z.array(NasdaqGetDividendHistory_ColumnSchema).describe(\"Array of column definitions describing the structure of the data\"),\n}).passthrough();\nexport const NasdaqGetDividendHistoryOutput = z.object({\n meta: NasdaqGetDividendHistory_MetaSchema.nullable(),\n datatable: NasdaqGetDividendHistory_DatatableDataSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetDividendHistory: AppAction<\n typeof NasdaqGetDividendHistoryInput,\n typeof NasdaqGetDividendHistoryOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_DIVIDEND_HISTORY\", {\n slug: \"nasdaq-get-dividend-history\",\n name: \"Get Dividend Fundamentals\",\n description: \"Retrieves quarterly dividend-related fundamentals for a specific stock ticker from SHARADAR SF1 database. Returns dividend metrics including DPS (dividend per share), dividend yield, payout ratio, and cash flow from dividends. Data is quarterly (dimension=ARQ) and sourced from company financial statements. Note: This endpoint accesses the premium SHARADAR SF1 database which may require subscription access.\",\n input: NasdaqGetDividendHistoryInput,\n output: NasdaqGetDividendHistoryOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAChJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAClF,iBAAiB,EAAE,OAAO,CAAC,CAAC,QAAQ,uEAAuE,CAAC,CAAC,SAAS,oPAAoP,CAAC,CAAC,SAAS;AACvX,CAAC;AACD,MAAM,sCAAsC,EAAE,OAAO,EACnD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtJ,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF;CACjL,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,kEAAkE;AACrI,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd4C,EAAE,OAAO;EACrD,MAAM,oCAAoC,SAAS;EACnD,WAAW,6CAA6C,SAAS;CACnE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-real-time-quote.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-quote.cjs","names":["z","action"],"sources":["../../src/actions/get-real-time-quote.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetRealTimeQuoteInput = z.object({\n ticker: z.string().describe(\"The stock ticker symbol to fetch price data for (e.g., AAPL, MSFT, GOOGL).\"),\n date_gte: z.string().describe(\"Filter for dates greater than or equal to this date (format: YYYY-MM-DD). If not specified, returns recent historical data.\").optional(),\n date_lte: z.string().describe(\"Filter for dates less than or equal to this date (format: YYYY-MM-DD).\").optional(),\n per_page: z.number().int().describe(\"Number of rows to return per page (max 10000). Defaults to 100 if not specified.\").optional(),\n cursor_id: z.string().describe(\"Cursor ID for fetching the next page of results. Obtain this from the 'next_cursor_id' field in a previous response.\").optional(),\n});\nconst NasdaqGetRealTimeQuote_QuoteDataSchema = z.object({\n low: z.number().describe(\"Lowest price during the trading day.\").nullable().optional(),\n date: z.string().describe(\"Date of the price data (YYYY-MM-DD format).\").nullable().optional(),\n high: z.number().describe(\"Highest price during the trading day.\").nullable().optional(),\n open: z.number().describe(\"Opening price for the trading day.\").nullable().optional(),\n close: z.number().describe(\"Closing price for the trading day.\").nullable().optional(),\n split: z.number().describe(\"Stock split ratio if any.\").nullable().optional(),\n ticker: z.string().describe(\"The stock ticker symbol.\").nullable().optional(),\n volume: z.number().describe(\"Total trading volume for the day.\").nullable().optional(),\n dividend: z.number().describe(\"Dividend amount if any.\").nullable().optional(),\n}).passthrough();\nexport const NasdaqGetRealTimeQuoteOutput = z.object({\n quotes: z.array(NasdaqGetRealTimeQuote_QuoteDataSchema).describe(\"A list of end-of-day price data for the requested ticker symbol, with the most recent dates first. Each entry represents one trading day's OHLC (Open, High, Low, Close) data.\").nullable().optional(),\n next_cursor_id: z.string().describe(\"Cursor ID for fetching the next page of results. Pass this as 'cursor_id' in the next request. Null if there are no more pages.\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetRealTimeQuote = action(\"NASDAQ_GET_REAL_TIME_QUOTE\", {\n slug: \"nasdaq-get-real-time-quote\",\n name: \"Get Stock Price Data\",\n description: \"Retrieves end-of-day historical stock price data for a specific ticker symbol from the QUOTEMEDIA database. Returns OHLC (Open, High, Low, Close) prices, volume, and dividend/split information. Note: This provides historical end-of-day data, not live real-time quotes.\",\n input: NasdaqGetRealTimeQuoteInput,\n output: NasdaqGetRealTimeQuoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACtK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACjI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAClK,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvQ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7L,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-real-time-quote.cjs","names":["z","action"],"sources":["../../src/actions/get-real-time-quote.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetRealTimeQuoteInput = z.object({\n ticker: z.string().describe(\"The stock ticker symbol to fetch price data for (e.g., AAPL, MSFT, GOOGL).\"),\n date_gte: z.string().describe(\"Filter for dates greater than or equal to this date (format: YYYY-MM-DD). If not specified, returns recent historical data.\").optional(),\n date_lte: z.string().describe(\"Filter for dates less than or equal to this date (format: YYYY-MM-DD).\").optional(),\n per_page: z.number().int().describe(\"Number of rows to return per page (max 10000). Defaults to 100 if not specified.\").optional(),\n cursor_id: z.string().describe(\"Cursor ID for fetching the next page of results. Obtain this from the 'next_cursor_id' field in a previous response.\").optional(),\n});\nconst NasdaqGetRealTimeQuote_QuoteDataSchema = z.object({\n low: z.number().describe(\"Lowest price during the trading day.\").nullable().optional(),\n date: z.string().describe(\"Date of the price data (YYYY-MM-DD format).\").nullable().optional(),\n high: z.number().describe(\"Highest price during the trading day.\").nullable().optional(),\n open: z.number().describe(\"Opening price for the trading day.\").nullable().optional(),\n close: z.number().describe(\"Closing price for the trading day.\").nullable().optional(),\n split: z.number().describe(\"Stock split ratio if any.\").nullable().optional(),\n ticker: z.string().describe(\"The stock ticker symbol.\").nullable().optional(),\n volume: z.number().describe(\"Total trading volume for the day.\").nullable().optional(),\n dividend: z.number().describe(\"Dividend amount if any.\").nullable().optional(),\n}).passthrough();\nexport const NasdaqGetRealTimeQuoteOutput = z.object({\n quotes: z.array(NasdaqGetRealTimeQuote_QuoteDataSchema).describe(\"A list of end-of-day price data for the requested ticker symbol, with the most recent dates first. Each entry represents one trading day's OHLC (Open, High, Low, Close) data.\").nullable().optional(),\n next_cursor_id: z.string().describe(\"Cursor ID for fetching the next page of results. Pass this as 'cursor_id' in the next request. Null if there are no more pages.\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetRealTimeQuote: AppAction<\n typeof NasdaqGetRealTimeQuoteInput,\n typeof NasdaqGetRealTimeQuoteOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_REAL_TIME_QUOTE\", {\n slug: \"nasdaq-get-real-time-quote\",\n name: \"Get Stock Price Data\",\n description: \"Retrieves end-of-day historical stock price data for a specific ticker symbol from the QUOTEMEDIA database. Returns OHLC (Open, High, Low, Close) prices, volume, and dividend/split information. Note: This provides historical end-of-day data, not live real-time quotes.\",\n input: NasdaqGetRealTimeQuoteInput,\n output: NasdaqGetRealTimeQuoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC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S,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvQ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7L,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-real-time-quote.d.ts
@@ -22,13 +24,7 @@ declare const NasdaqGetRealTimeQuoteOutput: z.ZodObject<{
22
24
  }, z.core.$loose>>>>;
23
25
  next_cursor_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
26
  }, z.core.$loose>;
25
- declare const nasdaqGetRealTimeQuote: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- ticker: string;
27
- date_gte?: string | undefined;
28
- date_lte?: string | undefined;
29
- per_page?: number | undefined;
30
- cursor_id?: string | undefined;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
+ declare const nasdaqGetRealTimeQuote: AppAction<typeof NasdaqGetRealTimeQuoteInput, typeof NasdaqGetRealTimeQuoteOutput, typeof nasdaq.credential>;
32
28
  //#endregion
33
29
  export { nasdaqGetRealTimeQuote };
34
30
  //# sourceMappingURL=get-real-time-quote.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-quote.d.cts","names":[],"sources":["../../src/actions/get-real-time-quote.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAkB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"get-real-time-quote.d.cts","names":[],"sources":["../../src/actions/get-real-time-quote.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAkB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-real-time-quote.d.ts
@@ -22,13 +24,7 @@ declare const NasdaqGetRealTimeQuoteOutput: z.ZodObject<{
22
24
  }, z.core.$loose>>>>;
23
25
  next_cursor_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
26
  }, z.core.$loose>;
25
- declare const nasdaqGetRealTimeQuote: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- ticker: string;
27
- date_gte?: string | undefined;
28
- date_lte?: string | undefined;
29
- per_page?: number | undefined;
30
- cursor_id?: string | undefined;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
+ declare const nasdaqGetRealTimeQuote: AppAction<typeof NasdaqGetRealTimeQuoteInput, typeof NasdaqGetRealTimeQuoteOutput, typeof nasdaq.credential>;
32
28
  //#endregion
33
29
  export { nasdaqGetRealTimeQuote };
34
30
  //# sourceMappingURL=get-real-time-quote.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-quote.d.mts","names":[],"sources":["../../src/actions/get-real-time-quote.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAkB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"get-real-time-quote.d.mts","names":[],"sources":["../../src/actions/get-real-time-quote.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAkB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-real-time-quote.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-real-time-quote.mjs","names":[],"sources":["../../src/actions/get-real-time-quote.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetRealTimeQuoteInput = z.object({\n ticker: z.string().describe(\"The stock ticker symbol to fetch price data for (e.g., AAPL, MSFT, GOOGL).\"),\n date_gte: z.string().describe(\"Filter for dates greater than or equal to this date (format: YYYY-MM-DD). If not specified, returns recent historical data.\").optional(),\n date_lte: z.string().describe(\"Filter for dates less than or equal to this date (format: YYYY-MM-DD).\").optional(),\n per_page: z.number().int().describe(\"Number of rows to return per page (max 10000). Defaults to 100 if not specified.\").optional(),\n cursor_id: z.string().describe(\"Cursor ID for fetching the next page of results. Obtain this from the 'next_cursor_id' field in a previous response.\").optional(),\n});\nconst NasdaqGetRealTimeQuote_QuoteDataSchema = z.object({\n low: z.number().describe(\"Lowest price during the trading day.\").nullable().optional(),\n date: z.string().describe(\"Date of the price data (YYYY-MM-DD format).\").nullable().optional(),\n high: z.number().describe(\"Highest price during the trading day.\").nullable().optional(),\n open: z.number().describe(\"Opening price for the trading day.\").nullable().optional(),\n close: z.number().describe(\"Closing price for the trading day.\").nullable().optional(),\n split: z.number().describe(\"Stock split ratio if any.\").nullable().optional(),\n ticker: z.string().describe(\"The stock ticker symbol.\").nullable().optional(),\n volume: z.number().describe(\"Total trading volume for the day.\").nullable().optional(),\n dividend: z.number().describe(\"Dividend amount if any.\").nullable().optional(),\n}).passthrough();\nexport const NasdaqGetRealTimeQuoteOutput = z.object({\n quotes: z.array(NasdaqGetRealTimeQuote_QuoteDataSchema).describe(\"A list of end-of-day price data for the requested ticker symbol, with the most recent dates first. Each entry represents one trading day's OHLC (Open, High, Low, Close) data.\").nullable().optional(),\n next_cursor_id: z.string().describe(\"Cursor ID for fetching the next page of results. Pass this as 'cursor_id' in the next request. Null if there are no more pages.\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetRealTimeQuote = action(\"NASDAQ_GET_REAL_TIME_QUOTE\", {\n slug: \"nasdaq-get-real-time-quote\",\n name: \"Get Stock Price Data\",\n description: \"Retrieves end-of-day historical stock price data for a specific ticker symbol from the QUOTEMEDIA database. Returns OHLC (Open, High, Low, Close) prices, volume, and dividend/split information. Note: This provides historical end-of-day data, not live real-time quotes.\",\n input: NasdaqGetRealTimeQuoteInput,\n output: NasdaqGetRealTimeQuoteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACtK,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACjH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACjI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAClK,CAAC;AACD,MAAM,yCAAyC,EAAE,OAAO;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,QAAQ,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvQ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-real-time-quote.mjs","names":[],"sources":["../../src/actions/get-real-time-quote.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetRealTimeQuoteInput = z.object({\n ticker: z.string().describe(\"The stock ticker symbol to fetch price data for (e.g., AAPL, MSFT, GOOGL).\"),\n date_gte: z.string().describe(\"Filter for dates greater than or equal to this date (format: YYYY-MM-DD). If not specified, returns recent historical data.\").optional(),\n date_lte: z.string().describe(\"Filter for dates less than or equal to this date (format: YYYY-MM-DD).\").optional(),\n per_page: z.number().int().describe(\"Number of rows to return per page (max 10000). Defaults to 100 if not specified.\").optional(),\n cursor_id: z.string().describe(\"Cursor ID for fetching the next page of results. Obtain this from the 'next_cursor_id' field in a previous response.\").optional(),\n});\nconst NasdaqGetRealTimeQuote_QuoteDataSchema = z.object({\n low: z.number().describe(\"Lowest price during the trading day.\").nullable().optional(),\n date: z.string().describe(\"Date of the price data (YYYY-MM-DD format).\").nullable().optional(),\n high: z.number().describe(\"Highest price during the trading day.\").nullable().optional(),\n open: z.number().describe(\"Opening price for the trading day.\").nullable().optional(),\n close: z.number().describe(\"Closing price for the trading day.\").nullable().optional(),\n split: z.number().describe(\"Stock split ratio if any.\").nullable().optional(),\n ticker: z.string().describe(\"The stock ticker symbol.\").nullable().optional(),\n volume: z.number().describe(\"Total trading volume for the day.\").nullable().optional(),\n dividend: z.number().describe(\"Dividend amount if any.\").nullable().optional(),\n}).passthrough();\nexport const NasdaqGetRealTimeQuoteOutput = z.object({\n quotes: z.array(NasdaqGetRealTimeQuote_QuoteDataSchema).describe(\"A list of end-of-day price data for the requested ticker symbol, with the most recent dates first. Each entry represents one trading day's OHLC (Open, High, Low, Close) data.\").nullable().optional(),\n next_cursor_id: z.string().describe(\"Cursor ID for fetching the next page of results. Pass this as 'cursor_id' in the next request. Null if there are no more pages.\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetRealTimeQuote: AppAction<\n typeof NasdaqGetRealTimeQuoteInput,\n typeof NasdaqGetRealTimeQuoteOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_REAL_TIME_QUOTE\", {\n slug: \"nasdaq-get-real-time-quote\",\n name: \"Get Stock Price Data\",\n description: \"Retrieves end-of-day historical stock price data for a specific ticker symbol from the QUOTEMEDIA database. Returns OHLC (Open, High, Low, Close) prices, volume, and dividend/split information. Note: This provides historical end-of-day data, not live real-time quotes.\",\n input: NasdaqGetRealTimeQuoteInput,\n output: NasdaqGetRealTimeQuoteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACtK,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACjH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACjI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAClK,CAAC;AACD,MAAM,yCAAyC,EAAE,OAAO;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,yBAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd0C,EAAE,OAAO;EACnD,QAAQ,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,gLAAgL,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvQ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7L,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-table-row.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-table-row.cjs","names":["z","action"],"sources":["../../src/actions/get-table-row.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetTableRowInput = z.object({\n columns: z.string().describe(\"Optional comma-separated list of column names to return (e.g., 'ticker,revenue,netinc'). If omitted, all available columns are returned. Use this to reduce response size when you only need specific fields.\").optional(),\n datacode: z.string().describe(\"The database code. Common examples: 'SHARADAR' for equity fundamentals and prices, or other NASDAQ Data Link database codes.\"),\n datatable_code: z.string().describe(\"The specific table code within the database. Examples: 'SF1' for fundamental indicators, 'TICKERS' for ticker metadata, 'SEP' for daily stock prices.\"),\n filter_column_name: z.string().describe(\"The column name to use as a filter. Common filter columns include 'ticker' (stock symbol), 'permaticker' (permanent ticker ID), or other table-specific columns. Must be a filterable column per the table's schema.\"),\n filter_column_value: z.string().describe(\"The value to filter for in the specified column. For ticker filters, use stock symbols like 'AAPL', 'MSFT', 'GOOGL'. For other columns, use appropriate string values.\"),\n});\nconst NasdaqGetTableRow_ColumnDefinitionSchema = z.object({\n name: z.string().describe(\"Name of the column.\").nullable(),\n type: z.string().describe(\"Data type of the column.\").nullable(),\n}).passthrough();\nconst NasdaqGetTableRow_DatatableSchema = z.object({\n data: z.array(z.array(z.unknown())).describe(\"The row data. Each inner list represents a row.\"),\n columns: z.array(NasdaqGetTableRow_ColumnDefinitionSchema).describe(\"Definitions of the columns in the table.\"),\n}).passthrough();\nexport const NasdaqGetTableRowOutput = z.object({\n message: z.string().describe(\"A message indicating the outcome, e.g., if no row is found.\").nullable().optional(),\n datatable: NasdaqGetTableRow_DatatableSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetTableRow = action(\"NASDAQ_GET_TABLE_ROW\", {\n slug: \"nasdaq-get-table-row\",\n name: \"Get Table Row By Filter\",\n description: \"Retrieves rows from a NASDAQ Data Link datatable by filtering on a specified column and value. This action queries NASDAQ Data Link datatables (e.g., SHARADAR/SF1 for fundamental data, SHARADAR/TICKERS for ticker metadata) and returns rows matching the filter criteria. The API may return multiple rows if the filter isn't unique (e.g., filtering ticker='AAPL' in SF1 returns multiple fiscal periods). Use the 'columns' parameter to limit returned fields. Common use cases: - Get fundamental data for a stock: datacode='SHARADAR', datatable_code='SF1', filter_column_name='ticker' - Get ticker metadata: datacode='SHARADAR', datatable_code='TICKERS', filter_column_name='ticker' - Get price data: datacode='SHARADAR', datatable_code='SEP', filter_column_name='ticker'\",\n input: NasdaqGetTableRowInput,\n output: NasdaqGetTableRowOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;CACvP,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H;CAC5J,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ;CAC3L,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sNAAsN;CAC9P,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK;AACnN,CAAC;AACD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD;CAC9F,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,0CAA0C;AAChH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAW,kCAAkC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oBAAoBC,eAAAA,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-table-row.cjs","names":["z","action"],"sources":["../../src/actions/get-table-row.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetTableRowInput = z.object({\n columns: z.string().describe(\"Optional comma-separated list of column names to return (e.g., 'ticker,revenue,netinc'). If omitted, all available columns are returned. Use this to reduce response size when you only need specific fields.\").optional(),\n datacode: z.string().describe(\"The database code. Common examples: 'SHARADAR' for equity fundamentals and prices, or other NASDAQ Data Link database codes.\"),\n datatable_code: z.string().describe(\"The specific table code within the database. Examples: 'SF1' for fundamental indicators, 'TICKERS' for ticker metadata, 'SEP' for daily stock prices.\"),\n filter_column_name: z.string().describe(\"The column name to use as a filter. Common filter columns include 'ticker' (stock symbol), 'permaticker' (permanent ticker ID), or other table-specific columns. Must be a filterable column per the table's schema.\"),\n filter_column_value: z.string().describe(\"The value to filter for in the specified column. For ticker filters, use stock symbols like 'AAPL', 'MSFT', 'GOOGL'. For other columns, use appropriate string values.\"),\n});\nconst NasdaqGetTableRow_ColumnDefinitionSchema = z.object({\n name: z.string().describe(\"Name of the column.\").nullable(),\n type: z.string().describe(\"Data type of the column.\").nullable(),\n}).passthrough();\nconst NasdaqGetTableRow_DatatableSchema = z.object({\n data: z.array(z.array(z.unknown())).describe(\"The row data. Each inner list represents a row.\"),\n columns: z.array(NasdaqGetTableRow_ColumnDefinitionSchema).describe(\"Definitions of the columns in the table.\"),\n}).passthrough();\nexport const NasdaqGetTableRowOutput = z.object({\n message: z.string().describe(\"A message indicating the outcome, e.g., if no row is found.\").nullable().optional(),\n datatable: NasdaqGetTableRow_DatatableSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetTableRow: AppAction<\n typeof NasdaqGetTableRowInput,\n typeof NasdaqGetTableRowOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_TABLE_ROW\", {\n slug: \"nasdaq-get-table-row\",\n name: \"Get Table Row By Filter\",\n description: \"Retrieves rows from a NASDAQ Data Link datatable by filtering on a specified column and value. This action queries NASDAQ Data Link datatables (e.g., SHARADAR/SF1 for fundamental data, SHARADAR/TICKERS for ticker metadata) and returns rows matching the filter criteria. The API may return multiple rows if the filter isn't unique (e.g., filtering ticker='AAPL' in SF1 returns multiple fiscal periods). Use the 'columns' parameter to limit returned fields. Common use cases: - Get fundamental data for a stock: datacode='SHARADAR', datatable_code='SF1', filter_column_name='ticker' - Get ticker metadata: datacode='SHARADAR', datatable_code='TICKERS', filter_column_name='ticker' - Get price data: datacode='SHARADAR', datatable_code='SEP', filter_column_name='ticker'\",\n input: NasdaqGetTableRowInput,\n output: NasdaqGetTableRowOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;CACvP,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H;CAC5J,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ;CAC3L,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sNAAsN;CAC9P,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK;AACnN,CAAC;AACD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD;CAC9F,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,0CAA0C;AAChH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAW,kCAAkC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,oBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-table-row.d.ts
@@ -18,13 +20,7 @@ declare const NasdaqGetTableRowOutput: z.ZodObject<{
18
20
  }, z.core.$loose>>;
19
21
  }, z.core.$loose>>;
20
22
  }, z.core.$loose>;
21
- declare const nasdaqGetTableRow: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- datacode: string;
23
- datatable_code: string;
24
- filter_column_name: string;
25
- filter_column_value: string;
26
- columns?: string | undefined;
27
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const nasdaqGetTableRow: AppAction<typeof NasdaqGetTableRowInput, typeof NasdaqGetTableRowOutput, typeof nasdaq.credential>;
28
24
  //#endregion
29
25
  export { nasdaqGetTableRow };
30
26
  //# sourceMappingURL=get-table-row.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-table-row.d.cts","names":[],"sources":["../../src/actions/get-table-row.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;cAetB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"get-table-row.d.cts","names":[],"sources":["../../src/actions/get-table-row.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;cAetB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-table-row.d.ts
@@ -18,13 +20,7 @@ declare const NasdaqGetTableRowOutput: z.ZodObject<{
18
20
  }, z.core.$loose>>;
19
21
  }, z.core.$loose>>;
20
22
  }, z.core.$loose>;
21
- declare const nasdaqGetTableRow: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- datacode: string;
23
- datatable_code: string;
24
- filter_column_name: string;
25
- filter_column_value: string;
26
- columns?: string | undefined;
27
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const nasdaqGetTableRow: AppAction<typeof NasdaqGetTableRowInput, typeof NasdaqGetTableRowOutput, typeof nasdaq.credential>;
28
24
  //#endregion
29
25
  export { nasdaqGetTableRow };
30
26
  //# sourceMappingURL=get-table-row.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-table-row.d.mts","names":[],"sources":["../../src/actions/get-table-row.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;cAetB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"get-table-row.d.mts","names":[],"sources":["../../src/actions/get-table-row.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;cAetB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-table-row.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-table-row.mjs","names":[],"sources":["../../src/actions/get-table-row.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetTableRowInput = z.object({\n columns: z.string().describe(\"Optional comma-separated list of column names to return (e.g., 'ticker,revenue,netinc'). If omitted, all available columns are returned. Use this to reduce response size when you only need specific fields.\").optional(),\n datacode: z.string().describe(\"The database code. Common examples: 'SHARADAR' for equity fundamentals and prices, or other NASDAQ Data Link database codes.\"),\n datatable_code: z.string().describe(\"The specific table code within the database. Examples: 'SF1' for fundamental indicators, 'TICKERS' for ticker metadata, 'SEP' for daily stock prices.\"),\n filter_column_name: z.string().describe(\"The column name to use as a filter. Common filter columns include 'ticker' (stock symbol), 'permaticker' (permanent ticker ID), or other table-specific columns. Must be a filterable column per the table's schema.\"),\n filter_column_value: z.string().describe(\"The value to filter for in the specified column. For ticker filters, use stock symbols like 'AAPL', 'MSFT', 'GOOGL'. For other columns, use appropriate string values.\"),\n});\nconst NasdaqGetTableRow_ColumnDefinitionSchema = z.object({\n name: z.string().describe(\"Name of the column.\").nullable(),\n type: z.string().describe(\"Data type of the column.\").nullable(),\n}).passthrough();\nconst NasdaqGetTableRow_DatatableSchema = z.object({\n data: z.array(z.array(z.unknown())).describe(\"The row data. Each inner list represents a row.\"),\n columns: z.array(NasdaqGetTableRow_ColumnDefinitionSchema).describe(\"Definitions of the columns in the table.\"),\n}).passthrough();\nexport const NasdaqGetTableRowOutput = z.object({\n message: z.string().describe(\"A message indicating the outcome, e.g., if no row is found.\").nullable().optional(),\n datatable: NasdaqGetTableRow_DatatableSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetTableRow = action(\"NASDAQ_GET_TABLE_ROW\", {\n slug: \"nasdaq-get-table-row\",\n name: \"Get Table Row By Filter\",\n description: \"Retrieves rows from a NASDAQ Data Link datatable by filtering on a specified column and value. This action queries NASDAQ Data Link datatables (e.g., SHARADAR/SF1 for fundamental data, SHARADAR/TICKERS for ticker metadata) and returns rows matching the filter criteria. The API may return multiple rows if the filter isn't unique (e.g., filtering ticker='AAPL' in SF1 returns multiple fiscal periods). Use the 'columns' parameter to limit returned fields. Common use cases: - Get fundamental data for a stock: datacode='SHARADAR', datatable_code='SF1', filter_column_name='ticker' - Get ticker metadata: datacode='SHARADAR', datatable_code='TICKERS', filter_column_name='ticker' - Get price data: datacode='SHARADAR', datatable_code='SEP', filter_column_name='ticker'\",\n input: NasdaqGetTableRowInput,\n output: NasdaqGetTableRowOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;CACvP,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H;CAC5J,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ;CAC3L,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,sNAAsN;CAC9P,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK;AACnN,CAAC;AACD,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD;CAC9F,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,0CAA0C;AAChH,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,oBAAoB,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,WAAW,kCAAkC,SAAS;CACxD,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-table-row.mjs","names":[],"sources":["../../src/actions/get-table-row.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetTableRowInput = z.object({\n columns: z.string().describe(\"Optional comma-separated list of column names to return (e.g., 'ticker,revenue,netinc'). If omitted, all available columns are returned. Use this to reduce response size when you only need specific fields.\").optional(),\n datacode: z.string().describe(\"The database code. Common examples: 'SHARADAR' for equity fundamentals and prices, or other NASDAQ Data Link database codes.\"),\n datatable_code: z.string().describe(\"The specific table code within the database. Examples: 'SF1' for fundamental indicators, 'TICKERS' for ticker metadata, 'SEP' for daily stock prices.\"),\n filter_column_name: z.string().describe(\"The column name to use as a filter. Common filter columns include 'ticker' (stock symbol), 'permaticker' (permanent ticker ID), or other table-specific columns. Must be a filterable column per the table's schema.\"),\n filter_column_value: z.string().describe(\"The value to filter for in the specified column. For ticker filters, use stock symbols like 'AAPL', 'MSFT', 'GOOGL'. For other columns, use appropriate string values.\"),\n});\nconst NasdaqGetTableRow_ColumnDefinitionSchema = z.object({\n name: z.string().describe(\"Name of the column.\").nullable(),\n type: z.string().describe(\"Data type of the column.\").nullable(),\n}).passthrough();\nconst NasdaqGetTableRow_DatatableSchema = z.object({\n data: z.array(z.array(z.unknown())).describe(\"The row data. Each inner list represents a row.\"),\n columns: z.array(NasdaqGetTableRow_ColumnDefinitionSchema).describe(\"Definitions of the columns in the table.\"),\n}).passthrough();\nexport const NasdaqGetTableRowOutput = z.object({\n message: z.string().describe(\"A message indicating the outcome, e.g., if no row is found.\").nullable().optional(),\n datatable: NasdaqGetTableRow_DatatableSchema.nullable(),\n}).passthrough();\n\nexport const nasdaqGetTableRow: AppAction<\n typeof NasdaqGetTableRowInput,\n typeof NasdaqGetTableRowOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_TABLE_ROW\", {\n slug: \"nasdaq-get-table-row\",\n name: \"Get Table Row By Filter\",\n description: \"Retrieves rows from a NASDAQ Data Link datatable by filtering on a specified column and value. This action queries NASDAQ Data Link datatables (e.g., SHARADAR/SF1 for fundamental data, SHARADAR/TICKERS for ticker metadata) and returns rows matching the filter criteria. The API may return multiple rows if the filter isn't unique (e.g., filtering ticker='AAPL' in SF1 returns multiple fiscal periods). Use the 'columns' parameter to limit returned fields. Common use cases: - Get fundamental data for a stock: datacode='SHARADAR', datatable_code='SF1', filter_column_name='ticker' - Get ticker metadata: datacode='SHARADAR', datatable_code='TICKERS', filter_column_name='ticker' - Get price data: datacode='SHARADAR', datatable_code='SEP', filter_column_name='ticker'\",\n input: NasdaqGetTableRowInput,\n output: NasdaqGetTableRowOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+MAA+M,CAAC,CAAC,SAAS;CACvP,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H;CAC5J,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ;CAC3L,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,sNAAsN;CAC9P,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wKAAwK;AACnN,CAAC;AACD,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD;CAC9F,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,0CAA0C;AAChH,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,oBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,WAAW,kCAAkC,SAAS;CACxD,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-tables-by-date.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-tables-by-date.cjs","names":["z","action"],"sources":["../../src/actions/get-tables-by-date.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetTablesByDateInput = z.object({\n target_date: z.string().describe(\"The target date to filter tables by, in YYYY-MM-DD format.\"),\n});\nconst NasdaqGetTablesByDate_DatatableDetailSchema = z.object({\n id: z.number().int().describe(\"The unique ID of the datatable.\").nullable(),\n name: z.string().describe(\"The name of the datatable.\").nullable(),\n premium: z.boolean().describe(\"Indicates if the datatable is a premium offering.\").nullable(),\n updated_at: z.string().describe(\"The timestamp of when the datatable was last updated.\").nullable(),\n description: z.string().describe(\"A description of the datatable.\").nullable(),\n vendor_code: z.string().describe(\"The vendor code for the datatable.\").nullable(),\n datatable_code: z.string().describe(\"The code for the datatable.\").nullable(),\n}).passthrough();\nexport const NasdaqGetTablesByDateOutput = z.object({\n tables: z.array(NasdaqGetTablesByDate_DatatableDetailSchema).describe(\"A list of tables updated on the specified date.\").nullable().optional(),\n message: z.string().describe(\"A message indicating the outcome, e.g., if no tables were found.\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetTablesByDate = action(\"NASDAQ_GET_TABLES_BY_DATE\", {\n slug: \"nasdaq-get-tables-by-date\",\n name: \"Get Datatables Updated on Specific Date\",\n description: \"Retrieves Nasdaq Data Link datatables (databases) that were last updated on a specific date. This action fetches all available datatables from Nasdaq Data Link's catalog and filters them by their last update timestamp to return only those updated on the target date. Useful for discovering recently updated data sources.\",\n input: NasdaqGetTablesByDateInput,\n output: NasdaqGetTablesByDateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,EAC/F,CAAC;AACD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-tables-by-date.cjs","names":["z","action"],"sources":["../../src/actions/get-tables-by-date.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetTablesByDateInput = z.object({\n target_date: z.string().describe(\"The target date to filter tables by, in YYYY-MM-DD format.\"),\n});\nconst NasdaqGetTablesByDate_DatatableDetailSchema = z.object({\n id: z.number().int().describe(\"The unique ID of the datatable.\").nullable(),\n name: z.string().describe(\"The name of the datatable.\").nullable(),\n premium: z.boolean().describe(\"Indicates if the datatable is a premium offering.\").nullable(),\n updated_at: z.string().describe(\"The timestamp of when the datatable was last updated.\").nullable(),\n description: z.string().describe(\"A description of the datatable.\").nullable(),\n vendor_code: z.string().describe(\"The vendor code for the datatable.\").nullable(),\n datatable_code: z.string().describe(\"The code for the datatable.\").nullable(),\n}).passthrough();\nexport const NasdaqGetTablesByDateOutput = z.object({\n tables: z.array(NasdaqGetTablesByDate_DatatableDetailSchema).describe(\"A list of tables updated on the specified date.\").nullable().optional(),\n message: z.string().describe(\"A message indicating the outcome, e.g., if no tables were found.\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetTablesByDate: AppAction<\n typeof NasdaqGetTablesByDateInput,\n typeof NasdaqGetTablesByDateOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_TABLES_BY_DATE\", {\n slug: \"nasdaq-get-tables-by-date\",\n name: \"Get Datatables Updated on Specific Date\",\n description: \"Retrieves Nasdaq Data Link datatables (databases) that were last updated on a specific date. This action fetches all available datatables from Nasdaq Data Link's catalog and filters them by their last update timestamp to return only those updated on the target date. Useful for discovering recently updated data sources.\",\n input: Nas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";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-tables-by-date.d.ts
@@ -16,9 +18,7 @@ declare const NasdaqGetTablesByDateOutput: z.ZodObject<{
16
18
  }, z.core.$loose>>>>;
17
19
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
20
  }, z.core.$loose>;
19
- declare const nasdaqGetTablesByDate: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- target_date: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const nasdaqGetTablesByDate: AppAction<typeof NasdaqGetTablesByDateInput, typeof NasdaqGetTablesByDateOutput, typeof nasdaq.credential>;
22
22
  //#endregion
23
23
  export { nasdaqGetTablesByDate };
24
24
  //# sourceMappingURL=get-tables-by-date.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-tables-by-date.d.cts","names":[],"sources":["../../src/actions/get-tables-by-date.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"get-tables-by-date.d.cts","names":[],"sources":["../../src/actions/get-tables-by-date.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { nasdaq } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-tables-by-date.d.ts
@@ -16,9 +18,7 @@ declare const NasdaqGetTablesByDateOutput: z.ZodObject<{
16
18
  }, z.core.$loose>>>>;
17
19
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
20
  }, z.core.$loose>;
19
- declare const nasdaqGetTablesByDate: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- target_date: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const nasdaqGetTablesByDate: AppAction<typeof NasdaqGetTablesByDateInput, typeof NasdaqGetTablesByDateOutput, typeof nasdaq.credential>;
22
22
  //#endregion
23
23
  export { nasdaqGetTablesByDate };
24
24
  //# sourceMappingURL=get-tables-by-date.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-tables-by-date.d.mts","names":[],"sources":["../../src/actions/get-tables-by-date.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"get-tables-by-date.d.mts","names":[],"sources":["../../src/actions/get-tables-by-date.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-tables-by-date.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-tables-by-date.mjs","names":[],"sources":["../../src/actions/get-tables-by-date.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NasdaqGetTablesByDateInput = z.object({\n target_date: z.string().describe(\"The target date to filter tables by, in YYYY-MM-DD format.\"),\n});\nconst NasdaqGetTablesByDate_DatatableDetailSchema = z.object({\n id: z.number().int().describe(\"The unique ID of the datatable.\").nullable(),\n name: z.string().describe(\"The name of the datatable.\").nullable(),\n premium: z.boolean().describe(\"Indicates if the datatable is a premium offering.\").nullable(),\n updated_at: z.string().describe(\"The timestamp of when the datatable was last updated.\").nullable(),\n description: z.string().describe(\"A description of the datatable.\").nullable(),\n vendor_code: z.string().describe(\"The vendor code for the datatable.\").nullable(),\n datatable_code: z.string().describe(\"The code for the datatable.\").nullable(),\n}).passthrough();\nexport const NasdaqGetTablesByDateOutput = z.object({\n tables: z.array(NasdaqGetTablesByDate_DatatableDetailSchema).describe(\"A list of tables updated on the specified date.\").nullable().optional(),\n message: z.string().describe(\"A message indicating the outcome, e.g., if no tables were found.\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetTablesByDate = action(\"NASDAQ_GET_TABLES_BY_DATE\", {\n slug: \"nasdaq-get-tables-by-date\",\n name: \"Get Datatables Updated on Specific Date\",\n description: \"Retrieves Nasdaq Data Link datatables (databases) that were last updated on a specific date. This action fetches all available datatables from Nasdaq Data Link's catalog and filters them by their last update timestamp to return only those updated on the target date. Useful for discovering recently updated data sources.\",\n input: NasdaqGetTablesByDateInput,\n output: NasdaqGetTablesByDateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,EAC/F,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-tables-by-date.mjs","names":[],"sources":["../../src/actions/get-tables-by-date.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { nasdaq } from \"../app\";\n\nexport const NasdaqGetTablesByDateInput = z.object({\n target_date: z.string().describe(\"The target date to filter tables by, in YYYY-MM-DD format.\"),\n});\nconst NasdaqGetTablesByDate_DatatableDetailSchema = z.object({\n id: z.number().int().describe(\"The unique ID of the datatable.\").nullable(),\n name: z.string().describe(\"The name of the datatable.\").nullable(),\n premium: z.boolean().describe(\"Indicates if the datatable is a premium offering.\").nullable(),\n updated_at: z.string().describe(\"The timestamp of when the datatable was last updated.\").nullable(),\n description: z.string().describe(\"A description of the datatable.\").nullable(),\n vendor_code: z.string().describe(\"The vendor code for the datatable.\").nullable(),\n datatable_code: z.string().describe(\"The code for the datatable.\").nullable(),\n}).passthrough();\nexport const NasdaqGetTablesByDateOutput = z.object({\n tables: z.array(NasdaqGetTablesByDate_DatatableDetailSchema).describe(\"A list of tables updated on the specified date.\").nullable().optional(),\n message: z.string().describe(\"A message indicating the outcome, e.g., if no tables were found.\").nullable().optional(),\n}).passthrough();\n\nexport const nasdaqGetTablesByDate: AppAction<\n typeof NasdaqGetTablesByDateInput,\n typeof NasdaqGetTablesByDateOutput,\n typeof nasdaq.credential\n> = action(\"NASDAQ_GET_TABLES_BY_DATE\", {\n slug: \"nasdaq-get-tables-by-date\",\n name: \"Get Datatables Updated on Specific Date\",\n description: \"Retrieves Nasdaq Data Link datatables (databases) that were last updated on a specific date. This action fetches all available datatables from Nasdaq Data Link's catalog and filters them by their last update timestamp to return only those updated on the target date. Useful for discovering recently updated data sources.\",\n input: NasdaqGetTablesByDateInput,\n output: NasdaqGetTablesByDateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO,EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,EAC/F,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAChF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,wBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
1
2
  //#region src/app.ts
2
- const nasdaq = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
+ const nasdaq = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "nasdaq",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential
5
8
  });
6
9
  //#endregion
7
10
  exports.nasdaq = nasdaq;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const nasdaq = defineApp({\n slug: \"nasdaq\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,UAAA,uCAAA,CAAA,CAAA,UAAA,CAAmB;CAC9B,MAAM;CACN,MAAM;AACR,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 generic_api_key: z.string(),\n};\n\nexport const nasdaq: KeystrokeApp<\"nasdaq\", typeof credential> = defineApp({\n slug: \"nasdaq\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAA8D;CACzE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const nasdaq: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const nasdaq: KeystrokeApp<"nasdaq", typeof credential>;
3
9
  //#endregion
4
10
  export { nasdaq };
5
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const nasdaq: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const nasdaq: KeystrokeApp<"nasdaq", typeof credential>;
3
9
  //#endregion
4
10
  export { nasdaq };
5
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const nasdaq = defineApp({
4
4
  slug: "nasdaq",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: { generic_api_key: z.string() }
6
7
  });
7
8
  //#endregion
8
9
  export { nasdaq };
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\";\n\nexport const nasdaq = defineApp({\n slug: \"nasdaq\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,SAAS,UAAU;CAC9B,MAAM;CACN,MAAM;AACR,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 generic_api_key: z.string(),\n};\n\nexport const nasdaq: KeystrokeApp<\"nasdaq\", typeof credential> = defineApp({\n slug: \"nasdaq\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,SAAoD,UAAU;CACzE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { nasdaq } from "./app.cjs";
1
2
  import { nasdaqGetAnalystRatings } from "./actions/get-analyst-ratings.cjs";
2
3
  import { nasdaqGetDatatable } from "./actions/get-datatable.cjs";
3
4
  import { nasdaqGetDatatableMetadata } from "./actions/get-datatable-metadata.cjs";
@@ -5,6 +6,5 @@ import { nasdaqGetDividendHistory } from "./actions/get-dividend-history.cjs";
5
6
  import { nasdaqGetRealTimeQuote } from "./actions/get-real-time-quote.cjs";
6
7
  import { nasdaqGetTableRow } from "./actions/get-table-row.cjs";
7
8
  import { nasdaqGetTablesByDate } from "./actions/get-tables-by-date.cjs";
8
- import { nasdaq } from "./app.cjs";
9
9
  import { nasdaqCatalog } from "./catalog.cjs";
10
10
  export { nasdaq, nasdaqCatalog, nasdaqGetAnalystRatings, nasdaqGetDatatable, nasdaqGetDatatableMetadata, nasdaqGetDividendHistory, nasdaqGetRealTimeQuote, nasdaqGetTableRow, nasdaqGetTablesByDate };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { nasdaq } from "./app.mjs";
1
2
  import { nasdaqGetAnalystRatings } from "./actions/get-analyst-ratings.mjs";
2
3
  import { nasdaqGetDatatable } from "./actions/get-datatable.mjs";
3
4
  import { nasdaqGetDatatableMetadata } from "./actions/get-datatable-metadata.mjs";
@@ -5,6 +6,5 @@ import { nasdaqGetDividendHistory } from "./actions/get-dividend-history.mjs";
5
6
  import { nasdaqGetRealTimeQuote } from "./actions/get-real-time-quote.mjs";
6
7
  import { nasdaqGetTableRow } from "./actions/get-table-row.mjs";
7
8
  import { nasdaqGetTablesByDate } from "./actions/get-tables-by-date.mjs";
8
- import { nasdaq } from "./app.mjs";
9
9
  import { nasdaqCatalog } from "./catalog.mjs";
10
10
  export { nasdaq, nasdaqCatalog, nasdaqGetAnalystRatings, nasdaqGetDatatable, nasdaqGetDatatableMetadata, nasdaqGetDividendHistory, nasdaqGetRealTimeQuote, nasdaqGetTableRow, nasdaqGetTablesByDate };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/nasdaq",
3
- "version": "0.1.4",
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": {