@keystrokehq/pipeline_crm 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/create-company.cjs +71 -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 +70 -0
- package/dist/actions/create-company.mjs.map +1 -0
- package/dist/actions/create-deal.cjs +35 -0
- package/dist/actions/create-deal.cjs.map +1 -0
- package/dist/actions/create-deal.d.cts +9 -0
- package/dist/actions/create-deal.d.cts.map +1 -0
- package/dist/actions/create-deal.d.mts +9 -0
- package/dist/actions/create-deal.d.mts.map +1 -0
- package/dist/actions/create-deal.mjs +32 -0
- package/dist/actions/create-deal.mjs.map +1 -0
- package/dist/actions/delete-company.cjs +19 -0
- package/dist/actions/delete-company.cjs.map +1 -0
- package/dist/actions/delete-company.d.cts +9 -0
- package/dist/actions/delete-company.d.cts.map +1 -0
- package/dist/actions/delete-company.d.mts +9 -0
- package/dist/actions/delete-company.d.mts.map +1 -0
- package/dist/actions/delete-company.mjs +16 -0
- package/dist/actions/delete-company.mjs.map +1 -0
- package/dist/actions/delete-deal.cjs +19 -0
- package/dist/actions/delete-deal.cjs.map +1 -0
- package/dist/actions/delete-deal.d.cts +9 -0
- package/dist/actions/delete-deal.d.cts.map +1 -0
- package/dist/actions/delete-deal.d.mts +9 -0
- package/dist/actions/delete-deal.d.mts.map +1 -0
- package/dist/actions/delete-deal.mjs +16 -0
- package/dist/actions/delete-deal.mjs.map +1 -0
- package/dist/actions/delete-task.cjs +20 -0
- package/dist/actions/delete-task.cjs.map +1 -0
- package/dist/actions/delete-task.d.cts +9 -0
- package/dist/actions/delete-task.d.cts.map +1 -0
- package/dist/actions/delete-task.d.mts +9 -0
- package/dist/actions/delete-task.d.mts.map +1 -0
- package/dist/actions/delete-task.mjs +17 -0
- package/dist/actions/delete-task.mjs.map +1 -0
- package/dist/actions/get-company.cjs +84 -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 +83 -0
- package/dist/actions/get-company.mjs.map +1 -0
- package/dist/actions/get-deal.cjs +118 -0
- package/dist/actions/get-deal.cjs.map +1 -0
- package/dist/actions/get-deal.d.cts +9 -0
- package/dist/actions/get-deal.d.cts.map +1 -0
- package/dist/actions/get-deal.d.mts +9 -0
- package/dist/actions/get-deal.d.mts.map +1 -0
- package/dist/actions/get-deal.mjs +117 -0
- package/dist/actions/get-deal.mjs.map +1 -0
- package/dist/actions/get-stage.cjs +23 -0
- package/dist/actions/get-stage.cjs.map +1 -0
- package/dist/actions/get-stage.d.cts +9 -0
- package/dist/actions/get-stage.d.cts.map +1 -0
- package/dist/actions/get-stage.d.mts +9 -0
- package/dist/actions/get-stage.d.mts.map +1 -0
- package/dist/actions/get-stage.mjs +20 -0
- package/dist/actions/get-stage.mjs.map +1 -0
- package/dist/actions/get-task.cjs +48 -0
- package/dist/actions/get-task.cjs.map +1 -0
- package/dist/actions/get-task.d.cts +9 -0
- package/dist/actions/get-task.d.cts.map +1 -0
- package/dist/actions/get-task.d.mts +9 -0
- package/dist/actions/get-task.d.mts.map +1 -0
- package/dist/actions/get-task.mjs +47 -0
- package/dist/actions/get-task.mjs.map +1 -0
- package/dist/actions/index.cjs +31 -0
- package/dist/actions/index.d.cts +16 -0
- package/dist/actions/index.d.mts +16 -0
- package/dist/actions/index.mjs +16 -0
- package/dist/actions/list-companies.cjs +75 -0
- package/dist/actions/list-companies.cjs.map +1 -0
- package/dist/actions/list-companies.d.cts +9 -0
- package/dist/actions/list-companies.d.cts.map +1 -0
- package/dist/actions/list-companies.d.mts +9 -0
- package/dist/actions/list-companies.d.mts.map +1 -0
- package/dist/actions/list-companies.mjs +74 -0
- package/dist/actions/list-companies.mjs.map +1 -0
- package/dist/actions/list-leads.cjs +50 -0
- package/dist/actions/list-leads.cjs.map +1 -0
- package/dist/actions/list-leads.d.cts +9 -0
- package/dist/actions/list-leads.d.cts.map +1 -0
- package/dist/actions/list-leads.d.mts +9 -0
- package/dist/actions/list-leads.d.mts.map +1 -0
- package/dist/actions/list-leads.mjs +49 -0
- package/dist/actions/list-leads.mjs.map +1 -0
- package/dist/actions/list-stages.cjs +36 -0
- package/dist/actions/list-stages.cjs.map +1 -0
- package/dist/actions/list-stages.d.cts +9 -0
- package/dist/actions/list-stages.d.cts.map +1 -0
- package/dist/actions/list-stages.d.mts +9 -0
- package/dist/actions/list-stages.d.mts.map +1 -0
- package/dist/actions/list-stages.mjs +35 -0
- package/dist/actions/list-stages.mjs.map +1 -0
- package/dist/actions/list-tasks.cjs +67 -0
- package/dist/actions/list-tasks.cjs.map +1 -0
- package/dist/actions/list-tasks.d.cts +9 -0
- package/dist/actions/list-tasks.d.cts.map +1 -0
- package/dist/actions/list-tasks.d.mts +9 -0
- package/dist/actions/list-tasks.d.mts.map +1 -0
- package/dist/actions/list-tasks.mjs +66 -0
- package/dist/actions/list-tasks.mjs.map +1 -0
- package/dist/actions/list-users.cjs +40 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +39 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/update-company.cjs +69 -0
- package/dist/actions/update-company.cjs.map +1 -0
- package/dist/actions/update-company.d.cts +9 -0
- package/dist/actions/update-company.d.cts.map +1 -0
- package/dist/actions/update-company.d.mts +9 -0
- package/dist/actions/update-company.d.mts.map +1 -0
- package/dist/actions/update-company.mjs +68 -0
- package/dist/actions/update-company.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 +36 -0
- package/dist/index.d.cts +18 -0
- package/dist/index.d.mts +18 -0
- package/dist/index.mjs +19 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/pipeline_crm
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `pipeline_crm`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 15
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { pipelineCrmCreateCompany } from "@keystrokehq/pipeline_crm/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "pipeline_crm-agent",
|
|
15
|
+
tools: [pipelineCrmCreateCompany],
|
|
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.pipelineCrm.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.executePipelineCrmTool(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":["pipelineCrm","executePipelineCrmTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pipelineCrm } from \"./app\";\nimport { executePipelineCrmTool } 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 pipelineCrm.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 executePipelineCrmTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,YAAY,OAAO;EACxB,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,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { pipelineCrm } from "./app.mjs";
|
|
2
|
+
import { executePipelineCrmTool } 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 pipelineCrm.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 executePipelineCrmTool(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 { pipelineCrm } from \"./app\";\nimport { executePipelineCrmTool } 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 pipelineCrm.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 executePipelineCrmTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,YAAY,OAAO;EACxB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,uBAAuB,MAAM,KAAgC,CAAC;EAC9F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-company.ts
|
|
4
|
+
const PipelineCrmCreateCompanyInput = zod.z.object({
|
|
5
|
+
company: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Company details object. Required field: 'name' (str). Optional fields: 'email' (str), 'web' (str), 'description' (str), 'phone1/2/3/4' (str), 'phone1/2/3/4_desc' (str), 'fax' (str), 'address_1' (str), 'address_2' (str), 'city' (str), 'state' (str), 'postal_code' (int), 'country' (str), 'instant_message' (str), 'twitter' (str), 'facebook_url' (str), 'linked_in_url' (str), 'owner_id' (int), 'shared_user_ids' (list of int), 'tag_ids' (list of int), 'custom_fields' (dict)."),
|
|
6
|
+
todo_template_id: zod.z.number().int().describe("ID of a todo template to automatically apply to this newly created company. Creates tasks based on the template.").optional(),
|
|
7
|
+
check_for_duplicates: zod.z.boolean().describe("If true, returns a 422 error when a company with the same name already exists. If false (default), allows creating duplicate companies.").optional(),
|
|
8
|
+
todo_template_user_id: zod.z.number().int().describe("User ID to assign as the owner of tasks created from the todo template. Only used when todo_template_id is provided.").optional(),
|
|
9
|
+
deliver_assignment_email: zod.z.boolean().default(true).describe("If true (default), sends an assignment notification email to the company owner. Set to false to create the company without sending notification emails.").optional()
|
|
10
|
+
}).describe("Request to create a new company in Pipeline CRM.");
|
|
11
|
+
const PipelineCrmCreateCompany_TagSchema = zod.z.object({
|
|
12
|
+
id: zod.z.number().int().describe("Tag ID"),
|
|
13
|
+
name: zod.z.string().describe("Tag name")
|
|
14
|
+
});
|
|
15
|
+
const PipelineCrmCreateCompany_OwnerSchema = zod.z.object({
|
|
16
|
+
id: zod.z.number().int().describe("ID of the owner user"),
|
|
17
|
+
full_name: zod.z.string().describe("Full name of the owner user")
|
|
18
|
+
});
|
|
19
|
+
const PipelineCrmCreateCompanyOutput = zod.z.object({
|
|
20
|
+
id: zod.z.number().int().describe("Unique ID of the created company"),
|
|
21
|
+
fax: zod.z.string().describe("Fax number for the company").nullable().optional(),
|
|
22
|
+
web: zod.z.string().describe("Website URL for the company").nullable().optional(),
|
|
23
|
+
city: zod.z.string().describe("City of the company's address").nullable().optional(),
|
|
24
|
+
name: zod.z.string().describe("Name of the company"),
|
|
25
|
+
tags: zod.z.array(PipelineCrmCreateCompany_TagSchema).describe("List of tags assigned to the company"),
|
|
26
|
+
email: zod.z.string().describe("Email address for the company").nullable().optional(),
|
|
27
|
+
owner: PipelineCrmCreateCompany_OwnerSchema.nullable().optional(),
|
|
28
|
+
state: zod.z.string().describe("State of the company's address").nullable().optional(),
|
|
29
|
+
phone1: zod.z.string().describe("Primary phone number of the company").nullable().optional(),
|
|
30
|
+
phone2: zod.z.string().describe("Secondary phone number of the company").nullable().optional(),
|
|
31
|
+
phone3: zod.z.string().describe("Tertiary phone number of the company").nullable().optional(),
|
|
32
|
+
phone4: zod.z.string().describe("Quaternary phone number of the company").nullable().optional(),
|
|
33
|
+
country: zod.z.string().describe("Country of the company's address").nullable().optional(),
|
|
34
|
+
tag_ids: zod.z.array(zod.z.number().int()).describe("IDs of tags applied to the company").nullable().optional(),
|
|
35
|
+
twitter: zod.z.string().describe("Twitter handle of the company").nullable().optional(),
|
|
36
|
+
owner_id: zod.z.number().int().describe("User ID of the company owner").nullable().optional(),
|
|
37
|
+
address_1: zod.z.string().describe("Primary address line for the company").nullable().optional(),
|
|
38
|
+
address_2: zod.z.string().describe("Secondary address line for the company").nullable().optional(),
|
|
39
|
+
created_at: zod.z.string().describe("Timestamp when the company was created"),
|
|
40
|
+
updated_at: zod.z.string().describe("Timestamp when the company was updated"),
|
|
41
|
+
description: zod.z.string().describe("Description of the company").nullable().optional(),
|
|
42
|
+
phone1_desc: zod.z.string().describe("Description for phone1").nullable().optional(),
|
|
43
|
+
phone2_desc: zod.z.string().describe("Description for phone2").nullable().optional(),
|
|
44
|
+
phone3_desc: zod.z.string().describe("Description for phone3").nullable().optional(),
|
|
45
|
+
phone4_desc: zod.z.string().describe("Description for phone4").nullable().optional(),
|
|
46
|
+
postal_code: zod.z.number().int().describe("Postal code of the company's address").nullable().optional(),
|
|
47
|
+
facebook_url: zod.z.string().describe("Facebook URL of the company").nullable().optional(),
|
|
48
|
+
next_task_id: zod.z.number().int().describe("ID of the next task").nullable().optional(),
|
|
49
|
+
custom_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field values for the company").nullable().optional(),
|
|
50
|
+
linked_in_url: zod.z.string().describe("LinkedIn URL of the company").nullable().optional(),
|
|
51
|
+
next_task_due: zod.z.string().describe("Due date of the next task").nullable().optional(),
|
|
52
|
+
next_task_name: zod.z.string().describe("Name of the next task").nullable().optional(),
|
|
53
|
+
company_country: zod.z.string().describe("Company-specific country field").nullable().optional(),
|
|
54
|
+
image_thumb_url: zod.z.string().describe("Thumbnail image URL for the company").nullable().optional(),
|
|
55
|
+
instant_message: zod.z.string().describe("Instant messaging contact for the company").nullable().optional(),
|
|
56
|
+
shared_user_ids: zod.z.array(zod.z.number().int()).describe("IDs of users sharing the company").nullable().optional(),
|
|
57
|
+
image_mobile_url: zod.z.string().describe("Mobile image URL for the company").nullable().optional(),
|
|
58
|
+
next_task_all_day: zod.z.boolean().describe("All-day flag for the next task").nullable().optional(),
|
|
59
|
+
possible_notify_user_ids: zod.z.array(zod.z.number().int()).describe("List of user IDs that can be notified about this company")
|
|
60
|
+
});
|
|
61
|
+
const pipelineCrmCreateCompany = require_action.action("PIPELINE_CRM_CREATE_COMPANY", {
|
|
62
|
+
slug: "pipeline_crm-create-company",
|
|
63
|
+
name: "Create Pipeline CRM Company",
|
|
64
|
+
description: "Creates a new company record in Pipeline CRM with contact details, address, and social media information. Use this tool when you need to add a new company to the CRM system. The only required field is the company name. You can optionally include contact information (email, phone, fax), address details, social media links, and assign owners or tags. Set check_for_duplicates=true to prevent creating companies with duplicate names.",
|
|
65
|
+
input: PipelineCrmCreateCompanyInput,
|
|
66
|
+
output: PipelineCrmCreateCompanyOutput
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
exports.pipelineCrmCreateCompany = pipelineCrmCreateCompany;
|
|
70
|
+
|
|
71
|
+
//# 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 PipelineCrmCreateCompanyInput: z.ZodTypeAny = z.object({\n company: z.record(z.string(), z.unknown()).describe(\"Company details object. Required field: 'name' (str). Optional fields: 'email' (str), 'web' (str), 'description' (str), 'phone1/2/3/4' (str), 'phone1/2/3/4_desc' (str), 'fax' (str), 'address_1' (str), 'address_2' (str), 'city' (str), 'state' (str), 'postal_code' (int), 'country' (str), 'instant_message' (str), 'twitter' (str), 'facebook_url' (str), 'linked_in_url' (str), 'owner_id' (int), 'shared_user_ids' (list of int), 'tag_ids' (list of int), 'custom_fields' (dict).\"),\n todo_template_id: z.number().int().describe(\"ID of a todo template to automatically apply to this newly created company. Creates tasks based on the template.\").optional(),\n check_for_duplicates: z.boolean().describe(\"If true, returns a 422 error when a company with the same name already exists. If false (default), allows creating duplicate companies.\").optional(),\n todo_template_user_id: z.number().int().describe(\"User ID to assign as the owner of tasks created from the todo template. Only used when todo_template_id is provided.\").optional(),\n deliver_assignment_email: z.boolean().default(true).describe(\"If true (default), sends an assignment notification email to the company owner. Set to false to create the company without sending notification emails.\").optional(),\n}).describe(\"Request to create a new company in Pipeline CRM.\");\nconst PipelineCrmCreateCompany_TagSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Tag ID\"),\n name: z.string().describe(\"Tag name\"),\n});\nconst PipelineCrmCreateCompany_OwnerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the owner user\"),\n full_name: z.string().describe(\"Full name of the owner user\"),\n});\nexport const PipelineCrmCreateCompanyOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the created company\"),\n fax: z.string().describe(\"Fax number for the company\").nullable().optional(),\n web: z.string().describe(\"Website URL for the company\").nullable().optional(),\n city: z.string().describe(\"City of the company's address\").nullable().optional(),\n name: z.string().describe(\"Name of the company\"),\n tags: z.array(PipelineCrmCreateCompany_TagSchema).describe(\"List of tags assigned to the company\"),\n email: z.string().describe(\"Email address for the company\").nullable().optional(),\n owner: PipelineCrmCreateCompany_OwnerSchema.nullable().optional(),\n state: z.string().describe(\"State of the company's address\").nullable().optional(),\n phone1: z.string().describe(\"Primary phone number of the company\").nullable().optional(),\n phone2: z.string().describe(\"Secondary phone number of the company\").nullable().optional(),\n phone3: z.string().describe(\"Tertiary phone number of the company\").nullable().optional(),\n phone4: z.string().describe(\"Quaternary phone number of the company\").nullable().optional(),\n country: z.string().describe(\"Country of the company's address\").nullable().optional(),\n tag_ids: z.array(z.number().int()).describe(\"IDs of tags applied to the company\").nullable().optional(),\n twitter: z.string().describe(\"Twitter handle of the company\").nullable().optional(),\n owner_id: z.number().int().describe(\"User ID of the company owner\").nullable().optional(),\n address_1: z.string().describe(\"Primary address line for the company\").nullable().optional(),\n address_2: z.string().describe(\"Secondary address line for the company\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the company was created\"),\n updated_at: z.string().describe(\"Timestamp when the company was updated\"),\n description: z.string().describe(\"Description of the company\").nullable().optional(),\n phone1_desc: z.string().describe(\"Description for phone1\").nullable().optional(),\n phone2_desc: z.string().describe(\"Description for phone2\").nullable().optional(),\n phone3_desc: z.string().describe(\"Description for phone3\").nullable().optional(),\n phone4_desc: z.string().describe(\"Description for phone4\").nullable().optional(),\n postal_code: z.number().int().describe(\"Postal code of the company's address\").nullable().optional(),\n facebook_url: z.string().describe(\"Facebook URL of the company\").nullable().optional(),\n next_task_id: z.number().int().describe(\"ID of the next task\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom field values for the company\").nullable().optional(),\n linked_in_url: z.string().describe(\"LinkedIn URL of the company\").nullable().optional(),\n next_task_due: z.string().describe(\"Due date of the next task\").nullable().optional(),\n next_task_name: z.string().describe(\"Name of the next task\").nullable().optional(),\n company_country: z.string().describe(\"Company-specific country field\").nullable().optional(),\n image_thumb_url: z.string().describe(\"Thumbnail image URL for the company\").nullable().optional(),\n instant_message: z.string().describe(\"Instant messaging contact for the company\").nullable().optional(),\n shared_user_ids: z.array(z.number().int()).describe(\"IDs of users sharing the company\").nullable().optional(),\n image_mobile_url: z.string().describe(\"Mobile image URL for the company\").nullable().optional(),\n next_task_all_day: z.boolean().describe(\"All-day flag for the next task\").nullable().optional(),\n possible_notify_user_ids: z.array(z.number().int()).describe(\"List of user IDs that can be notified about this company\"),\n});\n\nexport const pipelineCrmCreateCompany = action(\"PIPELINE_CRM_CREATE_COMPANY\", {\n slug: \"pipeline_crm-create-company\",\n name: \"Create Pipeline CRM Company\",\n description: \"Creates a new company record in Pipeline CRM with contact details, address, and social media information. Use this tool when you need to add a new company to the CRM system. The only required field is the company name. You can optionally include contact information (email, phone, fax), address details, social media links, and assign owners or tags. Set check_for_duplicates=true to prevent creating companies with duplicate names.\",\n input: PipelineCrmCreateCompanyInput,\n output: PipelineCrmCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2dAA2d;CAC/gB,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACzK,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAC/L,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAClL,0BAA0BA,IAAAA,EA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AC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,0BAA0BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACzH,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,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 PipelineCrmCreateCompanyInput: z.ZodTypeAny;
|
|
5
|
+
declare const PipelineCrmCreateCompanyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pipelineCrmCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pipelineCrmCreateCompany };
|
|
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,6BAAA,EAA+B,CAAA,CAAE,UAMiB;AAAA,cASlD,8BAAA,EAAgC,CAAA,CAAE,UAyC7C;AAAA,cAEW,wBAAA,gCAAwB,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 PipelineCrmCreateCompanyInput: z.ZodTypeAny;
|
|
5
|
+
declare const PipelineCrmCreateCompanyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pipelineCrmCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pipelineCrmCreateCompany };
|
|
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,6BAAA,EAA+B,CAAA,CAAE,UAMiB;AAAA,cASlD,8BAAA,EAAgC,CAAA,CAAE,UAyC7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-company.ts
|
|
4
|
+
const PipelineCrmCreateCompanyInput = z.object({
|
|
5
|
+
company: z.record(z.string(), z.unknown()).describe("Company details object. Required field: 'name' (str). Optional fields: 'email' (str), 'web' (str), 'description' (str), 'phone1/2/3/4' (str), 'phone1/2/3/4_desc' (str), 'fax' (str), 'address_1' (str), 'address_2' (str), 'city' (str), 'state' (str), 'postal_code' (int), 'country' (str), 'instant_message' (str), 'twitter' (str), 'facebook_url' (str), 'linked_in_url' (str), 'owner_id' (int), 'shared_user_ids' (list of int), 'tag_ids' (list of int), 'custom_fields' (dict)."),
|
|
6
|
+
todo_template_id: z.number().int().describe("ID of a todo template to automatically apply to this newly created company. Creates tasks based on the template.").optional(),
|
|
7
|
+
check_for_duplicates: z.boolean().describe("If true, returns a 422 error when a company with the same name already exists. If false (default), allows creating duplicate companies.").optional(),
|
|
8
|
+
todo_template_user_id: z.number().int().describe("User ID to assign as the owner of tasks created from the todo template. Only used when todo_template_id is provided.").optional(),
|
|
9
|
+
deliver_assignment_email: z.boolean().default(true).describe("If true (default), sends an assignment notification email to the company owner. Set to false to create the company without sending notification emails.").optional()
|
|
10
|
+
}).describe("Request to create a new company in Pipeline CRM.");
|
|
11
|
+
const PipelineCrmCreateCompany_TagSchema = z.object({
|
|
12
|
+
id: z.number().int().describe("Tag ID"),
|
|
13
|
+
name: z.string().describe("Tag name")
|
|
14
|
+
});
|
|
15
|
+
const PipelineCrmCreateCompany_OwnerSchema = z.object({
|
|
16
|
+
id: z.number().int().describe("ID of the owner user"),
|
|
17
|
+
full_name: z.string().describe("Full name of the owner user")
|
|
18
|
+
});
|
|
19
|
+
const pipelineCrmCreateCompany = action("PIPELINE_CRM_CREATE_COMPANY", {
|
|
20
|
+
slug: "pipeline_crm-create-company",
|
|
21
|
+
name: "Create Pipeline CRM Company",
|
|
22
|
+
description: "Creates a new company record in Pipeline CRM with contact details, address, and social media information. Use this tool when you need to add a new company to the CRM system. The only required field is the company name. You can optionally include contact information (email, phone, fax), address details, social media links, and assign owners or tags. Set check_for_duplicates=true to prevent creating companies with duplicate names.",
|
|
23
|
+
input: PipelineCrmCreateCompanyInput,
|
|
24
|
+
output: z.object({
|
|
25
|
+
id: z.number().int().describe("Unique ID of the created company"),
|
|
26
|
+
fax: z.string().describe("Fax number for the company").nullable().optional(),
|
|
27
|
+
web: z.string().describe("Website URL for the company").nullable().optional(),
|
|
28
|
+
city: z.string().describe("City of the company's address").nullable().optional(),
|
|
29
|
+
name: z.string().describe("Name of the company"),
|
|
30
|
+
tags: z.array(PipelineCrmCreateCompany_TagSchema).describe("List of tags assigned to the company"),
|
|
31
|
+
email: z.string().describe("Email address for the company").nullable().optional(),
|
|
32
|
+
owner: PipelineCrmCreateCompany_OwnerSchema.nullable().optional(),
|
|
33
|
+
state: z.string().describe("State of the company's address").nullable().optional(),
|
|
34
|
+
phone1: z.string().describe("Primary phone number of the company").nullable().optional(),
|
|
35
|
+
phone2: z.string().describe("Secondary phone number of the company").nullable().optional(),
|
|
36
|
+
phone3: z.string().describe("Tertiary phone number of the company").nullable().optional(),
|
|
37
|
+
phone4: z.string().describe("Quaternary phone number of the company").nullable().optional(),
|
|
38
|
+
country: z.string().describe("Country of the company's address").nullable().optional(),
|
|
39
|
+
tag_ids: z.array(z.number().int()).describe("IDs of tags applied to the company").nullable().optional(),
|
|
40
|
+
twitter: z.string().describe("Twitter handle of the company").nullable().optional(),
|
|
41
|
+
owner_id: z.number().int().describe("User ID of the company owner").nullable().optional(),
|
|
42
|
+
address_1: z.string().describe("Primary address line for the company").nullable().optional(),
|
|
43
|
+
address_2: z.string().describe("Secondary address line for the company").nullable().optional(),
|
|
44
|
+
created_at: z.string().describe("Timestamp when the company was created"),
|
|
45
|
+
updated_at: z.string().describe("Timestamp when the company was updated"),
|
|
46
|
+
description: z.string().describe("Description of the company").nullable().optional(),
|
|
47
|
+
phone1_desc: z.string().describe("Description for phone1").nullable().optional(),
|
|
48
|
+
phone2_desc: z.string().describe("Description for phone2").nullable().optional(),
|
|
49
|
+
phone3_desc: z.string().describe("Description for phone3").nullable().optional(),
|
|
50
|
+
phone4_desc: z.string().describe("Description for phone4").nullable().optional(),
|
|
51
|
+
postal_code: z.number().int().describe("Postal code of the company's address").nullable().optional(),
|
|
52
|
+
facebook_url: z.string().describe("Facebook URL of the company").nullable().optional(),
|
|
53
|
+
next_task_id: z.number().int().describe("ID of the next task").nullable().optional(),
|
|
54
|
+
custom_fields: z.record(z.string(), z.unknown()).describe("Custom field values for the company").nullable().optional(),
|
|
55
|
+
linked_in_url: z.string().describe("LinkedIn URL of the company").nullable().optional(),
|
|
56
|
+
next_task_due: z.string().describe("Due date of the next task").nullable().optional(),
|
|
57
|
+
next_task_name: z.string().describe("Name of the next task").nullable().optional(),
|
|
58
|
+
company_country: z.string().describe("Company-specific country field").nullable().optional(),
|
|
59
|
+
image_thumb_url: z.string().describe("Thumbnail image URL for the company").nullable().optional(),
|
|
60
|
+
instant_message: z.string().describe("Instant messaging contact for the company").nullable().optional(),
|
|
61
|
+
shared_user_ids: z.array(z.number().int()).describe("IDs of users sharing the company").nullable().optional(),
|
|
62
|
+
image_mobile_url: z.string().describe("Mobile image URL for the company").nullable().optional(),
|
|
63
|
+
next_task_all_day: z.boolean().describe("All-day flag for the next task").nullable().optional(),
|
|
64
|
+
possible_notify_user_ids: z.array(z.number().int()).describe("List of user IDs that can be notified about this company")
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
export { pipelineCrmCreateCompany };
|
|
69
|
+
|
|
70
|
+
//# 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 PipelineCrmCreateCompanyInput: z.ZodTypeAny = z.object({\n company: z.record(z.string(), z.unknown()).describe(\"Company details object. Required field: 'name' (str). Optional fields: 'email' (str), 'web' (str), 'description' (str), 'phone1/2/3/4' (str), 'phone1/2/3/4_desc' (str), 'fax' (str), 'address_1' (str), 'address_2' (str), 'city' (str), 'state' (str), 'postal_code' (int), 'country' (str), 'instant_message' (str), 'twitter' (str), 'facebook_url' (str), 'linked_in_url' (str), 'owner_id' (int), 'shared_user_ids' (list of int), 'tag_ids' (list of int), 'custom_fields' (dict).\"),\n todo_template_id: z.number().int().describe(\"ID of a todo template to automatically apply to this newly created company. Creates tasks based on the template.\").optional(),\n check_for_duplicates: z.boolean().describe(\"If true, returns a 422 error when a company with the same name already exists. If false (default), allows creating duplicate companies.\").optional(),\n todo_template_user_id: z.number().int().describe(\"User ID to assign as the owner of tasks created from the todo template. Only used when todo_template_id is provided.\").optional(),\n deliver_assignment_email: z.boolean().default(true).describe(\"If true (default), sends an assignment notification email to the company owner. Set to false to create the company without sending notification emails.\").optional(),\n}).describe(\"Request to create a new company in Pipeline CRM.\");\nconst PipelineCrmCreateCompany_TagSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Tag ID\"),\n name: z.string().describe(\"Tag name\"),\n});\nconst PipelineCrmCreateCompany_OwnerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the owner user\"),\n full_name: z.string().describe(\"Full name of the owner user\"),\n});\nexport const PipelineCrmCreateCompanyOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the created company\"),\n fax: z.string().describe(\"Fax number for the company\").nullable().optional(),\n web: z.string().describe(\"Website URL for the company\").nullable().optional(),\n city: z.string().describe(\"City of the company's address\").nullable().optional(),\n name: z.string().describe(\"Name of the company\"),\n tags: z.array(PipelineCrmCreateCompany_TagSchema).describe(\"List of tags assigned to the company\"),\n email: z.string().describe(\"Email address for the company\").nullable().optional(),\n owner: PipelineCrmCreateCompany_OwnerSchema.nullable().optional(),\n state: z.string().describe(\"State of the company's address\").nullable().optional(),\n phone1: z.string().describe(\"Primary phone number of the company\").nullable().optional(),\n phone2: z.string().describe(\"Secondary phone number of the company\").nullable().optional(),\n phone3: z.string().describe(\"Tertiary phone number of the company\").nullable().optional(),\n phone4: z.string().describe(\"Quaternary phone number of the company\").nullable().optional(),\n country: z.string().describe(\"Country of the company's address\").nullable().optional(),\n tag_ids: z.array(z.number().int()).describe(\"IDs of tags applied to the company\").nullable().optional(),\n twitter: z.string().describe(\"Twitter handle of the company\").nullable().optional(),\n owner_id: z.number().int().describe(\"User ID of the company owner\").nullable().optional(),\n address_1: z.string().describe(\"Primary address line for the company\").nullable().optional(),\n address_2: z.string().describe(\"Secondary address line for the company\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the company was created\"),\n updated_at: z.string().describe(\"Timestamp when the company was updated\"),\n description: z.string().describe(\"Description of the company\").nullable().optional(),\n phone1_desc: z.string().describe(\"Description for phone1\").nullable().optional(),\n phone2_desc: z.string().describe(\"Description for phone2\").nullable().optional(),\n phone3_desc: z.string().describe(\"Description for phone3\").nullable().optional(),\n phone4_desc: z.string().describe(\"Description for phone4\").nullable().optional(),\n postal_code: z.number().int().describe(\"Postal code of the company's address\").nullable().optional(),\n facebook_url: z.string().describe(\"Facebook URL of the company\").nullable().optional(),\n next_task_id: z.number().int().describe(\"ID of the next task\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom field values for the company\").nullable().optional(),\n linked_in_url: z.string().describe(\"LinkedIn URL of the company\").nullable().optional(),\n next_task_due: z.string().describe(\"Due date of the next task\").nullable().optional(),\n next_task_name: z.string().describe(\"Name of the next task\").nullable().optional(),\n company_country: z.string().describe(\"Company-specific country field\").nullable().optional(),\n image_thumb_url: z.string().describe(\"Thumbnail image URL for the company\").nullable().optional(),\n instant_message: z.string().describe(\"Instant messaging contact for the company\").nullable().optional(),\n shared_user_ids: z.array(z.number().int()).describe(\"IDs of users sharing the company\").nullable().optional(),\n image_mobile_url: z.string().describe(\"Mobile image URL for the company\").nullable().optional(),\n next_task_all_day: z.boolean().describe(\"All-day flag for the next task\").nullable().optional(),\n possible_notify_user_ids: z.array(z.number().int()).describe(\"List of user IDs that can be notified about this company\"),\n});\n\nexport const pipelineCrmCreateCompany = action(\"PIPELINE_CRM_CREATE_COMPANY\", {\n slug: \"pipeline_crm-create-company\",\n name: \"Create Pipeline CRM Company\",\n description: \"Creates a new company record in Pipeline CRM with contact details, address, and social media information. Use this tool when you need to add a new company to the CRM system. The only required field is the company name. You can optionally include contact information (email, phone, fax), address details, social media links, and assign owners or tags. Set check_for_duplicates=true to prevent creating companies with duplicate names.\",\n input: PipelineCrmCreateCompanyInput,\n output: PipelineCrmCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2dAA2d;CAC/gB,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACzK,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAC/L,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAClL,0BAA0B,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS;AACnO,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,QAAQ;CACtC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU;AACtC,CAAC;AACD,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC9D,CAAC;AA4CD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhD0D,EAAE,OAAO;EACnE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;EACh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CAAC,SAAS;EACrH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,0BAA0B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACzH,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-deal.ts
|
|
4
|
+
const PipelineCrmCreateDealInput = zod.z.object({
|
|
5
|
+
deal: zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("Name of the deal"),
|
|
7
|
+
value: zod.z.number().describe("Monetary value of the deal").optional(),
|
|
8
|
+
summary: zod.z.string().describe("Short description of the deal").optional(),
|
|
9
|
+
tag_ids: zod.z.array(zod.z.number().int()).describe("Tags to apply, by ID matrix").optional(),
|
|
10
|
+
currency: zod.z.string().describe("ISO currency code for the deal value").optional(),
|
|
11
|
+
owner_id: zod.z.number().int().describe("User ID who owns the deal").optional(),
|
|
12
|
+
products: zod.z.array(zod.z.string()).describe("List of product names linked to the deal").optional(),
|
|
13
|
+
probability: zod.z.number().int().describe("Win probability percentage (0-100)").optional(),
|
|
14
|
+
custom_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field ID to value mapping").optional(),
|
|
15
|
+
deal_stage_id: zod.z.number().int().describe("ID of the stage for this deal").optional(),
|
|
16
|
+
linked_org_id: zod.z.number().int().describe("Organization ID linked to the deal").optional(),
|
|
17
|
+
linked_person_id: zod.z.number().int().describe("Person ID linked to the deal").optional(),
|
|
18
|
+
expected_close_date: zod.z.string().describe("Expected close date in 'YYYY-MM-DD' format").optional()
|
|
19
|
+
}).describe("Deal attributes payload"),
|
|
20
|
+
todo_template_id: zod.z.number().int().describe("ID of a todo template to apply").optional(),
|
|
21
|
+
todo_template_user_id: zod.z.number().int().describe("Owner ID for tasks generated by todo template").optional(),
|
|
22
|
+
deliver_assignment_email: zod.z.boolean().default(true).describe("Send assignment email if assigned to a user; set false to suppress").optional()
|
|
23
|
+
}).describe("Request model for creating a deal.");
|
|
24
|
+
const PipelineCrmCreateDealOutput = zod.z.object({ id: zod.z.number().int().describe("Created deal ID") }).describe("Response model for a created deal.");
|
|
25
|
+
const pipelineCrmCreateDeal = require_action.action("PIPELINE_CRM_CREATE_DEAL", {
|
|
26
|
+
slug: "pipeline_crm-create-deal",
|
|
27
|
+
name: "Create Deal",
|
|
28
|
+
description: "Tool to create a new deal in Pipeline CRM. Use after gathering all details. Example: Create a deal named 'Big Partnership' worth 50000 USD in stage 2.",
|
|
29
|
+
input: PipelineCrmCreateDealInput,
|
|
30
|
+
output: PipelineCrmCreateDealOutput
|
|
31
|
+
});
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.pipelineCrmCreateDeal = pipelineCrmCreateDeal;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=create-deal.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-deal.cjs","names":["z","action"],"sources":["../../src/actions/create-deal.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PipelineCrmCreateDealInput: z.ZodTypeAny = z.object({\n deal: z.object({\n name: z.string().describe(\"Name of the deal\"),\n value: z.number().describe(\"Monetary value of the deal\").optional(),\n summary: z.string().describe(\"Short description of the deal\").optional(),\n tag_ids: z.array(z.number().int()).describe(\"Tags to apply, by ID matrix\").optional(),\n currency: z.string().describe(\"ISO currency code for the deal value\").optional(),\n owner_id: z.number().int().describe(\"User ID who owns the deal\").optional(),\n products: z.array(z.string()).describe(\"List of product names linked to the deal\").optional(),\n probability: z.number().int().describe(\"Win probability percentage (0-100)\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom field ID to value mapping\").optional(),\n deal_stage_id: z.number().int().describe(\"ID of the stage for this deal\").optional(),\n linked_org_id: z.number().int().describe(\"Organization ID linked to the deal\").optional(),\n linked_person_id: z.number().int().describe(\"Person ID linked to the deal\").optional(),\n expected_close_date: z.string().describe(\"Expected close date in 'YYYY-MM-DD' format\").optional(),\n}).describe(\"Deal attributes payload\"),\n todo_template_id: z.number().int().describe(\"ID of a todo template to apply\").optional(),\n todo_template_user_id: z.number().int().describe(\"Owner ID for tasks generated by todo template\").optional(),\n deliver_assignment_email: z.boolean().default(true).describe(\"Send assignment email if assigned to a user; set false to suppress\").optional(),\n}).describe(\"Request model for creating a deal.\");\nexport const PipelineCrmCreateDealOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Created deal ID\"),\n}).describe(\"Response model for a created deal.\");\n\nexport const pipelineCrmCreateDeal = action(\"PIPELINE_CRM_CREATE_DEAL\", {\n slug: \"pipeline_crm-create-deal\",\n name: \"Create Deal\",\n description: \"Tool to create a new deal in Pipeline CRM. Use after gathering all details. Example: Create a deal named 'Big Partnership' worth 50000 USD in stage 2.\",\n input: PipelineCrmCreateDealInput,\n output: PipelineCrmCreateDealOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACvE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC1E,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACtF,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACnF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACrF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,yBAAyB;CACnC,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvF,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3G,0BAA0BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,EACjD,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAEhD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,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-deal.d.ts
|
|
4
|
+
declare const PipelineCrmCreateDealInput: z.ZodTypeAny;
|
|
5
|
+
declare const PipelineCrmCreateDealOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pipelineCrmCreateDeal: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pipelineCrmCreateDeal };
|
|
9
|
+
//# sourceMappingURL=create-deal.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-deal.d.cts","names":[],"sources":["../../src/actions/create-deal.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAmBM;AAAA,cACpC,2BAAA,EAA6B,CAAA,CAAE,UAEK;AAAA,cAEpC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-deal.d.ts
|
|
4
|
+
declare const PipelineCrmCreateDealInput: z.ZodTypeAny;
|
|
5
|
+
declare const PipelineCrmCreateDealOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pipelineCrmCreateDeal: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pipelineCrmCreateDeal };
|
|
9
|
+
//# sourceMappingURL=create-deal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-deal.d.mts","names":[],"sources":["../../src/actions/create-deal.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAmBM;AAAA,cACpC,2BAAA,EAA6B,CAAA,CAAE,UAEK;AAAA,cAEpC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const pipelineCrmCreateDeal = action("PIPELINE_CRM_CREATE_DEAL", {
|
|
4
|
+
slug: "pipeline_crm-create-deal",
|
|
5
|
+
name: "Create Deal",
|
|
6
|
+
description: "Tool to create a new deal in Pipeline CRM. Use after gathering all details. Example: Create a deal named 'Big Partnership' worth 50000 USD in stage 2.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
deal: z.object({
|
|
9
|
+
name: z.string().describe("Name of the deal"),
|
|
10
|
+
value: z.number().describe("Monetary value of the deal").optional(),
|
|
11
|
+
summary: z.string().describe("Short description of the deal").optional(),
|
|
12
|
+
tag_ids: z.array(z.number().int()).describe("Tags to apply, by ID matrix").optional(),
|
|
13
|
+
currency: z.string().describe("ISO currency code for the deal value").optional(),
|
|
14
|
+
owner_id: z.number().int().describe("User ID who owns the deal").optional(),
|
|
15
|
+
products: z.array(z.string()).describe("List of product names linked to the deal").optional(),
|
|
16
|
+
probability: z.number().int().describe("Win probability percentage (0-100)").optional(),
|
|
17
|
+
custom_fields: z.record(z.string(), z.unknown()).describe("Custom field ID to value mapping").optional(),
|
|
18
|
+
deal_stage_id: z.number().int().describe("ID of the stage for this deal").optional(),
|
|
19
|
+
linked_org_id: z.number().int().describe("Organization ID linked to the deal").optional(),
|
|
20
|
+
linked_person_id: z.number().int().describe("Person ID linked to the deal").optional(),
|
|
21
|
+
expected_close_date: z.string().describe("Expected close date in 'YYYY-MM-DD' format").optional()
|
|
22
|
+
}).describe("Deal attributes payload"),
|
|
23
|
+
todo_template_id: z.number().int().describe("ID of a todo template to apply").optional(),
|
|
24
|
+
todo_template_user_id: z.number().int().describe("Owner ID for tasks generated by todo template").optional(),
|
|
25
|
+
deliver_assignment_email: z.boolean().default(true).describe("Send assignment email if assigned to a user; set false to suppress").optional()
|
|
26
|
+
}).describe("Request model for creating a deal."),
|
|
27
|
+
output: z.object({ id: z.number().int().describe("Created deal ID") }).describe("Response model for a created deal.")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { pipelineCrmCreateDeal };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=create-deal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-deal.mjs","names":[],"sources":["../../src/actions/create-deal.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PipelineCrmCreateDealInput: z.ZodTypeAny = z.object({\n deal: z.object({\n name: z.string().describe(\"Name of the deal\"),\n value: z.number().describe(\"Monetary value of the deal\").optional(),\n summary: z.string().describe(\"Short description of the deal\").optional(),\n tag_ids: z.array(z.number().int()).describe(\"Tags to apply, by ID matrix\").optional(),\n currency: z.string().describe(\"ISO currency code for the deal value\").optional(),\n owner_id: z.number().int().describe(\"User ID who owns the deal\").optional(),\n products: z.array(z.string()).describe(\"List of product names linked to the deal\").optional(),\n probability: z.number().int().describe(\"Win probability percentage (0-100)\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom field ID to value mapping\").optional(),\n deal_stage_id: z.number().int().describe(\"ID of the stage for this deal\").optional(),\n linked_org_id: z.number().int().describe(\"Organization ID linked to the deal\").optional(),\n linked_person_id: z.number().int().describe(\"Person ID linked to the deal\").optional(),\n expected_close_date: z.string().describe(\"Expected close date in 'YYYY-MM-DD' format\").optional(),\n}).describe(\"Deal attributes payload\"),\n todo_template_id: z.number().int().describe(\"ID of a todo template to apply\").optional(),\n todo_template_user_id: z.number().int().describe(\"Owner ID for tasks generated by todo template\").optional(),\n deliver_assignment_email: z.boolean().default(true).describe(\"Send assignment email if assigned to a user; set false to suppress\").optional(),\n}).describe(\"Request model for creating a deal.\");\nexport const PipelineCrmCreateDealOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Created deal ID\"),\n}).describe(\"Response model for a created deal.\");\n\nexport const pipelineCrmCreateDeal = action(\"PIPELINE_CRM_CREATE_DEAL\", {\n slug: \"pipeline_crm-create-deal\",\n name: \"Create Deal\",\n description: \"Tool to create a new deal in Pipeline CRM. Use after gathering all details. Example: Create a deal named 'Big Partnership' worth 50000 USD in stage 2.\",\n input: PipelineCrmCreateDealInput,\n output: Pipeline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,CAAC,SAAS,yBAAyB;EACnC,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvF,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3G,0BAA0B,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,SAAS,oCASH;CACP,QATuD,EAAE,OAAO,EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,EACjD,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-company.ts
|
|
4
|
+
const PipelineCrmDeleteCompanyInput = zod.z.object({ id: zod.z.number().int().describe("Unique integer ID of the company to delete") }).describe("Request model for deleting a company in Pipeline CRM.");
|
|
5
|
+
const PipelineCrmDeleteCompanyOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().describe("Success or error message returned by Pipeline CRM").nullable().optional(),
|
|
7
|
+
success: zod.z.boolean().describe("Indicates if the deletion was successful")
|
|
8
|
+
}).describe("Response model after deleting a company in Pipeline CRM.");
|
|
9
|
+
const pipelineCrmDeleteCompany = require_action.action("PIPELINE_CRM_DELETE_COMPANY", {
|
|
10
|
+
slug: "pipeline_crm-delete-company",
|
|
11
|
+
name: "Delete Company",
|
|
12
|
+
description: "Tool to delete a company by ID in Pipeline CRM. Use after confirming the company ID is correct. Example: \"Delete company with ID 123\".",
|
|
13
|
+
input: PipelineCrmDeleteCompanyInput,
|
|
14
|
+
output: PipelineCrmDeleteCompanyOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.pipelineCrmDeleteCompany = pipelineCrmDeleteCompany;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-company.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-company.cjs","names":["z","action"],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PipelineCrmDeleteCompanyInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique integer ID of the company to delete\"),\n}).describe(\"Request model for deleting a company in Pipeline CRM.\");\nexport const PipelineCrmDeleteCompanyOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Success or error message returned by Pipeline CRM\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the deletion was successful\"),\n}).describe(\"Response model after deleting a company in Pipeline CRM.\");\n\nexport const pipelineCrmDeleteCompany = action(\"PIPELINE_CRM_DELETE_COMPANY\", {\n slug: \"pipeline_crm-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company by ID in Pipeline CRM. Use after confirming the company ID is correct. Example: \\\"Delete company with ID 123\\\".\",\n input: PipelineCrmDeleteCompanyInput,\n output: PipelineCrmDeleteCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EAC5E,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;AAC1E,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,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-company.d.ts
|
|
4
|
+
declare const PipelineCrmDeleteCompanyInput: z.ZodTypeAny;
|
|
5
|
+
declare const PipelineCrmDeleteCompanyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pipelineCrmDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pipelineCrmDeleteCompany };
|
|
9
|
+
//# sourceMappingURL=delete-company.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-company.d.cts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEsB;AAAA,cACvD,8BAAA,EAAgC,CAAA,CAAE,UAGwB;AAAA,cAE1D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-company.d.ts
|
|
4
|
+
declare const PipelineCrmDeleteCompanyInput: z.ZodTypeAny;
|
|
5
|
+
declare const PipelineCrmDeleteCompanyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pipelineCrmDeleteCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pipelineCrmDeleteCompany };
|
|
9
|
+
//# sourceMappingURL=delete-company.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-company.d.mts","names":[],"sources":["../../src/actions/delete-company.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEsB;AAAA,cACvD,8BAAA,EAAgC,CAAA,CAAE,UAGwB;AAAA,cAE1D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const pipelineCrmDeleteCompany = action("PIPELINE_CRM_DELETE_COMPANY", {
|
|
4
|
+
slug: "pipeline_crm-delete-company",
|
|
5
|
+
name: "Delete Company",
|
|
6
|
+
description: "Tool to delete a company by ID in Pipeline CRM. Use after confirming the company ID is correct. Example: \"Delete company with ID 123\".",
|
|
7
|
+
input: z.object({ id: z.number().int().describe("Unique integer ID of the company to delete") }).describe("Request model for deleting a company in Pipeline CRM."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().describe("Success or error message returned by Pipeline CRM").nullable().optional(),
|
|
10
|
+
success: z.boolean().describe("Indicates if the deletion was successful")
|
|
11
|
+
}).describe("Response model after deleting a company in Pipeline CRM.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { pipelineCrmDeleteCompany };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-company.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-company.mjs","names":[],"sources":["../../src/actions/delete-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PipelineCrmDeleteCompanyInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique integer ID of the company to delete\"),\n}).describe(\"Request model for deleting a company in Pipeline CRM.\");\nexport const PipelineCrmDeleteCompanyOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Success or error message returned by Pipeline CRM\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the deletion was successful\"),\n}).describe(\"Response model after deleting a company in Pipeline CRM.\");\n\nexport const pipelineCrmDeleteCompany = action(\"PIPELINE_CRM_DELETE_COMPANY\", {\n slug: \"pipeline_crm-delete-company\",\n name: \"Delete Company\",\n description: \"Tool to delete a company by ID in Pipeline CRM. Use after confirming the company ID is correct. Example: \\\"Delete company with ID 123\\\".\",\n input: PipelineCrmDeleteCompanyInput,\n output: PipelineCrmDeleteCompanyOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyD,EAAE,OAAO,EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EAC5E,CAAC,CAAC,CAAC,SAAS,uDAUH;CACP,QAV0D,EAAE,OAAO;EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CAC1E,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-deal.ts
|
|
4
|
+
const PipelineCrmDeleteDealInput = zod.z.object({ id: zod.z.number().int().describe("Unique identifier of the deal to delete") }).describe("Request model for deleting a deal by ID in Pipeline CRM.");
|
|
5
|
+
const PipelineCrmDeleteDealOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().describe("API response message or error details").nullable().optional(),
|
|
7
|
+
success: zod.z.boolean().describe("Indicates if the deal was deleted successfully")
|
|
8
|
+
}).describe("Response model after deleting a deal in Pipeline CRM.");
|
|
9
|
+
const pipelineCrmDeleteDeal = require_action.action("PIPELINE_CRM_DELETE_DEAL", {
|
|
10
|
+
slug: "pipeline_crm-delete-deal",
|
|
11
|
+
name: "Delete Deal",
|
|
12
|
+
description: "Tool to delete a deal by ID. Use when you need to remove a deal from Pipeline CRM.",
|
|
13
|
+
input: PipelineCrmDeleteDealInput,
|
|
14
|
+
output: PipelineCrmDeleteDealOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.pipelineCrmDeleteDeal = pipelineCrmDeleteDeal;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-deal.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-deal.cjs","names":["z","action"],"sources":["../../src/actions/delete-deal.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PipelineCrmDeleteDealInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the deal to delete\"),\n}).describe(\"Request model for deleting a deal by ID in Pipeline CRM.\");\nexport const PipelineCrmDeleteDealOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"API response message or error details\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the deal was deleted successfully\"),\n}).describe(\"Response model after deleting a deal in Pipeline CRM.\");\n\nexport const pipelineCrmDeleteDeal = action(\"PIPELINE_CRM_DELETE_DEAL\", {\n slug: \"pipeline_crm-delete-deal\",\n name: \"Delete Deal\",\n description: \"Tool to delete a deal by ID. Use when you need to remove a deal from Pipeline CRM.\",\n input: PipelineCrmDeleteDealInput,\n output: PipelineCrmDeleteDealOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,EACzE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;AAChF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,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-deal.d.ts
|
|
4
|
+
declare const PipelineCrmDeleteDealInput: z.ZodTypeAny;
|
|
5
|
+
declare const PipelineCrmDeleteDealOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pipelineCrmDeleteDeal: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pipelineCrmDeleteDeal };
|
|
9
|
+
//# sourceMappingURL=delete-deal.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-deal.d.cts","names":[],"sources":["../../src/actions/delete-deal.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAE4B;AAAA,cAC1D,2BAAA,EAA6B,CAAA,CAAE,UAGwB;AAAA,cAEvD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-deal.d.ts
|
|
4
|
+
declare const PipelineCrmDeleteDealInput: z.ZodTypeAny;
|
|
5
|
+
declare const PipelineCrmDeleteDealOutput: z.ZodTypeAny;
|
|
6
|
+
declare const pipelineCrmDeleteDeal: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pipelineCrmDeleteDeal };
|
|
9
|
+
//# sourceMappingURL=delete-deal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-deal.d.mts","names":[],"sources":["../../src/actions/delete-deal.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAE4B;AAAA,cAC1D,2BAAA,EAA6B,CAAA,CAAE,UAGwB;AAAA,cAEvD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const pipelineCrmDeleteDeal = action("PIPELINE_CRM_DELETE_DEAL", {
|
|
4
|
+
slug: "pipeline_crm-delete-deal",
|
|
5
|
+
name: "Delete Deal",
|
|
6
|
+
description: "Tool to delete a deal by ID. Use when you need to remove a deal from Pipeline CRM.",
|
|
7
|
+
input: z.object({ id: z.number().int().describe("Unique identifier of the deal to delete") }).describe("Request model for deleting a deal by ID in Pipeline CRM."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().describe("API response message or error details").nullable().optional(),
|
|
10
|
+
success: z.boolean().describe("Indicates if the deal was deleted successfully")
|
|
11
|
+
}).describe("Response model after deleting a deal in Pipeline CRM.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { pipelineCrmDeleteDeal };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-deal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-deal.mjs","names":[],"sources":["../../src/actions/delete-deal.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PipelineCrmDeleteDealInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the deal to delete\"),\n}).describe(\"Request model for deleting a deal by ID in Pipeline CRM.\");\nexport const PipelineCrmDeleteDealOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"API response message or error details\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if the deal was deleted successfully\"),\n}).describe(\"Response model after deleting a deal in Pipeline CRM.\");\n\nexport const pipelineCrmDeleteDeal = action(\"PIPELINE_CRM_DELETE_DEAL\", {\n slug: \"pipeline_crm-delete-deal\",\n name: \"Delete Deal\",\n description: \"Tool to delete a deal by ID. Use when you need to remove a deal from Pipeline CRM.\",\n input: PipelineCrmDeleteDealInput,\n output: PipelineCrmDeleteDealOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsD,EAAE,OAAO,EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,EACzE,CAAC,CAAC,CAAC,SAAS,0DAUH;CACP,QAVuD,EAAE,OAAO;EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;CAChF,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|