@keystrokehq/salesmate 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-product.cjs +11 -11
  4. package/dist/actions/add-product.cjs.map +1 -1
  5. package/dist/actions/add-product.d.cts +50 -3
  6. package/dist/actions/add-product.d.cts.map +1 -1
  7. package/dist/actions/add-product.d.mts +50 -3
  8. package/dist/actions/add-product.d.mts.map +1 -1
  9. package/dist/actions/add-product.mjs +11 -11
  10. package/dist/actions/add-product.mjs.map +1 -1
  11. package/dist/actions/create-company.cjs +2 -2
  12. package/dist/actions/create-company.cjs.map +1 -1
  13. package/dist/actions/create-company.d.cts +48 -3
  14. package/dist/actions/create-company.d.cts.map +1 -1
  15. package/dist/actions/create-company.d.mts +48 -3
  16. package/dist/actions/create-company.d.mts.map +1 -1
  17. package/dist/actions/create-company.mjs +2 -2
  18. package/dist/actions/create-company.mjs.map +1 -1
  19. package/dist/actions/delete-product.cjs +1 -1
  20. package/dist/actions/delete-product.cjs.map +1 -1
  21. package/dist/actions/delete-product.d.cts +10 -3
  22. package/dist/actions/delete-product.d.cts.map +1 -1
  23. package/dist/actions/delete-product.d.mts +10 -3
  24. package/dist/actions/delete-product.d.mts.map +1 -1
  25. package/dist/actions/delete-product.mjs +1 -1
  26. package/dist/actions/delete-product.mjs.map +1 -1
  27. package/dist/actions/get-active-users.cjs +6 -6
  28. package/dist/actions/get-active-users.cjs.map +1 -1
  29. package/dist/actions/get-active-users.d.cts +12 -3
  30. package/dist/actions/get-active-users.d.cts.map +1 -1
  31. package/dist/actions/get-active-users.d.mts +12 -3
  32. package/dist/actions/get-active-users.d.mts.map +1 -1
  33. package/dist/actions/get-active-users.mjs +6 -6
  34. package/dist/actions/get-active-users.mjs.map +1 -1
  35. package/dist/actions/get-company.cjs +1 -1
  36. package/dist/actions/get-company.cjs.map +1 -1
  37. package/dist/actions/get-company.d.cts +10 -3
  38. package/dist/actions/get-company.d.cts.map +1 -1
  39. package/dist/actions/get-company.d.mts +10 -3
  40. package/dist/actions/get-company.d.mts.map +1 -1
  41. package/dist/actions/get-company.mjs +1 -1
  42. package/dist/actions/get-company.mjs.map +1 -1
  43. package/dist/actions/list-modules.cjs +4 -4
  44. package/dist/actions/list-modules.cjs.map +1 -1
  45. package/dist/actions/list-modules.d.cts +10 -3
  46. package/dist/actions/list-modules.d.cts.map +1 -1
  47. package/dist/actions/list-modules.d.mts +10 -3
  48. package/dist/actions/list-modules.d.mts.map +1 -1
  49. package/dist/actions/list-modules.mjs +4 -4
  50. package/dist/actions/list-modules.mjs.map +1 -1
  51. package/dist/catalog.cjs +13 -1
  52. package/dist/catalog.cjs.map +1 -1
  53. package/dist/catalog.d.cts +12 -0
  54. package/dist/catalog.d.mts +12 -0
  55. package/dist/catalog.mjs +13 -1
  56. package/dist/catalog.mjs.map +1 -1
  57. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["salesmate","executeSalesmateTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { salesmate } from \"./app\";\nimport { executeSalesmateTool } 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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return salesmate.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 executeSalesmateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,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,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["salesmate","executeSalesmateTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { salesmate } from \"./app\";\nimport { executeSalesmateTool } 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 salesmate.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 executeSalesmateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,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,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { salesmate } from \"./app\";\nimport { executeSalesmateTool } 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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return salesmate.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 executeSalesmateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { salesmate } from \"./app\";\nimport { executeSalesmateTool } 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 salesmate.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 executeSalesmateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -14,30 +14,30 @@ const SalesmateAddProductInput = zod.z.object({
14
14
  description: zod.z.string().describe("Optional description (max 2000 chars)").optional()
15
15
  });
16
16
  const SalesmateAddProduct_PriceItemSchema = zod.z.object({
17
- id: zod.z.number().int().describe("ID of this price entry."),
18
- currency: zod.z.string().describe("Currency code for this price."),
19
- isDefault: zod.z.boolean().describe("Whether this price is the default one."),
20
- unitPrice: zod.z.number().describe("Unit price for this product.")
17
+ id: zod.z.number().int().describe("ID of this price entry.").nullable(),
18
+ currency: zod.z.string().describe("Currency code for this price.").nullable(),
19
+ isDefault: zod.z.boolean().describe("Whether this price is the default one.").nullable(),
20
+ unitPrice: zod.z.number().describe("Unit price for this product.").nullable()
21
21
  });
22
22
  const SalesmateAddProduct_CurrencyInfoSchema = zod.z.object({
23
- code: zod.z.string().describe("Currency code, e.g., USD."),
24
- value: zod.z.string().describe("Value of the currency code."),
25
- displayLabel: zod.z.string().describe("Currency display label, e.g., USD - $.")
23
+ code: zod.z.string().describe("Currency code, e.g., USD.").nullable(),
24
+ value: zod.z.string().describe("Value of the currency code.").nullable(),
25
+ displayLabel: zod.z.string().describe("Currency display label, e.g., USD - $.").nullable()
26
26
  });
27
27
  const SalesmateAddProduct_AddProductDataSchema = zod.z.object({
28
- id: zod.z.number().int().describe("Unique ID of the product"),
28
+ id: zod.z.number().int().describe("Unique ID of the product").nullable(),
29
29
  sku: zod.z.string().describe("SKU/code of the product").nullable().optional(),
30
- name: zod.z.string().describe("Name of the product"),
30
+ name: zod.z.string().describe("Name of the product").nullable(),
31
31
  tags: zod.z.string().describe("Tags associated with the product").nullable().optional(),
32
32
  owner: zod.z.number().int().describe("ID of the user who owns the product").nullable().optional(),
33
33
  prices: zod.z.array(SalesmateAddProduct_PriceItemSchema).describe("List of price entries for the product"),
34
34
  currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),
35
- isActive: zod.z.boolean().describe("Whether the product is active for sales"),
35
+ isActive: zod.z.boolean().describe("Whether the product is active for sales").nullable(),
36
36
  description: zod.z.string().describe("Description of the product").nullable().optional()
37
37
  });
38
38
  const SalesmateAddProductOutput = zod.z.object({
39
39
  Data: SalesmateAddProduct_AddProductDataSchema.nullable(),
40
- Status: zod.z.enum(["success", "failure"]).describe("API call status.")
40
+ Status: zod.z.enum(["success", "failure"]).describe("API call status.").nullable()
41
41
  });
