@keystrokehq/salesmate 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-product.cjs +52 -0
- package/dist/actions/add-product.cjs.map +1 -0
- package/dist/actions/add-product.d.cts +9 -0
- package/dist/actions/add-product.d.cts.map +1 -0
- package/dist/actions/add-product.d.mts +9 -0
- package/dist/actions/add-product.d.mts.map +1 -0
- package/dist/actions/add-product.mjs +51 -0
- package/dist/actions/add-product.mjs.map +1 -0
- package/dist/actions/create-company.cjs +40 -0
- package/dist/actions/create-company.cjs.map +1 -0
- package/dist/actions/create-company.d.cts +9 -0
- package/dist/actions/create-company.d.cts.map +1 -0
- package/dist/actions/create-company.d.mts +9 -0
- package/dist/actions/create-company.d.mts.map +1 -0
- package/dist/actions/create-company.mjs +39 -0
- package/dist/actions/create-company.mjs.map +1 -0
- package/dist/actions/delete-product.cjs +19 -0
- package/dist/actions/delete-product.cjs.map +1 -0
- package/dist/actions/delete-product.d.cts +9 -0
- package/dist/actions/delete-product.d.cts.map +1 -0
- package/dist/actions/delete-product.d.mts +9 -0
- package/dist/actions/delete-product.d.mts.map +1 -0
- package/dist/actions/delete-product.mjs +16 -0
- package/dist/actions/delete-product.mjs.map +1 -0
- package/dist/actions/get-active-users.cjs +24 -0
- package/dist/actions/get-active-users.cjs.map +1 -0
- package/dist/actions/get-active-users.d.cts +9 -0
- package/dist/actions/get-active-users.d.cts.map +1 -0
- package/dist/actions/get-active-users.d.mts +9 -0
- package/dist/actions/get-active-users.d.mts.map +1 -0
- package/dist/actions/get-active-users.mjs +23 -0
- package/dist/actions/get-active-users.mjs.map +1 -0
- package/dist/actions/get-company.cjs +19 -0
- package/dist/actions/get-company.cjs.map +1 -0
- package/dist/actions/get-company.d.cts +9 -0
- package/dist/actions/get-company.d.cts.map +1 -0
- package/dist/actions/get-company.d.mts +9 -0
- package/dist/actions/get-company.d.mts.map +1 -0
- package/dist/actions/get-company.mjs +16 -0
- package/dist/actions/get-company.mjs.map +1 -0
- package/dist/actions/index.cjs +13 -0
- package/dist/actions/index.d.cts +7 -0
- package/dist/actions/index.d.mts +7 -0
- package/dist/actions/index.mjs +7 -0
- package/dist/actions/list-modules.cjs +22 -0
- package/dist/actions/list-modules.cjs.map +1 -0
- package/dist/actions/list-modules.d.cts +9 -0
- package/dist/actions/list-modules.d.cts.map +1 -0
- package/dist/actions/list-modules.d.mts +9 -0
- package/dist/actions/list-modules.d.mts.map +1 -0
- package/dist/actions/list-modules.mjs +21 -0
- package/dist/actions/list-modules.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +18 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.mts +9 -0
- package/dist/index.mjs +10 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/salesmate
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `salesmate`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 6
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { salesmateAddProduct } from "@keystrokehq/salesmate/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "salesmate-agent",
|
|
15
|
+
tools: [salesmateAddProduct],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.salesmate.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeSalesmateTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +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"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { salesmate } from "./app.mjs";
|
|
2
|
+
import { executeSalesmateTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return salesmate.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeSalesmateTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/add-product.ts
|
|
4
|
+
const SalesmateAddProductInput = zod.z.object({
|
|
5
|
+
sku: zod.z.string().describe("Unique SKU/code of the product").optional(),
|
|
6
|
+
name: zod.z.string().describe("Name of the product"),
|
|
7
|
+
tags: zod.z.string().describe("Comma-separated tags (max 5000 chars)").optional(),
|
|
8
|
+
owner: zod.z.number().int().describe("Salesmate user ID that owns the product").optional(),
|
|
9
|
+
currency: zod.z.string().describe("Three-letter ISO currency code, uppercase"),
|
|
10
|
+
isActive: zod.z.boolean().default(true).describe("Whether the product is active for sales").optional(),
|
|
11
|
+
unitPrice: zod.z.number().describe("Sale price of the product (non-negative)"),
|
|
12
|
+
directCost: zod.z.number().describe("Optional direct cost of the product (non-negative)").optional(),
|
|
13
|
+
costPerUnit: zod.z.number().describe("Optional cost per unit (non-negative)").optional(),
|
|
14
|
+
description: zod.z.string().describe("Optional description (max 2000 chars)").optional()
|
|
15
|
+
});
|
|
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.")
|
|
21
|
+
});
|
|
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 - $.")
|
|
26
|
+
});
|
|
27
|
+
const SalesmateAddProduct_AddProductDataSchema = zod.z.object({
|
|
28
|
+
id: zod.z.number().int().describe("Unique ID of the product"),
|
|
29
|
+
sku: zod.z.string().describe("SKU/code of the product").nullable().optional(),
|
|
30
|
+
name: zod.z.string().describe("Name of the product"),
|
|
31
|
+
tags: zod.z.string().describe("Tags associated with the product").nullable().optional(),
|
|
32
|
+
owner: zod.z.number().int().describe("ID of the user who owns the product").nullable().optional(),
|
|
33
|
+
prices: zod.z.array(SalesmateAddProduct_PriceItemSchema).describe("List of price entries for the product"),
|
|
34
|
+
currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),
|
|
35
|
+
isActive: zod.z.boolean().describe("Whether the product is active for sales"),
|
|
36
|
+
description: zod.z.string().describe("Description of the product").nullable().optional()
|
|
37
|
+
});
|
|
38
|
+
const SalesmateAddProductOutput = zod.z.object({
|
|
39
|
+
Data: SalesmateAddProduct_AddProductDataSchema.nullable(),
|
|
40
|
+
Status: zod.z.enum(["success", "failure"]).describe("API call status.")
|
|
41
|
+
});
|
|
42
|
+
const salesmateAddProduct = require_action.action("SALESMATE_ADD_PRODUCT", {
|
|
43
|
+
slug: "salesmate-add-product",
|
|
44
|
+
name: "Add Product",
|
|
45
|
+
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.\"",
|
|
46
|
+
input: SalesmateAddProductInput,
|
|
47
|
+
output: SalesmateAddProductOutput
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
exports.salesmateAddProduct = salesmateAddProduct;
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=add-product.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateAddProduct };
|
|
9
|
+
//# sourceMappingURL=add-product.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateAddProduct };
|
|
9
|
+
//# sourceMappingURL=add-product.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/add-product.ts
|
|
4
|
+
const SalesmateAddProductInput = z.object({
|
|
5
|
+
sku: z.string().describe("Unique SKU/code of the product").optional(),
|
|
6
|
+
name: z.string().describe("Name of the product"),
|
|
7
|
+
tags: z.string().describe("Comma-separated tags (max 5000 chars)").optional(),
|
|
8
|
+
owner: z.number().int().describe("Salesmate user ID that owns the product").optional(),
|
|
9
|
+
currency: z.string().describe("Three-letter ISO currency code, uppercase"),
|
|
10
|
+
isActive: z.boolean().default(true).describe("Whether the product is active for sales").optional(),
|
|
11
|
+
unitPrice: z.number().describe("Sale price of the product (non-negative)"),
|
|
12
|
+
directCost: z.number().describe("Optional direct cost of the product (non-negative)").optional(),
|
|
13
|
+
costPerUnit: z.number().describe("Optional cost per unit (non-negative)").optional(),
|
|
14
|
+
description: z.string().describe("Optional description (max 2000 chars)").optional()
|
|
15
|
+
});
|
|
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.")
|
|
21
|
+
});
|
|
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 - $.")
|
|
26
|
+
});
|
|
27
|
+
const SalesmateAddProduct_AddProductDataSchema = z.object({
|
|
28
|
+
id: z.number().int().describe("Unique ID of the product"),
|
|
29
|
+
sku: z.string().describe("SKU/code of the product").nullable().optional(),
|
|
30
|
+
name: z.string().describe("Name of the product"),
|
|
31
|
+
tags: z.string().describe("Tags associated with the product").nullable().optional(),
|
|
32
|
+
owner: z.number().int().describe("ID of the user who owns the product").nullable().optional(),
|
|
33
|
+
prices: z.array(SalesmateAddProduct_PriceItemSchema).describe("List of price entries for the product"),
|
|
34
|
+
currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),
|
|
35
|
+
isActive: z.boolean().describe("Whether the product is active for sales"),
|
|
36
|
+
description: z.string().describe("Description of the product").nullable().optional()
|
|
37
|
+
});
|
|
38
|
+
const salesmateAddProduct = action("SALESMATE_ADD_PRODUCT", {
|
|
39
|
+
slug: "salesmate-add-product",
|
|
40
|
+
name: "Add Product",
|
|
41
|
+
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.\"",
|
|
42
|
+
input: SalesmateAddProductInput,
|
|
43
|
+
output: z.object({
|
|
44
|
+
Data: SalesmateAddProduct_AddProductDataSchema.nullable(),
|
|
45
|
+
Status: z.enum(["success", "failure"]).describe("API call status.")
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
export { salesmateAddProduct };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=add-product.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-company.ts
|
|
4
|
+
const SalesmateCreateCompanyInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Name of the company (max 255 chars)"),
|
|
6
|
+
tags: zod.z.string().describe("Comma-separated tags for the company").optional(),
|
|
7
|
+
owner: zod.z.number().int().describe("ID of the owner user for this company. If not provided, defaults to the authenticated user.").optional(),
|
|
8
|
+
phone: zod.z.string().describe("Primary phone number of the company").optional(),
|
|
9
|
+
skypeId: zod.z.string().describe("Skype ID of the company").optional(),
|
|
10
|
+
website: zod.z.string().describe("Website URL of the company").optional(),
|
|
11
|
+
currency: zod.z.string().describe("Three-letter ISO currency code (uppercase)").optional(),
|
|
12
|
+
otherPhone: zod.z.string().describe("Secondary phone number of the company").optional(),
|
|
13
|
+
billingCity: zod.z.string().describe("Billing city").optional(),
|
|
14
|
+
description: zod.z.string().describe("Description for the company").optional(),
|
|
15
|
+
billingState: zod.z.string().describe("Billing state").optional(),
|
|
16
|
+
twitterHandle: zod.z.string().describe("Twitter handle of the company").optional(),
|
|
17
|
+
billingCountry: zod.z.string().describe("Billing country").optional(),
|
|
18
|
+
billingZipCode: zod.z.string().describe("Billing ZIP/postal code").optional(),
|
|
19
|
+
facebookHandle: zod.z.string().describe("Facebook profile or handle of the company").optional(),
|
|
20
|
+
linkedInHandle: zod.z.string().describe("LinkedIn profile link of the company").optional(),
|
|
21
|
+
googlePlusHandle: zod.z.string().describe("Google Plus profile link of the company").optional(),
|
|
22
|
+
billingAddressLine1: zod.z.string().describe("Billing address line 1").optional(),
|
|
23
|
+
billingAddressLine2: zod.z.string().describe("Billing address line 2").optional()
|
|
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.");
|
|
26
|
+
const SalesmateCreateCompanyOutput = zod.z.object({
|
|
27
|
+
Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),
|
|
28
|
+
Status: zod.z.string().describe("Status of the API call, e.g., 'success'")
|
|
29
|
+
}).describe("Response schema for create company API.");
|
|
30
|
+
const salesmateCreateCompany = require_action.action("SALESMATE_CREATE_COMPANY", {
|
|
31
|
+
slug: "salesmate-create-company",
|
|
32
|
+
name: "Create Company",
|
|
33
|
+
description: "Tool to create a new company in the Salesmate CRM. Use when you need to register a new organization.",
|
|
34
|
+
input: SalesmateCreateCompanyInput,
|
|
35
|
+
output: SalesmateCreateCompanyOutput
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.salesmateCreateCompany = salesmateCreateCompany;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=create-company.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateCreateCompany };
|
|
9
|
+
//# sourceMappingURL=create-company.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateCreateCompany };
|
|
9
|
+
//# sourceMappingURL=create-company.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-company.ts
|
|
4
|
+
const SalesmateCreateCompanyInput = z.object({
|
|
5
|
+
name: z.string().describe("Name of the company (max 255 chars)"),
|
|
6
|
+
tags: z.string().describe("Comma-separated tags for the company").optional(),
|
|
7
|
+
owner: z.number().int().describe("ID of the owner user for this company. If not provided, defaults to the authenticated user.").optional(),
|
|
8
|
+
phone: z.string().describe("Primary phone number of the company").optional(),
|
|
9
|
+
skypeId: z.string().describe("Skype ID of the company").optional(),
|
|
10
|
+
website: z.string().describe("Website URL of the company").optional(),
|
|
11
|
+
currency: z.string().describe("Three-letter ISO currency code (uppercase)").optional(),
|
|
12
|
+
otherPhone: z.string().describe("Secondary phone number of the company").optional(),
|
|
13
|
+
billingCity: z.string().describe("Billing city").optional(),
|
|
14
|
+
description: z.string().describe("Description for the company").optional(),
|
|
15
|
+
billingState: z.string().describe("Billing state").optional(),
|
|
16
|
+
twitterHandle: z.string().describe("Twitter handle of the company").optional(),
|
|
17
|
+
billingCountry: z.string().describe("Billing country").optional(),
|
|
18
|
+
billingZipCode: z.string().describe("Billing ZIP/postal code").optional(),
|
|
19
|
+
facebookHandle: z.string().describe("Facebook profile or handle of the company").optional(),
|
|
20
|
+
linkedInHandle: z.string().describe("LinkedIn profile link of the company").optional(),
|
|
21
|
+
googlePlusHandle: z.string().describe("Google Plus profile link of the company").optional(),
|
|
22
|
+
billingAddressLine1: z.string().describe("Billing address line 1").optional(),
|
|
23
|
+
billingAddressLine2: z.string().describe("Billing address line 2").optional()
|
|
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.");
|
|
26
|
+
const salesmateCreateCompany = action("SALESMATE_CREATE_COMPANY", {
|
|
27
|
+
slug: "salesmate-create-company",
|
|
28
|
+
name: "Create Company",
|
|
29
|
+
description: "Tool to create a new company in the Salesmate CRM. Use when you need to register a new organization.",
|
|
30
|
+
input: SalesmateCreateCompanyInput,
|
|
31
|
+
output: z.object({
|
|
32
|
+
Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),
|
|
33
|
+
Status: z.string().describe("Status of the API call, e.g., 'success'")
|
|
34
|
+
}).describe("Response schema for create company API.")
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { salesmateCreateCompany };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=create-company.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-product.ts
|
|
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
|
+
const SalesmateDeleteProductOutput = zod.z.object({
|
|
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'")
|
|
8
|
+
}).describe("Response schema for delete product API.");
|
|
9
|
+
const salesmateDeleteProduct = require_action.action("SALESMATE_DELETE_PRODUCT", {
|
|
10
|
+
slug: "salesmate-delete-product",
|
|
11
|
+
name: "Delete Product",
|
|
12
|
+
description: "Tool to delete a product by ProductId. Use when you need to remove a product from the catalog after confirming the correct ProductId.",
|
|
13
|
+
input: SalesmateDeleteProductInput,
|
|
14
|
+
output: SalesmateDeleteProductOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.salesmateDeleteProduct = salesmateDeleteProduct;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-product.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateDeleteProduct };
|
|
9
|
+
//# sourceMappingURL=delete-product.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateDeleteProduct };
|
|
9
|
+
//# sourceMappingURL=delete-product.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const salesmateDeleteProduct = action("SALESMATE_DELETE_PRODUCT", {
|
|
4
|
+
slug: "salesmate-delete-product",
|
|
5
|
+
name: "Delete Product",
|
|
6
|
+
description: "Tool to delete a product by ProductId. Use when you need to remove a product from the catalog after confirming the correct ProductId.",
|
|
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
|
+
output: z.object({
|
|
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'")
|
|
11
|
+
}).describe("Response schema for delete product API.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { salesmateDeleteProduct };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-product.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-active-users.ts
|
|
4
|
+
const SalesmateGetActiveUsersInput = zod.z.object({}).describe("Request model for retrieving active users.\nNo parameters required; the status filter is always 'active'.");
|
|
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")
|
|
12
|
+
});
|
|
13
|
+
const SalesmateGetActiveUsersOutput = zod.z.object({ users: zod.z.array(SalesmateGetActiveUsers_UserSchema).describe("List of active users returned by the Salesmate API") });
|
|
14
|
+
const salesmateGetActiveUsers = require_action.action("SALESMATE_GET_ACTIVE_USERS", {
|
|
15
|
+
slug: "salesmate-get-active-users",
|
|
16
|
+
name: "Get Active Users",
|
|
17
|
+
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.",
|
|
18
|
+
input: SalesmateGetActiveUsersInput,
|
|
19
|
+
output: SalesmateGetActiveUsersOutput
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.salesmateGetActiveUsers = salesmateGetActiveUsers;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=get-active-users.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateGetActiveUsers };
|
|
9
|
+
//# sourceMappingURL=get-active-users.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateGetActiveUsers };
|
|
9
|
+
//# sourceMappingURL=get-active-users.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-active-users.ts
|
|
4
|
+
const SalesmateGetActiveUsersInput = z.object({}).describe("Request model for retrieving active users.\nNo parameters required; the status filter is always 'active'.");
|
|
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")
|
|
12
|
+
});
|
|
13
|
+
const salesmateGetActiveUsers = action("SALESMATE_GET_ACTIVE_USERS", {
|
|
14
|
+
slug: "salesmate-get-active-users",
|
|
15
|
+
name: "Get Active Users",
|
|
16
|
+
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.",
|
|
17
|
+
input: SalesmateGetActiveUsersInput,
|
|
18
|
+
output: z.object({ users: z.array(SalesmateGetActiveUsers_UserSchema).describe("List of active users returned by the Salesmate API") })
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { salesmateGetActiveUsers };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=get-active-users.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-company.ts
|
|
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
|
+
const SalesmateGetCompanyOutput = zod.z.object({
|
|
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'")
|
|
8
|
+
}).describe("Response schema for retrieving a company. Contains status and data with company details.");
|
|
9
|
+
const salesmateGetCompany = require_action.action("SALESMATE_GET_COMPANY", {
|
|
10
|
+
slug: "salesmate-get-company",
|
|
11
|
+
name: "Get Company",
|
|
12
|
+
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\".",
|
|
13
|
+
input: SalesmateGetCompanyInput,
|
|
14
|
+
output: SalesmateGetCompanyOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.salesmateGetCompany = salesmateGetCompany;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=get-company.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateGetCompany };
|
|
9
|
+
//# sourceMappingURL=get-company.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateGetCompany };
|
|
9
|
+
//# sourceMappingURL=get-company.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const salesmateGetCompany = action("SALESMATE_GET_COMPANY", {
|
|
4
|
+
slug: "salesmate-get-company",
|
|
5
|
+
name: "Get Company",
|
|
6
|
+
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\".",
|
|
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
|
+
output: z.object({
|
|
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'")
|
|
11
|
+
}).describe("Response schema for retrieving a company. Contains status and data with company details.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { salesmateGetCompany };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=get-company.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_add_product = require("./add-product.cjs");
|
|
3
|
+
const require_create_company = require("./create-company.cjs");
|
|
4
|
+
const require_delete_product = require("./delete-product.cjs");
|
|
5
|
+
const require_get_active_users = require("./get-active-users.cjs");
|
|
6
|
+
const require_get_company = require("./get-company.cjs");
|
|
7
|
+
const require_list_modules = require("./list-modules.cjs");
|
|
8
|
+
exports.salesmateAddProduct = require_add_product.salesmateAddProduct;
|
|
9
|
+
exports.salesmateCreateCompany = require_create_company.salesmateCreateCompany;
|
|
10
|
+
exports.salesmateDeleteProduct = require_delete_product.salesmateDeleteProduct;
|
|
11
|
+
exports.salesmateGetActiveUsers = require_get_active_users.salesmateGetActiveUsers;
|
|
12
|
+
exports.salesmateGetCompany = require_get_company.salesmateGetCompany;
|
|
13
|
+
exports.salesmateListModules = require_list_modules.salesmateListModules;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { salesmateAddProduct } from "./add-product.cjs";
|
|
2
|
+
import { salesmateCreateCompany } from "./create-company.cjs";
|
|
3
|
+
import { salesmateDeleteProduct } from "./delete-product.cjs";
|
|
4
|
+
import { salesmateGetActiveUsers } from "./get-active-users.cjs";
|
|
5
|
+
import { salesmateGetCompany } from "./get-company.cjs";
|
|
6
|
+
import { salesmateListModules } from "./list-modules.cjs";
|
|
7
|
+
export { salesmateAddProduct, salesmateCreateCompany, salesmateDeleteProduct, salesmateGetActiveUsers, salesmateGetCompany, salesmateListModules };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { salesmateAddProduct } from "./add-product.mjs";
|
|
2
|
+
import { salesmateCreateCompany } from "./create-company.mjs";
|
|
3
|
+
import { salesmateDeleteProduct } from "./delete-product.mjs";
|
|
4
|
+
import { salesmateGetActiveUsers } from "./get-active-users.mjs";
|
|
5
|
+
import { salesmateGetCompany } from "./get-company.mjs";
|
|
6
|
+
import { salesmateListModules } from "./list-modules.mjs";
|
|
7
|
+
export { salesmateAddProduct, salesmateCreateCompany, salesmateDeleteProduct, salesmateGetActiveUsers, salesmateGetCompany, salesmateListModules };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { salesmateAddProduct } from "./add-product.mjs";
|
|
2
|
+
import { salesmateCreateCompany } from "./create-company.mjs";
|
|
3
|
+
import { salesmateDeleteProduct } from "./delete-product.mjs";
|
|
4
|
+
import { salesmateGetActiveUsers } from "./get-active-users.mjs";
|
|
5
|
+
import { salesmateGetCompany } from "./get-company.mjs";
|
|
6
|
+
import { salesmateListModules } from "./list-modules.mjs";
|
|
7
|
+
export { salesmateAddProduct, salesmateCreateCompany, salesmateDeleteProduct, salesmateGetActiveUsers, salesmateGetCompany, salesmateListModules };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-modules.ts
|
|
4
|
+
const SalesmateListModulesInput = zod.z.object({}).describe("Request model for listing modules. No parameters required; lists all modules available.");
|
|
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")
|
|
10
|
+
});
|
|
11
|
+
const SalesmateListModulesOutput = zod.z.object({ modules: zod.z.array(SalesmateListModules_ModuleMetadataSchema).describe("List of module metadata objects") });
|
|
12
|
+
const salesmateListModules = require_action.action("SALESMATE_LIST_MODULES", {
|
|
13
|
+
slug: "salesmate-list-modules",
|
|
14
|
+
name: "List Modules",
|
|
15
|
+
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.",
|
|
16
|
+
input: SalesmateListModulesInput,
|
|
17
|
+
output: SalesmateListModulesOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.salesmateListModules = salesmateListModules;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=list-modules.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateListModules };
|
|
9
|
+
//# sourceMappingURL=list-modules.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { salesmateListModules };
|
|
9
|
+
//# sourceMappingURL=list-modules.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-modules.ts
|
|
4
|
+
const SalesmateListModulesInput = z.object({}).describe("Request model for listing modules. No parameters required; lists all modules available.");
|
|
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")
|
|
10
|
+
});
|
|
11
|
+
const salesmateListModules = action("SALESMATE_LIST_MODULES", {
|
|
12
|
+
slug: "salesmate-list-modules",
|
|
13
|
+
name: "List Modules",
|
|
14
|
+
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.",
|
|
15
|
+
input: SalesmateListModulesInput,
|
|
16
|
+
output: z.object({ modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe("List of module metadata objects") })
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { salesmateListModules };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=list-modules.mjs.map
|
|
@@ -0,0 +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"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const salesmate = defineApp({\n slug: \"salesmate\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const salesmate = defineApp({\n slug: \"salesmate\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const salesmateCatalog = {
|
|
4
|
+
"slug": "salesmate",
|
|
5
|
+
"name": "Salesmate",
|
|
6
|
+
"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.",
|
|
7
|
+
"category": "CRM",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/salesmate",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.salesmateCatalog = salesmateCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const salesmateCatalog: {
|
|
4
|
+
readonly slug: "salesmate";
|
|
5
|
+
readonly name: "Salesmate";
|
|
6
|
+
readonly 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.";
|
|
7
|
+
readonly category: "CRM";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/salesmate";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { salesmateCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const salesmateCatalog: {
|
|
4
|
+
readonly slug: "salesmate";
|
|
5
|
+
readonly name: "Salesmate";
|
|
6
|
+
readonly 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.";
|
|
7
|
+
readonly category: "CRM";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/salesmate";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { salesmateCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const salesmateCatalog = {
|
|
4
|
+
"slug": "salesmate",
|
|
5
|
+
"name": "Salesmate",
|
|
6
|
+
"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.",
|
|
7
|
+
"category": "CRM",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/salesmate",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { salesmateCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +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"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "salesmate";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSalesmateTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeSalesmateTool = executeSalesmateTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"salesmate\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSalesmateTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "salesmate";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSalesmateTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeSalesmateTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"salesmate\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSalesmateTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_add_product = require("./actions/add-product.cjs");
|
|
5
|
+
const require_create_company = require("./actions/create-company.cjs");
|
|
6
|
+
const require_delete_product = require("./actions/delete-product.cjs");
|
|
7
|
+
const require_get_active_users = require("./actions/get-active-users.cjs");
|
|
8
|
+
const require_get_company = require("./actions/get-company.cjs");
|
|
9
|
+
const require_list_modules = require("./actions/list-modules.cjs");
|
|
10
|
+
require("./actions/index.cjs");
|
|
11
|
+
exports.salesmate = require_app.salesmate;
|
|
12
|
+
exports.salesmateAddProduct = require_add_product.salesmateAddProduct;
|
|
13
|
+
exports.salesmateCatalog = require_catalog.salesmateCatalog;
|
|
14
|
+
exports.salesmateCreateCompany = require_create_company.salesmateCreateCompany;
|
|
15
|
+
exports.salesmateDeleteProduct = require_delete_product.salesmateDeleteProduct;
|
|
16
|
+
exports.salesmateGetActiveUsers = require_get_active_users.salesmateGetActiveUsers;
|
|
17
|
+
exports.salesmateGetCompany = require_get_company.salesmateGetCompany;
|
|
18
|
+
exports.salesmateListModules = require_list_modules.salesmateListModules;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { salesmateAddProduct } from "./actions/add-product.cjs";
|
|
2
|
+
import { salesmateCreateCompany } from "./actions/create-company.cjs";
|
|
3
|
+
import { salesmateDeleteProduct } from "./actions/delete-product.cjs";
|
|
4
|
+
import { salesmateGetActiveUsers } from "./actions/get-active-users.cjs";
|
|
5
|
+
import { salesmateGetCompany } from "./actions/get-company.cjs";
|
|
6
|
+
import { salesmateListModules } from "./actions/list-modules.cjs";
|
|
7
|
+
import { salesmate } from "./app.cjs";
|
|
8
|
+
import { salesmateCatalog } from "./catalog.cjs";
|
|
9
|
+
export { salesmate, salesmateAddProduct, salesmateCatalog, salesmateCreateCompany, salesmateDeleteProduct, salesmateGetActiveUsers, salesmateGetCompany, salesmateListModules };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { salesmateAddProduct } from "./actions/add-product.mjs";
|
|
2
|
+
import { salesmateCreateCompany } from "./actions/create-company.mjs";
|
|
3
|
+
import { salesmateDeleteProduct } from "./actions/delete-product.mjs";
|
|
4
|
+
import { salesmateGetActiveUsers } from "./actions/get-active-users.mjs";
|
|
5
|
+
import { salesmateGetCompany } from "./actions/get-company.mjs";
|
|
6
|
+
import { salesmateListModules } from "./actions/list-modules.mjs";
|
|
7
|
+
import { salesmate } from "./app.mjs";
|
|
8
|
+
import { salesmateCatalog } from "./catalog.mjs";
|
|
9
|
+
export { salesmate, salesmateAddProduct, salesmateCatalog, salesmateCreateCompany, salesmateDeleteProduct, salesmateGetActiveUsers, salesmateGetCompany, salesmateListModules };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { salesmate } from "./app.mjs";
|
|
2
|
+
import { salesmateCatalog } from "./catalog.mjs";
|
|
3
|
+
import { salesmateAddProduct } from "./actions/add-product.mjs";
|
|
4
|
+
import { salesmateCreateCompany } from "./actions/create-company.mjs";
|
|
5
|
+
import { salesmateDeleteProduct } from "./actions/delete-product.mjs";
|
|
6
|
+
import { salesmateGetActiveUsers } from "./actions/get-active-users.mjs";
|
|
7
|
+
import { salesmateGetCompany } from "./actions/get-company.mjs";
|
|
8
|
+
import { salesmateListModules } from "./actions/list-modules.mjs";
|
|
9
|
+
import "./actions/index.mjs";
|
|
10
|
+
export { salesmate, salesmateAddProduct, salesmateCatalog, salesmateCreateCompany, salesmateDeleteProduct, salesmateGetActiveUsers, salesmateGetCompany, salesmateListModules };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/salesmate",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/salesmate"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|