@keystrokehq/salesmate 0.1.0 → 0.1.3
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-product.cjs +15 -15
- package/dist/actions/add-product.cjs.map +1 -1
- package/dist/actions/add-product.d.cts +50 -3
- package/dist/actions/add-product.d.cts.map +1 -1
- package/dist/actions/add-product.d.mts +50 -3
- package/dist/actions/add-product.d.mts.map +1 -1
- package/dist/actions/add-product.mjs +15 -15
- package/dist/actions/add-product.mjs.map +1 -1
- package/dist/actions/create-company.cjs +3 -3
- package/dist/actions/create-company.cjs.map +1 -1
- package/dist/actions/create-company.d.cts +48 -3
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +48 -3
- package/dist/actions/create-company.d.mts.map +1 -1
- package/dist/actions/create-company.mjs +3 -3
- package/dist/actions/create-company.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +2 -2
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +10 -3
- package/dist/actions/delete-product.d.cts.map +1 -1
- package/dist/actions/delete-product.d.mts +10 -3
- package/dist/actions/delete-product.d.mts.map +1 -1
- package/dist/actions/delete-product.mjs +2 -2
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/get-active-users.cjs +8 -8
- package/dist/actions/get-active-users.cjs.map +1 -1
- package/dist/actions/get-active-users.d.cts +12 -3
- package/dist/actions/get-active-users.d.cts.map +1 -1
- package/dist/actions/get-active-users.d.mts +12 -3
- package/dist/actions/get-active-users.d.mts.map +1 -1
- package/dist/actions/get-active-users.mjs +8 -8
- package/dist/actions/get-active-users.mjs.map +1 -1
- package/dist/actions/get-company.cjs +2 -2
- package/dist/actions/get-company.cjs.map +1 -1
- package/dist/actions/get-company.d.cts +10 -3
- package/dist/actions/get-company.d.cts.map +1 -1
- package/dist/actions/get-company.d.mts +10 -3
- package/dist/actions/get-company.d.mts.map +1 -1
- package/dist/actions/get-company.mjs +2 -2
- package/dist/actions/get-company.mjs.map +1 -1
- package/dist/actions/list-modules.cjs +6 -6
- package/dist/actions/list-modules.cjs.map +1 -1
- package/dist/actions/list-modules.d.cts +10 -3
- package/dist/actions/list-modules.d.cts.map +1 -1
- package/dist/actions/list-modules.d.mts +10 -3
- package/dist/actions/list-modules.d.mts.map +1 -1
- package/dist/actions/list-modules.mjs +6 -6
- package/dist/actions/list-modules.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["salesmate","executeSalesmateTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { salesmate } from \"./app\";\nimport { executeSalesmateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["salesmate","executeSalesmateTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { salesmate } from \"./app\";\nimport { executeSalesmateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return salesmate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSalesmateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { salesmate } from \"./app\";\nimport { executeSalesmateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { salesmate } from \"./app\";\nimport { executeSalesmateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return salesmate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSalesmateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
|
|
@@ -14,31 +14,31 @@ const SalesmateAddProductInput = zod.z.object({
|
|
|
14
14
|
description: zod.z.string().describe("Optional description (max 2000 chars)").optional()
|
|
15
15
|
});
|
|
16
16
|
const SalesmateAddProduct_PriceItemSchema = zod.z.object({
|
|
17
|
-
id: zod.z.number().int().describe("ID of this price entry."),
|
|
18
|
-
currency: zod.z.string().describe("Currency code for this price."),
|
|
19
|
-
isDefault: zod.z.boolean().describe("Whether this price is the default one."),
|
|
20
|
-
unitPrice: zod.z.number().describe("Unit price for this product.")
|
|
21
|
-
});
|
|
17
|
+
id: zod.z.number().int().describe("ID of this price entry.").nullable(),
|
|
18
|
+
currency: zod.z.string().describe("Currency code for this price.").nullable(),
|
|
19
|
+
isDefault: zod.z.boolean().describe("Whether this price is the default one.").nullable(),
|
|
20
|
+
unitPrice: zod.z.number().describe("Unit price for this product.").nullable()
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const SalesmateAddProduct_CurrencyInfoSchema = zod.z.object({
|
|
23
|
-
code: zod.z.string().describe("Currency code, e.g., USD."),
|
|
24
|
-
value: zod.z.string().describe("Value of the currency code."),
|
|
25
|
-
displayLabel: zod.z.string().describe("Currency display label, e.g., USD - $.")
|
|
26
|
-
});
|
|
23
|
+
code: zod.z.string().describe("Currency code, e.g., USD.").nullable(),
|
|
24
|
+
value: zod.z.string().describe("Value of the currency code.").nullable(),
|
|
25
|
+
displayLabel: zod.z.string().describe("Currency display label, e.g., USD - $.").nullable()
|
|
26
|
+
}).passthrough();
|
|
27
27
|
const SalesmateAddProduct_AddProductDataSchema = zod.z.object({
|
|
28
|
-
id: zod.z.number().int().describe("Unique ID of the product"),
|
|
28
|
+
id: zod.z.number().int().describe("Unique ID of the product").nullable(),
|
|
29
29
|
sku: zod.z.string().describe("SKU/code of the product").nullable().optional(),
|
|
30
|
-
name: zod.z.string().describe("Name of the product"),
|
|
30
|
+
name: zod.z.string().describe("Name of the product").nullable(),
|
|
31
31
|
tags: zod.z.string().describe("Tags associated with the product").nullable().optional(),
|
|
32
32
|
owner: zod.z.number().int().describe("ID of the user who owns the product").nullable().optional(),
|
|
33
33
|
prices: zod.z.array(SalesmateAddProduct_PriceItemSchema).describe("List of price entries for the product"),
|
|
34
34
|
currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),
|
|
35
|
-
isActive: zod.z.boolean().describe("Whether the product is active for sales"),
|
|
35
|
+
isActive: zod.z.boolean().describe("Whether the product is active for sales").nullable(),
|
|
36
36
|
description: zod.z.string().describe("Description of the product").nullable().optional()
|
|
37
|
-
});
|
|
37
|
+
}).passthrough();
|
|
38
38
|
const SalesmateAddProductOutput = zod.z.object({
|
|
39
39
|
Data: SalesmateAddProduct_AddProductDataSchema.nullable(),
|
|
40
|
-
Status: zod.z.enum(["success", "failure"]).describe("API call status.")
|
|
41
|
-
});
|
|
40
|
+
Status: zod.z.enum(["success", "failure"]).describe("API call status.").nullable()
|
|
41
|
+
}).passthrough();
|
|
42
42
|
const salesmateAddProduct = require_action.action("SALESMATE_ADD_PRODUCT", {
|
|
43
43
|
slug: "salesmate-add-product",
|
|
44
44
|
name: "Add Product",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-product.cjs","names":["z","action"],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateAddProductInput
|
|
1
|
+
{"version":3,"file":"add-product.cjs","names":["z","action"],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateAddProductInput = z.object({\n sku: z.string().describe(\"Unique SKU/code of the product\").optional(),\n name: z.string().describe(\"Name of the product\"),\n tags: z.string().describe(\"Comma-separated tags (max 5000 chars)\").optional(),\n owner: z.number().int().describe(\"Salesmate user ID that owns the product\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code, uppercase\"),\n isActive: z.boolean().default(true).describe(\"Whether the product is active for sales\").optional(),\n unitPrice: z.number().describe(\"Sale price of the product (non-negative)\"),\n directCost: z.number().describe(\"Optional direct cost of the product (non-negative)\").optional(),\n costPerUnit: z.number().describe(\"Optional cost per unit (non-negative)\").optional(),\n description: z.string().describe(\"Optional description (max 2000 chars)\").optional(),\n});\nconst SalesmateAddProduct_PriceItemSchema = z.object({\n id: z.number().int().describe(\"ID of this price entry.\").nullable(),\n currency: z.string().describe(\"Currency code for this price.\").nullable(),\n isDefault: z.boolean().describe(\"Whether this price is the default one.\").nullable(),\n unitPrice: z.number().describe(\"Unit price for this product.\").nullable(),\n}).passthrough();\nconst SalesmateAddProduct_CurrencyInfoSchema = z.object({\n code: z.string().describe(\"Currency code, e.g., USD.\").nullable(),\n value: z.string().describe(\"Value of the currency code.\").nullable(),\n displayLabel: z.string().describe(\"Currency display label, e.g., USD - $.\").nullable(),\n}).passthrough();\nconst SalesmateAddProduct_AddProductDataSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the product\").nullable(),\n sku: z.string().describe(\"SKU/code of the product\").nullable().optional(),\n name: z.string().describe(\"Name of the product\").nullable(),\n tags: z.string().describe(\"Tags associated with the product\").nullable().optional(),\n owner: z.number().int().describe(\"ID of the user who owns the product\").nullable().optional(),\n prices: z.array(SalesmateAddProduct_PriceItemSchema).describe(\"List of price entries for the product\"),\n currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),\n isActive: z.boolean().describe(\"Whether the product is active for sales\").nullable(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough();\nexport const SalesmateAddProductOutput = z.object({\n Data: SalesmateAddProduct_AddProductDataSchema.nullable(),\n Status: z.enum([\"success\", \"failure\"]).describe(\"API call status.\").nullable(),\n}).passthrough();\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: SalesmateA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WAAW,SAAS,CAAC,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,56 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-product.d.ts
|
|
4
|
-
declare const SalesmateAddProductInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesmateAddProductInput: z.ZodObject<{
|
|
5
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
8
|
+
owner: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
currency: z.ZodString;
|
|
10
|
+
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
11
|
+
unitPrice: z.ZodNumber;
|
|
12
|
+
directCost: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
costPerUnit: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const SalesmateAddProductOutput: z.ZodObject<{
|
|
17
|
+
Data: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
name: z.ZodNullable<z.ZodString>;
|
|
21
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
26
|
+
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
27
|
+
unitPrice: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
currency: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
code: z.ZodNullable<z.ZodString>;
|
|
31
|
+
value: z.ZodNullable<z.ZodString>;
|
|
32
|
+
displayLabel: z.ZodNullable<z.ZodString>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
isActive: z.ZodNullable<z.ZodBoolean>;
|
|
35
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
|
+
Status: z.ZodNullable<z.ZodEnum<{
|
|
38
|
+
success: "success";
|
|
39
|
+
failure: "failure";
|
|
40
|
+
}>>;
|
|
41
|
+
}, z.core.$loose>;
|
|
42
|
+
declare const salesmateAddProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
43
|
+
name: string;
|
|
44
|
+
currency: string;
|
|
45
|
+
unitPrice: number;
|
|
46
|
+
sku?: string | undefined;
|
|
47
|
+
tags?: string | undefined;
|
|
48
|
+
owner?: number | undefined;
|
|
49
|
+
isActive?: boolean | undefined;
|
|
50
|
+
directCost?: number | undefined;
|
|
51
|
+
costPerUnit?: number | undefined;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
54
|
//#endregion
|
|
8
55
|
export { salesmateAddProduct };
|
|
9
56
|
//# sourceMappingURL=add-product.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-product.d.cts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"add-product.d.cts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAkCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,56 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-product.d.ts
|
|
4
|
-
declare const SalesmateAddProductInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesmateAddProductInput: z.ZodObject<{
|
|
5
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
8
|
+
owner: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
currency: z.ZodString;
|
|
10
|
+
isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
11
|
+
unitPrice: z.ZodNumber;
|
|
12
|
+
directCost: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
costPerUnit: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const SalesmateAddProductOutput: z.ZodObject<{
|
|
17
|
+
Data: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
name: z.ZodNullable<z.ZodString>;
|
|
21
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
24
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
26
|
+
isDefault: z.ZodNullable<z.ZodBoolean>;
|
|
27
|
+
unitPrice: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
currency: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
code: z.ZodNullable<z.ZodString>;
|
|
31
|
+
value: z.ZodNullable<z.ZodString>;
|
|
32
|
+
displayLabel: z.ZodNullable<z.ZodString>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
isActive: z.ZodNullable<z.ZodBoolean>;
|
|
35
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
|
+
Status: z.ZodNullable<z.ZodEnum<{
|
|
38
|
+
success: "success";
|
|
39
|
+
failure: "failure";
|
|
40
|
+
}>>;
|
|
41
|
+
}, z.core.$loose>;
|
|
42
|
+
declare const salesmateAddProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
43
|
+
name: string;
|
|
44
|
+
currency: string;
|
|
45
|
+
unitPrice: number;
|
|
46
|
+
sku?: string | undefined;
|
|
47
|
+
tags?: string | undefined;
|
|
48
|
+
owner?: number | undefined;
|
|
49
|
+
isActive?: boolean | undefined;
|
|
50
|
+
directCost?: number | undefined;
|
|
51
|
+
costPerUnit?: number | undefined;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
54
|
//#endregion
|
|
8
55
|
export { salesmateAddProduct };
|
|
9
56
|
//# sourceMappingURL=add-product.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-product.d.mts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"add-product.d.mts","names":[],"sources":["../../src/actions/add-product.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAkCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -14,27 +14,27 @@ const SalesmateAddProductInput = z.object({
|
|
|
14
14
|
description: z.string().describe("Optional description (max 2000 chars)").optional()
|
|
15
15
|
});
|
|
16
16
|
const SalesmateAddProduct_PriceItemSchema = z.object({
|
|
17
|
-
id: z.number().int().describe("ID of this price entry."),
|
|
18
|
-
currency: z.string().describe("Currency code for this price."),
|
|
19
|
-
isDefault: z.boolean().describe("Whether this price is the default one."),
|
|
20
|
-
unitPrice: z.number().describe("Unit price for this product.")
|
|
21
|
-
});
|
|
17
|
+
id: z.number().int().describe("ID of this price entry.").nullable(),
|
|
18
|
+
currency: z.string().describe("Currency code for this price.").nullable(),
|
|
19
|
+
isDefault: z.boolean().describe("Whether this price is the default one.").nullable(),
|
|
20
|
+
unitPrice: z.number().describe("Unit price for this product.").nullable()
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const SalesmateAddProduct_CurrencyInfoSchema = z.object({
|
|
23
|
-
code: z.string().describe("Currency code, e.g., USD."),
|
|
24
|
-
value: z.string().describe("Value of the currency code."),
|
|
25
|
-
displayLabel: z.string().describe("Currency display label, e.g., USD - $.")
|
|
26
|
-
});
|
|
23
|
+
code: z.string().describe("Currency code, e.g., USD.").nullable(),
|
|
24
|
+
value: z.string().describe("Value of the currency code.").nullable(),
|
|
25
|
+
displayLabel: z.string().describe("Currency display label, e.g., USD - $.").nullable()
|
|
26
|
+
}).passthrough();
|
|
27
27
|
const SalesmateAddProduct_AddProductDataSchema = z.object({
|
|
28
|
-
id: z.number().int().describe("Unique ID of the product"),
|
|
28
|
+
id: z.number().int().describe("Unique ID of the product").nullable(),
|
|
29
29
|
sku: z.string().describe("SKU/code of the product").nullable().optional(),
|
|
30
|
-
name: z.string().describe("Name of the product"),
|
|
30
|
+
name: z.string().describe("Name of the product").nullable(),
|
|
31
31
|
tags: z.string().describe("Tags associated with the product").nullable().optional(),
|
|
32
32
|
owner: z.number().int().describe("ID of the user who owns the product").nullable().optional(),
|
|
33
33
|
prices: z.array(SalesmateAddProduct_PriceItemSchema).describe("List of price entries for the product"),
|
|
34
34
|
currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),
|
|
35
|
-
isActive: z.boolean().describe("Whether the product is active for sales"),
|
|
35
|
+
isActive: z.boolean().describe("Whether the product is active for sales").nullable(),
|
|
36
36
|
description: z.string().describe("Description of the product").nullable().optional()
|
|
37
|
-
});
|
|
37
|
+
}).passthrough();
|
|
38
38
|
const salesmateAddProduct = action("SALESMATE_ADD_PRODUCT", {
|
|
39
39
|
slug: "salesmate-add-product",
|
|
40
40
|
name: "Add Product",
|
|
@@ -42,8 +42,8 @@ const salesmateAddProduct = action("SALESMATE_ADD_PRODUCT", {
|
|
|
42
42
|
input: SalesmateAddProductInput,
|
|
43
43
|
output: z.object({
|
|
44
44
|
Data: SalesmateAddProduct_AddProductDataSchema.nullable(),
|
|
45
|
-
Status: z.enum(["success", "failure"]).describe("API call status.")
|
|
46
|
-
})
|
|
45
|
+
Status: z.enum(["success", "failure"]).describe("API call status.").nullable()
|
|
46
|
+
}).passthrough()
|
|
47
47
|
});
|
|
48
48
|
//#endregion
|
|
49
49
|
export { salesmateAddProduct };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-product.mjs","names":[],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateAddProductInput
|
|
1
|
+
{"version":3,"file":"add-product.mjs","names":[],"sources":["../../src/actions/add-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateAddProductInput = z.object({\n sku: z.string().describe(\"Unique SKU/code of the product\").optional(),\n name: z.string().describe(\"Name of the product\"),\n tags: z.string().describe(\"Comma-separated tags (max 5000 chars)\").optional(),\n owner: z.number().int().describe(\"Salesmate user ID that owns the product\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code, uppercase\"),\n isActive: z.boolean().default(true).describe(\"Whether the product is active for sales\").optional(),\n unitPrice: z.number().describe(\"Sale price of the product (non-negative)\"),\n directCost: z.number().describe(\"Optional direct cost of the product (non-negative)\").optional(),\n costPerUnit: z.number().describe(\"Optional cost per unit (non-negative)\").optional(),\n description: z.string().describe(\"Optional description (max 2000 chars)\").optional(),\n});\nconst SalesmateAddProduct_PriceItemSchema = z.object({\n id: z.number().int().describe(\"ID of this price entry.\").nullable(),\n currency: z.string().describe(\"Currency code for this price.\").nullable(),\n isDefault: z.boolean().describe(\"Whether this price is the default one.\").nullable(),\n unitPrice: z.number().describe(\"Unit price for this product.\").nullable(),\n}).passthrough();\nconst SalesmateAddProduct_CurrencyInfoSchema = z.object({\n code: z.string().describe(\"Currency code, e.g., USD.\").nullable(),\n value: z.string().describe(\"Value of the currency code.\").nullable(),\n displayLabel: z.string().describe(\"Currency display label, e.g., USD - $.\").nullable(),\n}).passthrough();\nconst SalesmateAddProduct_AddProductDataSchema = z.object({\n id: z.number().int().describe(\"Unique ID of the product\").nullable(),\n sku: z.string().describe(\"SKU/code of the product\").nullable().optional(),\n name: z.string().describe(\"Name of the product\").nullable(),\n tags: z.string().describe(\"Tags associated with the product\").nullable().optional(),\n owner: z.number().int().describe(\"ID of the user who owns the product\").nullable().optional(),\n prices: z.array(SalesmateAddProduct_PriceItemSchema).describe(\"List of price entries for the product\"),\n currency: SalesmateAddProduct_CurrencyInfoSchema.nullable(),\n isActive: z.boolean().describe(\"Whether the product is active for sales\").nullable(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n}).passthrough();\nexport const SalesmateAddProductOutput = z.object({\n Data: SalesmateAddProduct_AddProductDataSchema.nullable(),\n Status: z.enum([\"success\", \"failure\"]).describe(\"API call status.\").nullable(),\n}).passthrough();\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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V,CAAC"}
|
|
@@ -22,11 +22,11 @@ const SalesmateCreateCompanyInput = zod.z.object({
|
|
|
22
22
|
billingAddressLine1: zod.z.string().describe("Billing address line 1").optional(),
|
|
23
23
|
billingAddressLine2: zod.z.string().describe("Billing address line 2").optional()
|
|
24
24
|
}).describe("Parameters to create a new company in Salesmate CRM.");
|
|
25
|
-
const SalesmateCreateCompany_CreateCompanyResponseDataSchema = zod.z.object({ id: zod.z.number().int().describe("Identifier of the created company") }).describe("Response Data containing the newly created company ID.");
|
|
25
|
+
const SalesmateCreateCompany_CreateCompanyResponseDataSchema = zod.z.object({ id: zod.z.number().int().describe("Identifier of the created company").nullable() }).passthrough().describe("Response Data containing the newly created company ID.");
|
|
26
26
|
const SalesmateCreateCompanyOutput = zod.z.object({
|
|
27
27
|
Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),
|
|
28
|
-
Status: zod.z.string().describe("Status of the API call, e.g., 'success'")
|
|
29
|
-
}).describe("Response schema for create company API.");
|
|
28
|
+
Status: zod.z.string().describe("Status of the API call, e.g., 'success'").nullable()
|
|
29
|
+
}).passthrough().describe("Response schema for create company API.");
|
|
30
30
|
const salesmateCreateCompany = require_action.action("SALESMATE_CREATE_COMPANY", {
|
|
31
31
|
slug: "salesmate-create-company",
|
|
32
32
|
name: "Create Company",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateCreateCompanyInput
|
|
1
|
+
{"version":3,"file":"create-company.cjs","names":["z","action"],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateCreateCompanyInput = z.object({\n name: z.string().describe(\"Name of the company (max 255 chars)\"),\n tags: z.string().describe(\"Comma-separated tags for the company\").optional(),\n owner: z.number().int().describe(\"ID of the owner user for this company. If not provided, defaults to the authenticated user.\").optional(),\n phone: z.string().describe(\"Primary phone number of the company\").optional(),\n skypeId: z.string().describe(\"Skype ID of the company\").optional(),\n website: z.string().describe(\"Website URL of the company\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (uppercase)\").optional(),\n otherPhone: z.string().describe(\"Secondary phone number of the company\").optional(),\n billingCity: z.string().describe(\"Billing city\").optional(),\n description: z.string().describe(\"Description for the company\").optional(),\n billingState: z.string().describe(\"Billing state\").optional(),\n twitterHandle: z.string().describe(\"Twitter handle of the company\").optional(),\n billingCountry: z.string().describe(\"Billing country\").optional(),\n billingZipCode: z.string().describe(\"Billing ZIP/postal code\").optional(),\n facebookHandle: z.string().describe(\"Facebook profile or handle of the company\").optional(),\n linkedInHandle: z.string().describe(\"LinkedIn profile link of the company\").optional(),\n googlePlusHandle: z.string().describe(\"Google Plus profile link of the company\").optional(),\n billingAddressLine1: z.string().describe(\"Billing address line 1\").optional(),\n billingAddressLine2: z.string().describe(\"Billing address line 2\").optional(),\n}).describe(\"Parameters to create a new company in Salesmate CRM.\");\nconst SalesmateCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.number().int().describe(\"Identifier of the created company\").nullable(),\n}).passthrough().describe(\"Response Data containing the newly created company ID.\");\nexport const SalesmateCreateCompanyOutput = z.object({\n Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n Status: z.string().describe(\"Status of the API call, e.g., 'success'\").nullable(),\n}).passthrough().describe(\"Response schema for create company API.\");\n\nexport const salesmateCreateCompany = action(\"SALESMATE_CREATE_COMPANY\", {\n slug: \"salesmate-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company in the Salesmate CRM. Use when you need to register a new organization.\",\n input: SalesmateCreateCompanyInput,\n output: SalesmateCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAMA,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AAC,CAAC,SAAS;CAC1F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5E,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,yDAAyDA,IAAAA,EAAE,OAAO,EACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,EAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,uDAAuD,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-company.d.ts
|
|
4
|
-
declare const SalesmateCreateCompanyInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesmateCreateCompanyInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
7
|
+
owner: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
9
|
+
skypeId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
website: z.ZodOptional<z.ZodString>;
|
|
11
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
12
|
+
otherPhone: z.ZodOptional<z.ZodString>;
|
|
13
|
+
billingCity: z.ZodOptional<z.ZodString>;
|
|
14
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
billingState: z.ZodOptional<z.ZodString>;
|
|
16
|
+
twitterHandle: z.ZodOptional<z.ZodString>;
|
|
17
|
+
billingCountry: z.ZodOptional<z.ZodString>;
|
|
18
|
+
billingZipCode: z.ZodOptional<z.ZodString>;
|
|
19
|
+
facebookHandle: z.ZodOptional<z.ZodString>;
|
|
20
|
+
linkedInHandle: z.ZodOptional<z.ZodString>;
|
|
21
|
+
googlePlusHandle: z.ZodOptional<z.ZodString>;
|
|
22
|
+
billingAddressLine1: z.ZodOptional<z.ZodString>;
|
|
23
|
+
billingAddressLine2: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const SalesmateCreateCompanyOutput: z.ZodObject<{
|
|
26
|
+
Data: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
Status: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const salesmateCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
name: string;
|
|
33
|
+
tags?: string | undefined;
|
|
34
|
+
owner?: number | undefined;
|
|
35
|
+
phone?: string | undefined;
|
|
36
|
+
skypeId?: string | undefined;
|
|
37
|
+
website?: string | undefined;
|
|
38
|
+
currency?: string | undefined;
|
|
39
|
+
otherPhone?: string | undefined;
|
|
40
|
+
billingCity?: string | undefined;
|
|
41
|
+
description?: string | undefined;
|
|
42
|
+
billingState?: string | undefined;
|
|
43
|
+
twitterHandle?: string | undefined;
|
|
44
|
+
billingCountry?: string | undefined;
|
|
45
|
+
billingZipCode?: string | undefined;
|
|
46
|
+
facebookHandle?: string | undefined;
|
|
47
|
+
linkedInHandle?: string | undefined;
|
|
48
|
+
googlePlusHandle?: string | undefined;
|
|
49
|
+
billingAddressLine1?: string | undefined;
|
|
50
|
+
billingAddressLine2?: string | undefined;
|
|
51
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { salesmateCreateCompany };
|
|
9
54
|
//# sourceMappingURL=create-company.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-company.d.cts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAwB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-company.d.ts
|
|
4
|
-
declare const SalesmateCreateCompanyInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesmateCreateCompanyInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
7
|
+
owner: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
9
|
+
skypeId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
website: z.ZodOptional<z.ZodString>;
|
|
11
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
12
|
+
otherPhone: z.ZodOptional<z.ZodString>;
|
|
13
|
+
billingCity: z.ZodOptional<z.ZodString>;
|
|
14
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
billingState: z.ZodOptional<z.ZodString>;
|
|
16
|
+
twitterHandle: z.ZodOptional<z.ZodString>;
|
|
17
|
+
billingCountry: z.ZodOptional<z.ZodString>;
|
|
18
|
+
billingZipCode: z.ZodOptional<z.ZodString>;
|
|
19
|
+
facebookHandle: z.ZodOptional<z.ZodString>;
|
|
20
|
+
linkedInHandle: z.ZodOptional<z.ZodString>;
|
|
21
|
+
googlePlusHandle: z.ZodOptional<z.ZodString>;
|
|
22
|
+
billingAddressLine1: z.ZodOptional<z.ZodString>;
|
|
23
|
+
billingAddressLine2: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const SalesmateCreateCompanyOutput: z.ZodObject<{
|
|
26
|
+
Data: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
Status: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const salesmateCreateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
name: string;
|
|
33
|
+
tags?: string | undefined;
|
|
34
|
+
owner?: number | undefined;
|
|
35
|
+
phone?: string | undefined;
|
|
36
|
+
skypeId?: string | undefined;
|
|
37
|
+
website?: string | undefined;
|
|
38
|
+
currency?: string | undefined;
|
|
39
|
+
otherPhone?: string | undefined;
|
|
40
|
+
billingCity?: string | undefined;
|
|
41
|
+
description?: string | undefined;
|
|
42
|
+
billingState?: string | undefined;
|
|
43
|
+
twitterHandle?: string | undefined;
|
|
44
|
+
billingCountry?: string | undefined;
|
|
45
|
+
billingZipCode?: string | undefined;
|
|
46
|
+
facebookHandle?: string | undefined;
|
|
47
|
+
linkedInHandle?: string | undefined;
|
|
48
|
+
googlePlusHandle?: string | undefined;
|
|
49
|
+
billingAddressLine1?: string | undefined;
|
|
50
|
+
billingAddressLine2?: string | undefined;
|
|
51
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { salesmateCreateCompany };
|
|
9
54
|
//# sourceMappingURL=create-company.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-company.d.mts","names":[],"sources":["../../src/actions/create-company.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAwB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -22,7 +22,7 @@ const SalesmateCreateCompanyInput = z.object({
|
|
|
22
22
|
billingAddressLine1: z.string().describe("Billing address line 1").optional(),
|
|
23
23
|
billingAddressLine2: z.string().describe("Billing address line 2").optional()
|
|
24
24
|
}).describe("Parameters to create a new company in Salesmate CRM.");
|
|
25
|
-
const SalesmateCreateCompany_CreateCompanyResponseDataSchema = z.object({ id: z.number().int().describe("Identifier of the created company") }).describe("Response Data containing the newly created company ID.");
|
|
25
|
+
const SalesmateCreateCompany_CreateCompanyResponseDataSchema = z.object({ id: z.number().int().describe("Identifier of the created company").nullable() }).passthrough().describe("Response Data containing the newly created company ID.");
|
|
26
26
|
const salesmateCreateCompany = action("SALESMATE_CREATE_COMPANY", {
|
|
27
27
|
slug: "salesmate-create-company",
|
|
28
28
|
name: "Create Company",
|
|
@@ -30,8 +30,8 @@ const salesmateCreateCompany = action("SALESMATE_CREATE_COMPANY", {
|
|
|
30
30
|
input: SalesmateCreateCompanyInput,
|
|
31
31
|
output: z.object({
|
|
32
32
|
Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),
|
|
33
|
-
Status: z.string().describe("Status of the API call, e.g., 'success'")
|
|
34
|
-
}).describe("Response schema for create company API.")
|
|
33
|
+
Status: z.string().describe("Status of the API call, e.g., 'success'").nullable()
|
|
34
|
+
}).passthrough().describe("Response schema for create company API.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { salesmateCreateCompany };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateCreateCompanyInput
|
|
1
|
+
{"version":3,"file":"create-company.mjs","names":[],"sources":["../../src/actions/create-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateCreateCompanyInput = z.object({\n name: z.string().describe(\"Name of the company (max 255 chars)\"),\n tags: z.string().describe(\"Comma-separated tags for the company\").optional(),\n owner: z.number().int().describe(\"ID of the owner user for this company. If not provided, defaults to the authenticated user.\").optional(),\n phone: z.string().describe(\"Primary phone number of the company\").optional(),\n skypeId: z.string().describe(\"Skype ID of the company\").optional(),\n website: z.string().describe(\"Website URL of the company\").optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (uppercase)\").optional(),\n otherPhone: z.string().describe(\"Secondary phone number of the company\").optional(),\n billingCity: z.string().describe(\"Billing city\").optional(),\n description: z.string().describe(\"Description for the company\").optional(),\n billingState: z.string().describe(\"Billing state\").optional(),\n twitterHandle: z.string().describe(\"Twitter handle of the company\").optional(),\n billingCountry: z.string().describe(\"Billing country\").optional(),\n billingZipCode: z.string().describe(\"Billing ZIP/postal code\").optional(),\n facebookHandle: z.string().describe(\"Facebook profile or handle of the company\").optional(),\n linkedInHandle: z.string().describe(\"LinkedIn profile link of the company\").optional(),\n googlePlusHandle: z.string().describe(\"Google Plus profile link of the company\").optional(),\n billingAddressLine1: z.string().describe(\"Billing address line 1\").optional(),\n billingAddressLine2: z.string().describe(\"Billing address line 2\").optional(),\n}).describe(\"Parameters to create a new company in Salesmate CRM.\");\nconst SalesmateCreateCompany_CreateCompanyResponseDataSchema = z.object({\n id: z.number().int().describe(\"Identifier of the created company\").nullable(),\n}).passthrough().describe(\"Response Data containing the newly created company ID.\");\nexport const SalesmateCreateCompanyOutput = z.object({\n Data: SalesmateCreateCompany_CreateCompanyResponseDataSchema.nullable(),\n Status: z.string().describe(\"Status of the API call, e.g., 'success'\").nullable(),\n}).passthrough().describe(\"Response schema for create company API.\");\n\nexport const salesmateCreateCompany = action(\"SALESMATE_CREATE_COMPANY\", {\n slug: \"salesmate-create-company\",\n name: \"Create Company\",\n description: \"Tool to create a new company in the Salesmate CRM. Use when you need to register a new organization.\",\n input: SalesmateCreateCompanyInput,\n output: SalesmateCreateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CAC1D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAC5D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAChE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACxE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC1F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5E,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,yDAAyD,EAAE,OAAO,EACtE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,EAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAMlF,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,uDAAuD,SAAS;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -4,8 +4,8 @@ let zod = require("zod");
|
|
|
4
4
|
const SalesmateDeleteProductInput = zod.z.object({ product_id: zod.z.number().int().describe("Unique identifier of the product to delete") }).describe("Request model to delete a product by its ID.");
|
|
5
5
|
const SalesmateDeleteProductOutput = zod.z.object({
|
|
6
6
|
Data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty object on successful deletion"),
|
|
7
|
-
Status: zod.z.string().describe("Status of the API call, 'success' or 'failure'")
|
|
8
|
-
}).describe("Response schema for delete product API.");
|
|
7
|
+
Status: zod.z.string().describe("Status of the API call, 'success' or 'failure'").nullable()
|
|
8
|
+
}).passthrough().describe("Response schema for delete product API.");
|
|
9
9
|
const salesmateDeleteProduct = require_action.action("SALESMATE_DELETE_PRODUCT", {
|
|
10
10
|
slug: "salesmate-delete-product",
|
|
11
11
|
name: "Delete Product",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-product.cjs","names":["z","action"],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateDeleteProductInput
|
|
1
|
+
{"version":3,"file":"delete-product.cjs","names":["z","action"],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateDeleteProductInput = z.object({\n product_id: z.number().int().describe(\"Unique identifier of the product to delete\"),\n}).describe(\"Request model to delete a product by its ID.\");\nexport const SalesmateDeleteProductOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Empty object on successful deletion\"),\n Status: z.string().describe(\"Status of the API call, 'success' or 'failure'\").nullable(),\n}).passthrough().describe(\"Response schema for delete product API.\");\n\nexport const salesmateDeleteProduct = action(\"SALESMATE_DELETE_PRODUCT\", {\n slug: \"salesmate-delete-product\",\n name: \"Delete Product\",\n description: \"Tool to delete a product by ProductId. Use when you need to remove a product from the catalog after confirming the correct ProductId.\",\n input: SalesmateDeleteProductInput,\n output: SalesmateDeleteProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-product.d.ts
|
|
4
|
-
declare const SalesmateDeleteProductInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesmateDeleteProductInput: z.ZodObject<{
|
|
5
|
+
product_id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SalesmateDeleteProductOutput: z.ZodObject<{
|
|
8
|
+
Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
+
Status: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const salesmateDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
product_id: number;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { salesmateDeleteProduct };
|
|
9
16
|
//# sourceMappingURL=delete-product.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-product.d.cts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"delete-product.d.cts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-product.d.ts
|
|
4
|
-
declare const SalesmateDeleteProductInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SalesmateDeleteProductInput: z.ZodObject<{
|
|
5
|
+
product_id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SalesmateDeleteProductOutput: z.ZodObject<{
|
|
8
|
+
Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
+
Status: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const salesmateDeleteProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
product_id: number;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { salesmateDeleteProduct };
|
|
9
16
|
//# sourceMappingURL=delete-product.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-product.d.mts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"delete-product.d.mts","names":[],"sources":["../../src/actions/delete-product.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|