42
42
  const salesmateAddProduct = require_action.action("SALESMATE_ADD_PRODUCT", {
43
43
  slug: "salesmate-add-product",
@@ -1 +1 @@
1
- {"version":3,"file":"add-product.cjs","names":["z","action"],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateAddProductInput: z.ZodTypeAny = z.object({\n sku: z.string().describe(\"Unique SKU/code of the product\").optional(),\n name: z.string().describe(\"Name of the product\"),\n tags: z.string().describe(\"Comma-separated tags (max 5000 chars)\").optional(),\n owner: z.number().int().describe(\"Salesmate user ID that owns the product\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code, uppercase\"),\n isActive: z.boolean().default(true).describe(\"Whether the product is active for sales\").optional(),\n unitPrice: z.number().describe(\"Sale price of the product (non-negative)\"),\n directCost: z.number().describe(\"Optional direct cost of the product (non-negative)\").optional(),\n costPerUnit: z.number().describe(\"Optional cost per unit (non-negative)\").optional(),\n description: z.string().describe(\"Optional description (max 2000 chars)\").optional(),\n});\nconst SalesmateAddProduct_PriceItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of this price entry.\"),\n currency: z.string().describe(\"Currency code for this price.\"),\n isDefault: z.boolean().describe(\"Whether this price is the default one.\"),\n unitPrice: z.number().describe(\"Unit price for this product.\"),\n});\nconst SalesmateAddProduct_CurrencyInfoSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Currency code, e.g., USD.\"),\n value: z.string().describe(\"Value of the currency code.\"),\n displayLabel: z.string().describe(\"Currency display label, e.g., USD - $.\"),\n});\nconst SalesmateAddProduct_AddProductDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the product\"),\n sku: z.string().describe(\"SKU/code of the product\").nullable().optional(),\n name: z.string().describe(\"Name of the product\"),\n tags: z.string().describe(\"Tags associated with the product\").nullable().optional(),\n owner: z.number().int().describe(\"ID of the user who owns the product\").nullable().optional(),\n prices: z.array(SalesmateAddProduct_PriceItemSchema).describe(\"List of price entries for the product\"),\n currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),\n isActive: z.boolean().describe(\"Whether the product is active for sales\"),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n});\nexport const SalesmateAddProductOutput: z.ZodTypeAny = z.object({\n Data: SalesmateAddProduct_AddProductDataSchema.nullable(),\n Status: z.enum([\"success\", \"failure\"]).describe(\"API call status.\"),\n});\n\nexport const salesmateAddProduct = action(\"SALESMATE_ADD_PRODUCT\", {\n slug: \"salesmate-add-product\",\n name: \"Add Product\",\n description: \"Tool to add a new product. Use when you need to create a new product in Salesmate before referencing it (e.g., in deals or orders). Example: \\\"Add a product named 'Widget Pro' (SKU WPRO1) priced at 199.99 USD.\\\"\",\n input: SalesmateAddProductInput,\n output: SalesmateAddProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACzE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC7D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC/D,CAAC;AACD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACxD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC5E,CAAC;AACD,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,uCAAuC;CACrG,UAAU,uCAAuC,SAAS;CAC1D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAM,yCAAyC,SAAS;CACxD,QAAQA,IAAAA,EAAE,KAAK,CAAC,WAAW,SAAS,CAAC,CAAC,CAAC,SAAS,kBAAkB;AACpE,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-product.cjs","names":["z","action"],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateAddProductInput = z.object({\n sku: z.string().describe(\"Unique SKU/code of the product\").optional(),\n name: z.string().describe(\"Name of the product\"),\n tags: z.string().describe(\"Comma-separated tags (max 5000 chars)\").optional(),\n owner: z.number().int().describe(\"Salesmate user ID that owns the product\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code, uppercase\"),\n isActive: z.boolean().default(true).describe(\"Whether the product is active for sales\").optional(),\n unitPrice: z.number().describe(\"Sale price of the product (non-negative)\"),\n directCost: z.number().describe(\"Optional direct cost of the product (non-negative)\").optional(),\n costPerUnit: z.number().describe(\"Optional cost per unit (non-negative)\").optional(),\n description: z.string().describe(\"Optional description (max 2000 chars)\").optional(),\n});\nconst SalesmateAddProduct_PriceItemSchema = z.object({\n id: z.number().int().describe(\"ID of this price entry.\").nullable(),\n currency: z.string().describe(\"Currency code for this price.\").nullable(),\n isDefault: z.boolean().describe(\"Whether this price is the default one.\").nullable(),\n unitPrice: z.number().describe(\"Unit price for this product.\").nullable(),\n});\nconst SalesmateAddProduct_CurrencyInfoSchema = z.object({\n code: z.string().describe(\"Currency code, e.g., USD.\").nullable(),\n value: z.string().describe(\"Value of the currency code.\").nullable(),\n displayLabel: z.string().describe(\"Currency display label, e.g., USD - $.\").nullable(),\n});\nconst SalesmateAddProduct_AddProductDataSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the product\").nullable(),\n sku: z.string().describe(\"SKU/code of the product\").nullable().optional(),\n name: z.string().describe(\"Name of the product\").nullable(),\n tags: z.string().describe(\"Tags associated with the product\").nullable().optional(),\n owner: z.number().int().describe(\"ID of the user who owns the product\").nullable().optional(),\n prices: z.array(SalesmateAddProduct_PriceItemSchema).describe(\"List of price entries for the product\"),\n currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),\n isActive: z.boolean().describe(\"Whether the product is active for sales\").nullable(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n});\nexport const SalesmateAddProductOutput = z.object({\n Data: SalesmateAddProduct_AddProductDataSchema.nullable(),\n Status: z.enum([\"success\", \"failure\"]).describe(\"API call status.\").nullable(),\n});\n\nexport const salesmateAddProduct = action(\"SALESMATE_ADD_PRODUCT\", {\n slug: \"salesmate-add-product\",\n name: \"Add Product\",\n description: \"Tool to add a new product. Use when you need to create a new product in Salesmate before referencing it (e.g., in deals or orders). Example: \\\"Add a product named 'Widget Pro' (SKU WPRO1) priced at 199.99 USD.\\\"\",\n input: SalesmateAddProductInput,\n output: SalesmateAddProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACzE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC1E,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACvF,CAAC;AACD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,uCAAuC;CACrG,UAAU,uCAAuC,SAAS;CAC1D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAM,yCAAyC,SAAS;CACxD,QAAQA,IAAAA,EAAE,KAAK,CAAC,WAAW,SAAS,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AAC/E,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,56 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/add-product.d.ts
4
- declare const SalesmateAddProductInput: z.ZodTypeAny;
5
- declare const SalesmateAddProductOutput: z.ZodTypeAny;
6
- declare const salesmateAddProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateAddProductInput: z.ZodObject<{
5
+ sku: z.ZodOptional<z.ZodString>;
6
+ name: z.ZodString;
7
+ tags: z.ZodOptional<z.ZodString>;
8
+ owner: z.ZodOptional<z.ZodNumber>;
9
+ currency: z.ZodString;
10
+ isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
+ unitPrice: z.ZodNumber;
12
+ directCost: z.ZodOptional<z.ZodNumber>;
13
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const SalesmateAddProductOutput: z.ZodObject<{
17
+ Data: z.ZodNullable<z.ZodObject<{
18
+ id: z.ZodNullable<z.ZodNumber>;
19
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ name: z.ZodNullable<z.ZodString>;
21
+ tags: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ owner: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ prices: z.ZodArray<z.ZodObject<{
24
+ id: z.ZodNullable<z.ZodNumber>;
25
+ currency: z.ZodNullable<z.ZodString>;
26
+ isDefault: z.ZodNullable<z.ZodBoolean>;
27
+ unitPrice: z.ZodNullable<z.ZodNumber>;
28
+ }, z.core.$strip>>;
29
+ currency: z.ZodNullable<z.ZodObject<{
30
+ code: z.ZodNullable<z.ZodString>;
31
+ value: z.ZodNullable<z.ZodString>;
32
+ displayLabel: z.ZodNullable<z.ZodString>;
33
+ }, z.core.$strip>>;
34
+ isActive: z.ZodNullable<z.ZodBoolean>;
35
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ }, z.core.$strip>>;
37
+ Status: z.ZodNullable<z.ZodEnum<{
38
+ success: "success";
39
+ failure: "failure";
40
+ }>>;
41
+ }, z.core.$strip>;
42
+ declare const salesmateAddProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
43
+ name: string;
44
+ currency: string;
45
+ unitPrice: number;
46
+ sku?: string | undefined;
47
+ tags?: string | undefined;
48
+ owner?: number | undefined;
49
+ isActive?: boolean | undefined;
50
+ directCost?: number | undefined;
51
+ costPerUnit?: number | undefined;
52
+ description?: string | undefined;
53
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
54
  //#endregion
8
55
  export { salesmateAddProduct };
9
56
  //# sourceMappingURL=add-product.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-product.d.cts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAWvC;AAAA,cAuBW,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"add-product.d.cts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAkCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,56 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/add-product.d.ts
4
- declare const SalesmateAddProductInput: z.ZodTypeAny;
5
- declare const SalesmateAddProductOutput: z.ZodTypeAny;
6
- declare const salesmateAddProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateAddProductInput: z.ZodObject<{
5
+ sku: z.ZodOptional<z.ZodString>;
6
+ name: z.ZodString;
7
+ tags: z.ZodOptional<z.ZodString>;
8
+ owner: z.ZodOptional<z.ZodNumber>;
9
+ currency: z.ZodString;
10
+ isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
+ unitPrice: z.ZodNumber;
12
+ directCost: z.ZodOptional<z.ZodNumber>;
13
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const SalesmateAddProductOutput: z.ZodObject<{
17
+ Data: z.ZodNullable<z.ZodObject<{
18
+ id: z.ZodNullable<z.ZodNumber>;
19
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ name: z.ZodNullable<z.ZodString>;
21
+ tags: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ owner: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ prices: z.ZodArray<z.ZodObject<{
24
+ id: z.ZodNullable<z.ZodNumber>;
25
+ currency: z.ZodNullable<z.ZodString>;
26
+ isDefault: z.ZodNullable<z.ZodBoolean>;
27
+ unitPrice: z.ZodNullable<z.ZodNumber>;
28
+ }, z.core.$strip>>;
29
+ currency: z.ZodNullable<z.ZodObject<{
30
+ code: z.ZodNullable<z.ZodString>;
31
+ value: z.ZodNullable<z.ZodString>;
32
+ displayLabel: z.ZodNullable<z.ZodString>;
33
+ }, z.core.$strip>>;
34
+ isActive: z.ZodNullable<z.ZodBoolean>;
35
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ }, z.core.$strip>>;
37
+ Status: z.ZodNullable<z.ZodEnum<{
38
+ success: "success";
39
+ failure: "failure";
40
+ }>>;
41
+ }, z.core.$strip>;
42
+ declare const salesmateAddProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
43
+ name: string;
44
+ currency: string;
45
+ unitPrice: number;
46
+ sku?: string | undefined;
47
+ tags?: string | undefined;
48
+ owner?: number | undefined;
49
+ isActive?: boolean | undefined;
50
+ directCost?: number | undefined;
51
+ costPerUnit?: number | undefined;
52
+ description?: string | undefined;
53
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
54
  //#endregion
8
55
  export { salesmateAddProduct };
9
56
  //# sourceMappingURL=add-product.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-product.d.mts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAWvC;AAAA,cAuBW,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"add-product.d.mts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAkCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -14,25 +14,25 @@ const SalesmateAddProductInput = z.object({
14
14
  description: z.string().describe("Optional description (max 2000 chars)").optional()
15
15
  });
16
16
  const SalesmateAddProduct_PriceItemSchema = z.object({
17
- id: z.number().int().describe("ID of this price entry."),
18
- currency: z.string().describe("Currency code for this price."),
19
- isDefault: z.boolean().describe("Whether this price is the default one."),
20
- unitPrice: z.number().describe("Unit price for this product.")
17
+ id: z.number().int().describe("ID of this price entry.").nullable(),
18
+ currency: z.string().describe("Currency code for this price.").nullable(),
19
+ isDefault: z.boolean().describe("Whether this price is the default one.").nullable(),
20
+ unitPrice: z.number().describe("Unit price for this product.").nullable()
21
21
  });
22
22
  const SalesmateAddProduct_CurrencyInfoSchema = z.object({
23
- code: z.string().describe("Currency code, e.g., USD."),
24
- value: z.string().describe("Value of the currency code."),
25
- displayLabel: z.string().describe("Currency display label, e.g., USD - $.")
23
+ code: z.string().describe("Currency code, e.g., USD.").nullable(),
24
+ value: z.string().describe("Value of the currency code.").nullable(),
25
+ displayLabel: z.string().describe("Currency display label, e.g., USD - $.").nullable()
26
26
  });
27
27
  const SalesmateAddProduct_AddProductDataSchema = z.object({
28
- id: z.number().int().describe("Unique ID of the product"),
28
+ id: z.number().int().describe("Unique ID of the product").nullable(),
29
29
  sku: z.string().describe("SKU/code of the product").nullable().optional(),
30
- name: z.string().describe("Name of the product"),
30
+ name: z.string().describe("Name of the product").nullable(),
31
31
  tags: z.string().describe("Tags associated with the product").nullable().optional(),
32
32
  owner: z.number().int().describe("ID of the user who owns the product").nullable().optional(),
33
33
  prices: z.array(SalesmateAddProduct_PriceItemSchema).describe("List of price entries for the product"),
34
34
  currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),
35
- isActive: z.boolean().describe("Whether the product is active for sales"),
35
+ isActive: z.boolean().describe("Whether the product is active for sales").nullable(),
36
36
  description: z.string().describe("Description of the product").nullable().optional()
37
37
  });
38
38
  const salesmateAddProduct = action("SALESMATE_ADD_PRODUCT", {
@@ -42,7 +42,7 @@ const salesmateAddProduct = action("SALESMATE_ADD_PRODUCT", {
42
42
  input: SalesmateAddProductInput,
43
43
  output: z.object({
44
44
  Data: SalesmateAddProduct_AddProductDataSchema.nullable(),
45
- Status: z.enum(["success", "failure"]).describe("API call status.")
45
+ Status: z.enum(["success", "failure"]).describe("API call status.").nullable()
46
46
  })
47
47
  });
48
48
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"add-product.mjs","names":[],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateAddProductInput: z.ZodTypeAny = z.object({\n sku: z.string().describe(\"Unique SKU/code of the product\").optional(),\n name: z.string().describe(\"Name of the product\"),\n tags: z.string().describe(\"Comma-separated tags (max 5000 chars)\").optional(),\n owner: z.number().int().describe(\"Salesmate user ID that owns the product\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code, uppercase\"),\n isActive: z.boolean().default(true).describe(\"Whether the product is active for sales\").optional(),\n unitPrice: z.number().describe(\"Sale price of the product (non-negative)\"),\n directCost: z.number().describe(\"Optional direct cost of the product (non-negative)\").optional(),\n costPerUnit: z.number().describe(\"Optional cost per unit (non-negative)\").optional(),\n description: z.string().describe(\"Optional description (max 2000 chars)\").optional(),\n});\nconst SalesmateAddProduct_PriceItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of this price entry.\"),\n currency: z.string().describe(\"Currency code for this price.\"),\n isDefault: z.boolean().describe(\"Whether this price is the default one.\"),\n unitPrice: z.number().describe(\"Unit price for this product.\"),\n});\nconst SalesmateAddProduct_CurrencyInfoSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Currency code, e.g., USD.\"),\n value: z.string().describe(\"Value of the currency code.\"),\n displayLabel: z.string().describe(\"Currency display label, e.g., USD - $.\"),\n});\nconst SalesmateAddProduct_AddProductDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the product\"),\n sku: z.string().describe(\"SKU/code of the product\").nullable().optional(),\n name: z.string().describe(\"Name of the product\"),\n tags: z.string().describe(\"Tags associated with the product\").nullable().optional(),\n owner: z.number().int().describe(\"ID of the user who owns the product\").nullable().optional(),\n prices: z.array(SalesmateAddProduct_PriceItemSchema).describe(\"List of price entries for the product\"),\n currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),\n isActive: z.boolean().describe(\"Whether the product is active for sales\"),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n});\nexport const SalesmateAddProductOutput: z.ZodTypeAny = z.object({\n Data: SalesmateAddProduct_AddProductDataSchema.nullable(),\n Status: z.enum([\"success\", \"failure\"]).describe(\"API call status.\"),\n});\n\nexport const salesmateAddProduct = action(\"SALESMATE_ADD_PRODUCT\", {\n slug: \"salesmate-add-product\",\n name: \"Add Product\",\n description: \"Tool to add a new product. Use when you need to create a new product in Salesmate before referencing it (e.g., in deals or orders). Example: \\\"Add a product named 'Widget Pro' (SKU WPRO1) priced at 199.99 USD.\\\"\",\n input: SalesmateAddProductInput,\n output: SalesmateAddProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACzE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC7D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC/D,CAAC;AACD,MAAM,yCAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACxD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC5E,CAAC;AACD,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,uCAAuC;CACrG,UAAU,uCAAuC,SAAS;CAC1D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC;CACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC;AAMD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqD,EAAE,OAAO;EAC9D,MAAM,yCAAyC,SAAS;EACxD,QAAQ,EAAE,KAAK,CAAC,WAAW,SAAS,CAAC,CAAC,CAAC,SAAS,kBAAkB;CACpE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"add-product.mjs","names":[],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateAddProductInput = z.object({\n sku: z.string().describe(\"Unique SKU/code of the product\").optional(),\n name: z.string().describe(\"Name of the product\"),\n tags: z.string().describe(\"Comma-separated tags (max 5000 chars)\").optional(),\n owner: z.number().int().describe(\"Salesmate user ID that owns the product\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code, uppercase\"),\n isActive: z.boolean().default(true).describe(\"Whether the product is active for sales\").optional(),\n unitPrice: z.number().describe(\"Sale price of the product (non-negative)\"),\n directCost: z.number().describe(\"Optional direct cost of the product (non-negative)\").optional(),\n costPerUnit: z.number().describe(\"Optional cost per unit (non-negative)\").optional(),\n description: z.string().describe(\"Optional description (max 2000 chars)\").optional(),\n});\nconst SalesmateAddProduct_PriceItemSchema = z.object({\n id: z.number().int().describe(\"ID of this price entry.\").nullable(),\n currency: z.string().describe(\"Currency code for this price.\").nullable(),\n isDefault: z.boolean().describe(\"Whether this price is the default one.\").nullable(),\n unitPrice: z.number().describe(\"Unit price for this product.\").nullable(),\n});\nconst SalesmateAddProduct_CurrencyInfoSchema = z.object({\n code: z.string().describe(\"Currency code, e.g., USD.\").nullable(),\n value: z.string().describe(\"Value of the currency code.\").nullable(),\n displayLabel: z.string().describe(\"Currency display label, e.g., USD - $.\").nullable(),\n});\nconst SalesmateAddProduct_AddProductDataSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the product\").nullable(),\n sku: z.string().describe(\"SKU/code of the product\").nullable().optional(),\n name: z.string().describe(\"Name of the product\").nullable(),\n tags: z.string().describe(\"Tags associated with the product\").nullable().optional(),\n owner: z.number().int().describe(\"ID of the user who owns the product\").nullable().optional(),\n prices: z.array(SalesmateAddProduct_PriceItemSchema).describe(\"List of price entries for the product\"),\n currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),\n isActive: z.boolean().describe(\"Whether the product is active for sales\").nullable(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n});\nexport const SalesmateAddProductOutput = z.object({\n Data: SalesmateAddProduct_AddProductDataSchema.nullable(),\n Status: z.enum([\"success\", \"failure\"]).describe(\"API call status.\").nullable(),\n});\n\nexport const salesmateAddProduct = action(\"SALESMATE_ADD_PRODUCT\", {\n slug: \"salesmate-add-product\",\n name: \"Add Product\",\n description: \"Tool to add a new product. Use when you need to create a new product in Salesmate before referencing it (e.g., in deals or orders). Example: \\\"Add a product named 'Widget Pro' (SKU WPRO1) priced at 199.99 USD.\\\"\",\n input: SalesmateAddProductInput,\n output: SalesmateAddProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACzE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC1E,CAAC;AACD,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACvF,CAAC;AACD,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,uCAAuC;CACrG,UAAU,uCAAuC,SAAS;CAC1D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC;AAMD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,yCAAyC,SAAS;EACxD,QAAQ,EAAE,KAAK,CAAC,WAAW,SAAS,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC/E,CAOU;AACV,CAAC"}
@@ -22,10 +22,10 @@ const SalesmateCreateCompanyInput = zod.z.object({
22
22
  billingAddressLine1: zod.z.string().describe("Billing address line 1").optional(),
23
23
  billingAddressLine2: zod.z.string().describe("Billing address line 2").optional()
24
24
  }).describe("Parameters to create a new company in Salesmate CRM.");
25
- const SalesmateCreateCompany_CreateCompanyResponseDataSchema = zod.z.object({ id: zod.z.number().int().describe("Identifier of the created company") }).describe("Response Data containing the newly created company ID.");
25
+ const SalesmateCreateCompany_CreateCompanyResponseDataSchema = zod.z.object({ id: zod.z.number().int().describe("Identifier of the created company").nullable() }).describe("Response Data containing the newly created company ID.");
26
26
  const SalesmateCreateCompanyOutput = zod.z.object({
27
27
  Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),
28
- Status: zod.z.string().describe("Status of the API call, e.g., 'success'")
28
+ Status: zod.z.string().describe("Status of the API call, e.g., 'success'").nullable()
29
29
  }).describe("Response schema for create company API.");
30
30
  const salesmateCreateCompany = require_action.action("SALESMATE_CREATE_COMPANY", {
31
31
  slug: "salesmate-create-company",
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateCreateCompanyInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the company (max 255 chars)\"),\n tags: z.string().describe(\"Comma-separated tags for the company\").optional(),\n owner: z.number().int().describe(\"ID of the owner user for this company. If not provided, defaults to the authenticated user.\").optional(),\n phone: z.string().describe(\"Primary phone number of the company\").optional(),\n skypeId: z.string().describe(\"Skype ID of the company\").optional(),\n website: z.string().describe(\"Website URL of the company\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (uppercase)\").optional(),\n otherPhone: z.string().describe(\"Secondary phone number of the company\").optional(),\n billingCity: z.string().describe(\"Billing city\").optional(),\n description: z.string().describe(\"Description for the company\").optional(),\n billingState: z.string().describe(\"Billing state\").optional(),\n twitterHandle: z.string().describe(\"Twitter handle of the company\").optional(),\n billingCountry: z.string().describe(\"Billing country\").optional(),\n billingZipCode: z.string().describe(\"Billing ZIP/postal code\").optional(),\n facebookHandle: z.string().describe(\"Facebook profile or handle of the company\").optional(),\n linkedInHandle: z.string().describe(\"LinkedIn profile link of the company\").optional(),\n googlePlusHandle: z.string().describe(\"Google Plus profile link of the company\").optional(),\n billingAddressLine1: z.string().describe(\"Billing address line 1\").optional(),\n billingAddressLine2: z.string().describe(\"Billing address line 2\").optional(),\n}).describe(\"Parameters to create a new company in Salesmate CRM.\");\nconst SalesmateCreateCompany_CreateCompanyResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Identifier of the created company\"),\n}).describe(\"Response Data containing the newly created company ID.\");\nexport const SalesmateCreateCompanyOutput: z.ZodTypeAny = z.object({\n Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n Status: z.string().describe(\"Status of the API call, e.g., 'success'\"),\n}).describe(\"Response schema for create company API.\");\n\nexport const salesmateCreateCompany = action(\"SALESMATE_CREATE_COMPANY\", {\n slug: \"salesmate-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company in the Salesmate CRM. Use when you need to register a new organization.\",\n input: SalesmateCreateCompanyInput,\n output: SalesmateCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CAC1D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAC5D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAChE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACxE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC1F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5E,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,yDAAuEA,IAAAA,EAAE,OAAO,EACpF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,EACnE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAM,uDAAuD,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACvE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateCreateCompanyInput = z.object({\n name: z.string().describe(\"Name of the company (max 255 chars)\"),\n tags: z.string().describe(\"Comma-separated tags for the company\").optional(),\n owner: z.number().int().describe(\"ID of the owner user for this company. If not provided, defaults to the authenticated user.\").optional(),\n phone: z.string().describe(\"Primary phone number of the company\").optional(),\n skypeId: z.string().describe(\"Skype ID of the company\").optional(),\n website: z.string().describe(\"Website URL of the company\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (uppercase)\").optional(),\n otherPhone: z.string().describe(\"Secondary phone number of the company\").optional(),\n billingCity: z.string().describe(\"Billing city\").optional(),\n description: z.string().describe(\"Description for the company\").optional(),\n billingState: z.string().describe(\"Billing state\").optional(),\n twitterHandle: z.string().describe(\"Twitter handle of the company\").optional(),\n billingCountry: z.string().describe(\"Billing country\").optional(),\n billingZipCode: z.string().describe(\"Billing ZIP/postal code\").optional(),\n facebookHandle: z.string().describe(\"Facebook profile or handle of the company\").optional(),\n linkedInHandle: z.string().describe(\"LinkedIn profile link of the company\").optional(),\n googlePlusHandle: z.string().describe(\"Google Plus profile link of the company\").optional(),\n billingAddressLine1: z.string().describe(\"Billing address line 1\").optional(),\n billingAddressLine2: z.string().describe(\"Billing address line 2\").optional(),\n}).describe(\"Parameters to create a new company in Salesmate CRM.\");\nconst SalesmateCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.number().int().describe(\"Identifier of the created company\").nullable(),\n}).describe(\"Response Data containing the newly created company ID.\");\nexport const SalesmateCreateCompanyOutput = z.object({\n Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n Status: z.string().describe(\"Status of the API call, e.g., 'success'\").nullable(),\n}).describe(\"Response schema for create company API.\");\n\nexport const salesmateCreateCompany = action(\"SALESMATE_CREATE_COMPANY\", {\n slug: \"salesmate-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company in the Salesmate CRM. Use when you need to register a new organization.\",\n input: SalesmateCreateCompanyInput,\n output: SalesmateCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CAC1D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAC5D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAChE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACxE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC1F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5E,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,yDAAyDA,IAAAA,EAAE,OAAO,EACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,EAC9E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,uDAAuD,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,54 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-company.d.ts
4
- declare const SalesmateCreateCompanyInput: z.ZodTypeAny;
5
- declare const SalesmateCreateCompanyOutput: z.ZodTypeAny;
6
- declare const salesmateCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateCreateCompanyInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ tags: z.ZodOptional<z.ZodString>;
7
+ owner: z.ZodOptional<z.ZodNumber>;
8
+ phone: z.ZodOptional<z.ZodString>;
9
+ skypeId: z.ZodOptional<z.ZodString>;
10
+ website: z.ZodOptional<z.ZodString>;
11
+ currency: z.ZodOptional<z.ZodString>;
12
+ otherPhone: z.ZodOptional<z.ZodString>;
13
+ billingCity: z.ZodOptional<z.ZodString>;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ billingState: z.ZodOptional<z.ZodString>;
16
+ twitterHandle: z.ZodOptional<z.ZodString>;
17
+ billingCountry: z.ZodOptional<z.ZodString>;
18
+ billingZipCode: z.ZodOptional<z.ZodString>;
19
+ facebookHandle: z.ZodOptional<z.ZodString>;
20
+ linkedInHandle: z.ZodOptional<z.ZodString>;
21
+ googlePlusHandle: z.ZodOptional<z.ZodString>;
22
+ billingAddressLine1: z.ZodOptional<z.ZodString>;
23
+ billingAddressLine2: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strip>;
25
+ declare const SalesmateCreateCompanyOutput: z.ZodObject<{
26
+ Data: z.ZodNullable<z.ZodObject<{
27
+ id: z.ZodNullable<z.ZodNumber>;
28
+ }, z.core.$strip>>;
29
+ Status: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>;
31
+ declare const salesmateCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ name: string;
33
+ tags?: string | undefined;
34
+ owner?: number | undefined;
35
+ phone?: string | undefined;
36
+ skypeId?: string | undefined;
37
+ website?: string | undefined;
38
+ currency?: string | undefined;
39
+ otherPhone?: string | undefined;
40
+ billingCity?: string | undefined;
41
+ description?: string | undefined;
42
+ billingState?: string | undefined;
43
+ twitterHandle?: string | undefined;
44
+ billingCountry?: string | undefined;
45
+ billingZipCode?: string | undefined;
46
+ facebookHandle?: string | undefined;
47
+ linkedInHandle?: string | undefined;
48
+ googlePlusHandle?: string | undefined;
49
+ billingAddressLine1?: string | undefined;
50
+ billingAddressLine2?: string | undefined;
51
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
52
  //#endregion
8
53
  export { salesmateCreateCompany };
9
54
  //# sourceMappingURL=create-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAoBuB;AAAA,cAItD,4BAAA,EAA8B,CAAA,CAAE,UAGS;AAAA,cAEzC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAwB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,54 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-company.d.ts
4
- declare const SalesmateCreateCompanyInput: z.ZodTypeAny;
5
- declare const SalesmateCreateCompanyOutput: z.ZodTypeAny;
6
- declare const salesmateCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateCreateCompanyInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ tags: z.ZodOptional<z.ZodString>;
7
+ owner: z.ZodOptional<z.ZodNumber>;
8
+ phone: z.ZodOptional<z.ZodString>;
9
+ skypeId: z.ZodOptional<z.ZodString>;
10
+ website: z.ZodOptional<z.ZodString>;
11
+ currency: z.ZodOptional<z.ZodString>;
12
+ otherPhone: z.ZodOptional<z.ZodString>;
13
+ billingCity: z.ZodOptional<z.ZodString>;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ billingState: z.ZodOptional<z.ZodString>;
16
+ twitterHandle: z.ZodOptional<z.ZodString>;
17
+ billingCountry: z.ZodOptional<z.ZodString>;
18
+ billingZipCode: z.ZodOptional<z.ZodString>;
19
+ facebookHandle: z.ZodOptional<z.ZodString>;
20
+ linkedInHandle: z.ZodOptional<z.ZodString>;
21
+ googlePlusHandle: z.ZodOptional<z.ZodString>;
22
+ billingAddressLine1: z.ZodOptional<z.ZodString>;
23
+ billingAddressLine2: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strip>;
25
+ declare const SalesmateCreateCompanyOutput: z.ZodObject<{
26
+ Data: z.ZodNullable<z.ZodObject<{
27
+ id: z.ZodNullable<z.ZodNumber>;
28
+ }, z.core.$strip>>;
29
+ Status: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strip>;
31
+ declare const salesmateCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ name: string;
33
+ tags?: string | undefined;
34
+ owner?: number | undefined;
35
+ phone?: string | undefined;
36
+ skypeId?: string | undefined;
37
+ website?: string | undefined;
38
+ currency?: string | undefined;
39
+ otherPhone?: string | undefined;
40
+ billingCity?: string | undefined;
41
+ description?: string | undefined;
42
+ billingState?: string | undefined;
43
+ twitterHandle?: string | undefined;
44
+ billingCountry?: string | undefined;
45
+ billingZipCode?: string | undefined;
46
+ facebookHandle?: string | undefined;
47
+ linkedInHandle?: string | undefined;
48
+ googlePlusHandle?: string | undefined;
49
+ billingAddressLine1?: string | undefined;
50
+ billingAddressLine2?: string | undefined;
51
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
52
  //#endregion
8
53
  export { salesmateCreateCompany };
9
54
  //# sourceMappingURL=create-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAoBuB;AAAA,cAItD,4BAAA,EAA8B,CAAA,CAAE,UAGS;AAAA,cAEzC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAwB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
@@ -22,7 +22,7 @@ const SalesmateCreateCompanyInput = z.object({
22
22
  billingAddressLine1: z.string().describe("Billing address line 1").optional(),
23
23
  billingAddressLine2: z.string().describe("Billing address line 2").optional()
24
24
  }).describe("Parameters to create a new company in Salesmate CRM.");
25
- const SalesmateCreateCompany_CreateCompanyResponseDataSchema = z.object({ id: z.number().int().describe("Identifier of the created company") }).describe("Response Data containing the newly created company ID.");
25
+ const SalesmateCreateCompany_CreateCompanyResponseDataSchema = z.object({ id: z.number().int().describe("Identifier of the created company").nullable() }).describe("Response Data containing the newly created company ID.");
26
26
  const salesmateCreateCompany = action("SALESMATE_CREATE_COMPANY", {
27
27
  slug: "salesmate-create-company",
28
28
  name: "Create Company",
@@ -30,7 +30,7 @@ const salesmateCreateCompany = action("SALESMATE_CREATE_COMPANY", {
30
30
  input: SalesmateCreateCompanyInput,
31
31
  output: z.object({
32
32
  Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),
33
- Status: z.string().describe("Status of the API call, e.g., 'success'")
33
+ Status: z.string().describe("Status of the API call, e.g., 'success'").nullable()
34
34
  }).describe("Response schema for create company API.")
35
35
  });
36
36
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateCreateCompanyInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the company (max 255 chars)\"),\n tags: z.string().describe(\"Comma-separated tags for the company\").optional(),\n owner: z.number().int().describe(\"ID of the owner user for this company. If not provided, defaults to the authenticated user.\").optional(),\n phone: z.string().describe(\"Primary phone number of the company\").optional(),\n skypeId: z.string().describe(\"Skype ID of the company\").optional(),\n website: z.string().describe(\"Website URL of the company\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (uppercase)\").optional(),\n otherPhone: z.string().describe(\"Secondary phone number of the company\").optional(),\n billingCity: z.string().describe(\"Billing city\").optional(),\n description: z.string().describe(\"Description for the company\").optional(),\n billingState: z.string().describe(\"Billing state\").optional(),\n twitterHandle: z.string().describe(\"Twitter handle of the company\").optional(),\n billingCountry: z.string().describe(\"Billing country\").optional(),\n billingZipCode: z.string().describe(\"Billing ZIP/postal code\").optional(),\n facebookHandle: z.string().describe(\"Facebook profile or handle of the company\").optional(),\n linkedInHandle: z.string().describe(\"LinkedIn profile link of the company\").optional(),\n googlePlusHandle: z.string().describe(\"Google Plus profile link of the company\").optional(),\n billingAddressLine1: z.string().describe(\"Billing address line 1\").optional(),\n billingAddressLine2: z.string().describe(\"Billing address line 2\").optional(),\n}).describe(\"Parameters to create a new company in Salesmate CRM.\");\nconst SalesmateCreateCompany_CreateCompanyResponseDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Identifier of the created company\"),\n}).describe(\"Response Data containing the newly created company ID.\");\nexport const SalesmateCreateCompanyOutput: z.ZodTypeAny = z.object({\n Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n Status: z.string().describe(\"Status of the API call, e.g., 'success'\"),\n}).describe(\"Response schema for create company API.\");\n\nexport const salesmateCreateCompany = action(\"SALESMATE_CREATE_COMPANY\", {\n slug: \"salesmate-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company in the Salesmate CRM. Use when you need to register a new organization.\",\n input: SalesmateCreateCompanyInput,\n output: SalesmateCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CAC1D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAC5D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAChE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACxE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC1F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5E,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,yDAAuE,EAAE,OAAO,EACpF,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,EACnE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAMpE,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,MAAM,uDAAuD,SAAS;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACvE,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateCreateCompanyInput = z.object({\n name: z.string().describe(\"Name of the company (max 255 chars)\"),\n tags: z.string().describe(\"Comma-separated tags for the company\").optional(),\n owner: z.number().int().describe(\"ID of the owner user for this company. If not provided, defaults to the authenticated user.\").optional(),\n phone: z.string().describe(\"Primary phone number of the company\").optional(),\n skypeId: z.string().describe(\"Skype ID of the company\").optional(),\n website: z.string().describe(\"Website URL of the company\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (uppercase)\").optional(),\n otherPhone: z.string().describe(\"Secondary phone number of the company\").optional(),\n billingCity: z.string().describe(\"Billing city\").optional(),\n description: z.string().describe(\"Description for the company\").optional(),\n billingState: z.string().describe(\"Billing state\").optional(),\n twitterHandle: z.string().describe(\"Twitter handle of the company\").optional(),\n billingCountry: z.string().describe(\"Billing country\").optional(),\n billingZipCode: z.string().describe(\"Billing ZIP/postal code\").optional(),\n facebookHandle: z.string().describe(\"Facebook profile or handle of the company\").optional(),\n linkedInHandle: z.string().describe(\"LinkedIn profile link of the company\").optional(),\n googlePlusHandle: z.string().describe(\"Google Plus profile link of the company\").optional(),\n billingAddressLine1: z.string().describe(\"Billing address line 1\").optional(),\n billingAddressLine2: z.string().describe(\"Billing address line 2\").optional(),\n}).describe(\"Parameters to create a new company in Salesmate CRM.\");\nconst SalesmateCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.number().int().describe(\"Identifier of the created company\").nullable(),\n}).describe(\"Response Data containing the newly created company ID.\");\nexport const SalesmateCreateCompanyOutput = z.object({\n Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n Status: z.string().describe(\"Status of the API call, e.g., 'success'\").nullable(),\n}).describe(\"Response schema for create company API.\");\n\nexport const salesmateCreateCompany = action(\"SALESMATE_CREATE_COMPANY\", {\n slug: \"salesmate-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company in the Salesmate CRM. Use when you need to register a new organization.\",\n input: SalesmateCreateCompanyInput,\n output: SalesmateCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CAC1D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAC5D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAChE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACxE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC1F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5E,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,yDAAyD,EAAE,OAAO,EACtE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,EAC9E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAMpE,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,uDAAuD,SAAS;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
@@ -4,7 +4,7 @@ let zod = require("zod");
4
4
  const SalesmateDeleteProductInput = zod.z.object({ product_id: zod.z.number().int().describe("Unique identifier of the product to delete") }).describe("Request model to delete a product by its ID.");
5
5
  const SalesmateDeleteProductOutput = zod.z.object({
6
6
  Data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty object on successful deletion"),
7
- Status: zod.z.string().describe("Status of the API call, 'success' or 'failure'")
7
+ Status: zod.z.string().describe("Status of the API call, 'success' or 'failure'").nullable()
8
8
  }).describe("Response schema for delete product API.");
9
9
  const salesmateDeleteProduct = require_action.action("SALESMATE_DELETE_PRODUCT", {
10
10
  slug: "salesmate-delete-product",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.cjs","names":["z","action"],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateDeleteProductInput: z.ZodTypeAny = z.object({\n product_id: z.number().int().describe(\"Unique identifier of the product to delete\"),\n}).describe(\"Request model to delete a product by its ID.\");\nexport const SalesmateDeleteProductOutput: z.ZodTypeAny = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Empty object on successful deletion\"),\n Status: z.string().describe(\"Status of the API call, 'success' or 'failure'\"),\n}).describe(\"Response schema for delete product API.\");\n\nexport const salesmateDeleteProduct = action(\"SALESMATE_DELETE_PRODUCT\", {\n slug: \"salesmate-delete-product\",\n name: \"Delete Product\",\n description: \"Tool to delete a product by ProductId. Use when you need to remove a product from the catalog after confirming the correct ProductId.\",\n input: SalesmateDeleteProductInput,\n output: SalesmateDeleteProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;AAC9E,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-product.cjs","names":["z","action"],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateDeleteProductInput = z.object({\n product_id: z.number().int().describe(\"Unique identifier of the product to delete\"),\n}).describe(\"Request model to delete a product by its ID.\");\nexport const SalesmateDeleteProductOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Empty object on successful deletion\"),\n Status: z.string().describe(\"Status of the API call, 'success' or 'failure'\").nullable(),\n}).describe(\"Response schema for delete product API.\");\n\nexport const salesmateDeleteProduct = action(\"SALESMATE_DELETE_PRODUCT\", {\n slug: \"salesmate-delete-product\",\n name: \"Delete Product\",\n description: \"Tool to delete a product by ProductId. Use when you need to remove a product from the catalog after confirming the correct ProductId.\",\n input: SalesmateDeleteProductInput,\n output: SalesmateDeleteProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-product.d.ts
4
- declare const SalesmateDeleteProductInput: z.ZodTypeAny;
5
- declare const SalesmateDeleteProductOutput: z.ZodTypeAny;
6
- declare const salesmateDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateDeleteProductInput: z.ZodObject<{
5
+ product_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SalesmateDeleteProductOutput: z.ZodObject<{
8
+ Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
+ Status: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ declare const salesmateDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ product_id: number;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { salesmateDeleteProduct };
9
16
  //# sourceMappingURL=delete-product.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.d.cts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEe;AAAA,cAC9C,4BAAA,EAA8B,CAAA,CAAE,UAGS;AAAA,cAEzC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-product.d.cts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-product.d.ts
4
- declare const SalesmateDeleteProductInput: z.ZodTypeAny;
5
- declare const SalesmateDeleteProductOutput: z.ZodTypeAny;
6
- declare const salesmateDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateDeleteProductInput: z.ZodObject<{
5
+ product_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SalesmateDeleteProductOutput: z.ZodObject<{
8
+ Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
+ Status: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ declare const salesmateDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ product_id: number;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { salesmateDeleteProduct };
9
16
  //# sourceMappingURL=delete-product.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.d.mts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEe;AAAA,cAC9C,4BAAA,EAA8B,CAAA,CAAE,UAGS;AAAA,cAEzC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-product.d.mts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
@@ -7,7 +7,7 @@ const salesmateDeleteProduct = action("SALESMATE_DELETE_PRODUCT", {
7
7
  input: z.object({ product_id: z.number().int().describe("Unique identifier of the product to delete") }).describe("Request model to delete a product by its ID."),
8
8
  output: z.object({
9
9
  Data: z.record(z.string(), z.unknown()).describe("Empty object on successful deletion"),
10
- Status: z.string().describe("Status of the API call, 'success' or 'failure'")
10
+ Status: z.string().describe("Status of the API call, 'success' or 'failure'").nullable()
11
11
  }).describe("Response schema for delete product API.")
12
12
  });
13
13
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.mjs","names":[],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateDeleteProductInput: z.ZodTypeAny = z.object({\n product_id: z.number().int().describe(\"Unique identifier of the product to delete\"),\n}).describe(\"Request model to delete a product by its ID.\");\nexport const SalesmateDeleteProductOutput: z.ZodTypeAny = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Empty object on successful deletion\"),\n Status: z.string().describe(\"Status of the API call, 'success' or 'failure'\"),\n}).describe(\"Response schema for delete product API.\");\n\nexport const salesmateDeleteProduct = action(\"SALESMATE_DELETE_PRODUCT\", {\n slug: \"salesmate-delete-product\",\n name: \"Delete Product\",\n description: \"Tool to delete a product by ProductId. Use when you need to remove a product from the catalog after confirming the correct ProductId.\",\n input: SalesmateDeleteProductInput,\n output: SalesmateDeleteProductOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO,EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,8CAUH;CACP,QAVwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-product.mjs","names":[],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateDeleteProductInput = z.object({\n product_id: z.number().int().describe(\"Unique identifier of the product to delete\"),\n}).describe(\"Request model to delete a product by its ID.\");\nexport const SalesmateDeleteProductOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Empty object on successful deletion\"),\n Status: z.string().describe(\"Status of the API call, 'success' or 'failure'\").nullable(),\n}).describe(\"Response schema for delete product API.\");\n\nexport const salesmateDeleteProduct = action(\"SALESMATE_DELETE_PRODUCT\", {\n slug: \"salesmate-delete-product\",\n name: \"Delete Product\",\n description: \"Tool to delete a product by ProductId. Use when you need to remove a product from the catalog after confirming the correct ProductId.\",\n input: SalesmateDeleteProductInput,\n output: SalesmateDeleteProductOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO,EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,8CAUH;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
@@ -3,12 +3,12 @@ let zod = require("zod");
3
3
  //#region src/actions/get-active-users.ts
4
4
  const SalesmateGetActiveUsersInput = zod.z.object({}).describe("Request model for retrieving active users.\nNo parameters required; the status filter is always 'active'.");
5
5
  const SalesmateGetActiveUsers_UserSchema = zod.z.object({
6
- id: zod.z.number().int().describe("Unique identifier of the user"),
7
- role: zod.z.string().describe("Role of the user within the organization"),
8
- email: zod.z.string().describe("Email address of the user"),
9
- status: zod.z.string().describe("Current status of the user"),
10
- lastName: zod.z.string().describe("Last name of the user"),
11
- firstName: zod.z.string().describe("First name of the user")
6
+ id: zod.z.number().int().describe("Unique identifier of the user").nullable(),
7
+ role: zod.z.string().describe("Role of the user within the organization").nullable(),
8
+ email: zod.z.string().describe("Email address of the user").nullable(),
9
+ status: zod.z.string().describe("Current status of the user").nullable(),
10
+ lastName: zod.z.string().describe("Last name of the user").nullable(),
11
+ firstName: zod.z.string().describe("First name of the user").nullable()
12
12
  });
13
13
  const SalesmateGetActiveUsersOutput = zod.z.object({ users: zod.z.array(SalesmateGetActiveUsers_UserSchema).describe("List of active users returned by the Salesmate API") });
14
14
  const salesmateGetActiveUsers = require_action.action("SALESMATE_GET_ACTIVE_USERS", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-active-users.cjs","names":["z","action"],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetActiveUsersInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\"),\n role: z.string().describe(\"Role of the user within the organization\"),\n email: z.string().describe(\"Email address of the user\"),\n status: z.string().describe(\"Current status of the user\"),\n lastName: z.string().describe(\"Last name of the user\"),\n firstName: z.string().describe(\"First name of the user\"),\n});\nexport const SalesmateGetActiveUsersOutput: z.ZodTypeAny = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n});\n\nexport const salesmateGetActiveUsers = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC3L,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACzD,CAAC;AACD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAAC;AAED,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-active-users.cjs","names":["z","action"],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetActiveUsersInput = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n role: z.string().describe(\"Role of the user within the organization\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n lastName: z.string().describe(\"Last name of the user\").nullable(),\n firstName: z.string().describe(\"First name of the user\").nullable(),\n});\nexport const SalesmateGetActiveUsersOutput = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n});\n\nexport const salesmateGetActiveUsers = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC7K,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACpE,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAAC;AAED,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-active-users.d.ts
4
- declare const SalesmateGetActiveUsersInput: z.ZodTypeAny;
5
- declare const SalesmateGetActiveUsersOutput: z.ZodTypeAny;
6
- declare const salesmateGetActiveUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateGetActiveUsersInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SalesmateGetActiveUsersOutput: z.ZodObject<{
6
+ users: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ role: z.ZodNullable<z.ZodString>;
9
+ email: z.ZodNullable<z.ZodString>;
10
+ status: z.ZodNullable<z.ZodString>;
11
+ lastName: z.ZodNullable<z.ZodString>;
12
+ firstName: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$strip>>;
14
+ }, z.core.$strip>;
15
+ declare const salesmateGetActiveUsers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { salesmateGetActiveUsers };
9
18
  //# sourceMappingURL=get-active-users.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-active-users.d.cts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAA+I;AAAA,cAS/K,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cAEW,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-active-users.d.cts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-active-users.d.ts
4
- declare const SalesmateGetActiveUsersInput: z.ZodTypeAny;
5
- declare const SalesmateGetActiveUsersOutput: z.ZodTypeAny;
6
- declare const salesmateGetActiveUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateGetActiveUsersInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SalesmateGetActiveUsersOutput: z.ZodObject<{
6
+ users: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ role: z.ZodNullable<z.ZodString>;
9
+ email: z.ZodNullable<z.ZodString>;
10
+ status: z.ZodNullable<z.ZodString>;
11
+ lastName: z.ZodNullable<z.ZodString>;
12
+ firstName: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$strip>>;
14
+ }, z.core.$strip>;
15
+ declare const salesmateGetActiveUsers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { salesmateGetActiveUsers };
9
18
  //# sourceMappingURL=get-active-users.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-active-users.d.mts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAA+I;AAAA,cAS/K,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cAEW,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-active-users.d.mts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,12 +3,12 @@ import { z } from "zod";
3
3
  //#region src/actions/get-active-users.ts
4
4
  const SalesmateGetActiveUsersInput = z.object({}).describe("Request model for retrieving active users.\nNo parameters required; the status filter is always 'active'.");
5
5
  const SalesmateGetActiveUsers_UserSchema = z.object({
6
- id: z.number().int().describe("Unique identifier of the user"),
7
- role: z.string().describe("Role of the user within the organization"),
8
- email: z.string().describe("Email address of the user"),
9
- status: z.string().describe("Current status of the user"),
10
- lastName: z.string().describe("Last name of the user"),
11
- firstName: z.string().describe("First name of the user")
6
+ id: z.number().int().describe("Unique identifier of the user").nullable(),
7
+ role: z.string().describe("Role of the user within the organization").nullable(),
8
+ email: z.string().describe("Email address of the user").nullable(),
9
+ status: z.string().describe("Current status of the user").nullable(),
10
+ lastName: z.string().describe("Last name of the user").nullable(),
11
+ firstName: z.string().describe("First name of the user").nullable()
12
12
  });
13
13
  const salesmateGetActiveUsers = action("SALESMATE_GET_ACTIVE_USERS", {
14
14
  slug: "salesmate-get-active-users",
@@ -1 +1 @@
1
- {"version":3,"file":"get-active-users.mjs","names":[],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetActiveUsersInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\"),\n role: z.string().describe(\"Role of the user within the organization\"),\n email: z.string().describe(\"Email address of the user\"),\n status: z.string().describe(\"Current status of the user\"),\n lastName: z.string().describe(\"Last name of the user\"),\n firstName: z.string().describe(\"First name of the user\"),\n});\nexport const SalesmateGetActiveUsersOutput: z.ZodTypeAny = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n});\n\nexport const salesmateGetActiveUsers = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC3L,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACzD,CAAC;AAKD,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-active-users.mjs","names":[],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetActiveUsersInput = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n role: z.string().describe(\"Role of the user within the organization\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n lastName: z.string().describe(\"Last name of the user\").nullable(),\n firstName: z.string().describe(\"First name of the user\").nullable(),\n});\nexport const SalesmateGetActiveUsersOutput = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n});\n\nexport const salesmateGetActiveUsers = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC7K,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACpE,CAAC;AAKD,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAOU;AACV,CAAC"}
@@ -4,7 +4,7 @@ let zod = require("zod");
4
4
  const SalesmateGetCompanyInput = zod.z.object({ company_id: zod.z.number().int().describe("Unique identifier of the company to retrieve") }).describe("Parameters to retrieve a specific company by its ID.");
5
5
  const SalesmateGetCompanyOutput = zod.z.object({
6
6
  Data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Detailed information of the requested company"),
7
- Status: zod.z.string().describe("API response status, e.g., 'success'")
7
+ Status: zod.z.string().describe("API response status, e.g., 'success'").nullable()
8
8
  }).describe("Response schema for retrieving a company. Contains status and data with company details.");
9
9
  const salesmateGetCompany = require_action.action("SALESMATE_GET_COMPANY", {
10
10
  slug: "salesmate-get-company",
@@ -1 +1 @@
1
- {"version":3,"file":"get-company.cjs","names":["z","action"],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetCompanyInput: z.ZodTypeAny = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput: z.ZodTypeAny = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\"),\n}).describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACpE,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAEtG,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-company.cjs","names":["z","action"],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetCompanyInput = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\").nullable(),\n}).describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAEtG,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-company.d.ts
4
- declare const SalesmateGetCompanyInput: z.ZodTypeAny;
5
- declare const SalesmateGetCompanyOutput: z.ZodTypeAny;
6
- declare const salesmateGetCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateGetCompanyInput: z.ZodObject<{
5
+ company_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SalesmateGetCompanyOutput: z.ZodObject<{
8
+ Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
+ Status: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ declare const salesmateGetCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ company_id: number;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { salesmateGetCompany };
9
16
  //# sourceMappingURL=get-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-company.d.cts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAE0B;AAAA,cACtD,yBAAA,EAA2B,CAAA,CAAE,UAG6D;AAAA,cAE1F,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-company.d.cts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-company.d.ts
4
- declare const SalesmateGetCompanyInput: z.ZodTypeAny;
5
- declare const SalesmateGetCompanyOutput: z.ZodTypeAny;
6
- declare const salesmateGetCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateGetCompanyInput: z.ZodObject<{
5
+ company_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SalesmateGetCompanyOutput: z.ZodObject<{
8
+ Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
+ Status: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ declare const salesmateGetCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ company_id: number;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { salesmateGetCompany };
9
16
  //# sourceMappingURL=get-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-company.d.mts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAE0B;AAAA,cACtD,yBAAA,EAA2B,CAAA,CAAE,UAG6D;AAAA,cAE1F,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-company.d.mts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -7,7 +7,7 @@ const salesmateGetCompany = action("SALESMATE_GET_COMPANY", {
7
7
  input: z.object({ company_id: z.number().int().describe("Unique identifier of the company to retrieve") }).describe("Parameters to retrieve a specific company by its ID."),
8
8
  output: z.object({
9
9
  Data: z.record(z.string(), z.unknown()).describe("Detailed information of the requested company"),
10
- Status: z.string().describe("API response status, e.g., 'success'")
10
+ Status: z.string().describe("API response status, e.g., 'success'").nullable()
11
11
  }).describe("Response schema for retrieving a company. Contains status and data with company details.")
12
12
  });
13
13
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-company.mjs","names":[],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetCompanyInput: z.ZodTypeAny = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput: z.ZodTypeAny = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\"),\n}).describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoD,EAAE,OAAO,EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,sDAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,CAAC,CAAC,CAAC,SAAS,0FAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-company.mjs","names":[],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetCompanyInput = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\").nullable(),\n}).describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,sDAUH;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,0FAOF;AACV,CAAC"}
@@ -3,10 +3,10 @@ let zod = require("zod");
3
3
  //#region src/actions/list-modules.ts
4
4
  const SalesmateListModulesInput = zod.z.object({}).describe("Request model for listing modules. No parameters required; lists all modules available.");
5
5
  const SalesmateListModules_ModuleMetadataSchema = zod.z.object({
6
- id: zod.z.number().int().describe("Unique identifier of the module"),
7
- name: zod.z.string().describe("Name of the module"),
8
- api_name: zod.z.string().describe("API endpoint name for the module"),
9
- description: zod.z.string().describe("Description of the module")
6
+ id: zod.z.number().int().describe("Unique identifier of the module").nullable(),
7
+ name: zod.z.string().describe("Name of the module").nullable(),
8
+ api_name: zod.z.string().describe("API endpoint name for the module").nullable(),
9
+ description: zod.z.string().describe("Description of the module").nullable()
10
10
  });
11
11
  const SalesmateListModulesOutput = zod.z.object({ modules: zod.z.array(SalesmateListModules_ModuleMetadataSchema).describe("List of module metadata objects") });
12
12
  const salesmateListModules = require_action.action("SALESMATE_LIST_MODULES", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-modules.cjs","names":["z","action"],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateListModulesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\"),\n name: z.string().describe(\"Name of the module\"),\n api_name: z.string().describe(\"API endpoint name for the module\"),\n description: z.string().describe(\"Description of the module\"),\n});\nexport const SalesmateListModulesOutput: z.ZodTypeAny = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n});\n\nexport const salesmateListModules = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACtK,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AAC9D,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iCAAiC,EACxG,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-modules.cjs","names":["z","action"],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateListModulesInput = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\").nullable(),\n name: z.string().describe(\"Name of the module\").nullable(),\n api_name: z.string().describe(\"API endpoint name for the module\").nullable(),\n description: z.string().describe(\"Description of the module\").nullable(),\n});\nexport const SalesmateListModulesOutput = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n});\n\nexport const salesmateListModules = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACxJ,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACzE,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iCAAiC,EACxG,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-modules.d.ts
4
- declare const SalesmateListModulesInput: z.ZodTypeAny;
5
- declare const SalesmateListModulesOutput: z.ZodTypeAny;
6
- declare const salesmateListModules: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateListModulesInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SalesmateListModulesOutput: z.ZodObject<{
6
+ modules: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ api_name: z.ZodNullable<z.ZodString>;
10
+ description: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const salesmateListModules: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { salesmateListModules };
9
16
  //# sourceMappingURL=list-modules.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-modules.d.cts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAA6H;AAAA,cAO1J,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-modules.d.cts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-modules.d.ts
4
- declare const SalesmateListModulesInput: z.ZodTypeAny;
5
- declare const SalesmateListModulesOutput: z.ZodTypeAny;
6
- declare const salesmateListModules: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateListModulesInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SalesmateListModulesOutput: z.ZodObject<{
6
+ modules: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ api_name: z.ZodNullable<z.ZodString>;
10
+ description: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const salesmateListModules: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { salesmateListModules };
9
16
  //# sourceMappingURL=list-modules.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-modules.d.mts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAA6H;AAAA,cAO1J,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-modules.d.mts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,10 +3,10 @@ import { z } from "zod";
3
3
  //#region src/actions/list-modules.ts
4
4
  const SalesmateListModulesInput = z.object({}).describe("Request model for listing modules. No parameters required; lists all modules available.");
5
5
  const SalesmateListModules_ModuleMetadataSchema = z.object({
6
- id: z.number().int().describe("Unique identifier of the module"),
7
- name: z.string().describe("Name of the module"),
8
- api_name: z.string().describe("API endpoint name for the module"),
9
- description: z.string().describe("Description of the module")
6
+ id: z.number().int().describe("Unique identifier of the module").nullable(),
7
+ name: z.string().describe("Name of the module").nullable(),
8
+ api_name: z.string().describe("API endpoint name for the module").nullable(),
9
+ description: z.string().describe("Description of the module").nullable()
10
10
  });
11
11
  const salesmateListModules = action("SALESMATE_LIST_MODULES", {
12
12
  slug: "salesmate-list-modules",
@@ -1 +1 @@
1
- {"version":3,"file":"list-modules.mjs","names":[],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateListModulesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\"),\n name: z.string().describe(\"Name of the module\"),\n api_name: z.string().describe(\"API endpoint name for the module\"),\n description: z.string().describe(\"Description of the module\"),\n});\nexport const SalesmateListModulesOutput: z.ZodTypeAny = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n});\n\nexport const salesmateListModules = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACtK,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AAC9D,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iCAAiC,EACxG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-modules.mjs","names":[],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateListModulesInput = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\").nullable(),\n name: z.string().describe(\"Name of the module\").nullable(),\n api_name: z.string().describe(\"API endpoint name for the module\").nullable(),\n description: z.string().describe(\"Description of the module\").nullable(),\n});\nexport const SalesmateListModulesOutput = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n});\n\nexport const salesmateListModules = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACxJ,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACzE,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iCAAiC,EACxG,CAOU;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,19 @@ const salesmateCatalog = {
7
7
  "category": "CRM",
8
8
  "logo": "https://logos.composio.dev/api/salesmate",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": {
12
+ "subdomain": {
13
+ "label": "Salesmate Subdomain",
14
+ "description": "The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io')."
15
+ },
16
+ "access_token": {
17
+ "label": "Session Token",
18
+ "secret": true,
19
+ "description": "Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create."
20
+ }
21
+ },
22
+ "credentialScheme": "API_KEY"
11
23
  };
12
24
  //#endregion
13
25
  exports.salesmateCatalog = salesmateCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const salesmateCatalog = {\n \"slug\": \"salesmate\",\n \"name\": \"Salesmate\",\n \"description\": \"Salesmate is an AI-powered CRM platform designed to help businesses engage leads, close deals faster, nurture relationships, and provide seamless support through a unified, intuitive interface.\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/salesmate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const salesmateCatalog = {\n \"slug\": \"salesmate\",\n \"name\": \"Salesmate\",\n \"description\": \"Salesmate is an AI-powered CRM platform designed to help businesses engage leads, close deals faster, nurture relationships, and provide seamless support through a unified, intuitive interface.\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/salesmate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Salesmate Subdomain\",\n \"description\": \"The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io').\"\n },\n \"access_token\": {\n \"label\": \"Session Token\",\n \"secret\": true,\n \"description\": \"Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,gBAAgB;GACd,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,18 @@ declare const salesmateCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/salesmate";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly subdomain: {
13
+ readonly label: "Salesmate Subdomain";
14
+ readonly description: "The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io').";
15
+ };
16
+ readonly access_token: {
17
+ readonly label: "Session Token";
18
+ readonly secret: true;
19
+ readonly description: "Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create.";
20
+ };
21
+ };
22
+ readonly credentialScheme: "API_KEY";
11
23
  };
12
24
  //#endregion
13
25
  export { salesmateCatalog };
@@ -8,6 +8,18 @@ declare const salesmateCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/salesmate";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly subdomain: {
13
+ readonly label: "Salesmate Subdomain";
14
+ readonly description: "The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io').";
15
+ };
16
+ readonly access_token: {
17
+ readonly label: "Session Token";
18
+ readonly secret: true;
19
+ readonly description: "Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create.";
20
+ };
21
+ };
22
+ readonly credentialScheme: "API_KEY";
11
23
  };
12
24
  //#endregion
13
25
  export { salesmateCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,19 @@ const salesmateCatalog = {
7
7
  "category": "CRM",
8
8
  "logo": "https://logos.composio.dev/api/salesmate",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": {
12
+ "subdomain": {
13
+ "label": "Salesmate Subdomain",
14
+ "description": "The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io')."
15
+ },
16
+ "access_token": {
17
+ "label": "Session Token",
18
+ "secret": true,
19
+ "description": "Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create."
20
+ }
21
+ },
22
+ "credentialScheme": "API_KEY"
11
23
  };
12
24
  //#endregion
13
25
  export { salesmateCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const salesmateCatalog = {\n \"slug\": \"salesmate\",\n \"name\": \"Salesmate\",\n \"description\": \"Salesmate is an AI-powered CRM platform designed to help businesses engage leads, close deals faster, nurture relationships, and provide seamless support through a unified, intuitive interface.\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/salesmate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const salesmateCatalog = {\n \"slug\": \"salesmate\",\n \"name\": \"Salesmate\",\n \"description\": \"Salesmate is an AI-powered CRM platform designed to help businesses engage leads, close deals faster, nurture relationships, and provide seamless support through a unified, intuitive interface.\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/salesmate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Salesmate Subdomain\",\n \"description\": \"The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io').\"\n },\n \"access_token\": {\n \"label\": \"Session Token\",\n \"secret\": true,\n \"description\": \"Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,gBAAgB;GACd,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/salesmate",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {